/* ═══════════════════════════ Tokens ═══════════════════════════
   New Leaf Media palette: leaf green gradient on warm paper / deep navy. */
:root {
  --g1: #0b7a43; --g2: #22c968; --g3: #b8ec5c;
  --grad: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3));
  --grad-diag: linear-gradient(135deg, var(--g1), var(--g2) 50%, var(--g3));
  --font-body: "Outfit", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --r-sm: 10px; --r: 16px; --r-card: 22px; --r-xl: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --err: #e5484d; --warn: #f5a524;
}
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f8faf6; --bg-soft: #eff4ec; --panel: #ffffff; --panel-2: #f3f7f1;
  --line: #dfe7dc; --line-soft: #ebf0e8;
  --text: #0b1220; --muted: #4a5468; --muted-2: #6b7385;
  --fg-rgb: 11 18 32;
  --glass: rgb(255 255 255 / .74); --glass-line: rgb(11 18 32 / .08);
  --shadow-card: 0 1px 2px rgb(var(--fg-rgb) / .05), 0 12px 32px -18px rgb(var(--fg-rgb) / .2);
  --shadow-lg: 0 30px 70px -34px rgb(10 40 25 / .3);
  --accent: color-mix(in srgb, var(--g1) 88%, #000); --on-grad: #04160c;
  --glow-a: .16; --glow-b: .14; --grid-line: rgb(var(--fg-rgb) / .045);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d1a; --bg-soft: #0d1122; --panel: #111630; --panel-2: #161c3a;
  --line: #222a4d; --line-soft: #181f3d;
  --text: #e8eaf0; --muted: #9aa2bd; --muted-2: #7c84a1;
  --fg-rgb: 232 234 240;
  --glass: rgb(17 22 48 / .72); --glass-line: rgb(255 255 255 / .07);
  --shadow-card: 0 1px 2px rgb(0 0 0 / .35), 0 16px 36px -22px rgb(0 0 0 / .8);
  --shadow-lg: 0 34px 70px -30px rgb(0 0 0 / .85);
  --accent: color-mix(in srgb, var(--g2) 78%, #fff); --on-grad: #03140a;
  --glow-a: .13; --glow-b: .07; --grid-line: rgb(255 255 255 / .035);
}

/* ═══════════════════════════ Base ═══════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--g2) 35%, transparent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ═══════════════════════════ Backdrop ═══════════════════════════ */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop.is-local { position: absolute; z-index: 0; }
.backdrop::before, .backdrop::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }
.backdrop::before {
  width: 60vmax; height: 60vmax; left: 25%; top: 20%;
  background: radial-gradient(circle, color-mix(in srgb, var(--g2) calc(var(--glow-a) * 100%), transparent) 0%, transparent 65%);
}
.backdrop::after {
  width: 45vmax; height: 45vmax; right: -10%; top: -15%;
  background: radial-gradient(circle, color-mix(in srgb, var(--g3) calc(var(--glow-b) * 100%), transparent) 0%, transparent 65%);
}
.backdrop.bd-grid {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 30%, transparent 85%);
}
.backdrop.bd-grid::before, .backdrop.bd-grid::after { -webkit-mask-image: none; }
.backdrop.bd-aurora::before { animation: drift 18s var(--ease) infinite alternate; width: 75vmax; height: 50vmax; left: 0; }
.backdrop.bd-aurora::after { animation: drift 22s var(--ease) infinite alternate-reverse; }
.backdrop.bd-plain::before, .backdrop.bd-plain::after { display: none; }
@keyframes drift { to { transform: translate(18%, 12%) rotate(25deg) scale(1.15); } }

/* ═══════════════════════════ Nav ═══════════════════════════ */
.nav {
  position: sticky; top: 12px; z-index: 60; margin: 12px auto 0;
  width: min(var(--maxw), 100% - 24px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-line); border-radius: 999px; box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--grad-diag); color: var(--on-grad); box-shadow: 0 6px 18px -8px var(--g2);
}
.brand-badge svg { width: 20px; height: 20px; }
.brand-name { font-size: 15px; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: .2s var(--ease); }
.nav-links a:hover { color: var(--text); background: rgb(var(--fg-rgb) / .05); }
.nav-links a.active { color: var(--text); background: rgb(var(--fg-rgb) / .07); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; color: var(--text); transition: transform .3s var(--spring), border-color .2s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.05); border-color: var(--g2); }
.icon-btn svg { width: 18px; height: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--grad-diag); color: var(--on-grad); border: 0;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  display: none; z-index: 70;
}
.menu.open .menu-pop { display: block; animation: pop .25s var(--ease); }
.menu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.menu-pop .who b { display: block; font-size: 14px; }
.menu-pop .who span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: none; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: rgb(var(--fg-rgb) / .05); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ═══════════════════════════ Buttons, chips, inputs ═══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--g2) 60%, var(--line)); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-grad { background: var(--grad); border-color: transparent; color: var(--on-grad); box-shadow: 0 10px 26px -12px var(--g2); }
.btn-grad:hover { box-shadow: 0 16px 34px -12px var(--g2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); }
.btn svg { width: 16px; height: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-card);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g2) 22%, transparent); }
.dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--g2) 0%, transparent); } }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--mono); letter-spacing: .04em; }
.badge.live { background: color-mix(in srgb, var(--g2) 16%, transparent); color: var(--accent); }
.badge.draft { background: rgb(var(--fg-rgb) / .07); color: var(--muted); }
.badge.role-admin { background: color-mix(in srgb, var(--g1) 18%, transparent); color: var(--accent); }
.badge.role-editor { background: color-mix(in srgb, var(--g3) 25%, transparent); color: var(--text); }
.badge.role-listener { background: rgb(var(--fg-rgb) / .07); color: var(--muted); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field small { color: var(--muted-2); font-size: 12.5px; }
.input, .field input:not([type=checkbox]):not([type=color]):not([type=range]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--g2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g2) 18%, transparent);
}
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14.5px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: .25s var(--ease); flex: none; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: .25s var(--spring); }
.switch input:checked { background: var(--g2); }
.switch input:checked::after { left: 21px; }

