/* geist-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/app/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/app/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/app/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/app/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/app/assets/geist-latin-wght-normal-BgDaEnEv.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* bricolage-grotesque-vietnamese-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/app/assets/bricolage-grotesque-vietnamese-wght-normal-BUzh504Q.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* bricolage-grotesque-latin-ext-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/app/assets/bricolage-grotesque-latin-ext-wght-normal-CcLUaPy7.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* bricolage-grotesque-latin-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/app/assets/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* jetbrains-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* jetbrains-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/app/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* jetbrains-mono-greek-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/app/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* jetbrains-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/app/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/app/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/app/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/*
 * Kinetica — the studio app.
 * An editing suite, not a dashboard: graphite surfaces so colour in the video reads true, one live
 * monitor wherever there is something to watch, timecode for time, and a tungsten playhead.
 * The operator's brand colour arrives as --accent; everything else stays quiet around it.
 */
:root {
  --bg: #121318;
  --panel: #191a21;
  --raised: #20222b;
  --hover: #282a35;
  --line: #2b2e39;
  --line2: #3a3e4c;
  --ink: #ecedf2;
  --muted: #9a9dac;
  --faint: #6c7080;
  --accent: #7c6cff;
  --on-accent: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --tungsten: #f2b45a;
  --tungsten-soft: color-mix(in srgb, var(--tungsten) 16%, transparent);
  --red: #ff6b6b;
  --green: #4fd1a1;
  --ui: "Geist Variable", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque Variable", "Geist Variable", sans-serif;
  --mono: "JetBrains Mono Variable", ui-monospace, monospace;
  --r-panel: 18px;
  --r-ctl: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tc { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.lede { font-size: 15px; color: var(--muted); max-width: 62ch; }

/* ---------- shell: a narrow rail on the left, the work on the right ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font: 650 16px/1.1 var(--display); letter-spacing: -.01em; }
.brand img { height: 26px; width: auto; }
.mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 15px/1 var(--display); flex: none; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav:hover { background: var(--panel); color: var(--ink); }
.nav.on { background: var(--raised); color: var(--ink); }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav .count { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--tungsten); }
.rail .grow { flex: 1; }
.make { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; border: 0; cursor: pointer; text-decoration: none; }
.make:hover { filter: brightness(1.08); }
.wsbox { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: grid; gap: 8px; }
.wsbox select { width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.meter { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.meter b { font: 600 18px/1 var(--display); }
.user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; color: var(--muted); font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line2); display: grid; place-items: center; font: 600 11px/1 var(--ui); color: var(--ink); flex: none; }
.main { min-width: 0; }
.page { max-width: 1240px; margin: 0 auto; padding: 32px 40px 80px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner { padding: 8px 16px; background: var(--tungsten-soft); color: var(--tungsten); text-align: center; font-size: 13px; border-bottom: 1px solid color-mix(in srgb, var(--tungsten) 30%, transparent); }
.mobilebar { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: var(--raised); font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel); color: var(--ink); }
.btn.danger { color: var(--red); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.icon-btn { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--raised); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .textarea, .select { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px 12px; outline: none; transition: border-color .12s, background .12s; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line2); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: var(--raised); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 99px; background: var(--line2); border: 0; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.chip svg { width: 15px; height: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.seg button.on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 550; background: var(--raised); color: var(--muted); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pill.run { background: var(--tungsten-soft); color: var(--tungsten); }
.pill.bad { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.pill.acc { background: var(--accent-soft); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.run .dot { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- surfaces ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; }
.panel.flat { background: transparent; }
.panel h3 + * { margin-top: 12px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; border: 0; }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; }
.notice.err { border-color: color-mix(in srgb, var(--red) 40%, transparent); color: #ffc9c9; background: color-mix(in srgb, var(--red) 8%, var(--panel)); }
.notice.warn { border-color: color-mix(in srgb, var(--tungsten) 40%, transparent); background: color-mix(in srgb, var(--tungsten) 7%, var(--panel)); }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r-panel); display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.empty h3 { color: var(--ink); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- the monitor: a frame that holds a live video page or a player ---------- */
.monitor { position: relative; border-radius: 16px; background: #050508; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; display: grid; place-items: center; }
.monitor iframe { border: 0; display: block; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.monitor .safe { position: absolute; inset: 5%; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 6px; pointer-events: none; }
.screen { position: relative; overflow: hidden; background: #000; }
.transport { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; }
.transport .tc { color: var(--muted); }
.transport .tc b { color: var(--ink); font-weight: 500; }
.scrub { flex: 1; position: relative; height: 26px; cursor: pointer; }
.scrub .track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 99px; background: var(--line2); }
.scrub .fill { position: absolute; left: 0; top: 11px; height: 4px; border-radius: 99px; background: var(--tungsten); }
.scrub .head { position: absolute; top: 5px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--tungsten); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tungsten) 25%, transparent); }

/* ---------- the timeline: one block per scene, as long as the scene ---------- */
.timeline { display: flex; gap: 3px; height: 54px; position: relative; padding-top: 18px; }
.timeline .ruler { position: absolute; left: 0; right: 0; top: 0; height: 16px; }
.timeline .ruler span { position: absolute; top: 0; font: 10px/1 var(--mono); color: var(--faint); transform: translateX(-50%); }
.tblock { position: relative; min-width: 18px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); padding: 6px 8px; overflow: hidden; cursor: pointer; text-align: left; color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.tblock:hover { border-color: var(--line2); color: var(--ink); }
.tblock.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.tblock b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tblock .tc { font-size: 10px; color: var(--faint); }
.playhead { position: absolute; top: 14px; bottom: -4px; width: 2px; background: var(--tungsten); pointer-events: none; z-index: 2; }
.playhead::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: var(--tungsten); }

