/* Simplytoon's screens: black and white, with Toon's coral in the mascot alone. Sky for "Toon is working", mint for
   "done", rose for "something went wrong". The plan behind every size here: docs/DESIGN-PLAN.md. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: block; }

:root {
  /* Black and white (1 Dec 2026). Coral is Toon's alone: it appears in the mascot and nowhere else. "Your turn" and
     the main action are white. Sky is Toon at work, green is done, rose is an error. --coral keeps its old name but is
     the error colour, a rose red. */
  --app: #0E0E0E; --bg: #111111; --s0: #141414; --s1: #181818; --s2: #202020; --s3: #2A2A2A;
  --ln: rgba(255, 255, 255, 0.08); --ln2: rgba(255, 255, 255, 0.15);
  --tx: #F2F2F2; --tx2: #A6A6A6; --tx3: #878787;
  --ac: #F2F2F2; --act: #F2F2F2; --onac: #0E0E0E; --sky: #8DB7F5; --ok: #7CC79A; --coral: #F2617A;
  --acbg: rgba(255, 255, 255, 0.08); --acln: rgba(255, 255, 255, 0.32); --skbg: rgba(141, 183, 245, 0.12); --okbg: rgba(124, 199, 154, 0.12); --cobg: rgba(242, 97, 122, 0.12);
  --toon: #2A2527; --toonln: rgba(255, 255, 255, 0.16);
  --voice: #C3B3F5; --fx: #7CC79A; --music: #6FC3DF;
  --g1: 4px; --g2: 8px; --g3: 12px; --g4: 16px; --g5: 20px; --g6: 24px; --g8: 32px; --g10: 40px; --g16: 64px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1); --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  /* Rounded, to match Toon: SF Pro Rounded on the Mac (the system's own), Geist where there is none. */
  --font: ui-rounded, "SF Pro Rounded", "Geist", -apple-system, system-ui, sans-serif;
  --sbw: 232px; --chatw: 380px;
  /* the names the room panels used before */
  --panel: var(--s0); --panel-2: var(--s1); --line: var(--ln); --line-2: var(--ln2); --text: var(--tx); --dim: var(--tx2); --faint: var(--tx3);
  --accent: var(--ac); --accent-ink: var(--onac); --draw: var(--ac); --animate: #7CC79A; --stage: #8DB7F5; --bad: var(--coral);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
body { user-select: none; -webkit-user-select: none; cursor: default; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; text-align: left; }
button:disabled { opacity: 0.4; }
textarea, input, select { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; margin: 0; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }
.boot { height: 100%; background: var(--bg); }

.f1 { flex: 1; min-width: 0; } .r { display: flex; align-items: center; } .g12 { gap: 12px; } .w100 { width: 100%; }
.el { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mono { font-variant-numeric: tabular-nums; }
.mu { color: var(--tx2); } .fa { color: var(--tx3); } .co { color: var(--coral); }
.display { font-size: 36px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.h0 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.h3 { font-size: 13px; font-weight: 600; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--act); }
.lk { color: var(--act); font-weight: 500; font-size: 13px; }
.lk:hover { color: var(--ac); }
.lk.back { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); }
.lk.back:hover { color: var(--tx); }
.kbd { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--tx3); border: 1px solid var(--ln2); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.i { display: block; flex: none; }

/* ---------- controls ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--ln2); background: var(--s2); color: var(--tx); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; overflow: hidden; transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease); }
.btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn.pri { background: var(--ac); border-color: transparent; color: var(--onac); font-weight: 700; box-shadow: none; }
.btn.pri:hover:not(:disabled) { background: #FFFFFF; }
.btn.gh { background: transparent; border-color: transparent; color: var(--tx2); box-shadow: none; }
.btn.gh:hover:not(:disabled) { background: var(--s2); color: var(--tx); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 13px; gap: 5px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 22px; }
.btn.go.lg { padding-right: 6px; gap: 12px; } .btn.lg .go-i { width: 32px; height: 32px; }
.btn.danger { color: var(--coral); }
.btn.danger-fill { background: var(--coral); color: #2A0F0C; border-color: transparent; font-weight: 600; }
.btn:disabled { opacity: 0.45; }
.btn.go { padding-right: 4px; gap: 8px; }
.btn.go.sm { padding-right: 3px; }
.go-i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); transition: transform 0.25s var(--ease); }
.btn.pri .go-i { background: rgba(0, 0, 0, 0.12); }
.btn.go:hover:not(:disabled) .go-i { transform: translateX(2px); }
.btn.busy { background: var(--s2); color: var(--tx); }
.btn .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acbg); transition: width 0.3s linear; }
.btn .bar + span { position: relative; }
.ib { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--tx2); flex: none; transition: background 0.15s, color 0.15s; }
.ib:hover:not(:disabled) { background: var(--s2); color: var(--tx); }
.ib:disabled { opacity: 0.35; }
.ib.spin .i { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mtrig { display: inline-flex; }
.in { display: block; width: 100%; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--s2); color: var(--tx); font-size: 13px; outline: none; }
textarea.in { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.in:focus { border-color: rgba(141, 183, 245, 0.6); }
.in::placeholder, textarea::placeholder, input::placeholder { color: var(--tx3); }
.seg { display: inline-flex; padding: 3px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); gap: 2px; flex: none; }
.seg > button { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; font-weight: 500; color: var(--tx2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.seg > button:hover { color: var(--tx); }
.seg > button.on { background: rgba(255, 255, 255, 0.1); color: var(--tx); box-shadow: none; }
.seg em { font-style: normal; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--tx3); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--ln2); font-size: 12px; color: var(--tx2); white-space: nowrap; flex: none; transition: background 0.15s, color 0.15s; }
.chip:hover, .chip.on { background: var(--s2); color: var(--tx); }
.chip.lg { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; gap: 8px; }
.chip em { font-style: normal; font-size: 11px; color: var(--tx3); }
.chip-k { color: var(--tx3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; } .swatch i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--bg); margin-left: -4px; } .swatch i:first-child { margin-left: 0; }
.bg { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--s2); color: var(--tx2); flex: none; }
.bg.need, .bg.acc { background: var(--acbg); color: var(--act); } .bg.acc { text-transform: capitalize; }
.bg.work { background: var(--skbg); color: var(--sky); } .bg.done { background: var(--okbg); color: var(--ok); } .bg.err { background: var(--cobg); color: var(--coral); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--tx3); display: inline-block; }
.dot.need { background: var(--ac); } .dot.work { background: var(--sky); animation: pulse 1.6s var(--ease) infinite; } .dot.done { background: var(--ok); } .dot.err { background: var(--coral); }
@keyframes pulse { 50% { opacity: 0.45; } }

/* menus and dialogs */
.menu-w { position: relative; display: inline-flex; }
.pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 220px; max-height: 360px; overflow: auto; padding: 6px; border-radius: 10px; background: var(--s2); border: 1px solid var(--ln2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 1px; animation: rise 0.18s var(--ease); }
.pop.left { left: 0; right: auto; } .pop.up { top: auto; bottom: calc(100% + 6px); }
.mi { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--tx); width: 100%; white-space: nowrap; }
.mi span { flex: 1; } .mi .i { color: var(--tx2); } .mi-gap { width: 16px; flex: none; }
.nw { white-space: nowrap; }
.mi:hover:not(:disabled) { background: var(--s3); }
.mi.danger, .mi.danger .i { color: var(--coral); }
.mi.sel .i { color: var(--act); }
.pop-sep { height: 1px; background: var(--ln); margin: 4px 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } }
.scrim { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); animation: fade 0.2s var(--ease); }
.dlg { width: 420px; max-width: calc(100vw - 48px); display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; background: var(--s1); border: 1px solid var(--ln2); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); animation: rise 0.22s var(--ease); }
.dlg.wide-dlg { width: 600px; gap: 16px; }
.dlg-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; max-width: 520px; padding: 10px 14px; border-radius: 10px; background: var(--s2); border: 1px solid var(--ln2); color: var(--tx); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--s1); margin-bottom: 16px; }
.notice.need { border-color: var(--acln); background: var(--acbg); } .notice.need .i { color: var(--act); }

/* ---------- the frame ----------
   The sidebar sits on the window's own dark; the screen beside it is a raised panel with rounded corners. */
.app { display: grid; grid-template-columns: var(--sbw) minmax(0, 1fr); grid-template-rows: 36px minmax(0, 1fr); height: 100vh; background: var(--app); transition: grid-template-columns 0.35s var(--ease); }
.app.railed { --sbw: 64px; }
.tbar { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: center; -webkit-app-region: drag; }
.tbar-t { font-size: 12px; color: var(--tx3); max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { grid-row: 2; position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0 8px 8px 0; border-radius: 14px; background: var(--bg); border: 1px solid var(--ln); box-shadow: none; }
.page-scroll { height: 100%; overflow: auto; }

/* sidebar: the places, then the projects like a chat history (a title each and a pin), then Settings (3 Dec) */
.sb { grid-row: 2; display: flex; flex-direction: column; padding: 4px 10px 10px 12px; min-height: 0; overflow: hidden; }
.sb-top { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 8px; margin-bottom: 8px; flex: none; }
.sb-brand { display: flex; align-items: center; gap: 9px; height: 36px; }
.sb-mark { display: grid; place-items: center; flex: none; }
.sb-wm { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: none; }
.ni { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--tx2); font-weight: 500; flex: none; transition: background 0.15s, color 0.15s; }
.ni:hover { background: rgba(255, 255, 255, 0.04); color: var(--tx); }
.ni.on { background: rgba(255, 255, 255, 0.08); color: var(--tx); }
.ni.on .i { color: var(--act); }
.sb .ni { height: 36px; padding: 0 12px 0 11px; border-radius: 10px; }
/* New project: a row like the places, its plus in a white circle where their icons sit */
.sb .sb-new { gap: 11px; color: var(--tx); }
.sb-new-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--pri); color: var(--onpri); transition: background 0.15s; }
.sb-new .sb-new-i { margin-left: -1px; }
.sb-new-i .i { stroke-width: 2.4; }
.sb-new:hover .sb-new-i, .rbn.new:hover .sb-new-i { background: var(--pri-h); }
.sb-new .kbd { opacity: 0; transition: opacity 0.15s; }
.sb-new:hover .kbd, .sb-new:focus-visible .kbd { opacity: 1; }
/* the projects: they scroll, and fade at both ends only when there is more to see */
.sb-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -6px; padding: 0 6px 20px; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 20px), transparent 100%); }
.sb-list::-webkit-scrollbar { display: none; }
.sb-sec { padding: 20px 12px 6px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--tx3); flex: none; }
.pj-row { position: relative; flex: none; border-radius: 10px; transition: background 0.15s, transform 0.15s var(--ease); }
.pj-row:hover { background: rgba(255, 255, 255, 0.05); }
.pj-row.on { background: rgba(255, 255, 255, 0.09); }
.pj-row:has(.pj:active) { transform: scale(0.985); }
.pj { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--tx2); text-align: left; transition: color 0.15s; }
.sb .pj:active { transform: none; }
.pj > .el { flex: 1; }
.pj-row:hover .pj, .pj-row.on .pj { color: var(--tx); }
.pj-row:hover .pj, .pj-row:focus-within .pj { padding-right: 40px; }
/* the pin: a full-size button on the row's hover; filled on a pinned project, where it unpins */
.pj-pin { position: absolute; right: 3px; top: 3px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--tx2); opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; }
.pj-row:hover .pj-pin, .pj-pin:focus-visible { opacity: 1; }
.pj-pin:hover { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
.pj-pin:active { transform: scale(0.92); }
.pj-pin.is { color: var(--tx); }
.pj-pin.is .i path:nth-child(2) { fill: currentColor; }
.sb-none { padding: 2px 12px; font-size: 13px; line-height: 1.5; color: var(--tx3); }
.sb-all { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin-top: 2px; border-radius: 10px; font-size: 13px; color: var(--tx3); flex: none; transition: color 0.15s, background 0.15s; }
.sb-all:hover { color: var(--tx); background: rgba(255, 255, 255, 0.04); }
.sb-all .i { transition: transform 0.2s var(--ease); }
.sb-all:hover .i { transform: translateX(2px); }
.sb-foot { display: flex; align-items: center; gap: 2px; flex: none; padding-top: 4px; }
.sb-foot .ni { flex: 1; width: auto; }
.sb-help { width: 36px; height: 36px; border-radius: 10px; color: var(--tx3); }
.sb-help:hover { background: rgba(255, 255, 255, 0.04); color: var(--tx); }
/* folded: the rail, icons only */
.sb.rail { align-items: center; padding: 4px 10px 10px; gap: 4px; }
.rbn { width: 44px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tx2); flex: none; position: relative; }
.rbn:hover { background: rgba(255, 255, 255, 0.04); color: var(--tx); } .rbn.on { background: rgba(255, 255, 255, 0.08); color: var(--act); }
.rbn.face { height: 40px; margin-bottom: 4px; }
.rbn.new { margin-bottom: 6px; }
.rbn.new .sb-new-i { width: 28px; height: 28px; }