/* ═══════════════════════════ Cards ═══════════════════════════ */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card.glass { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--glass-line); }
.card-pad { padding: clamp(18px, 3vw, 28px); }

/* ═══════════════════════════ Mega hero text ═══════════════════════════ */
.mega {
  font-family: var(--font-display); font-weight: 900; line-height: .82; letter-spacing: -.055em;
  font-size: clamp(64px, 19cqi, 280px); white-space: nowrap; text-align: center; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
}
.mega span {
  display: inline-block; background: var(--grad); background-size: 100vw 100%; background-attachment: fixed;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms);
}
.is-local .mega span, .preview-frame .mega span { background-attachment: scroll; background-size: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); filter: blur(8px); } }
.font-serif .mega { font-weight: 400; letter-spacing: -.03em; }

/* ═══════════════════════════ Hero ═══════════════════════════ */
main { container-type: inline-size; }
.hero { position: relative; padding-top: clamp(24px, 6vw, 64px); }
.hero .mega { margin-bottom: clamp(-120px, -9cqi, -30px); position: relative; z-index: 0; }
.hero-grid {
  position: relative; z-index: 1; display: grid; gap: clamp(24px, 4vw, 48px); align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.code-line { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.code-line .k { color: var(--accent); } .code-line .s { color: color-mix(in srgb, var(--g1) 80%, var(--text)); }
[data-theme="dark"] .code-line .s { color: var(--g3); }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; max-width: 14ch; }
.hero h1 .grad-text { position: relative; }
.hero h1 .grad-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .08em; background: var(--grad); border-radius: 9px; opacity: .55; }
.hero p.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.float-card { padding: 22px; display: grid; gap: 10px; animation: floaty 6s ease-in-out infinite; }
.float-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.float-card h3 { font-size: 22px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ═══════════════════════════ Stats & sections ═══════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: clamp(40px, 7vw, 80px); }
.stat { padding: 22px 24px; }
.stat b { display: inline-block; padding-right: .06em; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.section { padding-block: clamp(56px, 9vw, 110px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; max-width: 18ch; }
.section-head p { color: var(--muted); margin: 0; max-width: 56ch; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ═══════════════════════════ Episode cards & covers ═══════════════════════════ */
.ep-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ep-card { padding: 12px; display: grid; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; }
.ep-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ep-card .cover { aspect-ratio: 16 / 10; }
.ep-card-body { padding: 4px 8px 8px; display: grid; gap: 6px; }
.ep-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-card h3 { font-size: 21px; font-weight: 700; }
.ep-card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card .play-fab { position: absolute; right: 24px; top: calc(12px + (100% - 24px) * 0); }
.ep-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 6px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; flex: none; transition: transform .3s var(--spring), background .2s;
}
.round-btn:hover { transform: scale(1.08); }
.round-btn.grad { background: var(--grad-diag); color: var(--on-grad); border: 0; box-shadow: 0 8px 20px -10px var(--g2); }
.round-btn svg { width: 18px; height: 18px; }

.cover { position: relative; border-radius: calc(var(--r-card) - 8px); overflow: hidden; background: var(--panel-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.gen-cover {
  position: absolute; inset: 0; background: var(--grad-diag); color: var(--on-grad);
  display: grid; padding: clamp(14px, 4%, 26px); grid-template-rows: auto 1fr auto; text-align: left;
}
.gen-cover::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 80% 10%, rgb(255 255 255 / .55), transparent 45%),
              radial-gradient(circle at 10% 100%, rgb(0 0 0 / .25), transparent 50%);
}
.gen-cover > * { position: relative; }
.gen-cover .gc-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.gen-cover .gc-num { align-self: end; font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 28cqi, 180px); line-height: .8; letter-spacing: -.06em; }
.gen-cover .gc-title { font-weight: 700; font-size: 14px; line-height: 1.25; max-width: 24ch; }
.gen-cover svg.leaf { position: absolute; right: -6%; bottom: -12%; width: 52%; opacity: .16; }
.cover-wrap { container-type: inline-size; }

/* ═══════════════════════════ Episode page ═══════════════════════════ */
.ep-hero { padding-top: clamp(20px, 5vw, 56px); position: relative; }
.ep-hero .mega { margin-bottom: clamp(-110px, -8cqi, -24px); }
.ep-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.layout-centered .ep-hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.layout-centered .ep-hero-grid .hero-copy { justify-items: center; order: 2; }
.layout-centered .ep-hero-grid .ep-cover-card { width: min(100%, 420px); order: 1; }
.ep-hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; }
.ep-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ep-cover-card { padding: 12px; }
.ep-cover-card .cover { aspect-ratio: 1; }
.notes { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ts { border: 0; background: color-mix(in srgb, var(--g2) 15%, transparent); color: var(--accent); font-family: var(--mono); font-size: .85em; padding: 1px 8px; border-radius: 6px; }
.ts:hover { background: color-mix(in srgb, var(--g2) 28%, transparent); }
.side-card { padding: 22px; display: grid; gap: 14px; position: sticky; top: 96px; }
.side-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.side-card dt { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.side-card dd { margin: 0; font-weight: 500; }

/* ═══════════════════════════ Auth ═══════════════════════════ */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); position: relative; container-type: inline-size; }
.auth .mega { position: absolute; top: 6vh; left: 0; right: 0; opacity: .9; }
.auth-card { position: relative; width: min(440px, 100%); padding: clamp(24px, 5vw, 36px); display: grid; gap: 18px; margin-top: 14vh; }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn { width: 100%; }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: 12px; }
.form-msg.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.form-msg.ok { background: color-mix(in srgb, var(--g2) 14%, transparent); color: var(--accent); }
.new-here { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 18px; box-shadow: none; transition: border-color .2s, transform .25s var(--spring); }
.new-here:hover { border-color: var(--g2); transform: translateY(-2px); }
.new-here b { display: block; font-size: 15px; }
.new-here small { display: block; color: var(--muted); font-size: 13px; }
body.previewing .nav { top: 52px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* ═══════════════════════════ Studio & admin ═══════════════════════════ */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: clamp(28px, 5vw, 56px); margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs a, .tabs button { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); border: 0; background: none; }
.tabs .on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }

.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 13px; }
.thumb { width: 64px; aspect-ratio: 1; border-radius: 12px; container-type: inline-size; }
.thumb .gen-cover { padding: 6px; }
.thumb .gen-cover .gc-top, .thumb .gen-cover .gc-title { display: none; }
.thumb .gen-cover .gc-num { font-size: 30px; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
td select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.editor-form { display: grid; gap: 18px; }
.editor-form .card { display: grid; gap: 16px; }
.editor-form h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.editor-form h2 .eyebrow { font-size: 11.5px; }
.preview-col { position: sticky; top: 92px; display: grid; gap: 12px; }
.preview-frame {
  position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); container-type: inline-size; min-height: 440px; padding: 22px 22px 28px;
  box-shadow: var(--shadow-lg);
}
.preview-frame > :not(.backdrop) { position: relative; z-index: 1; }
.preview-frame .ep-hero-grid { grid-template-columns: 1.1fr .9fr; }
.preview-frame.layout-centered .ep-hero-grid { grid-template-columns: 1fr; }
.preview-frame .ep-hero h1 { font-size: clamp(22px, 5.4cqi, 40px); }
.preview-frame .lede { font-size: 14px; }
.preview-frame .mega { font-size: 21cqi; }
.no-anim .mega span, .no-anim .reveal { animation: none; }
.thumb .cover { width: 100%; height: 100%; border-radius: 12px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.preset { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 6px; display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: left; transition: transform .2s var(--spring); }
.preset:hover { transform: translateY(-2px); }
.preset.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.preset i { display: block; height: 34px; border-radius: 9px; }
.preset span { padding: 0 4px 2px; }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px; background: var(--panel); }
.color-in input[type=color] { width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.color-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-in input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-in code { font-size: 12.5px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.seg button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
input[type=range] { accent-color: var(--g2); width: 100%; }
.drop {
  border: 1.5px dashed var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; text-align: center;
  background: var(--panel-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--g2); background: color-mix(in srgb, var(--g2) 6%, var(--panel-2)); }
.drop b { font-size: 14.5px; } .drop small { color: var(--muted); }
.drop input { display: none; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.save-bar {
  position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
}
.save-bar .status { font-size: 14px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#save-bar { position: sticky; overflow: hidden; }
.save-info { display: grid; gap: 4px; min-width: 0; }
.save-bar.busy .status { color: var(--text); font-weight: 600; }
.save-bar.saved .status { color: var(--accent); font-weight: 600; }
.save-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted-2); }
.save-steps li::before { content: "○ "; }
.save-steps li.done { color: var(--accent); }
.save-steps li.done::before { content: "✓ "; }
.save-steps li.now { color: var(--text); font-weight: 600; }
.save-steps li.now::before { content: "● "; color: var(--g2); }
.save-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.save-bar.busy .save-track, .save-bar.saved .save-track { background: color-mix(in srgb, var(--g2) 15%, transparent); }
.save-track i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s var(--ease); }
.save-bar.indeterminate .save-track i { background-image: linear-gradient(90deg, var(--g1), var(--g3), var(--g1)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
#save-btn[disabled] { opacity: 1; filter: saturate(.4); }
.save-bar.busy #save-btn { filter: none; min-width: 120px; }
.leave-dlg { display: flex; gap: 16px; align-items: flex-start; }
.leave-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 75%, var(--text)); }
dialog { animation: pop .25s var(--ease); }

.empty { text-align: center; padding: 56px 24px; display: grid; gap: 14px; justify-items: center; }
.empty .brand-badge { width: 56px; height: 56px; border-radius: 16px; }
.empty .brand-badge svg { width: 30px; height: 30px; }

/* ═══════════════════════════ Player dock ═══════════════════════════ */
.player {
  position: fixed; left: 50%; bottom: 16px; z-index: 80; width: min(760px, calc(100% - 24px));
  transform: translate(-50%, 140%); transition: transform .5s var(--ease);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
}
.player.show { transform: translate(-50%, 0); }
.vinyl {
  width: 46px; height: 46px; border-radius: 50%; flex: none; position: relative;
  background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
  animation: spin 3.2s linear infinite; animation-play-state: paused;
}
.vinyl::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--grad-diag); box-shadow: inset 0 0 0 4px rgb(0 0 0 / .25); }
.player.playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-btns { display: flex; align-items: center; gap: 4px; }
.pl-btns button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--text); }
.pl-btns button:hover { background: rgb(var(--fg-rgb) / .07); }
.pl-btns button svg { width: 18px; height: 18px; }
.pl-btns .pl-play { width: 44px; height: 44px; background: var(--grad-diag); color: var(--on-grad); box-shadow: 0 8px 20px -10px var(--g2); }
.pl-btns .pl-play:hover { background: var(--grad-diag); transform: scale(1.06); }
.pl-mid { display: grid; gap: 4px; min-width: 0; }
.pl-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); margin-right: 8px; font-weight: 500; }
.pl-scrub { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pl-scrub input { flex: 1; height: 4px; }
.pl-right { display: flex; align-items: center; gap: 6px; }
.pl-speed { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 4px 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; min-width: 52px; }
.bars { display: flex; gap: 2px; align-items: end; height: 14px; }
.bars i { width: 3px; background: var(--g2); border-radius: 2px; height: 30%; }
.player.playing .bars i { animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.2s !important; } .bars i:nth-child(3) { animation-delay: -.5s !important; } .bars i:nth-child(4) { animation-delay: -.7s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
body.has-player { padding-bottom: 96px; }

/* ═══════════════════════════ Toast, dialog, footer ═══════════════════════════ */
.toasts { position: fixed; top: 84px; right: 16px; z-index: 130; display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); max-width: 360px; }
.toast.err { background: var(--err); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--text); padding: 26px; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(5 10 20 / .5); backdrop-filter: blur(4px); }
dialog form { display: grid; gap: 14px; }
dialog h3 { font-size: 22px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.secret { white-space: pre-wrap; font-family: var(--mono); padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); word-break: break-all; }
.footer { padding: 64px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer .mono { font-size: 12px; letter-spacing: .1em; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--g2); animation: spin .8s linear infinite; }
.reveal { animation: rise .8s var(--ease) both; }

