/* CoreMX. Visual language follows CoreMX (layout v2). */
:root {
  --bg: #08090b;
  --panel: rgba(255, 255, 255, .045);
  --raised: rgba(255, 255, 255, .075);
  --solid: #17181c;
  --solid-2: #202126;
  --hairline: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, .06);
  --text: #f4f5f7;
  --text-2: rgba(240, 242, 248, .76);
  --muted: rgba(235, 238, 245, .48);
  --accent: #ff7d2e;
  --accent-2: #ff9550;
  --accent-soft: rgba(255, 125, 46, .15);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .14);
  --danger: #ff453a; --danger-soft: rgba(255, 69, 58, .16);
  --warn: #ffd60a; --warn-soft: rgba(255, 214, 10, .14);
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ui: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .3);
  --blur: saturate(170%) blur(28px);
  --glass: rgba(26, 27, 32, .72);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --tint-a: rgba(255, 120, 40, .32);
  --tint-b: rgba(70, 110, 255, .24);
}
body[data-view="browse"] { --tint-a: rgba(255, 140, 40, .2); --tint-b: rgba(40, 170, 255, .14); }
body[data-view="upload"] { --tint-a: rgba(200, 90, 255, .16); --tint-b: rgba(255, 120, 60, .14); }
body[data-view="account"] { --tint-a: rgba(40, 200, 140, .16); --tint-b: rgba(60, 120, 255, .18); }
body[data-view="guide"] { --tint-a: rgba(255, 90, 60, .2); --tint-b: rgba(255, 190, 60, .12); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--ui); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
select option { background: var(--solid-2); color: var(--text); }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: padding-box; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.ambient::before { content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 45% at 12% 8%, var(--tint-a), transparent 70%),
    radial-gradient(45% 50% at 92% 95%, var(--tint-b), transparent 70%),
    radial-gradient(30% 30% at 60% 40%, rgba(255, 255, 255, .025), transparent 70%);
  filter: blur(40px); transition: background 1.2s var(--ease); }
.ambient-img { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(70px) saturate(140%) brightness(.55); opacity: 0; transform: scale(1.1); transition: opacity .9s var(--ease); }
.ambient-img.show { opacity: .55; }
.ambient::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, .1), rgba(8, 9, 11, .55)); }

/* ---------- top bar ---------- */
.titlebar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.titlebar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 11, .75), rgba(8, 9, 11, 0)); backdrop-filter: blur(6px); -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { font: 800 11px/1 var(--display); letter-spacing: .02em; padding: 8px 9px; border-radius: 10px; color: #fff; background: linear-gradient(140deg, #ffa14d, #ff5f1f); box-shadow: 0 4px 14px rgba(255, 110, 40, .35); }
.brand-name { font: 600 14px var(--display); color: var(--text); letter-spacing: -.01em; }
.rail { position: relative; display: flex; align-items: center; height: 44px; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: var(--hairline), var(--sheen); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.rail::-webkit-scrollbar { display: none; }
.rail-ind { position: absolute; left: 0; top: 4px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; z-index: 0; opacity: 0; transition: transform .45s var(--out), width .45s var(--out), opacity .2s; }
.rail-btn { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color .25s, background .2s, transform .3s var(--spring); }
.rail-btn .ico { width: 17px; height: 17px; }
.rail-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.rail-btn.active { color: #0c0d10; background: transparent; }
.rail-btn:active { transform: scale(.95); }
.spacer { flex: 1; }
.top-account { display: flex; align-items: center; gap: 8px; flex: none; }
.top-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, transform .3s var(--spring); }
.top-icon:hover { background: rgba(255, 255, 255, .12); color: var(--text); transform: translateY(-1px); }
.top-avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 700 15px var(--display); color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); transition: box-shadow .2s, transform .3s var(--spring); }
.top-avatar:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }

