/* /editor (BUILD-PLAN.md phase 1): Cuescribe design system v3 (DECISIONS D22). Flat colour, Inter Tight 800
   headlines, one orange accent, clay shadows only on things you touch. No gradients, no blur. */
:root {
  --font: "Inter", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-lg: 28px; --r: 20px; --r-sm: 14px;
  --bg: #f3efe8; --surface: #fffaf3; --surface-2: #ece6dc; --ink: #17140f; --ink-2: #3e3a33; --muted: #6e685e;
  --line: #e2dbcf; --accent: #ff5b2e; --accent-ink: #fff; --accent-soft: #ffe1d6; --accent-2: #2f5bea;
  --clip: #dde6ff; --txt: #ffe7a6; --clip-ink: #2c3d7a; --txt-ink: #4a3a00; --dash: #cfc4b2;
  --err-ink: #a3260b; --err-bg: #ffe9e2; --danger-line: #f1c6b8;
  --surface-3: #e1d9cb; --stage: #e4dccf; --sel: #17140f; --sel-ink: #fffaf3;
  --c-text: #6a57e0; --c-cap: #e3b23c; --c-zoom: #2f76c9; --c-sound: #23806a; --c-music: #b4497a;
  --clay: 0 12px 24px -10px rgba(70,50,20,.22), inset 0 2px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(70,50,20,.07);
  --clay-sm: 0 6px 14px -8px rgba(70,50,20,.25), inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(70,50,20,.08);
  --clay-accent: 0 12px 22px -10px rgba(255,91,46,.55), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(120,30,0,.18);
  color-scheme: light;
}
/* Dark mode: the same choice as the rest of the site (device by default, data-theme on <html> overrides, saved as 'theme'). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --surface: #1d1b19; --surface-2: #262320; --ink: #f4efe6; --ink-2: #d2ccc1; --muted: #9a9389;
    --line: #2d2a26; --accent: #ff6a3d; --accent-ink: #1a0a03; --accent-soft: #3a1d12; --accent-2: #8fa8ff;
    --clip: #1c2643; --txt: #4a3c10; --clip-ink: #c5d2ff; --txt-ink: #ffe7a6; --dash: #4a443c;
    --err-ink: #ffb9a3; --err-bg: #3a1d12; --danger-line: #6b2f1c;
    --surface-3: #322e29; --stage: #0d0c0a; --sel: #f4efe7; --sel-ink: #17140f;
    --c-text: #6f5fe0; --c-cap: #e8bb4d; --c-zoom: #3a7fcf; --c-sound: #2a8c74; --c-music: #b95a88;
    --clay: 0 14px 28px -12px rgba(0,0,0,.7), inset 0 1.5px 0 rgba(255,255,255,.07), inset 0 -3px 0 rgba(0,0,0,.35);
    --clay-sm: 0 8px 16px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 0 rgba(0,0,0,.35);
    --clay-accent: 0 12px 22px -10px rgba(255,106,61,.45), inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(90,20,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1d1b19; --surface-2: #262320; --ink: #f4efe6; --ink-2: #d2ccc1; --muted: #9a9389;
  --line: #2d2a26; --accent: #ff6a3d; --accent-ink: #1a0a03; --accent-soft: #3a1d12; --accent-2: #8fa8ff;
  --clip: #1c2643; --txt: #4a3c10; --clip-ink: #c5d2ff; --txt-ink: #ffe7a6; --dash: #4a443c;
  --err-ink: #ffb9a3; --err-bg: #3a1d12; --danger-line: #6b2f1c;
  --surface-3: #322e29; --stage: #0d0c0a; --sel: #f4efe7; --sel-ink: #17140f;
  --c-text: #6f5fe0; --c-cap: #e8bb4d; --c-zoom: #3a7fcf; --c-sound: #2a8c74; --c-music: #b95a88;
  --clay: 0 14px 28px -12px rgba(0,0,0,.7), inset 0 1.5px 0 rgba(255,255,255,.07), inset 0 -3px 0 rgba(0,0,0,.35);
  --clay-sm: 0 8px 16px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 0 rgba(0,0,0,.35);
  --clay-accent: 0 12px 22px -10px rgba(255,106,61,.45), inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(90,20,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.035em; }
a { color: var(--accent-2); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo i { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: inline-block; position: relative; }
.logo i::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--surface); box-shadow: var(--clay-sm); font-weight: 650; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--clay-accent); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; }
.acct { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font); background: var(--ink); color: var(--bg); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.acct svg { width: 10px; height: 10px; }

/* Start: the Drop desk */
.s-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; }
.s-top nav { display: flex; gap: 6px; align-items: center; }
.s-top nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.s-main { max-width: 1240px; margin: 0 auto; padding: 18px 40px 60px; }
.s-main h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; line-height: .95; letter-spacing: -0.05em; margin: 18px 0 28px; }
.s-main h1 em { font-style: normal; color: var(--accent); }
.desk { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.drop { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--clay); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.drop .target { flex: 1; border: 2.5px dashed var(--dash); border-radius: var(--r); display: grid; place-items: center; text-align: center; padding: 26px; cursor: pointer; transition: background .15s, border-color .15s; }
.drop .target:hover, .drop .target.over, body.over .drop .target { background: var(--accent-soft); border-color: var(--accent); }
.drop .target b { font: 800 30px/1.05 var(--font-display); letter-spacing: -0.03em; display: block; margin-bottom: 6px; }
.drop .target span { color: var(--muted); }
.drop .note { margin: 0; color: var(--muted); font-size: 14px; }
.sizes { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--clay); padding: 28px; }
.sizes h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.sizes p { margin: 0 0 18px; color: var(--muted); }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size { border: 0; background: var(--bg); border-radius: var(--r-sm); padding: 16px; text-align: left; display: flex; gap: 14px; align-items: center; box-shadow: var(--clay-sm); }
.size:hover { outline: 2px solid var(--accent); }
.size .f { background: var(--ink); border-radius: 4px; flex: none; }
.size b { display: block; font-weight: 700; }
.size small { color: var(--muted); }
.s-main section { margin-top: 46px; }
.s-main .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.s-main .head h2 { font-size: 30px; font-weight: 800; }
.s-main .head span { color: var(--muted); font-size: 14px; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.proj { background: var(--surface); border-radius: var(--r); box-shadow: var(--clay-sm); overflow: hidden; color: inherit; border: 0; text-align: left; padding: 0; position: relative; }
.proj:hover { transform: translateY(-3px); }
.proj .pic { aspect-ratio: 16/9; background: #c9b79c; position: relative; display: block; }
.proj .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(23,20,15,.8); color: #fff; font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; }
.proj .meta { padding: 12px 14px 14px; display: block; }
.proj b { display: block; font-weight: 700; }
.proj small { color: var(--muted); }
.proj .x { position: absolute; top: 8px; right: 8px; border: 0; width: 28px; height: 28px; border-radius: 8px; background: rgba(23,20,15,.7); color: #fff; opacity: 0; }
.proj:hover .x, .proj .x:focus { opacity: 1; }
.acctbar { margin-top: 46px; border-top: 2px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; align-items: start; }
.acctbar h3 { font-size: 22px; font-weight: 800; }
.acctbar p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) {
  .s-top, .s-main { padding-left: 16px; padding-right: 16px; }
  .desk, .acctbar { grid-template-columns: 1fr; }
}

/* Editor: Look A (owner's pick, 5 Nov 2026, D89; design/editor-looks-2026-11-05/round-2/a.html). From Final Cut for iPad: settings
   sidebar at full height, viewer, media on the right, timeline under those two only, mode switch and an action bar. From Resolve's
   Cut page: two timelines, the whole video above and a closer one below. Zooms as blocks on their own lane (Screen Studio). */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 296px minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr); overflow: hidden; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; }