/* ═══════════════════════════ Onboarding ═══════════════════════════ */
.onboard {
  min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(20px, 4vw, 56px) var(--gutter);
  max-width: 1280px; margin-inline: auto; container-type: inline-size;
}
.pitch { position: relative; display: grid; gap: 28px; align-content: center; padding-block: 12px; }
.pitch-copy { display: grid; gap: 14px; }
.pitch h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; max-width: 15ch; }
.pitch p { font-size: 17px; max-width: 48ch; margin: 0; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks b { display: block; font-size: 15.5px; }
.perks span:not(.perk-ic) { color: var(--muted); font-size: 14.5px; }
.perk-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--g2) 14%, var(--panel)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--g2) 25%, var(--line)); }
.perk-ic svg { width: 20px; height: 20px; }
.how ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.how li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.how li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--grad-diag); color: var(--on-grad); }
.pitch-mega { position: absolute; z-index: -1; left: -4%; bottom: -16%; font-size: clamp(80px, 15cqi, 220px); text-align: left; opacity: .22; }

.reg { padding: clamp(22px, 4vw, 36px); display: grid; gap: 22px; }
.reg h2 { font-size: 26px; font-weight: 800; }
.reg .pane { display: grid; gap: 16px; }
.reg .pane[hidden], .reg [hidden] { display: none; }
.reg .pane p { margin: 6px 0 0; }
.pane-in { animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(18px); } }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted-2); margin-left: 4px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.st { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.st-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; border: 1.5px solid var(--line); background: var(--panel); transition: .3s var(--ease); }
.st.on { color: var(--text); }
.st.on .st-dot { border-color: var(--g2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g2) 20%, transparent); }
.st.done .st-dot { background: var(--grad-diag); color: var(--on-grad); border-color: transparent; }
.st-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; min-width: 16px; }
.st-line i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s var(--ease); }
.st-line.done i { width: 100%; }

.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.choice[data-choice="team_size"] { grid-template-columns: repeat(5, 1fr); }
.choice[data-choice="relationship"] { grid-template-columns: 1fr; }
.choice button {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); font-size: 14px; transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.choice[data-choice="team_size"] button { justify-content: center; padding: 11px 6px; }
.choice[data-choice="team_size"] .tick { display: none; }
.choice button:hover { border-color: color-mix(in srgb, var(--g2) 55%, var(--line)); }
.choice button:active { transform: scale(.97); }
.choice button[aria-checked="true"] { border-color: var(--g2); background: color-mix(in srgb, var(--g2) 10%, var(--panel)); box-shadow: 0 0 0 1px var(--g2); }
.choice b { font-weight: 600; display: block; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.choice[data-choice="relationship"] button { padding: 14px 16px; }
.tick { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: .2s var(--ease); }
.choice:not(.multi) .tick { border-radius: 50%; }
.tick svg { width: 13px; height: 13px; }
.choice button[aria-checked="true"] .tick { background: var(--grad-diag); border-color: transparent; color: var(--on-grad); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 9px; display: grid; place-items: center; }
.pw-eye svg { width: 18px; height: 18px; }
.pw-eye.on { color: var(--accent); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; align-items: center; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.pw-meter small { grid-column: 1 / -1; }
.pw-meter[data-score="0"] i:nth-child(-n+1), .pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--err); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] i:nth-child(-n+3), .pw-meter[data-score="4"] i { background: var(--g2); }