/* ---------- shell ---------- */
.shell { padding: 0 14px 14px; }
.content { min-height: calc(100vh - 78px); border-radius: 26px; background: rgba(16, 17, 20, .5); box-shadow: var(--hairline), var(--sheen), 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.view { animation: viewIn .42s var(--out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 6px 36px 22px; color: var(--muted); font-size: 12px; }
.foot a:hover { color: var(--text); }

/* ---------- headers ---------- */
.get-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 30px 36px 6px; }
.get-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.get-title h2 { margin: 0; font: 700 34px/1.1 var(--display); letter-spacing: -.025em; animation: titleIn .5s var(--out) both; }
@keyframes titleIn { from { opacity: 0; transform: translateX(-8px); } }
.sub { color: var(--muted); font-size: 13px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.crumb:hover { color: var(--text); }
.crumb .ico { width: 15px; height: 15px; transform: rotate(180deg); }
.scroller { padding: 8px 36px 30px; }
.browse-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 36px 12px; }
.chips { display: flex; gap: 6px; padding: 0 36px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); animation: rowIn .45s var(--out) both; }
.section-title:first-child { margin-top: 8px; }
.section-title a { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text-2); }
.section-title a:hover { color: var(--accent-2); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: var(--sheen); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .25s, transform .3s var(--spring); }
.btn .ico { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.95); transition-duration: .1s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 110, 40, .28), var(--sheen); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); box-shadow: 0 10px 26px rgba(255, 110, 40, .42), var(--sheen); }
.btn-launch { height: 38px; padding: 0 18px 0 15px; background: linear-gradient(140deg, #ffa14d, #ff5f1f); color: #fff; box-shadow: 0 6px 18px rgba(255, 100, 30, .35), var(--sheen); }
.btn-launch:hover:not(:disabled) { background: linear-gradient(140deg, #ffad61, #ff6a2e); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn-danger { background: rgba(255, 69, 58, .1); color: #ff8079; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }

.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { height: 38px; width: 100%; border-radius: 999px; padding: 0 16px 0 36px; }
.search.spotlight { flex: 1 1 420px; max-width: 640px; }
.search.spotlight input { height: 46px; font-size: 15px; padding-left: 44px; border-radius: 16px; }
.search.spotlight .ico { left: 16px; width: 18px; height: 18px; }
.input, input[type=text], input[type=search], input[type=url], input[type=password], select, textarea {
  border: 0; outline: none; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); border-radius: 12px; padding: 0 14px; height: 40px; color: var(--text); transition: background .2s, box-shadow .25s; }
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; width: 100%; }
select { cursor: pointer; padding-right: 10px; }
.browse-bar select { height: 46px; border-radius: 16px; padding: 0 16px; }
input:focus, select:focus, textarea:focus { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 125, 46, .55), 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); color: var(--text-2); cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 13px; transition: background .2s, color .2s, transform .3s var(--spring); }
.chip .ico { width: 15px; height: 15px; opacity: .85; }
.chip:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.chip:active { transform: scale(.95); }
.chip.active { background: #f4f5f7; color: #0b0b0d; box-shadow: none; font-weight: 600; animation: pick .35s var(--spring); }
.chip .n { font-size: 11.5px; opacity: .6; }
@keyframes pick { from { transform: scale(.92); } }
.seg-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .05); box-shadow: var(--hairline); }
.seg-tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg-tabs button .ico { width: 15px; height: 15px; }
.seg-tabs button:hover { color: var(--text); }
.seg-tabs button.active { background: rgba(255, 255, 255, .14); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .25), var(--sheen); animation: pick .35s var(--spring); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; display: block; padding: 7px 7px 10px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: var(--hairline); cursor: pointer; animation: cardIn .5s var(--out) both; transition: transform .35s var(--spring), background .2s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .35); }
.card:active { transform: translateY(-1px) scale(.985); transition-duration: .12s; }
.grid > .card:nth-child(2) { animation-delay: .04s; } .grid > .card:nth-child(3) { animation-delay: .08s; } .grid > .card:nth-child(4) { animation-delay: .12s; }
.grid > .card:nth-child(5) { animation-delay: .16s; } .grid > .card:nth-child(6) { animation-delay: .18s; } .grid > .card:nth-child(n+7) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out); }
.card:hover .thumb img { transform: scale(1.045); }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .18); background: radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .2) 70%); }
.thumb .ph .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(14, 15, 18, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.badge .ico { width: 12px; height: 12px; }
.badge.accent { background: rgba(255, 125, 46, .85); }
.badge.warn { color: var(--warn); }
.card-body { padding: 10px 6px 0; }
.card-title { font-weight: 650; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- feature hero ---------- */
.feature-hero { position: relative; display: block; height: 340px; margin-bottom: 8px; border-radius: 26px; overflow: hidden; cursor: pointer; box-shadow: var(--hairline), 0 24px 60px rgba(0, 0, 0, .4); animation: cardIn .6s var(--out) both; background: rgba(255, 255, 255, .04); }
.feature-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.feature-hero:hover img { transform: scale(1.04); }
.fh-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 9, .92) 0%, rgba(6, 7, 9, .7) 38%, rgba(6, 7, 9, .05) 75%), linear-gradient(0deg, rgba(6, 7, 9, .6), transparent 50%); }
.fh-body { position: absolute; left: 36px; bottom: 32px; max-width: min(520px, 60%); display: flex; flex-direction: column; gap: 8px; }
.fh-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.fh-body h3 { margin: 0; font: 750 34px/1.1 var(--display); letter-spacing: -.025em; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.fh-body p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fh-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.fh-actions .btn { height: 40px; padding: 0 20px; }
.fh-views { color: var(--muted); font-size: 12.5px; }

/* ---------- summary tiles ---------- */
.lib-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1 1 520px; max-width: 640px; }
.sum-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); color: var(--text); text-align: left; animation: rowIn .45s var(--out) both; }
.sum-tile:nth-child(2) { animation-delay: .04s; } .sum-tile:nth-child(3) { animation-delay: .08s; }
.sum-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--text-2); flex: none; }
.sum-tile.accent .sum-ico { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 110, 40, .35); }
.sum-txt { display: flex; flex-direction: column; min-width: 0; }
.sum-txt b { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; }
.sum-txt small { color: var(--muted); font-size: 12px; }

