/* Cut Room: the content pages (affiliate, the six feature pages, legal, error and system pages), 2026-11-07, ported
   from the owner-approved Cut Room board (frozen 11-7). Loads AFTER graphite.css and site.css and never changes a
   token or a site.css class: every colour is a Graphite token or a token at an alpha, every size sits on the site.css
   scale. Prefixes: c-aff- (affiliate), c-feat- (feature template), c-legal- (legal template), c-sys- (system pages).

   What the port changed (2026-11-07): the affiliate page's open and closed arms were a URL preview switch on <html>
   (?state=open); the server now renders only the arm applications_open() says is true, so nothing here hides one.
   The maintenance page's folded staff box (.c-sys-admin) is gone with the box itself (owner decision 7). */

/* ---------- 1. Affiliate: hero, the live calculator, the rate story ---------- */
.c-aff-hero { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .c-aff-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(56px, 6vw, 104px); align-items: center; min-height: calc(100vh - var(--c-head) - 160px); }
}
.c-aff-hero .c-h1 { max-width: 10em; }
.c-aff-hero .c-lede { max-width: 30em; }
/* The applications state: a status line with a dot (grey = waiting), never a fake button. The closed arm is
   .c-aff-status (+ .c-aff-closed-only blocks), the open arm .c-aff-open (+ .c-aff-open-only); one arm per render. */
.c-aff-status { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 28px; padding: 9px 16px 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 600 15px/1.3 var(--sys); }
.c-aff-open { margin-top: 30px; }

/* The calculator: a working panel, drawn like the app's editor controls. */
.c-aff-calc { position: relative; padding: 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-card); }
@media (min-width: 960px) { .c-aff-calc { padding: 32px; } }
.c-aff-calc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; }
.c-aff-calc__label { font: 600 15px/1.3 var(--sys); color: var(--text); }
.c-aff-calc__count { font: 700 30px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--text); }
/* The referral rail: the standard-rate stretch, the volume-rate stretch from the threshold, and a playhead you drag
   (the range input sits on top). --p (the playhead) and --at (the threshold mark) are fractions of the input's own
   min..max; affiliate.js sets both from the input and the server's threshold, so a changed rate rule moves the mark.
   The values below are the board's (5 referrals; the volume rate from 10 on a 1 to 40 rail), shown until it runs. */