/* ---------- contact sheet: covers in their real aspect ratios ---------- */
.sheet { columns: 4 220px; column-gap: 16px; }
.frame-card { break-inside: avoid; margin: 0 0 16px; display: block; text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.frame-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.frame-card .thumb { position: relative; background: var(--raised); overflow: hidden; }
.frame-card .thumb img, .frame-card .thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-card .thumb .badge { position: absolute; left: 8px; bottom: 8px; }
.frame-card .meta { padding: 10px 12px 12px; display: grid; gap: 3px; }
.frame-card .meta b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph { display: grid; place-items: center; color: var(--faint); }
.ph.face { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 14%; text-align: left; }
.face-title { font: 700 clamp(15px, 1.6vw, 22px)/1.08 var(--display); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ph.face i { display: block; height: 4px; border-radius: 99px; width: 34%; }
.ph.face i + i { width: 18%; margin-top: -4px; }
.ar-916 { aspect-ratio: 9 / 16; } .ar-169 { aspect-ratio: 16 / 9; } .ar-11 { aspect-ratio: 1; } .ar-45 { aspect-ratio: 4 / 5; }
.fmt { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; vertical-align: middle; }
.fmt.f916 { width: 9px; height: 15px; } .fmt.f169 { width: 16px; height: 9px; } .fmt.f11 { width: 12px; height: 12px; } .fmt.f45 { width: 11px; height: 13px; }

/* ---------- progress ---------- */
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--tungsten); transition: width .6s ease; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 5, 8, .62); backdrop-filter: blur(4px); z-index: 80; display: grid; place-items: center; padding: 24px; animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; animation: rise .18s ease; }
.modal.wide { width: min(980px, 100%); }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--panel); border-left: 1px solid var(--line2); z-index: 70; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slide .18s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; }
.toast { padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 550; box-shadow: var(--shadow); animation: rise .18s ease; }
.toast.err { background: var(--red); color: #fff; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.auth .form { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth .stage { position: relative; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), #0c0d11; display: grid; place-items: center; overflow: hidden; padding: 40px; }

/* ---------- home ---------- */
.studio-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; margin-bottom: 40px; }
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.composer h1 { font-size: 40px; font-weight: 700; letter-spacing: -.035em; }
.prompt { width: 100%; min-height: 132px; resize: none; border: 0; background: transparent; outline: none; font: 500 22px/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); padding: 0; }
.prompt::placeholder { color: var(--faint); }
.composer .bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.composer .bar .spacer { flex: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.reel { border-radius: 22px; background: #050508; border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; min-height: 380px; }
.reel .label { position: absolute; left: 14px; top: 12px; z-index: 2; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 16px; }
.starter { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: var(--muted); }
.starter:hover { border-color: var(--line2); background: var(--panel); color: var(--ink); }
.starter b { color: var(--ink); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .studio-hero { grid-template-columns: minmax(0, 1fr); }
  .composer { min-width: 0; }
  .composer .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 60; transform: translateX(-100%); transition: transform .2s; width: 260px; }
  .rail.open { transform: none; box-shadow: var(--shadow); }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 50; }
  .page { padding: 22px 16px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth .stage { display: none; }
  .auth .form { padding: 32px 22px; }
  .composer h1 { font-size: 30px; }
  .prompt { font-size: 19px; }
}

/* ---------- light theme: the same suite in daylight. The monitor and the video stay dark. ---------- */
:root[data-theme="light"] {
  --bg: #f4f4f1;
  --panel: #ffffff;
  --raised: #efefeb;
  --hover: #e6e6e1;
  --line: #e1e1db;
  --line2: #cdcdc5;
  --ink: #17181c;
  --muted: #5b5e69;
  --faint: #7b7e89;
  --tungsten: #a65f00;
  --red: #c43c3c;
  --green: #0f8a5f;
  --shadow: 0 18px 50px rgba(20, 20, 30, .14);
  color-scheme: light;
}
:root[data-theme="light"] .notice.err, :root[data-theme="light"] .ed-conflict { color: #8a1f1f; }
:root[data-theme="light"] .ed-full { background: var(--bg); }
:root[data-theme="light"] .auth .stage { background: radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), #e9e9e4; }
:root[data-theme="light"] .scrim { background: rgba(30, 30, 40, .32); }
:root[data-theme="light"] .switch::after { box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
:root[data-theme="light"] .seg button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- rail extras: notifications bell and the theme switch ---------- */
.rail-tools { display: flex; align-items: center; gap: 4px; padding: 0 2px; }
.rail-tools .icon-btn { position: relative; }
.bell-count { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 600 10px/16px var(--ui); text-align: center; }
.theme-seg { display: inline-flex; padding: 2px; border-radius: 9px; border: 1px solid var(--line); gap: 1px; margin-left: auto; }
.theme-seg button { width: 28px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.theme-seg button svg { width: 14px; height: 14px; }
.theme-seg button[aria-checked="true"] { background: var(--raised); color: var(--ink); }
.nav.sub { padding-left: 10px; }

/* ---------- small shared pieces of the platform pages ---------- */
.pf-grid > *, .rv-layout > *, .pf-grid .stack > * { min-width: 0; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pf-list > li:last-child { border-bottom: 0; }
.pf-list > li.col { display: grid; gap: 8px; align-items: start; }
.pf-grow { flex: 1; min-width: 0; }
.pf-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-code { font: 12.5px/1.55 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre; margin: 0; color: var(--ink); }
.pf-secret { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tungsten) 40%, transparent); background: var(--tungsten-soft); }
.pf-secret .input { font-family: var(--mono); font-size: 12.5px; }
.pf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.pf-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.pf-kpi b { font: 650 26px/1.05 var(--display); letter-spacing: -.02em; }
.pf-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.pf-bars .bar { flex: 1; min-width: 2px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .85; position: relative; }
.pf-bars .bar.zero { background: var(--line2); opacity: 1; height: 2px !important; }
.pf-bars .bar:hover { opacity: 1; }
.pf-axis { display: flex; justify-content: space-between; padding-top: 6px; }
.pf-hbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 6px 0; }
.pf-hbar i { display: block; height: 8px; border-radius: 99px; background: var(--accent); min-width: 2px; }
.pf-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pf-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--raised); color: var(--muted); font-size: 12px; border: 0; cursor: pointer; }
.pf-tag:hover { color: var(--ink); }
.pf-tag.on { background: var(--accent-soft); color: var(--ink); }
.pf-tag svg { width: 12px; height: 12px; }

/* ---------- onboarding checklist ---------- */
.ob { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.ob-ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.ob-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ob-step { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 500; }
.ob-step:hover { border-color: var(--line2); background: var(--raised); }
.ob-step.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.ob-step svg { width: 15px; height: 15px; }
.ob-step.done svg { color: var(--green); }

/* ---------- templates ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tp-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; text-align: left; padding: 0; cursor: pointer; color: inherit; transition: border-color .15s, transform .15s; }
.tp-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.tp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-face { aspect-ratio: 16 / 10; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; overflow: hidden; }
.tp-face b { font: 700 17px/1.1 var(--display); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-face i { display: block; height: 3px; width: 30%; border-radius: 99px; }
.tp-face .fmtbox { position: absolute; top: 12px; right: 12px; opacity: .8; }
.tp-meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.tp-meta b { font-weight: 600; font-size: 13.5px; }
.tp-meta .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- reviews ---------- */
.rv-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.rv-player { border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.rv-player video { width: 100%; max-height: 70vh; background: #000; }
.rv-pins { position: relative; height: 26px; margin-top: 10px; }
.rv-pins .track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 99px; background: var(--line2); }
.rv-pin { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 0; padding: 0; cursor: pointer; }
.rv-pin.done { background: var(--faint); }
.rv-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-comments li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: grid; gap: 6px; }
.rv-comments li.resolved { opacity: .62; }
.rv-comments p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- notifications ---------- */
.nt-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.nt-list li { border-bottom: 1px solid var(--line); }
.nt-list li:last-child { border-bottom: 0; }
.nt-list a, .nt-list .nt-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; text-decoration: none; color: inherit; }
.nt-list a:hover { background: var(--raised); }
.nt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.nt-ic svg { width: 16px; height: 16px; }
.nt-ic.ok { color: var(--green); } .nt-ic.bad { color: var(--red); } .nt-ic.acc { color: var(--accent); }
.nt-unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 2px; }

/* ---------- videos: folders and tags ---------- */
.vf-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.vf-folders { display: grid; gap: 2px; position: sticky; top: 16px; }
.vf-folders .nav { font-size: 13.5px; }
.vf-folders .nav .count { color: var(--faint); }
.vf-folders .nav.drop { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 1080px) {
  .pf-grid, .rv-layout { grid-template-columns: minmax(0, 1fr); }
  .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .vf-layout { grid-template-columns: 1fr; }
  .rv-player video { max-height: 56vh; }
  .vf-folders { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .vf-folders .nav { width: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
  .ob { grid-template-columns: auto 1fr; align-items: start; }
  .ob > :last-child { grid-column: 1 / -1; justify-self: start; }
  .pf-hbar { grid-template-columns: 110px minmax(0, 1fr) 56px; }
}
/* The AI tools (editor AI tab, stock photos, brief import). Graphite surfaces, colour only for state. */
.ai-panel { display: grid; gap: 22px; align-content: start; }
.ai-tools .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); width: 100%; }
.ai-tools .seg button { white-space: nowrap; }
.ai-sec { display: grid; gap: 12px; align-content: start; }
.ai-sec + .ai-sec { padding-top: 20px; border-top: 1px solid var(--line); }
.ai-sec h3 { font-size: 14.5px; margin: 0 0 4px; }
.ai-sec p { margin: 0; }
.ai-off { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 14px; }
.ai-off svg { width: 20px; height: 20px; color: var(--faint); flex: none; margin-top: 2px; }
.ai-off p { margin: 4px 0 0; }