/* ---------- mod page ---------- */
.mod-hero { position: relative; height: 420px; overflow: hidden; }
.mod-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-hero .fh-shade { background: linear-gradient(90deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .55) 45%, rgba(10, 11, 13, .05) 80%), linear-gradient(0deg, rgba(16, 17, 20, 1) 0%, rgba(16, 17, 20, .2) 45%, transparent 70%); }
.mod-hero .fh-body { left: 36px; bottom: 30px; max-width: min(640px, 70%); }
.mod-hero .crumb { color: var(--text-2); }
.mod-hero.noimg { height: 240px; background: radial-gradient(80% 120% at 20% 0%, rgba(255, 125, 46, .18), transparent 70%); }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding: 10px 36px 36px; }
.mod-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.set-card { border-radius: 20px; padding: 20px 22px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); animation: rowIn .45s var(--out) both; }
.set-card h3 { margin: 0 0 4px; font: 650 17px var(--display); letter-spacing: -.015em; }
.dl-btn { width: 100%; height: 48px; font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.kv dd a { color: var(--accent-2); }
.kv dd a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: thin; }
.gallery-strip button { flex: none; width: 150px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: none; box-shadow: var(--hairline); opacity: .8; transition: opacity .2s, transform .3s var(--spring); }
.gallery-strip button:hover { opacity: 1; transform: translateY(-2px); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.prose { color: var(--text-2); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; max-width: 760px; }
.prose h3, .prose h4, .prose h5 { color: var(--text); font-family: var(--display); margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 .9em; }
.prose a { color: var(--accent-2); } .prose a:hover { text-decoration: underline; }
.prose code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.tab-body { padding-top: 18px; }
.log-row { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.log-row b { font-family: var(--display); }
.log-row p { margin: 4px 0 0; color: var(--text-2); white-space: pre-wrap; }
.owner-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- forms ---------- */
.form-page { max-width: 900px; padding: 8px 36px 36px; display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select { width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border-radius: 18px; border: 1.5px dashed rgba(255, 125, 46, .4); background: rgba(255, 255, 255, .02); color: var(--text-2); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.over { background: var(--accent-soft); border-color: var(--accent); }
.dropzone .ico { width: 26px; height: 26px; color: var(--accent-2); }
.dropzone small { color: var(--muted); }
.progress { width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s var(--out); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--hairline); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.shot .acts button { width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.shot .acts button:hover { background: rgba(255, 255, 255, .2); }
.shot .acts .ico { width: 14px; height: 14px; }
.shot .badges { left: 6px; top: 6px; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 50px 20px 70px; }
.me-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 24px; border-radius: 24px; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 125, 46, .16), rgba(255, 255, 255, .03) 70%); box-shadow: var(--hairline), var(--sheen); animation: cardIn .5s var(--out) both; }
.me-card h2 { margin: 0; font: 700 24px var(--display); letter-spacing: -.02em; text-align: center; }
.me-card .sub { text-align: center; margin-top: -8px; }
.me-card .btn { height: 44px; }
.me-card .swap { text-align: center; font-size: 13px; color: var(--muted); }
.me-card .swap a { color: var(--accent-2); font-weight: 600; cursor: pointer; }

/* ---------- empty / misc ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty > .ico { width: 34px; height: 34px; opacity: .5; }
.empty b { color: var(--text); font: 650 16px var(--display); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.skeleton { border-radius: 18px; aspect-ratio: 16 / 12; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.guide { max-width: 900px; padding: 8px 36px 40px; display: grid; gap: 40px; }
.guide .set-card h3 { display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.guide p { margin: 6px 0 0; color: var(--text-2); }

/* ---------- floating layers ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; justify-items: center; }
.toast { padding: 11px 18px; border-radius: 999px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09), var(--sheen); font-weight: 600; font-size: 13.5px; animation: toastIn .45s var(--spring) both; display: flex; align-items: center; gap: 8px; }
.toast .ico { width: 16px; height: 16px; color: var(--ok); }
.toast.err .ico { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.menu { position: fixed; z-index: 60; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09), var(--sheen); animation: menuIn .22s var(--out) both; transform-origin: top right; }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); margin-bottom: 4px; }
.menu .who b { display: block; } .menu .who small { color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 13.5px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--accent); color: #fff; }
.menu .ico { width: 16px; height: 16px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 30px; background: rgba(4, 5, 7, .7); backdrop-filter: blur(14px) saturate(120%); animation: scrimIn .25s ease both; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: var(--shadow); animation: sheetIn .45s var(--spring) both; }
@keyframes scrimIn { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .brand-name { display: none; } .rail-btn { padding: 0 12px; } }
@media (max-width: 1100px) {
  .get-head { padding: 22px 22px 6px; } .scroller, .form-page, .guide { padding-left: 22px; padding-right: 22px; }
  .browse-bar { padding-left: 22px; padding-right: 22px; } .chips { padding-left: 22px; padding-right: 22px; }
  .mod-layout { grid-template-columns: 1fr; padding: 10px 22px 30px; } .mod-side { position: static; }
  .mod-hero .fh-body, .fh-body { left: 22px; bottom: 22px; max-width: 85%; } .fh-body h3 { font-size: 26px; }
  .feature-hero { height: 280px; } .lib-summary { max-width: none; }
}
@media (max-width: 720px) {
  .titlebar { padding: 0 10px; gap: 8px; } .brand-name, .btn-launch span { display: none; } .btn-launch { padding: 0 12px; }
  .shell { padding: 0 6px 6px; } .content { border-radius: 20px; }
  .two { grid-template-columns: 1fr; } .lib-summary { grid-template-columns: 1fr 1fr 1fr; }
  .sum-tile { padding: 10px; gap: 8px; } .sum-tile .sum-ico { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .mod-hero { height: 320px; } .feature-hero { height: 240px; } .fh-body p { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ---------- required mods ---------- */
.dep-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: var(--hairline); animation: rowIn .35s var(--out) both; }
.dep-row .seg-tabs button { height: 32px; }
.dep-row .two { gap: 8px; } .dep-row .two input { width: 100%; }
.dep-row .search input { height: 38px; }
.dep-main { min-width: 0; display: grid; gap: 6px; }
.dep-results { display: grid; gap: 4px; }
.dep-results:empty { display: none; }
.dep-opt, .dep-pick, .dep-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dep-opt { width: 100%; padding: 6px 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text); text-align: left; cursor: pointer; transition: background .15s; }
.dep-opt:hover { background: var(--accent-soft); }
.dep-opt span:last-child, .dep-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dep-opt b, .dep-txt b, .dep-pick b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-opt small, .dep-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-pick { height: 38px; } .dep-pick b { flex: 1; }
.dep-img { width: 56px; aspect-ratio: 16 / 10; flex: none; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); color: var(--muted); }
.dep-img img { width: 100%; height: 100%; object-fit: cover; }
.dep-img .ico { width: 18px; height: 18px; }
.dep-item { padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: var(--hairline); }
.dep-item .btn { height: 32px; padding: 0 12px; flex: none; font-size: 12.5px; }
.dep-txt:hover b { color: var(--accent-2); }
@media (max-width: 720px) { .dep-row { grid-template-columns: minmax(0, 1fr) auto; } .dep-row .seg-tabs { grid-column: 1 / -1; } .dep-row .two { grid-template-columns: 1fr; } }