.summary { display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.sum-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); align-items: start; font-size: 14.5px; }
.sum-row:last-child { border-bottom: 0; }
.sum-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: color-mix(in srgb, var(--g2) 13%, transparent); color: var(--accent); margin: 2px 2px 2px 0; font-weight: 500; }
.reg-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.reg-actions .btn-grad { margin-left: auto; min-width: 170px; }
.reg-foot { margin: 0; font-size: 14px; text-align: center; }
.reg-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 18px 0; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-diag); color: var(--on-grad); animation: pop .5s var(--spring); box-shadow: 0 14px 30px -12px var(--g2); }
.done-ic svg { width: 30px; height: 30px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pending-card { width: min(560px, 100%); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--grad); }
.timeline b { display: block; font-size: 15px; }
.timeline span:not(.tl-dot) { color: var(--muted); font-size: 13.5px; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.tl-dot svg { width: 15px; height: 15px; }
.timeline .done .tl-dot { background: var(--grad-diag); border-color: transparent; color: var(--on-grad); }
.timeline .active .tl-dot { border-color: var(--g2); position: relative; }
.timeline .active .tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--g2); animation: pulse 1.6s infinite; box-shadow: 0 0 0 4px color-mix(in srgb, var(--g2) 25%, transparent); }
.timeline .stopped .tl-dot { border-color: var(--err); }
.timeline .stopped b { color: var(--muted); }

/* ═══════════════════════════ Admin: requests & preview ═══════════════════════════ */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--grad-diag); color: var(--on-grad); vertical-align: 1px; }
.requests { margin-bottom: 28px; display: grid; gap: 16px; }
.requests-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.requests-head h2 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.requests-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.count-pill { font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: var(--grad-diag); color: var(--on-grad); }
.req-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.req-card { padding: 20px; display: grid; gap: 14px; transition: opacity .35s var(--ease), transform .35s var(--ease); position: relative; overflow: hidden; }
.req-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.req-card.leaving { opacity: 0; transform: scale(.96) translateY(-6px); }
.req-who { display: flex; gap: 12px; align-items: center; }
.req-who b { display: block; }
.req-who span { color: var(--muted); font-size: 13px; word-break: break-all; }
.req-who time { margin-left: auto; align-self: start; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.req-co { font-size: 19px; font-weight: 700; line-height: 1.25; }
.req-co small { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.req-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.req-rel { justify-self: start; }
.req-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.req-foot select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; }
.req-foot .btn-grad { margin-left: auto; }
.caught-up { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.caught-up .done-ic { width: 40px; height: 40px; animation: none; box-shadow: none; }
.caught-up .done-ic svg { width: 20px; height: 20px; }
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools .input { width: min(280px, 100%); padding: 9px 14px; border-radius: 999px; }
.status-badge.pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--text)); }
.status-badge.declined { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }

.preview-card { padding: 20px 22px; display: grid; gap: 14px; margin-bottom: 18px; }
.preview-card .viewas-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.viewas {
  position: sticky; top: 0; z-index: 75; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: var(--on-grad); background: var(--grad);
  box-shadow: 0 6px 20px -10px var(--g2);
}
.viewas select { border: 0; border-radius: 99px; padding: 5px 12px; font-weight: 600; font-size: 13px; background: rgb(255 255 255 / .85); color: #0b1220; }
.viewas button { border: 1px solid rgb(0 0 0 / .2); border-radius: 99px; padding: 5px 14px; font-weight: 600; font-size: 13px; background: rgb(0 0 0 / .12); color: inherit; }
.viewas button:hover { background: rgb(0 0 0 / .2); }

/* ═══════════════════════════ Studio: seasons ═══════════════════════════ */
.studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; }
.studio-sum { font-size: 14.5px; color: var(--muted); }
.studio-sum b { color: var(--text); }
.studio-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.studio-tools .input { width: min(240px, 100%); padding: 9px 14px; border-radius: 999px; }
.studio-seasons { display: grid; gap: 16px; }
.studio-season { overflow: hidden; }
.studio-season[hidden] { display: none; }
.studio-season > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; transition: background .2s;
}
.studio-season > summary::-webkit-details-marker { display: none; }
.studio-season > summary:hover { background: rgb(var(--fg-rgb) / .03); }
.studio-season[open] > summary { border-bottom: 1px solid var(--line); }
.ss-chev { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted);
  transition: transform .25s var(--ease); }
.studio-season[open] .ss-chev { transform: rotate(90deg); }
.ss-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--grad-diag); color: var(--on-grad); font-weight: 900; font-size: 18px; letter-spacing: -.03em; box-shadow: 0 8px 20px -12px var(--g2); }
.ss-info { display: grid; gap: 3px; min-width: 0; flex: 1 1 220px; }
.ss-title { font-size: 19px; font-weight: 800; }
.ss-meta { font-size: 13.5px; color: var(--muted); }
.ss-meta em { font-style: normal; color: color-mix(in srgb, var(--warn) 75%, var(--text)); font-weight: 600; }
.ss-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-nomatch { padding: 18px; margin: 0; text-align: center; }
/* Fixed column widths so every season's table lines up with the next. */
.studio-table { table-layout: fixed; min-width: 760px; }
.studio-table th:nth-child(1) { width: 60px; }
.studio-table th:nth-child(2) { width: 76px; }
.studio-table th:nth-child(4) { width: 96px; }
.studio-table th:nth-child(5) { width: 104px; }
.studio-table th:nth-child(6) { width: 128px; }
.studio-table th:nth-child(7) { width: 168px; }
.studio-table td { padding: 10px 14px; }
.studio-table .cell-actions { flex-wrap: nowrap; }
.studio-table .st-num { width: 44px; color: var(--muted); font-weight: 700; text-align: center; }
.studio-table .st-title { min-width: 220px; }
.studio-table .st-title .sub { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }
.studio-table .thumb { width: 52px; }
.studio-table .thumb .gen-cover .gc-num { font-size: 24px; }

