/* ============ Video Automation Engine design system ============ */
:root {
  --bg: #07060c;
  --bg-2: #0d0b16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #13101f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f4f0ff;
  --ink-2: #c9c1dd;
  --muted: #8e86a8;
  --violet: #8b6cff;
  --magenta: #ff4fd8;
  --amber: #ffb547;
  --gold: #ffd36a;
  --cyan: #4fe3ff;
  --ok: #3ee6a8;
  --warn: #ffbe3d;
  --bad: #ff5d73;
  --on-brand: #12061a;
  --brand: linear-gradient(120deg, var(--violet) 0%, var(--magenta) 52%, var(--amber) 100%);
  --brand-soft: linear-gradient(120deg, rgba(139, 108, 255, 0.22), rgba(255, 79, 216, 0.16) 55%, rgba(255, 181, 71, 0.14));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: 232px;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); overflow-x: clip; }
body { font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 79, 216, 0.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Living background ---- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 700px at 70% -10%, #1a1033 0%, transparent 60%), var(--bg); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.38; animation: drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: #5b3cff; }
.aurora i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; top: 10vh; background: #ff3fc8; opacity: 0.22; animation-duration: 32s; }
.aurora i:nth-child(3) { width: 38vmax; height: 38vmax; left: 30vw; bottom: -26vmax; background: #ff9d3a; opacity: 0.16; animation-duration: 38s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Shell ---- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.rail { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; border-right: 1px solid var(--line); transform: translateX(-105%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s; background: linear-gradient(180deg, rgba(13, 11, 22, 0.86), rgba(7, 6, 12, 0.7)); backdrop-filter: blur(18px); z-index: 20; }
body.nav-open .rail { transform: none; visibility: visible; transition: transform 0.35s var(--ease); box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.8); z-index: 70; }
.nav-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(4, 3, 8, 0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
/* Phones and tablets: a top bar with the menu button; the sidebar slides in from the left. */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); background: rgba(13, 11, 22, 0.86); backdrop-filter: blur(18px); }
.topbar .menu-btn { width: 44px; height: 44px; flex: none; }
.topbar .menu-btn svg { width: 22px; height: 22px; }
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.topbar .tb-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.topbar .tb-brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .rail-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 10px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); box-shadow: 0 10px 30px -8px rgba(255, 79, 216, 0.6); }
.brand-mark { color: var(--on-brand); overflow: hidden; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 11px; }
.nav { display: block; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; font-size: 15px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; transition: background 0.2s var(--ease), color 0.2s; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: 0.85; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--surface-2); color: var(--ink); }
.nav a.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--brand); }
.nav .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--magenta); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.kbd-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; background: var(--surface); cursor: pointer; }
kbd { font-family: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink-2); }
.engine-pill { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 6px; }
.engine-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.engine-pill .dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

main#view { min-width: 0; padding: 20px 16px calc(48px + env(safe-area-inset-bottom)); }
.view-enter { animation: viewIn 0.45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Typography ---- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
.h-display { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.05; }
.h-1 { font-size: 26px; font-weight: 800; }
.h-2 { font-size: 18px; font-weight: 700; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--ink-2); font-size: 15px; max-width: 70ch; }