/* ---------- notifications ---------- */
.rail-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgba(255, 110, 40, .4); }
.notes-pop { width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; }
.menu .note, .note { display: flex; align-items: flex-start; gap: 12px; height: auto; padding: 10px 12px; border-radius: 12px; color: var(--text); text-align: left; }
.menu .note:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.note[href] { cursor: pointer; }
.note.unread { background: rgba(255, 125, 46, .07); }
.note-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .07); color: var(--text-2); flex: none; }
.note-ico .ico { width: 16px; height: 16px; }
.note-ico.t-report, .note-ico.t-moderation { background: var(--warn-soft); color: var(--warn); }
.note-ico.t-report-reply { background: var(--ok-soft); color: var(--ok); }
.note-ico.t-news, .note-ico.t-role, .note-ico.t-welcome { background: var(--accent-soft); color: var(--accent-2); }
.note-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-txt b { font-size: 13.5px; font-weight: 650; }
.note-txt small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; white-space: normal; }
.note-txt em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.notes-list { display: grid; gap: 6px; }
.notes-list .note { background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); border-radius: 16px; padding: 12px 14px; animation: rowIn .35s var(--out) both; transition: background .2s; }
.notes-list .note[href]:hover { background: rgba(255, 255, 255, .07); }
.notes-list .note.unread { background: rgba(255, 125, 46, .08); box-shadow: inset 0 0 0 1px rgba(255, 125, 46, .25); }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 7, .5); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); animation: scrimIn .25s ease both; }
.modal { width: min(500px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 26px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09), var(--sheen); animation: sheetIn .45s var(--spring) both; }
.modal-wrap.closing { animation: scrimOut .19s ease both; pointer-events: none; }
.modal-wrap.closing .modal { animation: sheetOut .19s ease-in both; }
@keyframes scrimOut { to { opacity: 0; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 8px 24px; }
.modal-head h3 { margin: 0; font: 650 18px var(--display); letter-spacing: -.015em; }
.modal-body { padding: 8px 24px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.reasons { display: grid; gap: 6px; }
.reason { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); cursor: pointer; font-size: 13.5px; font-weight: 500; transition: background .2s, box-shadow .2s; }
.reason:hover { background: rgba(255, 255, 255, .07); }
.reason input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.reason:has(input:checked) { background: rgba(255, 125, 46, .1); box-shadow: inset 0 0 0 1px rgba(255, 125, 46, .45); }
.report-btn { align-self: center; color: var(--muted); font-weight: 500; font-size: 12.5px; height: 32px; }
.report-btn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- admin ---------- */
.mod-layout.wide { grid-template-columns: minmax(0, 1fr); }
.mod-layout.wide .mod-side { display: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-card { display: grid; gap: 12px; padding: 14px 16px; }
.rc-top, .user-row { display: flex; align-items: center; gap: 12px; }
.user-row { padding: 10px 14px; }
.user-row select { height: 36px; }
.rc-reason p { margin: 8px 0 0; color: var(--text-2); white-space: pre-wrap; }
.rc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-act input { flex: 1 1 260px; height: 36px; }
.toggle { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle .sw { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .35s var(--spring); }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
@media (max-width: 720px) { .lib-summary[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; } .user-row { flex-wrap: wrap; } }

.search input[type=search] { padding-left: 36px; }
.search.spotlight input[type=search] { padding-left: 44px; }

/* ---------- security ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.tfa-setup { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 6px; }
.qr { width: 180px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--hairline); }
.qr svg { display: block; width: 100%; height: auto; }
.tfa-steps { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--text-2); }
.tfa-steps form { margin-left: -18px; }
.key { display: block; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text); font: 600 13px ui-monospace, Consolas, monospace; letter-spacing: .06em; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codes code { padding: 10px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .tfa-setup { grid-template-columns: 1fr; } }

.mgr-card { display: flex; align-items: center; gap: 18px; padding: 22px; }
.mgr-card > div { flex: 1; min-width: 0; }
.mgr-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 110, 40, .35); }
.mgr-ico .ico { width: 24px; height: 24px; }
@media (max-width: 720px) { .mgr-card { flex-wrap: wrap; } }

/* ---------- spotlight carousel (styled like the app's Get Mods feature banner) ---------- */
.spot { position: relative; height: 340px; margin-bottom: 8px; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline), 0 24px 60px rgba(0, 0, 0, .4); animation: cardIn .6s var(--out) both; touch-action: pan-y; user-select: none; }
.spot-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; cursor: pointer; transition: opacity .8s var(--out), visibility 0s .8s; }
.spot-slide.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s var(--out), visibility 0s; }
.spot-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.spot-slide:hover > img { transform: scale(1.04); }
.spot-slide .fh-body > * { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--out), transform .65s var(--out); }
.spot-slide.on .fh-body > * { opacity: 1; transform: none; }
.spot-slide.on .fh-body > :nth-child(2) { transition-delay: .05s; } .spot-slide.on .fh-body > :nth-child(3) { transition-delay: .1s; } .spot-slide.on .fh-body > :nth-child(4) { transition-delay: .15s; }
.spot-slide .fh-actions .btn { pointer-events: none; }
.spot-slide:hover .fh-actions .btn { background: var(--accent-2); box-shadow: 0 10px 26px rgba(255, 110, 40, .42), var(--sheen); }
.spot-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(14, 15, 18, .5); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, transform .3s var(--spring); }
.spot:hover .spot-arrow { opacity: 1; }
.spot-arrow:hover { background: rgba(255, 255, 255, .18); } .spot-arrow:active { transform: scale(.92); }
.spot-arrow.prev { left: 14px; } .spot-arrow.prev .ico { transform: rotate(180deg); } .spot-arrow.next { right: 14px; }
.spot-dots { position: absolute; z-index: 3; right: 26px; bottom: 24px; display: flex; gap: 6px; }
.spot-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; transition: width .4s var(--out), background .2s; }
.spot-dots button:hover { background: rgba(255, 255, 255, .55); }
.spot-dots button.on { width: 30px; background: rgba(255, 255, 255, .25); }
.spot-dots button i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.spot-dots button.on i { animation: spotFill 7s linear forwards; }
.spot.paused .spot-dots button.on i { animation-play-state: paused; }
@keyframes spotFill { to { width: 100%; } }
@media (max-width: 1100px) { .spot { height: 280px; } .spot-arrow { display: none; } }
@media (max-width: 720px) { .spot { height: 300px; } .spot .fh-body { right: 22px; max-width: none; } .spot .fh-body p { display: -webkit-box; -webkit-line-clamp: 2; } .spot-dots { bottom: auto; top: 18px; right: 18px; } }

/* ---------- discover page ---------- */
.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > .card { scroll-snap-align: start; }
.shelf-arrow { position: absolute; top: calc(50% - 34px); z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(14, 15, 18, .72); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .4); cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.shelf-arrow:hover { background: rgba(255, 255, 255, .18); } .shelf-arrow:active { transform: scale(.92); }
.shelf-arrow .ico { width: 16px; height: 16px; }
.shelf-arrow.prev { left: -12px; } .shelf-arrow.prev .ico { transform: rotate(180deg); } .shelf-arrow.next { right: -12px; }
.shelf-arrow[hidden] { display: none; }
#home .section-title { margin-top: 30px; }
@media (max-width: 1250px) { .shelf-track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 900px) { .shelf-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 720px) { .shelf-track { grid-auto-columns: 72%; gap: 10px; } .shelf-arrow { display: none; } }