.c-aff-rail { --v: 5; --p: calc((var(--v) - 1) / 39); --at: calc(9 / 39); position: relative; margin-top: 14px; padding-top: 26px; }
.c-aff-rail__zones { position: absolute; left: 0; right: 0; top: 0; height: 18px; }
.c-aff-rail__zone { position: absolute; top: 0; font: 700 15px/18px var(--disp); font-variant-numeric: tabular-nums; color: var(--text3); transition: color var(--dur) var(--ease-out); }
.c-aff-rail__zone.is-std { left: 4px; }
.c-aff-rail__zone.is-bump { left: calc(22px + var(--at) * (100% - 44px) + 8px); }
.c-aff-rail:not(.is-bumped) .c-aff-rail__zone.is-std, .c-aff-rail.is-bumped .c-aff-rail__zone.is-bump { color: var(--text); }
.c-aff-rail__track { position: relative; height: 44px; border-radius: 13px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.c-aff-rail__fill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(22px + var(--p) * (100% - 44px) - 4px); border-radius: 9px; background: rgba(244, 245, 246, .16); }
.c-aff-rail__mark { position: absolute; top: -6px; bottom: -6px; left: calc(22px + var(--at) * (100% - 44px)); width: 1px; background: var(--line2); }
.c-aff-rail__ph { position: absolute; top: -5px; bottom: -5px; left: calc(22px + var(--p) * (100% - 44px) - 1px); width: 2px; border-radius: 1px; background: var(--text); }
.c-aff-rail__ph::before { content: ""; position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.c-aff-rail__input {
  position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 56px; margin: 0; padding: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.c-aff-rail__input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 56px; border: 0; background: transparent; }
.c-aff-rail__input::-moz-range-thumb { width: 44px; height: 56px; border: 0; background: transparent; }
.c-aff-rail:has(.c-aff-rail__input:focus-visible) .c-aff-rail__track { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.c-aff-calc__group { margin-top: 26px; }
.c-aff-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.c-aff-plan {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 64px; padding: 10px 14px;
  border: 0; border-radius: 18px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text2);
  font: 600 15px/1.2 var(--sys); text-align: left; cursor: pointer;
  transition: transform var(--dur-fast) var(--spring), background var(--dur-fast) var(--ease-out);
}
.c-aff-plan b { font: 700 17px/1 var(--disp); font-variant-numeric: tabular-nums; color: var(--text); }
.c-aff-plan:hover { background: var(--surface3); }
.c-aff-plan:active { transform: scale(var(--press)); }
.c-aff-plan[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 379.98px) { .c-aff-plan { padding: 10px; font-size: 15px; } .c-aff-plan b { font-size: 15px; } }
.c-aff-honest { margin-top: 14px; }
.c-aff-out { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.c-aff-out__num { font: 700 clamp(52px, 3vw + 36px, 72px)/.95 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: -.025em; color: var(--text); }
.c-aff-out__line { margin-top: 12px; color: var(--text2); }
.c-aff-out__line b { color: var(--text); font-weight: 650; }
.c-aff-out__rate { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 14px; padding: 0 12px; border-radius: 999px; background: var(--surface2); color: var(--text); font: 650 14px/1 var(--sys); }
.c-aff-out .c-fine { margin-top: 14px; }

/* What you earn: the rate story as a title, then the two terms as fact rows. */
.c-aff-earn { display: grid; gap: 8px; }
@media (min-width: 960px) { .c-aff-earn { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } .c-aff-earn .c-facts { margin-top: 0; } }
.c-aff-earn__big { font-size: clamp(44px, 4vw + 24px, 84px); line-height: .98; letter-spacing: -.02em; }
@media (min-width: 480px) { .c-aff-earn .c-fact { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); } }
.c-aff-earn .c-fact dt { font-size: 20px; }
.c-aff-earn__fine { margin-top: 18px; max-width: 44em; }
.c-aff-steps.c-days { margin-top: 32px; }
@media (min-width: 960px) { .c-aff-steps.c-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.c-aff-steps .c-day p, .c-feat-steps .c-day p { margin-top: 2px; color: var(--text); font: 600 17px/1.45 var(--sys); }
.c-aff-close { max-width: 44em; }
.c-aff-close .c-h2 { margin-top: 16px; }
.c-aff-close .c-lede { margin-top: 18px; }
.c-aff-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 60em; }

/* ---------- 2. Feature template (video editor, script writer, AI voiceover, AI Video Studio, how it works, examples) ---------- */
.c-feat-items { display: grid; gap: 0; }
.c-feat-item + .c-feat-item { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.c-feat-item .c-body { margin-top: 12px; }
.c-feat-note { display: grid; gap: 6px; margin-bottom: 18px; }
.c-feat-note .c-small { color: var(--text2); }
.c-feat-editor { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.c-feat-steps.c-days { margin-top: 32px; }

/* The drawn panels (UI pieces in HTML, never a screenshot). Same surface and radius as the app's cards. */
.c-feat-wrap { position: relative; isolation: isolate; width: min(100%, 440px); margin-inline: auto; }
.c-feat-panel { position: relative; width: 100%; padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 22px 50px rgba(0, 0, 0, .45); }
@media (min-width: 960px) { .c-feat-panel { padding: 26px; border-radius: 28px; } }
.c-feat-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.c-feat-panel__glow { position: absolute; z-index: -1; inset: -10% -30%; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, var(--bg) 35%, transparent 100%); mask-image: radial-gradient(closest-side, var(--bg) 35%, transparent 100%); }
.c-feat-panel__glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(64px) saturate(1.5) brightness(.58); opacity: .46; transform: scale(1.08); }
.c-feat-part { transition: opacity 450ms var(--ease-out); }
.c-feat-ico { width: 18px; height: 18px; flex: none; color: var(--text2); }
.c-feat-line { display: block; height: 10px; width: var(--w, 100%); border-radius: 5px; background: var(--surface3); }
.c-feat-line + .c-feat-line { margin-top: 8px; }
.c-feat-line.is-on { background: rgba(244, 245, 246, .82); }

/* Script Writer card: the inputs, the three beats, and the length match with the take. */
.c-feat-script__in { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.c-feat-script__in .c-chip { min-height: 34px; padding: 0 12px; }
.c-feat-beats { margin-top: 18px; display: grid; gap: 10px; }
.c-feat-beat { display: grid; gap: 8px; padding: 14px 16px 16px; border-radius: 18px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.c-feat-beat .g-eyebrow { display: block; margin-bottom: 2px; }
.c-feat-beat > .c-feat-line { justify-self: start; }
.c-feat-beat .c-feat-line + .c-feat-line { margin-top: 0; }
.c-feat-beat.is-key { box-shadow: inset 0 0 0 1px var(--line2); }
.c-feat-caret { display: inline-block; width: 2px; height: 16px; margin: -3px 0 0 6px; vertical-align: middle; border-radius: 1px; background: var(--text); }
.c-feat-beat__row { display: flex; align-items: center; }
.c-feat-beat__row .c-feat-line { flex: none; }
.c-feat-match { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-feat-match__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; }
.c-feat-match__bar { height: 10px; border-radius: 5px; background: rgba(244, 245, 246, .82); }
.c-feat-match__bar.is-keep { background: var(--mint); }
/* Desktop: the card follows the scenes (landing.js sets the stage's data-mode); the part in focus stays lit. */
@media (min-width: 960px) {
  .c-stage[data-mode="facts"] .c-feat-script .c-feat-part:not(.is-facts),
  .c-stage[data-mode="hook"] .c-feat-script .c-feat-part:not(.is-hook),
  .c-stage[data-mode="length"] .c-feat-script .c-feat-part:not(.is-length),
  .c-stage[data-mode="edit"] .c-feat-script .c-feat-part:not(.is-edit) { opacity: .32; }
}

/* AI Voiceover card: your script, then the voice track laid against the footage, ending where it ends. */
.c-feat-voice__script { margin-top: 16px; padding: 14px 16px 16px; border-radius: 18px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.c-feat-voice__script .c-feat-panel__top { min-height: 0; margin-bottom: 12px; justify-content: flex-start; }
.c-feat-down { display: flex; justify-content: center; padding: 10px 0; color: var(--text3); }
.c-feat-down svg { width: 18px; height: 18px; }
.c-feat-lanes { position: relative; display: grid; gap: 10px; }
.c-feat-lane { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; }
.c-feat-clips { display: flex; gap: 3px; height: 40px; }
.c-feat-clips i { flex: var(--s) 1 0; border-radius: 9px; background: var(--surface3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.c-feat-wave { display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 2px; border-radius: 12px; background: rgba(244, 245, 246, .04); box-shadow: inset 0 0 0 1px var(--line); }
.c-feat-wave i { flex: 1 1 0; min-width: 0; height: var(--h); border-radius: 2px; background: rgba(244, 245, 246, .86); }
.c-feat-lanes__end { position: absolute; top: -8px; bottom: -8px; right: 0; width: 2px; border-radius: 1px; background: var(--text); }
.c-feat-lanes__end::before { content: ""; position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.c-feat-pace { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.c-feat-pace i { width: 1px; height: 8px; background: var(--line2); }
@media (min-width: 960px) {
  .c-stage[data-mode="fit"] .c-feat-voice .c-feat-part:not(.is-fit),
  .c-stage[data-mode="end"] .c-feat-voice .c-feat-part:not(.is-end),
  .c-stage[data-mode="pace"] .c-feat-voice .c-feat-part:not(.is-pace),
  .c-stage[data-mode="script"] .c-feat-voice .c-feat-part:not(.is-script) { opacity: .32; }
}

/* AI Video Studio: the real take stays the video; supporting clips sit in their own lane around it. */
.c-feat-studio { width: min(100%, 440px); margin: 22px auto 0; }
.c-feat-slots { display: flex; gap: 3px; height: 40px; }
.c-feat-slots i { flex: var(--s) 1 0; border-radius: 9px; }
.c-feat-slots i.is-slot { display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text2); }
.c-feat-slots i.is-slot svg { width: 16px; height: 16px; }
.c-feat-slots i.is-gap { background: transparent; }
.c-feat-take { height: 40px; border-radius: 9px; background: var(--mint); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.c-feat-studio__cap { margin-top: 12px; text-align: center; }
@media (min-width: 960px) {
  .c-stage[data-mode="images"] .c-feat-part:not(.is-images),
  .c-stage[data-mode="take"] .c-feat-part:not(.is-take) { opacity: .32; }
  .c-feat-studio-stage .c-player { --c-ph: clamp(400px, calc(100vh - 420px), 520px); }
}

/* How it works: five steps as one real sequence (a rail of numbered discs down the words column). */
.c-feat-step { padding-left: 60px; }
.c-feat-step::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--line2); }
.c-feat-step.is-first::before { top: 76px; }
.c-feat-step.is-last::before { bottom: auto; height: 76px; }
.c-feat-step__n {
  position: absolute; left: 0; top: 56px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 6px var(--bg);
  color: var(--text); font: 700 15px/1 var(--disp); font-variant-numeric: tabular-nums;
}
.c-feat-step .c-h2 { font-size: clamp(26px, 1.4vw + 20px, 40px); }
.c-feat-step .c-body { margin-top: 14px; max-width: 30em; }
@media (min-width: 960px) {
  .c-edit > .c-feat-step { min-height: 40vh; }
  .c-edit > .c-feat-step.is-last { min-height: 80vh; }
  .c-feat-step__n { top: auto; }
  .c-feat-step::before { top: 0; }
  .c-feat-step.is-first::before { top: 50%; }
  .c-feat-step.is-last::before { height: 50%; }
  .c-feat-step__n { top: calc(50% - 20px); }
}

/* Examples: the honest empty state, drawn as the shape of an example with nothing in it yet. */
.c-feat-empty { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .c-feat-empty { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); } }
.c-feat-empty__pair { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 10px; max-width: 380px; margin-inline: auto; width: 100%; }
.c-feat-empty__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); display: flex; align-items: center; justify-content: center; }
.c-feat-empty__frame .g-dot { position: absolute; top: 16px; left: 16px; }
.c-feat-empty__frame svg { width: 30px; height: 30px; color: var(--text3); }
.c-feat-empty__arrow { color: var(--text3); font: 700 22px/1 var(--disp); text-align: center; }
.c-feat-empty__cap { display: grid; gap: 8px; margin-top: 14px; }
.c-feat-empty__cap .c-feat-line { height: 12px; }
.c-feat-empty .c-h2 { max-width: 12em; }
.c-feat-empty .c-actions { margin-top: 30px; }

/* ---------- 3. Legal template: long-form reading (measure about 70 characters, 17px, contents that follow you) ---------- */
.c-legal-head { padding-bottom: 32px; }
@media (min-width: 960px) { .c-legal-head { padding-bottom: 48px; } }
.c-legal-rev { margin-top: 18px; }
.c-legal-grid { display: grid; gap: 28px; padding-bottom: var(--c-sec); }
@media (min-width: 960px) {
  .c-legal-grid { grid-template-columns: minmax(0, 34.5em) minmax(220px, 300px); column-gap: clamp(56px, 7vw, 120px); align-items: start; }
}
.c-legal-prose.c-prose { max-width: 34.5em; font-size: 17px; line-height: 1.7; }
.c-legal-prose > section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.c-legal-prose > section.c-legal-intro { margin-top: 0; padding-top: 0; border-top: 0; }
.c-legal-intro p { font-size: 19px; line-height: 1.6; color: var(--text); }
.c-legal-prose h2 { margin-top: 0; font-size: clamp(22px, .6vw + 18px, 26px); line-height: 1.2; scroll-margin-top: calc(var(--c-head) + 24px); }
.c-legal-prose h2 + p, .c-legal-prose h2 + ul, .c-legal-prose h2 + .c-legal-card, .c-legal-prose h2 + .c-table-wrap { margin-top: 18px; }
.c-legal-prose p + p { margin-top: 18px; }
.c-legal-prose ul { padding-left: 1.15em; }
.c-legal-prose li { padding-left: .3em; }
.c-legal-prose li + li { margin-top: 12px; }
.c-legal-prose li::marker { color: var(--text3); }
.c-legal-prose strong { color: var(--text); font-weight: 650; }
.c-legal-prose a { text-decoration: underline; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.c-legal-card { margin-top: 18px; padding: 20px 22px; border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-legal-card p { margin: 0; }
.c-legal-prose .c-table-wrap { margin-top: 18px; }
.c-legal-prose .c-table thead th { font: 700 12px/16px var(--sys); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.c-legal-prose .c-table td { font-weight: 500; color: var(--text2); }
.c-legal-prose .c-table td:first-child { color: var(--text); font-weight: 650; white-space: nowrap; }
.c-legal-end { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.c-legal-end .c-quietrow { margin-top: 0; }
/* The live documents' own markup (Task 16, 2026-11-07). The v2 legal pages print the static documents' body as the
   files hold it (app/services/legal_pages.py, the one legal source), so the board's intro, card and table are drawn
   for the live markup too: the intro is the body's first section when it holds no heading, a card is the live .card,
   and the v2 render wraps each table in .c-table-wrap (a focusable region). Each :has() rule stands alone (Task 9's
   lesson): a browser without :has() keeps the ordinary section spacing and a card frame around the table. */
.c-legal-prose > section:first-child:not(:has(h2)) { margin-top: 0; padding-top: 0; border-top: 0; }
.c-legal-prose > section:first-child:not(:has(h2)) p { font-size: 19px; line-height: 1.6; color: var(--text); }
.c-legal-prose .card { margin-top: 18px; padding: 20px 22px; border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-legal-prose .card p { margin: 0; }
.c-legal-prose .card:has(> .c-table-wrap) { padding: 0; background: none; box-shadow: none; }
.c-legal-prose .card > .c-table-wrap { margin-top: 0; }

/* Contents: a details row on phones, a sticky rail on desktop with a white marker at the section you are reading
   (legal.js puts aria-current="location" on that section's link). */
.c-legal-toc-phone { border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-legal-toc-phone summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; cursor: pointer; list-style: none; font: 650 17px/1.3 var(--sys); color: var(--text); }
.c-legal-toc-phone summary::-webkit-details-marker { display: none; }
.c-legal-toc-phone summary svg { width: 16px; height: 16px; margin-left: auto; color: var(--text3); transition: transform var(--dur-fast) var(--ease-out); }
.c-legal-toc-phone[open] summary svg { transform: rotate(180deg); }
.c-legal-toc-phone ol { padding: 0 8px 10px; }
.c-legal-toc-phone a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 12px; color: var(--text2); text-decoration: none; font: 500 15px/1.35 var(--sys); }
.c-legal-toc-phone a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.c-legal-toc { display: none; }
@media (min-width: 960px) {
  .c-legal-grid > .c-legal-prose { grid-column: 1; grid-row: 1; }
  .c-legal-toc-phone { display: none; }
  .c-legal-toc { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--c-head) + 32px); max-height: calc(100vh - var(--c-head) - 64px); overflow: auto; overscroll-behavior: contain; }
  .c-legal-toc ol { position: relative; margin-top: 14px; padding-left: 16px; }
  .c-legal-toc ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line); }
  .c-legal-toc a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--text3); text-decoration: none; font: 500 15px/1.35 var(--sys); }
  .c-legal-toc a:hover { color: var(--text); }
  .c-legal-toc a[aria-current] { color: var(--text); }
  .c-legal-toc a[aria-current]::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--text); }
}