/* ---------- Home: one prompt on a warm sky ---------- */
.hstage { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 32px 104px; overflow: hidden; isolation: isolate; }
@keyframes drift1 { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(80px, -60px, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(-90px, 70px, 0) scale(0.94); } }
.stage-c { width: 100%; max-width: 784px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nudge { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 14px; margin-bottom: 28px; border-radius: 18px; background: rgba(18, 18, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; max-width: 100%; transition: border-color 0.2s, transform 0.25s var(--ease); animation: rise 0.5s var(--ease); }
.nudge:hover { border-color: rgba(255, 255, 255, 0.375); transform: translateY(-1px); }
.nudge b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.nudge-t { color: var(--tx2); white-space: nowrap; }
.nudge-n { font-size: 11px; font-weight: 700; color: var(--act); }
.nudge-go { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--acbg); color: var(--act); font-weight: 600; font-size: 12px; }
.nudge.sm { margin: 0; background: var(--s1); }
.stage-h { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; color: #fff; text-wrap: balance; }
.stage-p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.68); text-wrap: balance; }
.prompt { position: relative; width: 100%; margin-top: 40px; text-align: left; border-radius: 26px; background: rgba(24, 23, 25, 0.82); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 0 rgba(255, 255, 255, 0); transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.prompt.focus { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 5px rgba(255, 255, 255, 0.075); }
.prompt-toon { position: absolute; top: -34px; right: 30px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); pointer-events: none; }
.prompt textarea { display: block; width: 100%; min-height: 84px; padding: 22px 24px 6px; border: 0; background: none; outline: none; resize: none; font-size: 16px; line-height: 1.55; color: var(--tx); }
.prompt .cmp-refs { padding: 4px 20px 0; }
.prompt .cmp-err { padding: 6px 24px 0; }
.prompt-b { display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; }
/* the new-video bar holds four choices, the model, Enhance (its icon) and Make it, which never wraps */
.prompt-b { gap: 3px; }
.prompt-b .sel.opt { padding: 0 8px; gap: 4px; }
.prompt-b > .round + .sel { flex-shrink: 0; }
.prompt-b .make-go { flex-shrink: 0; white-space: nowrap; }
.opt.solo { width: 34px; padding: 0; justify-content: center; flex-shrink: 0; }
.round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--tx2); flex: none; margin-right: 4px; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.round:hover { background: rgba(255, 255, 255, 0.08); color: var(--tx); transform: rotate(90deg); }
.opt { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; color: var(--tx2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.opt:hover:not(:disabled), .opt.on { background: rgba(255, 255, 255, 0.07); color: var(--tx); }
.opt.busy .i { animation: spin 1.2s linear infinite; }
.make-go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 20px; margin-left: 6px; border-radius: 20px; font-size: 14px; font-weight: 700; color: var(--onac);
  background: var(--ac); box-shadow: none; transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s; }
.make-go:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.make-go:active:not(:disabled) { transform: scale(0.97); }
.make-go:disabled { background: rgba(255, 255, 255, 0.08); color: var(--tx3); box-shadow: none; opacity: 1; }
.stage-warn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--act); }
.kinds { display: flex; gap: 20px; margin-top: 44px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.kind-i { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; transition: transform 0.3s var(--ease), background 0.2s, border-color 0.2s; }
.kind:hover .kind-i { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.338); }
.kind:hover { color: #fff; }
.from { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.from > span { margin-right: 4px; }
.from-c { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); font-weight: 500; transition: background 0.2s, border-color 0.2s; }
.from-c:hover, .from-c.on { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.2); }
.stage-down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.stage-down:hover { color: #fff; }
.after { max-width: 1160px; margin: 0 auto; padding: var(--g10) var(--g10) var(--g16); display: flex; flex-direction: column; gap: 18px; }
.after-turn { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) {  }
.cmp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cmp-row .menu-w { flex: none; }
.cmp-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 220px; padding: 0 4px 0 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 12px; color: var(--tx2); }
.ref-chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--tx3); flex: none; }
.ref-chip button:hover { background: var(--s2); color: var(--tx); }
.cmp-err { font-size: 12px; color: var(--coral); }
.home-sec { display: flex; flex-direction: column; gap: 14px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; } .sec-h > :first-child { flex: 1; }
.how { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.how.col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.how li { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; border: 1px solid var(--ln); background: var(--s1); }
.how-n { font-size: 11px; font-weight: 700; color: var(--act); }
.how li b { font-size: 13px; font-weight: 600; } .how li span:last-child { font-size: 12px; color: var(--tx2); line-height: 1.4; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- Videos and Library pages ---------- */
.wide { max-width: 1200px; margin: 0 auto; padding: 0 var(--g8) var(--g10); }
.ph { height: 72px; display: flex; align-items: center; gap: 12px; }
.ph-t { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; width: 240px; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--ln2); background: var(--s1); color: var(--tx3); }
.search:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--tx); font-size: 13px; }
.search-x { width: 20px; height: 20px; margin-right: -4px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.1); color: var(--tx); transition: background 0.15s; }
.search-x:hover { background: rgba(255, 255, 255, 0.18); }
.fbar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--ln); }
/* a row of tabs wider than the page (the Library's, with a side panel open) goes onto a second line, never off the edge */
.fbar .seg { flex-wrap: wrap; max-width: 100%; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sort select { height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--ln2); background: var(--s1); color: var(--tx); font-size: 12px; outline: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid.sq { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: var(--s0); overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.25s var(--ease); }
.tile:hover { border-color: rgba(255, 255, 255, 0.14); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.tile-pic { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--ln); }
.tile-menu { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.15s; }
.tile:hover .tile-menu, .tile-menu:focus-within { opacity: 1; }
.tile-menu .ib { background: rgba(20, 20, 20, 0.82); color: var(--tx); }
.tile-b { display: flex; flex-direction: column; gap: 10px; padding: 12px; width: 100%; }
.tile-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.tile-s { font-size: 12px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st.need { color: var(--act); } .st.work { color: var(--sky); } .st.done { color: var(--ok); }
.fpic { width: 100%; height: 100%; background: #F4F2EC; display: grid; place-items: center; overflow: hidden; }
.fpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpic-none { width: 100%; height: 100%; display: grid; place-items: center; background: #1b1b1b; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: var(--g16) var(--g6); text-align: center; max-width: 440px; margin: 0 auto; }
.empty .h2 { margin-top: 6px; } .empty .btn { margin-top: 8px; }

/* Library */
.lib { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
.lib.with-side { grid-template-columns: minmax(0, 1fr) 360px; }
.lcard { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--ln); background: var(--s1); overflow: hidden; transition: border-color 0.2s; }
.lcard:hover { border-color: var(--ln2); } .lcard.on { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac); }
.lcard-pic { aspect-ratio: 1; display: grid; place-items: center; color: var(--tx3); border-bottom: 1px solid var(--ln); background: #1a1a1a; }
.lcard-pic img, .lcard-pic video { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; }
.lcard-b { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-size: 12px; }
.lcard-b b { font-size: 13px; font-weight: 600; }
.side { border-left: 1px solid var(--ln); background: var(--s0); padding: 20px; overflow: auto; display: flex; flex-direction: column; gap: 16px; animation: fade 0.2s var(--ease); }
.side-h { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px -6px 0; }
.side-pic { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--ln); display: grid; place-items: center; color: var(--tx3); overflow: hidden; background: #1a1a1a; }
.side-pic img, .side-pic video { width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block; }
.side-url { font-size: 12px; color: var(--tx2); word-break: break-all; user-select: text; -webkit-user-select: text; }
.side-a { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.side-a .menu-w, .side-a .mtrig { display: flex; width: 100%; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--tx3); }
.dl { display: grid; grid-template-columns: 72px 1fr; gap: 8px 12px; font-size: 12px; margin: 0; }
.dl dt { color: var(--tx3); } .dl dd { margin: 0; color: var(--tx2); }
.edt { padding: 2px 6px; margin-left: -6px; border-radius: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.15s; }
.edt:hover { background: var(--s2); }
.edt-in { height: 30px; padding: 0 6px; margin-left: -6px; border-radius: 6px; border: 1px solid rgba(141, 183, 245, 0.6); background: var(--s2); outline: none; font-weight: 600; min-width: 240px; }
.wide > .lk.back { margin-top: 24px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.swatches span { display: flex; flex-direction: column; gap: 4px; } .swatches i { height: 32px; border-radius: 6px; border: 1px solid var(--ln); }
.swatches em { font-style: normal; font-size: 10px; color: var(--tx3); }
.row-link { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin: 0 -10px; border-radius: 8px; color: var(--tx2); }
.row-link:hover { background: var(--s1); color: var(--tx); }

/* Settings */
.set { max-width: 1000px; margin: 0 auto; padding: var(--g8); display: grid; grid-template-columns: 200px minmax(0, 720px); gap: var(--g10); }
.set-nav { display: flex; flex-direction: column; gap: 2px; } .set-nav .h1 { margin: 0 0 16px 10px; }
.set-c { display: flex; flex-direction: column; } .set-c > .h2 { padding: 8px 0 12px; border-bottom: 1px solid var(--ln); }
.srow { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--ln); }
.srow-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .srow-t b { font-weight: 500; } .srow-t .mu { font-size: 12px; line-height: 1.5; }
.srow-c { flex: none; display: flex; align-items: center; gap: 8px; }
.key-f { display: flex; gap: 8px; } .key-f .in { width: 240px; }

/* ---------- a film's workspace ---------- */
.ws { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--chatw); }
.ws.no-chat { grid-template-columns: minmax(0, 1fr); }
.ws-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fh { flex: none; border-bottom: 1px solid var(--ln); background: var(--bg); }
.fh-a { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 24px; }
.fh-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; max-width: 40%; }
.fh-saved { font-size: 12px; margin-left: 2px; white-space: nowrap; }
.fh-sep { width: 1px; height: 18px; background: var(--ln2); margin: 0 4px; }
.fh-b { height: 44px; display: flex; align-items: center; padding: 0 24px; border-top: 1px solid var(--ln); overflow-x: auto; }
.fh-b::-webkit-scrollbar { display: none; }

/* the step rail */
.steps { display: flex; align-items: center; gap: 6px; flex: 1; min-width: max-content; }
.step { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--tx3); white-space: nowrap; flex: none; transition: background 0.15s, color 0.15s; }
.step:hover { color: var(--tx); background: var(--s1); }
.step.on { background: var(--s3); color: var(--tx); font-weight: 500; }
.step .num { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step.draft .num { border-color: var(--ac); color: var(--act); }
.step.changed .num { border-color: var(--coral); color: var(--coral); }
.step.now:not(.on) { color: var(--tx); }
.stg-l { flex: 1 1 8px; min-width: 6px; max-width: 32px; height: 1px; background: var(--ln2); }

.wk { flex: 1; min-height: 0; position: relative; display: flex; }
.room { flex: 1; min-width: 0; display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 0; }
.wks { display: flex; flex-direction: column; min-height: 0; background: var(--s0); border-right: 1px solid var(--ln); }
.center { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.step-strip { display: flex; align-items: center; gap: 16px; padding: 12px 16px 0; }
.step-strip .shead { flex: 1; }
.viewport { position: relative; margin: 12px 16px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--ln); background: #101010; }
.viewport iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.badge, .select-btn { position: absolute; top: 12px; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(20, 20, 20, 0.78); border: 1px solid var(--ln2); color: var(--tx2); font-size: 12px; }
.badge { left: 12px; pointer-events: none; } .select-btn { right: 12px; } .select-btn:hover { color: var(--tx); }
/* Reset view: back to where a 3D asset or shot opened, after turning it by hand (bottom right, out of Select's way) */
.home-btn { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(16, 16, 16, 0.66); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--tx2); font-size: 12px; animation: fade 0.2s var(--ease); }
.home-btn:hover { color: var(--tx); background: rgba(30, 30, 30, 0.8); }
.step-page { position: absolute; inset: 0; z-index: 5; overflow: auto; background: var(--bg); }

/* a step's page */
.spage { max-width: 880px; margin: 0 auto; padding: var(--g8) var(--g6) var(--g10); }
.spage:has(.board-grid) { max-width: 1200px; }
.shead { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--g6); }
.shead.compact { margin: 0; }
.shead-r { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.shead-f { font-size: 12px; color: var(--tx3); white-space: nowrap; }
.shead-x { display: flex; align-items: center; gap: 8px; }
.shead-d { color: var(--tx2); font-size: 13px; max-width: 640px; }
.empty-page { margin: var(--g10) auto; max-width: 480px; padding: var(--g8); text-align: center; color: var(--tx2); border: 1px dashed var(--ln2); border-radius: 12px; }
.empty-page h3 { color: var(--tx); font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.empty-page p { line-height: 1.55; }
.empty-page button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--tx); text-decoration: underline; cursor: pointer; }
.script-meta { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--tx3); margin-bottom: 16px; }
.hint { color: var(--tx3); font-size: 12px; line-height: 1.5; }

/* documents (the brief, a format's guide) */
.doc { color: var(--tx); font-size: 14px; line-height: 1.65; user-select: text; -webkit-user-select: text; max-width: 720px; }
.doc .md-b + .md-b, .doc > p + p { margin-top: 12px; }
.doc h1, .doc h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 24px 0 8px; }
.doc h3 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.doc h4 { font-size: 13px; font-weight: 600; margin: 16px 0 4px; color: var(--tx2); }
.doc .md-b:first-child > :first-child { margin-top: 0; }
.doc ul { padding-left: 20px; margin: 6px 0; } .doc li + li { margin-top: 3px; }
.doc code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--s2); }
.doc-edit { width: 100%; min-height: 60vh; padding: 16px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--s1); color: var(--tx); font: 14px/1.65 var(--font); outline: none; resize: vertical; }

/* the script */
.script-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.script-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; font-size: 11px; font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx3); padding: 0 10px 8px; border-bottom: 1px solid var(--ln); margin-bottom: 12px; }
.script section { margin-bottom: 24px; }
.script h3 { margin: 0 0 6px 10px; font-size: 13px; color: var(--act); font-weight: 600; }
.script-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; border-radius: 8px; }
.script-row:hover { background: var(--s1); }
.cell { width: 100%; field-sizing: content; min-height: calc(1.5em + 16px); resize: none; overflow: hidden; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--tx); font-size: 15px; line-height: 1.5; outline: none; }
.script-row .cell + .cell { color: var(--tx2); font-size: 13px; }
.cell:focus { border-color: rgba(141, 183, 245, 0.5); background: var(--s1); }

/* the voice */
.voice-list { display: flex; flex-direction: column; gap: 2px; }
.voice-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.voice-row:hover { background: var(--s1); } .voice-row.on { background: rgba(195, 179, 245, 0.1); }
.voice-row .mini, .voice-opt .mini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 10px; background: var(--s2); border: 0; color: var(--tx); }
.voice-text { font-size: 14px; }
.voice-len { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--tx3); }
.final-voice { margin-top: var(--g8); padding-top: var(--g5); border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: 10px; }
.final-voice h3 { font-size: 15px; font-weight: 600; }
.voice-pick { display: flex; flex-direction: column; gap: 2px; }
.voice-opt { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; }
.voice-opt.on { background: var(--okbg); }
.voice-name { font-size: 13px; display: flex; flex-direction: column; } .voice-name em { font-style: normal; font-size: 11px; color: var(--tx3); }