/* ---------- spotlight carousel (styled like the app's Get Mods feature banner) ---------- */
.spot { position: relative; height: 340px; margin-bottom: 8px; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline), 0 24px 60px rgba(0, 0, 0, .4); animation: cardIn .6s var(--out) both; touch-action: pan-y; user-select: none; }
.spot-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; cursor: pointer; transition: opacity .8s var(--out), visibility 0s .8s; }
.spot-slide.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s var(--out), visibility 0s; }
.spot-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.spot-slide:hover > img { transform: scale(1.04); }
.spot-slide .fh-body > * { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--out), transform .65s var(--out); }
.spot-slide.on .fh-body > * { opacity: 1; transform: none; }
.spot-slide.on .fh-body > :nth-child(2) { transition-delay: .05s; } .spot-slide.on .fh-body > :nth-child(3) { transition-delay: .1s; } .spot-slide.on .fh-body > :nth-child(4) { transition-delay: .15s; }
.spot-slide .fh-actions .btn { pointer-events: none; }
.spot-slide:hover .fh-actions .btn { background: var(--accent-2); box-shadow: 0 10px 26px rgba(255, 110, 40, .42), var(--sheen); }
.spot-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(14, 15, 18, .5); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, transform .3s var(--spring); }
.spot:hover .spot-arrow { opacity: 1; }
.spot-arrow:hover { background: rgba(255, 255, 255, .18); } .spot-arrow:active { transform: scale(.92); }
.spot-arrow.prev { left: 14px; } .spot-arrow.prev .ico { transform: rotate(180deg); } .spot-arrow.next { right: 14px; }
.spot-dots { position: absolute; z-index: 3; right: 26px; bottom: 24px; display: flex; gap: 6px; }
.spot-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; transition: width .4s var(--out), background .2s; }
.spot-dots button:hover { background: rgba(255, 255, 255, .55); }
.spot-dots button.on { width: 30px; background: rgba(255, 255, 255, .25); }
.spot-dots button i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.spot-dots button.on i { animation: spotFill 7s linear forwards; }
.spot.paused .spot-dots button.on i { animation-play-state: paused; }
@keyframes spotFill { to { width: 100%; } }
@media (max-width: 1100px) { .spot { height: 280px; } .spot-arrow { display: none; } }
@media (max-width: 720px) { .spot { height: 300px; } .spot .fh-body { right: 22px; max-width: none; } .spot .fh-body p { display: -webkit-box; -webkit-line-clamp: 2; } .spot-dots { bottom: auto; top: 18px; right: 18px; } }