.top .mark { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 10px; background: var(--accent); position: relative; flex: none; box-shadow: var(--clay-accent); }
.top .mark i::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.top .pn { min-width: 0; }
.top .name { font: 800 17px var(--font-display); letter-spacing: -0.02em; border: 0; background: transparent; padding: 0 4px; width: 240px; max-width: 100%; border-radius: 6px; }
.top .name:focus { outline: 2px solid var(--accent); background: var(--bg); }
.top .saved { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.top .saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9a5b; }
.top .saved.off::before { background: #c9a227; }
.top .ur { display: flex; gap: 2px; }
.theme-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 10px; color: var(--ink-2); display: inline-grid; place-items: center; padding: 0; cursor: pointer; }
.theme-btn:hover { background: var(--bg); } .theme-btn svg { width: 18px; height: 18px; display: block; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; } :root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .moon { display: none; } :root:not([data-theme="light"]) .theme-btn .sun { display: block; } }
.top .ur button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 10px; font-size: 17px; color: var(--ink-2); }
.top .ur button:hover:not(:disabled) { background: var(--bg); }
.top .ur button:disabled { opacity: .35; cursor: default; }
.top .switch { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; height: 100%; align-items: stretch; }
.top .switch button { border: 0; background: none; padding: 0 2px; font-weight: 650; font-size: 14.5px; color: var(--muted); border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.top .switch button:hover { color: var(--ink); }
.top .switch button.on { color: var(--ink); border-bottom-color: var(--accent); cursor: default; }
.if-in { display: none; }
.signed-in .if-in { display: initial; }
.top .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.s { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.wide { width: 100%; justify-content: center; margin-bottom: 10px; }
.shapes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.shapes button { border: 0; background: var(--bg); border-radius: var(--r-sm); padding: 12px; text-align: left; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.shapes button .f { grid-row: 1 / 3; background: var(--ink); border-radius: 3px; justify-self: center; }
.shapes button b { font-size: 14px; }
.shapes button small { color: var(--muted); font-size: 11.5px; }
.shapes button:hover { outline: 2px solid var(--line); }
.shapes button.on { outline: 2px solid var(--accent); background: var(--accent-soft); }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style { border: 0; border-radius: 14px; background: #2c2925; height: 64px; box-shadow: var(--clay-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.style b { font: 800 15px var(--font-display); }
.style.on { outline: 3px solid var(--accent); }
.style[data-acct] { background: var(--surface-2); color: var(--ink-2); }
.line input[type=color] { width: 38px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.line input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.line select { max-width: 150px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 6px 8px; font-size: 13px; }
.sp-status { display: grid; gap: 8px; background: var(--bg); border-radius: 14px; padding: 12px; margin-bottom: 8px; font-size: 13px; justify-items: start; }
.sp-bar { width: 100%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--accent); }
.panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.script { font-size: 15px; line-height: 1.75; }
.script p { margin: 0 0 12px; }
.script .w { cursor: pointer; border-radius: 4px; padding: 1px 0; }
.script .w:hover { background: var(--surface-2); }
.script .w.now { box-shadow: inset 0 -2px 0 var(--accent); }
.script .w.on { background: var(--accent-soft); text-decoration: line-through; }
.sp-sel { position: sticky; bottom: -18px; display: flex; gap: 8px; background: var(--surface); padding: 10px 0 12px; }
.takes { max-height: 240px; overflow: auto; margin: 8px 0; }
.take { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.take input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.tk { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 8px 0; font-size: 13px; text-align: left; }
.tk b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark { position: absolute; top: 0; width: 10px; height: 14px; margin-left: -5px; background: var(--accent-2); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); cursor: pointer; }
.exm { margin: 18px 0 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.bclip { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; font-size: 13px; text-align: left; }
.bclip b { font-weight: 600; }
.bclip:hover b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.props textarea, .panel textarea { width: 100%; min-height: 70px; border: 0; border-radius: 12px; background: var(--bg); padding: 10px; font: inherit; resize: vertical; }
.props .btn, .panel .btn { justify-content: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.canvas-wrap { position: relative; display: grid; place-items: center; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #b9b0a2; font: inherit; cursor: pointer; }
.empty b { background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: var(--clay-accent); }
.empty small { font-size: 12.5px; }
.empty:hover b { filter: brightness(1.06); }
.empty:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 70; max-width: calc(100% - 32px); }

.sheet-bg { position: fixed; inset: 0; background: rgba(23,20,15,.35); display: grid; place-items: center; z-index: 50; }
.sheet { width: min(440px, calc(100% - 32px)); background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
/* A long sheet (the Pro list) scrolls inside the screen, and its buttons stay in reach at the bottom. */
.sheet { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.sheet h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.sheet p { margin: 0 0 16px; color: var(--ink-2); }
.sheet ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); }
.sheet .row { display: flex; gap: 10px; justify-content: flex-end; }
.sheet > .row:last-child { position: sticky; bottom: -26px; margin: 0 -26px -26px; padding: 14px 26px 26px; background: var(--surface); }
.sheet .bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.sheet .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.sheet .opts { display: grid; gap: 4px; margin-bottom: 16px; }

/* The left sidebar: word tabs, then either a tool (.panel) or the selected clip's settings (.props). */
.insp { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px 8px; flex: none; }
.tabs button { border: 0; background: transparent; display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabs button svg { width: 19px; height: 19px; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button.on { background: var(--sel); color: var(--sel-ink); }
.m-only { display: none !important; }
.sheet-top { display: none; } /* the phone sheet's Close bar */
.side-col { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.subtabs { display: flex; gap: 2px; margin: 2px 12px 6px; padding: 2px; background: var(--surface-2); border-radius: 8px; flex: none; }
.subtabs button { flex: 1; border: 0; background: none; padding: 5px 4px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; justify-content: center; white-space: nowrap; }
.subtabs button.on { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .subtabs button.on { background: var(--surface-3); }
.panel, .props { background: var(--surface); padding: 8px 12px 16px; overflow: auto; flex: 1; min-height: 0; }
.props, .app.has-sel .panel, .app.has-sel .subtabs { display: none; }
.app.has-sel .props { display: block; }
.app.has-sel #view { touch-action: none; }
.props .ph.who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.who img, .who .ph-pic { width: 38px; height: 50px; object-fit: cover; border-radius: 5px; flex: none; background: var(--surface-2); }
.who .tt { min-width: 0; flex: 1; }
.props h3 { font: 700 14px/1.25 var(--font); letter-spacing: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .tt span { display: block; color: var(--muted); font-size: 11.5px; }
.props .ph .btn { padding: 6px 12px; font-size: 12.5px; box-shadow: none; background: var(--surface-2); }
.group { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.group h4, .panel h4 { margin: 0 0 6px; font: 600 13px var(--font); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h4 { margin-top: 16px; }
.group.flash { outline: 2px solid var(--accent); }
.group .s { font-size: 12px; margin: 6px 0 2px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--ink-2); }
.panel .line { border-bottom: 1px solid var(--line); }
.line b { font-weight: 500; color: var(--ink); font-size: 12.5px; }
.line input[type=range] { width: 136px; accent-color: var(--ink); }
.group .chip { padding: 4px 9px; font-size: 12px; border-radius: 6px; border: 0; background: var(--surface); }
.group .chip.on { background: var(--sel); color: var(--sel-ink); }
:root[data-theme="dark"] .group .chip:not(.on) { background: var(--surface-3); }
.group .row2 .btn, .group > .btn { box-shadow: none; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.group select { background: var(--surface); }
.group textarea { background: var(--surface); }
.none-sel { color: var(--muted); font-size: 13px; padding: 18px 6px; text-align: center; }

/* Viewer and media */
.work { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--bg); }
.up { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; min-width: 0; }
.stage { overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 12px 0; min-width: 0; min-height: 0; gap: 6px; background: var(--stage); position: relative; }
.canvas-wrap { position: relative; display: grid; place-items: center; }
.canvas-wrap canvas { display: block; border-radius: 3px; background: #000; }
/* Music dips: where a sound clip is turned down, on the clip. */
.clip .beat { position: absolute; top: 0; height: 30%; width: 1px; background: rgba(255,255,255,.6); pointer-events: none; }
.clip .beat.one { height: 55%; background: #fff; }
.clip .dip { position: absolute; bottom: 0; height: 45%; background: rgba(0,0,0,.3); border-radius: 2px; pointer-events: none; }
/* Voice-over: the level meter, and the bar that stays on screen for the whole take. */
.vo { display: grid; gap: 8px; margin: 6px 0 4px; }
.vo h4 { margin: 4px 0 0; }
.vo-lvl { width: 136px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.vo-lvl i { display: block; height: 100%; width: 0; background: #2fa84f; border-radius: inherit; transition: width .06s linear; }
.vo-lvl i.hot { background: #e5484d; }
.vo-bar { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 8px 28px rgba(0,0,0,.28); max-width: calc(100% - 32px); }
.vo-bar b { font-weight: 650; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; flex: none; animation: vo-blink 1s steps(2) infinite; }
.vo-bar .vo-lvl { width: 72px; background: rgba(255,255,255,.2); }
.vo-bar .btn { white-space: nowrap; padding: 8px 16px; flex: none; }
@media (max-width: 480px) { .vo-bar { gap: 8px; padding-left: 12px; } .vo-bar .vo-lvl { width: 40px; } .vo-bar b { font-size: 13px; } }
@keyframes vo-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vo-bar .dot { animation: none; } }
.canvas-wrap #safe-cv { position: absolute; inset: 0; margin: auto; background: transparent; pointer-events: none; }
.canvas-wrap #safe-cv[hidden] { display: none; }
.cbar { align-self: stretch; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; flex: none; }
.cbar .sz { display: flex; align-items: center; gap: 7px; justify-self: start; }
.cbar .sz .f { background: var(--ink); border-radius: 2px; display: block; flex: none; }
.cbar select { border: 0; background: transparent; font: 600 12.5px var(--font); padding: 6px 2px; color: var(--ink-2); max-width: 128px; }
.cb-end { justify-self: end; display: flex; gap: 4px; align-items: center; }
.cb-end button { border: 0; background: transparent; border-radius: 7px; padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; }
.cb-end button svg { width: 16px; height: 16px; }
.cb-end button:hover, .cb-end button.on { background: var(--surface); color: var(--ink); }
.play { display: flex; align-items: center; gap: 4px; }
.play button { border: 0; background: transparent; color: var(--ink); }
.play .pp { width: 34px; height: 34px; border-radius: 50%; padding: 0; font-size: 14px; flex: none; }
.play .f { width: 30px; height: 30px; padding: 0; font-size: 13px; color: var(--ink-2); border-radius: 7px; }
.play .f:hover, .play .pp:hover { background: var(--surface); }
.play .t { font-size: 12.5px; font-weight: 500; margin-left: 8px; white-space: nowrap; }
.brow { background: var(--surface); border-left: 1px solid var(--line); padding: 10px 12px; overflow: auto; min-height: 0; min-width: 0; }
.bh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bh h3 { font: 700 14px var(--font-display); letter-spacing: 0; }
.bh span { display: flex; gap: 2px; align-items: center; }
.bh button { border: 0; background: none; border-radius: 7px; padding: 5px 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bh button:hover { background: var(--surface-2); color: var(--ink); }
.mlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mitem { border: 0; background: var(--surface-2); border-radius: 4px; padding: 0; overflow: hidden; text-align: left; position: relative; aspect-ratio: 3 / 4; color: var(--ink-2); }
.mitem .pic { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--mono); }
.mitem .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mitem span { position: absolute; left: 3px; right: 3px; bottom: 3px; font: 600 10px/1.3 var(--mono); color: #fff; background: rgba(0,0,0,.86); padding: 0 3px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem:hover { outline: 2px solid var(--accent); }
.mitem .missing { position: absolute; inset: 0; background: rgba(23,20,15,.72); color: #fff; font-size: 11px; display: grid; place-items: center; text-align: center; padding: 4px; }
.mitem.add-tile { display: grid; place-items: center; font-size: 22px; }
.incloud { position: absolute; top: 2px; right: 3px; font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: #b9b0a2; font: inherit; cursor: pointer; }
.empty b { background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.empty small { font-size: 12.5px; }
.empty:hover b { filter: brightness(1.06); }
.empty:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* The timeline: bar, the whole video, the closer view */
.tl { background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 7px 12px 8px; position: relative; overflow: hidden; min-width: 0; }
.tlbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tlbar .gr { flex: 1; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 2px; flex: none; }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 6px; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .seg button.on { background: var(--surface-3); }
.rng-act { display: flex; gap: 4px; align-items: center; font-size: 12px; flex: none; }
.rng-act b { font-weight: 500; margin-right: 4px; }
.rng-act button { border: 0; background: var(--surface-2); border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.tlbar .l { display: flex; gap: 1px; min-width: 0; }
.tlbar .l button { border: 0; background: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tlbar .l button svg { width: 16px; height: 16px; flex: none; }
.tlbar .l button:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.tlbar .l button:disabled { opacity: .4; cursor: default; }
.ph { display: none; }
.tlbar .l .ph { display: none; }
.over { position: relative; height: 32px; background: var(--surface-2); border-radius: 6px; overflow: hidden; touch-action: none; cursor: pointer; flex: none; }
.over .o { position: absolute; top: 3px; height: 15px; border-radius: 2px; background: #000 left center / auto 100% repeat-x; }
.over .o.on { box-shadow: 0 0 0 1px var(--accent); }
.over .a { position: absolute; bottom: 3px; height: 8px; border-radius: 2px; background: var(--c-sound); }
.over .a.k-text { background: var(--c-text); } .over .a.k-overlay { background: var(--muted); } .over .a.k-zoom { background: var(--c-zoom); } .over .a.k-cap { background: var(--c-cap); }
.over .rg { position: absolute; top: 0; bottom: 0; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 5px; cursor: grab; }
.over .rg i { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.over .rg i.l { left: -3px; } .over .rg i.r { right: -3px; }
.over .o-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; }
.tracks { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); min-height: 0; max-height: 34vh; overflow-y: auto; }
.labs { display: flex; flex-direction: column; padding-top: 20px; }
.labs div { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); }
.labs div button { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 0 3px; border-radius: 5px; }
.labs div button:hover { background: var(--surface-2); color: var(--ink); }
.lanes { position: relative; overflow-x: auto; overflow-y: hidden; display: flex; }
.lanes-in { position: relative; flex: none; }
.ruler { position: relative; height: 20px; font: 500 10px var(--mono); color: var(--muted); cursor: pointer; }
.ruler span { position: absolute; top: 3px; padding-left: 4px; border-left: 1px solid var(--line); height: 17px; }
.tr, .labs > div { height: 28px; }
.tr { position: relative; }
.tr.k-video, .labs > .k-video { height: 62px; }
.tr.k-audio, .labs > .k-audio { height: 38px; }
.tr.k-text, .labs > .k-text, .tr.k-overlay, .labs > .k-overlay, .tr.k-zoom, .labs > .k-zoom { height: 26px; }
.addm { position: absolute; inset: 2px 0; width: 100%; text-align: left; padding: 0 14px; border: 1.5px dashed var(--dash); background: transparent; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.addm:hover { border-color: var(--accent); color: var(--ink); }
.clip { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; overflow: hidden; cursor: grab; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); display: flex; align-items: center; background: #6b7f92; color: #fff; font: 600 11px var(--font); white-space: nowrap; user-select: none; -webkit-user-select: none; }
.tr.k-video .clip { top: 0; bottom: 0; }
.clip .lbl { padding: 0 7px; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.clip.video .lbl, .clip.image .lbl { position: absolute; left: 4px; top: 3px; max-width: calc(100% - 8px); padding: 1px 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 10px; border-radius: 3px; }
.clip .film { position: absolute; inset: 0; background-repeat: repeat-x; background-size: auto 100%; border-radius: inherit; }
.clip.text { background: var(--c-text); color: #fff; }
.clip.cap { background: var(--c-cap); color: #17140f; }
.clip.audio { background: var(--c-sound); color: #fff; }
.clip.audio.music { background: var(--c-music); }
.clip.image { background: #b98b72; }
.clip.box { background: var(--muted); color: var(--surface); }
.clip.zoom { background: var(--c-zoom); color: #fff; }
.clip .wave { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.55); }
.clip.sel { box-shadow: inset 0 0 0 2px var(--accent); z-index: 2; }
.clip .h { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 3; }
.clip .h.l { left: 0; } .clip .h.r { right: 0; }
.clip.sel .h { background: var(--accent); }
/* A transition on the cut into a video-track clip: a small diamond at its left edge, filled once one is set. */
.clip .cut { position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; padding: 0; border: 2px solid #fff; border-radius: 3px; background: rgba(23,20,15,.55); transform: rotate(45deg); z-index: 4; cursor: pointer; opacity: .75; }
.clip .cut:hover, .clip .cut:focus-visible { opacity: 1; }
.clip .cut.on { background: var(--accent); opacity: 1; }
.clip.drop-before { box-shadow: -4px 0 0 var(--accent-2); }
.tracks[data-mode="cut"] .clip { cursor: crosshair; }
.tracks[data-mode="range"] .tr, .tracks[data-mode="range"] .clip { cursor: text; }
.rng { position: absolute; top: 20px; bottom: 0; background: rgba(255,91,46,.2); box-shadow: inset 0 0 0 1.5px var(--accent); pointer-events: none; z-index: 4; }
.head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; z-index: 5; }
.head::before { content: ""; position: absolute; left: -5px; top: 0; width: 12px; height: 11px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.add { display: flex; gap: 6px; align-items: center; font-size: 11.5px; padding: 3px 0 0 62px; grid-column: 1 / -1; color: var(--muted); flex-wrap: wrap; }
.add button { border: 0; background: var(--surface-2); color: var(--ink-2); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
.add span { color: var(--muted); }
.jog { display: none; }

@media (max-width: 1240px) { .up { grid-template-columns: minmax(0, 1fr) 216px; } .mlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tlbar .l .lb { display: none; } .tlbar .l .lab .lb { display: inline; } }
@media (max-width: 1100px) { .app { grid-template-columns: 260px minmax(0, 1fr); } .top .switch { gap: 14px; } .top .name { width: 170px; } }
@media (max-width: 960px) { .top .switch { display: none; } .up { grid-template-columns: minmax(0, 1fr); } .brow { display: none; } .tabs .m-only { display: grid !important; } }
/* Phones (Look A): word tabs as a sidebar beside the video, the whole video bar, a timeline with the playhead fixed in the middle
   (the clips slide under it, as on the big phone editors), a jog wheel at the corner. A tool opens in a panel that takes the timeline's place
   (Close, or the same tab again, brings the timeline back). */
:root { --sheet-h: clamp(250px, 46vh, 470px); }
@supports (height: 100dvh) { :root { --sheet-h: clamp(250px, 46dvh, 470px); } }
@media (max-width: 760px) {
  .app { grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr) auto; }
  .top { gap: 6px; padding: 0 8px 0 10px; }
  .top .pn { flex: 1; min-width: 0; }
  .top .name { width: 100%; font-size: 16px; }
  .top .ur button { width: 30px; }
  .top .end .btn { padding: 8px 14px; }
  .top .ghost, .top .saved { display: none; }
  .insp { display: contents; }
  .work { display: contents; }
  .tabs { grid-column: 1; grid-row: 2; grid-auto-flow: row; grid-auto-rows: min-content; gap: 3px; padding: 5px 3px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
  .tabs button { font-size: 10px; padding: 8px 0 6px; }
  .tabs button svg { width: 20px; height: 20px; }
  .up { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage { padding: 0; gap: 0; }
  .canvas-wrap canvas { border-radius: 0; }
  .cbar { grid-template-columns: auto 1fr auto; height: 40px; padding: 0 6px; }
  .cbar .sz { display: none; }
  .play { justify-content: center; grid-column: 2; }
  .play .f { display: none; }
  .play .t { font-size: 11.5px; margin-left: 2px; }
  .cb-end { grid-column: 3; }
  .tl { grid-column: 1 / -1; grid-row: 3; padding: 6px 0 6px; gap: 5px; }
  .side-col { grid-column: 1 / -1; grid-row: 3; display: none; position: relative; height: var(--sheet-h); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 30px -18px rgba(23,20,15,.45); }
  .app.sheet-on .side-col { display: flex; }
  .app.sheet-on .tl, .app.sheet-on .cbar { display: none; }
  .sheet-top { display: block; position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 3; }
  .sheet-top .grab { position: absolute; left: 50%; top: 6px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line); }
  .sheet-x { position: absolute; top: 10px; right: 12px; border: 0; border-radius: 8px; background: var(--surface-2); padding: 7px 14px; font-weight: 700; font-size: 13px; color: var(--ink); }
  .app.has-sel .sheet-top, .side-col:has(.panel > .ph:first-child) .sheet-top { display: none; } /* those have their own Done */
  .subtabs { margin: 12px 92px 4px 12px; }
  .panel, .props { padding: 14px 12px; overscroll-behavior: contain; }
  .subtabs:not([hidden]) ~ .panel { padding-top: 6px; }
  .panel h2 { font-size: 19px; }
  .panel > h2:first-child { padding-right: 92px; }
  .app:not(.sheet-on) .tabs button.on { background: transparent; color: var(--muted); }
  .tlbar { padding: 0 8px; gap: 4px; }
  .tlbar .seg { display: none; }
  .tlbar .gr { display: none; }
  .tlbar .l { flex: 1; justify-content: flex-end; gap: 0; }
  .tlbar .l .lb { display: none; }
  .tlbar .l .lab .lb { display: inline; font-size: 11px; }
  .tlbar .l button { padding: 6px 7px; }
  #dup, #mark { display: none; }
  .tlbar .l .ph { display: inline-flex; background: var(--surface-2); color: var(--ink); }
  .tlbar .l .ph svg { width: 16px; height: 16px; }
  #edit-clip:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
  .over { margin: 0 10px; height: 26px; }
  .over .o { height: 11px; } .over .a { height: 6px; }
  .tracks { grid-template-columns: minmax(0, 1fr); max-height: 26vh; min-height: 112px; }
  .labs { display: none; }
  .ruler { display: none; }
  .lanes::before, .lanes::after { content: ""; flex: 0 0 50%; }
  .lanes { scrollbar-width: none; }
  .lanes::-webkit-scrollbar { display: none; }
  .tr.k-video { height: 54px; }
  .rng { top: 0; }
  .clip:not(.sel) { touch-action: pan-x; }
  .clip.sel { touch-action: none; }
  .add { padding: 3px 104px 0 10px; } /* clear of the jog wheel */
  .jog { display: block; position: absolute; right: -86px; bottom: -92px; width: 176px; height: 176px; border-radius: 50%; background: var(--surface-3); z-index: 8; box-shadow: 0 0 0 3px var(--surface); touch-action: none; }
  .jog::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: repeating-conic-gradient(var(--muted) 0 1.2deg, transparent 1.2deg 7.5deg); -webkit-mask: radial-gradient(circle, transparent 68px, #000 69px); mask: radial-gradient(circle, transparent 68px, #000 69px); }
  .jog::after { content: ""; position: absolute; left: 20px; top: 50px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
}

/* Accounts (phase 2): sign-in sheet, /account, Studio shelf (dashboard C) */
:root { --char: #1d1b19; --char-2: #262320; --char-line: #34302b; --char-ink: #f4efe6; --char-muted: #9a9389; --clay-dark: 0 8px 18px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.signed-in .acct:not(.pro), .signed-in .rail .k { display: none; }
.inp, .fld input:not([type=checkbox]) { border: 0; border-radius: 12px; background: var(--bg); padding: 10px 12px; font: inherit; box-shadow: inset 0 2px 5px rgba(70,50,20,.1); min-width: 0; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.fld.chk { display: flex; align-items: center; gap: 8px; }
.fld.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.err { color: var(--err-ink); background: var(--err-bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.sheet .row.col { flex-direction: column; align-items: stretch; margin-bottom: 14px; }
.sheet .row.col .btn { justify-content: center; }
.sheet .row.between { justify-content: space-between; align-items: center; }
.row.start { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { border: 0; background: none; padding: 0; color: var(--accent-2); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.code { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 14px; padding: 14px; margin: 0 0 16px; }
.code b { font-size: 17px; letter-spacing: .04em; user-select: all; }
.code span { display: flex; gap: 8px; }
.acct-page { max-width: 760px; }
.acct-page h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -0.05em; margin: 10px 0 8px; }
.acct-page .box { background: var(--surface); border-radius: var(--r); box-shadow: var(--clay-sm); padding: 22px; margin-top: 16px; }
.acct-page .box h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.acct-page .box p { color: var(--ink-2); margin: 0 0 14px; font-size: 14.5px; }
.acct-page .box.danger { box-shadow: inset 0 0 0 2px var(--danger-line); }
.keys { list-style: none; margin: 0 0 14px; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.keys small { display: block; color: var(--muted); font-size: 13px; }

.studio { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--char); color: var(--char-ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side > a.logo { color: var(--char-ink); margin: 0 8px 22px; padding: 0; justify-content: flex-start; background: none; }
.side > button, .side > a, #folders button { display: flex; align-items: center; justify-content: space-between; color: var(--char-muted); text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; border: 0; background: none; text-align: left; width: 100%; }
.side > button:hover, .side > a:hover, #folders button:hover { color: var(--char-ink); background: var(--char-2); }
.side button.on { color: var(--char-ink); background: var(--char-2); box-shadow: var(--clay-dark); }
#folders button span { font: 500 12px var(--mono); }
.side .grp { font: 600 12px var(--font); color: var(--char-muted); margin: 20px 12px 4px; }
.side .none { margin: 0 12px; font-size: 12.5px; color: var(--char-muted); }
.side .store { margin-top: auto; background: var(--char-2); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--char-muted); display: grid; gap: 4px; }
.side .store b { color: var(--char-ink); }
.side .store a, .side .store .link { color: var(--char-ink); font-size: 13px; }
.st-main { padding: 26px 40px 60px; min-width: 0; }
.bar1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bar1 h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; flex: 1; }
.search { border: 0; border-radius: 999px; background: var(--surface); padding: 12px 18px; width: 280px; max-width: 100%; font: inherit; box-shadow: inset 0 2px 5px rgba(70,50,20,.12); }
.new { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; margin: 26px 0 26px; }
.new button { border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--clay-sm); padding: 18px; text-align: left; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; }
.new button:hover { outline: 2px solid var(--accent); }
.new button.big { background: var(--accent); color: var(--accent-ink); box-shadow: var(--clay-accent); }
.new button.big b { font: 800 26px/1 var(--font-display); letter-spacing: -0.03em; }
.new button.big:hover { outline: none; }
.new small { color: var(--muted); }
.new .big small { color: var(--accent-ink); opacity: .88; }
.new .f { background: var(--ink); border-radius: 3px; display: block; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 8px; font-weight: 600; }
.day { font: 800 20px var(--font-display); letter-spacing: -0.02em; margin: 24px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.day span { font: 500 13px var(--font); color: var(--muted); letter-spacing: 0; }
.card .acts { display: flex; gap: 6px; padding: 0 14px 12px; }
.card .acts button { border: 0; background: var(--bg); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.card .acts button:hover { background: var(--surface-2); color: var(--ink); }
.st-prefs { max-width: 420px; background: var(--surface); border-radius: var(--r); box-shadow: var(--clay-sm); padding: 22px; }
.st-prefs h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
/* Studio pages (brand kit, caption styles, transcripts), 7 Nov 2026: a heading, then cards across the page. */
/* Library: brand kit, caption styles and transcripts side by side (3 across on wide screens, transcripts full width below at 2) */
.st-lib { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 22px; }
.st-lib .st-card { max-width: none; min-width: 0; }
.st-lib .st-card h4 { margin-top: 18px; }
.st-lib .st-trs { max-height: min(70vh, 640px); }
.st-lib .st-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.st-lib .st-steps li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 14px; }
.st-lib .st-steps .n { grid-row: span 2; }
.st-lib .st-steps b { font-size: 16px; }
@media (min-width: 1100px) { .st-lib { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-lib #lib-tr { grid-column: 1 / -1; } }
@media (min-width: 1500px) { .st-lib { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-lib #lib-tr { grid-column: auto; } .st-lib #lib-tr .trow .meta { flex-basis: 100%; } }
.st-card h2 { font-size: 20px; margin-bottom: 12px; }
.st-card > h4:first-child { font: 800 20px var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.st-card .styles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-trs { max-height: none; }
.st-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.st-steps li { background: var(--surface); border-radius: var(--r); box-shadow: var(--clay-sm); padding: 18px; display: grid; gap: 6px; align-content: start; }
.st-card .st-steps li { background: var(--bg); box-shadow: none; }
.st-steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.st-steps b { font: 800 18px var(--font-display); letter-spacing: -0.02em; }
.st-steps .s { margin: 0; }
.st-steps a { color: var(--accent-2); font-weight: 600; }
.sst { position: relative; }
.sst .style { width: 100%; padding: 0 26px; }
.sst .style small { font-size: 11px; opacity: .8; }
.sst .x { position: absolute; top: 4px; right: 4px; border: 0; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.18); color: #fff; }
.st-prefs .sst .x { background: rgba(255,255,255,.25); }
.style.mine { background: var(--surface-2); color: var(--ink-2); }
.signed-in .style.mine { background: #2c2925; color: #fff; }
/* Phones and narrow windows (5 Nov 2026): the sidebar wrapped into a wall of links that filled the first screen, and
   picking one changed the page below the fold. Now a slim bar with Menu; the sidebar slides in over the page. */
.st-bar, .st-scrim, .side > .side-x { display: none; }
.new .if-tap { display: none; }
@media (hover: none) and (pointer: coarse) { .new .if-drop { display: none; } .new .if-tap { display: block; } } /* touch screens can't drop files */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; align-content: start; }
  .st-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--char); padding: 10px 12px 10px 16px; }
  .st-bar .logo { color: var(--char-ink); background: none; padding: 0; }
  .st-menu { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 15px; background: var(--char-2); color: var(--char-ink); font: 600 14px var(--font); box-shadow: var(--clay-dark); cursor: pointer; }
  .st-menu svg { width: 18px; height: 18px; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(300px, 86vw); height: auto; padding: 12px 14px 18px; transform: translateX(-102%); visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s; box-shadow: 18px 0 40px -18px rgba(0,0,0,.65); overscroll-behavior: contain; }
  .studio.side-open .side { transform: none; visibility: visible; transition: transform .22s ease; }
  .side > .side-x { display: block; align-self: flex-end; width: auto; border: 0; border-radius: 999px; padding: 8px 15px; background: var(--char-2); color: var(--char-ink); font: 600 14px var(--font); cursor: pointer; }
  .side > a.logo { margin: 0 8px 12px; }
  .st-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(23,20,15,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .studio.side-open .st-scrim { opacity: 1; pointer-events: auto; }
  html:has(.studio.side-open) { overflow: hidden; }
  .st-main { padding: 18px 16px 50px; }
  .bar1 h1 { font-size: 30px; }
  .bar1 .search { width: 100%; }
  .new { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 6px; }
  .new button { min-height: 0; padding: 11px 4px 10px; align-items: center; justify-content: flex-start; text-align: center; gap: 7px; border-radius: 14px; }
  .new button span:last-child { font-size: 12.5px; line-height: 1.25; }
  .new button:not(.big) { display: grid; grid-template-rows: 26px auto; justify-content: stretch; justify-items: center; align-content: start; }
  .new button:not(.big) .f { align-self: center; }
  .new button.big { grid-column: 1 / -1; min-height: 78px; padding: 16px 18px; align-items: flex-start; justify-content: space-between; text-align: left; }
  .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .proj .meta { padding: 9px 10px 6px; }
  .proj b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .proj small { font-size: 12px; }
  .card .acts { padding: 0 10px 10px; flex-wrap: wrap; }
  .studio .acct-dash [id] { scroll-margin-top: 74px; } /* under the sticky bar */
}
@media (prefers-reduced-motion: reduce) { .side, .st-scrim { transition: none !important; } }
/* Export choices (phase 3c): size and shapes; 4K and every shape are Pro */
.exo { border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 10px; padding: 8px 12px 10px; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.exo legend { font-size: 12px; padding: 0 4px; opacity: .8; }
.exo label { display: inline-flex; gap: 6px; align-items: center; }
.exo .exl-note { flex-basis: 100%; font-size: 12px; opacity: .75; line-height: 1.4; }
#ex-files:empty { display: none; }
#ex-files { margin: 4px 0 14px; }
/* Cloud copy and review links (phase 3e) */
.mitem .incloud { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 12px; background: var(--surface); color: var(--ink); border-radius: 6px; padding: 1px 5px; box-shadow: var(--clay-sm); }
.cloud { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.cloud h3 { font-size: 15px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.cloud .s { margin: 0; }
.rvs { display: grid; gap: 12px; margin-bottom: 14px; max-height: 46vh; overflow: auto; }
.rv { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bg); }
.rv small { color: var(--ink-2); }
.rv .inp { flex: 1; font-size: 13px; }
.sheet .row.start { justify-content: flex-start; }
.rvcs { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin-bottom: 10px; }
.rvc { border: 0; background: var(--bg); border-radius: 10px; padding: 8px 10px; text-align: left; display: flex; gap: 10px; font: inherit; font-size: 14px; cursor: pointer; }
.rvc b { font-family: var(--mono); min-width: 44px; }
.rvc strong { font-weight: 700; margin-right: 4px; }
/* /review (site/review.mjs, assets/review.js) */
.review-page h1 { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 20px; }
.review-page .kicker { margin: 10px 0 0; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 24px; }
.rv-grid video { width: 100%; max-height: 70vh; background: #000; border-radius: 14px; display: block; }
.rv-grid h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.rv-form { display: grid; gap: 10px; margin-top: 14px; }
.rv-form .fld { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.rv-form textarea { min-height: 80px; border: 0; border-radius: 12px; background: var(--surface); padding: 10px 12px; font: inherit; resize: vertical; box-shadow: inset 0 2px 5px rgba(70,50,20,.1); }
.rv-form .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.rv-list button { width: 100%; border: 0; background: var(--surface); border-radius: 10px; padding: 9px 11px; text-align: left; display: flex; gap: 10px; font: inherit; font-size: 14px; cursor: pointer; }
.rv-list b { font-family: var(--mono); min-width: 44px; }
.rv-list strong { font-weight: 700; margin-right: 4px; }
@media (max-width: 820px) { .rv-grid { grid-template-columns: 1fr; } }

/* Continue with Google (phase 4, site/assets/account.js) and the note shown after the round trip */
.btn.google { background: #fff; color: #1f1f1f; box-shadow: var(--clay-sm); border: 1px solid #dadce0; }
.acct-sheet .btn.google { width: 100%; justify-content: center; }
.acct-sheet .or { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 2px; }
.signin-note { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--ink); box-shadow: var(--clay-sm); border-radius: 14px; padding: 10px 12px 10px 16px; font-size: 14px; border-left: 4px solid var(--accent); }
.signin-note.bad { border-left-color: #d9534f; }
.signin-note button { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
/* What the editor does, under the start page (phase 4: /editor is indexed and linked from the site) */
.about-ed { max-width: 860px; margin: 40px auto 10px; color: var(--ink); }
.about-ed h2 { font-size: 20px; margin: 0 0 10px; }
.about-ed ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.about-ed p { color: var(--muted); }

/* /account signed in: the account dashboard, in dashboard C's layout (sidebar as on the Studio shelf), 4 Nov 2026 */
.side > a.on { color: var(--char-ink); background: var(--char-2); box-shadow: var(--clay-dark); }
.side .store .link[data-view] { font-weight: 600; }
#acct-out .s-main { padding-top: 6px; }
@media (min-width: 901px) { .studio { background: linear-gradient(to right, var(--char) 248px, transparent 248px); } } /* a solid dark column under the sticky sidebar on long pages (hard stop, no fade) */
.acct-dash { max-width: none; }
.acct-dash .bar1 h1 { margin: 0; }
.acct-dash > .s { margin: 8px 0 0; }
.acct-tiles { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; margin: 24px 0 6px; }
.acct-tiles .tile { border-radius: var(--r); background: var(--surface); box-shadow: var(--clay-sm); padding: 18px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; color: var(--ink); text-decoration: none; }
.acct-tiles .tile b { font: 800 28px/1.05 var(--font-display); letter-spacing: -0.03em; }
.acct-tiles .tile small { color: var(--muted); font-size: 13px; }
.acct-tiles button.tile { border: 0; font: inherit; text-align: left; cursor: pointer; }
.acct-tiles a.tile:hover, .acct-tiles button.tile:hover { outline: 2px solid var(--accent); }
.acct-tiles .tile.big { background: var(--accent); color: var(--accent-ink); box-shadow: var(--clay-accent); }
.acct-tiles .tile.big b { font-size: 26px; }
.acct-tiles .tile.big small { color: var(--accent-ink); opacity: .88; }
.acct-tiles .tile.big:hover { outline: none; }
.acct-dash .day { margin-top: 34px; }
.acct-dash [id] { scroll-margin-top: 16px; }
.acct-grid { columns: 2 380px; column-gap: 16px; }
.acct-grid .box { margin: 0 0 16px; break-inside: avoid; }
@media (max-width: 1200px) {
  .acct-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .acct-tiles .tile.big { grid-column: 1 / -1; min-height: 90px; }
}
/* Saved transcripts (sidebar view and the Captions panel's picker) */
.trs { display: grid; gap: 8px; margin-top: 12px; max-height: min(60vh, 520px); overflow-y: auto; }
#tr-list { max-height: none; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; }
button.trow { cursor: pointer; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
.trow .meta { display: grid; gap: 2px; min-width: 0; }
.trow b { overflow-wrap: anywhere; }
.trow small { color: var(--muted); }
.trow .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.trow .acts button { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
/* Speed ramp (PRO-TOOLS.md 3): its steady pieces read as one block; the label sits on the first. */
.clip.rp { border-radius: 0; box-shadow: inset 0 1px 0 rgba(0,0,0,.3), inset 0 -1px 0 rgba(0,0,0,.3); }
.clip.rp.rp0 { border-radius: 4px 0 0 4px; box-shadow: inset 1px 1px 0 rgba(0,0,0,.3), inset 0 -1px 0 rgba(0,0,0,.3); }
.clip.rp.rpz { border-radius: 0 4px 4px 0; }
.clip.rp:not(.rp0) .lbl, .clip.rp:not(.rp0) .film { display: none; }

/* Recipes in Settings */
.recipes { display: grid; gap: 6px; margin: 8px 0; }
.recipe { display: flex; gap: 6px; align-items: stretch; }
.recipe .btn { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; height: auto; padding: 8px 12px; }
.recipe .btn small { font-weight: 400; opacity: .7; white-space: normal; }
.recipe .x { border: 0; background: none; color: inherit; font-size: 18px; padding: 0 6px; cursor: pointer; }
/* A picked ramp is outlined as one block: trim handles and side lines only on its outer ends. */
.clip.rp:not(.rp0) .h.l, .clip.rp:not(.rpz) .h.r { display: none; }
.clip.rp.sel { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.clip.rp.rp0.sel { box-shadow: inset 2px 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.clip.rp.rpz.sel { box-shadow: inset -2px 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }

/* Posts (site/assets/posts-page.js): send or schedule a video to TikTok and YouTube (Pro). Laid out like the account
   overview (7 Nov 2026, owner: the 760 px column left the right of a wide screen empty): tiles across the top, then the
   form on the left and the accounts and the list on the right; one column under 1100 px. */
.posts > .s { font-size: 15px; margin-top: 6px; }
.po-tiles { margin-bottom: 22px; }
.po-tiles .tile b { font-size: 24px; }
.po-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .po-cols { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); grid-template-areas: "new accts" "new sent"; grid-template-rows: auto 1fr; align-items: start; }
  #po-accts { grid-area: accts; } #po-new { grid-area: new; } #po-sent { grid-area: sent; }
}
@media (max-width: 600px) { .po-tiles .tile:not(.big) { display: none; } .po-tiles { margin-bottom: 14px; } }
.po-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--clay-sm); padding: 20px 22px; margin: 0; }
.po-box > .btn { margin-top: 4px; }
.po-box h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.po-box > .trow + .trow, .po-box .trow + .trow { margin-top: 8px; }
.po-plat { border: 0; background: var(--bg); }
.po-acct { margin-left: 18px; }
.po-acct .acts button, .po-plat .acts button { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.po-warn { color: var(--err-ink); font-weight: 600; }
.po-prev { display: block; width: 100%; max-height: 320px; background: #000; border-radius: 12px; margin: 0 0 10px; }
.posts fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.posts legend { font-size: 14px; font-weight: 700; padding: 0; margin: 0 0 8px; }
.po-to .fld, .po-when .fld { margin-bottom: 6px; font-weight: 500; }
.po-when { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.po-when legend { width: 100%; }
.po-when input[type=datetime-local] { border: 0; border-radius: 12px; background: var(--bg); padding: 8px 12px; font: inherit; color: inherit; }
.po-panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 4px; margin: 0 0 14px; }
.po-panel h3 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.po-panel textarea, .po-panel select { border: 0; border-radius: 12px; background: var(--bg); padding: 10px 12px; font: inherit; font-weight: 400; color: inherit; box-shadow: inset 0 2px 5px rgba(70,50,20,.1); resize: vertical; }
.po-panel .fld .chk, .po-panel div.fld > .chk { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 500; }
.po-panel .chk.off { opacity: .5; cursor: not-allowed; }
.po-panel .fld.chk span { font-weight: 500; }
.po-disc { padding: 0 0 4px 26px; }
.po-label { font-size: 13px; font-weight: 700; color: var(--accent-2); margin: 0 0 10px; }
.po-ts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.po-t.failed small { color: var(--err-ink); }
.po-post .meta { flex: 1; }
@media (max-width: 600px) { .po-box { padding: 16px; } .po-acct { margin-left: 8px; } }

/* Scroll bars (owner 7 Nov): the page's own bar is the brand orange on a warm track; bars inside panels and menus stay quiet
   and turn orange under the pointer. Chrome, Edge and Safari use the ::-webkit-scrollbar rules, Firefox the scrollbar-color ones. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
::-webkit-scrollbar-button { display: none; }
/* The page's own bar: Chrome reads it from body, Safari from html. */
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 14px; height: 14px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: var(--surface-2); }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background-color: var(--accent); min-height: 56px; }
html::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:active, body::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:active { background-color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--accent) var(--surface-2); }
  body * { scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
}