/* the storyboard and the designs */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.board-card { margin: 0; border-radius: 18px; overflow: hidden; background: var(--s1); border: 1px solid var(--ln); display: flex; flex-direction: column; }
.board-img { position: relative; aspect-ratio: 16 / 9; background: #F4F2EC; border-bottom: 1px solid var(--ln); }
.board-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.board-n { position: absolute; left: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(20, 20, 20, 0.8); color: #fff; font: 600 11px/20px var(--font); font-variant-numeric: tabular-nums; }
.board-card figcaption { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.board-id { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--tx3); } .board-id em { font-style: normal; }
.board-see { font-size: 13px; color: var(--tx); line-height: 1.45; }
.board-say { font-size: 12px; color: var(--voice); line-height: 1.45; }
.board-refs { display: flex; flex-wrap: wrap; gap: 4px; }
.board-refs span { font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 6px; background: var(--s2); color: var(--tx2); }
.design-group { margin-bottom: var(--g8); }
.design-group h3 { margin: 0 0 12px; font-size: 13px; color: var(--act); font-weight: 600; }
.design-img { aspect-ratio: 32 / 21; display: grid; place-items: center; }
.design-img img { object-fit: contain; }
.design-todo { color: #8A8578; font-size: 12px; }
.design-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.design-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.request-bar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 16px; max-width: 86%; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--s1); border: 1px solid var(--acln); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 13px; color: var(--tx2); }
.request-bar strong { color: var(--tx); }
.request-actions { display: flex; gap: 8px; flex: none; }

.ok-tick { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #0F2016; display: inline-grid; place-items: center; flex: none; }

/* ---------- Toon's chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--s0); border-left: 1px solid var(--ln); }
.chat-h { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--ln); }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-who b { font-size: 13px; font-weight: 600; }
.chat-st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); min-width: 0; }
.chat-st.work { color: var(--sky); } .chat-st.need { color: var(--act); } .chat-st.err { color: var(--coral); }
.chat-st em { font-style: normal; font-size: 11px; color: var(--tx3); margin-left: auto; padding-left: 8px; }
.chat-ls { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.chat-hello { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.chat-hello .h2 { margin-top: 8px; } .chat-hello p { line-height: 1.55; }
.day { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--tx3); }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.me { align-self: flex-end; max-width: 85%; padding: 9px 14px; border-radius: 18px 18px 6px 18px; background: rgba(255, 255, 255, 0.09); font-size: 13px; line-height: 1.5; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.turn-b { display: flex; flex-direction: column; gap: 6px; }
.bot-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); }
.bot-h b { color: var(--tx); font-weight: 600; }
.said { font-size: 13px; line-height: 1.55; color: var(--tx); user-select: text; -webkit-user-select: text; }
.said .prose-b + .prose-b { margin-top: 8px; }
.said .prose-b { overflow-wrap: break-word; } /* a long address in Toon's words wraps, never widens the panel */
.said ul { margin: 4px 0 0; padding-left: 18px; } .said li + li { margin-top: 2px; }
.said code { font: 11.5px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--s2); }
.did-f { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 24px; padding: 0 8px 0 6px; margin-left: -6px; border-radius: 6px; font-size: 12px; color: var(--tx3); }
.did-f:hover { background: var(--s1); color: var(--tx2); }
.did-f .i:first-child { color: var(--ok); }
.did-g { display: flex; flex-direction: column; gap: 4px; }
.did { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx3); }
.did span { width: 4px; height: 4px; border-radius: 50%; background: var(--tx3); flex: none; }
.did.now { color: var(--tx2); } .did.now span { background: var(--sky); animation: pulse 1.2s var(--ease) infinite; }
.doing { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tx2); }
.doing i { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); animation: hop 1s var(--ease) infinite; }
.doing i:nth-child(2) { animation-delay: 0.12s; } .doing i:nth-child(3) { animation-delay: 0.24s; margin-right: 6px; }
@keyframes hop { 40% { transform: translateY(-3px); opacity: 1; } 0%, 80%, 100% { opacity: 0.4; } }
.err { color: var(--coral); padding: 8px 10px; border-radius: 8px; background: var(--cobg); font-size: 12px; line-height: 1.5; }
.noted { color: var(--tx3); font-size: 12px; }
.stat { font-size: 11px; color: var(--tx3); }
.cd { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; border: 1px solid var(--ln2); background: var(--s1); }
.cd.need { border-color: rgba(255, 255, 255, 0.262); background: rgba(255, 255, 255, 0.053); }
.cd p { font-size: 13px; }
.cd-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.cmp { flex: none; margin: 0 12px 12px; padding: 12px 10px 8px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); box-shadow: none; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s; }
.cmp:focus-within { border-color: rgba(255, 255, 255, 0.22); }
.cmp textarea { width: 100%; border: 0; background: none; outline: none; resize: none; font-size: 13px; line-height: 1.5; padding: 0 4px; color: var(--tx); }
.cmp-b { display: flex; align-items: center; gap: 2px; }
.send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); box-shadow: none; color: var(--onac); flex: none; margin-left: 4px; transition: transform 0.15s var(--ease), background 0.15s; }
.send:hover:not(:disabled) { background: var(--act); }
.send:active:not(:disabled) { transform: scale(0.94); }
.send:disabled { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--tx3); opacity: 1; }
.send.stop { background: var(--s3); color: var(--tx); }
.sel-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border-radius: 8px; background: var(--acbg); color: var(--act); font-size: 12px; }
.sel-chip img { width: 40px; height: 26px; object-fit: cover; border-radius: 4px; flex: none; }
.sel-chip .el { flex: 1; }
.sel-chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sel-chip button:hover { background: rgba(255, 255, 255, 0.15); }
.chat-fab { position: absolute; right: 20px; bottom: 84px; z-index: 20; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--ln2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.chat-fab:hover { background: var(--s3); }

/* watching the export */
.player { width: min(1100px, 86vw); border-radius: 16px; overflow: hidden; background: #0B0B0B; border: 1px solid var(--ln2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.player-row span { margin-right: auto; font-size: 12px; }

/* ---------- the rooms (Draw, Animate, Stage, Film) ---------- */
.library { padding: 14px 10px 6px; overflow: auto; flex: 0 1 auto; max-height: 46%; }
.library section + section { margin-top: 14px; }
.library h3 { margin: 0 0 6px 8px; font-size: 11px; font-weight: 500; color: var(--tx3); }
.item { width: 100%; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--tx2); }
.item:hover { background: var(--s1); color: var(--tx); } .item.on { background: var(--s3); color: var(--tx); }
.dot.draw { background: var(--draw); } .dot.animate { background: var(--animate); } .dot.stage { background: var(--stage); } .dot.voice { background: var(--voice); }
.sound-dot { width: 12px; font-size: 8px; color: var(--animate); flex: none; text-align: center; }
.library .empty { padding: 4px 8px; color: var(--tx3); font-size: 12px; display: block; margin: 0; max-width: none; text-align: left; gap: 0; }
.inspector { flex: 1; overflow: auto; padding: 12px 14px; border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row label, .stack label { font-size: 11px; color: var(--tx3); }
.stack { display: flex; flex-direction: column; gap: 6px; }
.pills { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--s1); border: 1px solid var(--ln); gap: 2px; flex-wrap: wrap; }
.pills button { height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--tx2); }
.pills button:hover { color: var(--tx); } .pills button.on { background: var(--s3); color: var(--tx); }
.pills.small button { height: 22px; padding: 0 8px; font-size: 11.5px; }
.controls { display: flex; flex-direction: column; gap: 8px; }
.control { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 8px; color: var(--tx2); font-size: 12px; }
.control .pills { grid-column: 2 / -1; }
.control b { font-weight: 500; color: var(--tx); font-variant-numeric: tabular-nums; font-size: 11px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--tx); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.mini { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; color: var(--tx2); border: 1px solid var(--ln2); }
.mini:hover:not(:disabled) { color: var(--tx); background: var(--s2); }
.actions { display: flex; flex-direction: column; gap: 4px; }
.actions button { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: var(--s1); color: var(--tx2); }
.actions button:hover { color: var(--tx); background: var(--s2); }
.things { display: flex; flex-direction: column; gap: 2px; margin-top: -4px; }
.thing { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; color: var(--tx2); }
.thing:hover { background: var(--s1); } .thing.on { background: var(--skbg); color: var(--tx); }
.thing em { margin-left: auto; font-style: normal; color: var(--tx3); font-size: 11px; }
.refs { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ref-grid img, .ref-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--ln); }
.timeline { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 18px; }
.timeline.idle { height: 14px; }
.play { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--ln2); }
.play:hover { background: var(--s3); }
.time { font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; min-width: 112px; color: var(--tx); font-size: 12px; }
.time span { color: var(--tx3); }
.track { position: relative; flex: 1; height: 30px; border-radius: 8px; background: var(--s1); border: 1px solid var(--ln); }
.track i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.06); }
.track i span { position: absolute; top: -15px; left: 3px; font-style: normal; font-size: 9.5px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acbg); border-radius: 8px 0 0 8px; pointer-events: none; }
.track .head { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ac); border-radius: 1px; pointer-events: none; }
.track .key { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); background: var(--stage); border-radius: 2px; pointer-events: none; }
.picker { position: absolute; inset: 0; z-index: 5; cursor: crosshair; background: rgba(10, 10, 10, 0.18); }
.picker-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); height: 26px; padding: 0 12px; border-radius: 13px; background: rgba(20, 20, 20, 0.85); border: 1px solid var(--ln2); color: var(--tx2); font-size: 12px; display: flex; align-items: center; pointer-events: none; white-space: nowrap; }
.picker-box { position: absolute; border: 1.5px solid var(--ac); background: var(--acbg); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(5, 5, 5, 0.35); pointer-events: none; }
.caption { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 8px; background: rgba(10, 10, 10, 0.62); color: #fff; font-weight: 600; font-size: clamp(12px, 1.6vw, 19px); text-align: center; pointer-events: none; max-width: 80%; }

/* the Film room's timeline and editor */
.fi { display: flex; flex-direction: column; gap: 10px; }
.fi-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.fi-text { width: 100%; resize: vertical; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--ln2); background: var(--s1); outline: none; line-height: 1.45; }
.fi-text:focus { border-color: rgba(141, 183, 245, 0.5); }
.fi-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fi .row { flex-wrap: wrap; } .fi .row .pills { flex-wrap: nowrap; }
.fi select, .num { height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--ln2); background: var(--s1); color: var(--tx); font-size: 12px; outline: none; max-width: 150px; }
.num { width: 72px; text-align: right; } .num.wide { width: 100%; max-width: none; text-align: left; }
.ghost { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--ln2); background: var(--s2); color: var(--tx); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ghost:hover:not(:disabled) { background: var(--s3); }
.ghost.danger:hover:not(:disabled) { color: var(--coral); }
.ghost.small { height: 24px; padding: 0 8px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; background: var(--acbg); color: var(--tx2); font-size: 12px; }
.stack.focus textarea { border-color: var(--acln); }