/* ---------- discover page ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-tile { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--hairline); background: radial-gradient(120% 120% at 0% 0%, rgba(255, 125, 46, .16), rgba(255, 255, 255, .03) 60%); animation: cardIn .5s var(--out) both; transition: transform .35s var(--spring), box-shadow .3s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 36px rgba(0, 0, 0, .4); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(110%); transition: transform .8s var(--out); }
.cat-tile:hover img { transform: scale(1.06); }
.ct-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 11, .88), rgba(8, 9, 11, .15) 70%); }
.cat-tile.nocover .ct-shade { background: none; }
.ct-ico { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(14, 15, 18, .55); backdrop-filter: blur(8px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ct-ico .ico { width: 16px; height: 16px; }
.cat-tile.nocover .ct-ico { background: rgba(255, 255, 255, .07); color: var(--accent-2); }
.ct-txt { position: absolute; left: 14px; right: 14px; bottom: 11px; display: flex; flex-direction: column; }
.ct-txt b { font: 650 15px var(--display); letter-spacing: -.01em; }
.ct-txt small { color: var(--text-2); font-size: 12px; }
.cat-tile.nocover .ct-txt small { color: var(--muted); }

.top10 { position: relative; }
.top10-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.top10-track::-webkit-scrollbar { display: none; }
.top10-item { position: relative; flex: none; width: 330px; display: flex; align-items: flex-end; scroll-snap-align: start; padding-left: 74px; animation: cardIn .5s var(--out) both; }
.rank { position: absolute; left: 0; bottom: 38px; font: 900 150px/0.8 var(--display); letter-spacing: -.06em; color: rgba(10, 11, 13, .9); -webkit-text-stroke: 2px rgba(255, 255, 255, .28); z-index: 0; transition: -webkit-text-stroke-color .3s; }
.top10-item:hover .rank { -webkit-text-stroke-color: var(--accent); }
.top10-item .thumb { position: relative; z-index: 1; width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), var(--hairline); }
.top10-item .thumb img { transition: transform .6s var(--out); }
.top10-item:hover .thumb img { transform: scale(1.05); }
.t10-txt { position: absolute; left: 74px; right: 0; bottom: -36px; z-index: 1; display: flex; flex-direction: column; padding: 0 4px; }
.top10-item { margin-bottom: 40px; }
.t10-txt b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t10-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t10-arrow { position: absolute; top: calc(50% - 40px); z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(14, 15, 18, .7); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .4); cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.t10-arrow:hover { background: rgba(255, 255, 255, .18); } .t10-arrow:active { transform: scale(.92); }
.t10-arrow.prev { left: -8px; } .t10-arrow.prev .ico { transform: rotate(180deg); } .t10-arrow.next { right: -8px; }
.t10-arrow[hidden] { display: none; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.list-box { display: grid; gap: 2px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: var(--hairline); animation: rowIn .45s var(--out) both; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; transition: background .2s; min-width: 0; }
.list-row:hover { background: rgba(255, 255, 255, .06); }
.list-row .thumb { width: 104px; flex: none; border-radius: 10px; }
.list-row .ph .ico { width: 24px; height: 24px; }
.lr-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.lr-txt b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-txt em { font-style: normal; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver { display: inline-block; padding: 0 6px; margin-right: 2px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }

.creators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.creator { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); animation: rowIn .45s var(--out) both; transition: background .2s, transform .3s var(--spring); min-width: 0; }
.creator:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.creator .top-avatar { cursor: inherit; flex: none; }
.cr-txt { display: flex; flex-direction: column; min-width: 0; }
.cr-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.share-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 26px 28px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 125, 46, .18), rgba(255, 255, 255, .03) 60%); box-shadow: var(--hairline), var(--sheen); }
.share-cta h3 { margin: 0 0 4px; font: 700 21px var(--display); letter-spacing: -.02em; }
.share-cta p { margin: 0; }

@media (max-width: 1250px) { .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .creators { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two-lists { grid-template-columns: 1fr; } .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .top10-item { width: 260px; padding-left: 56px; } .rank { font-size: 112px; } .t10-txt { left: 56px; } .creators { grid-template-columns: 1fr; } .t10-arrow { display: none; } .list-row .thumb { width: 84px; } }
.spot-arrow { top: auto; bottom: 17px; margin-top: 0; width: 34px; height: 34px; opacity: .85; }
.spot-arrow .ico { width: 16px; height: 16px; }
.spot-arrow.prev { left: auto; right: 60px; } .spot-arrow.next { right: 20px; }
.spot:has(.spot-arrow) .spot-dots { right: 106px; }
@media (max-width: 1100px) { .spot:has(.spot-arrow) .spot-dots { right: 26px; } }
@media (max-width: 720px) { .spot:has(.spot-arrow) .spot-dots { right: 18px; } }

.home-chips { padding: 18px 0 0; margin: 0; }
.share-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 20px 24px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 125, 46, .14), rgba(255, 255, 255, .03) 60%); box-shadow: var(--hairline), var(--sheen); }
.share-cta h3 { margin: 0 0 2px; font: 700 18px var(--display); letter-spacing: -.02em; }
.share-cta p { margin: 0; }

/* ---------- MX Bikes: source tiles (from the app's Get Mods page) ---------- */
.get-head .src-tiles { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; flex: 1 1 640px; max-width: 760px; }
.src-tile { display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 10px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); color: var(--text); cursor: pointer; text-align: left; transition: background .2s, box-shadow .25s, transform .3s var(--spring); }
.src-tile:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.src-tile:active { transform: scale(.97); }
.src-tile.active { background: rgba(255, 125, 46, .13); box-shadow: inset 0 0 0 1.5px rgba(255, 125, 46, .65), 0 8px 24px rgba(255, 110, 40, .15); }
.src-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .07); color: var(--text-2); flex: none; transition: background .2s, color .2s; }
.src-tile.active .src-ico { background: var(--accent); color: #fff; }
.src-ico .ico { width: 18px; height: 18px; }
.src-txt { display: flex; flex-direction: column; min-width: 0; }
.src-txt b { font-size: 13.5px; font-weight: 650; }
.src-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-badges { left: auto; right: 8px; top: auto; bottom: 8px; }
.badge.src-mxbmods { background: rgba(14, 15, 18, .72); }
.badge.src-hub { background: rgba(88, 60, 200, .8); }
.badge.src-mxbs { background: rgba(20, 120, 200, .8); }
.mod-kind { font-size: 11.5px; font-weight: 600; color: var(--warn); margin-top: 1px; }
.notice-card { display: flex; gap: 12px; align-items: flex-start; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .25); background: rgba(255, 214, 10, .06); }
.notice-card > .ico { color: var(--warn); margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: var(--hairline); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { display: flex; flex-direction: column; gap: 2px; }
.check small { color: var(--muted); font-size: 12.5px; }
.mgr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mgr-feat { display: flex; gap: 14px; align-items: flex-start; }
.mgr-feat p { margin: 4px 0 0; }
.mgr-feat .sum-ico { background: var(--accent-soft); color: var(--accent-2); }
@media (max-width: 1250px) { .get-head .src-tiles { grid-template-columns: repeat(2, minmax(150px, 1fr)); } }
@media (max-width: 720px) { .get-head .src-tiles { grid-template-columns: 1fr 1fr; } .src-txt small { display: none; } .mgr-grid { grid-template-columns: 1fr; } }

/* compact source row (replaces the big tiles) */
.get-head .src-tiles, .src-tiles { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 14px 36px 2px; max-width: none; margin: 0; }
.src-tiles::-webkit-scrollbar { display: none; }
.src-tile { flex: none; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 12px; }
.src-tile:hover { transform: none; }
.src-ico { width: 28px; height: 28px; border-radius: 9px; }
.src-ico .ico { width: 15px; height: 15px; }
.src-txt b { font-size: 13px; line-height: 1.2; }
.src-txt small { font-size: 11px; line-height: 1.2; }
.src-n { font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.src-tile.active .src-n { color: var(--accent-2); }
@media (max-width: 1100px) { .src-tiles { padding: 12px 22px 2px; } }
@media (max-width: 900px) { .src-txt small { display: none; } .src-tile { padding: 4px 12px 4px 4px; } }
/* mod page: never wider than the screen */
.mod-layout > div, .mod-side { min-width: 0; }
.mod-side .set-card { min-width: 0; }
.kv dd { min-width: 0; }
.notice-card > div { min-width: 0; }

/* phones: one dropdown button instead of the tab bar */
.nav-drop { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0c0d10; font: 600 14px var(--ui); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); cursor: pointer; flex: none; }
.nav-drop .ico { width: 17px; height: 17px; }
.nav-drop .chev { width: 15px; height: 15px; opacity: .6; }
.menu.nav-menu { transform-origin: top left; min-width: 210px; }
.menu.nav-menu a.on { background: rgba(255, 255, 255, .1); }
.menu.nav-menu a.on:hover { background: var(--accent); }
@media (max-width: 720px) {
  .rail { display: none; }
  .nav-drop { display: inline-flex; }
  .top-account { gap: 6px; }
  .spot .fh-actions { flex-wrap: wrap; gap: 8px 12px; }
  .spot .fh-views { flex-basis: 100%; }
}

.toast { border-radius: 18px; max-width: min(520px, calc(100vw - 32px)); }
@media (max-width: 1100px) { .mod-layout .mod-side { order: -1; } }

/* ---- smooth loading ---- */
#view img { transition: opacity .35s ease, transform .6s var(--out); }
#view img:not(.in) { opacity: 0; }
#view img.broken { opacity: 0; }
.thumb, .dep-img, .oem-img, .gallery-strip button, .mod-hero { background-color: rgba(255, 255, 255, .04); }
#bres { min-height: 60vh; transition: opacity .2s ease; }
#bres.loading { opacity: .45; pointer-events: none; }
#bres .card { animation-duration: .35s; }
.ambient-img { transition: opacity 1s var(--ease); }
#btiles:empty, #bcats:empty { min-height: 44px; }
.chip .n, .src-n { font-variant-numeric: tabular-nums; }

/* ---- downloads list on a mod page ---- */
.dl-head { margin-bottom: 10px; }
.dl-head h3 { margin: 0; }
.dl-list { display: grid; gap: 8px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: var(--hairline); }
.dl-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dl-txt b { font-size: 13.5px; overflow-wrap: anywhere; }
.dl-txt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.dl-row .btn { flex: none; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.toast .btn-sm { margin-left: 6px; }

/* ---- install choice dialog ---- */
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: var(--hairline); color: var(--text); text-align: left; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.choice:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.choice b { display: block; font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; }
.remember { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; cursor: pointer; }
.remember small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; padding-left: 24px; }

/* ---- OEM packs ---- */
.oem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0 36px 30px; }
.oem-skel { aspect-ratio: auto; height: 330px; }
.oem-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); animation: cardIn .45s var(--out) both; }
.oem-img { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.oem-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oem-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.oem-body h3 { margin: 0; font-size: 18px; }
.oem-body p { margin: 0; }
.oem-body small { font-size: 12px; min-height: 1em; }
.oem-act { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
@media (max-width: 700px) { .oem-grid { padding: 0 16px 24px; } }

/* ---- Mod Manager page ---- */
.mgr-page { max-width: 1180px; margin: 0 auto; padding: 8px 36px 40px; display: grid; gap: 64px; }
.mgr-page .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }
.mgr-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 36px; align-items: center; padding-top: 18px; }
.mgr-hero h2 { margin: 8px 0 12px; font: 700 40px/1.05 var(--display); letter-spacing: -.03em; }
.mgr-hero .lead { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.mgr-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mgr-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.mgr-row.flip .mgr-copy { order: 2; }
.mgr-copy h3 { margin: 6px 0 10px; font: 700 26px/1.15 var(--display); letter-spacing: -.02em; }
.mgr-copy p { margin: 0 0 14px; line-height: 1.6; color: var(--text-2); }
.mgr-pts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.mgr-pts li { display: flex; gap: 10px; align-items: flex-start; }
.mgr-pts li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-2); flex: none; }
.mgr-shot { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #0c0d10; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), var(--hairline); cursor: zoom-in; transition: transform .35s var(--spring); }
.mgr-shot:hover { transform: translateY(-3px); }
.mgr-shot img { display: block; width: 100%; height: auto; }
.mgr-more h3, .mgr-site h3 { margin: 0 0 14px; font: 700 22px/1.2 var(--display); }
.mgr-small-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mgr-small { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); }
.mgr-small b { display: block; margin: 12px 0 4px; }
.mgr-small p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mgr-site { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.mgr-site > div:first-child { flex: 1 1 380px; }
.mgr-site h3 { margin-bottom: 6px; }
.mgr-pref { display: grid; gap: 8px; }
@media (max-width: 900px) {
  .mgr-page { padding: 4px 16px 30px; gap: 44px; }
  .mgr-hero, .mgr-row { grid-template-columns: 1fr; gap: 20px; }
  .mgr-row.flip .mgr-copy { order: 0; }
  .mgr-hero h2 { font-size: 32px; }
  .mgr-small-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Discover promo ---- */
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; margin: 26px 0 6px; padding: 22px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 125, 46, .18), rgba(255, 255, 255, .03) 60%); box-shadow: var(--hairline), var(--sheen); }
.promo h3 { margin: 6px 0 8px; font: 700 24px/1.15 var(--display); letter-spacing: -.02em; }
.promo p { margin: 0 0 14px; color: var(--muted); }
.promo .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }
.promo ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.promo li { display: flex; gap: 8px; align-items: center; }
.promo li svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }
.promo-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-shot { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), var(--hairline); background: #0c0d10; }
.promo-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } }

/* ---- Guide ---- */
.g-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.g-toc a { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .05); box-shadow: var(--hairline); transition: background .2s, color .2s; }
.g-toc a:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.guide section { scroll-margin-top: 90px; }
.g-h { margin: 0 0 12px; font: 700 22px/1.2 var(--display); letter-spacing: -.015em; }
.g-lead { margin: -4px 0 14px !important; }
.g-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-way { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); }
.g-way.rec { background: radial-gradient(120% 120% at 0% 0%, rgba(255, 125, 46, .16), rgba(255, 255, 255, .03) 65%); box-shadow: inset 0 0 0 1px rgba(255, 140, 70, .35); }
.g-way h3 { margin: 4px 0 0; font-size: 16px; }
.g-way p { margin: 0 !important; font-size: 13.5px; line-height: 1.55; }
.g-way small { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 12.5px; }
.g-tag { position: absolute; top: 18px; right: 18px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #0c0d10; background: var(--accent-2); }
.g-steps { display: grid; gap: 16px; }
.g-step { display: flex; gap: 12px; align-items: flex-start; }
.g-step .step-n { margin-top: 1px; }
.g-step p { margin: 3px 0 0; line-height: 1.55; }
.guide .set-card p { line-height: 1.6; }
.guide .set-card p:first-child { margin-top: 0; }
.g-link { color: var(--accent-2); }
.g-link:hover { text-decoration: underline; }
.g-table { margin-top: 12px; display: grid; gap: 4px; }
.g-table table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13.5px; }
.g-table td { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
.g-table td:first-child { width: 38%; padding-right: 14px; color: var(--text-2); }
.guide code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow-wrap: anywhere; }
@media (max-width: 860px) { .g-ways { grid-template-columns: 1fr; } .guide { gap: 32px; } .g-table td:first-child { width: 42%; } }
.g-way .sum-ico, .mgr-small .sum-ico { background: var(--accent-soft, rgba(255,125,46,.14)); color: var(--accent-2); }