/* ---- Surfaces ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(14px); min-width: 0; }
.card.tight { padding: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.glow { position: relative; isolation: isolate; }
.glow::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none; }
.grid { display: grid; gap: 18px; }
.cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { border: 0; background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 30px -10px rgba(255, 79, 216, 0.6); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 16px 36px -10px rgba(255, 79, 216, 0.75); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); }
.btn.danger { color: var(--bad); border-color: rgba(255, 93, 115, 0.35); background: rgba(255, 93, 115, 0.08); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Chips, pills, badges ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.ok { color: var(--ok); border-color: rgba(62, 230, 168, 0.35); background: rgba(62, 230, 168, 0.08); }
.chip.warn { color: var(--warn); border-color: rgba(255, 190, 61, 0.35); background: rgba(255, 190, 61, 0.08); }
.chip.bad { color: var(--bad); border-color: rgba(255, 93, 115, 0.35); background: rgba(255, 93, 115, 0.08); }
.chip.live { color: #c8b8ff; border-color: rgba(139, 108, 255, 0.45); background: rgba(139, 108, 255, 0.12); }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.chip.brand { color: #fff; border: 0; background: var(--brand-soft); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.28); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(255, 79, 216, 0.7); box-shadow: 0 0 0 4px rgba(255, 79, 216, 0.14); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9c1dd' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select option { background: var(--surface-solid); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
input[type='range'] { width: 100%; accent-color: var(--magenta); }

/* Choice tiles (wizard) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tile { position: relative; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s; min-height: 92px; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile.on { border-color: transparent; background: var(--brand-soft); box-shadow: 0 0 0 1.5px var(--magenta) inset, 0 14px 30px -16px rgba(255, 79, 216, 0.6); }
.tile b { display: block; margin-bottom: 4px; }
.tile small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; }
.tile .swatch { height: 54px; border-radius: 10px; margin-bottom: 10px; }
.tile .check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); display: none; place-items: center; color: var(--on-brand); }
.tile.on .check { display: grid; }
.tile .check svg { width: 13px; height: 13px; }

/* ---- Platform glyph ---- */
.pg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6); }
.pg svg { width: 60%; height: 60%; }
.pg.sm { width: 24px; height: 24px; border-radius: 7px; }
.pg.lg { width: 46px; height: 46px; border-radius: 13px; }
.pg-row { display: flex; gap: -6px; }
.pg-row .pg { margin-left: -6px; border: 2px solid var(--bg-2); }
.pg-row .pg:first-child { margin-left: 0; }

/* ---- KPI ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi svg.kpi-ico { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; color: var(--violet); opacity: 0.7; }

/* ---- Hero ---- */
.hero { position: relative; border-radius: 26px; padding: clamp(22px, 4vw, 44px); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(900px 400px at 85% 0%, rgba(255, 79, 216, 0.22), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(91, 60, 255, 0.28), transparent 60%), linear-gradient(160deg, rgba(20, 15, 36, 0.9), rgba(10, 8, 18, 0.85)); box-shadow: var(--shadow); }
.hero > * { position: relative; z-index: 1; }
.hero .reel { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); height: 118%; max-height: 440px; width: auto; aspect-ratio: 1; opacity: 0.95; z-index: 0; pointer-events: none; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---- Pipeline track ---- */
.track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.track .st { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.track .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.track .st.done .bar { background: var(--violet); }
.track .st.now .bar::after { content: ''; position: absolute; inset: 0; background: var(--brand); animation: load 1.6s var(--ease) infinite; transform-origin: left; }
.track .st.wait .bar { background: var(--warn); }
.track .st.fail .bar { background: var(--bad); }
@keyframes load { 0% { transform: scaleX(0.05); } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0.3; } }
.track label { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .st.now label, .track .st.wait label { color: var(--ink); font-weight: 600; }

/* ---- Media cards ---- */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cover { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-solid); text-decoration: none; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.cover:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(255, 79, 216, 0.45); border-color: var(--line-2); }
.cover .art { aspect-ratio: 16 / 9; background: var(--brand-soft); position: relative; overflow: hidden; }
.cover .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cover:hover .art img { transform: scale(1.05); }
.cover .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 12, 0.85)); }
.cover .art .over { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.cover .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.cover .body b { font-size: 15px; line-height: 1.3; }
.cover.new { align-items: center; justify-content: center; min-height: 240px; border-style: dashed; background: transparent; gap: 10px; color: var(--ink-2); }
.cover.new .plus { width: 56px; height: 56px; border-radius: 18px; background: var(--brand); display: grid; place-items: center; color: var(--on-brand); }

.avatars { display: flex; }
.avatars .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface-solid); margin-left: -8px; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--brand); color: var(--on-brand); }
.avatars .av:first-child { margin-left: 0; }
.avatars .av img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Lists ---- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; text-decoration: none; }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b, .li .grow span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .grow span { color: var(--muted); font-size: 12px; }
.li .thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
a.li:hover { background: var(--surface); border-radius: 12px; }