/* ---------- Toon ---------- */
.tn { position: relative; display: inline-block; flex: none; }
.tz { position: absolute; inset: 0; display: block; }
.tz svg { width: 100%; height: 100%; overflow: visible; display: block; }
.tz * { transform-box: fill-box; transform-origin: center; }
.tz .at { transform-box: view-box; transform-origin: 0 0; }
@keyframes tz-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes tz-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(0.1); } }
@keyframes tz-look { 0%, 20% { transform: translate(0, 0); } 26%, 42% { transform: translate(-4px, 0); } 48%, 64% { transform: translate(4px, -1px); } 70%, 100% { transform: translate(0, 0); } }
@keyframes tz-muse { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1px, -1.5px); } }
@keyframes tz-mark { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes tz-scan { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes tz-ring { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes tz-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes tz-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
.tz .eye { animation: tz-blink 7s infinite; }
.tz.s-rest .body, .tz.s-listening .body { animation: tz-breathe 3.6s ease-in-out infinite; }
.tz.s-rest .gaze { animation: tz-look 9s var(--ease) infinite; }
.tz.s-thinking .gaze { animation: tz-muse 3s ease-in-out infinite; }
.tz.s-thinking .mark { animation: tz-mark 1.4s var(--ease) infinite alternate; }
.tz.s-working .gaze { animation: tz-scan 1.6s var(--ease) infinite; }
.tz.s-working .ring { animation: tz-ring 1.3s var(--ease) infinite alternate; }
.tz.s-needs .bell { animation: tz-ping 1.6s ease-in-out infinite; }
.tz.s-wincing .body { animation: tz-shake 0.4s ease-in-out 2; }
.tz.calm * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tz *, .dot.work, .did.now span, .doing i { animation: none !important; } }

/* ---------- narrower windows ---------- */
@media (max-width: 1360px) {
  :root { --chatw: 340px; }
  .room { grid-template-columns: 224px minmax(0, 1fr); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-h { font-size: 44px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib.with-side { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ======================================================================================================================
   The look of Home, carried everywhere: a soft glow at the top of each page, glass for what floats, pictures set
   inside their cards, and grouped surfaces instead of hairlines.
   ==================================================================================================================== */
.tinted { background: var(--bg); background-repeat: no-repeat; }

/* page tops */
.ph { height: auto; padding: 48px 0 28px; align-items: flex-end; gap: 12px; }
.ph-t { flex-direction: column; align-items: flex-start; gap: 6px; }
/* a narrow page (the Library with its side panel open): the search and buttons go below the title, never squeeze it */
.ph { flex-wrap: wrap; } .ph-t { min-width: 260px; }
.pjs .ph { align-items: center; padding-bottom: 24px; }
.pjs .tile-b { flex: 1; justify-content: space-between; gap: 6px; }
.ph-h { font-size: 36px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.ph-p { font-size: 14px; color: var(--tx2); }
.search { height: 40px; width: 280px; border-radius: 20px; padding: 0 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.ph .btn { height: 40px; border-radius: 20px; padding: 0 18px; font-size: 14px; }
.ph .btn.go { padding-right: 5px; } .ph .btn .go-i { width: 30px; height: 30px; }
.fbar { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.wide > .lk.back { margin-top: 40px; }

/* cards: the picture sits inside, with its own corners */
.tile-pic { margin: 8px 8px 0; width: auto; border-radius: 12px; overflow: hidden; border-bottom: 0; }
.tile-b { padding: 12px 14px 14px; }
.tile-t { min-height: 0; }
.tile-menu { top: 14px; right: 14px; }
.tile-menu .ib { border-radius: 50%; background: rgba(16, 16, 16, 0.72); }
.lcard { background: var(--s0); border-color: rgba(255, 255, 255, 0.07); transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.lcard:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.lcard-pic { margin: 8px 8px 0; border-radius: 12px; overflow: hidden; border-bottom: 0; }
.board-card, .board-card.design { background: var(--s0); border-color: rgba(255, 255, 255, 0.07); }
.board-img { margin: 8px 8px 0; border-radius: 12px; overflow: hidden; border-bottom: 0; }
.board-n { border-radius: 10px; }

/* the Library's detail panel floats */
.lib.with-side { grid-template-columns: minmax(0, 1fr) 380px; }
.side { margin: 12px 12px 12px 0; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.035); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.side-pic { border-radius: 16px; }

/* Settings: sections as cards */
.set { padding-top: 48px; }
.set-nav .ph-h { margin: 0 0 20px 12px; }
.set-nav .ni { border-radius: 12px; }
.sh { font-size: 13px; font-weight: 600; color: var(--tx2); padding: 0 4px 10px; }
.sgroup { padding: 0 20px; margin-bottom: 28px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.sgroup .srow { border-bottom-color: rgba(255, 255, 255, 0.06); }
.sgroup .srow:last-child { border-bottom: 0; }

/* a video's workspace: the steps as one track, pages with the glow */
.fh { border-bottom: 0; background: transparent; }
.fh-a { height: 52px; }
.fh-b { height: 52px; border-top: 0; padding: 0 16px 8px 18px; }
.steps { flex: 0 1 auto; gap: 2px; padding: 4px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); }
.step { height: 32px; padding: 0 11px 0 8px; border-radius: 16px; }
.step:hover { background: rgba(255, 255, 255, 0.05); }
.step.on { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.stg-l { flex: 0 0 8px; min-width: 6px; max-width: 12px; background: rgba(255, 255, 255, 0.1); }
.step-page { background: var(--bg); background-repeat: no-repeat; }
.spage { padding-top: 36px; }
.wks { background: rgba(255, 255, 255, 0.015); border-right-color: rgba(255, 255, 255, 0.06); }
.room { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.viewport { border-radius: 16px; border-color: rgba(255, 255, 255, 0.08); }

/* Toon's chat */
.chat { background: rgba(255, 255, 255, 0.015); border-left-color: rgba(255, 255, 255, 0.06); }
.chat-h { border-bottom-color: rgba(255, 255, 255, 0.06); }
.chat-hello { padding: 20px; gap: 10px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.07); background: none; }
.chat-hello-h { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.sugg-c { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: var(--tx); text-align: left; line-height: 1.35; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.sugg-c:hover { border-color: rgba(255, 255, 255, 0.338); background: rgba(255, 255, 255, 0.08); transform: translateX(2px); }
.sugg-c .i { color: var(--act); }

/* what floats: menus, dialogs, toasts */
.pop { border-radius: 14px; background: rgba(34, 33, 36, 0.88); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7); }
.mi { border-radius: 9px; } .mi:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.scrim { background: rgba(0, 0, 0, 0.45); }
.dlg { border-radius: 24px; padding: 24px; background: rgba(30, 29, 32, 0.92); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8); }
.toast { border-radius: 16px; background: rgba(34, 33, 36, 0.9); }
.in { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }

/* ---------- the rooms' panels, in the same look ---------- */
.room { grid-template-columns: 272px minmax(0, 1fr); }
.wks { padding: 6px 0 0; }
/* what is in the video */
.library { padding: 10px 12px 8px; max-height: 44%; }
.library section + section { margin-top: 16px; }
.library h3 { margin: 0 0 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx3); }
.item { height: 32px; gap: 10px; padding: 0 10px; border-radius: 10px; font-weight: 500; }
.item:hover { background: rgba(255, 255, 255, 0.05); }
.item.on { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.item .dot { width: 8px; height: 8px; }
.sound-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 7px; color: var(--onac); background: var(--ok); }
.library .empty { padding: 2px 10px; }
/* the inspector */
.inspector { padding: 16px 14px 18px; gap: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.fi { gap: 14px; }
.fi-title { gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; padding: 2px 2px 0; }
.fi-title .dot { width: 9px; height: 9px; }
.row { min-height: 32px; }
.row label, .stack label, .control > span { font-size: 12px; font-weight: 500; color: var(--tx2); }
.stack { gap: 8px; }
.hint { font-size: 12px; line-height: 1.5; color: var(--tx3); }
.pills { padding: 3px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.pills button { height: 26px; padding: 0 11px; border-radius: 13px; }
.pills.small button { height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; }
.pills button.on { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
/* a control: its name and value on one line, the slider under them */
.control { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; column-gap: 8px; padding: 10px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.control input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.control .pills { grid-column: 1 / -1; }
.control b { font-size: 12px; font-weight: 600; color: var(--tx); justify-self: end; }
.controls { gap: 8px; }
input[type="range"] { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.188), 0 2px 6px rgba(0, 0, 0, 0.5); transition: transform 0.15s var(--ease); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
/* fields, buttons and lists inside panels */
.fi-text, .fi select, .num { border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: var(--tx); }
.fi select, .num { height: 32px; padding: 0 10px; font-size: 12px; }
.fi-text { padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.fi-text:focus, .fi select:focus, .num:focus { border-color: rgba(255, 255, 255, 0.338); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.075); }
.ghost { height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); font-size: 12px; }
.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.ghost.danger { color: var(--coral); background: transparent; border-color: rgba(242, 139, 130, 0.25); }
.ghost.danger:hover:not(:disabled) { background: var(--cobg); }
.fi-row { gap: 8px; }
.mini { height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 500; }
.actions { gap: 6px; }
.actions button { min-height: 38px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--tx); font-weight: 500; transition: background 0.15s, border-color 0.15s; }
.actions button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); }
.actions button .i, .actions button svg { color: var(--act); }
.confirm { border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.225); }
.confirm button { height: 26px; padding: 0 10px !important; border-radius: 13px; background: rgba(255, 255, 255, 0.08); }
.things { gap: 2px; }
.thing { height: 32px; padding: 0 10px; border-radius: 10px; font-weight: 500; }
.thing:hover { background: rgba(255, 255, 255, 0.05); }
.thing.on { background: var(--skbg); box-shadow: 0 0 0 1px rgba(141, 183, 245, 0.3) inset; }
.refs { padding-top: 12px; }
.ref-grid { gap: 6px; } .ref-grid img, .ref-grid video { border-radius: 10px; border-color: rgba(255, 255, 255, 0.08); }

/* the players: one floating bar */
.timeline { height: 56px; margin: 12px 16px 14px; padding: 0 16px 0 10px; gap: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: none; }
.timeline.idle { height: 0; margin: 0 0 14px; border: 0; background: none; box-shadow: none; }
.play { width: 38px; height: 38px; border: 0; color: var(--onac); background: var(--ac); box-shadow: none; transition: transform 0.15s var(--ease); }
.play:hover { background: #FFFFFF; }
.play:active { transform: scale(0.94); }
.play svg { fill: currentColor; }
.time { font-size: 13px; font-weight: 600; min-width: 108px; }
.track { height: 26px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
.track .fill { border-radius: 10px 0 0 10px; background: rgba(255, 255, 255, 0.09); }
.track .head { width: 2px; background: var(--ac); box-shadow: none; }
.track .head::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.188); }
/* the film's timeline: a card of lanes */
/* on the picture */
.badge, .select-btn { height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(16, 16, 16, 0.6); border-color: rgba(255, 255, 255, 0.12); }
.select-btn:hover { background: rgba(16, 16, 16, 0.8); }
.picker-hint { height: 32px; border-radius: 16px; }
.caption { border-radius: 12px; }
.step-strip { padding: 14px 16px 0; }
@media (max-width: 1360px) { .room { grid-template-columns: 244px minmax(0, 1fr); } }
/* the middle column never grows past its share; the panel's parts never squash */
.center { grid-template-columns: minmax(0, 1fr); }
.step-strip { min-width: 0; }
.step-strip .lk.back { white-space: nowrap; flex: none; }
.step-strip .shead-r { min-width: 0; }
.step-strip .shead-f { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.step-strip .shead-r .f1 { flex: 1 1 0; }
.inspector > *, .fi > *, .controls > * { flex-shrink: 0; }
.inspector .row:has(> .pills) { flex-direction: column; align-items: flex-start; gap: 8px; }
.step-strip .shead { min-width: 0; }
.step-strip .shead-x { flex: none; }

/* the sidebar's toggle: always at the top; folded, Toon's face turns into it on hover */
.sb.rail { overflow: visible; position: relative; z-index: 30; }
.tgl { position: relative; }
.tgl-a, .tgl-b { display: grid; place-items: center; transition: opacity 0.15s var(--ease), transform 0.2s var(--ease); }
.tgl-b { position: absolute; inset: 0; opacity: 0; transform: scale(0.85); color: var(--tx); }
.tgl:hover .tgl-a, .tgl:focus-visible .tgl-a { opacity: 0; transform: scale(0.85); }
.tgl:hover .tgl-b, .tgl:focus-visible .tgl-b { opacity: 1; transform: none; }
.tgl:hover { background: rgba(255, 255, 255, 0.06); }
.tgl-x { position: relative; width: 32px; height: 32px; border-radius: 9px; }
.tip { position: absolute; z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 5px 0 12px; border-radius: 15px; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--tx); background: rgba(40, 39, 42, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.15s var(--ease) 0.25s, transform 0.2s var(--ease) 0.25s; }
.tip .kbd { height: 20px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.12); color: var(--tx); font-size: 11px; }
.tip.right { left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); }
.tip.below { right: 0; top: calc(100% + 8px); transform: translateY(-4px); }
.tgl:hover .tip.right, .tgl-x:hover .tip.below { opacity: 1; }
.tgl:hover .tip.right { transform: translate(0, -50%); }
.tgl-x:hover .tip.below { transform: none; }

/* navigation: larger rows, 20 px icons, and the open place's icon filled */
.ni { height: 40px; gap: 12px; padding: 0 12px 0 11px; border-radius: 12px; font-size: 14px; }
.ni .i { transition: color 0.15s; }
.ni.on { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.ni.on .i, .rbn.on .i { color: var(--act); }
.ni:not(.on):hover .i { color: var(--tx); }
.rbn .i { stroke-width: 1.7; }
.sound-dot .i, .voice-row .mini .i, .voice-opt .mini .i { display: block; }
.step .num .i { stroke-width: 3; }
.ok-tick .i { stroke-width: 3; }
.play .i { width: 18px; height: 18px; }

/* ---------- what floats: menus and dropdowns, always on top ---------- */
.pop.float { position: fixed; right: auto; bottom: auto; z-index: 1000; overflow-y: auto; animation: drop 0.16s var(--ease); }
.pop.float.flip { animation-name: lift; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@keyframes lift { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.pop-h { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tx3); }
.pop-h:not(:first-child) { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 10px; }
.mi:focus-visible { outline: none; background: rgba(255, 255, 255, 0.1); }
.mi.sel { color: var(--tx); } .mi.sel .i { color: var(--act); }
/* the app's dropdown button */
.sel { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.sel-v { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sel-k { color: var(--tx3); }
.sel > .i:last-child { flex: none; color: var(--tx3); transition: transform 0.2s var(--ease); }
.sel.on > .i:last-child { transform: rotate(180deg); }
.sel.field { height: 32px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--tx); max-width: 170px; }
.sel.field .sel-k { display: none; }
.sel.field:hover, .sel.field.on { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.sel.opt { height: 34px; padding: 0 12px; border-radius: 17px; color: var(--tx2); font-size: 13px; font-weight: 500; }
.sel.opt:hover, .sel.opt.on { background: rgba(255, 255, 255, 0.07); color: var(--tx); }
.sel.sm { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); font-size: 12px; font-weight: 500; color: var(--tx); }
.sel.sm:hover, .sel.sm.on { background: rgba(255, 255, 255, 0.08); }

/* ---------- Videos: grid or list ---------- */
.vtoggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.vtoggle button { width: 32px; height: 28px; border-radius: 14px; display: grid; place-items: center; color: var(--tx3); transition: background 0.15s, color 0.15s; }
.vtoggle button:hover { color: var(--tx); }
.vtoggle button.on { background: rgba(255, 255, 255, 0.1); color: var(--tx); box-shadow: none; }
.vtoggle button.on .i .p-soft { fill: currentColor; fill-opacity: 0.18; }
.vlist { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.vrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 140px 40px; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); cursor: default; transition: background 0.15s; }
.vrow:first-child { border-top: 0; }
.vrow:not(.vhead):hover { background: rgba(255, 255, 255, 0.04); }
.vhead { padding-top: 12px; padding-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--tx3); background: rgba(255, 255, 255, 0.02); }
.vpic { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); display: block; }
.vt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vt b { font-size: 14px; font-weight: 600; }
.vrow .nw { font-size: 12px; }
.vm { display: flex; justify-content: flex-end; opacity: 0; transition: opacity 0.15s; }
.vrow:hover .vm, .vm:focus-within { opacity: 1; }
@media (max-width: 1240px) { .vrow { grid-template-columns: 80px minmax(0, 1fr) 200px 40px; } .vrow > :nth-child(4) { display: none; } .vpic { width: 80px; } }

/* ---------- files given to Toon: chips, and the drop veil ---------- */
.atts { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt .atts { padding: 4px 20px 0; }
.cmp .atts { padding: 0 2px 2px; }
.att { display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 220px; padding: 4px 4px 4px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); animation: rise 0.2s var(--ease); }
.att img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.att-i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.105); color: var(--act); }
.att-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.att-t b { font-size: 12px; font-weight: 600; }
.att-t em { font-style: normal; font-size: 11px; color: var(--tx3); text-transform: capitalize; }
.att button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--tx3); }
.att button:hover { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
.cmp, .prompt { position: relative; }
.cmp.drag, .prompt.drag { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09); }
.drop-veil { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: inherit; background: rgba(14, 14, 14, 0.85); color: var(--act); font-size: 13px; font-weight: 600; pointer-events: none; }
.me-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.me-files span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); font-size: 11px; color: var(--tx2); }

/* ---------- packaging: the Package step, Channels, a channel's page ---------- */
.spage.pk { max-width: 1200px; }
.pk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pk-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pk-main .h3, .pk-group .h3 { margin-bottom: 12px; }
.pk-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.pk-group { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); }
.pk-group .h3 { margin: 0; }
.pk-count { font-style: normal; font-size: 11px; color: var(--tx3); }
.pk-alts { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pk-alt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; text-align: left; }
.pk-alt span { flex: 1; } .pk-alt em { font-style: normal; font-size: 12px; color: var(--act); opacity: 0; transition: opacity 0.15s; }
.pk-alt:hover { border-color: rgba(255, 255, 255, 0.262); } .pk-alt:hover em { opacity: 1; }
.pk-pic { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: #1a1a1a; display: grid; place-items: center; }
.pk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; text-align: center; font-size: 12px; color: var(--tx3); }
.pk-none b { color: var(--coral); font-weight: 600; } .pk-none em { font-style: normal; font-size: 11px; }
.pk-wait { display: grid; place-items: center; opacity: 0.8; }
.pk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pk-thumb { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); text-align: left; transition: border-color 0.2s, transform 0.25s var(--ease); }
.pk-thumb:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.14); }
.pk-thumb.on { border-color: rgba(124, 199, 154, 0.45); }
.pk-thumb-t { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; font-size: 12px; } .pk-thumb-t .el { flex: 1; font-weight: 600; }
.pk-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.14); color: var(--tx2); font-size: 13px; }
.pk-add:hover { border-color: rgba(255, 255, 255, 0.338); color: var(--tx); }
/* the feed preview, dark like YouTube's */
.yt { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; padding: 20px; border-radius: 18px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.yt-card { display: flex; flex-direction: column; gap: 10px; }
.yt-card.small { flex-direction: row; gap: 8px; } .yt-card.small .pk-pic { width: 168px; flex: none; border-radius: 8px; }
.yt-card.small b { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-card.small em { display: block; font-style: normal; font-size: 12px; color: #aaa; margin-top: 4px; }
.yt-meta { display: flex; gap: 12px; } .yt-meta b { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-meta em { display: block; font-style: normal; font-size: 13px; color: #aaa; margin-top: 4px; }
.yt-av { width: 36px; height: 36px; border-radius: 50%; background: #3a3a3a; flex: none; overflow: hidden; } .yt-av img { width: 100%; height: 100%; object-fit: cover; }
.yt-side { display: flex; flex-direction: column; gap: 12px; } .yt-side p { font-size: 12px; }
/* Channels */
.chcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); background: var(--s0); text-align: left; transition: transform 0.25s var(--ease), border-color 0.2s; }
.chcard:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.14); }
.chcard-banner { height: 84px; background: #1c1c1c; }
.chcard-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chcard-b { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; margin-top: -22px; }
.chcard-logo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--s3); border: 3px solid #1b1b1b; font-size: 20px; }
.chcard-logo img { width: 100%; height: 100%; object-fit: cover; }
.chcard-t { display: flex; flex-direction: column; min-width: 0; padding-top: 20px; } .chcard-t b { font-size: 15px; font-weight: 700; } .chcard-t em { font-style: normal; font-size: 12px; color: var(--tx3); }
/* a channel's page */
.ch-page { max-width: 1100px; display: flex; flex-direction: column; gap: 24px; }
.ch-yt { border-radius: 20px; overflow: hidden; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.ch-banner { aspect-ratio: 2560 / 423; background: #1c1c1c; display: grid; place-items: center; overflow: hidden; }
.ch-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-head { display: flex; gap: 20px; align-items: center; padding: 20px 24px 24px; }
.ch-logo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--s3); font-size: 44px; font-weight: 700; }
.ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .ch-about { color: #aaa; font-size: 13px; max-width: 640px; }
.ch-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ch-cols .wide-g { grid-column: 1 / -1; }
.ch-logos { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; }
.ch-rounds { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-round { border-radius: 50%; overflow: hidden; background: var(--s3); display: block; } .ch-round img { width: 100%; height: 100%; object-fit: cover; }
.ch-bannerfull { position: relative; }
.ch-bannerfull .safe { position: absolute; left: 0; right: 0; top: 50%; height: calc(100% * 423 / 1440); transform: translateY(-50%); border: 2px dashed #8DB7F5; border-radius: 4px; pointer-events: none; }
.ch-bannerfull .safe.all { left: calc(50% - 50% * 1546 / 2560); right: calc(50% - 50% * 1546 / 2560); border-color: var(--ac); }
.row-sugg { flex-direction: row; flex-wrap: wrap; }
@media (max-width: 1240px) { .pk-cols { grid-template-columns: minmax(0, 1fr); } .pk-side { position: static; } .yt { grid-template-columns: minmax(0, 1fr); } .ch-cols { grid-template-columns: minmax(0, 1fr); } }
/* nine steps: the track drops its joins when space is short */
.fh-b { container-type: inline-size; }
@container (max-width: 920px) { .stg-l { display: none; } .step { padding: 0 9px 0 6px; } }
@container (max-width: 760px) { .step { font-size: 11.5px; gap: 5px; padding: 0 7px 0 5px; } }
/* the Package page stacks when its column is narrow */
.spage.pk { container-type: inline-size; }
@container (max-width: 1020px) {
  .pk-cols { grid-template-columns: minmax(0, 1fr); }
  .pk-side { position: static; }
  .yt { grid-template-columns: minmax(0, 1fr); }
  .yt-card.big { max-width: 420px; }
}

/* ---------- History: every version of the video ---------- */
.hist-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.35); animation: fade 0.2s var(--ease); }
.hist { position: absolute; top: 44px; right: 8px; bottom: 8px; width: 420px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(26, 25, 28, 0.94); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8); animation: slide-in 0.3s var(--ease); overflow: hidden; }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.hist-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hist-h p { font-size: 12px; margin-top: 2px; }
.hist-ls { flex: 1; overflow: auto; padding: 8px 10px 16px; }
.hist-none { padding: 20px 10px; font-size: 13px; }
.hist-day { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tx3); }
.hv { border-radius: 14px; transition: background 0.15s; }
.hv.open { background: rgba(255, 255, 255, 0.05); }
.hv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 14px; text-align: left; }
.hv-row:hover { background: rgba(255, 255, 255, 0.04); }
.hv-row > .i { color: var(--tx3); transition: transform 0.2s var(--ease); } .hv.open .hv-row > .i { transform: rotate(180deg); }
.hv-who { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.07); color: var(--tx2); }
.hv-who.Toon { background: rgba(255, 255, 255, 0.09); }
.hv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-t b { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-t em { font-style: normal; font-size: 11px; color: var(--tx3); }
.hv.now .hv-t em { color: var(--ok); }
.hv-more { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 2px 12px 12px 52px; }
.hv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--tx2); }
.hv-files li { display: flex; align-items: center; gap: 8px; }
.hv-k { min-width: 56px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }
.hv-k.added { background: var(--okbg); color: var(--ok); } .hv-k.changed { background: var(--skbg); color: var(--sky); } .hv-k.removed { background: var(--cobg); color: var(--coral); }
.hist-foot { padding: 12px 20px 16px; font-size: 11px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------- A/B tests (Package page) ---------- */
.pk-thumb-pic { display: block; width: 100%; padding: 0; border-radius: 12px; }
.pk-thumb.ab { border-color: rgba(122, 178, 255, 0.45); box-shadow: 0 0 0 3px rgba(122, 178, 255, 0.08); }
.pk-thumb.on.ab { border-color: rgba(124, 199, 154, 0.5); }
.pk-idea { padding: 0 4px; font-size: 12px; line-height: 1.4; color: var(--tx2); }
.pk-ab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tx2); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.pk-ab:hover:not(:disabled) { color: var(--tx); border-color: rgba(122, 178, 255, 0.4); }
.pk-ab.on { color: #9CC5FF; background: rgba(122, 178, 255, 0.12); border-color: rgba(122, 178, 255, 0.35); }
.pk-ab:disabled { opacity: 0.4; cursor: default; }

.ab { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px; background: var(--s0); border: 1px solid rgba(122, 178, 255, 0.14); }
.ab-h { display: flex; align-items: flex-start; gap: 16px; } .ab-h .h3 { margin-bottom: 4px; }
.ab-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--tx2); }
.ab-cmp { display: grid; gap: 16px; padding: 16px; border-radius: 16px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.ab-cmp.n1 { grid-template-columns: minmax(0, 360px); } .ab-cmp.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-cmp.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ab-card .yt-meta b { font-size: 13px; } .ab-card .yt-meta em { font-size: 12px; } .ab-card .yt-av { width: 28px; height: 28px; }
.ab-pic { position: relative; flex: none; }
.yt-card.small .ab-pic { width: 168px; } .yt-card.small .ab-pic .pk-pic { width: 100%; }
.ab-l { position: absolute; bottom: 8px; left: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #0E0E0E; background: #9CC5FF; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.ab-l.sm { position: static; width: 18px; height: 18px; border-radius: 6px; font-size: 10px; flex: none; }
.ab-pic .ab-l.sm { position: absolute; bottom: 5px; left: 5px; }
.ab-small { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 14px 16px; border-radius: 16px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.ab-small .yt-card.small { width: 300px; } .ab-small > p { flex-basis: 100%; font-size: 12px; }
.ab-titles { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ab-title { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.ab-title.on { border-color: rgba(122, 178, 255, 0.35); background: rgba(122, 178, 255, 0.08); }
.ab-title:disabled { opacity: 0.5; cursor: default; }
.ab-box { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2); flex: none; color: #0E0E0E; }
.ab-title.on .ab-box { background: #9CC5FF; border-color: #9CC5FF; }
.ab-steps { display: flex; flex-direction: column; gap: 14px; }
.ab-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--tx2); }
.ab-steps b { color: var(--tx); font-weight: 600; } .ab-steps em { font-style: normal; color: var(--tx); }
.ab-run { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(122, 178, 255, 0.08); border: 1px solid rgba(122, 178, 255, 0.2); }
.ab-run b { display: block; font-size: 14px; } .ab-run em { font-style: normal; font-size: 12px; color: var(--tx2); }
.ab-dot { width: 9px; height: 9px; border-radius: 50%; background: #9CC5FF; flex: none; box-shadow: 0 0 0 4px rgba(122, 178, 255, 0.18); }
.ab-rec { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
.ab-q { font-size: 14px; }
.ab-opts { display: flex; flex-direction: column; gap: 6px; }
.ab-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.ab-opt.on { border-color: rgba(124, 199, 154, 0.5); background: rgba(124, 199, 154, 0.08); }
.ab-opt input[type="radio"] { accent-color: #7CC79A; margin: 0; }
.ab-share { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tx2); }
.ab-share .in { width: 56px; height: 28px; padding: 0 8px; text-align: right; }
.ab-past { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ab-past > .fa { padding-top: 10px; font-size: 12px; }
.ab-pt { display: flex; gap: 14px; font-size: 13px; } .ab-pt > em { font-style: normal; font-size: 12px; color: var(--tx3, #777); width: 110px; flex: none; padding-top: 2px; }
.ab-pt-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ab-pt-i { display: flex; align-items: center; gap: 8px; color: var(--tx2); } .ab-pt-i.win { color: var(--tx); } .ab-pt-i b { font-weight: 700; }
@container (max-width: 760px) { .ab-cmp.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mi .mi-t2 { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; } .mi .mi-t2 em { font-style: normal; font-size: 11.5px; color: var(--tx3, #8a8a8a); }

/* ======================================================================================================
   Plan mode, the Toon panel, and motion (Nov 2026)
   ====================================================================================================== */
:root { --spring: cubic-bezier(0.32, 0.72, 0, 1); --soft: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- The workspace: the editor and Toon. Toon's panel sits on top of the grid's second column, so it can grow
   to the whole workspace (plan mode) or slide away (hidden) with one transition. ---- */
.ws { grid-template-columns: minmax(0, 1fr) var(--chatw); transition: grid-template-columns 0.55s var(--spring); }
.ws.no-chat { grid-template-columns: minmax(0, 1fr) 0px; }
.ws-main { grid-column: 1; transition: opacity 0.45s var(--soft) 0.12s, transform 0.6s var(--spring) 0.08s, filter 0.45s var(--soft) 0.08s; }
.ws.plan .ws-main { opacity: 0; transform: translateX(-28px) scale(0.985); filter: blur(8px); pointer-events: none; transition-delay: 0s; }
.ws:not([hidden]) { animation: page-in 0.45s var(--soft) both; }

.chat { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: var(--chatw); overflow: hidden; isolation: isolate;
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.65s var(--spring), transform 0.5s var(--spring), opacity 0.35s var(--soft), border-color 0.4s; }
.ws.no-chat .chat { transform: translateX(calc(100% + 12px)); opacity: 0; pointer-events: none; }
.ws.plan .chat { width: 100%; border-left-color: transparent; background: #0f0f10; }

/* Plan mode's glow: Home's aura, quieter. */

/* ---- Header ---- */
.chat-h { height: 60px; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(18, 18, 19, 0.6); transition: padding 0.6s var(--spring); }
.ws.plan .chat-h { padding: 0 max(20px, calc((100% - 820px) / 2)); border-bottom-color: transparent; background: transparent; height: 72px; }
.chat-av { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; flex: none; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: box-shadow 0.4s, border-color 0.4s; }
.chat-av::after { content: ""; position: absolute; inset: -3px; border-radius: 15px; border: 1.5px solid transparent; transition: border-color 0.3s; }
.chat-av.work::after { border-color: rgba(122, 178, 255, 0.55); animation: av-ring 1.6s var(--soft) infinite; }
.chat-av.need { border-color: rgba(255, 255, 255, 0.338); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.075); }
.chat-av.err { border-color: rgba(240, 110, 100, 0.5); }
@keyframes av-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
.chat-who b { font-size: 14px; letter-spacing: -0.01em; }
.chat-for { font-weight: 500; color: var(--tx3); }
.chat-st { font-size: 12px; transition: color 0.3s; }
.chat-st .el { transition: opacity 0.2s; }

/* ---- The conversation ---- */
.chat-ls { padding: 18px 16px 24px; gap: 18px; scroll-behavior: smooth; transition: padding 0.65s var(--spring); }
.ws.plan .chat-ls { padding: 8px max(20px, calc((100% - 760px) / 2)) 32px; gap: 22px; }
.chat-ls > * { animation: msg-in 0.42s var(--soft) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.me { animation-name: me-in; padding: 10px 15px; border-radius: 20px 20px 6px 20px; background: var(--s2); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.6); font-size: 13.5px; }
@keyframes me-in { from { opacity: 0; transform: translateY(10px) scale(0.97); transform-origin: right bottom; } }
.said { font-size: 13.5px; line-height: 1.62; }
.ws.plan .said, .ws.plan .me { font-size: 15px; }
.bot-h { gap: 8px; font-size: 12px; }
.did-f { height: 26px; padding: 0 10px 0 8px; margin-left: 0; border-radius: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.did-f:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.did-f .i:last-child { transform: rotate(-90deg); opacity: 0.6; }
.did-g { position: relative; gap: 6px; padding-left: 14px; }
.did-g::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--ln); }
.did { position: relative; animation: msg-in 0.35s var(--soft) both; }
.did span { position: absolute; left: -14px; top: calc(50% - 3.5px); width: 7px; height: 7px; background: rgba(255, 255, 255, 0.25); border: 1.5px solid #121213; }
.did.now { color: var(--tx); } .did.now span { background: var(--sky); box-shadow: 0 0 0 3px rgba(122, 178, 255, 0.2); }
.shimmer, .did.now { color: var(--tx); animation: msg-in 0.35s var(--soft) both, pulse 1.6s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.doing { gap: 5px; height: 22px; }
.stat { align-self: center; padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.day span { padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.day::before, .day::after { background: var(--ln); } .day::after { transform: scaleX(-1); }

.cd { border-radius: 20px; padding: 16px; gap: 8px; animation: card-in 0.5s var(--spring) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.cd.need { box-shadow: none; }

.chat-down { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; font-weight: 600; color: var(--tx); background: rgba(40, 40, 44, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); animation: lift 0.3s var(--spring) both; }
.chat-down:hover { background: rgba(52, 52, 56, 0.9); }

/* ---- The hello ---- */
.chat-hello { animation: card-in 0.55s var(--spring) both; }
.plan-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: auto 0; padding: 6vh 0 2vh; }
.plan-hello-av { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 34px; background: var(--s1); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none; animation: float-y 6s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-6px); } }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.09); color: var(--act); }
.plan-hello-h { font-size: 34px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; max-width: 640px; }
.plan-hello p { max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--tx2); }
.sugg.row { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.sugg.row .sugg-c:hover { transform: translateY(-2px); }
.sugg .sugg-c { animation: msg-in 0.4s var(--soft) both; }
.sugg .sugg-c:nth-child(2) { animation-delay: 0.06s; } .sugg .sugg-c:nth-child(3) { animation-delay: 0.12s; }

/* ---- The message box ---- */
.cmp { margin: 0 12px 12px; padding: 12px 10px 8px; border-radius: 22px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  transition: margin 0.65s var(--spring), border-color 0.25s, box-shadow 0.3s, background 0.25s; }
.cmp:focus-within { border-color: rgba(255, 255, 255, 0.262); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 20px 40px -24px rgba(0, 0, 0, 0.8); background: rgba(255, 255, 255, 0.06); }
.ws.plan .pfoot { margin: 0 max(20px, calc((100% - 760px) / 2)) 10px; }
.ws.plan .cmp { margin: 0 max(20px, calc((100% - 760px) / 2)) 28px; padding: 16px 14px 10px; border-radius: 26px; background: rgba(28, 27, 30, 0.7); }
.cmp textarea { field-sizing: content; min-height: 44px; max-height: 176px; font-size: 13.5px; }
.ws.plan .cmp textarea { min-height: 72px; max-height: 260px; font-size: 15px; }
.send { transition: transform 0.18s var(--spring), background 0.2s, box-shadow 0.2s, opacity 0.2s; }
.send:not(:disabled):hover { transform: translateY(-1px); box-shadow: none; }
.send:disabled .i { opacity: 0.6; }

.chat-fab { opacity: 0; transform: scale(0.6) translateY(10px); pointer-events: none; transition: opacity 0.3s var(--soft), transform 0.45s var(--spring), background 0.2s; }
.chat-fab.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.2s; }

/* ---- The editor's shape follows the video's (16:9, 9:16, 1:1) ---- */
.board-img { aspect-ratio: var(--film-ar, 16 / 9); }
.player video { aspect-ratio: var(--film-ar, 16 / 9); max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }

/* ---- Motion across the app ---- */
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.page-scroll { animation: page-in 0.45s var(--soft) both; }
.step-page > * { animation: page-in 0.4s var(--soft) both; }
.grid > *, .grid4 > *, .pk-thumbs > *, .vlist > * { animation: msg-in 0.45s var(--soft) both; }
.grid > :nth-child(2), .grid4 > :nth-child(2), .pk-thumbs > :nth-child(2) { animation-delay: 0.04s; }
.grid > :nth-child(3), .grid4 > :nth-child(3), .pk-thumbs > :nth-child(3) { animation-delay: 0.08s; }
.grid > :nth-child(4), .grid4 > :nth-child(4), .pk-thumbs > :nth-child(4) { animation-delay: 0.12s; }
.grid > :nth-child(5) { animation-delay: 0.16s; } .grid > :nth-child(6) { animation-delay: 0.2s; } .grid > :nth-child(n+7) { animation-delay: 0.24s; }
.btn, .ib, .ni, .pj, .mi, .sel, .opt, .step, .seg > button, .sugg-c, .kind, .from-c, .round, .make-go, .pk-ab, .pk-alt, .ab-title, .ab-opt, .did-f, .lk {
  transition: background-color 0.18s var(--soft), color 0.18s var(--soft), border-color 0.18s var(--soft), box-shadow 0.25s var(--soft), transform 0.2s var(--spring), opacity 0.2s; }
.btn:active:not(:disabled), .ib:active:not(:disabled), .ni:active, .pj:active, .step:active, .seg > button:active, .sugg-c:active, .kind:active, .from-c:active, .round:active, .make-go:active:not(:disabled), .pk-ab:active:not(:disabled), .sel:active:not(:disabled), .mi:active { transform: scale(0.97); }
.btn.go .go-i { transition: transform 0.25s var(--spring); } .btn.go:hover .go-i { transform: translateX(2px); }
.tile, .chcard, .pk-thumb, .lcard { transition: transform 0.35s var(--spring), border-color 0.25s, box-shadow 0.35s var(--soft); }
.tile:hover, .chcard:hover, .lcard:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9); }
.toast { animation: toast-in 0.4s var(--spring) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } }
.step .num { transition: background-color 0.3s var(--soft), border-color 0.3s, color 0.3s; }
@keyframes pop { 40% { transform: scale(1.25); } }
.bg { transition: background-color 0.25s, color 0.25s; }
.cell, .in, .doc-edit { transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.in:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.empty-page { animation: card-in 0.5s var(--spring) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- The Toon panel, slimmed (header: face, the chat's name, history, new chat, more, hide) ---- */
.chat-h { height: 52px; gap: 4px; padding: 0 8px 0 14px; }
.chat-face { display: grid; place-items: center; width: 28px; height: 28px; flex: none; margin-right: 4px; }
.chat-who { gap: 1px; }
.chat-who b { font-size: 13px; font-weight: 600; }
.chat-st { font-size: 11.5px; }
.chat-st.work { color: var(--sky); } .chat-st.need { color: var(--act); } .chat-st.err { color: var(--coral); }
.chat-h .ib { width: 30px; height: 30px; border-radius: 9px; color: var(--tx3); }
.chat-h .ib:hover:not(:disabled), .chat-h .ib.on { color: var(--tx); background: rgba(255, 255, 255, 0.06); }
.ib.flip .i { transform: scaleX(-1); }
.ws.plan .chat-h .btn { margin-left: 6px; }
.chat-hello { padding: 4px 2px; gap: 10px; border: 0; background: none; }
.chat-hello p { font-size: 13px; }
.chat-hello .sugg { margin-top: 0; }
.chat-hello .sugg-c { font-size: 12.5px; }
.chat-past { min-height: 46px; } .chat-past .el { max-width: 300px; font-size: 13px; }
.pop-none { padding: 8px 12px 10px; font-size: 12px; color: var(--tx3); max-width: 280px; line-height: 1.45; }
.show-toon { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 6px; border-radius: 16px; color: var(--tx2); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); animation: lift 0.35s var(--spring) both; transition: background 0.18s, color 0.18s; }
.show-toon:hover { background: rgba(255, 255, 255, 0.09); color: var(--tx); }
.show-toon .i { transform: scaleX(-1); }
.turn-b + .turn-b { margin-top: -6px; }

/* ======================================================================================================
   Simple and sleek (Nov 2026): no gradients, no glows, no frosted glass. Flat surfaces in a few greys, hairline
   borders, white for the main action, amber only for what is yours to do and for Toon.
   ====================================================================================================== */
:root { --pri: #F2F2F2; --pri-h: #FFFFFF; --onpri: #0E0E0E; }

/* The main action: white, flat, a plain arrow. */
.btn.pri, .btn.go.pri { background: var(--pri); color: var(--onpri); font-weight: 600; border-color: transparent; }
.btn.pri:hover:not(:disabled) { background: var(--pri-h); }
.btn.go, .btn.go.sm, .btn.go.lg, .ph .btn.go { padding-right: 12px; gap: 6px; }
.go-i, .btn.pri .go-i, .btn.lg .go-i, .ph .btn .go-i { width: auto; height: auto; background: none; border-radius: 0; }
.make-go { background: var(--pri); color: var(--onpri); font-weight: 600; height: 38px; padding: 0 14px 0 16px; }
.make-go:hover:not(:disabled) { background: var(--pri-h); transform: none; filter: none; }
.send { background: var(--pri); color: var(--onpri); }
.send:hover:not(:disabled), .send:not(:disabled):hover { background: var(--pri-h); transform: none; }
.play { background: var(--pri); color: var(--onpri); }
.play:hover { background: var(--pri-h); }

/* Calmer type. */
.stage-h { font-size: 44px; font-weight: 650; letter-spacing: -0.035em; color: var(--tx); }
.stage-p { font-size: 15px; color: var(--tx2); margin-top: 12px; }
.ph-h { font-size: 28px; font-weight: 650; letter-spacing: -0.025em; }
.plan-hello-h { font-size: 28px; font-weight: 650; }
.plan-hello-av { width: 80px; height: 80px; border-radius: 24px; box-shadow: none; animation: none; background: var(--s1); }

/* Surfaces: one hairline, no lift. */
.prompt { background: var(--s1); border-color: var(--ln2); }
.prompt.focus { border-color: rgba(255, 255, 255, 0.24); box-shadow: none; }
.cmp, .cmp:focus-within, .ws.plan .cmp { background: var(--s1); box-shadow: none; }
.cmp { border-color: var(--ln2); } .cmp:focus-within { border-color: rgba(255, 255, 255, 0.24); }
.in:focus { box-shadow: none; }
.tile:hover, .chcard:hover, .lcard:hover { transform: none; box-shadow: none; border-color: var(--ln2); }
.nudge { background: var(--s1); }
.kind-i { width: 56px; height: 56px; border-radius: 16px; background: var(--s1); border-color: var(--ln); }
.kind:hover .kind-i { background: var(--s2); }
.me { background: var(--s2); border-color: transparent; box-shadow: none; }
.cd.need, .cd { box-shadow: none; }
.ab { border-color: var(--ln); }
.pk-thumb.ab { box-shadow: none; }
.toast { background: var(--s2); border: 1px solid var(--ln2); }
.chat-down { background: var(--s2); box-shadow: none; }
.track .head { box-shadow: none; }
.step.on, .ni.on { box-shadow: none; }

/* the voice: a line's delivery, and what hearing its take back found */
.voice-how { display: block; font-size: 11px; color: var(--tx3); margin-top: 2px; }
.voice-warn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; color: var(--coral); background: var(--cobg); border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
.voice-warn button { background: none; border: 0; padding: 0; font: inherit; color: var(--tx); text-decoration: underline; cursor: pointer; }
.voice-warn button:disabled { opacity: 0.5; cursor: default; }

/* ---- Credits (Settings › About) ---- */
.credits { width: 640px; max-width: calc(100vw - 48px); max-height: calc(100vh - 96px); display: flex; flex-direction: column; border-radius: 20px; background: var(--s0); border: 1px solid var(--ln2); animation: rise 0.22s var(--ease); }
.credits-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--ln); }
.credits-h .fa { margin-top: 4px; font-size: 13px; }
.credits-ls { overflow: auto; padding: 6px 20px 20px; }
.credits-g { margin: 18px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx3); }
.credit { border-bottom: 1px solid var(--ln); } .credit:last-child { border-bottom: 0; }
.credit-r { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.credit-r b { font-size: 13px; font-weight: 600; } .credit-r p { margin-top: 2px; font-size: 12.5px; }
.credit-l { flex: none; max-width: 200px; text-align: right; font-size: 12px; color: var(--tx2); }
.credit-t { margin: 0 0 12px; max-height: 240px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--ln); font: 11px/1.5 var(--mono); color: var(--tx2); white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.credits-note { font-size: 12.5px; line-height: 1.5; }

/* ---- The brand: Toon, the mascot, before the wordmark (the same drawing as the app icon) ---- */

/* ---- The model picker (Toon's message box, Home's prompt) ---- */
.mp { display: inline-flex; align-items: center; gap: 5px; height: 30px; max-width: 170px; padding: 0 9px 0 10px; border-radius: 15px; font-size: 12.5px; font-weight: 500; color: var(--tx2); }
.mp:hover:not(:disabled), .mp.on { background: rgba(255, 255, 255, 0.06); color: var(--tx); }
.mp .i:last-child { opacity: 0.6; flex: none; } .mp .i:not(:last-child) { color: var(--act); flex: none; }
.mp-sec + .mp-sec .mp-h { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 10px; }
.mp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mp-h em { font-style: normal; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--tx3); }
.mp-v { font-style: normal; color: var(--tx3); margin-left: auto; padding-right: 2px; } .mi:has(.mp-v) span { flex: 0 1 auto; } .mi:has(.mp-v) .i { transform: rotate(-90deg); opacity: 0.6; }
.mp-sub { padding-left: 22px; }
.mp-fast { min-height: 48px; white-space: normal; } .mp-fast .mi-t2 em { max-width: 210px; line-height: 1.35; }
.tg { position: relative; width: 34px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); flex: none; transition: background-color 0.2s; }
.tg i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--spring); }
.tg.on { background: var(--ok); } .tg.on i { transform: translateX(14px); }
.s-note { padding: 14px 20px 4px; font-size: 12.5px; line-height: 1.5; }
.mi .tg { flex: none; width: 34px; }
.mp-fast { gap: 14px; padding-top: 8px; padding-bottom: 8px; } .mp-fast .mi-t2 { flex: 1; }
/* Menus and dropdowns: solid (they were see-through glass before the flat restyle removed the blur). */
.pop, .pop.float { background: #1C1C1C; }
/* The picker's side panels (More models, Effort) open beside the menu, never over it. */
.pop.float.mp-pop { overflow: visible; }
.mp-fly { position: absolute; z-index: 2; width: max-content; min-width: 220px; max-width: 300px; padding: 6px; border-radius: 14px; background: #1C1C1C; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7); animation: drop 0.14s var(--ease); }
.mp-fly.right { left: calc(100% + 6px); } .mp-fly.left { right: calc(100% + 6px); }
.mp-row .i:last-child { transform: rotate(-90deg); opacity: 0.6; flex: none; } .mp-row.hot { background: rgba(255, 255, 255, 0.08); }
.mp-help { padding: 8px 10px 6px; max-width: 280px; font-size: 12px; line-height: 1.45; color: var(--tx3); white-space: normal; }
.mp-tag { margin-left: 8px; padding: 2px 7px; border-radius: 8px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--tx2); background: rgba(255, 255, 255, 0.07); white-space: nowrap; }
.mp-tag.warn { color: var(--act); background: var(--acbg); }
.mp-fly { right: auto; bottom: auto; overflow: visible; }
.mp-fly.left { left: auto; right: calc(100% + 6px); } .mp-fly.right { left: calc(100% + 6px); right: auto; }
/* The steps pill: points right when folded, down when open (click again to fold). */
.did-f .i:last-child { transition: transform 0.2s var(--spring); }
.did-f.open .i:last-child { transform: rotate(0deg); opacity: 0.8; }
.did-f.open + .did-g { margin-top: 2px; }

/* ===== The video's screens: About, Script, Storyboard, Video, Parts ===== */
.screens { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); flex: none; }
.scr { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; font-weight: 500; color: var(--tx3); white-space: nowrap; transition: background-color 0.2s var(--soft), color 0.2s; }
.scr:hover { color: var(--tx); background: rgba(255, 255, 255, 0.05); }
.scr.on { color: var(--tx); background: rgba(255, 255, 255, 0.1); }
.scr.now:not(.on), .scr.done:not(.on) { color: var(--tx2); }
.scr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.scr-ok { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--okbg); color: var(--ok); }
.scr-ok .i { stroke-width: 3; }
.scr-n { font-style: normal; font-size: 11px; color: var(--tx3); font-variant-numeric: tabular-nums; }

/* A screen's head, and the sections (steps) inside it */
.scr-h { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.scr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.scr-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: var(--tx2); transition: border-color 0.2s, color 0.2s; }
.scr-chip:hover { color: var(--tx); border-color: var(--ln2); }
.scr-chip em { font-style: normal; font-size: 11px; color: var(--tx3); }
.scr-chip.draft, .scr-chip.changed { border-color: var(--acln); color: var(--tx); } .scr-chip.draft em, .scr-chip.changed em { color: var(--act); }
.spage.about { max-width: 1120px; }
.scr-sec { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--ln); scroll-margin-top: 16px; }
.scr-sec .shead.sec { margin-bottom: 18px; }
.scr-sec.later { display: flex; flex-direction: column; gap: 6px; }
.scr-sec.later .h2 { color: var(--tx2); }
.scr-sec.pk { container-type: inline-size; }
.scr-sec .doc { max-width: 760px; }

/* Script: the words and their takes in one list */
.script.merged { margin-top: 24px; }
.script-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.script-bar .script-meta { margin: 0; }
.script.merged .script-cols, .script.merged .script-row { grid-template-columns: 28px minmax(0, 1.15fr) minmax(0, 1fr) 96px; gap: 14px; align-items: start; }
.script.merged .script-row { padding: 4px 6px; }
.script.merged .script-row.on { background: rgba(195, 179, 245, 0.08); }
.script.merged .script-row > .mini { margin-top: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--s2); color: var(--tx2); }
.script.merged .script-row > .mini:disabled { opacity: 0.35; }
.script.merged .voice-len { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 11px; font-size: 11px; color: var(--tx3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini.rec { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--tx3); opacity: 0; transition: opacity 0.15s, color 0.15s; }
.script-row:hover .mini.rec, .mini.rec:focus-visible { opacity: 1; } .mini.rec:hover { color: var(--tx); }
.script-note { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 8px 10px; font-size: 12px; color: var(--tx3); }

/* Video and Parts share the stage: a list on the left, the picture and its timeline in the middle */
.side-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx3); }
.side-h3 em { font-style: normal; font-weight: 500; letter-spacing: 0; }
.el2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shots, .parts-ls { flex: 1; min-height: 0; overflow: auto; padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.parts-ls section + section { margin-top: 16px; }
.shot-row, .part { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border-radius: 10px; text-align: left; transition: background-color 0.15s; }
.shot-row:hover, .part:hover { background: rgba(255, 255, 255, 0.04); }
.shot-row.on, .part.on { background: rgba(255, 255, 255, 0.08); }
.shot-pic { position: relative; width: 64px; aspect-ratio: var(--film-ar, 16 / 9); max-height: 64px; flex: none; border-radius: 7px; overflow: hidden; background: #F2EFE8; border: 1px solid var(--ln); }
.shot-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-pic b { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 700; color: #111; background: rgba(255, 255, 255, 0.85); border-radius: 4px; padding: 0 4px; }
.shot-t, .part-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 12px; line-height: 1.35; color: var(--tx); }
.shot-t em, .part-t em { font-style: normal; font-size: 11px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.part-t > .el { font-size: 13px; font-weight: 500; }
.part-pic { position: relative; width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--s2); color: var(--tx2); overflow: hidden; }
.part-pic.img { background: #F2EFE8; }
.part-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.part-pic.img .i { position: absolute; right: 2px; bottom: 2px; padding: 2px; border-radius: 5px; background: #1C1C1C; color: var(--tx); width: 16px; height: 16px; }
.ask-about { flex: none; display: flex; flex-direction: column; gap: 10px; margin: 0 10px 12px; padding: 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--ln); }
.ask-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.ask-l em { font-style: normal; font-size: 11px; color: var(--tx3); }
.ask-about .btn { align-self: flex-start; }

.vid-h, .part-h { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px 0; min-height: 46px; }
.vid-stages { display: flex; align-items: center; gap: 4px; }
.vid-stage { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; color: var(--tx3); background: rgba(255, 255, 255, 0.035); }
.vid-stage i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.vid-stage.now { color: var(--tx); } .vid-stage.now i { background: var(--tx); border-color: var(--tx); }
.vid-stage.draft, .vid-stage.changed { color: var(--act); background: var(--acbg); } .vid-stage.draft i, .vid-stage.changed i { background: var(--ac); border-color: var(--ac); }
.vid-stage.approved { color: var(--ok); } .vid-stage.approved .i { stroke-width: 3; }

.part-k { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 11px; font-weight: 500; color: var(--tx2); background: var(--s2); flex: none; }
.part-h .h2 { min-width: 0; }
.part-h .btn { flex: none; }
.seg.sm > button { height: 24px; padding: 0 10px; }
.part-bottom { display: flex; flex-direction: column; }
.part-bottom .timeline { margin-bottom: 0; }
.part-foot { display: flex; flex-direction: column; gap: 10px; margin: 12px 16px 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); }
.part-about { font-size: 13px; color: var(--tx2); line-height: 1.5; max-width: 760px; }
.part-used { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); }
.part-used > span { margin-right: 4px; }
.part-used .chip { height: 26px; padding: 0 10px; font-family: var(--mono); font-size: 11px; }
.part-used em { font-style: normal; }

/* A sound, the music or the look, over the stage */
.part-card { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #121212; }
.part-card.look img { max-width: 88%; max-height: 88%; border-radius: 10px; object-fit: contain; }
.part-none { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 320px; text-align: center; font-size: 13px; color: var(--tx3); }
.big-play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: var(--onpri); transition: transform 0.25s var(--spring), background-color 0.2s; }
.big-play:hover { background: var(--pri-h); transform: scale(1.04); } .big-play:active { transform: scale(0.97); }
.wave { display: flex; align-items: center; gap: 4px; height: 72px; }
.wave i { width: 4px; height: 100%; border-radius: 2px; background: var(--music); opacity: 0.55; transform-origin: center; transition: opacity 0.2s; }
.part-card.playing .wave i { opacity: 1; animation: wave-b 0.9s var(--soft) infinite alternate; }
@keyframes wave-b { from { scale: 1 1; } to { scale: 1 0.45; } }
.part-len { font-size: 12px; color: var(--tx3); }

/* Kits: the / menu in Toon's message box, the chips of what was picked, and the video's kit on About.
   Flat and solid; no amber (that is for "your turn" and Toon). */
.cmp { position: relative; }
.pop.slash { position: absolute; left: 0; right: 0; top: auto; bottom: calc(100% + 8px); max-height: 340px; min-width: 0; z-index: 30; background: #1C1C1C; border: 1px solid var(--ln2); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7); animation: none; }
.slash-i { min-height: 46px; gap: 10px; text-align: left; }
.slash-i.sel { background: rgba(255, 255, 255, 0.08); }
.slash-i .mi-t2 { min-width: 0; }
.slash-pic { width: 46px; height: 30px; flex: none; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--s3); color: var(--tx3); border: 1px solid var(--ln); }
.slash-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slash-pic.strip { display: flex; }
.slash-pic.strip i { flex: 1; height: 100%; }
.slash-pic.sm { width: 30px; height: 20px; border-radius: 4px; }
.mi .slash-pic, .mi .slash-tag { flex: none; }
.slash-tag { flex: none; font-size: 11px; color: var(--tx2); padding: 2px 8px; border-radius: 10px; border: 1px solid var(--ln2); }
.slash-f { display: flex; gap: 14px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--ln); font-size: 11px; color: var(--tx3); }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 3px 3px 4px; border-radius: 8px; background: var(--s2); border: 1px solid var(--ln); color: var(--tx); font-size: 12px; }
.pick-chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--tx2); }
.pick-chip button:hover { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
.kit-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--ln); }
.kit-pic { width: 128px; height: 80px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--s3); color: var(--tx3); border: 1px solid var(--ln); }
.kit-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-row.none .kit-pic { width: 56px; height: 56px; }
.kit-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kit-l { font-size: 12px; color: var(--tx3); }
.kit-b b { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.kit-b b em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--tx3); }
.kit-m { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--tx2); }
.kit-sw { display: inline-flex; gap: 3px; }
.kit-sw i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.12); }
.kit-b p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--tx2); max-width: 640px; }
.kit-b p.kit-new { color: var(--tx); }
.kit-font { margin-top: 4px; }
.kit-font b { font-size: 13px; font-weight: 400; color: var(--tx); }
.kit-font .btn.sm { height: 22px; padding: 0 9px; font-size: 11px; }
/* the font picker (screens.tsx FontPicker): each font written in its own face; the search stays at the top as it scrolls */
.side-about { font-size: 13px; line-height: 1.5; margin: 0; }