/* ---- Google Drive link check ---- */
.link-check:empty { display: none; }
.link-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: rgba(255, 255, 255, .04); color: var(--text-2); }
.link-check svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.link-check b { display: block; color: var(--text); }
.link-check.ok { background: rgba(60, 200, 120, .1); } .link-check.ok svg { color: #4cd38a; }
.link-check.warn { background: rgba(255, 170, 60, .1); } .link-check.warn svg { color: #ffb050; }
.link-check.bad { background: rgba(255, 80, 80, .1); } .link-check.bad svg { color: #ff6b6b; }
.link-check ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.link-check .linklike { padding: 0; border: 0; background: none; color: var(--accent-2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-check .spin { width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent-2); animation: lcspin .8s linear infinite; flex: none; }
@keyframes lcspin { to { transform: rotate(360deg); } }
.field > label > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field > label > span small { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* ---- Google sign-in ---- */
.g-btn { gap: 10px; background: #fff; color: #1f1f1f; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.g-btn:hover { background: #f1f3f4; }
.g-logo { width: 18px; height: 18px; flex: none; }
.me-card .g-btn { height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
#gcard { gap: 16px; flex-wrap: wrap; }

/* CoreMX header app link */
.header-app { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255,149,80,.22); border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.header-app > .ico { width: 19px; height: 19px; }
.header-app b { display: block; font-size: 12px; line-height: 1.3; }
.header-app small { display: block; font-size: 9px; color: var(--text-2); }
.header-app:hover { background: rgba(255,125,46,.24); }
.mgr-app-subtitle { color: var(--accent-2); font-size: 16px; margin: -4px 0 16px; }
@media (max-width: 1250px) { .header-app small { display: none; } }
@media (max-width: 600px) { .header-app { padding: 8px; gap: 5px; } .header-app b { font-size: 10px; } }

/* CoreMX screenshot-led app page */
.mgr-refresh { max-width: 1400px; gap: 88px; }
.mgr-intro { text-align: center; max-width: 820px; margin: 0 auto; padding: 60px 0 0; }
.mgr-intro h2 { font: 750 clamp(38px, 5vw, 68px)/1.05 var(--display); letter-spacing: -.045em; margin: 16px 0 22px; }
.mgr-intro > p { max-width: 650px; margin: 0 auto 24px; color: var(--text-2); font-size: 17px; line-height: 1.7; }
.mgr-intro .mgr-cta { justify-content: center; }
.mgr-section-heading { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.mgr-section-heading h3 { font: 700 clamp(27px, 3vw, 38px)/1.15 var(--display); letter-spacing: -.025em; margin: 10px 0 14px; }
.mgr-section-heading p { color: var(--text-2); line-height: 1.7; margin: 0; }
.mgr-showcase { scroll-margin-top: 88px; }
.mgr-showcase .mgr-shot { border: 1px solid rgba(255,149,80,.18); box-shadow: 0 20px 90px rgba(255,125,46,.09); }
.mgr-refresh .mgr-row { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 40px; }
.mgr-feature-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mgr-feature-pills span { color: var(--text-2); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 12px; }
.mgr-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mgr-social-grid article { min-width: 0; }
.mgr-social-grid h4 { font: 600 20px var(--display); margin: 0 0 8px; }
.mgr-social-grid p { color: var(--text-2); margin: 0 0 18px; line-height: 1.6; }
.mgr-final { text-align: center; padding: 36px 20px; background: linear-gradient(135deg,var(--accent-soft),var(--panel)); border-radius: 24px; }
.mgr-final h3 { font: 700 30px/1.2 var(--display); margin: 0 0 12px; }
.mgr-final p { color: var(--text-2); margin: 0 0 22px; }
@media(max-width: 900px) { .mgr-refresh { gap: 48px; } .mgr-intro { padding-top: 30px; } .mgr-refresh .mgr-row { grid-template-columns: 1fr; gap: 22px; } .mgr-social-grid { grid-template-columns: 1fr; gap: 32px; } }

/* New accounts wait 24 hours before publishing. */
.upload-age-warning { display: flex; gap: 14px; margin: 18px 36px; padding: 20px; max-width: 828px; border: 1px solid rgba(255,149,80,.3); border-radius: 18px; background: var(--accent-soft); }
.upload-age-warning > .ico { color: var(--accent-2); width: 24px; height: 24px; flex: none; }
.upload-age-warning strong { display: block; font-size: 16px; }
.upload-age-warning p { margin: 8px 0; color: var(--text-2); }
.upload-age-warning span { color: var(--accent-2); font-size: 13px; }
.upload-age-locked { display: grid; gap: 14px; min-width: 0; padding: 0; margin: 0; border: 0; opacity: .35; filter: grayscale(1); }
.upload-age-locked, .upload-age-locked * { cursor: not-allowed !important; }
@media(max-width: 900px) { .upload-age-warning { margin: 16px 22px; } }

.site-news-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; margin: 16px 0 24px; }

/* ---- sign-in tries / lock message ---- */
.auth-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.auth-msg[hidden] { display: none; }
.auth-msg .ico { width: 16px; height: 16px; margin-top: 1px; }
.auth-msg.warn { background: var(--warn-soft); color: #ffe27a; }
.auth-msg.bad { background: var(--danger-soft); color: #ff8f88; }

/* ---- phones: keep the top bar inside the screen (the Get CoreMX button pushed it 42px too wide) ---- */
@media (max-width: 600px) {
  .header-app { padding: 0; width: 38px; height: 38px; justify-content: center; border-radius: 12px; }
  .header-app > span { display: none; }
  .top-account { gap: 5px; min-width: 0; }
  .top-account .btn-ghost { padding: 0 10px; }
}
@media (max-width: 380px) { .titlebar { gap: 6px; padding: 0 8px; } .nav-drop .chev { display: none; } .nav-drop { padding: 0 12px; } }
/* Safety net: nothing may make the page scroll sideways. clip (not hidden) keeps the sticky top bar working. */
html, body { overflow-x: clip; }
.content, .shell { min-width: 0; }

/* Anything marked hidden stays hidden, even when a class sets display (the 2-step code box showed for everyone). */
[hidden] { display: none !important; }