/* ---------- 4. Error and system pages ---------- */
.c-sys { position: relative; isolation: isolate; }
.c-sys__words .c-h1 { max-width: 12em; }
.c-sys__words .c-lede { max-width: 30em; }
.c-sys__words .c-actions { margin-top: 30px; }
.c-sys-gone { margin-top: 48px; max-width: 560px; }
.c-sys-gone .c-tl__rail { height: 44px; }
.c-sys-gone .c-tl__ph { left: 3px; }
.c-sys-status { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 22px; padding: 9px 16px 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 600 15px/1.3 var(--sys); }
.c-sys-center { min-height: calc(100vh - var(--c-head) - 120px); display: flex; flex-direction: column; justify-content: center; }
.c-sys-bar { position: relative; }
.c-sys-bar .c-brand { margin-right: 0; }
/* Offline: what needs a connection, as rows waiting (grey dots), then one way forward. */
.c-sys-needs { margin-top: 40px; max-width: 560px; }
.c-sys-needs .c-h4 { margin-bottom: 14px; }
.c-sys-needs .c-row { align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.c-sys-needs .c-row .g-dot { margin-top: 8px; }
.c-sys-paused { margin-bottom: 32px; max-width: 420px; }
.c-sys-paused .c-tl__rail { height: 40px; }
.c-sys-paused .c-tl__ph { left: 58%; }
.c-sys-paused .c-tl__ph::before { background: var(--text3); }
@media (max-width: 959.98px) { .c-sys .c-split__media .c-player { --c-ph: 320px; border-radius: 24px; } }


/* Desktop: a drawn tool sits in the middle of the screen beside the words, and stays there while the scenes change. */
@media (min-width: 960px) {
  .c-edit > .c-stage:has(> .c-feat-wrap) { min-height: calc(100vh - var(--c-head) - 32px); justify-content: center; padding-top: 0; }
  .c-feat-wrap { width: min(100%, 480px); }
}
.c-aff-calc-note { margin-top: 16px; padding-inline: 4px; }
@media (min-width: 960px) { .c-aff-calc-note { padding-inline: 8px; } }
@media (max-width: 959.98px) { .c-sys-center { min-height: calc(100svh - var(--c-head) - 260px); } }
.c-section--tight.c-section--rule.c-section { padding-top: calc(var(--c-sec) * .6); }

/* AI Video Studio's steps drop to two with the credit step gone (Thomas, 11-7, decision 2): two even columns on
   desktop instead of two of three. */
@media (min-width: 960px) { .c-feat-steps.c-days:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