/* ---------- the licence screen (licence.tsx): instead of the app while no licence holds on this Mac ---------- */
.lic { height: 100vh; display: grid; grid-template-rows: 36px minmax(0, 1fr); background: var(--app); }
.lic-c { overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 24px 64px; margin: 0 8px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--ln); }
.lic-h { margin: 22px 0 8px; font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
.lic-p { max-width: 440px; margin: 0 0 24px; font-size: 14px; line-height: 1.55; }
.lic-f { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lic-in { width: 330px; height: 44px; border-radius: 22px; padding: 0 18px; font: 500 14px/1 var(--mono); letter-spacing: 0.04em; text-align: center; }
.lic-err { max-width: 440px; margin: 16px 0 0; color: var(--coral); font-size: 13px; line-height: 1.5; }
.lic-macs { width: min(520px, 100%); text-align: left; padding: 0 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); }
.lic-macs .srow:last-child { border-bottom: 0; }
.lic-foot { margin: 28px 0 0; max-width: 440px; font-size: 12.5px; line-height: 1.8; }
.lic-foot .lk { font-size: 12.5px; }
.sgroup .lic-macs { width: auto; padding: 0; border: 0; border-radius: 0; background: none; }

/* Toon's work belongs to its video (toon-work.ts): it never moves the screen. A screen it changed gets a small blue
   mark on its tab (the person's-turn dot stays white); while it works on the open video, one line says the person's
   edits wait; a message sent meanwhile waits above the box; each turn ends with Show links to what Toon made. */
/* Toon changed this screen: a dot at the tab's corner, apart from its own your-turn dot */
.scr-mark { position: absolute; top: 3px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 2px var(--s0); }
.busy-note { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 6px 12px; border-radius: 10px; background: var(--skbg); color: var(--tx2); font-size: 12.5px; }

fieldset.ro-set { display: contents; border: 0; padding: 0; margin: 0; min-width: 0; }
.cell[readonly] { cursor: default; }
.held { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); font-size: 12px; color: var(--tx2); }
.held-t { font-size: 11px; color: var(--tx3); }
.held-x { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the person's changes waiting for their next message: one quiet line above the box */
.edits { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 12px; color: var(--tx2); }
.edits-t { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tx3); }
.edits-x { min-width: 0; }
.shows { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.shows-t { font-size: 11px; color: var(--tx3); margin-right: 2px; }
.show-l { height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: var(--tx2); transition: background 0.2s, color 0.2s; }
.show-l:hover { background: rgba(255, 255, 255, 0.06); color: var(--tx); }

/* ---------- a project: five tabs, the preview over the page, and every decision in Toon's panel
   (docs/UI-WALK-2-DEC.md, item 2) ---------- */
/* the tabs sit in the middle of the bar: the name and the buttons each take an equal side */
.fh-l, .fh-r { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.fh-r { justify-content: flex-end; }
.fh-a .fh-title { max-width: 100%; flex: 0 1 auto; min-width: 0; }
.fh-a .screens { margin: 0 12px; }
.fh-a .btn.on { background: rgba(255, 255, 255, 0.14); }

/* the tab's room: the preview page stays loaded under every tab; Details and Script cover it */
.tabroom { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tabroom .viewport { flex: 1 1 0; min-height: 140px; margin: 12px 16px 0; }
.tabroom.on-details .viewport, .tabroom.on-script .viewport, .tabroom.on-storyboard .viewport { visibility: hidden; }
.tab-h { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: var(--g6); }
.tab-h.sm { margin-bottom: 12px; }
.tab-f { font-size: 12px; color: var(--tx3); white-space: nowrap; }
.step-page .spage { max-width: 1040px; }

/* Video: the preview, its controller, a line to drag, and the foot (shots or timeline, beside the selection) */
.vctl { flex: none; display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; height: 36px; }
.vctl .play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: var(--onpri); flex: none; transition: transform 0.2s var(--spring), background-color 0.15s; }
.vctl .play:hover:not(:disabled) { background: var(--pri-h); } .vctl .play:active:not(:disabled) { transform: scale(0.95); }
.vctl .time { flex: none; min-width: 96px; font-size: 12px; color: var(--tx); } .vctl .time span { color: var(--tx3); }
.vctl-bar { position: relative; flex: 1; height: 24px; touch-action: none; }
.vctl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.vctl-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--tx); pointer-events: none; }
.vctl-head { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--tx); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16); pointer-events: none; transition: transform 0.15s; }
.vctl-bar:hover .vctl-head, .vctl-bar:focus-visible .vctl-head { transform: scale(1.2); }
.vctl.off { opacity: 0.45; }
.vdiv { flex: none; height: 14px; margin: 2px 16px 0; display: grid; place-items: center; cursor: row-resize; touch-action: none; }
.vdiv::before { content: ""; width: 44px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); transition: background 0.15s, width 0.15s; }
.vdiv:hover::before, .vdiv.on::before, .vdiv:focus-visible::before { background: rgba(255, 255, 255, 0.4); width: 64px; }
.vfoot { flex: 0 1 var(--foot-h, 236px); min-height: 150px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin: 4px 16px 14px; }
.vfoot.vfoot-none { display: grid; place-items: center; border-radius: 18px; border: 1px dashed var(--ln2); color: var(--tx3); font-size: 13px; grid-template-columns: 1fr; }
.vfoot-main { min-width: 0; min-height: 0; overflow: auto; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); }
.vshots { display: flex; gap: 10px; padding: 12px; overflow-x: auto; min-height: 100%; align-items: flex-start; }
.vshot { flex: none; width: 168px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid transparent; text-align: left; transition: background 0.15s, border-color 0.15s; }
.vshot:hover { background: rgba(255, 255, 255, 0.04); }
.vshot.on { border-color: var(--ac); background: rgba(255, 255, 255, 0.06); }
.vshot.now:not(.on) { border-color: rgba(255, 255, 255, 0.18); }
.vshot-pic { position: relative; display: block; width: 100%; aspect-ratio: var(--film-ar, 16 / 9); border-radius: 8px; overflow: hidden; background: #F2EFE8; }
.vshot-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vshot-pic b { position: absolute; left: 5px; bottom: 4px; font-size: 10px; font-weight: 700; color: #111; background: rgba(255, 255, 255, 0.85); border-radius: 4px; padding: 0 4px; }
.vshot-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.35; }
.vshot-t em { font-style: normal; font-size: 11px; color: var(--tx3); }
.vsel { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--ln); }
.vsel .btn { align-self: flex-start; margin-top: auto; }
.vsel-t { font-size: 14px; font-weight: 600; }
.vsel-dl, .aside-dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.vsel-dl > div, .aside-dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.vsel-dl dt, .aside-dl dt { color: var(--tx3); }
.vsel-dl dd, .aside-dl dd { margin: 0; color: var(--tx); min-width: 0; overflow-wrap: anywhere; }