.feed { display: flex; flex-direction: column; gap: 2px; font-size: 13px; max-height: 420px; overflow: auto; }
.feed .ev .a { display: none; }
.feed .ev { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.feed .ev .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .ev .a { color: var(--gold); font-weight: 600; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset; }

/* ---- Launch room ---- */
.plat-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.plat-switch button { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; white-space: nowrap; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.plat-switch button:hover { border-color: var(--line-2); }
.plat-switch button.on { background: var(--surface-2); border-color: var(--magenta); box-shadow: 0 10px 24px -14px rgba(255, 79, 216, 0.7); }
.plat-switch .st-dot { width: 8px; height: 8px; border-radius: 50%; }
.stage-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.device-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px; border-radius: 22px; background: radial-gradient(600px 300px at 50% 0%, rgba(139, 108, 255, 0.16), transparent 70%), rgba(0, 0, 0, 0.25); border: 1px solid var(--line); min-width: 0; }
.asset-pick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Phone mockup */
.phone { position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2a2540, #0c0a14); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.1) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(255, 79, 216, 0.45); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #000; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #000; z-index: 6; }
.phone .media { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.phone .media video, .phone .media img { width: 100%; height: 100%; object-fit: cover; }
.phone .media.contain video, .phone .media.contain img { object-fit: contain; }
.ui-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.ui-overlay .top { position: absolute; top: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; font-weight: 600; font-size: 12px; }
.ui-overlay .top .dim { opacity: 0.6; }
.ui-overlay .rightbar { position: absolute; right: 8px; bottom: 96px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ui-overlay .rightbar i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.ui-overlay .rightbar i svg { width: 16px; height: 16px; }
.ui-overlay .rightbar small { font-size: 9px; margin-top: -10px; }
.ui-overlay .bottom { position: absolute; left: 12px; right: 56px; bottom: 22px; }
.ui-overlay .bottom b { display: block; margin-bottom: 3px; font-size: 12px; }
.ui-overlay .bottom p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.safe-zone { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.safe-zone div { position: absolute; background: repeating-linear-gradient(-45deg, rgba(255, 93, 115, 0.32) 0 6px, rgba(255, 93, 115, 0.12) 6px 12px); border: 1px dashed rgba(255, 93, 115, 0.9); }
/* Feed-style mockups */
.feedphone .screen { background: #0b0b0e; display: flex; flex-direction: column; }
.feedphone .app-h { padding: 46px 12px 8px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; }
.feedphone .app-h .av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); }
.feedphone .post-media { position: relative; background: #000; }
.feedphone .post-media img, .feedphone .post-media video { width: 100%; display: block; }
.feedphone .actions { display: flex; gap: 12px; padding: 8px 12px; }
.feedphone .actions svg { width: 18px; height: 18px; }
.feedphone .cap { padding: 0 12px 12px; font-size: 11px; line-height: 1.45; color: #e7e3ee; overflow: hidden; flex: 1; }
.feedphone .dots { display: flex; gap: 4px; justify-content: center; padding-top: 6px; }
.feedphone .dots i { width: 5px; height: 5px; border-radius: 50%; background: #555; }
.feedphone .dots i.on { background: #4aa3ff; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); color: #000; display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.car-nav.prev { left: 8px; }
.car-nav.next { right: 8px; }
.car-nav svg { width: 14px; height: 14px; }
/* Desktop-style mockups */
.browser { width: 100%; max-width: 760px; border-radius: 16px; overflow: hidden; background: #0f0f12; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.browser .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1a1a20; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.browser .bar .url { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #26262e; font-size: 10px; color: #8a8a98; display: flex; align-items: center; padding: 0 10px; }
.browser .content { padding: 16px; }
.browser .content video, .browser .content img { width: 100%; border-radius: 10px; }
.browser .yt-title { font-size: 16px; font-weight: 700; margin: 12px 0 4px; }
.browser .yt-meta { color: #9a9aa8; font-size: 12px; }
.socialcard { width: 100%; max-width: 520px; border-radius: 16px; background: #0f0f12; border: 1px solid var(--line-2); padding: 14px; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.socialcard .who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.socialcard .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); }
.socialcard .who b { display: block; font-size: 13px; }
.socialcard .who span { color: #8a8a98; font-size: 12px; }
.socialcard .txt { white-space: pre-wrap; font-size: 13px; color: #e7e3ee; margin-bottom: 10px; max-height: 180px; overflow: hidden; }
.socialcard .med { border-radius: 12px; overflow: hidden; border: 1px solid #222; }
.socialcard .med video, .socialcard .med img { width: 100%; }
.pin { width: min(300px, 80vw); border-radius: 24px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.pin img, .pin video { width: 100%; }
.pin .p { padding: 10px 14px 14px; }
.pin .p b { display: block; font-size: 14px; }
.pin .p span { font-size: 12px; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Copy editor + spec */
.copy-ed .count { font-size: 12px; font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width 0.3s var(--ease), background 0.3s; }
.spec-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .grow { flex: 1; min-width: 0; }
.spec-row .grow small { display: block; color: var(--muted); font-size: 12px; }

/* Constellation */
.constellation { width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; display: block; }
.constellation .orbit { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 6; }
.constellation .link { stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.constellation .node { cursor: pointer; transition: transform 0.25s var(--ease); transform-box: fill-box; transform-origin: center; }
.constellation .node:hover { transform: scale(1.1); }

/* Storyboard */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.shot { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shot .s { padding: 10px 12px; font-size: 12px; }
.shot .s b { color: var(--gold); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.shot .s p { margin: 4px 0 0; color: var(--ink-2); }

/* Calendar */
.cal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cal .dow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.cal .dow, .cal .day.out { display: none; }
.cal .day { min-height: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal .day.out { opacity: 0.35; }
.cal .day.today { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta) inset; }
.cal .day .d { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cal .pc { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border-left: 3px solid var(--c, var(--violet)); cursor: pointer; font-size: 11px; min-width: 0; border-top: 0; border-right: 0; border-bottom: 0; color: inherit; text-align: left; width: 100%; }
.cal .pc:hover { background: rgba(255, 255, 255, 0.08); }
.cal .pc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .pc .t { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.cal .pc.posted { opacity: 0.6; }
.cal .pc.failed { border-left-color: var(--bad); }
.agenda .li .when { width: 82px; flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; }

/* Drawer & modal */
.scrim { position: fixed; inset: 0; background: rgba(4, 3, 8, 0.6); backdrop-filter: blur(4px); z-index: 60; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 61; background: linear-gradient(180deg, #120f1f, #0a0812); border-left: 1px solid var(--line-2); padding: 22px; overflow-y: auto; animation: slideIn 0.35s var(--ease); box-shadow: -40px 0 80px -40px rgba(0, 0, 0, 0.9); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.modal { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; z-index: 61; background: #120f1f; border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; animation: pop 0.3s var(--ease); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px) scale(0.98); } }

/* Command palette */
.cmdk { padding: 0; overflow: hidden; }
.cmdk input { width: 100%; height: 58px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 20px; font-size: 16px; color: var(--ink); }
.cmdk input:focus { outline: none; }
.cmdk .res { max-height: 50vh; overflow: auto; padding: 8px; }
.cmdk .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cmdk .it svg { width: 17px; height: 17px; color: var(--muted); }
.cmdk .it.on { background: var(--surface-2); }
.cmdk .it small { margin-left: auto; color: var(--muted); font-size: 12px; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #1b1630; border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastIn 0.35s var(--ease); max-width: min(420px, calc(100vw - 36px)); }
.toast.ok { border-color: rgba(62, 230, 168, 0.45); }
.toast.bad { border-color: rgba(255, 93, 115, 0.5); }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* Skeleton + empty */
.skel { border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg.ill { width: 120px; height: 120px; }

/* Wizard */
.wizard { max-width: 980px; margin: 0 auto; }
.steps { display: flex; gap: 8px; margin: 18px 0 24px; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.steps .s i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: 12px; }
.steps .s.on { color: var(--ink); border-color: var(--magenta); }
.steps .s.on i, .steps .s.done i { background: var(--brand); color: var(--on-brand); }
.steps .s.done { color: var(--ink-2); }
.idea-box { position: relative; }
.idea-box .textarea { min-height: 120px; font-size: 16px; padding: 16px 18px; border-radius: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.examples button { cursor: pointer; }
.brain { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 60px 20px; text-align: center; }
.brain .orb { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(from 0deg, #8b6cff, #ff4fd8, #ffb547, #4fe3ff, #8b6cff); filter: blur(2px); animation: spin 3s linear infinite; box-shadow: 0 0 80px rgba(255, 79, 216, 0.5); position: relative; }
.brain .orb::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--bg); }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cast-card { border-radius: 16px; padding: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cast-card .head { display: flex; align-items: center; gap: 10px; }
.cast-card .head .mono { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; font-weight: 800; color: var(--on-brand); flex: none; overflow: hidden; }
.cast-card .head .mono img { width: 100%; height: 100%; object-fit: cover; }
.name-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.wizard-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 16px 0; margin-top: 24px; background: linear-gradient(180deg, transparent, var(--bg) 30%); z-index: 5; }

/* Connections */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.conn .steps-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.conn details summary { cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.conn details summary::-webkit-details-marker { display: none; }
.conn details[open] summary svg { transform: rotate(90deg); }
.conn details summary svg { width: 14px; height: 14px; transition: transform 0.2s; }
.result { font-size: 12px; padding: 8px 10px; border-radius: 10px; }
.result.ok { background: rgba(62, 230, 168, 0.1); color: var(--ok); }
.result.bad { background: rgba(255, 93, 115, 0.1); color: var(--bad); }

/* Responsive: phones are the base above; tablets and desktops add columns and the side rail. */
@media (min-width: 640px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 861px) {
  .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail { position: sticky; top: 0; height: 100vh; height: 100dvh; width: auto; padding: 22px 14px; transform: none; visibility: visible; transition: none; z-index: 20; }
  .topbar, .nav-scrim, .rail .rail-close { display: none; }
  .nav a { font-size: 14px; min-height: 0; }
  main#view { padding: 28px clamp(16px, 3vw, 40px) 80px; }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal .dow { display: block; }
  .cal .day { min-height: 128px; }
  .cal .day.out { display: flex; }
  .feed .ev { grid-template-columns: 58px 112px minmax(0, 1fr); }
  .feed .ev .a { display: block; }
}
@media (max-width: 1180px) {
  .hero .reel { opacity: 0.25; width: 70%; right: -20%; }
}
@media (min-width: 1181px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .stage-area { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============ Light theme (matches a light dashboard) ============ */
/* "Post to TikTok" (public/js/tiktok.js) */
.tt-account { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.tt-account img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }
.tt-account div { display: flex; flex-direction: column; min-width: 0; }
.tt-account b { font-size: 15px; }
.tt-preview { margin-top: 12px; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.tt-preview video, .tt-preview img { width: 100%; max-height: 360px; object-fit: contain; display: block; }
.tt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.tt-check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.tt-check.off { opacity: 0.45; cursor: not-allowed; }
.tt-check.block { display: flex; align-items: flex-start; margin-top: 8px; }
.tt-check.block input { margin-top: 3px; }
.tt-check.block span { display: flex; flex-direction: column; gap: 2px; }
.tt-check.block small { font-size: 12px; }
.tt-disclose { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.tt-label { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tt-label:empty { display: none; }
.tt-consent { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.tt-consent a { color: inherit; text-decoration: underline; }

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.16);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.35);
}
:root[data-theme='light'] body { background: var(--bg); }
:root[data-theme='light'] .aurora { background: radial-gradient(1200px 700px at 70% -10%, color-mix(in srgb, var(--violet) 10%, #fff), transparent 60%), var(--bg); }
:root[data-theme='light'] .aurora i { opacity: 0.12; }
:root[data-theme='light'] .grain { display: none; }
:root[data-theme='light'] .rail { background: rgba(255, 255, 255, 0.92); }
:root[data-theme='light'] .hero { background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--magenta) 16%, transparent), transparent 60%), radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 60%), #fff; }
:root[data-theme='light'] .hero [style*='rgba(7,6,12'] { opacity: 0.9; }
:root[data-theme='light'] .input, :root[data-theme='light'] .select, :root[data-theme='light'] .textarea { background: #fff; }
:root[data-theme='light'] .tabs { background: var(--surface-2); }
:root[data-theme='light'] .tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
:root[data-theme='light'] .btn { background: #fff; }
:root[data-theme='light'] .btn:hover { background: var(--surface-2); }
:root[data-theme='light'] .btn.primary { background: var(--brand); }
:root[data-theme='light'] .btn.ghost { background: transparent; }
:root[data-theme='light'] .kbd-hint, :root[data-theme='light'] kbd { background: var(--surface-2); }
:root[data-theme='light'] .cal .pc { background: var(--surface-2); }
:root[data-theme='light'] .cal .pc:hover { background: #e2e8f0; }
:root[data-theme='light'] .device-wrap { background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%), var(--surface-2); }
:root[data-theme='light'] .track .bar { background: #e2e8f0; }
:root[data-theme='light'] .skel { background: linear-gradient(90deg, #eef2f6, #f8fafc, #eef2f6); background-size: 200% 100%; }
:root[data-theme='light'] .drawer, :root[data-theme='light'] .modal { background: #fff; }
:root[data-theme='light'] .toast { background: #fff; }
:root[data-theme='light'] .cover { background: #fff; }
:root[data-theme='light'] .cover .art::after { background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.75)); }
:root[data-theme='light'] .chip.live { color: var(--violet); }
:root[data-theme='light'] .feed .ev .a { color: var(--violet); }
:root[data-theme='light'] .shot .s b { color: var(--violet); }
:root[data-theme='light'] [style*='rgba(0,0,0,.2)'], :root[data-theme='light'] [style*='rgba(0,0,0,.35)'] { background: var(--surface-2) !important; }
:root[data-theme='light'] .meter, :root[data-theme='light'] .switch i { background: #e2e8f0; }
:root[data-theme='light'] .switch input:checked + i { background: var(--brand); }

/* Allowance meter (subscriber accounts) */
.allow { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.allow .bar { position: relative; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: visible; }
.allow .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--brand); }
.allow .bar b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--bad); border-radius: 2px; }
.allow.full { border-color: rgba(255, 93, 115, 0.5); }
.signin { min-height: 80vh; display: grid; place-items: center; text-align: center; }

/* Interview */
.interview { max-width: 760px; margin: 0 auto; }
.q-card { padding: 28px; }
.q-card h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; }
.q-dots { display: flex; gap: 6px; margin: 4px 0 18px; }
.q-dots i { height: 4px; flex: 1; border-radius: 4px; background: var(--surface-2); }
.q-dots i.on { background: var(--brand); }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.q-chips button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 500; }
.q-chips button.on { border-color: transparent; background: var(--brand); color: var(--on-brand); }
.q-answers { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.q-answers .a { display: flex; gap: 10px; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.q-answers .a b { flex: none; width: 120px; color: var(--muted); font-weight: 600; }
.hero .shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(7, 6, 12, 0.96), rgba(7, 6, 12, 0.6)); }
:root[data-theme='light'] .hero .shade { background: linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)); }