/* ═══════════════════════════ Bulk upload ═══════════════════════════ */
.bulk { display: grid; gap: 18px; }
.bulk-opts, .bulk-files { display: grid; gap: 16px; }
.bulk-drop { padding: 34px 18px; }
.bulk-drop span svg { width: 28px; height: 28px; color: var(--accent); }
.bulk-pick { text-align: center; margin-top: -6px; }
.bulk-summary { font-size: 14px; color: var(--muted); padding: 4px 2px 12px; }
.bulk-summary b { color: var(--text); }
.bulk-table td { vertical-align: top; padding: 12px 10px; }
.bulk-table th { padding: 10px; }
.bulk-table td:first-child, .bulk-table th:first-child { width: 36px; padding-top: 22px; }
.bulk-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--g2); }
.b-num { width: 72px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-weight: 600; }
.b-title-cell { min-width: 260px; }
.b-title { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; }
.b-num:focus, .b-title:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2) 18%, transparent); }
.b-file, .b-warn, .b-err { display: block; font-size: 12.5px; margin-top: 5px; color: var(--muted); word-break: break-all; }
.b-warn { color: color-mix(in srgb, var(--warn) 75%, var(--text)); }
.b-err { color: var(--err); max-width: 260px; }
.b-status { width: 170px; padding-top: 20px !important; }
.b-state { font-size: 13px; font-weight: 600; white-space: nowrap; }
.b-state.working { color: var(--accent); }
.b-state.done { color: var(--accent); }
.b-state.failed { color: var(--err); }
.progress.mini { height: 5px; margin-top: 6px; }
.b-remove { width: 30px; height: 30px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 18px; line-height: 1; }
.b-remove:hover { color: var(--err); border-color: var(--err); }
.bulk-table tr.excluded td:not(:first-child) { opacity: .5; }
.bulk-table tr.done td { background: color-mix(in srgb, var(--g2) 5%, transparent); }

/* ═══════════════════════════ Seasons ═══════════════════════════ */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.on-top { position: relative; z-index: 2; }
.season-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.season-card { position: relative; padding: 12px; display: grid; gap: 16px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.season-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.season-art {
  position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r-card) - 8px); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--g2) 45%, transparent), transparent 60%),
              linear-gradient(160deg, #0b1220, color-mix(in srgb, var(--g1) 55%, #0b1220));
  container-type: inline-size;
}
.season-big {
  position: absolute; left: 6%; bottom: -3%; font-weight: 900; font-size: 24cqi; line-height: .8; letter-spacing: -.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .95;
}
/* Episode covers fanned out like a hand of cards: EP 01 in front, the rest peeking out to the right. */
.season-fan { position: absolute; right: 20%; top: 50%; width: 36%; aspect-ratio: 1; transform: translateY(-52%); }
.fan-item { position: absolute; inset: 0; transition: transform .5s var(--spring); transform-origin: 50% 110%;
  transform: translateX(calc(var(--j) * 20%)) rotate(calc(var(--j) * 8deg));
  z-index: calc(10 - var(--j)); filter: drop-shadow(0 14px 22px rgb(0 0 0 / .45)); }
.season-card:hover .fan-item { transform: translateX(calc(var(--j) * 30%)) rotate(calc(var(--j) * 13deg)); }
.fan-item .cover { width: 100%; height: 100%; border-radius: 12px; }
.fan-item .gen-cover { padding: 8px; }
.fan-item .gc-top, .fan-item .gc-title { display: none; }
.fan-item .gc-num { font-size: 42cqi; }
.season-body { padding: 0 8px; display: grid; gap: 6px; }
.season-body h3 { font-size: 26px; font-weight: 800; }
.season-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.season-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px 6px; flex-wrap: wrap; }