/* Assets (the founder, 3 Dec): the header like Details and Script; under it, as before, the selected asset's preview
   (the page's frame, kept first in the DOM so it never reloads, placed by the grid) with its own controls under it and
   its panel beside it; under them a chip for each kind and every asset in a grid. */
.tabroom.on-assets {
  display: grid; width: 100%; max-width: 1200px; margin: 0 auto; padding: 36px var(--g6) 0;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto clamp(220px, 46%, 520px) auto minmax(0, 1fr);
  grid-template-areas: "head head" "vp side" "ctl side" "browse browse";
  column-gap: 16px;
}
.tabroom.on-assets.none { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto clamp(220px, 50%, 600px); grid-template-areas: "head" "vp"; }
.tabroom.on-assets .viewport { grid-area: vp; min-height: 0; margin: 0; }
.av-head { grid-area: head; }
.av-search { width: 220px; height: 34px; }
.av-badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: var(--tx); font-size: 11px; backdrop-filter: blur(8px); }
.av-ctl { grid-area: ctl; display: flex; align-items: center; gap: 10px; min-width: 0; padding-top: 10px; }
.av-ctl .vctl { flex: 1; min-width: 0; margin: 0; }
.av-back { flex: none; }

/* The panel takes the preview's height and scrolls: it never grows the rows, so the controls stay under the preview. */
.tabroom.on-assets .aside { grid-area: side; contain: size; }
.aside { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--s1); border: 1px solid var(--ln); scrollbar-width: thin; }
.aside > * { flex-shrink: 0; }
.aside .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--tx3); }
.aside .h2 { font-size: 18px; }
.aside-about { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tx2); }
.aside-ask { align-self: flex-start; }
.aside-dl dd em { font-style: normal; color: var(--tx3); }
/* the asset's panel (the founder, 4 Dec): its kind and name, what it is, a few facts, and two things to do */
.apane { gap: 0; padding: 20px; }
.apane-h { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.apane-k { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: var(--tx2); font-size: 11.5px; font-weight: 500; }
.apane-t { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.apane-about { margin: 0; padding-bottom: 16px; font-size: 13.5px; line-height: 1.6; color: var(--tx2); }
.apane-dl { display: flex; flex-direction: column; margin: 0 0 16px; border-top: 1px solid var(--ln); }
.apane-dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); font-size: 13px; }
.apane-dl dt { color: var(--tx3); }
.apane-dl dd { margin: 0; color: var(--tx); min-width: 0; }
.apane-do { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.apane-do .btn { justify-content: center; width: 100%; height: 38px; }
.av-link { color: var(--tx); text-decoration: underline; text-decoration-color: var(--ln2); text-underline-offset: 3px; text-align: left; }
.av-link:hover { text-decoration-color: var(--tx2); }

.abrowse { grid-area: browse; min-height: 0; overflow: auto; margin: 0 -8px; padding: 18px 8px 24px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: -18px; z-index: 1; padding: 4px 0 6px; background: var(--bg); }
.achips .chip { height: 30px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.acard { text-align: left; }
.acard .lcard-pic { position: relative; background: #F2EFE8; color: #8A8578; }
.acard .lcard-pic.flat .pk-pic { height: 100%; width: auto; max-width: 100%; border-radius: 6px; background: none; }
.acard .lcard-pic.look img { padding: 0; object-fit: cover; }
.acard-k { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #1C1C1C; color: var(--tx); }
.acard-thumb { width: min(88%, 720px); border-radius: 12px; overflow: hidden; }
.acard-thumb.tall { width: auto; height: 88%; max-height: 88%; display: flex; justify-content: center; }
.acard-thumb.tall .pk-pic { height: 100%; width: auto; }
.av-nomatch { padding: 4px 0; font-size: 13px; }
@media (max-width: 860px) { .tabroom.on-assets { grid-template-columns: minmax(0, 1fr) 248px; column-gap: 12px; } .av-search { width: 160px; } }

/* Details, laid out like Script (the founder, 3 Dec): Details and Brief at the top right; the thumbnail beside the
   title and what the project is, then the tags and the description across; the brief as one page */
.spage.details { container-type: inline-size; }
.dt-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--ln2); font-size: 13px; line-height: 1.5; color: var(--tx2); }
.dt-note .i { flex: none; margin-top: 1px; color: var(--tx3); }
.dt-form { display: flex; flex-direction: column; gap: 28px; }
.dt-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dt-top.tall { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); }
@container (max-width: 760px) { .dt-top { grid-template-columns: minmax(0, 1fr); } }
.dt-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* A field: its name, and its count while typing or nearly full */
.dt-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dt-f-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 16px; font-size: 12px; font-weight: 500; color: var(--tx2); }
.dt-count { font-family: var(--mono); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--tx3); opacity: 0; transition: opacity 0.15s var(--ease); }
.dt-f:focus-within .dt-count, .dt-count.near { opacity: 1; }
.dt-count.near { color: var(--tx2); }
.dt-in { display: block; width: 100%; min-width: 0; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ln); background: var(--s1); color: var(--tx); font: 14px/1.4 var(--font); outline: none; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.dt-in:hover:not(:disabled), .dt-tags:hover:not(.off) { border-color: var(--ln2); }
.dt-in:focus, .dt-tags:focus-within { border-color: rgba(141, 183, 245, 0.55); box-shadow: 0 0 0 3px rgba(141, 183, 245, 0.12); }
.dt-in:disabled { color: var(--tx2); }
.dt-title { min-height: 46px; padding: 11px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; resize: none; field-sizing: content; }
.dt-desc { field-sizing: content; min-height: 168px; padding: 12px 14px; line-height: 1.6; resize: none; }
/* What the project is: rows like a properties list */
.dt-meta { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ln); }
.dt-meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--ln); }
.dt-meta dt { font-size: 12px; color: var(--tx3); }
.dt-meta dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx); }
.dt-meta dd em, .dt-none { font-style: normal; color: var(--tx3); }
.dt-fmt em { font-size: 12px; } .dt-fmt em::before { content: "·"; margin-right: 8px; }
.dt-look { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dt-look img { flex: none; width: 48px; height: 30px; border-radius: 6px; object-fit: cover; border: 1px solid var(--ln); }
.dt-look-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-look-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-look-t em { font-size: 12px; }
/* The tags: chips in a box that types the next one */
.dt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 9px; border-radius: 10px; border: 1px solid var(--ln); background: var(--s1); cursor: text; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.dt-tags.off { cursor: default; }
.dt-tag { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 26px; padding: 0 3px 0 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.07); font-size: 12px; color: var(--tx); }
.dt-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-tag button { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--tx3); transition: background 0.15s, color 0.15s; }
.dt-tag button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: var(--tx); }
.dt-tag button:disabled { display: none; }
.dt-tag:has(button:disabled) { padding-right: 10px; }
.dt-tags input { flex: 1 0 140px; min-width: 0; height: 26px; padding: 0 4px; border: 0; outline: none; background: none; color: var(--tx); font: 13px var(--font); }
/* The thumbnail: one frame, every control inside it (the founder's wireframe, 3 Dec) */
.dt-view { position: relative; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--ln); background: #161616; outline: none; }
.dt-view:focus-visible { box-shadow: 0 0 0 2px rgba(141, 183, 245, 0.6); }
.dt-view .pk-pic { border-radius: 0; background: none; }
.dt-view .pk-none { max-width: 300px; font-size: 13px; line-height: 1.5; }
.dt-ctl { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: rgba(12, 12, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.18s var(--ease), background 0.15s; }
.dt-view:hover .dt-ctl, .dt-view:focus-within .dt-ctl, .dt-ctl.on { opacity: 1; }
button.dt-ctl:hover:not(:disabled) { background: rgba(12, 12, 12, 0.85); }
button.dt-ctl:disabled { cursor: default; color: rgba(255, 255, 255, 0.45); }
.dt-exp { right: 12px; top: 12px; }
.dt-fs { right: 12px; bottom: 12px; }
.dt-nav { top: 50%; width: 36px; height: 36px; transform: translateY(-50%); }
.dt-nav.prev { left: 12px; } .dt-nav.next { right: 12px; }
.dt-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; padding: 2px 4px; border-radius: 12px; background: rgba(12, 12, 12, 0.5); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.18s var(--ease); }
.dt-view:hover .dt-dots, .dt-view:focus-within .dt-dots, .dt-dots.on { opacity: 1; }
.dt-dots button { display: grid; place-items: center; width: 16px; height: 18px; }
.dt-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transition: background 0.15s, transform 0.15s var(--ease); }
.dt-dots button:hover:not(:disabled)::before { background: rgba(255, 255, 255, 0.75); }
.dt-dots button.cur::before { background: #fff; transform: scale(1.2); }
.dt-full { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 56px 88px; background: rgba(8, 8, 8, 0.9); backdrop-filter: blur(14px); cursor: zoom-out; animation: fade 0.2s var(--ease); }
.dt-full img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.dt-full-x { right: 20px; top: 20px; width: 36px; height: 36px; opacity: 1; }
.dt-full .dt-nav { width: 44px; height: 44px; } .dt-full .dt-nav.prev { left: 24px; } .dt-full .dt-nav.next { right: 24px; }
.dt-full .dt-dots { bottom: 20px; }
/* The brief: one page, like Script's Read */
.dt-brief { max-width: 680px; margin: 0 auto; font-size: 15px; line-height: 1.7; }

/* A page of Markdown typed like a Notion page (md-editor.tsx): it reads as a page, with no box and no marks; the caret
   is all that says it can be typed into. Its blocks are its own children, spaced as the read-only page spaces them. */
.md-ed { position: relative; max-width: none; min-height: 48vh; padding-bottom: 24vh; outline: none; caret-color: var(--tx); cursor: text; }
.dt-brief .md-ed { font-size: 15px; line-height: 1.7; }
.md-ed[contenteditable="false"] { cursor: default; }
.md-ed > p, .md-ed > ul, .md-ed > ol, .md-ed > blockquote, .md-ed > pre, .md-ed > hr { margin: 0; }
.md-ed > * + p, .md-ed > * + ul, .md-ed > * + ol, .md-ed > * + blockquote, .md-ed > * + pre { margin-top: 12px; }
.md-ed > :first-child { margin-top: 0; }
.md-ed h5 { font-size: 13px; font-weight: 600; margin: 14px 0 4px; color: var(--tx3); }
.md-ed ul, .md-ed ol { padding-left: 22px; }
.md-ed li + li, .md-ed li > ul, .md-ed li > ol { margin-top: 3px; }
.md-ed li::marker { color: var(--tx3); }
.md-ed blockquote { padding: 2px 0 2px 14px; border-left: 2px solid var(--ln2); color: var(--tx2); }
.md-ed hr { height: 0; border: 0; border-top: 1px solid var(--ln2); margin: 22px 0; }
.md-ed pre { padding: 12px 14px; border-radius: 10px; background: var(--s1); border: 1px solid var(--ln); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; }
.md-ed a { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(141, 183, 245, 0.4); text-underline-offset: 3px; }
.md-ed s { color: var(--tx3); }
.md-ed strong { font-weight: 600; }
.md-ed ::selection { background: rgba(141, 183, 245, 0.28); }
.md-ed.is-empty::before { content: attr(data-placeholder); position: absolute; inset: 0 0 auto; color: var(--tx3); pointer-events: none; }

/* Script: Read (the words), Lines (heard beside seen), Storyboard (frames by scene) */
.read-page { max-width: 680px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--tx); user-select: text; -webkit-user-select: text; }
.read-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.read-page h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx3); margin: 28px 0 8px; }
.read-page p + p { margin-top: 10px; }
.scene-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-chips .chip { height: 28px; } .scene-chips .chip em { margin-right: 2px; }
.board-scene { scroll-margin-top: 16px; }
.board-scene + .board-scene { margin-top: var(--g8); }
.board-scene h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.script-tab .script-bar { position: sticky; top: -36px; z-index: 2; padding: 8px 0; background: var(--bg); }