.ai-scope { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-scope-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ai-magic { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-magic .chip { height: 30px; font-size: 12.5px; padding: 0 11px; }
.ai-magic .chip svg { width: 13px; height: 13px; color: var(--accent); }
.ai-magic .chip:disabled, .ai-sec .chip:disabled { opacity: .5; cursor: not-allowed; }
.ai-msgs { max-height: 280px; overflow: auto; padding-right: 2px; }

.ai-hooks, .ai-made { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-hook { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.ai-hook.current { display: grid; gap: 3px; cursor: default; background: transparent; border-style: dashed; }
.ai-hook input { margin-top: 3px; accent-color: var(--accent); }
.ai-hook-body { display: grid; gap: 3px; min-width: 0; }
.ai-hook b { font-weight: 600; overflow-wrap: anywhere; }
.ai-hook:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-made li { font-size: 13px; }
.ai-made a { color: var(--ink); }
.ai-made .bad, .ai-pop .bad { color: #ffc9c9; }

.ai-posts { display: grid; gap: 10px; }
.ai-post { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ai-post p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-post-title { font-weight: 600; }
.ai-post-text { font-size: 13.5px; line-height: 1.5; }
.ai-tags { color: var(--muted); }
.ai-post .tc { font-size: 10.5px; }

.ai-langs { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ai-langs legend { margin-bottom: 6px; }
.ai-lang { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.ai-lang:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ai-lang input { accent-color: var(--accent); }
.ai-langs:disabled .ai-lang { opacity: .55; cursor: not-allowed; }

.ai-rules { display: grid; gap: 6px; }
.ai-rule { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 6px; align-items: center; }
.ai-rule.head { padding: 0 2px; }
.ai-rule .input { min-width: 0; }

.ai-opts { display: grid; gap: 6px; }
.ai-opt { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer; font-size: 13.5px; }
.ai-opt:hover:not(:disabled) { border-color: var(--accent); }
.ai-opt span:first-child { overflow-wrap: anywhere; }
.ai-inline { position: relative; display: inline-flex; }
.ai-spark svg { width: 15px; height: 15px; color: var(--accent); }
.ai-pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: min(320px, 80vw); max-width: calc(100vw - 32px); padding: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--raised); box-shadow: var(--shadow); display: grid; gap: 8px; }

/* stock photos */
.ai-stock { display: grid; gap: 12px; }
.ai-stock-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-stock-bar .select { width: auto; }
.ai-search { position: relative; flex: 1 1 220px; }
.ai-search svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.ai-search .input { padding-left: 34px; width: 100%; }
.ai-stock-grid { columns: 3 150px; column-gap: 10px; }
.ai-stock-tile { break-inside: avoid; margin: 0 0 10px; display: grid; gap: 4px; }
.ai-stock-tile button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.ai-stock-tile img { width: 100%; height: 100%; object-fit: cover; }
.ai-stock-tile button:disabled { cursor: default; }
.ai-stock-add { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(12, 12, 16, .78); color: #fff; font-size: 12px; opacity: 0; transition: opacity .15s; }
.ai-stock-add svg { width: 13px; height: 13px; }
.ai-stock-tile button:hover .ai-stock-add, .ai-stock-tile button:focus-visible .ai-stock-add, .ai-stock-tile.on .ai-stock-add { opacity: 1; }
.ai-stock-tile.on button { border-color: var(--accent); }
.ai-stock-tile figcaption a { color: inherit; }

/* brief import (new video) */
.ai-import { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.ai-import-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-import-row .input { flex: 1 1 260px; }
.ai-page { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--raised); }
.ai-page p { margin: 0; }
.ai-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ai-pic { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); cursor: pointer; padding: 0; }
.ai-pic img { width: 100%; height: 100%; object-fit: contain; }
.ai-pic[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ai-pic .ai-pic-tag { position: absolute; left: 5px; bottom: 5px; padding: 1px 7px; border-radius: 99px; background: rgba(12, 12, 16, .78); color: #fff; font-size: 11px; }
.ai-pic .ai-pic-check { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.ai-pic .ai-pic-check svg { width: 13px; height: 13px; }
.ai-text { min-height: 220px; }
.ai-facts-extra { display: grid; gap: 8px; }
.ai-fact { display: grid; grid-template-columns: minmax(100px, 200px) 1fr 32px; gap: 8px; align-items: start; }
@media (max-width: 560px) { .ai-fact { grid-template-columns: 1fr 32px; } .ai-fact .ai-fact-k { grid-column: 1 / -1; } }
.nv-stock { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.nv-stock summary { cursor: pointer; list-style-position: inside; }
.nv-stock summary::marker { color: var(--faint); }
.up-origin { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--raised); }
.up-origin a { color: var(--ink); overflow-wrap: anywhere; }

/* AI workflow (round 3b): model tiers, pitch-mode angles, brand locks, three looks */
.ai-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ai-tier { display: grid; gap: 4px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer; }
.ai-tier:hover:not(:disabled) { border-color: var(--line2); }
.ai-tier.on { border-color: var(--accent); background: var(--accent-soft); }
.ai-tier.on svg { color: var(--accent); }
.ai-tier:disabled { opacity: .55; cursor: not-allowed; }
.ai-tier-seg .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.ai-tier-seg.off { opacity: .55; pointer-events: none; }
.ai-tier-opt { display: inline-flex; gap: 6px; align-items: baseline; }
.ai-tier-opt .tc { font-size: 10.5px; }

.ai-angles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ai-angle { display: grid; gap: 8px; align-content: start; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); cursor: pointer; }
.ai-angle:hover:not(:disabled) { border-color: var(--line2); }
.ai-angle.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ai-angle.on svg { color: var(--accent); flex: none; }
.ai-angle b { font-weight: 600; overflow-wrap: anywhere; }
.ai-angle-hook { font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ai-angle-beats { margin: 0; padding-left: 18px; display: grid; gap: 2px; color: var(--muted); font-size: 12.5px; }
.ai-angle-edit { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.ai-pitch { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.ai-pitch-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }

.ai-lock { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); }
.ai-lock svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--faint); }
.ai-locked { position: relative; }
.ai-locked > :not(.ai-lock) { opacity: .5; }

.ai-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-look { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ai-look-mood { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .ai-looks { grid-template-columns: 1fr; } }
.bk-locks { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.bk-locks legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.bk-lock-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 14px; }
/* the AI tab is a narrow column: its children may not push it wider than the inspector */
.ai-panel { grid-template-columns: minmax(0, 1fr); }
.ai-panel > *, .ai-sec > * { min-width: 0; }
.ai-tier-seg .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-tier-seg .seg button { height: auto; min-height: 34px; padding: 5px 4px; min-width: 0; }
.ai-tier-opt { flex-direction: column; align-items: center; gap: 0; white-space: normal; line-height: 1.2; }
.ed-theme:disabled:not(.on), .ed-color:has(input:disabled) { opacity: .5; cursor: not-allowed; }
/*
 * Library and account pages: the new-video flow, videos, renders, brand kits, uploads, team,
 * plan and workspace. Built on the tokens in styles.css; quiet graphite, the video is the colour.
 */

/* ---------- shared bits ---------- */
.pg-menu { position: relative; }
.pg-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; min-width: 170px; padding: 5px; background: var(--raised); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); display: grid; gap: 1px; animation: rise .12s ease; }
.pg-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.pg-pop button:hover, .pg-pop button:focus-visible { background: var(--hover); outline: none; }
.pg-pop button.danger { color: var(--red); }
.pg-pop button:disabled { opacity: .45; cursor: not-allowed; }
.pg-pop svg { width: 15px; height: 15px; color: var(--muted); }
.pg-pop button.danger svg { color: inherit; }

.pg-drop { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 26px 24px; border: 1px dashed var(--line2); border-radius: var(--r-panel); background: transparent; transition: border-color .15s, background .15s; margin-bottom: 22px; }
.pg-drop > svg { width: 26px; height: 26px; color: var(--faint); }
.pg-drop-text { display: grid; gap: 2px; }
.pg-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.pg-drop.compact { padding: 14px 18px; margin-bottom: 0; }
.pg-drop.compact > svg { width: 20px; height: 20px; }
.page > .pg-drop.compact { margin-bottom: 18px; }

.pg-skel .thumb { background: var(--panel); }
.pg-skel .meta i { display: block; height: 10px; border-radius: 5px; background: var(--raised); width: 70%; }
.pg-skel .meta i + i { width: 40%; }
.pg-skel { animation: blink 1.6s ease-in-out infinite; cursor: default; }

.nv-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- new video ---------- */
.nv .head { margin-bottom: 30px; }
.page.nv { max-width: 1400px; }
.nv-back { justify-self: start; margin-left: -10px; }
.nv-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.nv-steps { position: sticky; top: 24px; }
.nv-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.nv-steps ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.nv-step { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; color: var(--muted); }
.nv-step:hover { background: var(--panel); color: var(--ink); }
.nv-step.on { background: var(--panel); color: var(--ink); }
.nv-num { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); background: var(--bg); border: 1px solid var(--line2); color: var(--muted); }
.nv-step.on .nv-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nv-step.done .nv-num { background: var(--raised); border-color: var(--line2); color: var(--green); }
.nv-step-text { display: grid; gap: 1px; min-width: 0; padding-top: 2px; }
.nv-step-text b { font-weight: 550; }
.nv-step-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nv-body { min-width: 0; scroll-margin-top: 20px; }
.nv-step-head { display: grid; gap: 6px; margin-bottom: 20px; }
.nv-step-head h2 { font-size: 26px; outline: none; }
.nv-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

.nv-summary { position: sticky; top: 24px; display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.nv-summary-preview { display: grid; gap: 8px; }
.nv-preview-ph { display: grid; place-items: center; border-radius: 14px; background: #050508; border: 1px solid var(--line); }
.nv-dl { margin: 0; display: grid; gap: 0; }
.nv-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.nv-dl dt { color: var(--muted); }
.nv-dl dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 6px; }
.nv-bottom { display: grid; gap: 10px; }
.nv-price { display: flex; justify-content: space-between; align-items: baseline; }
.nv-go { width: 100%; }
.nv-look-mobile { display: none; }

/* step 1 */
.nv-niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.nv-niche { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .12s, background .12s; }
.nv-niche:hover { border-color: var(--line2); background: var(--panel); }
.nv-niche.on { border-color: var(--accent); background: var(--accent-soft); }
.nv-niche-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nv-niche-top b { font-weight: 600; }
.nv-niche-top svg { color: var(--accent); flex: none; }
.nv-niche.wide { width: 100%; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.nv-niche.wide .nv-niche-top { grid-row: span 2; }

/* step 2 */
.nv-promptbox { display: grid; gap: 10px; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); transition: border-color .12s; }
.nv-promptbox:focus-within { border-color: var(--line2); }
.nv-promptbox .prompt { min-height: 120px; font-size: 20px; }
.nv-promptbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.nv-ideas { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.nv-ideas .chip { height: 28px; font-size: 12.5px; }
.nv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-items: start; }
.nv-setting .seg button, .nv-body .seg button { white-space: nowrap; }
.nv-settings { display: grid; border-top: 1px solid var(--line); }
.nv-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nv-stack > .nv-setting:first-child { border-top: 1px solid var(--line); }
.nv-setting > div:first-child { display: grid; gap: 2px; max-width: 52ch; }
.nv-setting b { font-weight: 600; }
.nv-select { width: auto; min-width: 210px; }

/* step 3 */
.nv-picked { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nv-picked li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.nv-picked img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; background: var(--raised); }
.nv-picked-fields { display: grid; gap: 6px; min-width: 0; }
.nv-kind { width: auto; height: 28px; padding: 2px 28px 2px 9px; font-size: 12.5px; flex: none; }
.nv-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.nv-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--raised); cursor: pointer; }
.nv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.nv-thumb:hover img { transform: scale(1.04); }
.nv-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.nv-thumb-kind { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(5, 5, 8, .72); color: #fff; font-size: 11px; }
.nv-thumb-check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }

/* step 4 */
.nv-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.nv-theme { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); border-radius: 14px; }
.nv-theme-art { position: relative; aspect-ratio: 4 / 3; display: block; padding: 12px; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .12s, transform .15s; }
.nv-theme:hover .nv-theme-art { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line2); }
.nv-theme.on .nv-theme-art { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft); }
.nv-theme-aa { display: block; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.nv-theme-lines { position: absolute; left: 12px; right: 40%; bottom: 30px; display: grid; gap: 5px; }
.nv-theme-lines i { display: block; height: 4px; border-radius: 2px; opacity: .85; }
.nv-theme-lines i + i { width: 60%; opacity: .5; }
.nv-theme-dots { position: absolute; left: 12px; bottom: 11px; display: flex; gap: 5px; }
.nv-theme-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.nv-theme-label { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.nv-theme-label b { font-weight: 600; font-size: 13.5px; }
.nv-fit { font-size: 11px; color: var(--tungsten); }
.nv-theme-mood { padding: 0 2px; line-height: 1.35; }
.nv-captions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.nv-cap { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.nv-cap:hover:not(:disabled) { border-color: var(--line2); background: var(--panel); }
.nv-cap.on { border-color: var(--accent); background: var(--accent-soft); }
.nv-cap:disabled { opacity: .45; cursor: not-allowed; }
.nv-cap-text { display: grid; gap: 1px; min-width: 0; }
.nv-cap-text b { font-weight: 600; font-size: 13px; }
.nv-cap-sample { flex: none; width: 74px; height: 42px; border-radius: 8px; background: #0b0c11; border: 1px solid var(--line); display: grid; place-items: center; font: 600 11px/1 var(--ui); color: #fff; }
.nv-cap-sample i { font-style: normal; }
.cap-karaoke i { color: var(--tungsten); }
.cap-bold { font: 800 13px/1 var(--display); }
.cap-pop i { display: inline-block; transform: scale(1.18) rotate(-3deg); color: var(--tungsten); }
.cap-box { }
.cap-box i { background: var(--accent); color: var(--on-accent); padding: 2px 4px; border-radius: 4px; }
.cap-clean { font-weight: 450; font-size: 10.5px; }
.cap-minimal { font-weight: 400; font-size: 9px; opacity: .75; }

/* step 5 */
.nv-review { margin: 0; display: grid; border-top: 1px solid var(--line); }
.nv-review > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.nv-review dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.nv-review dd { margin: 0; min-width: 0; }
.nv-quote { display: block; font: 500 16px/1.4 var(--display); white-space: pre-wrap; overflow-wrap: anywhere; }
.nv-missing { color: var(--red); }
.nv-facts-list { display: grid; gap: 4px; }
.nv-facts-list .faint { margin-right: 6px; }
.nv-review-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.nv-review-thumbs img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.nv-cost { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-panel); border: 1px solid var(--line2); background: var(--raised); }
.nv-cost > div:first-child { max-width: 60ch; }
.nv-cost.short { border-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* examples */
.nv-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.nv-example-list { display: grid; gap: 6px; }
.nv-example { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.nv-example:hover { border-color: var(--line2); background: var(--raised); }
.nv-example.on { border-color: var(--accent); background: var(--accent-soft); }
.nv-example b { font-weight: 600; }
.nv-example-view { position: sticky; top: 0; }

@media (max-width: 1240px) {
  .nv-grid { grid-template-columns: 190px minmax(0, 1fr); }
  .nv-summary { grid-column: 1 / -1; position: static; grid-template-columns: 220px 1fr; align-items: start; }
  .nv-summary-preview { grid-row: span 3; }
}
@media (max-width: 820px) {
  .nv-grid { grid-template-columns: 1fr; gap: 20px; }
  .nv-steps { position: sticky; top: 51px; z-index: 30; margin: 0 -16px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .nv-steps ol { display: flex; gap: 4px; }
  .nv-steps ol::before { display: none; }
  .nv-step { padding: 6px 10px 6px 6px; white-space: nowrap; }
  .nv-step-text .small { display: none; }
  .nv-step-text { padding-top: 3px; }
  .nv-step:not(.on) .nv-step-text b { font-weight: 500; }
  .nv-summary { grid-template-columns: 1fr; position: sticky; bottom: 0; margin: 0 -16px -60px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; z-index: 30; gap: 8px; }
  .nv-summary-preview, .nv-dl, .nv-balance { display: none; }
  .nv-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .nv-go { width: auto; }
  .nv-nav { display: none; }
  .nv-look-mobile { display: block; max-width: 240px; margin: 0 auto; }
  .nv-facts { grid-template-columns: 1fr; }
  .nv-setting { flex-direction: column; align-items: stretch; gap: 10px; }
  .nv-setting .switch { align-self: flex-start; }
  .nv-setting .seg { overflow-x: auto; max-width: 100%; }
  .nv-select { width: 100%; min-width: 0; }
  .nv-review > div { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .nv-review dd { grid-column: 1 / -1; grid-row: 2; }
  .nv-examples { grid-template-columns: 1fr; }
  .nv-example-view { order: -1; max-width: 240px; margin: 0 auto; position: static; }
  .nv-step-head h2 { font-size: 22px; }
  .nv-promptbox .prompt { font-size: 18px; }
  .nv-promptbar .tc { display: none; }
  .nv-niche.wide { grid-template-columns: 1fr; }
}

/* ---------- videos ---------- */
.vd-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.vd-search { position: relative; flex: 0 1 300px; min-width: 200px; }
.vd-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.vd-search .input { padding-left: 36px; }
.vd-spacer { flex: 1; }
.vd-sel { width: auto; }
.vd-card { position: relative; break-inside: avoid; margin-bottom: 16px; }
.vd-card .frame-card { margin-bottom: 0; }
.vd-menu { position: absolute; top: 8px; right: 8px; }
.vd-menu > .icon-btn { background: rgba(5, 5, 8, .62); color: #fff; backdrop-filter: blur(6px); opacity: 0; transition: opacity .12s; }
.vd-card:hover .vd-menu > .icon-btn, .vd-menu > .icon-btn:focus-visible, .vd-menu > .icon-btn[aria-expanded="true"] { opacity: 1; }
.vd-err { margin: 6px 4px 0; color: #ffc9c9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-empty { padding: 80px 24px; }
@media (hover: none) { .vd-menu > .icon-btn { opacity: 1; } }
@media (max-width: 820px) {
  .vd-search { flex: 1 1 100%; }
  .vd-spacer { display: none; }
  .vd-sel { flex: 1; }
  .vd-sheet { columns: 2 150px; column-gap: 10px; }
  .vd-card { margin-bottom: 10px; }
}

/* ---------- renders ---------- */
.rd-tools { margin-bottom: 18px; }
.rd-tools .seg { overflow-x: auto; max-width: 100%; }
.rd-tools .seg .tc { margin-left: 2px; }
.rd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rd-row { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 110px 92px; gap: 18px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
.rd-row.click { cursor: pointer; }
.rd-row.click:hover { background: var(--panel); }
.rd-row.on { background: var(--raised); box-shadow: inset 2px 0 0 var(--accent); }
.rd-thumb { position: relative; width: 64px; max-height: 64px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.rd-thumb.ar-916 { width: 36px; } .rd-thumb.ar-45 { width: 51px; } .rd-thumb.ar-11 { width: 56px; }
.rd-thumb img, .rd-thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-main { display: grid; gap: 3px; min-width: 0; }
.rd-name { font-weight: 600; font-size: 14.5px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
b.rd-name { cursor: default; }
.rd-state { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.rd-progress { display: grid; gap: 4px; width: 100%; }
.rd-progress .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-progress .tc { color: var(--tungsten); }
.rd-fail { color: var(--muted); }
.rd-nums { display: grid; gap: 2px; justify-items: end; }
.rd-act { display: flex; justify-content: flex-end; }
.rd-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(5, 5, 8, .5); animation: fade .15s ease; }
.rd-drawer { width: min(560px, 100%); }
.rd-drawer-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rd-title { font-size: 20px; overflow-wrap: anywhere; }
.rd-drawer-body { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.rd-drawer-body > * { flex: none; }
.rd-drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.rd-video { position: relative; max-height: 62vh; margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.rd-video.ar-916 { width: min(100%, calc(62vh * 9 / 16)); } .rd-video.ar-45 { width: min(100%, calc(62vh * 4 / 5)); } .rd-video.ar-11 { width: min(100%, 62vh); } .rd-video.ar-169 { width: 100%; }
.rd-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rd-facts { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 14px 22px; justify-content: start; }
.rd-facts dt { font-size: 12px; color: var(--faint); }
.rd-facts dd { margin: 2px 0 0; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rd-notes li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.rd-notes svg { flex: none; margin-top: 3px; color: var(--green); }
.rd-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rd-files li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rd-files li:last-child { border-bottom: 0; }
.rd-files li > svg { width: 17px; height: 17px; color: var(--muted); }
.rd-file-name { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }
.rd-share { display: flex; gap: 8px; }
.rd-share .input { font-size: 12px; }
@media (max-width: 980px) {
  .rd-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "t m n" "t s a"; gap: 6px 14px; }
  .rd-thumb { grid-area: t; align-self: start; width: 52px; }
  .rd-main { grid-area: m; } .rd-state { grid-area: s; } .rd-nums { grid-area: n; } .rd-act { grid-area: a; align-self: end; }
}
@media (max-width: 520px) {
  .rd-facts { grid-template-columns: 1fr 1fr; }
  .rd-drawer-body { padding: 16px; }
}

/* ---------- brand kits ---------- */
.bk-list { display: grid; gap: 14px; }
.bk-item { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.bk-plate { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.bk-plate.sample { opacity: .9; }
.bk-plate-top { display: flex; }
.bk-logo { max-height: 44px; max-width: 60%; width: auto; object-fit: contain; }
.bk-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.bk-plate-name { align-self: end; font-size: 30px; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; padding: 10px 0; }
.bk-plate-foot { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.bk-chip { padding: 3px 8px; border-radius: 99px; }
.bk-chip .tc { font-size: 10.5px; }
.bk-plate-foot .tc { font-size: 10.5px; }
.bk-aa { margin-left: auto; font-size: 22px; line-height: 1; }
.bk-info { display: grid; gap: 14px; align-content: start; padding: 6px 6px 6px 0; min-width: 0; }
.bk-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; }
.bk-dl dt { font-size: 12px; color: var(--faint); }
.bk-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.bk-tone { font: 500 15px/1.45 var(--display); color: var(--muted); max-width: 60ch; }
.bk-empty { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 40px; align-items: center; padding: 28px; border: 1px dashed var(--line2); border-radius: 22px; }
.bk-edit { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.bk-edit-preview { position: sticky; top: 0; display: grid; gap: 10px; }
.bk-color { display: flex; gap: 8px; align-items: center; }
.bk-color input[type="color"] { width: 42px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); cursor: pointer; flex: none; }
.bk-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.bk-font { display: grid; gap: 2px; justify-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; color: var(--ink); text-align: left; }
.bk-font > span:first-child { font-size: 24px; line-height: 1.1; }
.bk-font .small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bk-font:hover { border-color: var(--line2); }
.bk-font.on { border-color: var(--accent); background: var(--accent-soft); }
.bk-logo-sm { height: 40px; width: auto; max-width: 120px; object-fit: contain; padding: 4px; border-radius: 8px; background: var(--raised); }
.bk-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.bk-logo-opt { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); cursor: pointer; color: var(--muted); }
.bk-logo-opt:hover { border-color: var(--accent); }
.bk-logo-opt img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.bk-logo-opt .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) {
  .bk-item { grid-template-columns: 1fr; gap: 14px; }
  .bk-info { padding: 0 4px 4px; }
  .bk-empty { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .bk-edit { grid-template-columns: 1fr; }
  .bk-edit-preview { position: static; max-width: 340px; }
}

/* ---------- uploads ---------- */
.up-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.up-usage { display: grid; gap: 5px; min-width: 160px; }
.up-meter { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.up-meter i { display: block; height: 100%; background: var(--muted); border-radius: inherit; }
.up-wall { columns: 5 200px; column-gap: 12px; }
.up-tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--raised); cursor: pointer; break-inside: avoid; box-shadow: 0 0 0 1px var(--line); }
.up-tile img { width: 100%; height: auto; display: block; min-height: 60px; }
.up-tile img.logo { padding: 22px; object-fit: contain; background: repeating-conic-gradient(#20222b 0 25%, #191a21 0 50%) 0 0 / 16px 16px; }
.up-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 26px 12px 10px; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(5, 5, 8, .82)); opacity: 0; transition: opacity .15s; }
.up-cap b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-cap .small { opacity: .8; }
.up-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-tile:hover .up-cap, .up-tile:focus-visible .up-cap { opacity: 1; }
.up-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.up-music { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.up-music li { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(200px, 320px) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.up-music-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--tungsten); }
.up-music-icon svg { width: 17px; height: 17px; }
.up-music-name { display: grid; min-width: 0; }
.up-music-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-music audio { width: 100%; height: 34px; }
.up-edit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.up-edit-view { display: grid; gap: 8px; }
.up-edit-view img { width: 100%; max-height: 54vh; object-fit: contain; border-radius: 14px; background: repeating-conic-gradient(#20222b 0 25%, #191a21 0 50%) 0 0 / 16px 16px; }
@media (hover: none) { .up-cap { opacity: 1; } }
@media (max-width: 820px) {
  .up-wall { columns: 2 140px; column-gap: 8px; }
  .up-tile { margin-bottom: 8px; }
  .up-music li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .up-music audio { grid-column: 1 / -1; }
  .up-edit { grid-template-columns: 1fr; }
  .pg-drop { grid-template-columns: auto 1fr; }
  .pg-drop > .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- team ---------- */
.tm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.tm-list { list-style: none; margin: 12px 0 0; padding: 0; }
.tm-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 140px 34px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tm-list .avatar { width: 34px; height: 34px; }
.tm-who { display: grid; min-width: 0; }
.tm-who b, .tm-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who b { font-weight: 600; }
.tm-role { height: 34px; padding-top: 4px; padding-bottom: 4px; }
.tm-list .pill { justify-self: start; }
.tm-invite { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; }
.tm-sent { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line2); display: grid; gap: 10px; }
.tm-sent svg { vertical-align: -2px; }
.tm-sent .input { font-size: 12px; }
.tm-pending { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tm-pending li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tm-roles { position: sticky; top: 24px; padding: 4px 0; }
.tm-roles dl { margin: 12px 0 0; display: grid; gap: 0; }
.tm-roles dl > div { padding: 12px 0 12px 14px; border-left: 2px solid var(--line); }
.tm-roles dl > div.me { border-left-color: var(--accent); }
.tm-roles dt { font-weight: 600; }
.tm-roles dd { margin: 3px 0 0; }
@media (max-width: 980px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-roles { position: static; }
}
@media (max-width: 560px) {
  .tm-list li { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .tm-role, .tm-list .pill { grid-column: 2; grid-row: 2; width: auto; justify-self: start; }
  .tm-invite { grid-template-columns: 1fr 1fr; }
  .tm-invite .input { grid-column: 1 / -1; }
}

/* ---------- plan and credits ---------- */
.bl-top { display: grid; grid-template-columns: 320px 1fr; gap: 16px; margin-bottom: 18px; }
.bl-balance { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-panel); background: var(--raised); border: 1px solid var(--line2); }
.bl-big { font: 650 56px/1 var(--display); letter-spacing: -.03em; color: var(--tungsten); font-variant-numeric: tabular-nums; margin: 4px 0; }
.bl-plan { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-panel); background: var(--panel); border: 1px solid var(--line); }
.bl-limits { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 22px; }
.bl-limits dt { font-size: 12px; color: var(--faint); }
.bl-limits dd { margin: 2px 0 0; }
.bl-off { padding: 18px 20px; border-radius: var(--r-panel); border: 1px dashed var(--line2); display: grid; gap: 6px; margin-bottom: 18px; }
.bl-section { margin-top: 40px; display: grid; gap: 14px; }
.bl-compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); }
.bl-col { display: grid; grid-template-rows: 116px; grid-auto-rows: 44px; border-left: 1px solid var(--line); }
.bl-col.bl-labels { border-left: 0; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.bl-col.cur { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 2px 0 var(--accent); }
.bl-cell { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 13px; }
.bl-cell.head { border-top: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.bl-cell.head b { font: 650 18px/1 var(--display); }
.bl-labels .bl-cell { color: var(--muted); }
.bl-cell.no { color: var(--faint); }
.bl-yes { color: var(--green); flex: none; }
.bl-cell .bl-k { display: none; }
.bl-packs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bl-packs li { display: grid; grid-template-columns: 180px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bl-pack-n { font: 650 20px/1 var(--display); }
.bl-ledger { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: auto; }
.bl-ledger .table td { padding: 10px 14px; }
.bl-ledger .table th { padding: 10px 14px; }
.bl-delta { text-align: right; font-size: 13px; }
.bl-delta.plus { color: var(--green); }
.bl-delta.minus { color: var(--ink); }
.bl-when { white-space: nowrap; }
@media (max-width: 980px) {
  .bl-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bl-labels { display: none !important; }
  .bl-compare { grid-auto-flow: row; grid-auto-columns: auto; }
  .bl-col { border-left: 0; border-top: 1px solid var(--line); grid-template-rows: auto; grid-auto-rows: auto; padding-bottom: 8px; }
  .bl-col:first-of-type { border-top: 0; }
  .bl-cell { border-top: 0; padding: 4px 16px; }
  .bl-cell.head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; padding: 14px 16px 8px; }
  .bl-cell .bl-k { display: inline; color: var(--muted); flex: 1; }
  .bl-packs li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .bl-big { font-size: 46px; }
  .bl-ledger .table th:nth-child(4), .bl-ledger .table td:nth-child(4) { display: none; }
  .bl-when { white-space: normal; }
}

/* ---------- workspace ---------- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.st-row { display: flex; gap: 8px; margin-top: 12px; }
.st-key { display: grid; gap: 14px; }
.st-key h3 + * { margin-top: 0; }
.st-facts dl { margin: 12px 0 0; }
.st-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.st-facts dt { color: var(--muted); }
.st-facts dd { margin: 0; text-align: right; min-width: 0; }
.st-id { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.st-id:hover { color: var(--ink); }
@media (max-width: 980px) { .st-grid { grid-template-columns: 1fr; } }
.panel .row > h3 + * { margin-top: 0; }
/*
 * The editor: a full-screen editing suite. Quiet graphite chrome around one bright thing, the
 * monitor. Panels are separated by hairlines, not cards; time is always mono; the playhead is tungsten.
 */
.ed { height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); background: var(--bg); overflow: hidden; }
.ed-full { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 24px; background: #0e0f13; }
.ed-corner { position: absolute; left: 16px; top: 14px; }
.ed-wait { max-width: 460px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.ed-wait h2 { font-size: 26px; }
.ed-pulse { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line2); color: var(--tungsten); animation: ed-breathe 2.4s ease-in-out infinite; }
.ed-pulse svg { width: 28px; height: 28px; }
@keyframes ed-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px var(--tungsten-soft); } }
.ed-indeterminate { width: 220px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.ed-indeterminate i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--tungsten); animation: ed-slide 1.6s ease-in-out infinite; }
@keyframes ed-slide { from { left: -40%; } to { left: 100%; } }
.ed-grow { flex: 1; min-width: 0; }
.ed-spin { animation: ed-rot 1s linear infinite; }
@keyframes ed-rot { to { transform: rotate(360deg); } }
.ed .bad, .ed-bulk-res .bad { color: var(--red); }
.ed-linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 12.5px; font-weight: 550; text-decoration: underline; text-underline-offset: 2px; }
.ed-linkbtn:disabled { opacity: .5; cursor: default; }
.icon-btn:disabled { opacity: .35; cursor: default; background: none; }
.icon-btn.on { color: var(--tungsten); background: var(--tungsten-soft); }

/* ---------- top bar ---------- */
.ed-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 10px; border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; }
.ed-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 0 1 380px; }
.ed-title-in { min-width: 0; flex: 1; border: 1px solid transparent; background: none; border-radius: 8px; padding: 5px 8px; font: 600 15.5px/1.2 var(--display); letter-spacing: -.01em; outline: none; text-overflow: ellipsis; }
.ed-title-in:hover:not(:disabled) { border-color: var(--line); }
.ed-title-in:focus { border-color: var(--accent); background: var(--panel); }
.ed-save { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; flex: none; }
.ed-save svg { width: 13px; height: 13px; }
.ed-undo { display: flex; gap: 2px; padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--line); }
.ed-formats button { padding: 5px 10px; font-size: 13px; }
.ed-tools { display: flex; gap: 2px; }
.ed-credits { color: var(--tungsten); padding: 0 6px; white-space: nowrap; }
.ed-pane-tabs { display: none; gap: 6px; }

.ed-conflict { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; background: color-mix(in srgb, var(--red) 10%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); color: #ffd3d3; font-size: 13px; }

/* ---------- three columns ---------- */
.ed-body { display: grid; grid-template-columns: 288px minmax(0, 1fr) 380px; min-height: 0; }
.ed-left, .ed-right { min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.ed-left { border-right: 1px solid var(--line); }
.ed-right { border-left: 1px solid var(--line); }
.ed-center { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #0e0f13; }
.ed-scroll { overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.ed-panel-h { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; }

/* ---------- scene list ---------- */
.ed-scenes { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ed-scenes .ed-scroll { padding: 2px 8px 8px; }
.ed-scene { position: relative; display: grid; grid-template-columns: 12px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px 9px 6px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; outline: none; }
.ed-scene:hover { background: var(--panel); }
.ed-scene:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ed-scene.on { background: var(--raised); border-color: var(--line2); }
.ed-scene.on .ed-idx { color: var(--tungsten); }
.ed-scene.dragging { opacity: .4; }
.ed-scene.over-above::before, .ed-scene.over-below::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: var(--accent); }
.ed-scene.over-above::before { top: -2px; }
.ed-scene.over-below::after { bottom: -2px; }
.ed-grip { color: var(--faint); display: grid; place-items: center; cursor: grab; opacity: 0; }
.ed-grip svg { width: 13px; height: 13px; }
.ed-scene:hover .ed-grip, .ed-scene.on .ed-grip { opacity: 1; }
.ed-scene:not(:has(.ed-grip)) { grid-template-columns: 22px minmax(0, 1fr) auto; padding-left: 10px; }
.ed-idx { color: var(--faint); font-size: 11.5px; }
.ed-scene-txt { min-width: 0; display: grid; gap: 1px; }
.ed-scene-txt b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.ed-scene-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-bad-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.ed-dur { color: var(--faint); font-size: 11px; }
.ed-row-act { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; gap: 0; background: var(--raised); border-radius: 8px; padding: 1px; }
.ed-row-act .icon-btn { width: 28px; height: 28px; }
.ed-row-act .icon-btn svg { width: 15px; height: 15px; }
.ed-scene:hover .ed-row-act, .ed-scene:focus-within .ed-row-act { display: flex; }
.ed-scene:hover:not(.on) .ed-row-act { background: var(--panel); }
.ed-add { padding: 10px 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; text-align: center; }

/* ---------- scene picker ---------- */
.ed-search { position: relative; width: 260px; max-width: 100%; }
.ed-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.ed-search .input { padding-left: 34px; }
.ed-picker { display: grid; gap: 22px; max-height: 62vh; overflow: auto; padding-right: 4px; }
.ed-picker h3 { margin-bottom: 8px; font-size: 14px; color: var(--muted); font-family: var(--ui); font-weight: 600; letter-spacing: 0; }
.ed-picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 18px; }
.ed-pick { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ed-pick b { color: var(--ink); font-size: 14px; font-weight: 600; }
.ed-pick:hover { background: var(--raised); }
.ed-pick:hover b { color: var(--accent); }

/* ---------- stage ---------- */
.ed-missing { margin: 14px 20px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--tungsten) 35%, transparent); background: color-mix(in srgb, var(--tungsten) 6%, var(--panel)); display: grid; gap: 6px; }
.ed-missing h3 { font-size: 14.5px; }
.ed-missing ul { margin: 2px 0 0; padding-left: 18px; font-size: 13px; columns: 2 220px; }
.ed-missing .icon-btn { width: 28px; height: 28px; }
.ed-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 22px 14px; gap: 0; }
.ed-screen { flex: 1; min-height: 0; display: flex; align-items: center; }
.ed-screen > div { width: 100%; }
.ed-perr { margin-top: 12px; font-size: 13px; }
.ed-transport { display: flex; align-items: center; gap: 4px; padding: 12px 0 8px; }
.ed-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; margin: 0 2px; }
.ed-play:hover { background: #fff; }
.ed-play svg { width: 17px; height: 17px; fill: currentColor; }
.ed-tc { margin-left: 10px; font-size: 13px; }
.ed-tc b { font-weight: 500; color: var(--ink); }

.ed-tl { position: relative; padding-top: 18px; height: 74px; cursor: pointer; user-select: none; touch-action: none; }
.ed-ruler { position: absolute; left: 0; right: 0; top: 0; height: 16px; border-bottom: 1px solid var(--line); }
.ed-ruler span { position: absolute; top: 1px; font: 10px/1 var(--mono); color: var(--faint); padding-left: 4px; }
.ed-ruler span::before { content: ""; position: absolute; left: 0; top: 0; height: 15px; width: 1px; background: var(--line2); }
.ed-track { position: relative; height: 52px; margin-top: 4px; }
.ed-track .tblock { position: absolute; top: 0; bottom: 0; min-width: 6px; padding: 7px 9px; display: grid; align-content: space-between; }
.ed-track .tblock.bad { border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.ed-tl .playhead { top: 0; bottom: 0; transition: none; }

/* ---------- inspector ---------- */
.ed-insp { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ed-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.ed-tabs button { position: relative; border: 0; background: none; padding: 16px 0 12px; color: var(--muted); font-weight: 550; cursor: pointer; }
.ed-tabs button:hover { color: var(--ink); }
.ed-tabs button.on { color: var(--ink); }
.ed-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.ed-insp-body { padding: 18px 18px 40px; }
.ed-form { display: grid; gap: 18px; }
.ed-scene-head { display: grid; gap: 4px; }
.ed-scene-head h2 { font-size: 20px; }
.ed-tip { padding-left: 10px; border-left: 2px solid var(--tungsten); line-height: 1.45; }
.ed-fields { display: grid; gap: 16px; }
.ed-field { display: grid; gap: 6px; min-width: 0; }
.ed-field-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ed-field-h > label, .ed-field-h > span:first-child { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ed-field .hint, .ed-sec .hint { font-size: 12px; color: var(--faint); }
.ed-count { font-size: 11px; }
.ed-count.near { color: var(--tungsten); }
.ed-num { max-width: 140px; }
.ed-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-inline > span:first-child { font-size: 13px; }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-row2 .ed-num { max-width: none; }
.ed-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.ed-group legend { padding: 0 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ed-list { display: grid; gap: 8px; }
.ed-item { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; display: grid; gap: 10px; background: color-mix(in srgb, var(--panel) 50%, transparent); }
.ed-item .ed-group { border: 0; padding: 0; }
.ed-item .ed-group legend { display: none; }
.ed-item.simple { padding: 6px 6px 6px 10px; background: none; }
.ed-item-h { display: flex; align-items: center; gap: 8px; }
.ed-item-h > .tc { font-size: 11px; flex: none; }
.ed-item-body { flex: 1; min-width: 0; }
.ed-item.simple .ed-field { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ed-item.simple .ed-field-h { display: contents; }
.ed-item.simple .ed-field-h > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-item.simple .ed-field > .input, .ed-item.simple .ed-field > .textarea { order: 1; }
.ed-item.simple .ed-count { order: 2; }
.ed-item.simple .ed-field > .hint { order: 3; grid-column: 1 / -1; }
.ed-item.simple .ed-field-h > .faint { order: 2; }
.ed-item-act { display: flex; flex: none; }
.ed-item-act .icon-btn { width: 28px; height: 28px; }
.ed-item-act .icon-btn svg { width: 15px; height: 15px; }
.ed-additem { justify-self: start; }
.ed-sec { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.ed-sec:first-child { padding-top: 0; border-top: 0; }
.ed-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-sec-h h3 { font-size: 14.5px; }

/* images */
.ed-asset { display: flex; gap: 12px; align-items: center; }
.ed-asset-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; border: 1px dashed var(--line2); background: var(--panel); display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--faint); padding: 0; }
.ed-asset-thumb:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.ed-asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-asset-meta { display: grid; gap: 4px; min-width: 0; }
.ed-asset-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 56vh; overflow: auto; }
.ed-asset-tile { position: relative; display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; color: var(--muted); }
.ed-asset-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--raised); }
.ed-asset-tile span.small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.ed-asset-tile .pill { position: absolute; left: 12px; top: 12px; }
.ed-asset-tile:hover { border-color: var(--line2); color: var(--ink); }
.ed-asset-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* icons */
.ed-icon-in { display: flex; gap: 8px; }
.ed-icon-prev { width: 40px; height: 40px; flex: none; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.ed-icon-prev:hover:not(:disabled) { border-color: var(--accent); }
.ed-icon-prev svg { width: 18px; height: 18px; }
.ed-icons { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; padding: 8px 8px 8px; border: 1px solid var(--line2); border-radius: 12px; background: var(--raised); }
.ed-icons button { height: 34px; border: 1px solid transparent; border-radius: 8px; background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.ed-icons button:hover { background: var(--hover); color: var(--ink); }
.ed-icons button.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.ed-icons svg { width: 17px; height: 17px; }
.ed-icons .ed-icons-close { color: var(--faint); }

/* style: looks */
.ed-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ed-theme { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--muted); min-width: 0; }
.ed-swatch { position: relative; height: 58px; border-radius: 11px; display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 9px; box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .12s; }
.ed-sw-aa { font-size: 22px; font-weight: 700; line-height: 1; }
.ed-sw-dots { display: flex; gap: 4px; }
.ed-sw-dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.ed-theme:hover .ed-swatch { box-shadow: 0 0 0 1px var(--line2) inset, 0 0 0 1px var(--line2); }
.ed-theme.on .ed-swatch { box-shadow: 0 0 0 2px var(--accent); }
.ed-theme-txt { display: grid; gap: 0; font-size: 11.5px; line-height: 1.3; min-width: 0; }
.ed-theme-txt b { color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-theme-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-color { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; min-width: 0; }
.ed-color:hover { border-color: var(--line2); }
.ed-color input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; flex: none; }
.ed-color input::-webkit-color-swatch-wrapper { padding: 0; }
.ed-color input::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; }
.ed-color > span { display: grid; min-width: 0; line-height: 1.3; }
.ed-color .tc { font-size: 11px; }

/* tracks and voices */
.ed-tracks { display: grid; gap: 2px; }
.ed-track-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; padding: 2px 4px; }
.ed-track-row:hover { background: var(--panel); }
.ed-track-row.on { background: var(--raised); }
.ed-track-row .icon-btn { width: 30px; height: 30px; }
.ed-track-ico { width: 30px; height: 30px; display: grid; place-items: center; color: var(--faint); }
.ed-track-ico svg { width: 15px; height: 15px; }
.ed-track-pick { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: none; text-align: left; cursor: pointer; padding: 6px 6px; font-size: 13px; }
.ed-track-pick svg { width: 15px; height: 15px; color: var(--accent); }
.ed-tracks > button.ed-track-row { border: 0; background: none; text-align: left; cursor: pointer; padding: 8px 10px; gap: 10px; }
.ed-tracks > button.ed-track-row svg { width: 15px; height: 15px; }
.ed-range { width: 100%; accent-color: var(--tungsten); }

/* AI chat */
.ed-calm { display: grid; gap: 10px; padding: 22px 18px; border: 1px dashed var(--line2); border-radius: 14px; }
.ed-calm svg { width: 22px; height: 22px; color: var(--faint); }
.ed-chat { display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 56px - 52px - 58px); }
.ed-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ed-chat-intro { display: grid; gap: 6px; padding: 4px 0 8px; }
.ed-msg { max-width: 92%; display: grid; gap: 2px; }
.ed-msg p { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.ed-msg.you { align-self: flex-end; justify-items: end; }
.ed-msg.you p { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-bottom-right-radius: 4px; }
.ed-msg.ai p { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ed-msg.err p { background: color-mix(in srgb, var(--red) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); color: #ffc9c9; }
.ed-msg .tc { font-size: 10.5px; padding: 0 4px; }
.ed-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-suggest .chip { height: 28px; font-size: 12.5px; padding: 0 11px; }
.ed-compose { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel); }
.ed-compose .textarea { border: 0; background: none; padding: 2px 4px; min-height: 52px; resize: none; }
.ed-compose .textarea:focus { background: none; }
.ed-compose .btn.sm { width: 32px; padding: 0; }

/* render dialog */
.ed-fmt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-fmt { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.ed-fmt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.ed-fmt.on { border-color: var(--accent); background: var(--accent-soft); }
.ed-fmt.locked { cursor: not-allowed; color: var(--faint); }
.ed-fmt b { font-weight: 600; }
.ed-fmt-note { grid-column: 3; margin-top: -6px; }
.ed-fmt-note:empty { display: none; }
.ed-bill { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; }
.ed-bill-total { padding-top: 8px; border-top: 1px solid var(--line); }
.ed-bill-total .tc { font-size: 13px; color: var(--tungsten); }
.ed-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ed-renders { display: grid; gap: 2px; }
.ed-render-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.ed-render-row:hover { background: var(--raised); }

/* versions drawer */
.ed-drawer-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(5, 5, 8, .4); }
.ed-drawer-h { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.ed-drawer-h > div { display: grid; gap: 6px; }
.ed-versions { padding: 8px 12px; }
.ed-version { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ed-version:last-child { border-bottom: 0; }
.ed-vnum { width: 36px; color: var(--tungsten); flex: none; }
.ed-version-txt { flex: 1; min-width: 0; display: grid; }
.ed-version-txt b { font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-drawer-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); }

/* bulk */
.ed-bulk-intro { display: grid; gap: 8px; }
code.tc { padding: 1px 5px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font-size: 11.5px; }
.ed-bulk-res { max-height: 56vh; overflow: auto; display: grid; gap: 10px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1400px) {
  .ed-body { grid-template-columns: 260px minmax(0, 1fr) 352px; }
  .ed-lbl { display: none; }
  .ed-formats button { padding: 6px 9px; }
}
@media (max-width: 1180px) {
  .ed-body { grid-template-columns: 232px minmax(0, 1fr) 328px; }
  .ed-credits { display: none; }
  .ed-stage { padding: 14px 16px 10px; }
  .ed-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-title { flex-basis: 300px; }
  .ed-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-pane-tabs { display: flex; }
  .ed-left, .ed-center, .ed-right { display: none; border: 0; }
  .ed[data-pane="scenes"] .ed-left, .ed[data-pane="inspect"] .ed-right { display: flex; }
  .ed[data-pane="preview"] .ed-center { display: flex; }
  .ed-formats { display: none; }
  .ed[data-pane="preview"] .ed-formats { display: inline-flex; }
  .ed-tools .btn { padding: 0 8px; }
  .ed-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ed-top { flex-wrap: wrap; height: auto; padding: 8px 10px; }
  .ed-title { flex-basis: 100%; order: 0; }
  .ed-undo, .ed-save { display: none; }
  .ed-fmt-list { grid-template-columns: 1fr; }
}
.ed .input.invalid, .ed .textarea.invalid { border-color: color-mix(in srgb, var(--red) 70%, transparent); }