.season-hero { padding-top: clamp(24px, 6vw, 64px); }
.season-hero .mega { margin-bottom: clamp(-110px, -8cqi, -24px); }
.season-hero-copy { position: relative; z-index: 1; display: grid; gap: 16px; }
.season-hero-copy h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 800; max-width: 18ch; }
.season-hero .filters { display: flex; gap: 6px; }
.season-hero .filters a { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; }
.season-hero .filters a.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.tracklist { list-style: none; margin: 0; padding: 8px; display: grid; }
.track {
  position: relative; display: grid; grid-template-columns: 40px 64px minmax(0, 1fr) auto 44px; gap: 16px; align-items: center;
  padding: 12px 14px; border-radius: 16px; transition: background .2s;
}
.track + .track { border-top: 1px solid var(--line-soft); }
.track:hover { background: rgb(var(--fg-rgb) / .04); }
.track.is-draft { opacity: .7; }
.track-num { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; }
.track.now .track-num { color: var(--accent); }
.track-thumb { width: 64px; aspect-ratio: 1; container-type: inline-size; }
.track-thumb .cover { width: 100%; height: 100%; border-radius: 12px; }
.track-thumb .gen-cover { padding: 6px; }
.track-thumb .gc-top, .track-thumb .gc-title { display: none; }
.track-thumb .gc-num { font-size: 30px; }
.track-main { display: grid; gap: 3px; min-width: 0; }
.track-title { font-weight: 700; font-size: 17px; }
.track-main p { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-len { color: var(--muted); font-size: 13.5px; }

.ep-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.ep-step { padding: 18px 20px; display: grid; gap: 4px; transition: transform .3s var(--spring), border-color .2s; }
.ep-step:hover { transform: translateY(-3px); border-color: var(--g2); }
.ep-step.next { text-align: right; grid-column: 2; }
.ep-step b { font-size: 16.5px; }

/* ═══════════════════════════ Full-screen player ═══════════════════════════ */
.pl-expand { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; transition: transform .25s var(--spring); }
.pl-expand:hover { transform: translateY(-2px); border-color: var(--g2); }
.pl-expand svg { width: 18px; height: 18px; }
.pl-title, .vinyl { cursor: pointer; }
body.fsp-lock { overflow: hidden; }

.fsp {
  position: fixed; inset: 0; z-index: 120; overflow: hidden; color: var(--text); background: #070a14;
  display: grid; grid-template-rows: auto 1fr; padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) max(18px, env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(6%); transition: opacity .38s var(--ease), transform .45s var(--ease);
}
.fsp.open { opacity: 1; transform: none; }
.fsp[hidden] { display: none; }
.fsp-bg { position: absolute; inset: -20%; filter: blur(70px) saturate(1.3); opacity: .7; pointer-events: none; }
.fsp-bg i { position: absolute; border-radius: 50%; width: 55vmax; height: 55vmax; animation: drift 16s var(--ease) infinite alternate; }
.fsp-bg i:nth-child(1) { left: 0; top: 0; background: radial-gradient(circle, color-mix(in srgb, var(--g1) 75%, transparent), transparent 65%); }
.fsp-bg i:nth-child(2) { right: 0; top: 10%; background: radial-gradient(circle, color-mix(in srgb, var(--g2) 45%, transparent), transparent 65%); animation-duration: 21s; animation-direction: alternate-reverse; }
.fsp-bg i:nth-child(3) { left: 25%; bottom: -10%; background: radial-gradient(circle, color-mix(in srgb, var(--g3) 30%, transparent), transparent 65%); animation-duration: 25s; }
.fsp:not(.playing) .fsp-bg i { animation-play-state: paused; }
.fsp-viz { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.fsp-top, .fsp-body { position: relative; z-index: 1; }
.fsp-top { z-index: 2; } /* keep "Now playing" readable above the artwork's glow */
.fsp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fsp-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .06); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.fsp-icon:hover { background: rgb(255 255 255 / .14); }
.fsp-icon svg { width: 22px; height: 22px; }
.fsp-where { text-align: center; display: grid; gap: 2px; min-width: 0; }
.fsp-where span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.fsp-where b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* "safe" centring: if the content is ever taller than the screen it overflows downwards,
   never up under the header. */
.fsp-body { width: min(520px, 100%); margin: 0 auto; display: grid; align-content: safe center; gap: clamp(12px, 2.2vh, 26px); padding-bottom: 2vh; }
/* Artwork takes whatever height is left after the title, controls and header (~540px). */
.fsp-art-wrap { position: relative; width: clamp(140px, calc(100dvh - 540px), min(100%, 420px)); aspect-ratio: 1; margin: 0 auto; container-type: inline-size;
  transform: scale(var(--pulse, 1)); transition: transform .08s linear; }
.fsp-glow { position: absolute; inset: 6%; border-radius: 30px; background: var(--grad-diag); filter: blur(42px); opacity: var(--glow, .4); transition: opacity .1s linear; }
.fsp-art { position: relative; width: 100%; height: 100%; }
.fsp-art .cover { width: 100%; height: 100%; border-radius: clamp(16px, 4cqi, 28px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7); }
.fsp-art .gc-num { font-size: 34cqi; }
.fsp:not(.playing) .fsp-art-wrap { transform: scale(.94); transition: transform .5s var(--ease); }
.fsp-meta { display: grid; gap: 6px; text-align: center; }
.fsp-code { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: color-mix(in srgb, var(--g3) 80%, #fff); }
.fsp-meta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: #fff; }
.fsp-notes { font-size: 14px; color: rgb(255 255 255 / .7); justify-self: center; }
.fsp-notes:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fsp-scrub { display: grid; gap: 8px; }
.fsp-scrub input { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--g2) var(--fill, 0%), rgb(255 255 255 / .18) var(--fill, 0%)); }
.fsp-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.fsp-scrub input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.fsp-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: rgb(255 255 255 / .65); }
.fsp-controls { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 22px); }
.fsp-controls button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: none; color: #fff; display: grid; place-items: center; transition: transform .2s var(--spring), background .2s; }
.fsp-controls button:hover { background: rgb(255 255 255 / .1); }
.fsp-controls button:active { transform: scale(.92); }
.fsp-controls button:disabled { opacity: .3; pointer-events: none; }
.fsp-controls svg { width: 28px; height: 28px; }
.fsp-controls .fsp-play { width: 78px; height: 78px; background: var(--grad-diag); color: var(--on-grad); box-shadow: 0 16px 36px -12px var(--g2); }
.fsp-controls .fsp-play:hover { background: var(--grad-diag); transform: scale(1.05); }
.fsp-controls .fsp-play svg { width: 34px; height: 34px; }
.fsp-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.fsp .pl-speed { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .15); color: #fff; }
.fsp-upnext { border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .06); color: rgb(255 255 255 / .85); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; max-width: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsp-upnext span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--g3) 80%, #fff); margin-right: 6px; }
.fsp-upnext:hover { background: rgb(255 255 255 / .12); }
@media (min-width: 1100px) and (min-height: 700px) {
  .fsp:not(.with-list) .fsp-body { flex-basis: 1040px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; }
  .fsp:not(.with-list) .fsp-art-wrap { grid-row: 1 / span 4; width: min(100%, 60vh, 480px); }
  .fsp:not(.with-list) .fsp-meta { text-align: left; }
  .fsp:not(.with-list) .fsp-notes { justify-self: start; }
}