/* Preview: the whole cut over the page, from any tab */

/* The subtitles: a layer over the picture's own frame (the page letterboxes it in the viewport), so they sit where an
   export with them puts them, at a size that follows the frame; CC in the controls shows or hides them. */
.vbox { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.vframe { position: absolute; inset: 0; margin: auto; width: min(100cqw, calc(100cqh * var(--film-ar, 16 / 9))); height: min(100cqh, calc(100cqw / (var(--film-ar, 16 / 9)))); container-type: size; }
.vframe .caption { bottom: 8%; max-width: 88%; width: max-content; font-size: clamp(11px, 4.2cqmin, 30px); }
/* the round icon buttons after the time bar: subtitles on or off, full screen */
.vctl-ib { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--tx3); transition: color 0.15s, background-color 0.15s; }
.vctl-ib:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, 0.07); }
.vctl-ib:disabled { opacity: 0.4; }
.vctl-cc.on { color: var(--tx); }
.btn.icon { width: 32px; padding: 0; }

/* Full screen (4 Dec, in place of Preview): only the picture and its controls, the controls in a bar at the foot */
.tabroom:fullscreen { display: block; background: #000; }
.tabroom:fullscreen > * { display: none; }
.tabroom:fullscreen > .viewport { display: block; position: absolute; inset: 0 0 76px; margin: 0; border: 0; border-radius: 0; background: #000; visibility: visible; }
.tabroom:fullscreen > .vctl { display: flex; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(820px, calc(100% - 48px)); margin: 0; height: 48px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(30, 30, 32, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); }
.tabroom:fullscreen .select-btn, .tabroom:fullscreen .home-btn { display: none; }

/* Toon's panel: the card that waits for the person, pinned at its foot */
.pfoot { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 0 12px 8px; }
.pfoot:empty { display: none; }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--ln2); animation: lift 0.35s var(--spring) both; }
.pcard.need { border-color: var(--acln); background: rgba(255, 255, 255, 0.06); }
.pcard.spend { border-color: rgba(195, 179, 245, 0.45); }
.pcard-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.pcard-h b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.pcard-h .eyebrow { display: block; font-size: 10px; margin-bottom: 1px; color: var(--tx3); }
.pcard.need .pcard-h .eyebrow { color: var(--tx); }
.pcard-i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--tx); }
.pcard.need .pcard-i { background: var(--ac); color: var(--onac); }
.pcard-p { font-size: 12.5px; line-height: 1.5; color: var(--tx2); }
.pcard-p b { color: var(--tx); font-weight: 600; }
.pcard-a { display: flex; align-items: center; gap: 8px; }
.pcard-f { font-size: 11.5px; }
.pcard-fold .i:last-child { transition: transform 0.2s var(--ease); }
.pcard.voice.open .pcard-fold .i:last-child { transform: rotate(180deg); }
.pcard.voice { padding-top: 10px; padding-bottom: 10px; }
.pcard-vs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.pcard-vs li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 4px; border-radius: 8px; font-size: 12.5px; }
.pcard-vs li.on { background: var(--okbg); }
.pcard-vs .mini { width: 26px; height: 26px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pcard-vn { display: flex; flex-direction: column; line-height: 1.3; } .pcard-vn em { font-style: normal; font-size: 11px; color: var(--tx3); }
.pcard-vs-f { justify-content: center; }
.pcard .link { background: none; border: 0; padding: 0; font: inherit; color: var(--tx); text-decoration: underline; }
.step-page { scrollbar-gutter: stable; }

/* Select to ask (select-ask.tsx): the brief and the script are read, never typed into; selected words float an Ask Toon
   button that puts them in Toon's message as context (docs/TOON-FREE-HAND.md, 3 Dec). */
.sel-ask { position: relative; }
/* words inside can be selected (the app turns selection off elsewhere); its buttons stay plain */
.sel-ask figcaption, .sel-ask .board-see { cursor: text; user-select: text; -webkit-user-select: text; }
.cell.ro { margin: 0; cursor: text; user-select: text; white-space: pre-wrap; overflow-wrap: anywhere; }
.cell.ro.none { color: var(--tx3); font-style: italic; }
.cell.ro::selection, .sel-ask ::selection { background: rgba(141, 183, 245, 0.35); }
.ask-float { position: absolute; z-index: 40; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(16, 16, 16, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--tx); font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6); animation: ask-in 0.2s ease-out both; }
@keyframes ask-in { from { opacity: 0; } }
.ask-float:hover { background: rgba(28, 28, 28, 0.96); }

/* the Storyboard tab (4 Dec): Grid, One by one, Play */
.step-page .spage.board-tab { max-width: 1200px; }
.board-tab .script-bar { position: sticky; top: -36px; z-index: 2; padding: 8px 0; background: var(--bg); }
.board-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: inherit; }
.board-open:focus-visible { outline: 2px solid var(--tx2); outline-offset: -2px; border-radius: 14px; }
.board-img.big { margin: 0 auto; width: min(100%, calc(52vh * var(--film-ar, 16 / 9))); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.07); }
.board-img.big .board-n { left: 12px; top: 12px; }
.bv-one, .bv-play { display: flex; flex-direction: column; gap: 16px; }
.bv-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.bv-frame { margin: 0; position: relative; min-width: 0; }
.bv-nav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--tx); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.15s, transform 0.2s var(--spring), opacity 0.15s; }
.bv-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); } .bv-nav:active:not(:disabled) { transform: scale(0.95); }
.bv-nav:disabled { opacity: 0.3; cursor: default; }
.bv-words { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.bv-words .board-id { display: none; }
.bv-words .board-see { font-size: 15px; } .bv-words .board-say { font-size: 14px; }
.bv-count { font-size: 11px; color: var(--tx3); } .bv-count em { font-style: normal; }
.bv-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.bv-strip-f { flex: none; padding: 0; border-radius: 10px; background: none; border: 2px solid transparent; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.bv-strip-f:hover { opacity: 0.9; } .bv-strip-f.on { opacity: 1; border-color: var(--tx); }
.bv-strip-f .board-img { margin: 0; border-radius: 8px; height: 72px; width: auto; }
.bv-strip-f .board-n { left: 4px; top: 4px; height: 16px; padding: 0 5px; font-size: 10px; line-height: 16px; border-radius: 6px; }
.bv-cap { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); max-width: min(80%, 720px); padding: 6px 14px; border-radius: 10px; background: rgba(12, 12, 12, 0.78); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; pointer-events: none; }
.bv-play-bar { display: flex; align-items: center; gap: 12px; width: min(100%, calc(52vh * var(--film-ar, 16 / 9))); margin: 0 auto; }
.bv-play-bar .vctl { flex: 1; min-width: 0; margin: 0; }
.bv-voice { flex: none; gap: 6px; }
.bv-voice.on { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
/* Play: the caption sits on the frame itself, and the bar keeps room to scrub even when the video is upright */
.bv-play .bv-frame { width: min(100%, calc(52vh * var(--film-ar, 16 / 9))); margin: 0 auto; }
.bv-play .board-img.big { width: 100%; }
.bv-cap { max-width: 88%; width: max-content; font-size: 14px; }
.bv-play-bar { width: min(100%, max(520px, calc(52vh * var(--film-ar, 16 / 9)))); }

/* Script (4 Dec): the microphone sits round and centred, and shows a little before the row is hovered */
.script.merged .mini.rec { width: 24px; height: 24px; padding: 0; border-radius: 50%; display: grid; place-items: center; opacity: 0.45; background: none; }
.script.merged .script-row:hover .mini.rec, .script.merged .mini.rec:focus-visible { opacity: 1; }
.script.merged .mini.rec:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.script.merged .mini.rec .i { display: block; }
/* Read plays its lines: a play button in the margin of each line, the line now playing marked */
.read-bar { max-width: 680px; margin-left: auto; margin-right: auto; }
.read-line { position: relative; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.read-line.on { background: rgba(195, 179, 245, 0.08); box-shadow: 0 0 0 6px rgba(195, 179, 245, 0.08); }
.read-play { position: absolute; left: -38px; top: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--tx2); background: rgba(255, 255, 255, 0.06); opacity: 0; transition: opacity 0.15s, color 0.15s; user-select: none; -webkit-user-select: none; }
.read-line:hover .read-play, .read-line.on .read-play, .read-play:focus-visible { opacity: 1; }
.read-play:hover { color: var(--tx); background: rgba(255, 255, 255, 0.12); }
.read-play .i { display: block; }
/* Who says a line (dialogue): the character's name above it, as in a screenplay */
.read-line .who, .script.merged .cell .who { display: block; font-size: 12px; font-weight: 600; color: var(--tx2); margin-bottom: 2px; user-select: none; -webkit-user-select: none; }
/* Voices: every voice with a sample to hear */
.voices-at { position: relative; flex: none; }
.voices-at > .btn.on { background: rgba(255, 255, 255, 0.12); }
.voices-pop { width: 380px; max-height: min(520px, 64vh); padding: 6px 4px; }
.vlist section + section { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.vlist h4 { margin: 4px 10px 6px; font-size: 11px; font-weight: 600; color: var(--tx2); }
.vlist h4 em { font-style: normal; font-weight: 400; color: var(--tx3); margin-left: 4px; }
.vlist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.vl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.vl-row:hover { background: rgba(255, 255, 255, 0.04); }
.vl-row.on { background: rgba(255, 255, 255, 0.06); }
.vl-play { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--tx); background: rgba(255, 255, 255, 0.07); transition: background 0.15s, transform 0.15s var(--spring); }
.vl-play:hover { background: rgba(255, 255, 255, 0.14); } .vl-play:active { transform: scale(0.94); }
.vl-play.on { background: var(--tx); color: var(--bg); }
.vl-play .i { display: block; }
.vl-play .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--tx); animation: vl-spin 0.8s linear infinite; }
@keyframes vl-spin { to { transform: rotate(360deg); } }
.vl-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vl-n b { font-size: 13px; font-weight: 500; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-n em { font-style: normal; font-size: 11px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-none { margin: 6px 10px; font-size: 12px; color: var(--tx3); line-height: 1.5; }
.sgroup .vlist { padding: 6px 4px; }

/* Video (4 Dec): the shots wrap in rows (no long sideways scroll), each card the video's shape, the made shot's own picture */
.vshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(76px, calc(104px * var(--film-ar, 16 / 9)), 196px), 1fr)); gap: 8px; overflow: visible; min-height: 0; align-items: start; }
.vshot { width: auto; min-width: 0; }
.vshot-pic.made { background: #000; }
.vshot-t .el { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; }

/* Settings › Plugins (plugins.tsx) */
.plug .srow-t b { display: inline-flex; align-items: center; gap: 8px; }
.plug .srow-t b .i { color: var(--tx2); }
.plug + .plug .srow:first-child { border-top: 0; }
/* Settings › Toon › What Toon has learned: a technique opens to show itself */
.tech .srow { align-items: center; }
.tech-h { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.tech-h > .i { margin-top: 3px; color: var(--tx3); flex: none; }
.tech-h .srow-t b { display: inline-flex; align-items: center; gap: 8px; }
.tech + .tech .srow:first-child { border-top: 0; }
.tech-b { margin: 0 0 var(--g3) 22px; padding: var(--g3) var(--g4); border-radius: 10px; background: var(--s1); display: grid; gap: 4px; }
.tech-b dt { font-size: 12px; font-weight: 600; color: var(--tx2); margin-top: 6px; }
.tech-b dt:first-child { margin-top: 0; }
.tech-b dd { margin: 0; line-height: 1.5; white-space: pre-wrap; }
/* Settings › Plugins: the catalogue, a card a service (connected by signing in on its own page) */
.s-lead { padding: 0 4px 14px; max-width: 640px; font-size: 12.5px; line-height: 1.55; }
.pcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 28px; }
.pcat { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, background-color 0.2s; }
.pcat.on { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045); }
.pcat-h { display: flex; align-items: center; gap: 12px; }
.pcat-m { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s3); color: var(--tx); font-size: 15px; font-weight: 600; }
.pcat-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .pcat-n b { font-weight: 600; } .pcat-n span { font-size: 12px; color: var(--tx3); }
.pcat-p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--tx2); flex: 1; }
.pcat-f { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); }
.pcat-a { display: flex; align-items: center; gap: 8px; min-height: 30px; padding-top: 4px; }
.pcat-w { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx2); }
.pcat-w .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--tx); animation: vl-spin 0.8s linear infinite; }
.plug-run { display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--tx3); word-break: break-all; }
.plug-add { display: flex; flex-direction: column; gap: 14px; padding: 16px 0 18px; border-bottom: 1px solid var(--ln); }
.plug-add label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--tx2); }
.plug-add .in.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.plug-how { display: flex; }
.plug-l { font-size: 12px; color: var(--tx2); } .plug-l em { font-style: normal; color: var(--tx3); margin-left: 6px; }
.plug-secs { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plug-sec { display: flex; gap: 8px; width: 100%; } .plug-sec .in:first-child { width: 190px; flex: none; } .plug-sec .in:nth-child(2) { flex: 1; }
.plug-cost { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plug-acts { display: flex; justify-content: flex-end; gap: 8px; }

/* The first-run steps (onboarding.tsx): the licence screen's frame, with step dots and wider content. */
.ob-c { justify-content: flex-start; padding-top: 40px; }
/* centred when it fits, scrolling from the top when it doesn't (auto margins, not justify-content, which would clip) */
.ob-c > .ob-dots { margin-top: auto; } .ob-c > :last-child { margin-bottom: auto; }
.ob-dots { display: flex; gap: 6px; margin: 0 0 28px; }
.ob-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); transition: width 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s; }
.ob-dot.done { background: rgba(255, 255, 255, 0.4); }
.ob-dot.on { width: 18px; background: var(--tx); }
.ob .lic-p { max-width: 520px; }
.ob-grid { width: min(680px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; text-align: left; margin: 0 0 8px; }
.ob-nav { margin-top: 24px; }
.ob-line { margin: 0; font: 11.5px/1.5 var(--mono); color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-code { display: flex; gap: 8px; } .ob-code .in { flex: 1; min-width: 0; height: 30px; font-size: 12px; }
.ob-err { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--coral); }
.ob-folder { width: min(560px, 100%); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); text-align: left; }
.ob-folder .f1 { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ob-folder b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ob-folder .mu { font-size: 12px; }
.ob-checks { width: min(560px, 100%); text-align: left; padding: 0 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); }
.ob-checks .srow:last-child { border-bottom: 0; }
.ob-fix { margin: 16px 0 0; font-size: 12.5px; } .ob-fix code { font: 12px/1 var(--mono); white-space: nowrap; display: inline-block; padding: 3px 6px; border-radius: 6px; background: var(--s3); color: var(--tx); }
.ob-note { margin: 16px 0 0; font-size: 12.5px; color: var(--tx2); }
.s-engines { margin: 20px 0 8px; }
.ob-again { margin: -4px 0 0; font-size: 12px; } .ob-again .lk { font-size: 12px; }

/* Settings › Phone: the pairing code (dark on white, as a camera reads it best) beside what to do */
.phone-pair { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.phone-qr { flex: none; width: 196px; height: 196px; padding: 8px; border-radius: 14px; background: #fff; }
.phone-qr svg { display: block; width: 100%; height: 100%; }
.phone-pair-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.phone-pair-t b { font-weight: 500; }
.phone-pair-t .mu { font-size: 12px; line-height: 1.5; }
.phone-problem { color: var(--coral); }