/* Episode list: a column beside the player on wide screens, a bottom sheet on phones. */
.fsp-top-right { display: flex; gap: 8px; }
.fsp [data-fs="list"][aria-expanded="true"] { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .3); }
.fsp-stage { position: relative; z-index: 1; display: flex; min-height: 0; gap: clamp(16px, 3vw, 40px); }
.fsp-stage .fsp-body { flex: 0 1 560px; width: auto; min-width: 0; margin: 0 auto; }
.fsp-list {
  display: none; flex-direction: column; width: 380px; flex: none; min-height: 0; margin: 12px 0 8px;
  border-radius: 24px; background: rgb(10 14 28 / .55); border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); overflow: hidden;
}
.fsp.with-list .fsp-list { display: flex; animation: listIn .35s var(--ease); }
@keyframes listIn { from { opacity: 0; transform: translateX(24px); } }
.fsp-list-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 20px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.fsp-list-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fsp-list-head b { color: #fff; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsp-list-head span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.fsp-auto { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .85); cursor: pointer; white-space: nowrap; }
.fsp-auto input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: rgb(255 255 255 / .2); position: relative; cursor: pointer; transition: .25s var(--ease); margin: 0; }
.fsp-auto input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .25s var(--spring); }
.fsp-auto input:checked { background: var(--g2); }
.fsp-auto input:checked::after { left: 16px; }
.fsp-list-close { display: none; width: 36px; height: 36px; }
.fsp-eps { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.fsp-ep {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left;
  padding: 11px 12px; border: 0; border-radius: 14px; background: none; color: #fff; transition: background .2s;
}
.fsp-ep:hover { background: rgb(255 255 255 / .07); }
.fsp-ep:disabled { opacity: .4; cursor: default; }
.fsp-ep.now { background: color-mix(in srgb, var(--g2) 18%, rgb(255 255 255 / .04)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g2) 45%, transparent); }
.fsp-ep-num { font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: rgb(255 255 255 / .5); display: grid; place-items: center; }
.fsp-ep-main { display: grid; gap: 3px; min-width: 0; }
.fsp-ep-main b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsp-ep-main small { font-size: 12px; color: rgb(255 255 255 / .55); display: flex; align-items: center; gap: 4px; }
.fsp-ep-main small svg { width: 12px; height: 12px; }
.fsp-ep.done .fsp-ep-main small { color: color-mix(in srgb, var(--g3) 80%, #fff); }
.fsp-ep.done b { color: rgb(255 255 255 / .7); }
.fsp-ep.now .fsp-ep-main small { color: color-mix(in srgb, var(--g3) 85%, #fff); font-weight: 600; }
.fsp-ep-bar { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .14); overflow: hidden; margin-top: 3px; }
.fsp-ep-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.eq { display: flex; gap: 2px; align-items: end; height: 14px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--g3); }
.fsp.playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s !important; } .eq i:nth-child(3) { animation-delay: -.65s !important; }

@media (max-width: 1099px), (max-height: 699px) {
  .fsp-stage { display: grid; }
  .fsp-stage .fsp-body { width: min(520px, 100%); margin: 0 auto; }
  .fsp-list {
    display: flex; position: fixed; left: 8px; right: 8px; bottom: 0; width: auto; height: min(72vh, 620px); margin: 0;
    border-radius: 24px 24px 0 0; z-index: 3; background: rgb(10 14 28 / .92);
    transform: translateY(105%); transition: transform .42s var(--ease); animation: none;
  }
  .fsp.with-list .fsp-list { transform: none; animation: none; }
  .fsp-list-close { display: grid; }
  .fsp-list-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgb(255 255 255 / .25); }
}

/* ═══════════════════════════ Responsive ═══════════════════════════ */
@media (max-width: 960px) {
  .onboard { grid-template-columns: 1fr; }
  .pitch .perks, .pitch .how, .pitch-mega { display: none; }
  .editor { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .notes { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 760px) {
  .hero-grid, .ep-hero-grid { grid-template-columns: 1fr; }
  .float-card { animation: none; }
  .nav { padding: 6px; gap: 6px; }
  .brand-name { display: none; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .player { grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 26px; gap: 10px; }
  .player .vinyl { display: none; }
  .pl-btns .pl-skip { display: none; }
  .colors { grid-template-columns: 1fr; }
  .track { grid-template-columns: 28px 52px minmax(0, 1fr) 44px; gap: 12px; padding: 10px 6px; }
  .track-len { display: none; }
  .track-thumb { width: 52px; }
  .ep-steps { grid-template-columns: 1fr; }
  .ep-step.next { grid-column: 1; }
  .pl-expand { width: 38px; height: 38px; }
  .player .bars { display: none; }
  .st-label { display: none; }
  .st.on .st-label { display: inline; }
  .choice[data-choice="team_size"] { grid-template-columns: repeat(3, 1fr); }
  .sum-row { grid-template-columns: 1fr auto; }
  .sum-row .sum-v { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
