
    :root {
      --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
      /* ⚠️ THE FALLBACK STACK ENDS IN `serif`, AND THAT IS DESIGN'S NON-NEGOTIABLE
         RATHER THAN A PREFERENCE. README:234: "do not fall back to a UI sans for
         transcript body." A stack ending in sans-serif would honour the spec while
         the font loads and violate it the moment it fails — on the one surface that
         is forty minutes of reading prose. Georgia is a real reading serif present
         on macOS and Windows, so the degraded state is still a serif.
         Consumed by pass 5 (layout), not yet by anything — see the --trv-* block. */
      --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
      /* Agency palette */
      --gold:         #FBB03B;  /* Broadcast Gold */
      --signal:       #F7931E;  /* Signal Orange */
      --brand:        #F7931E;
      --brand-dark:   #d97d12;
      --bg:           #1A1A1A;  /* Lens Black — main background */
      --surface:      #202020;
      --surface2:     #2a2a2a;
      --border:       rgba(255,255,255,0.08);
      --border-secondary: rgba(255,255,255,0.18);
      --border-tertiary: rgba(255,255,255,0.07);
      --background-primary: #1A1A1A;
      --text:         #F0EDE8;
      --text-muted:   #7A7670;
      --color-text-tertiary: #615e58;
      --review:       #6E9BC8;
      --review-bg:    rgba(110,155,200,0.08);
      --metadata:     #F7931E;
      --metadata-bg:  rgba(247,147,30,0.08);
      --radius:       4px;
      --approved:     #32b464;
      --changes:      #E8342A;
      /* ── STATUS PAGE STATE PALETTE (item 508) ────────────────────────────────────────────
         ONE declaration per state, consumed by BOTH the row tag (.ta-tag.tag-*) and the row
         accent (--ta-color), so the two can never disagree about what a state looks like.
         ⚠️ NOT FREE CHOICES. Each value is the ink of the canonical badge class that already
         names that state, and checks/status-pill-palette.mjs asserts the equality — recolour
         .badge-internal without moving --st-internal and the suite goes RED. That is the link
         item 443's "ink is never the variable" discipline asks for WITHOUT recolouring the
         badge classes themselves: these tokens are new, carry exactly one meaning, and have no
         unrelated consumer to drag along (which is the trap 443 records).
         ⚠️ INTERNAL IS VIOLET, NOT #FBB03B. The Status page shipped Broadcast Gold here — the
         colour the palette block above reserves for a DECISION — on a state that is the
         opposite of one (team-only, the client has not seen it). */
      /* var(), NOT a copy of #b08cf5 — that value is ASSET_TYPE_PALETTE.transcript.ring, and
         asset-type-palette.mjs's rule is that an asset-type colour must arrive as a var() or it
         is by definition a second copy. --rd-violet is already the portal's "internal only,
         never client-visible" token (see .del-redesign-pill.is-internal, same recipe). */
      --st-internal:     var(--rd-violet);  --st-internal-rgb:   var(--rd-violet-rgb);  /* = .del-status-pill.badge-internal */
      --st-revision:     #E24B4A;  --st-revision-rgb:   226,75,74;    /* = .del-status-pill.badge-revision */
      --st-notify:       var(--rd-gold);    --st-notify-rgb:     var(--rd-gold-rgb);    /* = .del-status-pill.badge-waiting — team action, gold earned */
      --st-withclient:   #7fb3d5;  --st-withclient-rgb: 74,122,153;   /* = .del-status-pill.badge-mine */
      --st-approved:     #2dc48a;  --st-approved-rgb:   50,180,100;   /* = .del-status-pill.badge-done */
      --st-quiet:        #8a8f96;  --st-quiet-rgb:      138,143,150;  /* neutral — nothing is being asked */
      /* ⚠️ ITEM 649 — THE CLIENT'S "WE ARE WORKING THROUGH YOUR NOTES" INK. A NEW TOKEN, AND
         DELIBERATELY NOT ONE OF THE THREE IT SITS BETWEEN.
           · NOT --st-revision (#E24B4A). Item 637 put that coral on the changes-requested BADGE by
             an explicit ruling, and v5 borrowed it for the revising ROW LINE — where it reads as an
             error. The spec is explicit that red survives only on "Request changes"; a sentence
             saying we are doing the work is not an error.
           · NOT --rd-violet / --at-transcript-ring (#b08cf5). That token's own comment reads
             "violet = internal only, never client-visible", so using it on a client row would
             contradict a ⚠️ rather than follow one. It is also a BLUE-violet; this is a pink
             mauve, and the two must stay tellable apart at a glance.
           · NOT an --st-* name. That family is documented as "= .del-status-pill.badge-*" pairs and
             every member names a badge. This names no badge — it is a row-text ink and nothing else.
         The value is the client spec's own mauve. 8.9:1 on --surface #202020, so it carries body
         text at the row's size. checks/v5-flag-off-identity.mjs §5 pins that the v5 stylesheet
         holds no literal, which is why it is declared HERE and referenced by var() there. */
      --client-revising: #c98fb5;
      /* Item 696 follow-up: the SAME mauve as an rgb triple, for the v5 WITH US outline's .45 alpha
         (the prototype's rgba(201,143,181,.45)). Kept beside its hex, the --st-approved-rgb pattern;
         v5-polish.mjs pins that the two name one colour. */
      --client-revising-rgb: 201,143,181;
      /* THE INTERNAL BADGE, and only the badge. --internal / --internal-bg below are a
         whole internal-affordance system (26 rules: toggles, comment cards, markers,
         composer), so the badge gets its own pair rather than recolouring all of that.
         PALE YELLOW, NOT BROADCAST GOLD. #FBB03B means a DECISION; #FBE6A8 means team-only.
         They must stay visibly different colours, not two shades of one — which is why this
         is a light tint with dark text, not a saturated fill. */
      --internal-badge-bg:   #FBE6A8;
      --internal-badge-text: #4A3418;
      --internal:     #9A968E;                 /* internal indicator — neutral gray (was yellow #F5D76E / purple #b08cf5). Single source of truth for "internal" across the portal. */
      --internal-bg:  rgba(255,255,255,0.08);
      --internal-border: rgba(255,255,255,0.20);
      --internal-bg-hover: rgba(255,255,255,0.13);
      /* Transcript annotation palette */
      --color-highlight: #FBB03B;  /* gold */
      --color-clip:      #4A7C59;  /* sage */
      --color-removed:   #E24B4A;  /* red  */
      --border-strong:   rgba(255,255,255,0.18);
      --text-danger:     #E24B4A;
      --bg-danger:       rgba(226,75,74,0.12);
      --bg-success:      rgba(29,158,117,0.12);
      --text-success:    #1D9E75;
      --surface-1:       rgba(255,255,255,0.04);
      --text-secondary:  rgba(255,255,255,0.6);
      --border-accent:   rgba(251,176,59,0.6);
      --text-accent:     #FBB03B;
      --bg-accent:       rgba(251,176,59,0.10);
      --border-stronger: rgba(255,255,255,0.22);
      /* Contextual-hint palette — informational only. Deliberately a cool slate-blue, never
         --gold (#FBB03B) or --signal/--brand (#F7931E): those are reserved for decision actions
         (Approve / Request changes / timecodes), and a hint must never read as one. */
      --hint-accent: #4A7A99;
      --hint-bg:     rgba(30, 47, 60, 0.92);  /* dark translucent slate — reads as a card on dark surfaces */
      --hint-text:   #AEC9D8;                 /* light slate-blue (a lightened --hint-accent) */
      /* ── Review-workspace elevation scale ──────────────────────────────────────────────
         One 4-tone ramp for the whole review surface, replacing the ad hoc greys (#141414,
         #161616, #0e0e0e, #111 and mixed --bg/--surface/--surface2 usage) that had drifted
         within a few levels of each other. Everything in the workspace — panel, action bar,
         markup row, video + transport — reads as floating cards over a pure-black canvas, so
         the gaps between them are the canvas showing through rather than another grey.
         Orange stays the only accent; purple stays reserved for "internal". */
      --rv-canvas:     #000000;  /* page/video canvas, topbar, gaps between floating pieces */
      --rv-surface:    #1c1c1f;  /* panel body, recessed insets (comment input, decision inset) */
      --rv-elevated:   #29292d;  /* cards, composer, decision bar, active chip, action + transport bar */
      --rv-elevated-2: #34343a;  /* hover/active, one notch up from elevated */
      --rv-border:        rgba(255,255,255,0.09);
      --rv-border-strong: rgba(255,255,255,0.16);

      /* ── REVIEW REDESIGN (item 374, slice 1) — the --rd-* palette, §1 of
         design/REVIEW-REDESIGN-REFERENCE-2026-08-16.md. The prefix is --rd- BY
         RULING: the reference's --rv- prefix collides with the live ramp above
         (--rv-canvas alone has 7 consumers), and a shadowed token silently means
         two things (item 282). Slice 1 (the comments panel) consumes most of
         these; canvas/track/well/strip/gold-2/green-ink arrive with slices 2–5
         and are declared now so the set is defined ONCE — named here rather
         than left to read as dead (item 159). */
      --rd-canvas:#08080a; --rd-chrome:#0d0d10; --rd-hairline:#1c1c20; --rd-panel-hair:#1a1a1f;
      --rd-card:#111116; --rd-card-bd:#1e1e24; --rd-card-hover:#16161b; --rd-card-hover-bd:#2b2b34;
      --rd-control:#17171b; --rd-control-bd:#24242a; --rd-inset:#131317; --rd-inset-bd:#1f1f26;
      --rd-footer:#101015; --rd-footer-bd:#1e1e26; --rd-track-bd:#20202a;
      --rd-well:#101014; --rd-strip:#0e0e12;
      /* Slice 2 (item 375): the §3 decision-unit wrapper + Change-decision button,
         the §2 breadcrumb separator, the Hide-comments open border — and
         --rd-red-fg, the reference red #E5484D RAISED same-hue to clear the
         4.5:1 census floor on its own tints (guard authoritative, ruling 2 of
         slice 1 carried forward: measured 4.73 on the chip tint, 5.26 on the
         wrapped button — #E5484D itself measures 3.9, under the floor). */
      --rd-unit:#121216; --rd-unit-bd:#2a2a33; --rd-unit-div:#26262f;
      --rd-btn2:#1b1b21; --rd-btn2-bd:#303039; --rd-btn2-fg:#d5d5dd;
      --rd-red-fg:#e96368; --rd-toggle-open-bd:#32323c; --rd-sep:#3a3a42;
      /* Text ramp. ⚠️ text-4 / text-5 are the reference's #75757f / #5e5e68
         RAISED to the minimum same-hue values clearing the 4.5:1 census floor
         (Phase B ruling 2; review-approval-once.mjs §3 is authoritative and is
         NOT re-pointed). ⚠️ The census's EFFECTIVE background is #1A1A1A, not the
         card #111116: its bgFor resolves `body { background: var(--bg) }` at
         every chain depth (the documented cssMatchesChain type-selector hole),
         and the guard is authoritative INCLUDING that behaviour — so the
         minimums are computed against #1A1A1A, which is stricter than the card.
         The two converge near the floor BY CONSTRUCTION — both started below
         it, and the floor is one number. Computed, not eyeballed;
         review-panel-restyle.mjs recomputes them on every run, so lowering
         either fails the suite. */
      --rd-text:#f4f4f5; --rd-text-2:#c9c9d2; --rd-text-3:#8a8a95;
      --rd-text-4:#81818b; --rd-text-5:#81818e;
      --rd-nontext:#6c6c78; /* NON-TEXT ONLY (the reference's own label): inactive tab, future ruler marks */
      --rd-gold:#FBB03B; --rd-gold-2:#F7931E; --rd-green:#4CC38A; --rd-green-fg:var(--at-audio-ring); --rd-green-ink:#1a2e20;
      --rd-red:#E5484D; --rd-violet:var(--at-transcript-ring); /* violet = internal only, never client-visible */
      /* rgb triplets for the §8 tint recipe — rgba(var(--x-rgb), a): fixed pairs,
         never alpha-on-whatever's-behind. */
      --rd-gold-rgb:251,176,59; --rd-gold-2-rgb:247,147,30; --rd-green-rgb:76,195,138; --rd-violet-rgb:var(--at-transcript-ring-rgb);
      /* ⚠️ NOT var(--mono). The portal's --mono is a SYSTEM stack (ui-monospace, 'SF Mono',
         Menlo, Consolas) and the reference names IBM Plex Mono explicitly for this page's
         numerics: §2's stepper label, §5's ruler labels and chips, §7's timecode column.
         Collapsing the review page onto --mono would take the specified font OFF the
         timecodes — item 114's rule, a value that looks like a tuning knob and is a spec
         value. One declaration site for the font the reference asks for. */
      --rd-mono:'IBM Plex Mono', monospace;
      --rd-red-rgb:229,72,77; --rd-slate-rgb:143,184,212;
      /* §8 component values (not §1 tokens; declared so no panel rule carries a
         bare literal). --rd-slate is the agency slate the byline already uses. */
      --rd-slate:#8FB8D4; --rd-name:#e8e8ee; --rd-body:#d9d9e2; --rd-detail-val:#e2e2e9;
      --rd-tool-bg:#22222a; --rd-tool-fg:#9a9aa6; --rd-seg-active:#26262e; --rd-count-off:#4f4f59;
      --rd-int-card:#141129; --rd-int-bd:#2a2456; --rd-int-hover:#191631; --rd-int-hover-bd:#3a3170;
      --rd-int-track:#4a3fa8; --rd-pub-label:#f0dcae; --rd-placeholder:#5a5a64;
      --rd-markup-bg:#1c1c22; --rd-markup-bd:#26262e;
      --rd-track:#20202a; /* §5 timeline track — its bd value, which is the one that reads on a 1.5px rail */
      /* §6 volume slider (item 389). Both READ an existing value rather than restating one —
         the --rd-tick: var(--rd-nontext) idiom (item 385) — so the role is named without
         minting a near-copy (item 82). §6 gives track #2c2c34; --rd-card-hover-bd is #2b2b34,
         ONE unit away and imperceptible, so reading it beats minting a sixth dark neutral.
         ⚠️ NOT --rd-track: that is the TIMELINE's, and item 386 is parked to rebuild it. */
      --rd-vol-track:var(--rd-card-hover-bd);
      --rd-vol-fill:var(--rd-tool-fg); /* §6's #9a9aa6 exactly, already a token */
      /* ⚠️ §5 ruler grid tick. Reads --rd-nontext, which is the token DECLARED for this job
         (its own comment above says "future ruler marks") and which slice 3b did not use.
         MEASURED on the transport's own --rd-chrome #0d0d10 ground, not the census ground:
         the old #2e2e38 was 1.45:1 — invisible, which is why the ticks read as absent — and
         #6c6c78 is 3.75:1, clear of the 3:1 non-text floor. Note this is a DIFFERENT
         background from item 379's 3.36:1 reading of the same hex, which measured it as TEXT
         against #1A1A1A; both are correct about their own ground. */
      --rd-tick:var(--rd-nontext);
      --rd-frame-edge:rgba(255,255,255,0.22); /* the media's own edge — see .review-stage video/img */
    }

    /* ══════════════════════════════════════════════════════════════════
       TRANSCRIPT REVIEW — design token set  (--trv-*)

       Prefixed --trv-* rather than taking design's bare names, because
       --surface already exists here at #202020 with 49 consumers. The
       portal already prefixes every scoped set (--rv-*, --ag-*, --at-*,
       --internal-*, --hint-*); this follows that convention and removes
       the collision by construction rather than by scoping.

       Declared on :root, NOT on #rv-transcript-view. See item 60: seven
       nodes on this page are appended to <body> (tr-copy-pop, tr-sel-bar,
       cg-pop, tr-export-overlay, tr-quotes-overlay, tr-edit-bar,
       tr-edit-layer) and sit OUTSIDE the themed subtree. A view-scoped
       token resolves to nothing there, silently. The prefix means global
       scope costs nothing.

       ⚠️ LIGHT ONLY IS A DECISION, NOT AN ABSENCE. Design specced a full
       dark column; it is banked verbatim at the foot of this block.
       ⚠️ ITEM 60 IS REVERSED BY ITEM 341: the toggle now ships to every
       audience, and its shared-key reason was solved exactly as predicted
       here — a client-scoped key (trThemeKey), so a client with no stored
       preference lands light regardless of the team key on the machine.
       ⚠️ THE DARK A CLIENT NOW REACHES IS NOT THIS BANK. It is the team's
       pre-redesign dark; these design values remain UNCONSUMED, and
       unbanking them is the dark palette pass (design's own note says
       their dark neutrals are invented rather than drawn from our portal),
       not the toggle commit. A later reader meeting only the light values
       should not conclude dark was never designed — it was, and it is
       below.

       ⚠️ UNCONSUMED AS OF THIS COMMIT, DELIBERATELY. Passes 3–6 (fonts,
       rail, layout, mark treatments) are what read these. Landing them
       alone keeps a colour regression bisectable. Item 159's shape —
       declared and unreachable reads as live — so this note is what stops
       them being deleted as dead before their consumers land.
       ══════════════════════════════════════════════════════════════════ */
    :root {
      --trv-desk:              #EDEBE7;    /* Outside the page */
      --trv-page:              #F5F3F0;    /* Page background */
      --trv-surface:           #FFFFFF;    /* Cards, header, controls */
      --trv-panel:             #FBFAF8;    /* Side rails */
      --trv-subpanel:          #F7F5F1;    /* Nested sections */
      --trv-hover:             #F2EFEA;    /* Hover, pending selection */
      --trv-slate-hover:       #EDF3F7;    /* Slate control hover */
      --trv-video-bg:          #1A1815;    /* Video well */
      --trv-line:              #E2DED7;    /* Panel borders */
      --trv-line-2:            #E7E3DC;    /* Section dividers */
      --trv-hairline:          #EDE9E2;    /* Hairlines */
      --trv-card-line:         #DFD9D0;    /* Card borders */
      --trv-ctl-line:          #D8D3CA;    /* Control borders */
      --trv-ctl-line-strong:   #C6BFB4;    /* Control hover borders */
      --trv-track:             #E0DBD3;    /* Track fill */
      --trv-ink:               #1D1A17;    /* Primary text */
      --trv-ink-read:          #23201C;    /* Transcript body */
      --trv-ink-2:             #3A352E;    /* Control labels */
      --trv-ink-speaker:       #4A423A;    /* Speaker names */
      --trv-ink-3:             #6E675E;    /* Secondary, paused state */
      --trv-ink-4:             #7C756B;    /* Sub-lines */
      --trv-ink-label:         #8A8279;    /* Section labels */
      --trv-ink-time:          #9A9288;    /* Inactive timecodes */
      --trv-ink-faint:         #A9A196;    /* Placeholders */
      --trv-slate:             #4A7A99;    /* Informational, playback */
      --trv-slate-2:           #3C6480;    /* Link hover, count pill */
      --trv-slate-ink:         #2F5B74;    /* Slate control text, brackets */
      --trv-slate-chip:        #E4EAEF;    /* Slate chip fill */
      --trv-slate-sel:         #D9E4EC;    /* Text selection */
      --trv-sel-bg:            #DCE4EA;    /* Search match */
      --trv-sel-line:          #C3D0D9;    /* Search match outline */
      --trv-green:             #2F6B4F;    /* Sent confirmation */
      --trv-note-fill:         #F3E8CE;    /* Note highlight */
      --trv-note-rule:         #8C6F45;    /* Note rule (legacy, unused) */
      --trv-note-ink:          #6B5326;    /* Note text, count pill */
      --trv-note-chip:         #F0E4C8;    /* Note tag fill */
      --trv-note-line:         #DEC99B;    /* Note button border */
      --trv-note-hover:        #EEDFBB;    /* Note button hover */
      --trv-note-card-line:    #E8DFCB;    /* Note card border */
      --trv-note-card-line-2:  #DDE6ED;    /* Rail note card border */
      --trv-note-chip-2:       #DDE7EE;    /* Rail note tag fill */
      --trv-note-ink-2:        #33607D;    /* Rail note tag text */
      --trv-note-quote:        #5E574F;    /* Rail note quote */
      --trv-cut-fill:          #F6E7E2;    /* Cut highlight */
      --trv-cut-rule:          #B4553C;    /* Strikethrough */
      --trv-cut-ink:           #8E3D26;    /* Cut text, tag */
      --trv-cut-card:          #FDF6F3;    /* Rail cut card */
      --trv-cut-card-line:     #EBD5CD;    /* Rail cut card border */
      --trv-cut-chip:          #F1DCD5;    /* Cut tag fill */
      --trv-cut-line:          #E3C3B8;    /* Cut button border */
      --trv-cut-hover:         #F1DBD3;    /* Cut button hover */
      --trv-cut-dim:           #8E877D;    /* Struck text */
      --trv-cut-quote:         #7E766C;    /* Rail cut quote */
      --trv-cut-swatch:        #D9AFA2;    /* Legend swatch ring */
      --trv-card-shadow:       0 1px 2px rgba(45,38,28,0.05), 0 8px 24px -12px rgba(45,38,28,0.16); /* Centre card */
      --trv-pop-shadow:        0 8px 24px -6px rgba(45,38,28,0.3), 0 1px 2px rgba(45,38,28,0.1); /* Popovers, chips */
    }

    /* ── design's DARK column, banked verbatim. NOT DECLARED — nothing reads
       it, and 56 live properties with no consumer is item 159's shape twice
       over. Kept so the specced palette survives the light-only lock above:
       if dark ever ships these are the values, and they are not re-derived.
         --trv-desk:              #0C0E11;    Outside the page
         --trv-page:              #111418;    Page background
         --trv-surface:           #181C21;    Cards, header, controls
         --trv-panel:             #15181D;    Side rails
         --trv-subpanel:          #1A1E24;    Nested sections
         --trv-hover:             #22272E;    Hover, pending selection
         --trv-slate-hover:       #1B2A34;    Slate control hover
         --trv-video-bg:          #0A0C0E;    Video well
         --trv-line:              #282E36;    Panel borders
         --trv-line-2:            #242A31;    Section dividers
         --trv-hairline:          #232930;    Hairlines
         --trv-card-line:         #2A313A;    Card borders
         --trv-ctl-line:          #333A44;    Control borders
         --trv-ctl-line-strong:   #454E5A;    Control hover borders
         --trv-track:             #2A313A;    Track fill
         --trv-ink:               #ECE8E1;    Primary text
         --trv-ink-read:          #E4E0D8;    Transcript body
         --trv-ink-2:             #D6D1C8;    Control labels
         --trv-ink-speaker:       #BDB7AC;    Speaker names
         --trv-ink-3:             #A39D93;    Secondary, paused state
         --trv-ink-4:             #9A948A;    Sub-lines
         --trv-ink-label:         #8B857B;    Section labels
         --trv-ink-time:          #857F75;    Inactive timecodes
         --trv-ink-faint:         #6E6961;    Placeholders
         --trv-slate:             #7FB0CE;    Informational, playback
         --trv-slate-2:           #9AC4DD;    Link hover, count pill
         --trv-slate-ink:         #A8CDE2;    Slate control text, brackets
         --trv-slate-chip:        #22333F;    Slate chip fill
         --trv-slate-sel:         #2B4356;    Text selection
         --trv-sel-bg:            #2B4356;    Search match
         --trv-sel-line:          #3E5C71;    Search match outline
         --trv-green:             #5FBF8A;    Sent confirmation
         --trv-note-fill:         #4A3D20;    Note highlight
         --trv-note-rule:         #C6A469;    Note rule (legacy, unused)
         --trv-note-ink:          #E2C68C;    Note text, count pill
         --trv-note-chip:         #3E331B;    Note tag fill
         --trv-note-line:         #6B5A31;    Note button border
         --trv-note-hover:        #574724;    Note button hover
         --trv-note-card-line:    #3A3120;    Note card border
         --trv-note-card-line-2:  #2A323A;    Rail note card border
         --trv-note-chip-2:       #243440;    Rail note tag fill
         --trv-note-ink-2:        #A8CDE2;    Rail note tag text
         --trv-note-quote:        #B5AFA5;    Rail note quote
         --trv-cut-fill:          #3E211A;    Cut highlight
         --trv-cut-rule:          #D08768;    Strikethrough
         --trv-cut-ink:           #E09B7C;    Cut text, tag
         --trv-cut-card:          #241512;    Rail cut card
         --trv-cut-card-line:     #3C241D;    Rail cut card border
         --trv-cut-chip:          #4A281F;    Cut tag fill
         --trv-cut-line:          #5A3227;    Cut button border
         --trv-cut-hover:         #4F2B21;    Cut button hover
         --trv-cut-dim:           #8A8078;    Struck text
         --trv-cut-quote:         #948B82;    Rail cut quote
         --trv-cut-swatch:        #7A4235;    Legend swatch ring
         --trv-card-shadow:       0 1px 2px rgba(0,0,0,0.5), 0 10px 30px -14px rgba(0,0,0,0.8); Centre card
         --trv-pop-shadow:        0 10px 30px -6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5); Popovers, chips
       ── end banked dark column ── */

    /* ══════════════════════════════════════════════════════════════════
       SELECTS LIGHT — the ONE value the --trv-* bank cannot supply.
       ⚠️ THE PREFIX IS DELIBERATE AND IT IS NOT TIDINESS. --trv-* carries
       DESIGN'S transcript-review table verbatim, and transcript-review-
       tokens.mjs §2 asserts that set as an EQUALITY against the vendored
       README: "a token ADDED is a value design did not specify wearing
       design's prefix". A --trv-violet would fail it, correctly. This is a
       SELECTS value that design's transcript table does not cover, so it
       carries its own prefix — item 374's own precedent, where --rd-* was
       minted rather than overloading --rv-*.
       ⚠️ TEXT ROLES ONLY. The palette alias (rgb(var(--at-transcript-ring-rgb)))
       stays the FILL for the selected queue row, the scrub span and the play
       hover — a type-identity fill and a readable ink are two different jobs
       and both coexist deliberately. Measured on white: the ring #b08cf5 is
       2.65:1 (fails AA); this is 5.96 on surface, 5.71 on panel, 5.47 on
       subpanel, and 4.32 as the solid scrub fill against --trv-track.
       ⚠️ AND THERE IS NO SIBLING AMBER TOKEN, DELIBERATELY. The light amber
       ink this page needs already exists in the bank as --trv-note-ink
       (#6B5326, 6.96 on panel) — a second one would be item 82's near-copy,
       which is the trap that cost the fill column six disagreeing tables. */
    :root {
      --sel-violet-ink:        #7A4BB8;    /* Selects: violet TEXT on light paper */
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-weight: 400; min-height: 100vh; }

    /* LOADING */
    #loading-screen { position: fixed; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100; transition: opacity 0.6s ease; }
    #loading-screen.hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }   /* ⟦item 1052⟧ + visibility once faded: an opacity-0 cover stayed in the page's text ("LOADING…") under every page */
    .loading-logo { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.15em; color: var(--brand); margin-bottom: 2rem; text-transform: uppercase; }
    .loading-bar { width: 120px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
    .loading-bar::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--brand); animation: load 1.2s ease infinite; }
    @keyframes load { to { left: 100%; } }
    /* ⟦item 1088⟧ a team tab whose page in front is Light (the early script's class on <html>, then v5ThdrBodySync's): the loading cover in the
       team's light page grey, so moving between pages never flashes dark. Never on a client's, a guest's or a See-as-client tab. */
    html.brm-tb-l #loading-screen { background: #dfe4ea; }
    html.brm-tb-l #loading-screen .loading-logo { color: #396793; }
    html.brm-tb-l #loading-screen .loading-bar { background: #c9d1db; }
    html.brm-tb-l #loading-screen .loading-bar::after { background: #396793; }

    /* ERROR */
    #error-screen { display: none; position: fixed; inset: 0; background: var(--bg); align-items: center; justify-content: center; flex-direction: column; gap: 1rem; text-align: center; padding: 2rem; z-index: 150; }
    /* ⚠️ ITEM 742 — z-index 150: ABOVE the v5 rail (z 50, a flex item, so it stacks without a position) and the loading
       screen (100), BELOW the sign-in page (200) that its own button opens. Without it a preview failure painted the error
       screen UNDER the rail — half a page of "This link isn't working" beside a working-looking rail. */
    #error-screen.visible { display: flex; }
    #error-screen h2 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.8rem; }
    #error-screen p { color: var(--text-muted); max-width: 360px; line-height: 1.6; }
    /* ⚠️ THE LOGIN BUTTON'S OWN RECIPE, not a second one — item 594. This button sends the
       person to exactly that form, so looking like it is the point: a differently-styled control
       in the same flow reads as a different kind of action. */
    #error-screen button { background: var(--brand); color: #fff; border: none; border-radius: 8px;
      padding: .85rem 1.4rem; font-size: 1rem; font-family: 'Manrope', sans-serif; font-weight: 600;
      cursor: pointer; margin-top: .5rem; }
    #error-screen button:hover { filter: brightness(1.08); }
    /* ITEM 752: Try again is NEUTRAL — gold stays for decisions. */
    #error-screen button.es-retry { background: transparent; color: var(--text); border: 1px solid var(--border); }
    /* ITEM 752: a review whose load failed offers NOTHING to decide — the pair and the bar go, wherever the frame put them. */
    body.rv-load-failed #review-view #rv-dec-bar, body.rv-load-failed #review-view .btn-approve-rv, body.rv-load-failed #review-view .btn-changes-rv { display:none !important; }

    /* APP */
    #app { display: none; min-height: 100vh; }
    #app.visible { display: block; }

    /* HEADER */
    header { padding: 1.5rem 3rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 0.5px solid var(--border); position: sticky; top: 0; background: rgba(37,39,46,0.92); backdrop-filter: blur(12px); z-index: 10; }
    .header-left { display: flex; align-items: center; gap: 1.25rem; }
    .wordmark { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; color: var(--brand); text-transform: uppercase; }
    .header-divider { width: 1px; height: 18px; background: var(--border); }
    .team-badge { display: none; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
    .team-badge .team-name { color: var(--brand); font-weight: 500; }
    .team-badge button { background: none; border: 0.5px solid var(--border); color: var(--text-muted); border-radius:4px; padding: 0.3rem 0.6rem; font-size: 0.68rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
    .team-badge button:hover { color: var(--text); border-color: var(--text-muted); }
    .client-name { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; }
    nav { display: flex; gap: 0.25rem; }
    nav button { background: none; border: none; color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius:4px; cursor: pointer; transition: all 0.2s; }
    nav button:hover { color: var(--text); background: var(--surface2); }
    nav button.active { color: var(--brand); background: var(--metadata-bg); }

    /* VIEWS */
    #portal-view { display: block; }
    #review-view { display: none; }

    /* PORTAL MAIN */
    main { max-width: 1100px; margin: 0 auto; padding: 3rem 3rem 6rem; }
    .page { display: none; animation: fadeUp 0.4s ease; }
    /* page-deliverable-detail lives OUTSIDE <main>, so it needs main's own width
       constraint to match the project pages (1100px, centered, side padding). */
    /* width:100% is load-bearing, not redundant. Unlike every other .page (which lives
       inside <main>, an ordinary block), this one is a direct child of #app — and
       #app.visible is `display:flex; flex-direction:column`. In a column flex container
       the cross axis is horizontal, and `margin: 0 auto` SUPPRESSES align-self:stretch
       per the flexbox spec: auto cross-axis margins size the item to its content, then
       centre it. That made the page width track its own content — narrow while the
       skeleton was up, wider once real cards loaded, and different between deliverables.
       A definite width restores stretch; max-width still caps it and the auto margins
       still centre the remainder. Global box-sizing:border-box keeps padding inside. */
    #page-deliverable-detail { width: 100%; max-width: 1100px; margin: 0 auto; padding: 3rem 3rem 6rem; }
    .page.active { display: block; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
    .section { margin-bottom: 3.5rem; }
    .section-header { margin-bottom: 0.75rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--border); }
    .home-greeting { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 0.5px solid var(--border); }
    .home-greeting-message { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text); line-height: 1.25; }
    .home-greeting-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }
    .section-title-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
    /* Colour stated EXPLICITLY rather than inherited. Body sets `color: var(--text)` and an
       element with no colour rule of its own picks it up, which works — but this file records
       that exact inheritance as a standing trap (it is how #rv-zoom-level and the asset
       navigator ended up white-on-white), so the heading names its own token. */
    .section-title { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
    .section-title.metadata { color: var(--metadata); }
    .section-title.projects { color: var(--text); }
    /* `.section-title.review` (#E24B4A) and the whole `.section-count` family were deleted with
       the count bubble — nothing referenced them afterwards, and a dead red rule is how red
       grows back. `.metadata` / `.projects` above were ALREADY unreferenced before this change
       and are left alone; removing them is a different job. */
    .section-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; max-width: 680px; }
    .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }

    /* CARD */
    .card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; cursor: pointer; text-decoration: none; display: block; }
    .card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
    .card-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); }
    .card-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
    .card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
    .card-thumb-placeholder svg { opacity: 0.2; }
    .action-badge { position: absolute; top: 10px; left: 10px; background: #E8342A; color: #fff; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 4px; }
    .card-body { padding: 1rem 1.25rem 1.25rem; }
    .card-meta { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.3rem; }
    .card-title { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 0.75rem; line-height: 1.4; }
    .status-badge { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.25rem 0.65rem; border-radius:4px; margin-bottom: 0.9rem; }
    .status-badge.needs-review        { background: var(--review-bg);   color: var(--review); }
    .status-badge.metadata-approval   { background: var(--metadata-bg); color: var(--metadata); }
    .status-badge.metadata-incomplete { background: rgba(247,147,30,0.05); color: #F7931E; border: 1px solid rgba(247,147,30,0.2); }
    .card-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.42rem 0.85rem; border-radius:4px; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; }
    .card-cta.review   { background: var(--review-bg);   color: var(--review); }
    .card-cta.review:hover   { background: var(--review);   color: #fff; }
    .card-cta.metadata { background: var(--metadata-bg); color: var(--metadata); }
    .card-cta.metadata:hover { background: var(--metadata); color: #0A0A0A; }
    .card-cta.open-review { background: var(--review-bg); color: var(--review); }
    .card-cta.open-review:hover { background: var(--review); color: #fff; }
    .card-submeta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
    .action-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .action-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.42rem 0.85rem; border-radius:4px; border: none; cursor: pointer; transition: all 0.2s; }
    .action-chip.review { background: var(--review-bg); color: var(--review); }
    .action-chip.review:hover { background: var(--review); color: #fff; }
    .action-chip.metadata { background: var(--metadata-bg); color: var(--metadata); }
    .action-chip.metadata:hover { background: var(--metadata); color: #0A0A0A; }
    .action-chip.metadata.incomplete { background: rgba(247,147,30,0.08); color: #F7931E; border: 1px solid rgba(247,147,30,0.25); }
    .action-chip.metadata.incomplete:hover { background: #F7931E; color: #0A0A0A; }

    /* EMPTY */
    .empty-state { padding: 3rem 2rem; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }
    /* The all-completed empty state on the project-detail Deliverables bar. A finished project
       is not an empty one, so this reads as an outcome rather than a void — and it keeps the
       dashed .empty-state shell so it still sits in the list's own visual language.
       ⚠️ GREEN IS #2dc48a, THE SAME ACCESSIBLE GREEN THE ✓ Completed CHIP AND .badge-done USE.
       Not a new hue: the icon is standing in for that chip's state, and a second green would be
       the palette forking one column at a time (the fill/ring lesson). */
    .del-done-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:2.25rem 2rem; }
    .del-done-icon { color:#2dc48a; margin-bottom:2px; }
    .del-done-empty .del-done-title { font-family:'Manrope',sans-serif; font-weight:600; font-size:1rem; color:var(--text); margin:0; }
    .del-done-empty .del-done-sub { font-size:0.88rem; color:var(--text-muted); margin:0; }
    .del-done-btn { margin-top:12px; background:none; border:0.5px solid var(--border); color:var(--text); border-radius:4px; padding:8px 16px; font-size:0.85rem; font-family:'Inter',sans-serif; cursor:pointer; transition:border-color .15s, color .15s; }
    .del-done-btn:hover { border-color:#2dc48a; color:#2dc48a; }
    /* MESSAGES — an honest "not built yet", client-only (the nav item is hidden for team).
       ⚠️ SLATE-BLUE, NOT GOLD OR SIGNAL ORANGE. Those two are reserved for real decision points
       (Approve, CTAs); spending them on an informational panel dilutes the one signal that has
       to stay loud. Nothing here is actionable.
       ⚠️ ACCENT ON THE NORMAL DARK SURFACE — NOT a light panel. A full-page #EEF3F6 card on this
       shell is a large bright rectangle, louder than the message deserves; the tint belongs on
       the heading and the mark above it. CONTRAST DECIDED THE HEX: #4A7A99 measures 3.52:1 on
       --surface, under AA for body text and dim for a focal heading. #8FBDD6 measures 8.08:1 and
       is ALREADY this file's lightened slate (stage-shared, tr-card-reviewed, tr-done-hint) —
       reused rather than minting a near-copy, which is item 82's trap. */
    /* Messages compose (item 352). SLATE family, NEVER gold — sending a message is neither a
       decision nor the asking of one (item 66 as restated), and the slate is this page's own
       established hue. Send is a filled slate button: #FFFFFF on #4A7A99 measures 4.63:1,
       clearing AA for its 0.875rem label; the slate-as-TEXT problem the msg-soon comment above
       records (3.52:1 on --surface) does not apply to a fill. */
    .msg-wrap { padding: 3.5rem 2rem; text-align: center; max-width: 560px; margin: 0 auto; }
    .msg-soon-mark { color: #8FBDD6; opacity: 0.9; margin-bottom: 1.1rem; display: block; }
    .msg-head { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.15rem;
      letter-spacing: 0.01em; color: #8FBDD6; margin: 0 0 0.55rem; }
    .msg-lead { font-family: 'Inter', sans-serif; font-size: 0.875rem; line-height: 1.5;
      color: var(--text-muted); margin: 0 0 1.1rem; }
    .msg-text { width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px;
      background: var(--surface2); color: var(--text); border: 1px solid var(--border-secondary);
      border-radius: 8px; padding: 0.7rem 0.85rem; font-family: 'Inter', sans-serif;
      font-size: 0.9rem; line-height: 1.5; }
    .msg-text:focus { outline: none; border-color: #4A7A99; }
    .msg-actions { display: flex; align-items: center; justify-content: center; gap: 0.8rem;
      margin-top: 0.9rem; flex-wrap: wrap; }
    .msg-send { background: #4A7A99; color: #FFFFFF; border: none; border-radius: 6px;
      padding: 0.55rem 1.2rem; font-family: 'Inter', sans-serif; font-size: 0.875rem;
      font-weight: 600; cursor: pointer; }
    .msg-send:hover { background: #558AAC; }
    .msg-send:disabled { opacity: 0.55; cursor: default; }
    /* The status line is the honest half of the failure path: .err carries a visible failure
       colour so a refused send never reads as quiet success (item 97). */
    .msg-status { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--text-muted); }
    .msg-status.err { color: #E88; }
    .msg-again { background: transparent; color: #8FBDD6; border: 1px solid rgba(143,189,214,0.4);
      border-radius: 6px; padding: 0.5rem 1.1rem; font-family: 'Inter', sans-serif;
      font-size: 0.85rem; cursor: pointer; }
    .msg-again:hover { border-color: #8FBDD6; }
    .msg-foot { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted);
      margin: 1.6rem 0 0; }
    /* The address carries the underline rather than relying on colour alone to say "link". */
    .msg-foot a { color: #8FBDD6; text-decoration: underline; text-underline-offset: 2px; }
    .msg-foot a:hover { color: var(--text); }
    .empty-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.4; }
    .empty-state p { font-size: 0.88rem; line-height: 1.6; }

    /* PROJECTS */
    .projects-toolbar { display: flex; gap: 0.75rem; margin: 1.25rem 0 0; align-items: center; flex-wrap: wrap; }
    .projects-search-wrap { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; padding: 0.5rem 0.85rem; flex: 0 0 220px; color: var(--text-muted); }
    .projects-search-wrap input { background: none; border: none; outline: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 300; width: 100%; }
    .projects-search-wrap input::placeholder { color: var(--text-muted); }
    .proj-filter-divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
    .proj-pill-wrap { position: relative; }
    .proj-pill { display: flex; align-items: center; gap: 0.4rem; background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; padding: 0.45rem 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 400; color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color 0.15s; }
    .del-add-btn { display:inline-flex; align-items:center; gap:5px; background:var(--surface); border:0.5px solid rgba(255,255,255,0.15); border-radius:4px; padding:0.5rem 0.85rem; font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); cursor:pointer; white-space:nowrap; transition:border-color 0.15s, color 0.15s; }
    .del-add-btn:hover { color:var(--text); border-color:rgba(255,255,255,0.35); }
    .proj-pill:hover { border-color: var(--text-muted); }
    .proj-pill.active { border-color: var(--brand); color: var(--brand); }
    .proj-pill-menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface2); border: 0.5px solid var(--border); border-radius:4px; padding: 0.35rem; z-index: 30; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
    .proj-pill-option { padding: 0.45rem 0.65rem; border-radius:4px; font-size: 0.78rem; color: var(--text); cursor: pointer; white-space: nowrap; }
    .proj-pill-option:hover { background: var(--surface); }
    .proj-pill-option-active { color: var(--brand); font-weight: 500; }
    .projects-list-wrap { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
    .projects-list-wrap:last-child { margin-bottom: 0; }
    .proj-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 0.5px solid var(--border); cursor: pointer; transition: background 0.15s; }
    .proj-row:last-child { border-bottom: none; }
    .proj-row:hover { background: var(--surface2); }
    .proj-row-icon { width: 38px; height: 38px; border-radius:4px; background: rgba(110,155,200,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .proj-row-name-wrap { flex: 1; min-width: 0; }
    .proj-row-name { font-size: 0.92rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .proj-row-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
    .proj-row-action-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius:4px; background: var(--brand); color: #1a1c20; font-weight: 600; white-space: nowrap; }
    .proj-row-approved-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius:4px; background: rgba(50,180,100,0.12); color: var(--approved); border: 1px solid rgba(50,180,100,0.25); white-space: nowrap; }
    .proj-row-inprogress-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius:4px; background: var(--surface2); color: var(--text-muted); border: 0.5px solid var(--border); white-space: nowrap; }
    /* Plain-text status (no pill) — needs-review in Signal Orange, else faint. */
    .proj-row-needs-review { font-size: 0.75rem; color: #F7931E; white-space: nowrap; text-align: right; display: inline-flex; align-items: center; gap: 6px; }
    .proj-needs-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F7931E; color: #1a1c20; font-size: 11px; font-weight: 700; line-height: 1; }
    .proj-row-caught-up { font-size: 0.75rem; color: rgba(255,255,255,0.25); white-space: nowrap; text-align: right; }
    /* Fixed-width columns so the header labels line up exactly with row data. */
    .proj-row-activity { width: 130px; flex-shrink: 0; font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
    /* Attention (needs-review rollup) and Status (Active/Complete pill) were one unlabeled,
       variable-width cell — "All caught up" and "Needs review 2" differ enough in length to
       shove Status/chevron around depending on content. Split into two fixed-width columns,
       each with its own header, so neither the label nor the layout drifts with content. */
    .proj-row-attention { width: 140px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
    .proj-row-status { width: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
    .proj-row-chevron { width: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; color: var(--text-muted); }
    /* All Projects redesign: Active/Complete project-level pill. "Active" reuses the settled
       video-ring blue (already an existing token, confirmed exact match, not a new colour);
       "Complete" reuses .badge-done's literal #2dc48a so it reads as the SAME green as a
       deliverable's own "Completed" pill one level down, rather than a second, nearly-identical
       green (--rd-green is #4CC38A — close enough to invite exactly that confusion). */
    .proj-status-pill { font-size:10px; font-weight:800; padding:3px 8px; border-radius:6px; letter-spacing:0.03em; white-space:nowrap; }
    .proj-status-pill.is-active   { background: rgba(var(--at-video-ring-rgb),0.12); color:var(--at-video-ring); }
    .proj-status-pill.is-complete { background: rgba(45,196,138,0.10); color:#2dc48a; }
    /* Deliverables-list search (All Projects redesign, team-only) — --rd-* tokens, matching
       the deploy's existing dark-card system rather than the older --surface/--border pair
       .projects-search-wrap (above) uses. */
    .projdel-search-wrap { margin: 0.75rem 0 1rem; }
    #projdel-search { width:100%; background:var(--rd-control); border:1px solid var(--rd-control-bd); color:var(--rd-name); font-family:'Inter',sans-serif; font-size:0.82rem; padding:0.55rem 0.75rem; border-radius:6px; outline:none; }
    #projdel-search::placeholder { color:var(--rd-placeholder); }
    #projdel-search:focus { border-color:var(--rd-card-hover-bd); }
    /* Deliverable-card redesign status pill (All Projects redesign, team-only — see
       delRedesignStatusPill). Team Review reuses --rd-violet, the existing "internal only,
       never client-visible" token (.agl-vis.is-internal uses the identical recipe). */
    .del-redesign-pill { font-size:10px; font-weight:800; padding:3px 8px; border-radius:6px; letter-spacing:0.03em; white-space:nowrap; }
    .del-redesign-pill.is-internal  { background:transparent; color:var(--rd-violet); border:0.5px solid rgba(var(--rd-violet-rgb),0.45); }
    .del-redesign-pill.is-progress  { background: var(--surface2); color: var(--text-muted); }
    .del-redesign-pill.is-review    { background: rgba(232,145,42,0.14); color:#e8912a; }
    .del-redesign-pill.is-revisions { background: rgba(226,75,74,0.14); color:#E24B4A; }
    .del-redesign-pill.is-approved  { background: rgba(45,196,138,0.10); color:#2dc48a; }
    @media (max-width: 700px) {
      .proj-row-activity { display: none; }
    }
    /* ⟦item 937⟧ ALL PROJECTS ON A PHONE (Portal-Queue 14): the rows STACK, as the other v5 phone pages do — the folder, the name (it
       wraps) and its line, then Attention and Status under them; no column header. Below the rail's own breakpoint (640px,
       navCollapseAllowed), for every audience (the five fixed columns ran off a 390px screen for the team too). Wider: the columns. */
    @media (max-width: 640px) {
      #projects-cards .proj-list-head { display: none !important; }   /* its own inline display:flex */
      #projects-cards .proj-row { display: grid; grid-template-columns: 38px auto 1fr 14px; grid-template-areas: "icon name name chev" "icon att st chev"; column-gap: 12px; row-gap: 8px; align-items: center; padding: 14px 16px; }
      #projects-cards .proj-row-icon { grid-area: icon; align-self: start; }
      #projects-cards .proj-row-name-wrap { grid-area: name; }
      #projects-cards .proj-row-name { white-space: normal; overflow-wrap: anywhere; }
      #projects-cards .proj-row-attention { grid-area: att; width: auto; justify-content: flex-start; }
      #projects-cards .proj-row-status { grid-area: st; width: auto; justify-content: flex-start; }
      #projects-cards .proj-row-chevron { grid-area: chev; width: 14px; }
    }

    /* SKELETON */
    .skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius:4px; }
    @keyframes shimmer { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
    .skeleton-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; animation: shimmer 1.4s ease-in-out infinite; }
    /* Action-page loading: staggered card pulse + loading indicator row */
    .skel-cards .skeleton-card:nth-child(1) { animation-delay: 0s; }
    .skel-cards .skeleton-card:nth-child(2) { animation-delay: 0.2s; }
    .skel-cards .skeleton-card:nth-child(3) { animation-delay: 0.4s; }
    .action-loading-row { display: flex; align-items: center; gap: 8px; padding: 2px 0 14px; }
    .ald-dots { display: inline-flex; gap: 5px; }
    .ald-dots span { width: 6px; height: 6px; border-radius: 50%; background: #FBB03B; animation: shimmer 1s ease-in-out infinite; }
    .ald-dots span:nth-child(1) { animation-delay: 0s; }
    .ald-dots span:nth-child(2) { animation-delay: 0.2s; }
    .ald-dots span:nth-child(3) { animation-delay: 0.4s; }
    .ald-text { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.25); }
    .skel-head { margin-bottom: 14px; }
    .skeleton-thumb { width: 100%; aspect-ratio: 16/9; }
    .skeleton-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
    .skeleton-line { height: 10px; }
    .skeleton-line.short { width: 40%; }
    .skeleton-line.med   { width: 70%; }
    .skeleton-line.long  { width: 90%; }

    /* MODAL */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 50; display: none; align-items: center; justify-content: center; padding: 2rem; }
    .modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal { background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; width: 100%; max-width: 760px; max-height: 95vh; overflow-y: auto; animation: slideUp 0.3s ease; }
    /* Transcribe-a-video picker. Two panes side by side rather than a drill-down: the second
       depends on the first, and keeping both visible means changing your mind about the
       deliverable costs a click instead of a back step. Stacks below 640px, where side-by-side
       leaves neither column readable. */
    .tv-modal { max-width: 720px; display: flex; flex-direction: column; overflow: hidden; }
    .tv-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 0.5px solid var(--border); }
    .tv-head h2 { margin: 0; flex: 1; font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
    .tv-x { flex-shrink: 0; width: 26px; height: 26px; background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; border-radius: 4px; }
    .tv-x:hover { color: var(--text); background: rgba(255,255,255,0.07); }
    /* Source material — a FILE LIST. Deliberately plainer than a deliverable row: no stage pill,
       no thumbnail, no revision count, because none of those mean anything for footage nobody
       reviews. Name, size, who, when, and the two things you can actually do with it. */
    .ps-list { display: flex; flex-direction: column; gap: 2px; }
    .ps-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; background: var(--surface2, rgba(255,255,255,0.03)); }
    .ps-row:hover { background: rgba(255,255,255,0.06); }
    .ps-main { flex: 1; min-width: 0; }
    .ps-name { font-size: 0.82rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ps-meta { font-size: 0.66rem; color: var(--text-muted); margin-top: 2px; }
    .ps-btn { flex-shrink: 0; padding: 4px 10px; border: 0.5px solid var(--border-strong); border-radius: 5px; background: none; color: var(--text-secondary); font-family: inherit; font-size: 0.68rem; font-weight: 600; cursor: pointer; }
    .ps-btn:hover { color: var(--text); border-color: var(--text-muted); }
    .ps-btn.ps-danger:hover { color: var(--text-danger); border-color: rgba(226,75,74,0.5); }
    .ps-empty { padding: 12px 2px; font-size: 0.76rem; line-height: 1.6; color: var(--text-muted); }
    .ps-empty-sub { font-size: 0.7rem; opacity: 0.85; }
    /* An upload in flight gets a row of its own, so a several-hundred-MB proxy shows movement
       instead of a toast and a silence indistinguishable from a hang. Every colour here is a theme
       variable, so both themes are covered without a second rule. */
    .ps-bar { height: 3px; margin-top: 6px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
    .ps-bar-fill { height: 100%; width: 0; background: var(--brand); border-radius: 2px; transition: width 0.2s linear; }
    /* A single-PUT upload reports no progress events, so it slides rather than lying about a number. */
    .ps-bar.ps-indeterminate .ps-bar-fill { width: 35%; animation: ps-slide 1.1s ease-in-out infinite; }
    @keyframes ps-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
    .ps-pct { flex-shrink: 0; font-size: 0.66rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .ps-row.ps-failed { background: rgba(226,75,74,0.08); }
    .ps-err { font-size: 0.66rem; color: var(--text-danger); margin-top: 2px; line-height: 1.4; white-space: normal; }
    /* Queue states. Every colour is a theme variable, so both themes are covered without a
       second rule — the one exception is the failed tint, which needs the danger hue at low alpha. */
    /* Transcribe-on-upload. Every colour here is a variable: the pill's hardcoded #1e1e1e is
       already a known both-themes violation elsewhere and this must not add a second. */
    .tr-dl-sep { height: 0.5px; background: var(--border); margin: 0.3rem 0; }
    /* uiChoose options. A column of full-width buttons rather than a <select>: a native select
       renders in OS chrome and ignores the dialog theme entirely. */
    .ui-dialog-choices { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.75rem 0 0.25rem; }
    .ui-dialog-choice { width: 100%; text-align: left; padding: 0.5rem 0.7rem; border: 0.5px solid var(--border-strong); border-radius: 5px; background: none; color: var(--text); font-family: inherit; font-size: 0.78rem; cursor: pointer; font-variant-numeric: tabular-nums; }
    .ui-dialog-choice:hover { border-color: var(--text-muted); background: rgba(127,127,127,0.07); }
    /* A choice carrying a thumbnail becomes a row. Rules apply ONLY when the richer
       markup is emitted (item 425's uiChoose fork), so a plain text choice is untouched. */
    .ui-dialog-choice:has(> .ui-dialog-choice-text) { display: flex; align-items: center; gap: 0.55rem; }
    .ui-dialog-choice-thumb { width: 46px; height: 26px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; background: var(--surface2); }
    .ui-dialog-choice-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    .ui-dialog-choice-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ui-dialog-choice-sub { font-size: 0.68rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    /* A pick-one list has no primary — a frame rate is just a frame rate. But where one option
       IS the action and the others are detours, the unstyled outline reads as DISABLED next to
       the filled Cancel beside it, and the escape hatch becomes the only thing that looks
       clickable. Reported as "greyed out, can't proceed" on a dialog whose buttons all worked.
       Declared AFTER :hover so the fill survives the hover rule's equal specificity. */
    .ui-dialog-choice.primary { background: var(--brand); color: #1a1c20; border-color: var(--brand); font-weight: 600; }
    .ui-dialog-choice.primary:hover { background: var(--brand); border-color: var(--brand); filter: brightness(1.06); }
    /* The backup item carries a qualifier so it is never picked by mistake. Same treatment the
       editor's export menu gives its own sub-labels. */
    .more-menu button span { display: block; font-size: 0.6rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
    /* Present as a plain reading, not a control — it is a fact about the file. The ask button
       beside it uses the ordinary .ps-btn so it reads as the action it is. */
    .ps-fps { font-size: 0.66rem; color: var(--text-muted); font-variant-numeric: tabular-nums; padding-right: 0.5rem; white-space: nowrap; }
    .ps-fps-ask { color: var(--text-secondary); }
    /* A variable-rate file is not wrong, it is qualified — so this reads as a caution rather than
       an error. Theme variable, no literal colour. */
    .ps-fps-vfr { color: var(--text-secondary); }
    .ps-tbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 0 0.6rem; border-bottom: 0.5px solid var(--border); margin-bottom: 0.5rem; }
    .ps-tbar-main { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.78rem; color: var(--text); }
    .ps-tbar-main input { cursor: pointer; margin: 0; }
    /* Pushed to the far end and allowed to wrap under on a narrow panel rather than squeezing the
       label — the label says what the control does and must stay readable. */
    .ps-tbar-meta { margin-left: auto; font-size: 0.7rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    /* Transcribing borrows the recording treatment — same "server is working" meaning, and the
       word in the row is what distinguishes them. */
    .ps-row.ps-transcribing .ps-meta { color: var(--text-muted); }
    /* A transcribe failure is a SOFTER failure: the file is safely stored and only the transcript
       is missing. Rendering it in the same alarm colour as a lost upload is what sends someone
       re-uploading something that is already there. */
    .ps-row.ps-failed-soft .ps-err { color: var(--text-muted); }
    .ps-tick { display: flex; align-items: center; padding-right: 0.6rem; }
    .ps-tick input { cursor: pointer; margin: 0; }
    /* Locked, not hidden: the decision it recorded is still worth seeing after it has been acted on. */
    .ps-tick-locked { opacity: 0.45; }
    .ps-tick-locked input { cursor: default; }
    /* The populated-state drop affordance. Deliberately much shorter than .ps-empty: one line of
       text, no sub-copy, no vertical padding beyond what the text needs. It says the section takes
       drops without claiming the space of something that is teaching you about it. */
    .ps-strip { margin-top: 0.5rem; padding: 0.5rem 0.75rem; border: 1px dashed var(--border-strong); border-radius: 6px; text-align: center; cursor: pointer; transition: border-color 0.12s, color 0.12s; }
    .ps-strip:hover { border-color: var(--text-muted); }
    .ps-strip .ps-drop-label { font-size: 0.68rem; color: var(--text-muted); }
    .ps-strip:hover .ps-drop-label { color: var(--text-secondary); }
    .ps-row.ps-queued { opacity: 0.62; }
    .ps-row.ps-queued .ps-name { font-weight: 500; }
    .ps-row.ps-recording .ps-bar-fill { opacity: 0.75; animation: ps-pulse 1.2s ease-in-out infinite; }
    @keyframes ps-pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }
    .ps-row.ps-done .ps-pct { color: var(--approved); font-size: 0.8rem; }
    /* The pill's spinner is scoped to .upload-pill, so the row needs its own. */
    .ps-row .up-spin { display:inline-block; width:12px; height:12px; border:2px solid var(--border-strong); border-top-color:var(--brand); border-radius:50%; animation:up-spin 0.7s linear infinite; }
    .ps-summary { margin-left: 10px; font-size: 0.66rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
    /* Drop target. Theme variables throughout, so both themes come free — the two tints are the
       brand hue at low alpha, which reads on either background. */
    .ps-empty.ps-droptarget { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 18px 16px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
    .ps-empty.ps-droptarget:hover { border-color: var(--text-muted); }
    .ps-drop-label { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
    /* The SECTION outlines, so dropping onto a populated list cannot read as replacing it. */
    #proj-source-section.ps-dragging { outline: 1px dashed var(--brand); outline-offset: 6px; border-radius: 8px; }
    #proj-source-section.ps-dragging .ps-empty.ps-droptarget { border-color: var(--brand); background: rgba(247,147,30,0.07); }
    /* Existing rows recede so the insertion marker is what the eye lands on. */
    #proj-source-section.ps-dragging #proj-source-list .ps-row { opacity: 0.4; }
    .ps-marker { margin: 2px 0 6px; padding: 9px 12px; border: 1px dashed var(--brand); border-radius: 6px; background: rgba(247,147,30,0.07); font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-align: center; }
    /* Sits in the section heading, which is a click target for collapse — hence the
       stopPropagation on it. */
    .ps-add { margin-left: 10px; padding: 2px 9px; border: 0.5px solid var(--border-strong); border-radius: 5px; background: none; color: var(--text-secondary); font-family: inherit; font-size: 0.66rem; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
    /* THE PRODUCTION ZONE'S PRIMARY — filled SLATE, not gold.
       The brief asked for "Add footage — gold fill". That collides head-on with the rule one
       item above it: no gold below the divider, because gold means "a decision is wanted from
       you" and nothing in the workshop is a decision. Both cannot hold, so this takes the
       emphasis the brief wanted and the hue the rule requires — filled, obviously primary,
       unmistakably not a decision. One filled action per zone still holds; it is simply the
       zone's own colour. */
    .ps-add.ps-primary { background: #4A7A99; border-color: #4A7A99; color: #10202B; font-weight: 700; }
    .ps-add.ps-primary:hover { filter: brightness(1.08); }
    /* Everything else in the zone is quiet slate — the per-row Preview / Delete / Check /
       Transcript, and the release form. They are available, not urged. */
    .proj-prod-actions .proj-select-btn { background: none; border: 0.5px solid var(--border-strong); color: var(--text-secondary); }
    .proj-prod-actions .proj-select-btn:hover { border-color: #4A7A99; color: var(--text); }
    .ps-add:hover { color: var(--text); border-color: var(--text-muted); }
    .ps-pv { max-width: 880px; padding: 0; overflow: hidden; }
    .ps-pv-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 0.78rem; font-weight: 600; color: var(--text); }
    .ps-pv-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tv-filter { padding: 10px 16px; border-bottom: 0.5px solid var(--border); }
    .tv-q { width: 100%; box-sizing: border-box; padding: 7px 10px; background: var(--rv-elevated, rgba(255,255,255,0.05)); border: 0.5px solid var(--border-strong); border-radius: 6px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.76rem; outline: none; }
    .tv-q::placeholder { color: var(--text-muted); }
    .tv-q:focus { border-color: var(--text-muted); }
    /* Project heading. Sticky so the group a row belongs to stays visible while scrolling a
       long list — the whole point of grouping is knowing which project you are looking at. */
    .tv-group { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 8px 10px 4px; font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
    .tv-group:first-child { padding-top: 2px; }
    .tv-body { display: flex; min-height: 0; }
    .tv-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
    .tv-col + .tv-col { border-left: 0.5px solid var(--border); }
    .tv-col-h { padding: 12px 16px 8px; font-family: 'Montserrat', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
    .tv-list { flex: 1; overflow-y: auto; max-height: 46vh; padding: 0 8px 12px; }
    .tv-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 9px 10px; margin-bottom: 2px; background: none; border: none; border-radius: 6px; cursor: pointer; font-family: inherit; }
    .tv-row:hover:not(.disabled) { background: rgba(255,255,255,0.06); }
    .tv-row.sel { background: rgba(255,255,255,0.09); }
    /* Encoding rows are SHOWN and disabled, not hidden — a video visible in the portal that
       silently vanishes from this list reads as a bug, and "still encoding" is information. */
    .tv-row.disabled { cursor: default; opacity: 0.5; }
    .tv-row-name { font-size: 0.78rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    .tv-row-sub { font-size: 0.62rem; color: var(--text-muted); }
    .tv-badge { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); border: 0.5px solid var(--border-strong); border-radius: 3px; padding: 1px 5px; }
    .tv-empty { padding: 14px 10px; font-size: 0.74rem; line-height: 1.6; color: var(--text-muted); }
    .tv-empty-sub { font-size: 0.68rem; opacity: 0.8; }
    @media (max-width: 640px) { .tv-body { flex-direction: column; } .tv-col + .tv-col { border-left: none; border-top: 0.5px solid var(--border); } .tv-list { max-height: 30vh; } }
    @keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .modal-header { padding: 1.5rem 1.75rem 1.25rem; border-bottom: 0.5px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
    .modal-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); }
    .modal-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
    .modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: color 0.2s; flex-shrink: 0; }
    .modal-close:hover { color: var(--text); }
    .modal-context { margin: 1.25rem 1.75rem 0; padding: 1rem 1.1rem; background: var(--surface2); border-radius:4px; border-left: 3px solid var(--brand); }
    .modal-context-name { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
    .modal-context-group { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; letter-spacing: 0.02em; }
    .modal-body { padding: 1.25rem 1.75rem 0.5rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
    .form-row-date-title { display: grid; grid-template-columns: 150px 130px 1fr; gap: 0 1.25rem; align-items: start; }
    #modal-posting-title { resize: none; min-height: 0; }
    @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-row-date-title { grid-template-columns: 1fr; } }
    label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
    .readonly-field { padding: 0.65rem 0.85rem; background: var(--bg); border: 0.5px solid var(--border); border-radius:4px; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
    .readonly-badge { font-size: 0.62rem; background: var(--surface2); color: var(--text-muted); padding: 0.15rem 0.5rem; border-radius: 4px; letter-spacing: 0.05em; flex-shrink: 0; }
    input[type="text"], input[type="password"], input[type="date"], input[type="time"], textarea { width: 100%; background: var(--bg); border: 0.5px solid var(--border); border-radius:4px; padding: 0.65rem 0.85rem; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 300; outline: none; transition: border-color 0.2s; }
    input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, input[type="time"]:focus, textarea:focus { border-color: var(--brand); }
    input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.5); }
    textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
    input:disabled, textarea:disabled { opacity: 0.75; cursor: default; resize: none; border-color: var(--border); }
    .smartdoc-view { width: 100%; background: var(--bg); border: 0.5px solid var(--border); border-radius:4px; padding: 0.75rem 0.95rem; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 300; line-height: 1.65; min-height: 220px; max-height: 480px; overflow-y: auto; }
    .smartdoc-view.editable { border-radius: 0 0 8px 8px; border-top: none; outline: none; transition: border-color 0.2s; }
    .smartdoc-view.editable:focus { border-color: var(--brand); }
    .richtext-toolbar { display: flex; gap: 0.25rem; background: var(--surface2); border: 0.5px solid var(--border); border-bottom: none; border-radius:4px 8px 0 0; padding: 0.4rem; }
    .rt-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; border-radius:4px; background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
    .rt-btn:hover { background: var(--surface); color: var(--text); }
    .rt-btn.active { background: var(--brand); color: #0A0A0A; }
    /* ⚠️ RULING (item 855b, Jeffrey, Oct 11): THE NO-VALUE PLACEHOLDER IS AN EN DASH (–)
       ON EVERY CLIENT AND GUEST SURFACE. A bare dash meaning "no value" is the mark a
       table uses for an empty cell, not a sentence, so it stays a glyph: it is NOT
       reworded and NOT blanked (a blank cell reads as broken). Clients and guests never
       see an em dash, so on their surfaces it is "–" (this rule, the page headers' and
       review header's loading slots, formatLastActivity, caRenderGrouped, the speaker
       fallback, …). Team-only surfaces (the Status page, Story Builder, the email log,
       the team list, the close-out select, …) may keep "—".
       checks/em-dash-copy.mjs §3 pins both populations; checks/client-em-dash-855.mjs
       refuses an em-dash placeholder anywhere not proved team-only. */
    .smartdoc-view:empty::before { content: '–'; color: var(--text-muted); }
    .smartdoc-view p { margin: 0 0 0.75rem; }
    .smartdoc-view p:last-child { margin-bottom: 0; }
    .smartdoc-view a { color: var(--review); text-decoration: underline; }
    .smartdoc-view strong, .smartdoc-view b { font-weight: 600; color: var(--text); }
    .smartdoc-view ul, .smartdoc-view ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
    .smartdoc-view h1, .smartdoc-view h2, .smartdoc-view h3 { font-family: 'Playfair Display', serif; margin: 0 0 0.5rem; color: var(--text); }
    .frameio-btn { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius:4px; background: var(--review-bg); color: var(--review); border: 1px solid rgba(110,155,200,0.2); text-decoration: none; transition: all 0.2s; margin: 0 1.75rem 1.25rem; width: calc(100% - 3.5rem); justify-content: center; }
    .frameio-btn:hover { background: var(--review); color: #fff; }
    .frameio-btn.unavailable { background: var(--surface2); color: var(--text-muted); border-color: var(--border); cursor: default; pointer-events: none; }
    .modal-footer { padding: 1.25rem 1.75rem; border-top: 0.5px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }
    .btn-cancel { background: none; border: 0.5px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.6rem 1.25rem; border-radius:4px; cursor: pointer; transition: all 0.2s; }
    .btn-cancel:hover { color: var(--text); border-color: var(--text-muted); }
    .btn-submit { background: var(--brand); border: none; color: #0A0A0A; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.6rem 1.5rem; border-radius:4px; cursor: pointer; transition: all 0.2s; }
    .btn-submit:hover { background: var(--brand-dark); }
    .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

    /* PROJECT DETAIL */
    .panel-meta { padding: 1.25rem 2rem; border-bottom: 0.5px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem; }
    .panel-meta-row { display: flex; align-items: center; gap: 1rem; }
    .panel-meta-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; width: 180px; flex-shrink: 0; }
    .panel-meta-value { font-size: 0.85rem; color: var(--text); }
    .panel-meta-value a { color: var(--review); text-decoration: none; }
    .panel-meta-value a:hover { text-decoration: underline; }

    /* PROJECT DETAIL PAGE */
    .copy-link-btn { background: none; border: 0.5px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em; padding: 0.4rem 0.8rem; border-radius:4px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem; }
    .copy-link-btn:hover { background: var(--surface2); }
    /* ── Flat page header system (no card / border / background) ──────────── */
    .page-head { padding: 4px 0 16px; border-bottom: 0.5px solid rgba(255,255,255,0.08); margin-bottom: 18px; }
    .page-head-eyebrow { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: #FBB03B; margin-bottom: 7px; }
    .page-head-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 26px; color: var(--text); line-height: 1.2; letter-spacing: 0.01em; }
    .page-head-sub { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
    .page-head-split { display: flex; align-items: center; gap: 24px; }
    .page-head-split > .page-head-titlewrap { flex: 1; min-width: 0; }
    .page-head-divider { width: 1px; height: 44px; background: var(--border-tertiary); flex-shrink: 0; }
    .page-head-stats { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
    .page-head-stat { text-align: center; }
    .page-head-stat-num { font-size: 20px; font-weight: 500; color: var(--text); font-family: 'Manrope', sans-serif; line-height: 1; }
    .page-head-stat-num.approved { color: var(--approved); }
    .page-head-stat-num.pending { color: #FF9A3D; }
    .page-head-stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 5px; }
    /* (Old card-style project/deliverable header classes removed — replaced by
       the flat .page-head system above.) */
    @media (max-width: 700px) {
      .proj-stats { width: 100%; justify-content: space-between; margin-left: 0; margin-top: 1rem; padding-top: 1rem; border-top: 0.5px solid var(--border); }
      .proj-stat { padding: 0 0.5rem; }
    }
    .panel-section-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); padding: 1.5rem 2rem 0.75rem; }
    .panel-section-title.collapsible { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; }
    #proj-needs-attention:empty + * { margin-top: 0; }
    .panel-section-title.section-title-approved { color: var(--approved); }
    .panel-section-title.collapsible .section-chevron { transition: transform 0.2s; flex-shrink: 0; }
    .panel-section-title.collapsible.collapsed .section-chevron { transform: rotate(-90deg); }
    .collapsible-content { overflow: hidden; }
    .collapsible-content.collapsed { display: none; }
    /* Card wrapper — groups the column headers + rows into one unit, matching .projects-list-wrap */
    .deliverable-list { padding: 0; display: flex; flex-direction: column; gap: 0; overflow: visible; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem; }
    .deliverable-list:empty { display: none; }
    .deliverable-row { background: none; border: none; border-radius: 0; border-bottom: 0.5px solid var(--border); transition: background 0.15s; }
    .deliverable-row:last-child { border-bottom: none; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
    .deliverable-row:hover { background: var(--surface2); }
    .deliverable-row.needs-attention, .deliverable-row.is-approved { background: none; }
    .deliverable-row.needs-attention:hover, .deliverable-row.is-approved:hover { background: var(--surface2); }
    /* Status pill — mirrors the projects list badges */
    .del-status-pill { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }

    /* ⚠️ THE CLIENT'S BADGES ARE SCALED UP — A DELIBERATE DEVIATION FROM THE DESIGN (item 422).
       The rule above is the design's own geometry: item 417 set 8px/700, 5.6/9.6 padding, 2px
       radius and a 9px glyph to match design/client-redesign/Client_Work_Page_dc.html, and item
       419 separately confirmed the "Show approved" control already matched it to the pixel. So
       the values above are CORRECT AGAINST THEIR SOURCE and this is not a fix to a mistake —
       the design genuinely runs small in this area, and Jeffrey ruled it too small to read
       comfortably after looking at it rendered at a normal desktop width. The design was drawn
       narrower than the portal renders.
       ⚠️ ONE SCALE FACTOR, NOT FOUR LITERALS. Every dimension is a coefficient of --cbs, so the
       glyph, label, padding and radius cannot drift apart one property at a time (item 355's
       rule, which is why a decoupled dimension is its own break case). letter-spacing needs no
       coefficient — it is declared in `em` above, so it scales for free.
       ⚠️ AND (0,2,1) BEATS `.tr-card-badge` (0,1,0), WHICH IS DELIBERATE: a client's transcript
       badges carry BOTH classes, so before this they resolved to a DIFFERENT box (10px/600 Inter,
       2/7 padding, 4px radius, 17px tall) from every other client badge (8px/700 Montserrat,
       5.6/9.6, 2px, 21.7px tall) — two geometries on one screen, decided by source order alone.
       This unifies the SIZE; the residual family/weight difference is left alone and reported,
       item 422 is a size change and a typeface is a design decision nobody has made. */
    body:not(.is-team) .del-status-pill { --cbs: 1.25; font-size: calc(8px * var(--cbs)); padding: calc(5.6px * var(--cbs)) calc(9.6px * var(--cbs)); border-radius: calc(2px * var(--cbs)); }
    .del-status-pill.approved      { background: rgba(50,180,100,0.12); color: var(--approved); }

    /* Client-facing "Action Required" = soft red pill. Team override keeps "Needs Review" blue. */
    .del-status-pill.needs-review  { background: rgba(247,147,30,0.14); color: #FBB03B; }
    body.is-team .del-status-pill.needs-review { background: var(--review-bg); color: var(--review); }
    .del-status-pill.internal      { background: var(--internal-bg); color: var(--internal); border: 1px solid var(--internal-border); }
    .del-status-pill.muted         { background: var(--surface2); color: var(--text-muted); }
    .del-status-pill.archived      { background: var(--surface2); color: var(--text-muted); border: 0.5px solid var(--border); }
    /* Asset Stage badges — one per SmartSuite Asset Stage option */
    .del-status-pill.stage-pending     { background: var(--surface2); color: var(--text-muted); }
    /* In Progress is a QUIET state — nothing is being asked of anyone — so it takes the same
       neutral treatment as stage-pending and stage-deleted rather than a warm one. The warm end
       is reserved for Revisions and Needs notifying, slate-blue for Shared. Matches the client
       treatment `.del-status-pill.in-progress` already uses on deliverable rows below. */
    .del-status-pill.stage-inprogress  { background: var(--surface2); color: var(--text-muted); }  /* quiet — see stage-pending */
    /* ⚠️ TURNED — VIOLET, LITERAL HEX (Phase B ruling, item 443), matching every other Internal
       indicator recoloured tonight (grid marker, stage badge, list visibility chip, card
       border). Recolours THIS CLASS directly — `--internal-badge-bg`/`--internal-badge-text`
       are left completely untouched, because `buReviewBadge()` (the unrelated upload-modal
       Team-Review/Client-Review preview badge) reads those two variables directly and would
       have silently gone violet too if the fix had been made at the variable instead of the
       class. Same "ink is never the variable" discipline `client-badge-treatments.mjs` already
       enforces for `badge-internal` — literal hex here for the identical reason.
       ⚠️ SOLID, NOT `badge-internal`'s TRANSLUCENT TINT — a measured choice, not a style
       preference. This pill renders inside `.ag-status-overlay` on the transcript's OWN grid
       card (assetStatusPill's output is always wrapped there), whose fixed fill is
       `#3D2F47` (`ASSET_TYPE_PALETTE.transcript`) — unlike `badge-internal`, which floats over
       an actual, unpredictable VIDEO THUMBNAIL and needs a computed dark backing for exactly
       that reason. Copying `badge-internal`'s literal recipe here —
       `rgba(176,140,245,0.14)` background at `#b08cf5` text — was tried first and computed
       against that fixed background at 3.72:1, BELOW the 4.5:1 floor for normal text. A solid,
       opaque fill sidesteps the problem the same way this class's ORIGINAL pale-yellow
       declaration always had: opaque colour needs no backing calculation because nothing behind
       it can ever show through.
       ⚠️ `#1a1200` INK, NOT THE ORIGINAL `#4A3418` — the original dark-brown ink measures
       4.41:1 against the new violet, narrowly BELOW 4.5:1. `#1a1200` is not a fresh invention:
       it is `buReviewBadge()`'s OWN existing "Client Review" ink (paired there with a different
       solid warm fill, `#e8912a`) — reused here rather than inventing a fourth dark ink for a
       fourth solid badge. Measures 7.0:1 against `#b08cf5`, comfortably clear. */
    .del-status-pill.stage-internal    { background:#b08cf5; color:#1a1200; }
    /* Shared — the transcript's AUDIENCE, the benign counterpart to stage-internal. Quiet on
       purpose: Internal is the exception worth flagging, Shared is the ordinary state, and
       item 69's rule is that only the actionable state carries the filled treatment. Slate
       rather than green — green is Approved on this very surface and Shared is not an
       approval. Same size, weight and radius as its sibling; only the hue differs. */
    .del-status-pill.stage-shared      { background: rgba(74,122,153,0.16); color: #8FBDD6; }
    .del-status-pill.stage-review      { background: rgba(247,147,30,0.14); color: #FBB03B; }      /* Needs Review (amber) */
    .del-status-pill.stage-processing  { background: rgba(110,155,200,0.14); color: #9bb0c8; }     /* Processing (blue) */
    .del-status-pill.stage-processing-failed { background: rgba(var(--st-quiet-rgb),0.14); color: var(--st-quiet); } /* Processing did not finish (neutral) */
    .grid-poll-note { font-size: 12px; color: var(--st-quiet); margin: 0 0 10px; }             /* grid poll gave up — slate, not gold */
    .del-status-pill.stage-orphan      { background: rgba(226,75,74,0.16); color: #E24B4A; }       /* Incomplete upload (red) */
    .del-status-pill.stage-revisions   { background: rgba(232,52,42,0.12); color: #FF7A6E; }         /* red */
    .del-status-pill.stage-approved    { background: rgba(50,180,100,0.12); color: var(--approved); }/* green */
    .del-status-pill.stage-final       { background: rgba(160,120,235,0.18); color: #B79CF2; }       /* purple */
    /* Deep blue tint. Was rgba(74,122,153,0.14) on #8fbdd6 — a wash that read as grey against a
       dark video thumbnail, where this badge does most of its work, while every other badge on
       the page is coloured. Still informational rather than a pipeline stage (item 69's
       vocabulary rule stands); it is now legible enough to be read as such.
       Size, padding, letter-spacing and position are inherited from .del-status-pill and are
       deliberately untouched — only the three colour values change. */
    .del-status-pill.stage-source      { background:#0C447C; border:1px solid #378ADD; color:#B5D4F4; }
    .del-status-pill.stage-deleted     { background: var(--surface2); color: var(--text-muted); }    /* grey */
    /* In Progress: grey for clients; team gets the light orange pill (distinct in hue
       from the amber/yellow .del-upload-btn, so the two don't read alike). */
    .del-status-pill.in-progress         { background: var(--surface2); color: var(--text-muted); }
    body.is-team .del-status-pill.in-progress { background: rgba(255,150,60,0.16); color: #FF9A3D; }
    .deliverable-row .proj-row-chevron { display: flex; }
    .deliverable-check-circle { width: 20px; height: 20px; border-radius: 50%; background: var(--approved); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .deliverable-name.is-muted { color: var(--text-muted); }
    .btn-watch { background: var(--review-bg); border: 1px solid rgba(110,155,200,0.2); color: var(--review); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-watch:hover { background: rgba(110,155,200,0.22); }
    .btn-more-menu-wrap { position: relative; }
    .btn-more { background: var(--surface2); border: 0.5px solid var(--border); color: var(--text-muted); padding: 0.45rem 0.6rem; border-radius:4px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; }
    .btn-more:hover { background: var(--border); }
    .more-menu { position: absolute; top: calc(100% + 4px); right: 0; background: var(--surface2); border: 0.5px solid var(--border); border-radius:4px; padding: 0.35rem; z-index: 30; display: none; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
    /* ⚠️ THE LIFT IS SCOPED TO `.open`, WHICH IS WHAT MAKES IT SAFE — the same shape as item
       107's `body.rv-cover-up .topbar`. A menu is transient and explicitly summoned; a persistent
       nav should not outrank it, so 60 clears the sidebar's 50. It deliberately stays BELOW
       everything a menu must not cover: #loading-screen 100, #guest-gate / .tr-dl-menu 120,
       .toast 200, the overlays at 300–340, .ui-dialog-overlay 400. A permanent lift would raise a
       CLOSED menu's stacking context for no reason; scoped to .open it can only be up while
       someone is looking at it. */
    .more-menu.open { display: flex; flex-direction: column; gap: 0.15rem; z-index: 60; }
    .more-menu button { background: none; border: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 300; padding: 0.5rem 0.65rem; border-radius:4px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s; }
    .more-menu button:hover { background: var(--surface); }
    .more-menu button.approved-state { color: var(--brand); }
    .more-menu button.is-internal { color: var(--internal); }
    .more-menu button.is-enabled { color: var(--approved); }
    .deliverable-row-main { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
    /* ── View toggle + column headers ── */
    .del-view-toolbar { display:flex; align-items:center; justify-content:space-between; padding:10px 0 6px; margin-bottom:0; }
    .del-view-toggle { display:flex; gap:2px; background:var(--surface2); border-radius:4px; padding:3px; }
    .del-tog { background:none; border:none; color:var(--text-muted); padding:5px 8px; border-radius:4px; cursor:pointer; transition:all .15s; }
    /* ⚠️ NEUTRAL, AND CHANGED FOR BOTH SURFACES IN ONE RULE. It was Signal Orange
       (rgba(247,147,30,·)) — a warm fill on a VIEW PREFERENCE, which is neither a decision
       (item 66's gold) nor an unsaved state (item 69's Signal Orange). It read as competing with
       the scope filter beside it on the Active page, and the same argument applies on the
       deliverable page, so this is one rule rather than a per-surface override — which is exactly
       what item 74 spent a pass removing. Item 220. */
    .del-tog.active { background:rgba(255,255,255,0.09); color:var(--text); box-shadow:none; }
    /* Deliverables list grid — client: icon | name | status | action.
       Team adds an UPLOAD column: icon | name | status | upload | action. */
    .del-col-heads { display:none; grid-template-columns:36px 1fr 220px 80px; gap:12px; padding:10px 1.25rem; border-bottom:0.5px solid var(--border); }
    .del-list-mode .del-col-heads { display:grid; }
    /* Amber/"pop" Upload button — parallels the green Approved badge. */
    .deliverable-row-icon { width:36px; height:36px; border-radius:4px; background:rgba(110,155,200,0.15); color:var(--review); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    /* Asset list-row type icons — match the email's icon-box treatment (values pulled
       from buildDigestEmail): tinted fill + 2px colored border + matching icon color,
       per asset type. Card-grid type-tag badges are a separate pattern and unchanged. */
    .asset-type-icon { border:2px solid transparent; border-radius:8px; }
    /* The five .dri-* colour rules that were here are gone. They were a fourth copy of the
       asset-type palette, in CSS, where no JS table could reach them — and they had drifted
       (image #F0B05C, doc #C084FC). The single call site now sets background/border/color
       inline from ASSET_TYPE_PALETTE, which is what taThumb already did. Structure only
       here; colour comes from the table. */
    .del-col-head { color:var(--text-muted); font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
    .del-col-head:last-child { text-align:right; }
    /* ── Asset grid (primary / secondary card system) ─────────────────────── */
    /* 4-column grid: primary (video) spans 2, secondary spans 1, so a row is
       always 2 primaries OR 1 primary + 2 secondaries — filling the full width
       at a ~2:1 primary:secondary ratio. Cards stretch to the row height (grid
       default), bodies are a fixed height, and the secondary thumb flex-fills
       the remainder so its height matches the primary's. */
    /* §2.1 — four equal tracks, 16px gutter, rows sized 1fr so every cell in a row resolves to
       the same height and the bottom edge of the last small card lands on the video's.
       ⚠️ grid-auto-flow:dense IS GONE, and it was doing active harm rather than being merely
       unnecessary. Dense backfills gaps by pulling LATER cards into EARLIER holes, so what you
       see is not source order — and this grid has drag-to-reorder (agDragStart/agDrop) plus
       skelRememberShape recording the order for the next skeleton. Dense silently fought both.
       ⚠️ --ag-body-h IS GONE with it: a fixed 7rem footer was doing the row-equalising job that
       grid-auto-rows:1fr now does properly. See .ag-body. */
    /* ⚠️ THREE TRACKS, not four (pass 7). With every preview at 16:9 the track count is what
       decides how large the hero reads: at 4 tracks the primary was 494px, at 3 it is 664px.
       grid-auto-rows:1fr is KEPT — it still equalises rows that hold only secondaries.
       ⚠️ BUT NOTE WHAT IT NO LONGER DOES: with the closure condition satisfied nothing needs to
       stretch, so `align-items:stretch` has stopped being load-bearing and has become a hazard.
       If the two footers ever drift apart, stretch will inflate the shorter card and render the
       difference as flat card background rather than going ragged — silently. That is exactly
       items 113 and 114, and it is why the guard asserts the CONDITION and not a pixel. */
    .asset-grid { display:grid; grid-template-columns:repeat(3, 1fr); grid-auto-rows:1fr; gap:16px; padding:16px 0; align-items:stretch; }
    .action-group { margin-bottom:26px; }
    /* "By type" view still uses .action-group-head (single uppercase type label). */
    .action-group-head { display:flex; align-items:baseline; gap:10px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.5); padding:0 0 10px; border-bottom:0.5px solid var(--border); }
    /* "By deliverable" view: 3-line header (eyebrow / title / subtitle). */
    .ag-group-head { padding:0 0 12px; border-bottom:0.5px solid var(--border); display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .ag-head-main { min-width:0; }
    .ag-head-add { align-self:center; flex-shrink:0; }
    .ag-head-eyebrow { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; color:#FBB03B; text-transform:uppercase; letter-spacing:0.1em; }
    .ag-head-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; color:#fff; margin-top:4px; line-height:1.25; }
    .ag-head-sub { font-family:'Inter',sans-serif; font-weight:400; font-size:11px; color:rgba(255,255,255,0.3); margin-top:3px; }
    .action-group .asset-grid { padding-top:14px; }
    /* Action page "By deliverable / By type" segmented toggle (title row). */
    .action-view-toggle { margin-left:auto; display:inline-flex; gap:2px; background:var(--surface2); border-radius:4px; padding:3px; align-self:center; }
    .avt-btn { background:none; border:none; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:0.75rem; padding:5px 12px; cursor:pointer; transition:all .15s; white-space:nowrap; }
    .avt-btn:hover { color:var(--text); }
    .avt-btn.active { background:rgba(247,147,30,0.1); color:#F7931E; box-shadow:inset 0 0 0 0.5px rgba(247,147,30,0.25); }

    /* ══ SEGMENTED CONTROLS — change request §3, ONE treatment for both controls ═════════════
       ⚠️ PLACEMENT IS LOAD-BEARING. `.avt-btn` above declares its own font/padding/active fill
       at the same specificity as `.seg-btn`, so SOURCE ORDER is what makes these win. The old
       declarations are deliberately left in place rather than deleted: `.avt-btn` is still the
       JS hook renderActionView toggles, and stripping its visuals would leave a class that
       looks live and paints nothing. DO NOT MOVE THIS BLOCK UP.
       §3: "Both the filter and the toggle use the identical treatment. Do not introduce a
       second style." */
    .seg-track { display:flex; gap:4px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:4px; padding:3px; flex:none; }
    /* ⚠️ ONE SHAPE, TWO FILLS. Both states declare the SAME properties and differ only in
       `background-color` and `color` — padding, radius and border are declared once here and
       never overridden on `.active`, so the segment cannot change geometry on selection. That is
       what replaces §3's equal-width mechanism; see the note below `.action-view-toggle .seg-btn`. */
    .seg-btn { font-family:inherit; font-size:11.5px; font-weight:600; padding:6px 12px; border-radius:4px; white-space:nowrap; background-color:transparent; border:none; box-shadow:none; cursor:pointer; color:rgba(255,255,255,.5); transition:none; }
    .seg-btn:hover { color:rgba(255,255,255,.75); }
    /* ⚠️ VARIATION D. GOLD HERE IS A KNOWING EXCEPTION TO ITEM 66, AND THE SECOND ONE.
       #FBB03B is the reserved DECISION colour; a filter is not a decision. The first exception is
       the play triangle (item 145); this is the second, taken deliberately rather than by
       oversight so a palette sweep does not "fix" it. ⚠️ IF A THIRD ARRIVES, THE RULE WANTS
       RE-EXAMINING RATHER THAN ANOTHER CARVE-OUT — two exceptions is a rule with edges, three is
       a rule that has stopped describing the system. */
    /* ⚠️ NO BORDER ON THE ACTIVE SEGMENT — ONE FRAME, NOT TWO. The 1px inset amber ring that used
       to live here drew a second frame inside the track's own, and the fill alone is a stronger
       signal than a fill wrapped in an outline. `box-shadow:none` is declared rather than merely
       omitted: `.avt-btn.active` above declares its own inset ring at equal specificity and
       EARLIER in source order, so an omission here would hand that ring back to the By
       deliverable / By type buttons (hidden behind item 165's flag today, which is exactly how it
       would go unnoticed). Item 148's rule — never leave a rule that is right about a state
       nothing can reach. */
    .seg-btn.active { background-color:rgba(251,176,59,.16); color:#FBB03B; box-shadow:none; }
    .action-view-toggle .seg-btn { padding:6px 11px; }   /* §3's Grid/List variant */
    /* ⚠️ `.seg-count` AND `.ca-seg-fit` ARE GONE WITH THE SEGMENTS THAT CARRIED THEM (item 222).
       Their reasoning is worth keeping because the shapes they solved will come back if a counted
       segmented control ever does:
         · counts showed on BOTH segments, active or not — hiding the inactive one made the
           outstanding number vanish the moment someone switched to All, which is exactly when they
           would want it (item 168);
         · §3's equal width was WITHDRAWN and replaced by identical padding/radius/border on
           `.seg-btn` and `.seg-btn.active`, because `flex:1 1 0` sized the track to the SUM of the
           two contents rather than twice the widest, and the count rendered 24.8px outside its own
           segment and 20.9px inside its neighbour's (item 170).
       The last two segments on the client's Active page were the per-deliverable filter; it is now
       a plain count chip and one page-level text link. `.seg-btn` itself SURVIVES — the By
       deliverable / By type toggle still wears it (behind item 165's flag), which is why its rules
       are not deleted with these two. */

    /* ══ PAGE HEADER — §1 ════════════════════════════════════════════════════════════════════ */
    .ca-pagehead { border-bottom:1px solid rgba(255,255,255,.09); padding-bottom:18px; }
    .ca-head-row { display:flex; align-items:flex-end; justify-content:space-between; gap:16px 20px; flex-wrap:wrap; }
    /* ⚠️ BOTH PROPERTIES REQUIRED — see the note at the markup. min-width:0 is what actually
       lets it shrink; flex:1 1 220px alone leaves min-width:auto and the h2 wraps. */
    .ca-head-main { flex:1 1 220px; min-width:0; }
    .ca-eyebrow:empty { display:none; }
    .ca-eyebrow { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.14em; color:rgba(255,255,255,.4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ca-pagehead .section-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:24px; letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ca-pagehead .section-desc { font-size:12.5px; font-weight:400; color:rgba(255,255,255,.5); margin-top:6px; }
    /* ⚠️ THE COUNT IS THE ONE GOLD IN THIS HEADER, AND IT IS NOT A CONTROL. Item 66 reserves
       #FBB03B for a decision or the asking of one, and this states how many decisions are waiting
       — the ask itself, in the wider reading item 66 was restated to. Every CONTROL on this page
       is neutral for the same rule, which is why the peek link below is grey. */
    .ca-head-count { color:#FBB03B; }
    /* ⚠️ A LINK, NOT A SWITCH, AND THE SHAPE IS THE ARGUMENT. A switch implies a persistent
       setting; this is a temporary peek at work already done, and it must be able to DISAPPEAR
       cleanly when there is nothing to reveal — which a switch cannot do without leaving a gap
       where a setting used to be. A <button>, not a bare <a>: it changes what is on the page and
       navigates nothing, so an href would promise a destination it does not have (the same ruling
       .ca-empty-door carried before it went with the scope it flipped).
       ⚠️ NEUTRAL GREY. It is a VIEW control and this page carries real Approve buttons; the same
       colour on both makes a filter compete with a decision. */
    .ca-peek-link { background:none; border:none; padding:0 0 2px; font-family:inherit; font-size:12.5px; font-weight:500; color:rgba(255,255,255,.55); border-bottom:1px solid rgba(255,255,255,.28); cursor:pointer; white-space:nowrap; }
    .ca-peek-link:hover { color:var(--text); border-bottom-color:rgba(255,255,255,.5); }
    .ca-head-controls { display:flex; align-items:center; gap:14px; flex:none; }
    .ca-panels { display:flex; flex-direction:column; gap:18px; margin-top:22px; }

    /* ══ SCROLL AFFORDANCE — a fade at the bottom edge when the list runs past the fold ═══════
       ⚠️ IT IS HIDDEN BY DEFAULT AND SHOWN ONLY WHEN THERE IS MORE BELOW. A permanent fade over a
       page that has ended is a lie about there being more, and it is the failure this control is
       most likely to degrade into — nothing looks wrong, it just stops meaning anything.
       ⚠️ `position:fixed`, GEOMETRY FROM `.portal-content`'s RECT. It cannot be absolute inside
       the scroller: `bottom:0` there resolves against the padding box, which for an
       overflow:auto element spans the whole SCROLLABLE height — so it would sit at the bottom of
       the content and scroll away with it. It cannot be sticky either (item 203: a sticky element
       participates in layout, so one sized to the scrollport pushes every panel down by a
       viewport height). And it must NOT be made absolute by giving `.portal-main` a
       `position:relative`, which would re-home every absolutely positioned descendant that
       currently resolves against the initial containing block. Fixed-from-rect is the shape
       #tr-dim-layer already proved in this file, for the same reasons.
       ⚠️ `pointer-events:none` IS LOAD-BEARING, NOT TIDINESS. A 90px gradient across the bottom of
       the viewport sits directly over the last card in the list; without it, the one card a client
       has scrolled to reach is the one they cannot click. It is also silent — no error, no cursor
       change on a div — so it would present as "the portal ignores my clicks sometimes".
       ⚠️ z-index 5: above the cards (which declare none) and below EVERYTHING else — the sidebar
       at 50, menus at 60/120, the toast at 200, overlays at 300–400. A fade is the least
       important thing on the screen and must never tint a control.
       ⚠️ THE GRADIENT'S rgb MUST TRACK `--bg` (#1A1A1A). It is written out rather than composed
       from the token because a gradient stop needs the SAME rgb at alpha 0 — `transparent`
       interpolates through transparent-black in some engines and greys the middle of the ramp.
       checks/scroll-fade.mjs resolves --bg and fails if the two drift. */
    .ca-scroll-fade { display:none; position:fixed; bottom:0; height:90px; z-index:5; pointer-events:none;
      background:linear-gradient(to bottom, rgba(26,26,26,0) 0%, rgba(26,26,26,.96) 78%); }
    /* [REMOVED — item 336] .tr-scroll-fade, the TRANSCRIPT COLUMN's bottom fade, and with it
       items 333 and 335 in full. The PAGE fade above (.ca-scroll-fade) is untouched and still
       ships: it describes .portal-content, which has one background and one theme, and none of
       what follows applies to it.
       WHY IT WENT: the column fade needed a theme it could not read. It is position:fixed and
       therefore lives OUTSIDE #rv-transcript-view, so the view's light token never reached it
       (item 333), which took a JS stamp to fix; the stamp then needed a trigger on every theme
       change (item 335), which took a second fix. Two rounds of repair on an affordance whose
       whole job is to hint that a scrollbar already communicates. The cheapest correct version
       of this feature is not having it. */
    .ca-density { display:flex; align-items:center; }
    /* Text variant of the shared view toggle — same container and same neutral active state
       (.del-tog.active), words instead of glyphs. See assetViewToggleHTML. */
    .del-view-toggle--text .del-tog { font-family:inherit; font-size:11.5px; font-weight:600; padding:5px 10px; }
    /* ⚠️ THE QUIET ROW IS DIMMER, NOT HIDDEN. A deliverable that needs nothing still has to be on
       the page — its absence is what made a client unable to tell whether we were working or the
       project had died. Lighter title weight and a recessed panel put it below the ones that want
       something without removing it. */
    .ca-panel--quiet { background:rgba(255,255,255,.018); border-color:rgba(255,255,255,.06); }
    .ca-panel--quiet .ca-panel-title { font-weight:500; color:rgba(255,255,255,.62); }
    .ca-panel--quiet .ca-panel-num { color:rgba(255,255,255,.28); }
    .ca-panel--quiet .ca-panel-empty { color:rgba(255,255,255,.34); }
    /* Both chips occupy the slot the per-deliverable segmented control held before item 222, so
       every panel kind shares one shape whatever it has to say there.
       ⚠️ THE STAGE CHIP IS NEUTRAL AND THE WAITING CHIP IS GOLD, AND THAT IS ONE RULE RATHER THAN
       TWO TREATMENTS. A stage is a statement of fact — not a decision (item 66) and not an unsaved
       state (item 69). A waiting count states how many decisions this deliverable is holding, which
       is the ask, so it takes the same gold as the page heading's count for the same reason. The
       two are mutually exclusive by construction: a quiet row has no count and a live row has no
       stage chip.
       ⚠️ IDENTICAL GEOMETRY, DECLARED SEPARATELY RATHER THAN SHARED. They differ only in fill and
       ink; a shared base class plus a modifier would let a restyle move one chip's padding and not
       the other's, and the two sit in the same slot on adjacent panels where that reads as
       misalignment. */
    .ca-stage-chip { font-size:11.5px; font-weight:600; color:rgba(255,255,255,.5); background:rgba(255,255,255,.06); border-radius:4px; padding:5px 10px; white-space:nowrap; }
    .ca-wait-chip { font-size:11.5px; font-weight:600; color:#FBB03B; background:rgba(251,176,59,.12); border-radius:4px; padding:5px 10px; white-space:nowrap; font-variant-numeric:tabular-nums; }

    /* ══ DELIVERABLE PANEL — §2 ══════════════════════════════════════════════════════════════
       ⚠️ THE 16px RADIUS IS DELIBERATE (§5): cards are 12px, and the 4px difference is what
       keeps a panel from reading as an oversized card. Do not align them. */
    .ca-panel { background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:18px 18px 20px; }
    .ca-panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px 18px; flex-wrap:wrap; }
    .ca-panel-main { flex:1 1 180px; min-width:0; }
    .ca-panel-num { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.14em; color:rgba(255,255,255,.4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ca-panel-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:19px; letter-spacing:-0.01em; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ca-panel-sub { font-size:12.5px; color:rgba(255,255,255,.5); margin-top:5px; }
    /* ⚠️ THE TWO NUMBERS ARE COLOURED APART SO NEITHER CAN BE READ AS THE OTHER — which is the
       whole repair. "4 assets" alone, beside two visible cards, was a true number that read as a
       false one. Gold is the portal's ask colour (item 66 as restated: gold marks the decision,
       including the asking of it) and is exactly the hue the folded-in chip carried and the page
       heading's count uses, so this introduces no new value. The total stays in the subtitle's own
       muted grey — it is context, not an ask. */
    .ca-panel-total{color:rgba(255,255,255,.5);}
    .ca-panel-dot{color:rgba(255,255,255,.28);}
    .ca-panel-controls { display:flex; align-items:center; gap:10px; flex:none; }
    .ca-panel .asset-grid { margin-top:16px; }
    /* The panel SURVIVES an empty filtered set — that survival is the whole fix for the vanish
       the page-level filter caused, so this state is load-bearing, not a courtesy. */
    .ca-panel-empty { margin-top:16px; font-size:12.5px; color:rgba(255,255,255,.4); }
    /* Project grouping — only ever emitted for multi-project clients (caRenderGrouped). */
    .ca-projgroup + .ca-projgroup { margin-top:26px; }
    .ca-projgroup-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,255,255,.45); margin-bottom:14px; }
    .ca-projgroup .ca-panel + .ca-panel { margin-top:18px; }
    /* ⚠️ `.ca-empty-title` AND `.ca-empty-door` ARE GONE (item 222). The door died with the scope
       it flipped (item 221) and its rules were left behind — a rule that is right about a state
       nothing can reach (item 148). The title went because the PAGE HEADING now carries "You're all
       caught up": the empty state is a heading swap, so a second copy of the sentence in the body
       would be the same words twice on one screen. The body's remaining line is prose under the
       shared `.empty-state`. */


    /* ══ CLIENT "YOUR WORK" LANDING + RAIL (item 413) ═══════════════════════════════════════
       design/client-redesign/Client_Work_Page_dc.html is the canonical design; README.md is the
       spec. Both are read at build time — nothing here is transcribed from a summary.

       ⚠️ SCOPED TO `body:not(.is-team)`, AND THAT IS FORCED RATHER THAN TIDY. `.sidebar` is
       PORTAL-WIDE — one element, every page, every audience (item 384) — so a bare `.sidebar`
       rule restyles the team's Work Queue rail too, and `#page-home` is shared with it as well.
       Scoping needs a body-level class because the rail is a SIBLING of `.portal-main`, not a
       descendant of any view; `body.is-team` already exists and is written on every session
       change, so it is the one hook that can express "client" here.

       ⚠️ THE SPEC'S NEUTRALS ARE DECLARED AS `--cw-*` AT :root RATHER THAN INLINED. Item 374's
       precedent: a new surface family gets its own prefix rather than overloading `--rd-*`,
       whose values are the review page's and are asserted against elsewhere. Gold is NOT in this
       family — every amber in the spec resolves to `var(--rd-gold)`, the portal's reserved
       decision colour (item 66), so `#f5a524` appears nowhere. */
    :root {
      --cw-canvas:#0d0d0f; --cw-surface:#111114; --cw-surface-hover:#141417;
      --cw-raised:#17171b; --cw-hairline:#1a1a1e; --cw-rule:#1e1e22;
      --cw-border:#26262c; --cw-border-strong:#2a2a30;
      --cw-ink:#e8e8ea; --cw-ink-muted:#8a8a94; --cw-ink-faint:#6f6f7a;
      /* ⚠️ A DEVIATION FORCED BY A REAL COLLISION, AND THE GUARD IS THE ONE THAT FOUND IT. The
         spec's Ink-secondary is #b4b8c0 — which is ALSO the md's ring for `file` and
         `spreadsheet`, so writing it here is a palette colour hardcoded for an unrelated
         purpose: exactly the "correct value in the wrong place" asset-type-palette.mjs was
         widened to catch (item 137), and a later grep for that hex would land on this line and
         mislead. Reuse over near-copy (item 82), so this reads the portal's own secondary ink
         instead. It is ~21 units lighter than the spec's, which is a visible difference and is
         reported rather than smoothed over. */
      --cw-ink-2:var(--rd-text-2);
      /* The demand item's active fill. Derived FROM the gold rather than transcribed: the spec's
         #1c1508 is that hue at low alpha on the canvas, and writing it as a tint keeps it moving
         with --rd-gold instead of drifting into a fifth near-copy (item 82). */
      --cw-demand-bg:rgba(251,176,59,.10);
    }

    /* ── THE RAIL ─────────────────────────────────────────────────────────────────────────
       ⚠️ CSS ONLY. The markup already carries the spec's four-part structure (brand / workspace
       / nav / footer), so every gate stays where it is: agencyCanSwitch, renderAgencySwitcher,
       applyTeamNav's item set and the hidden "All projects" are untouched by construction. */
    /* ⚠️ ITEM 631 (left-rail parity): the client's own width (was 248px, item 414's
       `:not(.collapsed)` scoping), rail background/border, and `.sidebar-brand` padding/border
       overrides are DELETED — both rails now render 220px, the base rail bg/border, and the base
       brand-block padding through ONE cascade. Do not re-add a scoped `.sidebar` width or a
       scoped `.sidebar-brand` padding/border rule under `body:not(.is-team)`; rail-parity.mjs
       pins their absence and rail-parity-live.mjs pins the two rails' widths and header-block
       heights equal.
       ⚠️ AND THE WORDMARK'S DELIBERATE-NEUTRAL RULING (items 66/145/149) IS RETIRED, NOT
       FORGOTTEN. Item 631 re-reads the same "third carve-out" instinct the ruling itself named
       and reverses it the other way: the wordmark is now MEDIA REVIEW for both audiences (never
       "CLIENT PORTAL"), in the base rail's own gold (`--rd-gold`, the team's colour, tokenised at
       its declaration) — one wordmark, one colour, both rails. The colour override that used to
       sit here is deleted; only the client's own typography (Archivo, 13px, 700, uppercase)
       survives, because item 631 is CSS/copy geometry-out-of-scope for colour only, not type. */
    body:not(.is-team) .sidebar-brand .brand-text-sub { font-family:'Archivo',sans-serif; font-size:13px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; }
    body:not(.is-team) .sidebar-toggle { width:24px; height:24px; border:1px solid var(--cw-border-strong); border-radius:7px; color:var(--cw-ink-muted); }
    /* ⚠️ ITEM 631: the comment that used to sit here justified `.sidebar-client`'s own 24px
       padding as matching the nav's 24px item column (12px `.sidebar-nav` + 12px `.nav-item`).
       That rule is deleted below — `.sidebar-client` now takes the BASE skin's 20px, matching
       the base nav's 20px item column (item 497's arithmetic) — so the 24px rationale itself is
       retired with it, not left to describe a rule that no longer exists.
       ⚠️ ITEM 631: `.sidebar-client`'s own padding/border override and `.sidebar-nav`'s padding
       override are DELETED — the stack above the first nav item (brand → workspace → nav →
       item) is now identical geometry for both rails, through the base rules alone. The base
       `.sidebar-client` gains a measured `min-height` (see its rule) so the block reserves the
       team's full height — chevron + preview row included — whether or not a client renders
       them; rail-parity-live.mjs pins the first `.nav-item`'s top equal for both audiences. */
    body:not(.is-team) .sidebar-client-label { font-family:'Archivo',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; color:var(--cw-ink-muted); }
    body:not(.is-team) .sidebar-client-row { }
    /* ⚠️ ITEM 635: THE CLIENT WORKSPACE NAME WRAPS TO TWO LINES, NEVER ELLIPSIS — a long
       organisation name ("Edgeworth Economics Consulting Group International") truncated mid-word
       reads as broken chrome on a page whose whole first screen is that name. Scoped to the
       client (`body:not(.is-team)`), NOT a change to the base `.sidebar-client-name` rule: the
       team's OWN row (`.sidebar-client-row .sidebar-client-name { flex:1; min-width:0 }`, base
       rule, item 561) keeps single-line ellipsis untouched — rail-parity-live.mjs pins the team
       row's computed `white-space` as `nowrap`, unchanged, alongside the client's two-line clamp.
       `-webkit-line-clamp` needs `display:-webkit-box` + `-webkit-box-orient:vertical` to do
       anything (unsupported combinations silently no-op, not error); `overflow-wrap:anywhere` is
       the one-long-word case a line-clamp alone does not cover. `.sidebar-client { min-height:106px }`
       (item 631) is the space this has to fit inside — confirmed in rail-parity-live.mjs's §6. */
    body:not(.is-team) .sidebar-client-name { white-space:normal; overflow-wrap:anywhere; text-overflow:clip; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    /* ⚠️ ITEM 631: #sidebar-client-name / #sidebar-client-short font-size overrides are DELETED —
       both rails render the base sizes (13.5px / 11px). Colour is item geometry's neighbour, not
       named by item 631's scope (name/short colour is CONTENT chrome, not rail chrome), so it is
       left as is here. */
    /* Item 631: the client's own nav-item geometry (gap 11 / padding 10px 12px / radius 9 / 14px /
       500) is retired — the base .nav-item serves both rails, so the item column and the
       workspace block resolve to the same 20px on both (sidebar-workspace-align.mjs). */
    /* ⚠️ ITEM 631: the two-active-states split (neutral library vs. amber demand item) is
       DELETED. Rail parity is one treatment, every item, both rails — the base
       `.nav-item.active` rule (tokenised to var(--rd-gold)) is now the only rule that touches
       active nav-item colour, and rail-parity.mjs pins that no `body:not(.is-team)` rule touches
       `.nav-item.active` or `#nav-home.active` at all. */
    /* ⚠️ THE CLIENT-ONLY GLYPH SWAP IS GONE — ALL THREE ITEMS NOW SHARE THE MARKUP'S SVG.
       This block hid the SVG on #nav-home and #nav-messages for a client and drew a 16px
       unicode character in its place via `::after` (◉ U+25C9 and ◇ U+25C7), so the client rail
       showed glyphs where the team saw icons. #nav-home is now Tabler "clock" and #nav-messages
       Tabler "messages" (stacked bubbles), both at the rail's own 18px / currentColor / 1.7 —
       and an 18px stroked icon cannot be expressed as a text glyph, so the swap had to go rather
       than be re-pointed.
       ⚠️ THIS COMPLETES A DIRECTION ALREADY SET, IT DOES NOT START ONE. #nav-projects was pulled
       out of this same swap earlier to share the team's 4-square grid SVG — recorded then as
       "unifying the icon, not a design regression". The count of glyph-swapped items has gone
       3 → 2 → 0 by the same argument each time; the guard now pins ZERO, so a re-added glyph
       fails rather than quietly reintroducing a client-only icon vocabulary.
       ⚠️ #nav-messages IS CLIENT-ONLY (applyTeamNav hides it), so its new icon is a client-only
       change. #nav-home IS SHARED — the team's "Needs attention" now carries the clock too. */
    /* ⚠️ ITEM 631: the badge restyle override is DELETED. #nav-badge now renders through the
       BASE `.nav-badge` rule for both rails (tokenised to var(--rd-gold-2) — see its
       declaration), so the collapsed-rail specificity problem this comment used to solve
       (an ID override outranking `.sidebar.collapsed .nav-badge`) no longer applies: there is
       no client-scoped ID rule left to outrank it. */
    body:not(.is-team) .sidebar-footer { padding:18px 20px; border-top:1px solid var(--cw-rule); }
    /* Item 631: the client's Log out row no longer restates client-sized nav-item numbers —
       there are none; the base .nav-item and .sidebar-logout geometry serve both rails, so the
       row reads as one of the items in either skin (sidebar-logout.mjs measures the pair). */

    /* ── THE "YOUR WORK" SCREEN ───────────────────────────────────────────────────────────
       ⚠️ ITEM 631 RETIRES THE DELIBERATELY DARKER CLIENT CANVAS. The rule that used to sit here
       read "THE CANVAS IS APPLIED TO THE CLIENT'S SCROLLER, NOT TO `--bg`. `--bg` is portal-wide
       and is the team's page too… the true gap is #1A1A1A → #0d0d0f, 13 units" — a deliberate
       per-audience canvas darkening. Rail parity deletes it: `.portal-content` now renders on the
       body's own `--bg` (#1A1A1A) for both audiences, no client-scoped background at all. */

    /* ⚠️ THE CONTENT GUTTER, AND IT IS WHAT THE "RAIL IS TOO WIDE" REPORT WAS ACTUALLY SEEING.
       Measured on preview-413: the rail rendered at EXACTLY 248px (left 0, right 248, no inline
       width) — item 631 has since retired that client-scoped width; the rail is 220px for both
       audiences now, and this gutter (a `main`/`#page-deliverable-detail` max-width, not the
       rail) is unaffected by that change. What was measured as ~345px is the CONTENT column's
       left edge, which is main's own
       max-width centring plus its 48px padding: at a 1446px viewport that lands at 345 to the
       pixel. The rail was never wrong. The design puts this column at 28px / 1180px
       (Client_Work_Page_dc.html: `padding:0 28px 110px` around a `max-width:1180px`), so the
       client shell adopts those and the content reclaims ~60px at a laptop width.
       ⚠️ SIDES ONLY. The design's `0` top is because its prototype opens with its own header
       block; ours opens with the page heading, which would jam against the topbar. Top and bottom
       are left alone deliberately.
       ⚠️ AND #page-deliverable-detail MOVES WITH IT because it lives OUTSIDE main and restates
       main's constraint (item 118). Leaving it behind gives a client 28px on the landing page and
       48px one click later, which is the half-migrated state this file keeps recording. */
    body:not(.is-team) main,
    body:not(.is-team) #page-deliverable-detail { max-width:1180px; padding-left:28px; padding-right:28px; }

    /* THE DELIVERABLE CARD'S PIP BAR (design option 01, SEGMENTED PIPS).
       One pip per asset, in the deliverable's own asset order, so the bar and the rows beneath it
       read left to right as the same list.
       ⚠️ THREE STATES, NOT TWO, AND THAT IS THE DESIGN'S OWN MAP rather than an invention:
       `const ink = { needs:'#f5a524', ok:'#6FCF8E', wip:'#3a3a44' }`. A deliverable's assets
       genuinely reach a third state (internal review, in progress, changes requested); painting
       those amber would claim the client owes something they do not, and green would claim an
       approval nobody gave.
       ⚠️ EVERY COLOUR IS AN EXISTING TOKEN, NONE MINTED. Amber is --rd-gold per the standing
       ruling (never #f5a524). Green is --rd-green rather than the design's #6FCF8E, which is the
       palette's AUDIO RING and would be caught by asset-type-palette.mjs as a ring hardcoded
       somewhere it does not belong. Dim is --rd-sep (#3a3a42), two units from the design's
       #3a3a44, so a fifth near-grey is not introduced.
       ⚠️ THE CAP IS DERIVED, NOT PICKED. The design writes `flex:1`, which at two or three assets
       stretches each pip to ~120px of 4px-tall sliver: the height and the colour stop reading as
       segments. The cap is the width a pip HAS at the design's own five-asset reference, written
       as that arithmetic rather than as a number, so retuning the container or the gap moves the
       cap with them. Below the reference count the pips hold that width and the row is left
       aligned; above it they shrink naturally. */
    /* ⚠️ DECLARED ON THE CARD, NOT ON THE PIP ROW, so the TITLE BLOCK can read the bar's width
       too — a custom property inherits down, and .ca-panel-main is the pip row's cousin rather
       than its descendant. That is what lets the head's proportions be arithmetic over one
       number instead of two numbers that have to be kept agreeing. */
    body:not(.is-team) .ca-panel { --pip-w:250px; --pip-gap:4px; --pip-ref:5; }
    body:not(.is-team) .cw-pips {
      display:flex; align-items:center; gap:var(--pip-gap);
      width:var(--pip-w); max-width:var(--pip-w); flex:none;
    }
    body:not(.is-team) .cw-pip {
      flex:1 1 0; min-width:0; height:4px; border-radius:2px; background:var(--rd-sep);
      max-width:calc((var(--pip-w) - var(--pip-gap) * (var(--pip-ref) - 1)) / var(--pip-ref));
    }
    body:not(.is-team) .cw-pip.is-owed { background:var(--rd-gold); }
    body:not(.is-team) .cw-pip.is-done { background:var(--rd-green); }
    /* ⚠️ A FOURTH BAND, AND ITS COLOUR IS THE WHOLE ARGUMENT. "You approved, the team has not
       finalised it" is neither of the two states either existing colour already means: gold says
       WE ARE WAITING ON YOU, which is now false, and green says FINISHED, which is not true —
       a limited-tier decision moves no stage (decisionAuthority → "personal"). Painting it
       either one would be the misrepresentation this band exists to avoid, in one direction or
       the other. Slate-blue is deliberately OUTSIDE the demand/done axis: it reads as "recorded,
       resting", which is exactly the fact. It is a literal rather than a token because the
       --rd-/--cw- families hold no cool hue at all; adding one to :root would imply a palette
       decision nobody has taken, and item 378 bans redeclaring a token outside :root. */
    body:not(.is-team) .cw-pip.is-mine { background:#4A7A99; }

    /* The bar and its legend are one block, right-aligned under the header, so the legend cannot
       drift away from the pips it describes. Same --pip-w, so the two are the same width by
       construction rather than by two numbers agreeing. */
    body:not(.is-team) .cw-bar-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; }
    /* ⚠️ THE LEGEND SPANS THE BAR IT DESCRIBES, spread across it — the design's own rule
       (`justify-content:space-between` over the same 250px column). Clustered at one end it read
       as a caption that happened to be near the pips; spanning, the two are one block of one
       width, and a third entry lands without re-tuning a gap. */
    /* ⚠️ PACKS LEFT, AND `space-between` IS WHAT LEFT THE HOLE. The design's legend is
       `justify-content:space-between` on the bar's width — correct THERE, because its legend has
       exactly TWO entries and both always render (an owed label and a bare approved count). Ours
       has three states and OMITS one at zero (item 416's ruling), so two entries were pushed to
       opposite ends of a fixed 250px box: measured, the with-us entry sat at x=190 behind an 86px
       hole where the approved entry would have been.
       ⚠️ AND WRAPPING IS NOT DECORATION — three entries do not fit. Measured at 250px:
       104 + 73 + 60 + two 10px gaps = 257, so the all-three case already overflowed the bar it
       sits under by 7px before this pass, and 2-digit counts widen it further. flex-start alone
       would leave that standing.
       ⚠️ column-gap/row-gap ARE WRITTEN LONGHAND ON PURPOSE: the `gap` shorthand sets BOTH axes,
       so a `row-gap` declared above it is silently overwritten and wrapped lines take the column
       value (item 388 measured exactly that). Longhands have no ordering hazard to get wrong. */
    /* ⚠️ 11.5px IS THE DESIGN'S OWN LEGEND SIZE and we had diverged to 12 — which is part of why
       three entries did not fit. `flex-wrap` stays load-bearing (item 419 measured the overflow),
       but it is now a backstop rather than the normal case: at 11.5px with an 8px column-gap the
       three-entry line has real headroom inside the 250px bar, measured rather than estimated.
       ⚠️ WIDENING THE BOX WAS THE OTHER WAY AND IS REFUSED — the legend is `width:var(--pip-w)`
       so that it and the pips are one width BY CONSTRUCTION rather than by two numbers agreeing,
       and widening it to fit text would break exactly that. The 8px column-gap is ours and is
       free to retune; the 11.5px is the design's and is not. */
    body:not(.is-team) .cw-legend {
      display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap;
      column-gap:8px; row-gap:4px;
      width:var(--pip-w); font-size:11.5px; line-height:1;
    }
    /* ⚠️ THE DOT IS currentColor BY DEFAULT, SO THE SWATCH CANNOT DISAGREE WITH ITS OWN NUMBER
       (the with-us entry overrides it through a channel, and the note below that rule says why). The mock
       hardcodes both and would let them come apart on a palette edit. 5px per the note-badge
       family; the family's own ::before is 4px and belongs to a pill with a background behind it,
       so it is not borrowed — a legend dot sits on the card and needs the extra pixel. */
    body:not(.is-team) .cw-leg { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
    body:not(.is-team) .cw-leg-dot { width:5px; height:5px; border-radius:50%; background:var(--leg-dot, currentColor); flex:none; }
    body:not(.is-team) .cw-leg.is-owed { color:var(--rd-gold); }
    body:not(.is-team) .cw-leg.is-done { color:var(--rd-green); }
    /* Same #4A7A99 as its pip, and NOT via the --leg-dot channel: unlike the with-us entry this
       colour is legible as 12px text, so swatch and label can both be currentColor and cannot
       come apart on an edit. Contrast on --cw-surface #111114: 4.9:1. */
    body:not(.is-team) .cw-leg.is-mine { color:#4A7A99; }
    /* ⚠️ THE WITH-US ENTRY IS THE ONE PLACE THE DOT AND THE TEXT MUST DIFFER, so the dot gets a
       channel rather than the family losing currentColor. The pip is --rd-sep (#3a3a42): as a
       5px swatch that is the point — it is the colour it names — and as 12px TEXT it is
       unreadable. So the swatch tracks the pip and the label takes the muted ink every other
       secondary line on this card already uses. The channel carries no --rd- prefix, so item
       378's ban on redeclaring a palette token outside :root is untouched. */
    body:not(.is-team) .cw-leg.is-wip { color:var(--cw-ink-muted); --leg-dot:var(--rd-sep); }

    /* ⚠️ GREY, AND THIS REVERSES ITEM 415's GOLD RULING — item 421, Jeffrey's call after seeing
       preview-420. Item 420 measured every geometric property of this control as already matching
       the design exactly (5px 10px, 12px/600, 6px dot, 1px border, 8px radius, 7px gap, 10px
       caret) and reported the ONLY divergence as colour: the design's label and border are grey.
       ⚠️ ITEM 415's ARGUMENT SURVIVES ITS CONCLUSION AND IS WHY THE OUTLINE STAYS AN OUTLINE.
       It read: "AN OUTLINE, NEVER A FILL — item 66. A filled gold pill is this portal's decision
       treatment (Approve, 'Your approval needed'), and revealing finished work decides nothing."
       That is still true; going grey only removes the borrowed hue as well as the weight, which is
       strictly further from the decision treatment rather than nearer it. A FILL is still wrong.
       ⚠️ THE BORDER IS --cw-border-strong BECAUSE IT IS ALREADY #2a2a30 — the design's exact
       value, spelled once and shared with .sidebar-toggle rather than transcribed a second time.
       The label is --cw-ink-2, NOT the design's #b4b8c0: that hex is the palette's RING for File
       and Spreadsheet (asset-type-colours-final.md), and item 413 established that using it as a
       text token is a correct value in the wrong place (item 137). */
    body:not(.is-team) .cw-done-btn {
      appearance:none; background:transparent; border:1px solid var(--cw-border-strong);
      color:var(--cw-ink-2); font:inherit; font-size:12px; font-weight:600; line-height:1;
      padding:5px 10px; border-radius:8px; cursor:pointer; white-space:nowrap;
      opacity:.85;
    }
    /* ⚠️ THE MARGIN AND align-self LEFT WITH THE STACK (item 416). In a flex COLUMN they made the
       button its own row under the meta line; in the row it now shares with that line the margin
       would push it out of alignment with the text beside it. */
    body:not(.is-team) .cw-metarow {
      display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:6px;
    }
    body:not(.is-team) .cw-metarow .ca-panel-sub { margin-top:0; }
    body:not(.is-team) .cw-done-btn:hover { opacity:1; background:var(--cw-surface-hover); }
    body:not(.is-team) .cw-done-btn:focus-visible { outline:2px solid var(--cw-ink-2); outline-offset:2px; }
    body:not(.is-team) #page-home .section-header { padding:46px 0 26px; }

    /* ══ ITEM 417 ═══════════════════════════════════════════════════════════════════════════
       ⚠️ THE BLANK BAND ABOVE THE EYEBROW WAS `main`'s OWN TOP PADDING, DOUBLED WITH THE HEADER
       BLOCK'S. `main { padding: 3rem … }` gives 48 and `.section-header` gives 46, so the band was
       94; after this rule it is 46, measured on the deployed page. The design's content column is
       `padding:0 28px 110px` — top ZERO — and each screen's own header block carries
       `padding:46px 0 26px` (Client_Work_Page_dc.html:248), so 46 IS the design's whole band.
       ⚠️ SCOPED TO THIS PAGE, NOT TO `main`, AND THAT IS FORCED. Every other client-reachable page
       inside main (#page-projects, #page-messages) has a first child with NO top padding of its
       own — measured — so zeroing main's padding outright would jam their headings against the
       topbar. #page-home is the only one carrying the design's 46px header block, so it is the
       only one that can give the 48 back.
       ⚠️ AND A RAW READING OF THIS BAND CARRIES TWO ARTIFACTS THAT LOOK LIKE PAGE HEIGHT, BOTH
       MEASURED: 16px of `.page`'s own `animation: fadeUp .4s ease`, parked at its `translateY(16px)`
       start because a backgrounded tab never advances it (item 84 — finish the animations first);
       and 48.5px of `#home-greeting`, which `renderGreeting()` sets to display:none for a client
       and which is therefore only visible in a fixture where loadHomeData() never ran (item 168).
       Stacked, they read as a 116px band on a page whose real band is 46. */
    body:not(.is-team) main:has(> #page-home.active) { padding-top: 0; }

    /* The dot and the chevron (item 417). The button was already an inline-block of plain text;
       inline-flex is what lets three things share a baseline without hand-tuned margins. */
    body:not(.is-team) .cw-done-btn { display:inline-flex; align-items:center; gap:7px; }
    /* ⚠️ 6px — the reference's "standalone in a legend or dense row", not the 5px note-badge dot.
       ⚠️ THE DOT STAYS GREEN THOUGH THE BUTTON WENT GREY (item 421). It is not the button's ink:
       it is the DONE band's swatch, the same green the pips and the legend use, and it is what
       says WHICH population this control reveals. --rd-green rather than the legend's
       currentColor for exactly that reason — currentColor would grey it with the label and the
       control would stop naming its own subject. Item 420 measured the dot as already matching
       the design; only the label and border were divergent. */
    body:not(.is-team) .cw-done-dot { width:6px; height:6px; border-radius:50%; background:var(--rd-green); flex:none; }
    body:not(.is-team) .cw-done-chev { font-size:10px; line-height:1; opacity:.85; flex:none; }
    body:not(.is-team) #page-home .section-title { font-size:36px; font-weight:800; letter-spacing:-0.02em; color:var(--cw-ink); }
    body:not(.is-team) #page-home #attention-desc { font-size:15px; color:var(--cw-ink-2); margin:13px 0 0; }
    body:not(.is-team) #page-home .ca-head-count { color:var(--rd-gold); }

    /* ══ THE TEAM'S WORK QUEUE HEADLINE — THE MIRROR OF THE THREE RULES ABOVE ═══════════════
       ⚠️ A SEPARATE, `body.is-team`-SCOPED BLOCK, AND THE DUPLICATION IS FORCED RATHER THAN
       LAZY. `.section-title` / `#attention-desc` are THE SAME ELEMENTS on both screens — that
       is the whole subject of checks/client-work-screen.mjs §1 — so widening the client rule by
       dropping its `:not(.is-team)` would restyle a client's headline from a team edit, and the
       guard would not catch it because the selector would still be correct for the client.
       The metrics are deliberately identical (36/800/-0.02em): the two screens are one product
       and the headline is the strongest signal of that. Only the INK differs, because the client
       palette (--cw-ink) is defined inside `body:not(.is-team)` and does not resolve here. */
    body.is-team #page-home .section-title { font-size:36px; font-weight:800; letter-spacing:-0.02em; color:var(--text); white-space:normal; }
    /* ⚠️ TARGETED BY `.section-desc`, NOT BY `#attention-desc`, AND THAT IS NOT INTERCHANGEABLE
       EVEN THOUGH IT IS THE SAME ELEMENT. checks/client-badge-treatments.mjs §7 resolves a badge's
       geometry by collecting every rule whose CLASS TOKENS are all present on a probe element —
       it reads no ids at all. Written as `body.is-team #page-home #attention-desc`, this rule's
       only class token is `is-team`, so it matched the team badge probe, outranked
       `.del-status-pill` on specificity, and reported a team badge as 15px type. The client twin
       above escapes by accident: its `:not(.is-team)` is what the guard skips on.
       Naming a second class puts this rule outside that collection honestly, rather than by
       teaching the guard a new exception. Do not "simplify" it back to the id. */
    body.is-team #page-home .section-desc { font-size:15px; color:var(--text-muted); margin:13px 0 0; }
    /* #FBB03B is the queue's own decision amber (item 66), not the client's --rd-gold. */
    body.is-team #page-home .ca-head-count { color:#FBB03B; }

    /* Project eyebrow + rule (the design's group header). Only ever emitted for multi-project
       clients — caRenderGrouped's own condition, unchanged. */
    body:not(.is-team) .ca-projgroup-title { display:flex; align-items:center; gap:12px; font-family:'Archivo',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em; color:var(--cw-ink-muted); margin-bottom:14px; }
    body:not(.is-team) .ca-projgroup-title::after { content:''; flex:1; height:1px; background:var(--cw-rule); }

    /* The deliverable card. */
    body:not(.is-team) .ca-panel { background:var(--cw-surface); border:1px solid var(--cw-border); border-radius:16px; padding:0; overflow:hidden; }
    /* ⚠️ THIS SITS *AFTER* THE BASE RULE ON PURPOSE, AND MOVING IT BACK UP SILENTLY UNDOES IT.
       Both selectors are (0,2,1) — `body:not(.is-team) .ca-panel--owed` and `body:not(.is-team)
       .ca-panel` — so specificity TIES and SOURCE ORDER decides (items 110, 198). The base rule
       writes the `border` SHORTHAND, which resets border-color, so an owed edge declared above it
       is overwritten and every card renders neutral grey. That shipped once: the declaration was
       correct, the guard asserted the DECLARATION rather than the cascade winner, and only a
       browser look caught it (item 400). checks/client-work-screen.mjs §7 now resolves the winner. */
    /* ⚠️ THE GOLD EDGE IS THE DESIGN'S OWN OPACITY, READ FROM THE MOCK RATHER THAN PICKED:
       Client_Work_Page_dc.html:740 `edge: 'rgba(245,165,36,0.30)'`. The HUE is ours — #f5a524 is
       banned outright (Broadcast Gold `--rd-gold` only), and the tint is written through
       --rd-gold-rgb so a palette edit moves it rather than leaving a near-copy behind (item 82).
       ⚠️ ONLY WHEN SOMETHING IS OWED. The README's card line is `border #1e1e22 (amber-tinted when
       something is owed)`, and the mock sets `edge` unconditionally only because every fixture card
       in it has work owed. A card with nothing outstanding keeps the neutral edge — otherwise the
       one signal that says "this one wants you" is on every card, which is no signal.
       ⚠️ DELIBERATELY NOT A GLOW OR A WIDTH CHANGE: same 1px, same radius, only the colour, so an
       owed card and a settled one stay the same object at the same size. */
    body:not(.is-team) .ca-panel--owed { border-color: rgba(var(--rd-gold-rgb), 0.30); }
    /* ⚠️ THE BAR CANNOT MOVE LEFT WHILE IT IS THE LAST FLEX CHILD OF A SPACE-BETWEEN ROW — it is
       pinned to the card's right edge whatever the title block does, and the "gap" is the empty
       right half of a title block that GROWS (flex:1 1 180px) while its text stays left-aligned.
       Measured on the deployed shipped build at a 1124px card: 672px of the block sits empty and
       the title's ink ends 690px short of the bar. So the head packs LEFT and the title block
       stops growing — after which the same measurement is 252px, and it is the META ROW rather
       than the title that sets it (a long title closes it to 12px).
       ⚠️ AND THE DESIGN DOES NOT SOLVE THIS FOR US — measured, its own card is the same 1180px
       column (Client_Work_Page_dc.html: main max-width:1180, no narrower wrapper), and it pins
       the bar right with a `flex:1` spacer. At our width the design has the same gap. What is
       adopted from it is the 250px bar, the 16px head gap and the inline meta row; packing left
       is a deliberate deviation, and it is the only thing that moves the bar at all.
       ⚠️ A FLOOR RATHER THAN A BASIS, and the difference is measured: a fixed `flex-basis` of
       twice the bar holds every card's bar at one x — and TRUNCATES the long real names, since
       "Understanding Safety in Bypass Installations" measures 504px at 21px/800 and NASSCO's
       "Case Study — Alabama Confined Space fatalities" 548px. Hugging with a floor keeps the
       identical constant x for every name that fits (the common case, 15-25 chars) and lets the
       few that do not extend rather than ellipsise. Pure hugging is tighter still — the bar lands
       at 303px rather than 539 — and makes its position jitter by ~284px down a column of cards,
       which reads as accidental.
       ⚠️ AND THE FLOOR IS TWICE THE BAR, WRITTEN AS THAT ARITHMETIC so the two move together;
       `min-width` overrides .ca-panel-main's own `min-width:0`, which is what a fixed basis was
       relying on the basis to do. */
    /* ⚠️ REVERSES ITEM 417's DEVIATION rather than making a new choice, and the deviation is
       recorded there: the design pins this block to the card's content edge with a flex spacer,
       417 packed it LEFT because the resulting gap read as too wide, and the gap turned out to be
       a title block that GROWS (item 416) rather than the alignment. `space-between` over two
       children IS the design's spacer, expressed as the property that already existed here.
       ⚠️ `.ca-panel-main`'s `min-width` floor below stays — it is what stops the bar's x jittering
       down a column of cards, and it is now the thing that keeps the title block from swallowing
       the gap on its own. */
    body:not(.is-team) .ca-panel-head {
      padding:20px 22px; border-bottom:1px solid var(--cw-rule);
      align-items:center; justify-content:space-between; gap:16px;
    }
    body:not(.is-team) .ca-panel-main { flex:0 1 auto; min-width:calc(var(--pip-w) * 2); }
    body:not(.is-team) .ca-panel-title { font-size:21px; font-weight:800; letter-spacing:-0.01em; color:var(--cw-ink); margin-top:0; }
    body:not(.is-team) .ca-panel-num { font-family:'Archivo',sans-serif; font-size:11px; letter-spacing:0.1em; color:var(--cw-ink-muted); }
    body:not(.is-team) .ca-panel-sub { font-size:13px; color:var(--cw-ink-muted); margin-top:6px; }
    body:not(.is-team) .ca-panel-total { color:var(--cw-ink-muted); }
    body:not(.is-team) .ca-panel-dot { color:var(--cw-ink-faint); }
    body:not(.is-team) .ca-panel .asset-grid,
    body:not(.is-team) .ca-panel .asset-list { margin:0 22px 18px; }
    body:not(.is-team) .ca-panel-empty { margin:0; padding:16px 22px 18px; font-size:13px; color:var(--cw-ink-muted); }

    /* ── ASSET ROWS (the design's table) ──────────────────────────────────────────────────
       Column headers, then one row per asset. The row is the click target; the trailing
       chevron is an affordance rather than a second control. */
    .cw-heads { display:flex; align-items:center; gap:14px; padding:11px 22px; border-bottom:1px solid var(--cw-rule); font-family:'Archivo',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--cw-ink-muted); }
    .cw-row { display:flex; align-items:center; gap:14px; padding:14px 22px; border-bottom:1px solid var(--cw-hairline); cursor:pointer; }
    .cw-row:last-child { border-bottom:0; }
    .cw-row:hover { background:var(--cw-surface-hover); }
    .cw-c-tile { width:44px; flex:none; }
    .cw-c-asset { flex:1 1 150px; min-width:120px; }
    .cw-c-need  { width:150px; flex:none; }
    .cw-c-end   { width:100px; flex:none; text-align:right; }
    /* ⚠️ THE TILE IS `assetGlyphFor`'s ELEMENT, RESIZED — not a second composition of ring +
       fill + glyph. That helper already resolves all three through ASSET_TYPE_PALETTE and is
       what the deliverable page's rows use, so reusing it is what keeps this table off a
       parallel colour path (item 101, and items 109/137/224 for what a second one costs). Only
       the box changes: the spec's 44px at an 11px radius, and a 1px border where the shipped
       icon carries 2 — at 44px a 2px border reads as a frame rather than an edge. */
    .cw-c-tile .asset-type-icon { width:44px; height:44px; border-radius:11px; border-width:1px; }
    .cw-type { font-family:'Archivo',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; }
    .cw-name { font-size:16px; font-weight:700; color:var(--cw-ink); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cw-chev { color:var(--cw-ink-faint); font-size:14px; }

    /* ── "NOTHING FOR YOU YET" ────────────────────────────────────────────────────────────
       ⚠️ THE QUIET DELIVERABLES COLLAPSE INTO ONE SECTION rather than one panel each, which is
       the design's shape and is also what keeps the top of the page useful as the list grows.
       They are still LISTED — item 221's ruling stands: a deliverable that needs nothing must
       stay on the page, because its absence is what left a client unable to tell whether we were
       working or the project had died. */
    /* ⚠️ THE SEPARATION IS THE README'S OWN AND IS STRUCTURAL RATHER THAN DECORATIVE: 44px of
       air, a 2px rule, 30px under it ("Separation is **structural**"). The rule reads
       `--cw-border` #26262c, the value the README names, NOT `--cw-rule` #1e1e22 — the hairline
       that divides rows INSIDE a card. A 1px hairline at 36px is a row divider doing a section
       break's job, which is why the quiet rows read as more of the same list. */
    .cw-quiet { margin-top:44px; padding-top:30px; border-top:2px solid var(--cw-border); }
    .cw-quiet-label { font-family:'Archivo',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--cw-ink-muted); margin-bottom:12px; }
    .cw-quiet-row { display:flex; align-items:center; gap:14px; padding:12px 2px; }
    .cw-quiet-dot { width:6px; height:6px; border-radius:50%; background:#3a3a44; flex:none; }
    .cw-quiet-name { font-size:14px; font-weight:600; color:var(--cw-ink-2); }
    .cw-quiet-note { font-size:13px; color:var(--cw-ink-muted); margin-left:auto; }
    .cw-quiet-state { font-size:12.5px; font-weight:600; color:var(--cw-ink-muted); white-space:nowrap; } /* item 576c: the worker's stage label, right of the count */
    /* item 576: the quiet rows are toggles. The button keeps the row's exact layout; the chevron
       sits at the far right and rotates open; the expanded body holds the same .ca-panel the
       "needs you" section draws. No gold anywhere here — nothing is owed. */
    .cw-quiet--first { margin-top:0; padding-top:0; border-top:0; }
    .cw-quiet-row--toggle { width:100%; background:none; border:0; text-align:left; font:inherit; color:inherit; cursor:pointer; border-radius:6px; }
    .cw-quiet-row--toggle:hover { background:var(--cw-surface-hover); }
    .cw-quiet-row--toggle:focus-visible { outline:2px solid var(--cw-ink-2); outline-offset:2px; }
    .cw-quiet-chev { flex:none; font-size:18px; line-height:1; color:var(--cw-ink-muted); transition:transform .15s; margin-left:2px; }
    .cw-quiet-item[data-open="on"] .cw-quiet-chev { transform:rotate(90deg); }
    .cw-quiet-body:empty { display:none; }
    .cw-quiet-body { padding:6px 0 14px 20px; }
    .cw-state { font-size:12.5px; font-weight:600; white-space:nowrap; }
    .cw-state--done { color:var(--rd-green); }
    .cw-state--quiet, .cw-state--sent { color:var(--cw-ink-muted); }
    /* item 637: the quiet-section row/summary text for a changes-requested asset. Not part of
       the badge-* family client-badge-treatments.mjs governs (this is plain text, not a pill),
       so the token itself is fine here — resolve() never sees this rule. */
    .cw-state--changes { color:var(--st-revision); }
    .cw-tile-state .cw-state { font-weight:500; }
    @media (max-width: 640px) {
      .cw-heads, .cw-c-need { display:none; }
      .cw-row { flex-wrap:wrap; }
      .cw-c-end { width:auto; margin-left:auto; }
    }

    /* ⚠️ APPROVED DEVIATION FROM THE REQUEST (§2's 18px), AND THE REASON IS MEASURED. At a
       390px viewport the content column is 342px; an 18px panel plus its 1px border takes 38px,
       leaving a 144px two-up card against a 141px badge — the badge overflows LEFT into
       .ag-thumb's overflow:hidden and is clipped with no ellipsis and no error.
       ⚠️ 6px, NOT 8. 8px was "the largest padding that fits" and left ONE pixel of clearance at
       390 — inside font-rendering variance between browsers, so not margin at all. 6px leaves
       3px. "Largest that fits" and "fits reliably" are different questions.
       §5 defends the 16px RADIUS as a principle and states the 18px only as a cost, so trimming
       the cost on mobile does not contradict its reasoning.
       ⚠️ THIS DOES NOT FIX 360px OR 320px — those clip at ZERO padding and were already
       clipping before this panel existed. See the separate item; the fixes are inside the card
       and out of this request's scope. */
    @media (max-width: 640px) {
      .ca-panel { padding:6px 6px 8px; }
      /* ⚠️ THE LINE ABOVE HAS NEVER REACHED A CLIENT, AND THAT IS THE GAP — item 588.
         `.ca-panel` is (0,1,0); `body:not(.is-team) .ca-panel { padding:0 }` is (0,2,1) and wins
         at EVERY width, so on the client Active page this relief resolves to a padding that was
         already zero. The client's inset does not live on the panel at all — it lives on the GRID,
         as `body:not(.is-team) .ca-panel .asset-grid { margin:0 22px 18px }` — and nothing ever
         narrowed that. So the one surface this whole media query was written for kept 44px of
         horizontal margin on a 320px phone while the team panel gave back 24px.
         ⚠️ MEASURED, NOT ESTIMATED. At 320px the page column is 272px (viewport − 0 shell − 48
         main padding). Team: 272 − 12 panel padding − 2 border = 258 → a 121px two-up card and
         109px of badge room. Client, before this line: 272 − 0 − 2 − 44 = 226 → a 105px card and
         93px of badge room — 16px narrower, on the surface whose badges are the LONGEST strings
         in the set ("Your approval needed", "Revisions in progress"). 6px restores exact parity:
         272 − 0 − 2 − 12 = 258, the same 121px card the team gets.
         ⚠️ 6px BECAUSE THAT IS THE NUMBER BESIDE IT, not a fresh choice. Item 152 solved 6-vs-8
         for the panel on this same question and recorded why 8 was rejected (one pixel of
         clearance at 390 is inside font-rendering variance). Picking a different number here
         would put two answers to one question in one media block.
         ⚠️ THIS IS NOT WHAT STOPS A CLIP — item 152's truncation on `.ag-status-overlay
         .del-status-pill` (min-width:0 / flex-shrink:1 / overflow:hidden / text-overflow:ellipsis)
         already bounds the badge to its container at every width, and it applies here too. What
         was wrong is that the client truncated 16px EARLIER than the team on the identical phone,
         losing words the team kept — one component rendering at two widths, which is the same
         defect `#page-deliverable-detail` vs `main` was fixed for and which
         mobile-content-column.mjs already asserts for the page column.
         ⚠️ GRID ONLY, NOT `.asset-list`. The shared rule above sets both, but the list carries no
         overlay badge (its status is a fixed 150px `.cw-c-need` column) and its rows declare their
         own 22px padding, so narrowing its margins would restyle a component that has no defect.
         The two are alternate density views and never render together. */
      body:not(.is-team) .ca-panel .asset-grid { margin:0 6px 18px; }
      .ca-panels { gap:12px; margin-top:16px; }
      .ca-pagehead .section-title { font-size:20px; }
    }
    /* Deliverable sublabel on cards in the "By type" view. */
    .ag-deliv { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:3px; }
    /* §8.4's technical line, team only. Quiet by construction — it is reference, not a claim; the
       name above it is what a reader scans for. tabular-nums so version codes and durations line
       up down a column of cards. */
    /* ⚠️ NOT `.ag-meta-line` — THAT NAME IS TAKEN, by the Publish Details motif's 5px bar
       (`height:5px; background:rgba(--at-publish-details-ring-rgb,.25)`), which is defined LATER
       in this stylesheet and would therefore WIN on height and background and render this footer
       line as a coloured bar. Caught by counting occurrences of the class before trusting it,
       not by looking at the page. A new class name is only new if you check. */
    .ag-tech-line { font-family:'Inter',sans-serif; font-size:10.5px; font-weight:400; color:rgba(255,255,255,.42); letter-spacing:0.01em; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
    /* ── ITEM 636: the paired-transcript vocabulary — one icon size, one tag recipe. ──────────────
       .ag-meta-ico sizes the inline SVGs used by both the "Transcript of <name>" link glyph and
       the SOURCE's "Transcript" tag; .ag-linked-tag is the tag itself (icon + word), coloured
       per-instance from assetTypeRing('transcript') rather than a stylesheet literal, so the ONE
       palette table still governs it. .ag-linked-row is the CLIENT-only trailing block — its own
       class, deliberately NOT .ag-tech-line, so it never collides with the "client meta slot is
       EMPTY for a versioned card" selector asset-card-anatomy.mjs §4 already pins. */
    .ag-meta-ico { display:inline-block; width:12px; height:12px; vertical-align:-2px; flex:0 0 auto; }
    .ag-linked-tag { display:inline-flex; align-items:center; gap:3px; font-weight:600; }
    .ag-linked-row { font-family:'Inter',sans-serif; font-size:10.5px; margin-top:3px; }
      /* ⚠️ THE TYPE FILL COVERS THE WHOLE CARD, NOT JUST THE BAND — §7.1 gives a CARD fill and a
       darker BAND fill, and only the band half had ever been built. `cfg.bg` had exactly one
       consumer in the file; the card and footer used neutral darks (#202020 / #1e1e1e), so the
       card fill rendered nowhere. In the design a card is its type colour top to bottom — audio
       green throughout, transcript purple — with a darker band above.
       ⚠️ ONE INLINE VALUE, THREE CONSUMERS. The renderer emits `--ag-fill` on the card and the
       card, footer and band all read it. Three inline copies would be three chances to disagree,
       and it also removes the `background:` shorthand hazard entirely — the band's colour now
       comes from the stylesheet, so there is no shorthand to reset a background-image.
       ⚠️ SCOPED TO ASSET CARDS BY CONSTRUCTION, NOT BY SELECTOR ACCIDENT. The fallback is
       `var(--surface)`, so anything without `--ag-fill` — deliverable rows, project cards, the
       skeleton — is unchanged. Asserted, rather than left to the fact that `.ag-card` happens to
       be asset-only today. */
    .ag-card { position:relative; background:var(--ag-fill, var(--surface)); border:0.5px solid var(--border); border-radius:12px; overflow:hidden; cursor:pointer; transition:transform .2s, border-color .2s, box-shadow .2s; display:flex; flex-direction:column; }
    /* The ⋯ menu floats as a fixed overlay (positioned in JS), so the card keeps
       overflow:hidden and its dimensions never change when the menu opens. */
    .ag-card.menu-open { z-index:5; }
    /* Deleted assets (shown via the team "Show deleted" toggle) — muted/greyed. */
    .ag-card--deleted { opacity:0.5; filter:grayscale(0.75); }
    .ag-card--deleted:hover { opacity:0.7; transform:none; box-shadow:none; }
    /* .asset-row--deleted LIVED HERE. Moved to `.agl-row--deleted .agl-cell` — opacity and
       filter are box-painting properties and a `display:contents` row has no box, so left
       here they would have gone silently dead and every deleted asset would have rendered
       as a live one. */
    /* ⋯ button overlaid on the thumbnail, bottom-right (team only). */
    /* ⚠️ §5: "Overflow menu. Top left, 22–26px. Team only." It sat bottom-right; pass 1 flagged
       that and it was never moved. The 34px top reserve on .ag-thumb exists precisely for this
       chrome, so top-left at a 10px inset sits inside the reserve rather than over the artwork. */
    /* ⚠️ THE TRIGGER MOVED FROM THE THUMB TO THE BAND (bottom-right). Over the artwork it sat on
       whatever the poster happened to show; in the band it sits on a surface we control.
       ⚠️ IT IS `position:absolute`, SO IT IS OUT OF FLOW AND NOT A FLEX ITEM. The brief expected a
       `min-width:0` here as the fifth instance of that trap (items 62, 79, 137, 152) — it does not
       apply: `.ag-body` is a flex COLUMN and an absolutely-positioned child does not participate
       in flex layout at all. Adding min-width:0 would be a declaration guarding a trap that
       cannot occur here. What IS needed is reserved space, below. */
    .ag-menu-wrap { position:absolute; top:auto; left:auto; bottom:10px; right:10px; z-index:3; opacity:1; visibility:visible; }
    /* ── item 426: merge-provenance chip ──────────────────────────────────────
       BOTTOM-LEFT, mirroring the ⋯ button on the opposite corner at the same
       inset and the same z-index — the two are the only team-only marks on the
       thumbnail and they read as a pair. The other three corners are taken:
       top-right by the status overlay + internal mark, top-left by the
       select-mode checkbox, and bottom-left carries `.ag-trt-badge` — which is
       CLIENT-only, so it can never co-occur with this. (Verified rather than
       assumed; see the corner map in item 426.)
       Slate, never gold: this states a fact about provenance and is not a
       decision (item 66). The trio is the file's own established --hint-*
       pairing (`.hint-toast`), not a new one. */
    .ag-merged-chip { position:absolute; bottom:10px; left:10px; z-index:3;
      width:20px; height:20px; border-radius:5px; display:flex; align-items:center;
      justify-content:center; background:var(--hint-bg); border:1px solid var(--hint-accent);
      color:var(--hint-text); }
    /* ⚠️ NO `pointer-events:none`: the tooltip IS the feature, and a chip that
       cannot be hovered has none. The click bubbles to the card, so the card still
       opens — nothing is swallowed. */
    .ag-merged-chip svg { width:12px; height:12px; display:block; }
    .ag-menu-wrap > button { width:24px; height:24px; } /* always visible (team), not hover-gated */
    .ag-menu-btn { position:relative; background:rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.35); color:#fff; cursor:pointer; padding:4px 6px; border-radius:4px; display:flex; align-items:center; line-height:0; transition:background .15s; }
    .ag-menu-btn:hover { background:rgba(0,0,0,0.72); }
    /* Invisible ≥36×36 hit target centered on the button — easier to click, visual unchanged. */
    .ag-menu-btn::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:36px; height:36px; }
    /* ⚠️ [DELETED] `.ag-menu-wrap .more-menu { top:calc(100% + 6px); bottom:auto; left:0;
       right:auto; }` — A CORRECT RULE THAT COULD NEVER RENDER, which is worse than a wrong one:
       it made every reader confident instead of confused. It declared exactly the rightward
       opening we wanted, so the stylesheet read as though the anchor were handled, while the menu
       went on opening leftward.
       It could not apply in EITHER state: closed, the menu is `display:none` inside the wrap;
       open, toggleAgMenu portals it to <body> with inline position/top/left, so it is no longer a
       descendant of .ag-menu-wrap and the inline styles would win regardless.
       The anchor lives in toggleAgMenu and nowhere else. Do not re-add a positional rule here
       expecting it to do anything. */
    .more-menu-divider { height:1px; background:var(--border); margin:0.25rem 0.15rem; }
    /* SECTION LABELS in the ⋯ menu. Added 2026-08-06 with the client-task control: two
       unlabelled toggles in a row ("Make internal" / "Ask for their notes") give no clue which
       axis each one moves. The label is the cheapest thing that makes them readable, and it is
       inert — not a menu item, so it never takes a click or a hover state. */
    .more-menu-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:8.5px;
      text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted);
      padding:0.35rem 0.55rem 0.15rem; pointer-events:none; user-select:none; }
    /* Sublabel under a menu item that needs a consequence spelled out. Same muted weight; the
       item above it carries the action, this carries what it costs. */
    .more-menu-sub { display:block; font-family:'Inter',sans-serif; font-weight:400; font-size:10px;
      letter-spacing:0; text-transform:none; color:var(--text-muted); margin-top:1px; }

    /* ── Custom confirm / prompt dialogs (replace native confirm()/prompt()) ── */
    .ui-dialog-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:400; padding:24px; }
    .ui-dialog { width:100%; max-width:420px; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,0.45); }
    .ui-dialog-title { font-family:'Manrope',sans-serif; font-size:1.05rem; font-weight:600; color:var(--text); margin-bottom:0.5rem; }
    .ui-dialog-msg { font-size:0.85rem; color:var(--text-muted); line-height:1.55; margin-bottom:1.1rem; }
    .ui-dialog-input { width:100%; background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.9rem; padding:9px 11px; outline:none; font-family:'Inter',sans-serif; margin-bottom:1.1rem; }
    .ui-dialog-input:focus { border-color:var(--brand); }
    .ui-dialog-pre { background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:0.78rem; line-height:1.5; padding:9px 11px; margin-bottom:1.1rem; overflow-wrap:anywhere; word-break:break-word; }
    /* Not an error colour. The marked segment is almost always correct — this makes it findable
       inside a long path, not suspect. */
    .ui-dialog-pre-mark { background:rgba(247,147,30,0.22); border-radius:2px; padding:0 2px; }
    /* ⟦item 1130⟧ the team's Releases dialog (brmRelOpen): the project's signed model releases + the release-form links (admins) */
    .ui-dialog.brm-rel { max-width:560px; max-height:calc(100vh - 48px); overflow:auto; }
    .brm-rel-links { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
    .brm-rel-url { width:100%; font-size:0.78rem; color:var(--text-muted); overflow-wrap:anywhere; background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; padding:7px 9px; }
    .brm-rel-url:empty { display:none; }
    .brm-rel-h { font-size:0.72rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); margin:14px 0 6px; }
    .brm-rel-row { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; padding:9px 0; border-top:0.5px solid var(--border); }
    .brm-rel-row:first-of-type { border-top:0; }
    .brm-rel-who { min-width:0; font-size:0.85rem; color:var(--text); }
    .brm-rel-who b { font-weight:600; }
    .brm-rel-meta { font-size:0.76rem; color:var(--text-muted); margin-top:2px; overflow-wrap:anywhere; }
    .brm-rel-btn { flex-shrink:0; background:var(--surface2); border:0.5px solid var(--border); color:var(--text); border-radius:4px; padding:6px 10px; font-size:0.78rem; cursor:pointer; text-decoration:none; white-space:nowrap; font-family:inherit; }
    .brm-rel-btn:hover { border-color:var(--brand); }
    .brm-rel-empty { font-size:0.82rem; color:var(--text-muted); padding:6px 0; }
    /* ══ THE PRODUCTION ZONE ═══════════════════════════════════════════════════════════════
       Everything below this line is the workshop; everything above it is the product. The page
       used to interleave the two at equal weight, so nothing said which half a client sees.

       NO GOLD BELOW THE LINE. Gold means "a decision is wanted from you", and nothing down here
       is a decision — it is footage management and an internal form. The slate-blue
       informational ramp carries the whole zone instead.

       The rail and the cooler surface do the work; the label states it in words for the case
       where colour alone is not enough. */
    .proj-production { position:relative; margin-top:2.25rem; padding:1.25rem 0 0 1.1rem;
      border-left:2px solid #33586b; background:linear-gradient(90deg, rgba(74,122,153,0.055), rgba(74,122,153,0.012) 60%, transparent); border-radius:0 4px 4px 0; }
    .proj-prod-label { display:flex; align-items:center; gap:7px; color:#4A7A99; font-size:0.68rem;
      font-weight:700; letter-spacing:0.11em; text-transform:uppercase; margin-bottom:0.35rem; }
    .proj-prod-label svg { flex-shrink:0; }
    .proj-prod-note { color:var(--text-muted); font-size:0.76rem; line-height:1.5; margin-bottom:1.1rem; max-width:56ch; }
    .proj-prod-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:0.35rem; }
    /* The zone owns its own section headings — cooler than the gold-adjacent ones above. */
    .proj-production .panel-section-title { color:#7f9bb0; }
    /* Deliberately NOT muted like .ui-dialog-msg: that is prose people skim, and this is the one
       line that has to be read. Full-strength text, its own rule, sitting last. */
    .ui-dialog-ask { color:var(--text); font-size:0.82rem; line-height:1.5; margin:-0.5rem 0 1.1rem; padding-left:9px; border-left:2px solid var(--brand); }
    /* Optional single-choice segmented picker on uiConfirm (release-form role) */
    .ui-dialog-ch { margin-bottom:1.1rem; }
    .ui-dialog-ch-label { font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; }
    .ui-dialog-ch-row { display:flex; gap:6px; }
    .ui-dialog-ch-btn { flex:1; background:var(--surface2); border:0.5px solid var(--border); color:var(--text); border-radius:4px; font-size:0.82rem; padding:8px 10px; cursor:pointer; font-family:'Inter',sans-serif; }
    .ui-dialog-ch-btn:hover { border-color:var(--brand); }
    .ui-dialog-ch-btn.active { background:var(--brand); border-color:var(--brand); color:#1a1c20; font-weight:600; }
    /* Optional editable recipient list on uiConfirm (Send Now preview) */
    .ui-dialog-rc { margin-bottom:1.1rem; }
    .ui-dialog-rc-label { font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; }
    .ui-dialog-rc-list { border:0.5px solid var(--border); border-radius:4px; background:var(--surface2); max-height:168px; overflow-y:auto; }
    .ui-dialog-rc-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px; border-bottom:0.5px solid var(--border); }
    .ui-dialog-rc-row:last-child { border-bottom:0; }
    .ui-dialog-rc-who { display:flex; flex-direction:column; min-width:0; }
    .ui-dialog-rc-name { font-size:0.8rem; color:var(--text); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ui-dialog-rc-email { font-size:0.72rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ui-dialog-rc-lock { font-size:0.62rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); border:0.5px solid var(--border); border-radius:3px; padding:2px 6px; flex-shrink:0; }
    .ui-dialog-rc-x { background:none; border:0; color:var(--text-muted); font-size:1.05rem; line-height:1; cursor:pointer; padding:2px 6px; border-radius:3px; flex-shrink:0; }
    .ui-dialog-rc-x:hover { color:var(--text); background:rgba(255,255,255,0.08); }
    .ui-dialog-rc-empty { font-size:0.75rem; color:var(--text-muted); padding:9px 10px; }
    .ui-dialog-rc-warn { font-size:0.72rem; color:var(--brand); margin-top:6px; }
    .ui-dialog-rc-add { display:flex; gap:6px; margin-top:8px; }
    .ui-dialog-rc-input { flex:1; min-width:0; background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.8rem; padding:7px 10px; outline:none; font-family:'Inter',sans-serif; }
    .ui-dialog-rc-input:focus { border-color:var(--brand); }
    .ui-dialog-rc-addbtn { background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.75rem; padding:7px 12px; cursor:pointer; font-family:'Inter',sans-serif; flex-shrink:0; }
    .ui-dialog-rc-addbtn:hover { border-color:var(--brand); }
    .ui-dialog-rc-err { font-size:0.72rem; color:#e5736f; margin-top:6px; }
    /* Optional multi-line field on uiConfirm (e.g. the Send Now note) */
    .ui-dialog-ta-wrap { margin-bottom:1.1rem; }
    .ui-dialog-ta-label { display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:6px; }
    .ui-dialog-textarea { width:100%; box-sizing:border-box; background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.9rem; line-height:1.5; padding:9px 11px; outline:none; font-family:'Inter',sans-serif; resize:vertical; min-height:74px; }
    .ui-dialog-textarea:focus { border-color:var(--brand); }
    .ui-dialog-ta-count { font-size:0.7rem; color:var(--text-muted); text-align:right; margin-top:4px; }
    .ui-dialog-actions { display:flex; justify-content:flex-end; gap:10px; }
    .ui-dialog-btn { border:none; border-radius:4px; padding:9px 18px; font-size:0.85rem; font-weight:500; cursor:pointer; font-family:'Inter',sans-serif; }
    .ui-dialog-btn.cancel { background:var(--surface2); color:var(--text); border:0.5px solid var(--border); }
    .ui-dialog-btn.cancel:hover { background:var(--border); }
    .ui-dialog-btn.confirm { background:var(--brand); color:#1a1c20; }
    /* A disabled confirm must LOOK unavailable, or a required field reads as a broken button. */
    .ui-dialog-btn.confirm:disabled { opacity:0.45; cursor:default; filter:none; }
    .ui-dialog-btn.confirm:disabled:hover { filter:none; }
    .ui-dialog-btn.confirm:hover { filter:brightness(1.06); }
    .ui-dialog-btn.confirm.danger { background:#E24B4A; color:#fff; }
    .ui-dialog-btn.confirm.steel { background:#3d6f9e; border-color:#3d6f9e; color:#fff; }   /* ⟦item 1102⟧ a team-screen confirm (the Send picker's "Add to the project?"): steel, never gold */
    .ui-dialog-btn:disabled { opacity:0.45; cursor:not-allowed; filter:none; }
    .ag-card:hover { transform:translateY(-3px); border-color:rgba(255,255,255,0.18); box-shadow:0 8px 32px rgba(0,0,0,0.3); }
    /* While the ⋯ menu is open, drop the hover transform (instantly) so the fixed-position
       dropdown isn't trapped/clipped by the card's transform + overflow:hidden — otherwise it
       only paints once the mouse leaves the card. */
    .ag-card.menu-open, .ag-card.menu-open:hover { transform:none; transition:none; }
    /* ══ ONE CARD SIZE (item 598) ══════════════════════════════════════════════════════════════
       ⚠️ NO .ag-card RULE SPANS. The 2×2 primary of §2.1 — withdrawn in item 113, restored in 131
       under the closure condition of 116, then reduced to one row and its cap withdrawn — is
       retired outright: every card is one track wide and one row tall on every surface, both
       guest ones included. The hierarchy moved to the TYPE CHIP ("MAIN VIDEO") and the "needs
       you" signal moved to ORDER plus the outline below; size no longer says anything.
       Pinned by checks/asset-grid-geometry.mjs as an EQUALITY: the emitted class set carries no
       primary/secondary, and no rule on .ag-card carries grid-column or grid-row. The closure
       equation is retired with it and must not return (grid-closure-condition.mjs). */
    /* ⚠️ THE PENDING OUTLINE (item 598 part 3; client sessions only — 598b). A card the client still owes a decision on leads
       the grid (agPendingFirst) and wears this ring. Signal Orange, not gold — gold is the
       reserved DECISION colour (item 102) and this is an ask, not a verdict. The mock's own
       values: 2px, offset 0, so the ring sits on the card edge and adds no geometry.
       .ag-card--select.ag-selected (later in the sheet, same specificity) wins when both apply:
       in the bundle picker a selected card reads as selected first. */
    .ag-card.is-pending { outline:2px solid var(--signal); outline-offset:0; }
    /* ── ITEM 636 §4: THE PAIRING RING — NEUTRAL, NEVER A STATUS COLOUR ─────────────────────────
       The brief named `var(--rd-ring-neutral)`; grepped and confirmed ABSENT from this file. No
       existing `.ag-card`/`.btn`/`.nav-item` rule carries a generic :focus-visible ring either
       (the ones that exist are all --brand/--rd-gold, which item 636 is expressly forbidden from
       reusing here). `--border-secondary` is the closest fit already in the palette: a portal-wide,
       theme-aware neutral (rgba(255,255,255,0.18) dark / rgba(0,0,0,0.18) light) used for borders
       elsewhere, never for a status. Forbidden tokens, checked and absent from this rule: --rd-gold,
       --rd-green, --rd-red, --rd-violet, --st-*, --approved, --brand, --at-*.
       POINTER ONLY inside @media(hover:hover): a tap fires 'mouseover' on a touch browser, and
       without this gate a tap would leave the ring stuck on with no hover event to clear it
       (agWirePairHover below gates its own listener registration the same way, belt and braces). */
    @media (hover: hover) {
      .ag-card.ag-pair-hot { box-shadow: 0 0 0 2px var(--border-secondary); }
    }
    /* Keyboard focus works on ANY device — a touch device can carry a keyboard — so this stays
       OUTSIDE the hover media query on purpose; see the comment above. */
    .ag-card.ag-pair-hot:has(:focus-visible), .ag-card.ag-pair-hot.ag-pair-focus { box-shadow: 0 0 0 2px var(--border-secondary); }
    /* The chip row (item 598 part 5, option D in design/card-date-placement-mock.html): the type
       chip LEFT, the client's date at the RIGHT EDGE — the two bookend the row. One flex row, so
       the date costs no line of its own and the deliverable name below gets the line the date used
       to hold.
       ⚠️ THE CHIP MUST NOT GROW (598e). It shipped as `flex:1 1 auto`, and because .ag-type-label
       is a real chip (inline-block, padding, a tinted background) the grow stretched its box across
       the whole row: the tint ran far past the word, and the date sat "immediately after the chip"
       — option E — because the chip was what pushed it there. space-between was present the whole
       time and could do nothing while the first child filled the row. flex-grow 0: the chip hugs
       its label; space-between then puts the date hard right. Pinned by asset-grid-geometry.mjs. */
    .ag-chip-row { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 0 4px; }
    .ag-chip-row .ag-type-label { margin:0; flex:0 1 auto; min-width:0; }
    .ag-chip-row .ag-date { font-size:11px; color:var(--text-muted); white-space:nowrap; flex:0 0 auto; }
    /* Drag-to-reorder (team): dragged card dims; drop target shows an accent edge. */
    .ag-card[draggable="true"] { cursor:grab; }
    .ag-card.ag-dragging { opacity:.4; }
    .ag-card.ag-drop-before { box-shadow:inset 3px 0 0 0 var(--brand); }
    .ag-card.ag-drop-after  { box-shadow:inset -3px 0 0 0 var(--brand); }
    /* ⚠️ DELIBERATELY UNLIKE THE TWO ABOVE, IN BOTH SHAPE AND HUE. Those are a
       3px line on ONE edge in --brand (orange) meaning "insert here"; this is a
       ring on ALL FOUR in slate meaning "merge into this". A reader has to be
       able to tell which of the two drags is in flight BEFORE letting go. */
    .ag-card.ag-drop-merge { box-shadow:inset 0 0 0 2px var(--hint-accent), 0 0 0 3px rgba(74,122,153,.28); }
    /* Dashed "Add asset" card — secondary-sized (team, grid only). Grid row-stretch
       matches its height to sibling cards; min-height floors it on a lone row. */
    /* ⚠️ NOT A GRID CELL ANY MORE (§2.1), so `grid-column:span 1` is gone — it described a track
       this element no longer occupies. It sits below the grid at one track's width, so it still
       reads as card-sized rather than stretching the full row. */
    /* ⚠️ A GRID CELL AGAIN (§2.2), REVERSING PASS 3. It was moved out to a sibling row so a
       placeholder could not influence row height — a real concern then, and one the band-absorbs
       mechanism (item 132) has since removed: the CARDS define the row and an empty tile stretches
       to it rather than setting it. Measured both ways at 1200 and 900 — card heights are
       IDENTICAL with the tile in the grid, and the tile lands at exactly the card's box.
       ⚠️ AND THE WIDTH CALC WAS SIZED FOR FOUR TRACKS while the grid has had THREE since item 117
       — which is why the tile rendered 75px narrower than a card and read as misaligned. Two
       elements sized to agree is the ragged-column failure the list view already had; a cell just
       IS the track. No width, no floor — the grid supplies both. */
    .ag-add-card { background:transparent; border:1.5px dashed var(--border); border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; color:var(--text-muted); cursor:pointer; transition:border-color .15s, color .15s; }
    .ag-add-card:hover, .ag-add-card.drag { border-color:var(--brand); color:var(--brand); }

    /* ── Upload modal — 5a converged design ───────────────────────────────── */
    .um-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:300; padding:24px; }
    .um-card { background:#101013; border:1px solid #24242a; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; max-height:90vh; transition:width .28s cubic-bezier(.4,0,.2,1); font-family:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
    .um-empty { width:660px; }
    .um-loaded { width:680px; max-width:calc(100vw - 48px); } /* hugs content: Editor + 200px Stack + padding */
    .um-head { display:flex; align-items:flex-start; justify-content:space-between; padding:22px 24px 18px; border-bottom:1px solid #1e1e24; flex:0 0 auto; }
    .um-eyebrow { font-family:var(--um-mono); font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:#76767f; margin-bottom:5px; }
    .um-title { font-family:var(--um-ui); font-size:22px; font-weight:700; letter-spacing:-.01em; color:#f2f2f4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .um-x { background:none; border:none; color:#5c5c66; font-size:19px; line-height:1; cursor:pointer; padding:0 0 0 12px; flex:0 0 auto; }
    .um-x:hover { color:#c9c9cf; }
    .um-body { padding:24px; }
    .um-drop { border:1px dashed #2e2e36; border-radius:9px; padding:44px 24px; display:flex; flex-direction:column; align-items:center; text-align:center; background:#0c0c0f; cursor:pointer; transition:border-color .15s, background .15s; }
    .um-drop:hover, .um-drop.dragging { border-color:#E8963C; }
    .um-drop.dragging { background:rgba(232,150,60,.06); }
    .um-drop-circle { width:56px; height:56px; border-radius:50%; background:#17171c; border:1px solid #2a2a31; display:flex; align-items:center; justify-content:center; color:#9b9ba3; margin-bottom:16px; }
    .um-drop-main { font-family:var(--um-ui); font-size:18px; font-weight:600; color:#f2f2f4; }
    .um-drop-hint { font-size:13px; color:#76767f; margin-top:4px; }
    .um-browse { margin-top:18px; padding:11px 22px; border:1px solid #E8963C; border-radius:8px; background:transparent; color:#E8963C; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; }
    .um-browse:hover { background:rgba(232,150,60,.08); }
    .um-formats { font-family:var(--um-mono); font-size:11px; color:#5c5c66; margin-top:14px; }
    .um-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 24px; border-top:1px solid #1e1e24; background:#0c0c0f; flex:0 0 auto; }
    /* Only non-zero buckets are named, so the sentence is about this batch rather than a template. */
    .um-summary { font-size:12px; line-height:1.5; color:#8a8a93; }
    .um-btn { width:100%; padding:12px 22px; text-align:center; border:none; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; }
    .um-btn.disabled, .um-btn:disabled { background:#1c1c22; color:#5c5c66; cursor:not-allowed; font-weight:700; }
    .um-btn.primary { background:#E8963C; color:#08080a; width:auto; flex:0 0 auto; }
    .um-foot-prog { flex:1; min-width:0; }
    .um-foot-prog-label { font-size:12px; color:#8a8a93; margin-bottom:6px; }
    .um-foot-track { height:5px; background:#26262e; border-radius:3px; overflow:hidden; }
    .um-foot-fill { height:100%; background:#E8963C; width:0%; transition:width .2s; }
    /* Horizontal filmstrip (replaces the left queue column). */
    .um-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:1px solid #303030; border-radius:7px; font-size:11.5px; color:#b0b0b0; background:#0d0d0d; }
    .um-chip select { background:none; border:none; outline:none; color:#b0b0b0; font-size:11.5px; font-family:inherit; cursor:pointer; }
    .um-chip input.um-seq { width:30px; text-align:center; background:none; border:none; outline:none; color:#b0b0b0; font-size:11.5px; font-family:inherit; }
    .um-seg { display:flex; gap:8px; margin-bottom:14px; }
    /* ══ FILE LIST — item 595 redesign ══════════════════════════════════════════════════════
       Tokens are the handoff's, named rather than repeated: the palette is the semantic core of
       this design (orange = the client can see it, purple = internal) and a hex typed twice is a
       hex that drifts. Scoped to .um-card so nothing leaks into the rest of the app, which runs
       its own palette. */
    .um-card {
      --um-panel:#101013; --um-row:#14141a; --um-input:#17171c; --um-recess:#0c0c0f;
      --um-bd:#24242a; --um-bd-sub:#1e1e24; --um-bd-ctl:#2a2a31; --um-bd-dash:#2e2e36; --um-bd-badge:#3a3a44;
      --um-ink:#f2f2f4; --um-ink-2:#c9c9cf; --um-ink-3:#9b9ba3; --um-ink-4:#8a8a93;
      --um-ink-5:#76767f; --um-ink-6:#6e6e77; --um-ink-7:#5c5c66; --um-danger:#e06060;
      --um-client:#E8963C; --um-internal:#8B7CF6; --um-source:#5c5c66; --um-toggle-off:#26262e;
      --um-ui:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
      --um-mono:'JetBrains Mono','IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
    }
    .um-list { padding:20px 24px; overflow-y:auto; min-height:0; flex:1 1 auto; display:flex; flex-direction:column; gap:14px; }
    /* never shrink: rows are flex children of the list, and shrinking would clip an expanded
       row's fields under overflow:hidden. The list scrolls instead. */
    .um-row { border:1px solid var(--um-bd-ctl); border-radius:11px; overflow:hidden; flex:0 0 auto; transition:border-color .15s; }
    .um-row.vis-client   { border-color:rgba(232,150,60,.30); }
    .um-row.vis-internal { border-color:rgba(139,124,246,.30); }
    .um-row.vis-source   { border-color:var(--um-bd-ctl); }
    .um-row-head { display:flex; align-items:center; gap:13px; padding:14px 16px; background:var(--um-row); cursor:pointer; }
    /* 76×46 poster well. A real frame lands here once the pipeline has one; until then the well
       itself is the loading state, which is why it is a surface colour and not a spinner. */
    .um-thumb { width:76px; height:46px; flex:0 0 auto; border-radius:5px; background:var(--um-recess); border:1px solid var(--um-bd-ctl); display:flex; align-items:center; justify-content:center; overflow:hidden; }
    .um-thumb img { width:100%; height:100%; object-fit:cover; }
    .um-thumb .um-play { width:0; height:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor; }
    .um-row.vis-client   .um-thumb { color:var(--um-client); }
    .um-row.vis-internal .um-thumb { color:var(--um-internal); }
    /* ⚠️ NOT --um-source (#5c5c66) — A STATED DEVIATION FROM THE HANDOFF, ON A MEASUREMENT.
       The play marker is a bare graphic with no text, so WCAG's 3:1 non-text floor applies (the
       same floor this repo applied to the row icon this thumbnail replaces). Computed against the
       #0c0c0f well: client #E8963C 8.24:1, internal #8B7CF6 5.87:1, source #5c5c66 2.96:1 — the
       last one FAILS, narrowly. --um-ink-6 is the next step on the same neutral ramp and is
       already in the palette, so this is a one-token move rather than a new colour. Everywhere
       else source still uses --um-source. Flagged for the designer rather than slipped in. */
    .um-row.vis-source   .um-thumb { color:var(--um-ink-6); }
    /* min-width:0 is required for the ellipsis on both text lines below. */
    .um-row-mid { flex:1; min-width:0; }
    .um-row-file { font-family:var(--um-mono); font-size:11px; color:var(--um-ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-bottom:4px; }
    .um-row-line { display:flex; align-items:center; gap:9px; margin-bottom:3px; }
    .um-row-name { font-family:var(--um-ui); font-size:15px; font-weight:600; color:var(--um-ink); max-width:300px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .um-vbadge { font-family:var(--um-mono); font-size:10px; font-weight:500; letter-spacing:.06em; padding:2px 6px; border-radius:3px; white-space:nowrap; flex:0 0 auto; }
    .um-vbadge.client   { background:rgba(232,150,60,.14); color:#f5b163; }
    .um-vbadge.internal { background:rgba(139,124,246,.16); color:#a89dfa; }
    .um-vbadge.source   { background:rgba(255,255,255,.06); color:var(--um-ink-3); }
    .um-size { font-family:var(--um-mono); font-size:10px; color:var(--um-ink-5); flex:0 0 auto; }
    /* ── Agency internal-work discovery — item 596c (design/agency-internal-discovery-mock.html) ──
       Violet is the mock's, not the app's --internal (which is a neutral grey): on these two
       surfaces the colour has to say "internal" on its own, beside orange client work. */
    :root { --ai-violet:#9d8cf0; --ai-violet-dim:rgba(157,140,240,.13); --ai-violet-line:rgba(157,140,240,.42); }
    .dlv-internal-badge { display:inline-block; margin-left:8px; font:10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; color:var(--ai-violet); background:var(--ai-violet-dim); border:1px solid var(--ai-violet-line); padding:5px 7px; border-radius:4px; vertical-align:middle; white-space:nowrap; }
    .ca-drawer { border-top:1px solid var(--border); background:#101013; margin-top:14px; border-radius:10px; overflow:hidden; }
    .ca-drawer-bar { padding:14px 20px; display:flex; align-items:center; gap:10px; cursor:pointer; }
    .ca-drawer-caret { color:var(--text-muted); font-size:11px; width:10px; }
    .ca-drawer-name { font-size:13.5px; color:var(--text); }
    .ca-drawer-say { font-size:13px; color:var(--text-muted); }
    .cw-vtag { display:inline-block; margin-left:8px; font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; color:var(--text); border:1px solid var(--border); padding:4px 6px; border-radius:3px; vertical-align:middle; }
    .cw-meta { font-size:12.5px; color:var(--text-muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ca-drawer-body .cw-row { padding-left:20px; padding-right:20px; }
    .ca-drawer-count { margin-left:auto; font:11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ai-violet); background:var(--ai-violet-dim); border:1px solid var(--ai-violet-line); padding:5px 8px; border-radius:4px; }
    .ca-drawer-foot { padding:11px 20px 15px; font-size:12px; color:var(--text-muted); }
    /* Collapses to nothing when both flags are off, so the row shrinks rather than reserving
       an empty line. */
    .um-flags { display:flex; flex-wrap:wrap; gap:6px; }
    .um-flag { font-family:var(--um-mono); font-size:10px; font-weight:500; letter-spacing:.06em; padding:2px 6px; border-radius:3px; border:1px solid var(--um-bd-badge); color:var(--um-ink-3); }
    .um-row-ctl { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
    .um-row-x { background:none; border:none; color:var(--um-ink-7); font-size:14px; cursor:pointer; padding:0; line-height:1; font-family:inherit; }
    .um-row-x:hover { color:var(--um-danger); }
    .um-row-chev { color:var(--um-ink-7); font-size:11px; }
    .um-row-prog { height:3px; background:#242424; overflow:hidden; }
    .um-row-prog-fill { height:100%; background:var(--um-client); width:0%; transition:width .2s; }
    .um-row-status { font-size:10px; color:var(--um-ink-7); }
    .um-row-status.done { color:#1D9E75; } .um-row-status.error { color:var(--um-danger); }
    /* ── Expanded panel ──────────────────────────────────────────────────────────────────── */
    .um-row-body { display:flex; flex-direction:column; gap:18px; padding:18px 16px; border-top:1px solid var(--um-bd-sub); background:var(--um-row); }
    .um-f { display:flex; flex-direction:column; gap:7px; }
    .um-f-lab { display:flex; align-items:center; justify-content:space-between; gap:10px; }
    .um-lab { font-family:var(--um-mono); font-size:10px; letter-spacing:.13em; text-transform:uppercase; color:var(--um-ink-6); }
    .um-hint { font-size:11px; color:var(--um-ink-7); }
    .um-f-row { display:flex; gap:12px; }
    .um-f-row > .um-f { flex:1; min-width:0; }
    .um-ta { width:100%; box-sizing:border-box; background:var(--um-input); border:1px solid var(--um-bd-ctl); border-radius:7px; color:var(--um-ink); font-family:var(--um-ui); font-size:13.5px; line-height:1.45; padding:9px 12px; outline:none; resize:vertical; min-height:56px; }   /* ⟦item 778⟧ */
    .um-in { width:100%; background:var(--um-input); border:1px solid var(--um-bd-ctl); border-radius:7px; color:var(--um-ink); font-family:var(--um-ui); font-size:14px; font-weight:600; padding:10px 34px 10px 12px; outline:none; }
    .um-in:focus { border-color:var(--um-client); }
    .um-in-wrap { position:relative; }
    /* Affordance only — it exists to say the name is editable, which was a specific review note. */
    .um-pencil { position:absolute; right:11px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--um-ink-5); pointer-events:none; }
    .um-sel { width:100%; appearance:none; -webkit-appearance:none; background:var(--um-input); border:1px solid var(--um-bd-ctl); border-radius:7px; color:var(--um-ink); font-family:var(--um-ui); font-size:13px; padding:10px 30px 10px 12px; outline:none; cursor:pointer;
      background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2376767f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 11px center; }
    .um-sel:focus { border-color:var(--um-client); }
    .um-sel:disabled { opacity:.55; cursor:not-allowed; }
    /* THE SEMANTIC CORE: the active fill differs per option, so colour alone answers "who can see
       this". Inactive labels are tinted toward their own hue so the control reads as three states
       rather than one live and two dead. */
    .um-seg { display:flex; background:var(--um-input); border:1px solid var(--um-bd-ctl); border-radius:8px; padding:3px; }
    .um-seg button { flex:1; text-align:center; padding:9px 0; border:none; border-radius:6px; background:transparent; font-family:var(--um-ui); font-size:12px; font-weight:700; letter-spacing:.05em; cursor:pointer; transition:background .12s; }
    .um-seg button.c { color:#7f6b52; } .um-seg button.i { color:#6b5f7f; } .um-seg button.s { color:#7a7a83; }
    .um-seg button.c.on { background:var(--um-client);   color:#08080a; }
    .um-seg button.i.on { background:var(--um-internal); color:#0b0814; }
    .um-seg button.s.on { background:var(--um-bd-badge); color:#e8e8ee; }
    /* The guardrail against publishing the wrong cut: every option states its consequence. */
    .um-note { font-size:12px; line-height:1.5; }
    .um-note.client   { color:#f5b163; }
    .um-note.internal { color:#a89dfa; }
    .um-note.source   { color:var(--um-ink-4); }
    .um-more-head { display:flex; align-items:center; gap:9px; border-top:1px solid var(--um-bd-sub); padding-top:14px; font-size:12px; color:var(--um-ink-6); cursor:pointer; }
    .um-more-head:hover { color:var(--um-ink-3); }
    .um-more-head .um-rule { flex:1; height:1px; background:var(--um-bd-sub); }
    .um-more { display:flex; flex-direction:column; gap:12px; padding-top:12px; }
    .um-opt { display:flex; align-items:center; justify-content:space-between; gap:14px; }
    .um-opt-lab { font-size:13px; color:var(--um-ink-2); }
    .um-opt-sub { font-size:11px; color:var(--um-ink-6); margin-top:2px; }
    .um-tg { width:38px; height:22px; flex:0 0 auto; border-radius:11px; border:none; padding:3px; display:flex; align-items:center; justify-content:flex-start; background:var(--um-toggle-off); cursor:pointer; transition:background .15s; }
    .um-tg .um-knob { width:16px; height:16px; border-radius:50%; background:var(--um-ink-7); display:block; }
    .um-tg.on { background:var(--um-client); justify-content:flex-end; }
    .um-tg.on .um-knob { background:#08080a; }
    .um-reset { font-size:11px; cursor:pointer; color:var(--um-client); }
    .um-reset.inert { color:var(--um-ink-7); cursor:default; }
    .um-mono-in { width:100%; background:var(--um-input); border:1px solid var(--um-bd-ctl); border-radius:7px; color:var(--um-ink-3); font-family:var(--um-mono); font-size:11px; padding:9px 12px; outline:none; }
    .um-mono-in:focus { border-color:var(--um-client); }
    /* Source directly under output: it reads as source → result in one glance (a review decision). */
    .um-orig { display:flex; align-items:center; gap:9px; margin-top:6px; }
    .um-orig-lab { font-family:var(--um-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--um-ink-7); flex:0 0 auto; }
    .um-orig-name { font-family:var(--um-mono); font-size:11px; color:var(--um-ink-5); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .um-addfiles { flex:0 0 auto; padding:15px; border:1px dashed var(--um-bd-dash); border-radius:9px; background:transparent; color:var(--um-ink-5); font-family:var(--um-ui); font-size:13px; cursor:pointer; text-align:center; transition:border-color .15s, color .15s, background .15s; }
    .um-addfiles:hover { border-color:var(--um-client); color:var(--um-client); }
    .um-addfiles.dragging { border-color:var(--um-client); color:var(--um-client); background:rgba(232,150,60,.06); }
    /* Upload modal tabs (Upload file / Publish Details) + the Publish Details form. */
    .um-tabs { display:flex; gap:26px; padding:0 24px; border-bottom:1px solid #1e1e24; flex:0 0 auto; }
    .um-tab { background:none; border:none; color:#76767f; font-size:14px; font-weight:500; padding:14px 0; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:inherit; display:flex; align-items:center; gap:7px; }
    .um-tab:hover { color:#c9c9cf; }
    .um-tab.active { color:#E8963C; font-weight:600; border-bottom-color:#E8963C; }
    .um-tab-n { opacity:.6; }
    /* Required work not yet done on that tab, shown rather than hidden behind a click. Driven by
       real completeness state (no Publish Details record yet), never hardcoded. */
    .um-tab-dot { width:6px; height:6px; border-radius:50%; background:#8B7CF6; flex:0 0 auto; }
    .um-metaform { display:flex; flex-direction:column; gap:14px; overflow-y:auto; }
    .um-mfield { display:flex; flex-direction:column; gap:6px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:#8a8a8a; }
    .um-mfield > span { font-weight:600; }
    .um-mfield input, .um-mfield select, .um-mfield textarea { background:#0d0d0d; border:1px solid #303030; border-radius:8px; padding:9px 11px; color:#f0f0f0; font-size:13px; font-family:inherit; text-transform:none; letter-spacing:0; outline:none; }
    .um-mfield input:focus, .um-mfield select:focus, .um-mfield textarea:focus { border-color:#e8912a; }
    .um-mfield textarea { resize:vertical; min-height:72px; }
    .um-meta-thumb { display:flex; flex-direction:column; align-items:center; gap:7px; padding:12px; background:#0d0d0d; border:1px solid #232323; border-radius:8px; font-size:11px; color:#8a8a8a; }
    .um-meta-thumb img { max-width:200px; max-height:112px; border-radius:6px; object-fit:cover; }
    .um-meta-thumb.none { text-align:center; line-height:1.5; }
    /* Version History panel (team, from the card ⋯ menu). */
    .vh-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.55); display:none; align-items:center; justify-content:center; z-index:340; padding:24px; }
    .vh-panel { width:100%; max-width:440px; max-height:82vh; display:flex; flex-direction:column; background:#161616; border:1px solid #272727; border-radius:14px; overflow:hidden; }
    .vh-head { display:flex; align-items:flex-start; justify-content:space-between; padding:18px 20px 14px; border-bottom:1px solid #222; gap:12px; }
    .vh-title { font-size:15px; font-weight:650; color:#fff; }
    .vh-sub { font-size:12px; color:#8a8a8a; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:330px; }
    .vh-x { background:none; border:none; color:#6a6a6a; font-size:18px; cursor:pointer; line-height:1; flex-shrink:0; }
    .vh-x:hover { color:#9a9a9a; }
    .vh-list { overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:8px; }
    .vh-empty { color:#8a8a8a; font-size:13px; padding:20px; text-align:center; }
    .vh-row { display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:9px; background:#111; border:1px solid #232323; }
    .vh-row.current { border:1.5px solid #e8912a; background:#161310; }
    .vh-thumb { width:46px; height:34px; border-radius:5px; overflow:hidden; flex-shrink:0; background:linear-gradient(160deg,#3a3a3a,#161616); display:flex; align-items:center; justify-content:center; }
    .vh-thumb img { width:100%; height:100%; object-fit:cover; }
    .vh-thumb-ph { color:#e8912a; display:flex; }
    .vh-info { flex:1; min-width:0; }
    .vh-seq { font-size:13px; font-weight:600; color:#e8e8e8; display:flex; align-items:center; gap:8px; }
    .vh-current-tag { font-size:8.5px; font-weight:800; letter-spacing:.06em; color:#1a1200; background:#e8912a; padding:2px 5px; border-radius:3px; }
    .vh-when { font-size:11px; color:#8a8a8a; margin-top:2px; }
    /* Item 592b — the retired-transcript line. Muted rather than alarming: a retired transcript
       is a record, not a fault, and the row it sits under is already historical. */
    .vh-retired-tr { font-size:11px; color:#9a9a9a; margin-top:5px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
    .vh-retired-tr b { color:#c9c9c9; font-weight:700; }
    .vh-tr-open { flex-shrink:0; }
    .vh-actions { display:flex; gap:6px; flex-shrink:0; }
    /* Compare selection in the version list */
    .vh-pick { display:flex; align-items:center; justify-content:center; width:22px; flex-shrink:0; }
    .vh-pick input { cursor:pointer; accent-color:var(--brand); width:14px; height:14px; }
    .vh-pick-na { width:22px; }
    .vh-cmpbar { display:flex; align-items:center; gap:10px; padding:10px 14px; border-top:1px solid #272727; flex-shrink:0; }
    .vh-cmpcount { font-size:11.5px; color:var(--text-muted); }
    .vh-cmpgo { margin-left:auto; }
    .vh-cmpgo:disabled { opacity:0.45; cursor:not-allowed; }
    /* ── Version comparison overlay (team only) ── */
    .cmp-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.78); backdrop-filter:blur(3px); z-index:340; display:flex; align-items:center; justify-content:center; padding:24px; }
    .cmp-panel { width:100%; max-width:1240px; height:86vh; display:flex; flex-direction:column; background:#141414; border:1px solid #272727; border-radius:14px; overflow:hidden; }
    .cmp-head { display:flex; align-items:center; gap:16px; padding:14px 18px; border-bottom:1px solid #272727; flex-shrink:0; }
    .cmp-title { font-family:'Montserrat',sans-serif; font-size:14px; font-weight:700; color:var(--text); }
    .cmp-sub { font-size:11.5px; color:var(--text-muted); margin-top:2px; }
    .cmp-modes { display:flex; gap:4px; margin-left:auto; background:var(--surface2); border:0.5px solid var(--border); border-radius:6px; padding:3px; }
    .cmp-mode { background:none; border:0; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:11.5px; font-weight:500; padding:5px 12px; border-radius:4px; cursor:pointer; }
    .cmp-mode:hover { color:var(--text); }
    .cmp-mode.active { background:var(--brand); color:#1a1c20; font-weight:600; }
    .cmp-x { background:none; border:0; color:var(--text-muted); font-size:16px; cursor:pointer; padding:2px 6px; flex-shrink:0; }
    .cmp-x:hover { color:var(--text); }
    .cmp-body { flex:1; min-height:0; padding:16px; }
    .cmp-side { display:flex; gap:16px; }
    .cmp-pane { flex:1; min-width:0; display:flex; flex-direction:column; }
    .cmp-pane-tag, .cmp-wipe-tag { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:600; color:var(--text); margin-bottom:8px; }
    .cmp-age { font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); border:0.5px solid var(--border); border-radius:3px; padding:1px 5px; }
    .cmp-age-new { color:var(--brand); border-color:rgba(251,176,59,0.4); }
    .cmp-stage { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; background:#0d0d0d; border:0.5px solid var(--border); border-radius:8px; overflow:hidden; }
    .cmp-img { max-width:100%; max-height:100%; object-fit:contain; display:block; user-select:none; }
    /* Wipe: both layers occupy the same box so pixels line up; only the top is clipped. */
    .cmp-wipe { display:flex; }
    .cmp-wipe-stage { position:relative; flex:1; min-height:0; background:#0d0d0d; border:0.5px solid var(--border); border-radius:8px; overflow:hidden; cursor:col-resize; }
    .cmp-layer { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
    .cmp-layer-top { will-change:clip-path; }
    .cmp-divider { position:absolute; top:0; bottom:0; width:2px; background:var(--brand); transform:translateX(-1px); cursor:col-resize; z-index:3; }
    .cmp-divider-grip { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:22px; height:22px; border-radius:50%; background:var(--brand); box-shadow:0 1px 6px rgba(0,0,0,0.6); }
    .cmp-divider.dragging .cmp-divider-grip { transform:translate(-50%,-50%) scale(1.15); }
    .cmp-wipe-tag { position:absolute; top:10px; z-index:4; margin:0; background:rgba(0,0,0,0.6); padding:4px 8px; border-radius:4px; backdrop-filter:blur(2px); }
    .cmp-wipe-left { left:10px; }
    .cmp-wipe-right { right:10px; }
    /* Shared transport — one control drives both players */
    .cmp-transport { display:flex; align-items:center; gap:12px; padding:10px 18px 14px; flex-shrink:0; border-top:1px solid #272727; }
    .cmp-play { width:30px; height:30px; border-radius:50%; background:var(--brand); border:0; color:#1a1c20; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
    .cmp-play:hover { filter:brightness(1.06); }
    .cmp-scrub { flex:1; min-width:0; accent-color:var(--brand); cursor:pointer; }
    .cmp-time { font-family:'Inter',sans-serif; font-size:11.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; flex-shrink:0; }
    .cmp-sync { font-size:10px; color:var(--text-muted); font-variant-numeric:tabular-nums; border:0.5px solid var(--border); border-radius:3px; padding:1px 5px; flex-shrink:0; }
    .cmp-stage video.cmp-img, .cmp-layer video.cmp-img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
    /* Per-pane mini timeline — hosts the shared .rv-marker component */
    .cmp-mini { position:relative; height:20px; margin-top:8px; background:var(--surface2); border-radius:3px; flex-shrink:0; }
    /* Cross-reference comments panel */
    .cmp-comments { flex-shrink:0; border-top:1px solid #272727; display:flex; flex-direction:column; min-height:0; max-height:38%; }
    .cmp-comments.collapsed { max-height:none; }
    .cmp-comments.collapsed .cmp-cm-list { display:none; }
    .cmp-cm-head { display:flex; align-items:center; gap:8px; padding:9px 18px; flex-shrink:0; }
    .cmp-panel-toggle { display:flex; align-items:center; gap:6px; background:none; border:0; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; cursor:pointer; padding:2px 0; }
    .cmp-panel-toggle:hover { color:var(--text); }
    .cmp-panel-toggle svg { transition:transform .15s; }
    .cmp-panel-toggle.open svg { transform:rotate(180deg); }
    .cmp-chip { display:inline-flex; align-items:center; gap:6px; border-radius:12px; font-family:'Inter',sans-serif; font-size:11px; font-weight:600; padding:3px 10px; cursor:pointer; border:0.5px solid transparent; }
    /* Warm = older, cool = newer — same warm/cool split the review UI already uses for
       client (gold) vs internal (purple) markers. */
    .cmp-chip-older { background:rgba(251,176,59,0.16); color:#FBB03B; border-color:rgba(251,176,59,0.45); }
    .cmp-chip-newer { background:rgba(110,155,200,0.16); color:#6E9BC8; border-color:rgba(110,155,200,0.45); }
    .cmp-chip.off { background:transparent; color:var(--text-muted); border-color:var(--border); }
    .cmp-chip-n { font-size:10px; opacity:0.85; font-variant-numeric:tabular-nums; }
    .cmp-cm-list { overflow-y:auto; padding:0 18px 14px; min-height:0; }
    .cmp-cm-empty { font-size:11.5px; color:var(--text-muted); padding:4px 0 10px; }
    .cmp-cm { display:flex; gap:9px; padding:8px 10px; border-radius:6px; border-left:2px solid transparent; margin-bottom:6px; background:var(--surface2); }
    .cmp-cm-older { border-left-color:#FBB03B; }
    .cmp-cm-newer { border-left-color:#6E9BC8; }
    .cmp-cm.resolved { opacity:0.55; }
    .cmp-cm.flash { outline:1.5px solid var(--brand); }
    .cmp-cm-av { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:8.5px; font-weight:700; color:#fff; flex-shrink:0; }
    .cmp-cm-body { min-width:0; flex:1; }
    .cmp-cm-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:3px; }
    .cmp-cm-au { font-size:11.5px; font-weight:600; color:var(--text); }
    .cmp-cm-side { font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); border:0.5px solid var(--border); border-radius:3px; padding:0 4px; }
    .cmp-cm-tc { font-size:10px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
    .cmp-cm-anno, .cmp-cm-done { font-size:9.5px; color:var(--text-muted); }
    .cmp-cm-tx { font-size:12px; color:var(--text); line-height:1.5; word-break:break-word; }
    @media (max-width:760px) { .cmp-side { flex-direction:column; } .cmp-panel { height:92vh; } }
    .vh-btn { background:#0d0d0d; border:1px solid #303030; color:#c8c8c8; font-size:11.5px; font-weight:600; padding:6px 11px; border-radius:6px; cursor:pointer; }
    .vh-btn:hover { border-color:#4a4a4a; color:#fff; }
    .vh-btn.danger { color:#e24b4a; border-color:rgba(226,75,74,0.3); }
    .vh-btn.danger:hover { border-color:#e24b4a; background:rgba(226,75,74,0.08); }
    .vh-note { font-size:11px; color:#7a7a7a; line-height:1.55; padding:10px 4px 4px; }
    .vh-note b { color:#b0b0b0; }
    .vh-del-head { font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#787878; font-weight:600; padding:8px 4px 2px; }
    .vh-row.vh-deleted { opacity:0.72; }
    .vh-row.vh-deleted .vh-thumb { background:#1a1414; }
    .vh-trash { color:#e24b4a; }
    /* Item 620 — the stuck-delivery callout on Status. Alarm ink because it IS an alarm: a client not told. */
    .sp-alert { margin:14px 0 6px; padding:14px 16px; border:1px solid rgba(226,75,74,0.45); border-radius:10px; background:rgba(226,75,74,0.08); }
    .sp-alert-title { font-size:13px; font-weight:700; color:#f0a09f; }
    .sp-alert-sub { font-size:12px; color:var(--text-muted); margin-top:4px; line-height:1.5; }
    .sp-alert-row { display:flex; align-items:center; gap:12px; padding:8px 0 0; font-size:12.5px; }
    .sp-alert-name { flex:1; min-width:0; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sp-alert-age { color:var(--text-muted); white-space:nowrap; }
    .sp-alert-btn { background:#0d0d0d; border:1px solid rgba(226,75,74,0.5); color:#f0a09f; font-size:11.5px; font-weight:600; padding:5px 10px; border-radius:6px; cursor:pointer; }
    .sp-alert-btn:hover { background:rgba(226,75,74,0.14); }
    .sp-alert-btn:disabled { opacity:0.5; cursor:not-allowed; }
    /* Item 714 1c: the brake banner rides the same warning recipe, inset to the content column. */
    .ssb-banner { margin:14px 24px 0; }
    .ssb-quiet { margin:10px 0 0; font-size:12px; color:var(--text-muted); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    /* ⟦item 871⟧ the 8am client email's pause: the admin switch beside the brake, and the admin banner while paused. Blue, not gold
       (gold means waiting on you) and not the brake's red (nothing is broken: emails are held on purpose). */
    #proj-digest-pause[hidden], .dgp-banner[hidden] { display:none; }
    /* ⟦item 1074⟧ the Monday recap preview (admins): the 8am switch's button look, a quiet list under it */
    #proj-recap-preview[hidden] { display:none; }
    .mrc-prev { margin:8px 0 0; font-size:12px; color:var(--text-muted); }
    .mrc-out { margin-top:8px; line-height:1.55; }
    .mrc-out:empty { display:none; }
    .mrc-head { color:var(--text-primary); font-weight:600; }
    .mrc-client { margin-top:6px; color:var(--text-primary); font-weight:600; }
    .mrc-person { padding-left:12px; }
    .mrc-item { padding-left:24px; }
    /* the avatar menu's sheet (admins): white card over a dim page, both themes, readable at 390 */
    .mrc-sheet { position:fixed; inset:0; z-index:9000; background:rgba(10,12,16,0.45); display:flex; align-items:flex-start; justify-content:center; padding:64px 16px 16px; }
    .mrc-sheet[hidden] { display:none; }
    .mrc-sheet-in { background:#ffffff; color:#16161a; width:min(640px,100%); max-height:calc(100vh - 96px); overflow:auto; border-radius:12px; padding:16px 18px 18px; box-shadow:0 12px 40px rgba(0,0,0,0.25); font-size:13px; }
    .mrc-sheet-hd { display:flex; align-items:center; justify-content:space-between; font-weight:700; font-size:15px; }
    .mrc-x { background:none; border:0; font-size:22px; line-height:1; cursor:pointer; color:#5d6070; padding:2px 6px; }
    .mrc-sheet .mrc-prev, .mrc-sheet .mrc-head, .mrc-sheet .mrc-client { color:#16161a; }
    .mrc-sheet .mrc-prev { color:#5d6070; font-size:13px; }
    .dgp-btn { background:#0d0d0d; border:1px solid rgba(91,141,239,0.5); color:#9dbcf5; font-size:11.5px; font-weight:600; padding:5px 10px; border-radius:6px; cursor:pointer; }
    .dgp-btn:hover { background:rgba(91,141,239,0.14); }
    .dgp-btn:disabled { opacity:0.5; cursor:not-allowed; }
    .dgp-banner { margin:14px 0 6px; padding:10px 14px; border:1px solid rgba(91,141,239,0.45); border-radius:10px; background:rgba(91,141,239,0.08); display:flex; align-items:center; gap:6px 10px; flex-wrap:wrap; font-size:13px; color:var(--text); }
    .dgp-banner .dgp-dot { color:var(--text-muted); }
    /* ⟦item 1081⟧ the welcome email: the client's Contacts sheet and the "Send welcome email" dialog (admins). The mock's section 2: the
       team's dark card, steel Send, a gold "Already sent" note. Not v5-scoped (it opens over any team page, like the Monday recap's sheet). */
    .wl-sheet { position:fixed; inset:0; z-index:400; background:rgba(8,8,10,0.55); display:flex; align-items:flex-start; justify-content:center; padding:64px 16px 16px; }
    #wl-dialog.wl-sheet { z-index:405; }
    .wl-sheet[hidden] { display:none; }
    .wl-in { background:#1b1b1f; color:#ececf0; border:1px solid #2a2a30; width:min(560px,100%); max-height:calc(100vh - 96px); overflow:auto; border-radius:14px; padding:16px 18px; box-shadow:0 12px 40px rgba(0,0,0,0.45); font-size:14px; line-height:1.5; }
    .wl-hd { display:flex; align-items:center; justify-content:space-between; gap:10px; font-weight:700; font-size:17px; }
    .wl-x { background:none; border:0; font-size:22px; line-height:1; cursor:pointer; color:#a0a0aa; padding:2px 6px; }
    .wl-f { margin-top:12px; }
    .wl-f label { display:block; font-size:12px; color:#a0a0aa; font-weight:700; margin-bottom:5px; text-transform:none; letter-spacing:normal; }
    .wl-box { background:#121214; border:1px solid #34343c; border-radius:8px; padding:9px 11px; font-size:14px; }
    .wl-to { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
    .wl-mute { color:#a0a0aa; }
    .wl-pill { font-size:11.5px; font-weight:700; border-radius:999px; padding:2px 9px; background:#1a2433; color:#7fa6d6; white-space:nowrap; }
    .wl-seen { color:#f3d79c; background:#2e2412; border-radius:8px; padding:8px 10px; font-size:13px; margin-top:12px; }
    .wl-err { color:#f0a8a0; background:#2e1614; border-radius:8px; padding:8px 10px; font-size:13px; margin-top:12px; }
    .wl-btns { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:14px; }
    .wl-gap { margin-left:auto; }
    .wl-btn { border:1px solid #3a3a42; border-radius:8px; padding:7px 14px; font-weight:700; font-size:13.5px; background:#18181b; color:#ececf0; cursor:pointer; font-family:inherit; }
    .wl-btn:disabled { opacity:0.5; cursor:not-allowed; }
    .wl-steel { background:#3d6f9e; border-color:#3d6f9e; color:#fff; }
    .wl-note { color:#a0a0aa; font-size:12.5px; margin-top:8px; }
    .wl-frame { display:block; width:100%; height:640px; border:0; border-radius:10px; margin-top:12px; background:#eef0f3; }
    .wl-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #2a2a30; }
    .wl-row:last-child { border-bottom:0; }
    .wl-who { display:flex; flex-direction:column; min-width:0; flex:1; }
    .wl-who .wl-mute { font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .wl-sent { font-size:12px; color:#a0a0aa; white-space:nowrap; }
    .wl-more { background:none; border:1px solid #3a3a42; color:#ececf0; border-radius:8px; padding:2px 10px; font-size:16px; cursor:pointer; }
    @media (max-width:520px) { .wl-sent { display:none; } }
    /* ⟦item 844⟧ the day's count: amber from 60% of the brake's day line; "By source" opens the day's breakdown under it. */
    .ssb-quiet.ssb-warn > .ssb-count { color:var(--gold); font-weight:600; }
    .ssb-src { flex-basis:100%; display:grid; grid-template-columns:auto auto; justify-content:start; column-gap:16px; row-gap:2px; font-size:11.5px; padding:4px 0 2px; }
    .ssb-src > .ssb-n { text-align:right; font-variant-numeric:tabular-nums; color:var(--text); }
    /* Item 612 — the archive rows. Historical, not alarming: same muting as deleted, a neutral glyph, and a
       comment list that inherits the panel's card styling with the tools simply not rendered. */
    .vh-row.vh-archived { opacity:0.86; align-items:flex-start; }
    .vh-arch-ph { color:#8a8a8a; }
    .vh-arch-tag { font-size:8.5px; font-weight:800; letter-spacing:.06em; color:#c9c9c9; background:#2a2a2a; padding:2px 5px; border-radius:3px; }
    .vh-arch-comments { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
    .vh-arch-comments .comment-card { cursor:default; }
    .comment-card.cc-readonly .cc-circle.cc-static { cursor:default; pointer-events:none; }
    .vh-del-when { color:#e24b4a; }
    /* ── Batch upload modal ───────────────────────────────────────────────── */
    .bu-card { position:relative; width:100%; max-width:680px; max-height:88vh; display:flex; flex-direction:column; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; box-shadow:0 20px 60px rgba(0,0,0,0.4); }
    .bu-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:22px 24px 14px; }
    .bu-head .puz-title { font-family:'Inter',sans-serif; font-weight:600; font-size:16px; }
    .bu-drop { margin:0 24px; min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1.5px dashed var(--border); border-radius:4px; padding:18px; text-align:center; cursor:pointer; transition:all .15s; }
    .bu-drop.dragging { border-color:var(--brand); background:rgba(247,147,30,0.06); }
    .bu-drop-main { font-size:.9rem; color:var(--text); font-family:'Inter',sans-serif; }
    .bu-drop-hint { font-size:.75rem; color:var(--text-muted); margin-top:4px; font-family:'Inter',sans-serif; }
    .bu-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 24px 8px; font-size:.78rem; color:var(--text-muted); }
    .bu-allint { display:flex; align-items:center; gap:8px; }
    .bu-link { color:var(--brand); cursor:pointer; }
    .bu-queue { flex:1; overflow-y:auto; padding:4px 24px; display:flex; flex-direction:column; gap:10px; }
    .bu-empty { color:var(--text-muted); font-size:.82rem; text-align:center; padding:18px 0; }
    .bu-item { background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; padding:12px; }
    /* Two-column grid row layout. */
    .bu-fname-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
    .bu-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px; }
    .bu-field { display:flex; flex-direction:column; gap:4px; min-width:0; }
    .bu-flabel { font-size:0.72rem; letter-spacing:0; color:var(--text-muted); font-family:'Inter',sans-serif; }
    .bu-flabel .bu-flabel-suffix { opacity:.7; }
    .bu-release-row { display:flex; align-items:center; padding-top:18px; }
    .bu-item.drag-over { border-color:var(--brand); }
    .bu-item-row { display:flex; align-items:center; gap:10px; }
    .bu-grip { cursor:grab; color:var(--text-muted); flex-shrink:0; display:flex; }
    .bu-ficon { flex-shrink:0; color:var(--text-muted); display:flex; }
    .bu-fields { flex:1; min-width:0; }
    .bu-fname { font-size:.7rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:5px; font-family:'Inter',sans-serif; }
    .bu-title-input { width:100%; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:.85rem; padding:6px 8px; outline:none; font-family:'Inter',sans-serif; }
    .bu-title-input:focus { border-color:var(--brand); }
    .bu-ver-input { width:100%; }
    .bu-item > .bu-field { margin-top:8px; }
    .bu-preview-row { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
    .bu-preview-label { font-size:0.62rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); font-family:'Inter',sans-serif; flex-shrink:0; }
    .bu-preview { font-family:'SFMono-Regular',ui-monospace,Menlo,Consolas,monospace; font-size:.78rem; color:#FBB03B; background:rgba(251,176,59,0.08); border:0.5px solid rgba(251,176,59,0.22); border-radius:4px; padding:4px 8px; word-break:break-all; min-width:0; }
    .bu-x { flex-shrink:0; background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:18px; line-height:1; font-family:'Inter',sans-serif; }
    .bu-asset-row { display:flex; align-items:center; gap:8px; margin-top:8px; padding-left:34px; }
    .bu-asset-select { flex:1; min-width:0; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:.8rem; padding:6px 8px; outline:none; font-family:'Inter',sans-serif; }
    /* ⚠️ THE .bu-type-* CUSTOM DROPDOWN IS GONE — ten rules deleted 2026-08-11, item 214.
       It had NO JS renderer: nothing in the file ever built .bu-type-btn, .bu-type-menu or
       .bu-type-opt. The live Type pickers are the two NATIVE selects (.um-set-select and the
       .um-chip select), both of which read STD_ASSET_TYPES. Its JS half — BU_ASSET_TYPES,
       assetTypeCfg, ASSET_TYPE_NAME, defaultAssetType, defaultAssetName, BU_TYPE_DEFAULT_NAME
       — is ALSO unreferenced and is left in place pending a decision; see item 214. Do not
       re-add a rule here without a renderer: a stylesheet for a picker that does not exist is
       what made this look live for months (item 159's .ag-badge, same family). */
    .bu-vtag { flex-shrink:0; font-size:.7rem; font-weight:600; padding:3px 8px; border-radius:4px; white-space:nowrap; }
    .bu-vtag.new { background:rgba(50,180,100,0.14); color:var(--approved); }
    .bu-vtag.existing { background:rgba(255,150,60,0.16); color:#FF9A3D; }
    .bu-foot-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; padding:8px 0 0 34px; border-top:0.5px solid var(--border); }
    .bu-int { display:flex; align-items:center; gap:8px; }
    .bu-int-label { font-size:.72rem; color:var(--text-muted); font-family:'Inter',sans-serif; }
    .bu-int-label.on { color:var(--internal); }
    .bu-status { font-size:.72rem; }
    .bu-status.waiting { color:var(--text-muted); }
    .bu-status.uploading { color:#FF9A3D; }
    .bu-status.done { color:var(--approved); }
    .bu-status.error { color:#E24B4A; }
    .bu-pbar { height:4px; background:var(--surface); border-radius:2px; overflow:hidden; margin-top:8px; display:none; }
    .bu-pbar.show { display:block; }
    .bu-pfill { height:100%; background:#FF9A3D; width:0%; transition:width .2s; }
    .bu-footer { padding:14px 24px 20px; }
    .bu-upload-btn { width:100%; background:var(--brand); color:#1a1c20; border:none; border-radius:4px; padding:11px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; font-size:.9rem; }
    .bu-upload-btn:disabled { opacity:.45; cursor:default; }
    /* compact toggle reused for per-item internal review */
    .bu-toggle { position:relative; display:inline-block; width:34px; height:18px; flex-shrink:0; cursor:pointer; }
    .bu-toggle input { opacity:0; width:0; height:0; }
    .bu-toggle .bu-track { position:absolute; inset:0; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; transition:all .15s; }
    .bu-toggle .bu-knob { position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:var(--text-muted); transition:all .15s; }
    .bu-toggle input:checked + .bu-track { background:var(--internal-bg); border-color:var(--internal-border); }
    .bu-toggle input:checked + .bu-track .bu-knob { left:18px; background:var(--internal); }
    /* ── Master-detail upload modal ─────────────────────────────────────────── */
    .bu-card-wide { max-width:760px; }
    .bu-split { flex:1; display:flex; min-height:0; border-top:0.5px solid var(--border); }
    .bu-left { flex:0 0 170px; overflow-y:auto; border-right:0.5px solid var(--border); padding:8px; display:flex; flex-direction:column; gap:4px; }
    .bul-empty { color:var(--text-muted); font-size:.76rem; text-align:center; padding:16px 6px; }
    .bul-row { display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:4px; cursor:pointer; border-left:2px solid transparent; background:var(--surface2); }
    .bul-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
    .bul-x { flex-shrink:0; background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:12px; line-height:1; padding:2px 4px; border-radius:3px; opacity:0; transition:opacity .12s, color .12s, background .12s; }
    .bul-row:hover .bul-x { opacity:1; }
    .bul-x:hover { color:#E24B4A; background:rgba(226,75,74,0.12); }
    .bul-row:hover { background:rgba(255,255,255,0.04); }
    .bul-row.active { border-left-color:var(--brand); background:rgba(251,176,59,0.08); }
    .bul-label { font-size:.8rem; color:var(--text); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .bul-status { font-size:.68rem; }
    .bul-status.waiting { color:var(--text-muted); }
    .bul-status.uploading { color:#FF9A3D; }
    .bul-status.done { color:var(--approved); }
    .bul-status.error { color:#E24B4A; }
    .bu-detail { flex:1; min-width:0; overflow-y:auto; padding:16px 18px; }
    .bud-empty { color:var(--text-muted); font-size:.82rem; text-align:center; padding:40px 12px; }
    .bud-fname { font-size:.72rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:12px; font-family:'Inter',sans-serif; }
    .bud-field { display:flex; flex-direction:column; gap:4px; }
    .bud-field + .bud-field, .bu-grid2 + .bud-field, .bud-field + .bu-grid2 { margin-top:10px; }
    /* Inline "Card will show:" hint (replaces the boxed preview). */
    .bud-cardline { display:flex; align-items:center; gap:6px; margin-top:6px; font-size:.72rem; color:var(--text-muted); }
    .bud-cardline svg { width:13px; height:13px; flex-shrink:0; opacity:.8; }
    .bud-cardline .bud-cardline-val { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .bud-reset { background:none; border:none; color:var(--brand); font-size:0.62rem; text-transform:none; letter-spacing:0; cursor:pointer; padding:0 0 0 6px; font-family:'Inter',sans-serif; }
    .bud-reset:hover { text-decoration:underline; }
    .bud-portalfn { font-family:'SFMono-Regular',ui-monospace,Menlo,Consolas,monospace; font-size:.72rem; color:var(--text); background:var(--surface-1); border:0.5px solid var(--border); border-radius:4px; padding:6px 8px; word-break:break-all; }
    .bud-origfn { font-family:'SFMono-Regular',ui-monospace,Menlo,Consolas,monospace; font-size:.68rem; color:var(--text-muted); margin-top:4px; word-break:break-all; opacity:.8; }
    .bud-error { margin-top:12px; font-size:.75rem; color:#E24B4A; background:rgba(226,75,74,0.1); border:0.5px solid rgba(226,75,74,0.28); border-radius:4px; padding:8px 10px; line-height:1.45; }
    /* Duplicate-name confirmation overlay (inside the upload modal). */
    .bu-dup-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; z-index:10; border-radius:4px; padding:20px; }
    .bu-dup-box { background:var(--surface); border:0.5px solid var(--border); border-radius:8px; padding:20px; max-width:420px; width:100%; box-shadow:0 12px 40px rgba(0,0,0,0.5); }
    .bu-dup-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; color:var(--text); margin-bottom:8px; }
    .bu-dup-msg { font-size:.82rem; color:var(--text-muted); line-height:1.5; margin-bottom:14px; }
    .bu-dup-preview { background:var(--surface-1); border:0.5px solid var(--border); border-radius:6px; padding:10px 12px; margin-bottom:16px; }
    .bu-dup-prev-name { font-family:'Montserrat',sans-serif; font-weight:600; font-size:13px; color:var(--text); }
    .bu-dup-prev-meta { font-size:.72rem; color:var(--text-muted); margin-top:3px; }
    .bu-dup-actions { display:flex; flex-direction:column; gap:8px; }
    .bu-dup-primary { background:var(--brand); color:#1a1c20; border:none; border-radius:6px; padding:10px; font-weight:600; font-size:.85rem; cursor:pointer; font-family:'Inter',sans-serif; }
    .bu-dup-secondary { background:transparent; color:var(--text-muted); border:0.5px solid var(--border); border-radius:6px; padding:10px; font-weight:500; font-size:.85rem; cursor:pointer; font-family:'Inter',sans-serif; }
    .bu-dup-secondary:hover { color:var(--text); border-color:var(--text-muted); }
    .bud-checks { margin-top:14px; display:flex; flex-direction:column; gap:9px; }
    .bud-check { display:flex; align-items:center; gap:8px; font-size:.8rem; color:var(--text-muted); cursor:pointer; user-select:none; }
    .bud-check input { cursor:pointer; }
    .bud-check:hover { color:var(--text); }
    .bud-progress { margin-top:14px; }
    .bud-pbar { height:5px; background:var(--surface); border-radius:3px; overflow:hidden; }
    .bud-pfill { height:100%; background:#FF9A3D; width:0%; transition:width .2s; }
    .bud-pstatus { font-size:.72rem; margin-top:6px; }
    /* ── Docked upload progress pill ────────────────────────────────────────── */
    .upload-pill { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:400; display:flex; align-items:center; gap:10px; background:#1e1e1e; border:0.5px solid rgba(255,255,255,0.14); border-radius:22px; box-shadow:0 8px 28px rgba(0,0,0,0.45); padding:10px 18px; cursor:pointer; font-size:.82rem; color:var(--text); font-family:'Inter',sans-serif; }
    .upload-pill:hover { border-color:rgba(255,255,255,0.28); }
    .upload-pill .up-spin { width:15px; height:15px; border:2px solid rgba(255,255,255,0.2); border-top-color:var(--brand); border-radius:50%; animation:up-spin 0.7s linear infinite; flex-shrink:0; }
    .upload-pill.done { color:var(--approved); }
    @keyframes up-spin { to { transform:rotate(360deg); } }
    .ag-thumb { position:relative; width:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:12px 12px 0 0; }
/* ⚠️ ONE RATIO, ONE RULE — 16:9 on EVERY preview, primary and secondary alike. The
       per-card overrides are gone: the primary's own 16/9 rule and the secondary's 1/1 both
       collapse into this. A 16:9 image in a 16:9 box needs no letterboxing, which is what
       removes the maroon bars the portrait secondary was showing. */
    /* ⚠️ THE BAND ABSORBS THE ROW; IT IS NOT SIZED BY A RATIO. REVERSED 2026-08-08 — AND THE
       FIXED 16:9 WAS NEVER THE DESIGN'S. §2.1's authored values are `min-height:150px; flex:1`
       for the video band and `min-height:62px; flex:1` for the small one, with the footer
       `flex:none`. The band therefore takes whatever the row leaves, closure is AUTOMATIC at any
       width, and the band RATIO simply varies (1.04:1 at 836px, 2.24:1 at 1560px). That
       variation is the intended mechanism, not a defect to correct.
       ⚠️ DO NOT REINTRODUCE aspect-ratio HERE. Pass 7 imposed a fixed ratio on every preview, and
       five passes of arithmetic followed from it — the closure condition F_p = 2·F_s + 7 (item
       116) and items 113, 114, 117 and 121 were all CORRECT GIVEN THAT PREMISE, and the premise
       was ours rather than the design's. Fixing a ratio here is what makes footer heights
       load-bearing; letting the band flex is what makes them free. See item 131.
       MEASURED under the case built to break it — footers deliberately violating the old
       condition, at 836/1004/1560px: closure error 0, dead space 1px, every time. */
    /* ⚠️ `container-type:size` WAS HERE AND IS REMOVED, BECAUSE ITS ONLY CONSUMER IS GONE. It
       existed to make `cqh` meaningful for the motifs; with the role split — controls and glyphs
       fixed, artwork filling via padding + flex — not one cqh declaration survives. Keeping it
       would leave a real hazard buying nothing: size containment makes the band ignore its own
       contents, so it pairs `aspect-ratio` into a load-bearing invariant where removing the ratio
       empties every card silently. A mechanism whose purpose has gone is not free to leave in
       place; it is a trap with no upside. See item 134. */
    /* ⚠️ `container-type:inline-size` IS BACK — THE THIRD MOVE ON THIS PROPERTY, and it is the
       exact path item 353's removal note prescribed: "if a THIRD consumer ever wants it, it
       comes back WITH that consumer, in one commit." The consumer is `--wv-u` on .ag-wave
       (item 355): the glyph's scale unit, `clamp(1px, 100cqw/177, 4px)`. History, because three
       moves on one property invites a fourth made casually:
         · item 134 removed `size`        — its cqh consumers left with the role split
         · item 276 added `inline-size`   — the /6.5 scaling wave consumed cqw
         · item 353 removed it            — the fixed 59px glyph consumed nothing
         · item 355 restores it           — the glyph now SCALES AS A UNIT via --wv-u
       Same rule throughout: containment exists exactly when a cq unit consumes it, and
       grid-closure-condition's own assertion enforces that in both directions. `inline-size`,
       never `size` (item 134: `size` pairs aspect-ratio into an invariant where losing the
       ratio silently empties every card). */
    .ag-thumb { aspect-ratio:16/9; flex:1 0 auto; padding:34px 0 30px; background-color:var(--ag-fill);
                container-type:inline-size; }
    /* ⚠️ BOTH BANDS ABSORB, and the secondary is the half that has been wrong twice. Item 113
       added the fill because the row was taller than the secondary's content and SOMETHING had
       to absorb the difference or it rendered as flat colour; pass 7 removed it again on the
       grounds that a satisfied closure condition left nothing to absorb. Both were right about
       their own premise. With the ratio gone the difference is back and permanent — it is how a
       flexible band works — so the absorber is not optional and there is no arithmetic that
       could make it so. */
    /* ⚠️ NO SECONDARY OVERRIDE, AND ITS ABSENCE IS THE POINT. The base rule above already
       gives every band the same contract — a 16:9 floor that grows. A per-card rule here is how
       the secondary came to disagree with the primary three times (1/1 basis, flex removed,
       flex restored); with one rule there is nothing to disagree with. Guarded: no rule may
       reintroduce flex-shrink on a secondary band. */
    .ag-thumb img.ag-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
    /* ⚠️ PORTRAIT FITS TO HEIGHT AND LETTERBOXES — item 593, and it is ONE rule on ONE element.
       `cover` is right for a landscape preview (item 117's ruling stands, untouched); on a 9:16
       frame in a 16:9 box it discards roughly the top and bottom two-thirds.
       ⚠️ THE BARS ARE THE IMG'S OWN BACKGROUND, NOT .ag-thumb's. The element already spans the
       whole box (inset:0), so `contain` fits the frame inside it and the element's background
       paints the remainder — black, per the ruling, without touching .ag-thumb's --ag-fill tint,
       which still governs every other card and the bands around this one.
       ⚠️ SCOPED TO THIS SELECTOR DELIBERATELY. The audit found six other LIVE `cover` thumbnails
       with the same behaviour (.rv-scrub-preview, .card-thumb, .vh-thumb, .um-meta-thumb,
       .ui-dialog-choice-thumb, .md-pcard-thumb — 593d ruled the crop there a design call; two more
       it listed, .asset-thumb and .deliverable-thumb, were CSS nothing wore and went in 593e);
       each is its own judgement about whether a thumb that small previews or represents.
       The review page needs nothing — .review-stage already uses contain. */
    .ag-thumb img.ag-img.is-portrait { object-fit:contain; background:#000; }
    /* ⚠️ THE PER-TYPE `contain` OVERRIDE IS WITHDRAWN — every preview now uses the base `cover`.
       It was ruled in to protect 9:16 verticals from cropping, and that ruling rested on numbers
       the ratio floor has since invalidated: `cover` showed 9.3–17.5% of a vertical when the band
       was 3.2:1–6:1, and shows **32–36%** at the shipped near-16:9 ratios. Measured, not assumed.
       ⚠️ AND LANDSCAPE IS NOT A REASON TO PREFER EITHER. The primary band is NOT 16:9 — 16/9 is a
       FLOOR and the two-row span grows it to 1.571–1.661 — so a landscape poster is 6–12% short
       of filling under `contain` AND loses 6–12% under `cover`. The asymmetry is only about
       verticals: `cover` shows ~35% of the frame, `contain` leaves ~65% of the band EMPTY. A
       cropped frame still tells you what the asset is, which is the card's job; an empty band
       does not. The secondary band sits at exactly 1.778 and is unaffected either way.
       ⚠️ IF A CLIENT EVER DELIVERS VERTICALS AND THE CROP READS BADLY, the answer is a PER-ASSET
       override, not reverting this default. The estate has no known verticals and dimensions are
       unstored, so the population cannot be counted — see item 136. */

    /* ── BAND FILL ─────────────────────────────────────────────────────────────────────────────
       ⚠️ DERIVED FROM THE CARD FILL, NEVER A SECOND TABLE. The band is the card's own
       assetTypeFill darkened by a flat black overlay, so it cannot drift from the palette and
       adding a type needs no new value. Pass 1's finding was that ring and fill lived in two
       tables and the card read the wrong one; a band COLUMN beside them would be that mistake
       with a third column.
       ⚠️ TWO ALPHAS, SPLIT BY IMAGE-BACKED vs NOT — and the split reuses the selector list
       immediately above rather than restating it. Those four types normally show a PHOTOGRAPH,
       which is why pass 1 gave them object-fit:contain; their band is seen only when empty, so it
       goes deep. Transcript and publish details never show one — their band is the surface their
       artwork reads against, so it stays light.
       ⚠️ 0.6 IS THE MEAN OF THE MEASURED SET, NOT A ROUND NUMBER. The reconciliation report's
       invented band values imply black-overlay alphas of 0.68 (video), 0.54 (thumbnail) and 0.57
       (image) — mean 0.596. 0.6 reproduces all three within ~3 units per channel. Graphic's 0.31
       is not preserved: it was the outlier in an INVENTED set (only the type colour and card fill
       came from the client), and it joins its family. See item 135.
       The overlay composites over the inline background-COLOR the renderer emits; a full-bleed
       poster is an absolutely-positioned <img> that paints on top, so this is the empty-state and
       artwork/glyph surface only. */
    /* ⚠️ ONE RULE, PER-TYPE BY PROPERTY — the four-selector "deep band" list is GONE. The alpha
       now travels with the fill from the same palette row (`--ag-band-a`, beside `--ag-fill`),
       so adding a type needs no selector here and no second place to keep in step.
       ⚠️ THE ROLE SPLIT DISSOLVED INTO THE TABLE. image-backed-vs-not was a two-value
       approximation of what §7.1 actually specifies: video 0.68, image 0.571, thumbnail 0.536,
       graphic 0.310, everything else 0.28. The screenshots corroborate the spread — the video
       hero reads near-black while image and graphic read visibly maroon and plum — so a single
       alpha was measurably wrong, not merely coarse. */
    .ag-thumb { background-image:linear-gradient(rgba(0,0,0,var(--ag-band-a,0.28)), rgba(0,0,0,var(--ag-band-a,0.28))); }
    /* ── Transcript card state badge ──────────────────────────────────────────────────
       Its own vocabulary, sharing the stage pill's slot only when the stage is silent.
       NO gold (decision), NO Signal Orange (unsaved), NO green (approved) — a transcript is
       a working surface and none of those three claims applies to it. Only the settled
       state is FILLED; the other two are quiet because they describe work in progress. */
    .tr-card-badge { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:600; letter-spacing:.03em; padding:2px 7px; border-radius:4px; white-space:nowrap; font-family:'Inter',sans-serif; }
    /* Slate-blue: informational, the same role the fold note and thumbnail badge already
       carry. "You have marks here" is a fact about the work, not a state of approval. */
    /* ⚠️ FILLS FLIPPED 2026-08-04 — "only the SETTLED state is filled" became "only the
       ACTIONABLE state is filled". {n} notes is the state that wants someone to do something,
       so it takes the solid slate; ✓ Reviewed is finished and goes quiet. The VOCABULARY is
       unchanged and deliberately so: Not reviewed / {n} notes / ✓ Reviewed, never the approval
       words, never amber. See CLAUDE.md item 69. */
    .tr-card-reviewed { background:rgba(74,122,153,0.10); color:#8fbdd6; border:0.5px solid rgba(74,122,153,0.35); }
    /* "Your notes needed" — the ASK, and the only transcript badge that is a request rather than
       a progress report, so it is the only one carrying Signal Orange. Not gold and not green:
       neither approval nor completion is involved and a transcript has no Approve control.
       NO LIGHT OVERRIDE, and that is checked rather than assumed (item 82): this badge reaches
       the page only through assetStatusPill, on the asset grid and Transcripts list, which are
       dark for every audience. The client light lock is scoped to trTheme() and therefore to
       #rv-transcript-view — the editor — which this never renders inside. If it is ever reused
       on that surface it needs a light rule, because #FBB03B on a light panel is unreadable. */
    .tr-card-task     { background:rgba(251,176,59,0.14); color:#FBB03B; border:0.5px solid rgba(251,176,59,0.55); }
    /* ⚠️ `.ag-badge` IS DELETED, AND THE CLASS NAME IS NOT FREE — DO NOT REUSE IT.
       It styled the card's top-left type tag, whose MARKUP went in 15dfa78 (item 109). The rule
       survived as an orphan for months with a comment warning not to reuse it. That comment was
       the only thing protecting it, which is the shape that failed three times this stretch:
       item 153's terminator warning that one file knew about while 25 sites used it, and item
       156's "pair every negative" rule that did not prevent its own instance. A rule protected
       only by a comment is a rule waiting to be reused.
       ⚠️ WHY REUSE WOULD BITE RATHER THAN MERELY BE UNTIDY: it declared `top:6px; left:6px` —
       the corner the ⋯ menu now occupies (item 137) — and was written for the LIGHT card fill
       that `.ag-card.is-light` provided, which item 109 deleted as dead. Reviving it would put a
       light-card tag under the overflow menu on a dark card. The type label that replaced it is
       `.ag-type-label`, in the FOOTER, and that separation is deliberate. */
    /* Status pill overlaid on the thumb, top-right (replaces the old status dot). */
    /* Flex so the transcript card's TWO pills (review signal + visibility) sit side by side.
       A single-pill card is unaffected — one flex child lays out exactly as it did. Wraps and
       is width-capped because a secondary card is one grid column wide and two pills plus a
       long count would otherwise run off the thumb; right-aligned so the visibility pill holds
       the corner it has always held. */
    .ag-status-overlay { position:absolute; top:6px; right:6px; z-index:2; display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; max-width:calc(100% - 12px); }

    /* ══ TRUNCATION — the badge degrades gracefully instead of being clipped ═══════════════
       ⚠️ THE DEFECT: this overlay is RIGHT-anchored, so an over-wide pill overflows LEFT and is
       cut by .ag-thumb's overflow:hidden — no ellipsis, no error, and only at narrow widths.
       Measured live: it clips at 360 and 320, and has since the badge existed, unseen because
       mobile-content-column.mjs asserted at 390 only.
       ⚠️ NOTHING STRUCTURAL WAS NEEDED, which is worth stating because the shape suggests
       otherwise. The overlay ALREADY declares `max-width: calc(100% - 12px)` — the bound was
       always there. What stopped the pill using it is that a flex item defaults to
       `min-width: auto` and REFUSES to shrink below its content (items 62, 79, 137), and this
       pill additionally declares `flex-shrink: 0`. Both are overridden HERE AND ONLY HERE, so
       every other surface the pill renders on keeps its no-shrink behaviour.
       ⚠️ TRUNCATE RATHER THAN SHORTEN THE COPY ON MOBILE. A second string for one bucket forks
       the vocabulary permanently to solve a rendering problem — the shape this repo has spent two
       days removing (items 130, 147). The badge is one of several signals on the card (its
       colour, its position, the card's own state), so a clipped word degrades gracefully; a
       forked vocabulary does not.
       ⚠️ AND IT MAKES THE INVARIANT ASSERTABLE, which shortening would not have. Shorter copy
       only moves the threshold — some narrower phone clips the shorter string too. Truncation
       changes the question from "is the card wide enough for this text" to "does the badge stay
       inside its container", which is true at every width or false at every width. */
    .ag-status-overlay .del-status-pill,
    .ag-status-overlay .tr-card-badge { min-width:0; flex-shrink:1; overflow:hidden; text-overflow:ellipsis; }

    /* ⚠️ THE TWO NEW TEAM STATES TAKE THE WORK QUEUE'S OWN COLOURS, not new ones.
       renderWorkQueue already buckets `Not visible to client` at #FBB03B and `Revision requests` at
       #E24B4A — using anything else would make two team-facing surfaces disagree about a state
       they both name, which is the drift this whole pass is guarding against on the other axis.
       Team badges stay SOLID (item 110's boundary); only the client set is outline-with-a-dot. */
    /* ⚠️ THE FOUR TEAM SOLIDS JOIN THE FAMILY — item 268. They were the only badges left that
       broke the shape: on a team grid `REVISION REQUESTED` (solid red, white, no dot) sat beside
       `NEEDS REVIEW` and `APPROVED`, which are tinted pills with a dot, because the team map
       reuses badge-ask/badge-done for those two. Converting revision ALONE would have left three
       solids against three tinted — more inconsistent, not less — so all four move together.
       ⚠️ THE INKS DO NOT MOVE, THE PLATES DO (item 146's rule, and it decided the coral). Coral
       needs a 0.91 backing to clear AA against a white frame; lightening the ink to lift it would
       be the move item 146 refused for green, and it would put two team surfaces on different
       reds — renderWorkQueue buckets `Revision requests` at #E24B4A and `Not visible to client` at
       #FBB03B, which is why those two inks are the Work Queue's rather than new ones.
       ⚠️ THE CLIENT SET WAS UNTOUCHED HERE (item 268) — its revision string was `Revisions in
       progress` on badge-quiet, a DIFFERENT string from the team's, and applying the team's then
       would have been a rename rather than a treatment change.
       ⚠️ CORRECTION (item 637, 2026-09-17): the client's revision string and class DID move,
       later, on the operator's explicit instruction — `badge-changes`, carrying the team's own
       --st-revision coral, outlined rather than filled (never the team's SOLID plate; §3's
       outline shape is unchanged for this badge, only its ink). The word changed too: "You
       requested changes", not "Revisions in progress". See CLAUDE-HISTORY item 637 — a RULING
       REVERSED, recorded there rather than silently overwriting this paragraph's history. */
    /* ⚠️ TURNED AGAIN — #b08cf5, THE SAME VIOLET AS THE INTERNAL VISIBILITY MARKER (item 434's
       .ag-internal-mark, var(--rd-violet)), superseding the mauve #D18FA6 tried one build ago.
       Confirmed safe by audit first: agVisibilityState()'s last line is an unconditional
       `a.assetStage === 'internal_review' ? 'internal' : 'client'` for any non-transcript
       asset — there is no code path where this badge's state fires without the marker's
       'internal' also being true for the same asset, so the two sharing a colour cannot ever
       read as a false agreement.
       ⚠️ LITERAL HEX, NOT var(--rd-violet) — DELIBERATELY, not an oversight. Two reasons, both
       measured: (1) checks/client-badge-treatments.mjs's own resolve() extracts raw
       declaration TEXT and never resolves custom properties, so a literal var() reference
       would read as an unparseable colour and the contrast assertions below could not compute
       anything from it — confirmed by reading resolve() before writing this, not assumed; (2)
       this guard's own standing rule, stated in its file: "THE INK IS NEVER THE VARIABLE" —
       every one of the other five team inks is already a literal for exactly this reason, so a
       var() here would be the one exception, not a fix. #b08cf5 is --rd-violet's OWN current
       resolved value (it aliases --at-transcript-ring, ASSET_TYPE_PALETTE.transcript.ring) —
       visually identical to the marker either way. Same 0.14/0.55 alpha pattern as every other
       badge-* ink. This is the ONLY selector that sets this rule's colour — the grid overlay's
       dark-backing override two rules below never declares its own `color`, so it inherits
       this ink through the cascade with no separate edit needed there. */
    .del-status-pill.badge-internal,
    .ag-status-overlay .del-status-pill.badge-internal { background: rgba(176,140,245,0.14); color:#b08cf5; border: 0.5px solid rgba(176,140,245,0.55); }
    .del-status-pill.badge-waiting,
    .ag-status-overlay .del-status-pill.badge-waiting  { background: rgba(251,176,59,0.14); color:#FBB03B; border: 0.5px solid rgba(251,176,59,0.55); }
    .del-status-pill.badge-revision,
    .ag-status-overlay .del-status-pill.badge-revision { background: rgba(226,75,74,0.14); color:#E24B4A; border: 0.5px solid rgba(226,75,74,0.55); }
    /* ⚠️ PURPLE, NOT GREEN, AND FROM THIS CODEBASE RATHER THAN FROM A PREFERENCE. The brief
       proposed green with the worry that green-on-green would be too subtle to separate FINAL
       from APPROVED — a correct worry, already solved here: `.ag-status-overlay
       .del-status-pill.stage-final` has been #4a2d7a on #ece8f5 all along. Matching the surface
       that already names this state is the same move WAITING TO RELEASE made with #FBB03B.
       Green would BE the collision the brief was trying to avoid. */
    /* ⚠️ FINAL'S PURPLE IS RE-DECIDED, because #4a2d7a was chosen as a SOLID BACKGROUND (item
       155) specifically so it would not collide with green, and a dark plum is unreadable as an
       INK on a dark plate. The replacement is measured rather than picked — see item 268 for the
       numbers and the cost that was accepted. */
    .del-status-pill.badge-final,
    .ag-status-overlay .del-status-pill.badge-final { background: rgba(31,157,107,0.16); color:#1F9D6B; border: 0.5px solid rgba(31,157,107,0.6); }
    /* Solid, bold status pills on the card thumb (override the translucent base). */
    /* :not(.stage-internal) — the Internal badge is a LIGHT tint and needs its own dark text.
       This rule and .del-status-pill.stage-internal have EQUAL specificity (two classes each),
       so source order decided it and this one, being later, painted white on pale yellow.
       Excluding it here keeps exactly ONE rule colouring the Internal badge; adding a second
       rule to win the fight would re-create the per-surface override just removed. */
    /* ⚠️ BOTH BLANKET RULES NOW EXCLUDE THE TREATED BADGES. `border:none` and `color:#fff` would
       strip the outline and the text colour off all six client badges — the treatment would be
       defined, applied, and invisible. Scoped with :not() rather than fought with specificity,
       so the team pills below keep their solid look with no extra rules. */
    /* ⚠️ AN ENUMERATION HERE AND A FAMILY PROPERTY FOR THE DOT — the difference is deliberate and
       item 198 is why. This rule's SPECIFICITY IS LOAD-BEARING: each :not() contributes its
       argument's specificity, and the six-class version is what makes it beat
       `.del-status-pill.stage-inprogress` regardless of source order. Rewriting it as
       `:not([class*="badge-"])` drops it to three and hands the text colour to that rule — which
       is precisely the failure item 198 records and says not to "fix" by raising specificity.
       The ::before dot has no such contest, so THAT one is the family property. */
    /* ⚠️ ITEM 637 ADDED `:not(.badge-changes)` TO BOTH — the same reason every other treated
       badge is here. Left out, this blanket rule's EIGHT classes of specificity beat the new
       treatment's THREE regardless of source order (real CSS, not resolve()'s naive last-rule
       simulation), and "You requested changes" would render white-on-nothing with a drop
       shadow — the solid look the treatment exists to remove. */
    .ag-status-overlay .del-status-pill:not(.stage-internal):not(.badge-ask):not(.badge-done):not(.badge-quiet):not(.badge-internal):not(.badge-waiting):not(.badge-revision):not(.badge-final):not(.badge-changes) { color:#fff; }
    .ag-status-overlay .del-status-pill:not(.badge-ask):not(.badge-done):not(.badge-quiet):not(.badge-internal):not(.badge-waiting):not(.badge-revision):not(.badge-final):not(.badge-changes) { border:none; font-weight:700; border-radius:4px; box-shadow:0 1px 6px rgba(0,0,0,.35); }
    /* The treated badges keep the overlay's geometry but not its fill or its shadow — a drop
       shadow under an outline badge reads as a raised chip, which is the solid look returning
       by another route. */
    .ag-status-overlay .del-status-pill[class*="badge-"] { font-weight:700; border-radius:4px; box-shadow:none; }
    /* ⚠️ FOUR SOLID OVERRIDES DELETED — stage-review (#F7931E), stage-approved (#1D9E75),
       stage-revisions (#E24B4A) and stage-final (#4a2d7a). Those are the four stages a CLIENT can
       receive (buildAsset drops every other stage from a client payload), and §3 forbids a solid
       status badge. The rest of this block is TEAM-ONLY by that same filter — processing, shared,
       source, pending, deleted, inprogress — and is deliberately untouched: §5 puts team
       treatments out of scope, and removing them would restyle a surface nobody asked about. */
    .ag-status-overlay .del-status-pill.stage-processing { background:#3a6ea5; color:#fff; }   /* Processing (blue) */
    /* Shared (slate) — solid on the thumb like its siblings, because the translucent base tint
       plus the generic white above is unreadable over a bright frame. This is the SAME shape as
       the four rules around it, NOT the per-surface inversion item 74 removed: it agrees with
       the generic `:not(.stage-internal) { color:#fff }` rather than fighting it, so exactly one
       rule still decides the colour. Deliberately not green — Approved is directly above. */
    .ag-status-overlay .del-status-pill.stage-shared     { background:#3E6E8A; color:#fff; }   /* Shared (slate) */
    /* ⚠️ SOURCE NEEDS ITS OWN OVERLAY RULE OR THE RESTYLE IS INVISIBLE WHERE IT MATTERS MOST.
       Two rules above strip exactly what this badge was given: `border:none` on the generic
       overlay pill would drop the 1px #378ADD outline, and `:not(.stage-internal){color:#fff}`
       would repaint the text white — on the card thumb, which is the surface the badge was
       called illegible on. Three classes beats two, so this wins both. The base rule still
       governs every non-card surface; this only restores the intended treatment here. */
    .ag-status-overlay .del-status-pill.stage-source     { background:#0C447C; border:1px solid #378ADD; color:#B5D4F4; }
    /* ⚠️ RULED (Phase B) — WAS A GENUINE MISMATCH, NOT THE FAMILY'S DELIBERATE PATTERN. Unlike
       the five badge-* inks above (identical ink both surfaces, grid gets a computed dark
       backing for legibility over an unknown thumbnail), this rule and the base one at
       `.del-status-pill.stage-pending` (var(--surface2)/var(--text-muted)) used to disagree on
       BOTH properties — #444441/#fff here, hardcoded and unrelated to either token. Now the
       SAME ink, var(--text-muted) (#7A7670), in both places; only the background still differs,
       and only because the grid context needs its own backing.
       ⚠️ 0.98 IS THE HONEST PRICE OF THIS SPECIFIC INK, computed the same way as the six-badge
       family (checks/client-badge-treatments.mjs's math: relative luminance → WCAG ratio →
       black-over-white composite) even though nothing guards this class today — #7A7670 is a
       deliberately desaturated, quiet grey (see the comment above at .stage-inprogress: "asks
       nothing of anyone"), and a low-saturation ink needs a deeper backing than a vivid one to
       clear the same floor. badge-revision's #E24B4A needed 0.91 and was already called "nearly
       an opaque chip"; this ink needs more. Deepening the backing rather than picking a
       different, easier ink for consistency's sake — same principle as the badge family,
       applied to a class that was never part of it. */
    .ag-status-overlay .del-status-pill.stage-pending    { background: rgba(0,0,0,0.98); color: var(--text-muted); }   /* Not Started */
    .ag-status-overlay .del-status-pill.stage-deleted    { background:#3a3a3a; color:#d0d0d0; }
    /* ⚠️ BACKGROUND ONLY — THE COLOUR DECLARATION THAT USED TO SIT HERE COULD NEVER APPLY.
       `.ag-status-overlay .del-status-pill:not(.stage-internal):not(.badge-ask):not(.badge-done)
       :not(.badge-quiet)` is SIX classes (each :not() contributes its argument's specificity)
       against this rule's three, so it wins on specificity regardless of source order and the
       text is #fff. The `color:#f5ece0` declared here rendered nothing for as long as it
       existed — measured, not reasoned, after the same arithmetic was got wrong by hand twice.
       Removed rather than left: a declaration that cannot apply reads as coverage (item 148).
       ⚠️ DO NOT "FIX" THIS BY RAISING SPECIFICITY. The :not() chain exists so the treated client
       badges keep their own colours without a second rule fighting for them; adding one here
       re-creates exactly the per-surface override item 74 removed. White on this grey is 8.90:1.
       Neutral, not warm: In Progress asks nothing of anyone. Distinct from stage-pending
       (#444441) and stage-deleted (#3a3a3a) so the three quiet states stay tellable apart. */
    .ag-status-overlay .del-status-pill.stage-inprogress { background:#4A4A46; }
    /* ⚠️ THESE FOUR ARE BACK, AND DELETING THEM WAS THE WRONG CALL — recorded rather than
       quietly reversed. The brief said to delete the ten solid overrides once the treatments
       existed. Four of them (review / approved / revisions / final) are the CLIENT-reachable
       stages, so deleting them looked right — but the overrides are keyed on STAGE, not on
       AUDIENCE, and the team grid renders the same .ag-status-overlay with the same stage
       classes. Removing them restyled the TEAM card too, which §5 puts out of scope, and the
       guard caught it as "no team pill is still solid".
       The client badge is distinguished by carrying an extra class the team badge never gets
       (assetStatusPill appends it only when teamSession is falsy), so the split is expressible
       without touching these: team keeps the solid, client is overridden below. */
    .ag-status-overlay .del-status-pill.stage-review     { background:#F7931E; color:#fff; }   /* team: Needs Review */
    .ag-status-overlay .del-status-pill.stage-approved   { background:#1D9E75; color:#fff; }   /* team: Approved */
    .ag-status-overlay .del-status-pill.stage-revisions  { background:#E24B4A; color:#fff; }   /* team: Revisions Requested */
    .ag-status-overlay .del-status-pill.stage-final      { background:#4a2d7a; color:#ece8f5; } /* team: Final */

    /* ══ THE THREE CLIENT BADGE TREATMENTS — spec §5, and the ONE source for them ═══════════
       §3: "Fill means action; outline means status. Solid gold fill is reserved for the primary
       action and appears once per card. Every status badge renders as outline or tint, never
       solid, so the card needing something is distinguished by its filled BUTTON rather than by
       a louder badge."
       ⚠️ DEFINED AS A SOURCE BEFORE THE OVERRIDES WERE TOUCHED, and the order was not
       incidental. Exposing the BASE rules first would have given outline-shaped badges in the
       WRONG COLOURS: stage-review's tint is Signal Orange #F7931E where §5 asks for gold
       #FBB03B, and stage-revisions' is coral #E24B4A, which §5 says "appears nowhere in this
       palette". Outline-shaped and wrong reads as finished.
       ⚠️ PLACED LAST, AND THAT IS LOAD-BEARING. Every selector here ties on specificity with the
       rule it must beat — .del-status-pill.badge-quiet (0,2,0) against
       .del-status-pill.stage-revisions (0,2,0), and the overlay pair likewise at (0,3,0) — so
       SOURCE ORDER decides. Defined earlier in the file (the first cut) the coral won and the
       guard caught it. Do not move this block up.
       ⚠️ THREE CONTEXTS, because the badges live in two element families: the stage pills carry
       .del-status-pill, the transcript badges carry .tr-card-badge, and on the card both sit
       inside .ag-status-overlay. "Finish and send" has no .del-status-pill at all, so a
       treatment scoped to that class alone left it unstyled — also caught by the guard.
       ⚠️ THE GOLD IS COPIED FROM .tr-card-task, NOT INVENTED. That badge is already exactly the
       treatment §5 describes — a working reference in this file rather than a fourth opinion.
       ⚠️ CONTRAST MEASURED ACROSS ALL TEN CARD FILLS, worst case:
         gold  #FBB03B  5.65:1 ✓        neutral #fff  very high ✓
         green #2dc48a  4.66:1 ✓        (--approved #32b464 measures 3.90:1 and FAILS AA, which
                                         is why the token is not used for this text) */
    .del-status-pill.badge-ask,
    .tr-card-badge.badge-ask,
    .ag-status-overlay .del-status-pill.badge-ask   { background: rgba(13,13,15,0.80); color: #FBB03B; border: 0.5px solid rgba(251,176,59,0.55); }
    /* Green outline with a SOLID dot (§5) — the dot is the only filled thing on a status badge,
       4px, marking the settled state without competing with the Approve button. */
    .del-status-pill.badge-done,
    .tr-card-badge.badge-done,
    .ag-status-overlay .del-status-pill.badge-done  { background: rgba(50,180,100,0.12); color: #2dc48a; border: 0.5px solid rgba(50,180,100,0.30); }
    /* ⚠️ THE DOT IS ON EVERY CLIENT TREATMENT NOW — it was the ONE construction difference between
       them, so "Your approval needed" read as a plate and "Approved" as an outline-with-a-dot on
       adjacent cards. One shape, four colours: dark backing (item 146's derived rule), a 1px
       border in the ink, the leading dot, the ink.
       ⚠️ IT DOES NOT BECOME AN OUTLINE, AND THAT WAS DECIDED KNOWINGLY. A border over a 0.70
       plate is a dark chip with a coloured edge, not an outline — an outline reads as one because
       the card's own fill shows through. There is no fidelity being lost: the design's own badges
       are SOLID (`Needs review` on rgba(22,23,24,.55), `Approved` on #4CC38A), so the plate is
       not a deviation from it. `currentColor` is what makes the dot free — it follows each ink
       without a fourth value to keep in step. */
    /* ⚠️ A PROPERTY OF THE FAMILY, NOT A LIST. This enumerated three classes, so every badge
       added since had to be remembered into it — and the four team solids were not, which is
       part of why they read as a different object. An attribute match covers the family by
       construction: a seventh treatment gets the dot on the day it is named. */
    .del-status-pill[class*="badge-"]::before,
    .tr-card-badge[class*="badge-"]::before { content:''; width:4px; height:4px; border-radius:50%; background:currentColor; display:inline-block; margin-right:4px; vertical-align:middle; }
    /* ══ ITEM 423 — THE MARK IS A REAL TABLER OUTLINE ICON, NOT A UNICODE CHARACTER ═══════
       The reference's first hard rule is unchanged and still the reason this exists: "Stage
       badges carry a glyph. Note badges carry a 5px dot in currentColor. … Never mix them." So
       this still takes the ::before's place rather than sitting beside it — the mechanism moved,
       the rule did not.
       ⚠️ THE REFERENCE ASKED FOR THIS RATHER THAN BEING DEVIATED FROM. README:41 says the glyphs
       in the handoff are Unicode stand-ins, to be replaced with the real icon set, and that the
       sizes and positions hold while the characters do not. Item 417 shipped the stand-ins
       faithfully; this completes the instruction they carried.
       ⚠️ AND AN INLINE <svg> IS SAFE WHERE A <span> WOULD NOT HAVE BEEN — which is exactly why
       item 417 could not do this and had to reach for an attribute instead. Its note read: "a
       glyph emitted as markup text would join the client's visible words", because
       checks/client-badge-treatments.mjs reads a badge's words as html.replace(/<[^>]*>/g,'').
       An SVG icon contributes NO TEXT NODE — its shape lives in a `d` ATTRIBUTE, stripped with
       its own tag — so the wording equality survives BY CONSTRUCTION rather than by remembering.
       That is what makes markup the right home now and made it the wrong one then.
       ⚠️ ONE BADGE CLASS, SEVERAL ICONS, AND NO PER-ICON SELECTOR. badge-ask carries three
       (approval / notes / selects), so the mark has to be DATA rather than a class: it was an
       attribute value, it is now a child element, and both keep that property. A per-icon rule
       would also lose currentColor, which is what lets the mark follow each ink without a fourth
       value to keep in step — the dot's own reasoning, one element along.
       ⚠️ :has() IS WHAT TAKES THE DOT AWAY, AND IT INHERITS THE ORDERING HAZARD ITS PREDECESSOR
       HAD. `[class*="badge-"]::before` and `:has(> .cbg)::before` are BOTH (0,2,1) — a TIE — so
       this wins only while it sits BELOW, and a reordering of this block would silently restore
       the dot on every stage badge with nothing on screen to say a rule had moved (item 110).
       Pinned in the guard rather than left to whoever next tidies this. */
    .del-status-pill:has(> .cbg)::before,
    .tr-card-badge:has(> .cbg)::before { content: none; }
    /* ⚠️ THE ALIGNMENT REFERENCE IS CAP HEIGHT, AND `vertical-align:middle` IS STRUCTURALLY
       INCAPABLE OF IT — item 424. The spec defines `middle` as the box's midpoint on the parent's
       baseline PLUS HALF THE X-HEIGHT; the badge labels are all-caps, whose optical centre is
       baseline plus half the CAP height. Montserrat 700 measures x-height 5.38 against cap 7.12
       at 10px, so `middle` put every icon 0.87px BELOW the letters it sits beside — measured
       identically on all five inline badges, and matching `middle`'s own prediction to 0.01px,
       which is what proved the cause shared rather than per-icon.
       So the offset is derived from the FONT (the `cap` unit reads the real metric — 7.0px for
       Montserrat, 7.275px for Inter, both exactly the families' declared capHeight) rather than
       from a hand-tuned number. `vertical-align: <length>` puts the icon's bottom margin edge
       that far above the baseline, so centring it on the cap band is cap/2 - height/2.
       ⚠️ THE SIZE IS A CUSTOM PROPERTY BECAUSE THE ALIGNMENT NOW DEPENDS ON IT. Written as two
       literals (width and height) the alignment expression would be a third copy free to drift;
       one channel means the client scale below re-points all three at once, and item 422's
       single-factor property is strengthened rather than weakened — see the note there. */
    .del-status-pill > .cbg,
    .tr-card-badge > .cbg { --cbg-size:9px; width:var(--cbg-size); height:var(--cbg-size); margin-right:4px; vertical-align:calc(0.5cap - 0.5 * var(--cbg-size)); flex-shrink:0; }
    /* item 422's single factor, unchanged in kind: the icon is sized HERE rather than by a width
       attribute in the emitter, so it stays a coefficient of --cbs and cannot drift against the
       label. A JS-computed size would move the scale out of the one place that holds it.
       ⚠️ Item 424 moved the DECLARATION into --cbg-size above rather than restating width and
       height, which does not weaken that: this is still the only place the client scale is
       applied, and the alignment now rides the same channel instead of carrying a third copy of
       the expression. Presentation attributes carry the lowest specificity, so the base rule's
       width/height win over the svg's own with no !important — which is why the emitter must go
       on writing none (asserted). */
    body:not(.is-team) .del-status-pill > .cbg { --cbg-size: calc(9px * var(--cbs)); }
    /* ⚠️ ONE LAYOUT MODE FOR EVERY CLIENT BADGE — item 424, and it is what lets ONE alignment rule
       serve all seven. Item 422 unified the BOX (its (0,2,1) beats .tr-card-badge's (0,1,0)) and
       left two layout modes standing: a plain pill is inline, so `vertical-align` governs, while
       .tr-card-badge is inline-flex, where `vertical-align` is INERT and `align-items:center`
       centres on the line box — which reserves descender space the all-caps label never uses.
       Measured, that put the transcript badges 3.69px low against the letters, 4.2x the inline
       offset and the largest misalignment on the surface; nobody reported it because those two
       badges live on transcript cards. Making them inline like their five siblings fixes it with
       the same expression, and takes a second inconsistency with it: flex `gap:4px` PLUS the
       icon's own `margin-right:4px` gave those badges 8px of icon-to-label space against 4px
       everywhere else. Scoped to the client because a team transcript badge carries no icon at
       all (clientBadgeIconSvg returns '' for team), so its layout mode is not this item's to move.
       ⚠️ AND THE RESIDUAL IS DELIBERATELY NOT NUDGED. The clock reads marginally high even when
       geometrically centred, because its ink mass is asymmetric — the hands occupy the upper half
       while the lower half is empty circle — so its perceived centre sits above its geometric one.
       That is an artifact of one icon's own drawing, and the answer is NOT a per-icon offset
       table: measured, every icon's ink is centred within a hundredth of the viewBox midpoint
       (worst 0.5 units, 0.23px at render size), so a table would encode one glyph's shape as a
       shared mechanism and rot the moment that glyph changed. If the clock is ever judged wrong
       on its own, the honest fix is a different clock. */
    body:not(.is-team) .del-status-pill.tr-card-badge { display: inline; }
    /* Neutral outline. ⚠️ NOT A NEW TREATMENT — it is the one item 66 established when red came
       off Request changes: transparent fill, rgba(255,255,255,.55) border, full-opacity white.
       ⚠️ ITEM 637 MOVED THE REVISION-REQUESTED STATE OFF THIS CLASS — "You requested changes" is
       now `badge-changes` (below), carrying --st-revision's coral rather than white, on the
       operator's explicit instruction. The reasoning transfers to every OTHER quiet state this
       class still carries ("In review", "Reference", "Your notes needed"): none of them is an
       error either, which is why they stay white-outlined. */
    .del-status-pill.badge-quiet,
    .tr-card-badge.badge-quiet,
    .ag-status-overlay .del-status-pill.badge-quiet { background: rgba(255,255,255,0.12); color: #fff; border: 0.5px solid rgba(255,255,255,0.30); }
    /* ⚠️ THE SAME `badge-*` FAMILY, WHICH IS WHAT GIVES IT THE DOT. `.del-status-pill.badge-*::before`
       is declared once and filled with currentColor, so joining the family is how this pill matches
       "Your approval needed" and "Approved" BY CONSTRUCTION rather than by a parallel rule someone
       has to keep in step — item 242's defect, which shipped a badge carrying the ask's colours and
       missing its dot.
       ⚠️ AND IT IS A THIRD TREATMENT, NOT A SHADE OF EITHER EXISTING ONE. badge-ask is the demand,
       badge-done is completion; this is "you have acted and it is not finished", which is neither.
       ⚠️ THE FILL AND BORDER CARRY #4A7A99; THE INK IS ITS LEGIBLE TINT, which is the same
       relationship badge-done already has (fill rgba(50,180,100,.12), ink #2dc48a — not the same
       green). At 10px on a translucent dark fill the base hue lands near 3.4:1; the tint clears
       7:1. The band's identity is the hue, and it is the pip and the legend dot that carry it at
       full strength. */
    .del-status-pill.badge-mine,
    .tr-card-badge.badge-mine,
    .ag-status-overlay .del-status-pill.badge-mine { background: rgba(74,122,153,0.16); color: #7fb3d5; border: 0.5px solid rgba(74,122,153,0.55); }
    /* ⚠️ ITEM 637 — RULING REVERSED (66/110), THIS BADGE ONLY. "You requested changes" is a
       client's own decision that this asset needs another pass, and the operator's explicit
       instruction (2026-09-17) is that THIS ONE state should carry the team's own coral ink —
       see CLAUDE-HISTORY item 637 for the reversal. §3's SHAPE is unchanged (transparent fill,
       a 0.5px border, no solid plate — the same construction as badge-quiet, which item 66
       already established for this exact state under its old name); only the INK moved off
       white and onto --st-revision's #E24B4A.
       ⚠️ LITERAL HEX, NOT var(--st-revision) — for the SAME reason badge-internal/-waiting/
       -revision/-final are literal (see badge-internal's own note, above): client-badge-
       treatments.mjs's resolve() reads raw declaration TEXT and cannot compute AA contrast on
       an unresolved custom property, and this codebase's standing rule is "the ink is never the
       variable" — the token relationship is proved by a GUARD EQUALITY (status-pill-palette.mjs
       §5a, extended for this badge), not by the CSS referencing the variable directly. */
    .del-status-pill.badge-changes,
    .tr-card-badge.badge-changes,
    .ag-status-overlay .del-status-pill.badge-changes { background: transparent; color: #E24B4A; border: 0.5px solid rgba(226,75,74,0.55); }

    /* ══ THE OVERLAY ZONE — A SCOPED EXCEPTION TO §3, NOT §3 BEING WRONG ═══════════════════
       §3 says "fill means action; outline means status", and it HOLDS — in the list views and
       anywhere a chip sits over a card fill WE CONTROL. It does not apply inside
       .ag-status-overlay, because that rule was authored against a known fill and A POSTER IS
       NOT ONE: the backdrop is client media, so contrast is decided by content nobody has seen.
       The three treatments above keep their own-hue tints for every surface outside this zone;
       this block overrides the BACKING only, inside it. Recorded as a scoped exception with its
       reason so nobody later reads it as the outline language having been abandoned.
       ⚠️ MEASURED OVER A WHITE FRAME BEFORE THIS EXISTED, and the second row is the finding:
         badge-ask    plate 1.09:1   border 1.40:1   gold ink 1.85:1
         badge-quiet  1.00:1 ON EVERY MEASURE — transparent fill, white ink, white border.
       "Revisions in progress" over a bright poster was ABSENT, not faint. It had never been
       looked at: it was found by measuring the chip NEXT TO the one that was complained about,
       which is the argument for measuring a zone rather than the element someone pointed at.
       ⚠️ 0.70 IS DERIVED FROM THE WORST CASE, NOT PICKED. Against a WHITE frame the ink needs:
       gold >= 0.70 (reaches 4.58), white >= 0.54 (8.45). On a dark frame every one is >= 10:1,
       so the backing costs nothing where the chip already worked.
       ⚠️ badge-done's #2dc48a measured 3.77 at 0.70 — the one ink a single flat number did not
       carry to AA. Resolved by DERIVING the value per ink (see below) rather than by exempting
       that chip: it takes 0.75 because its ink needs 0.75.
       ⚠️ NO DROP-SHADOW IN THIS ZONE. filter: drop-shadow follows the element's RENDERED ALPHA,
       so on a translucent chip it renders at the chip's own alpha — measured at 0.15 of full
       strength on a 0.12 plate. box-shadow is the permitted form; the team pills above use it.
       ⚠️ PLACEMENT IS LOAD-BEARING. These tie on specificity (0,3,0) with
       .ag-status-overlay .del-status-pill.stage-review and its siblings, so SOURCE ORDER is what
       makes them win. DO NOT MOVE THIS BLOCK UP. */
    /* ⚠️ ONE RULE WITH A DERIVED VALUE, NOT A PER-CHIP ALPHA: the backing is whatever clears AA
       (4.5:1) for the ink it carries against a WHITE frame, with a floor of 0.70. Two rules
       below, and they are not two decisions — they are one rule evaluated for two inks:
         badge-ask   #FBB03B  needs 0.70  -> 4.58   (the floor binds)
         badge-quiet #ffffff  needs 0.54  -> 8.45   (the floor binds)
         badge-done  #2dc48a  needs 0.75  -> 4.63   (the INK binds)
       A future chip takes whatever its ink needs by the same rule, not by exception — and the
       guard computes this rather than checking the numbers, so a new treatment is covered on the
       day it is added and a weakened backing fails whichever ink it carries.
       ⚠️ THE GREEN IS NOT LIGHTENED TO MEET THE PLATE. Changing a palette colour to fix a
       rendering problem is the objection that kept the type rings out of item 137's contrast
       fix: it puts the palette at the mercy of where it happens to render. The backing moves. */
    .ag-status-overlay .del-status-pill.badge-ask,
    .ag-status-overlay .tr-card-badge.badge-ask,
    .ag-status-overlay .del-status-pill.badge-quiet,
    .ag-status-overlay .tr-card-badge.badge-quiet { background: rgba(0,0,0,0.70); }
    .ag-status-overlay .del-status-pill.badge-done,
    .ag-status-overlay .tr-card-badge.badge-done  { background: rgba(0,0,0,0.75); }
    /* ⚠️ ITEM 637 — SAME INK AS badge-revision (#E24B4A), SAME DERIVED ALPHA (0.91, already
       computed below for the team ink this shares): needs 0.91 to clear 4.5:1 against a WHITE
       frame, the ink binds hard exactly as it does for the team's own coral. */
    .ag-status-overlay .del-status-pill.badge-changes,
    .ag-status-overlay .tr-card-badge.badge-changes { background: rgba(0,0,0,0.91); }
    /* ⚠️ THE FOUR TEAM INKS, BY THE SAME RULE — item 268. Each is the alpha its own ink needs to
       clear 4.5:1 against a WHITE frame, floor 0.70, computed not chosen:
         badge-internal #b08cf5  needs 0.79 -> 4.56   (the INK binds — TURNED AGAIN, Phase B:
                                                        mauve #D18FA6 needed 0.78; before that
                                                        #F7E4AE needed only 0.60, floor bound)
         badge-waiting  #FBB03B  needs 0.70 -> 4.58   (the floor binds; same ink as badge-ask)
         badge-final    #1F9D6B  needs 0.86 -> 4.50   (the INK binds, hard — Phase B: darker
                                                        green replaces #c4a7ff, which needed
                                                        only 0.72)
         badge-revision #E24B4A  needs 0.91 -> 4.56   (the INK binds, hard)
       ⚠️ CORAL AT 0.91 IS NEARLY AN OPAQUE CHIP AND THAT IS THE HONEST PRICE OF KEEPING THE INK.
       Lightening #E24B4A would drop the plate — and it would put this badge on a different red
       from the Work Queue, which is the drift item 154 took these colours to avoid.
       ⚠️ VIOLET, SAME PRINCIPLE (Phase B): deepen the backing, never lighten the ink. 0.79 lands
       within 0.01 of mauve's own 0.78 (the colour it replaces), not of badge-final's 0.72 —
       checked by computing relative luminance directly: #b08cf5 measures 0.3458, close to
       mauve's #D18FA6 at 0.3595, while badge-final's #c4a7ff is notably lighter at 0.4659. The
       two backings landing near each other is a coincidence of this specific violet and mauve,
       not a rule. 0.79 is computed (checks/client-badge-treatments.mjs's own math, replicated
       and cross-checked against its other pre-computed rows first), not chosen. */
    .ag-status-overlay .del-status-pill.badge-internal { background: rgba(0,0,0,0.79); }
    .ag-status-overlay .del-status-pill.badge-waiting  { background: rgba(0,0,0,0.70); }
    .ag-status-overlay .del-status-pill.badge-final    { background: rgba(0,0,0,0.86); }
    .ag-status-overlay .del-status-pill.badge-revision { background: rgba(0,0,0,0.91); }
    /* [REMOVED] a per-surface override that inverted the badge on the asset-grid overlay
       (background:var(--internal); color:#1a1a1a). It existed because the translucent
       grey-on-grey was illegible over a bright video frame — the exact problem the opaque
       pale yellow now solves at the source. A per-surface override is what the July 27
       unification pass removed; reinstating one to fix legibility would re-split the
       treatment. The overlay keeps its own SHAPE rules (radius, shadow) above; only the
       colour divergence is gone. */

    /* Asset-section summary bar + status filter row (above the grid). */
    .asset-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:rgba(255,255,255,0.03); border:0.5px solid rgba(255,255,255,0.08); border-radius:4px; padding:12px 14px; margin:6px 0 10px; font-size:.8rem; }
    .asset-summary-left { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
    .asum-item { display:inline-flex; align-items:center; gap:6px; color:var(--text); }
    .asum-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
    .asum-dot.approved         { background:#1D9E75; }
    .asum-dot.needs_review     { background:#BA7517; }
    .asum-dot.changes_requested { background:#E24B4A; }
    .asum-dot.not_started      { background:#8a8780; }
    .asum-sep { color:var(--text-muted); }
    .asset-summary-right { color:var(--text-muted); font-size:.78rem; white-space:nowrap; }
    /* The read-only remainder ("· 1 transcript to read"). Same muted weight as the approval
       count it sits beside — it explains that number, it does not compete with it. */
    .asum-readonly { color:var(--text-muted); }
    .asset-filter { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 14px; }
    .af-view-toggle { margin-left:auto; } /* list/grid toggle pinned to the right of the filter row */
    .af-pill { display:inline-flex; align-items:center; gap:6px; background:var(--surface); border:0.5px solid var(--border); color:var(--text-muted); border-radius:4px; padding:6px 12px; font-size:.78rem; font-family:'Inter',sans-serif; cursor:pointer; transition:all .15s; }
    .af-pill:hover { border-color:var(--text-muted); color:var(--text); }
    .af-pill.active { background:#1a1c20; border-color:#1a1c20; color:#fff; }
    .af-pill svg { flex-shrink:0; }
    /* ══ PROJECT-DETAIL TABS ═══════════════════════════════════════════════════════════════
       .rv-tabs' shape — uppercase Archivo, a 2px underline carrying the active state — in this
       page's own palette. The review panel's own tokens (--rd-nontext, --rd-panel-hair) are
       global and would resolve, but they are that surface's greys and this page is built on
       --text / --border; borrowing them would make one screen quietly track another's theme.
       ⚠️ THE ACTIVE UNDERLINE IS var(--text), NOT GOLD. .rv-tab.active uses --rd-gold, and
       #FBB03B is item 66's reserved DECISION colour. It carries exactly two knowing exceptions
       (item 145's play triangle, the seg-btn filter), and the second one's note says plainly
       that a THIRD means re-examining the rule rather than taking another carve-out. A tab is
       navigation, not a decision or the asking of one, so it takes the neutral selected
       treatment .af-pill.active already uses fifteen lines up. */
    .proj-tabs { display:flex; gap:0; margin:1.5rem 0 0; border-bottom:1px solid var(--border); }
    .proj-tab { flex:0 1 auto; padding:11px 2px 9px; margin-right:22px; background:none; border:none;
      border-bottom:2px solid transparent; margin-bottom:-1px; cursor:pointer;
      font-family:'Archivo','Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em;
      text-transform:uppercase; color:var(--text-muted); white-space:nowrap; transition:color .18s, border-color .18s; }
    .proj-tab:last-child { margin-right:0; }
    .proj-tab:hover:not(.active) { color:var(--text); }
    .proj-tab.active { color:var(--text); border-bottom-color:var(--text); }
    .proj-tab:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:2px; }
    /* The panes carry no styling of their own — each already contains the section markup it
       always had. Only display is managed, by projShowTab. */
    .af-count { background:rgba(255,255,255,0.1); color:inherit; border-radius:4px; padding:1px 7px; font-size:.7rem; font-weight:600; }
    .af-pill.active .af-count { background:rgba(255,255,255,0.22); }
    /* Body is the SAME fixed height on both card types (content clipped if over). */
    /* Fixed body floor so every card in a row has the same grey body area whether
       the name is 1 or 2 lines. --ag-body-h fits 2 lines of name + the "Supporting
       asset" label + padding; short names just pad up to it. */
    /* ⚠️ CONTENT-SIZED FOR BOTH AUDIENCES NOW — principle 02, "the text block is sized to its
       content; the preview band takes whatever height is left". The client half was already
       right (.ag-card--client .ag-body { height:auto }); the TEAM half carried a fixed
       height:var(--ag-body-h) of 7rem, which is the "every card was a fixed height, so content
       floated inside it" problem the spec's opening names, still in the code.
       ⚠️ THIS AND grid-auto-rows:1fr HAD TO LAND TOGETHER. The fixed height was what kept team
       card bottoms aligned; removing it without row sizing makes them ragged. */
    /* ⚠️ position:relative MAKES THIS THE TRIGGER'S CONTAINING BLOCK, and the right padding
       RESERVES ITS COLUMN — 3.1rem ≈ the 24px button plus its 10px inset plus clearance. Without
       the reservation the title and meta line run underneath it, which is invisible until a name
       is long enough, and every name is short in a fixture. Checked at 320. */
    .ag-body { position:relative; padding:1rem 3.1rem 1.1rem 1.25rem; flex:0 0 auto; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-start; background:var(--ag-fill, #1e1e1e); border-top:0.5px solid rgba(255,255,255,0.07); } /* fixed height, text top-aligned → equal bodies, empty space falls to the bottom */
    /* Client cards have no Seq/Rev pill row → body hugs its content (title + deliverable),
       no reserved pill space. Secondary thumbs still grow to keep the grid aligned. */
    /* ⚠️ AND NO MENU COLUMN ON A CLIENT CARD (598e follow-up, measured 2026-09-11). The 3.1rem
       right padding above reserves the ⋯ trigger's column — and agAssetMenuHtml returns NOTHING
       for a client session (the menu is team-only), so on every client card that column was
       49.6px of reserved space for a control that does not exist, against 20px on the left. The
       chip row's date sat flush to the content column (measured: 0px), and the content column
       stopped 50px short of the card edge — which read as "the date is not at the right edge".
       Symmetric for the client: the content column ends where the left padding says it does, and
       the date, the name and the deliverable line all end on that same x. The team keeps the
       reservation, because the team has the menu. Pinned by asset-grid-geometry.mjs against the
       executed menu builder, and measured by checks/chip-row-bookend-live.mjs in headless Chrome. */
    .ag-card--client .ag-body { padding-right:1.25rem; }
    /* ⚠️ TWO PADDINGS, ONE PER AUDIENCE — the closure condition has to hold TWICE, and the two
       targets are 11px apart, so a single value silently breaks one of them.
         client primary = type+name+date          = 86.6  ->  F_secondary must be 39.8
         team   primary = type+name+deliv+V2·R1   = 108.6 ->  F_secondary must be 50.8
       The team primary is larger because agMetaLine renders §8.4's technical line for team ONLY; §6
       subtracts that line from the client view, which is why the client primary is unchanged
       and gains nothing from this pass. Precedent for splitting here already exists —
       .ag-card--client .ag-body was already audience-split for the pill row.
       ⚠️ THESE ARE NOT FREE NUMBERS. They are solved from the condition against a measured
       20.9px name line; changing either one without re-solving reintroduces dead space that
       `align-items:stretch` will render as flat card background rather than as a broken layout. */
    /* ⚠️ THE PER-AUDIENCE SECONDARY PADDING PAIR IS GONE (was 0.93rem team / 0.59rem client).
       It existed for ONE reason: the closure condition needed F_s to hit 50.8 team / 39.8 client,
       and the team primary carries a version pill the client's does not — so one padding could
       not serve both. With the band absorbing, footer heights are free and two audiences do not
       need two paddings. See item 131. */
    /* ⚠️ MOBILE KEEPS 16/9 — AS THE BASIS, NEVER AS THE SIZER, AND THE DIFFERENCE IS 34.8px OF
       DEAD SPACE THAT WAS ALREADY THERE. The card width is fixed at two columns, so the ratio is
       safe to declare; what is NOT safe is dropping the absorber with it. Measured at 390px with
       the ratio sizing the band: 34.8px of flat card inside the primary with today's footers, and
       66.8px once the type label returns to the secondary. Both are items 113/114's failure,
       unmeasured until this pass because item 118 checked badge clearance and container parity
       and never looked at the interior.
       `flex:1 1 auto` is inherited from the base rule and is what makes the ratio a BASIS: the
       band measures 16:9 whenever no growth is needed — the common case at a fixed card width —
       and absorbs instead of leaving a hole when it is not. Measured with the absorber: 1px, and
       1px again with footers wildly mismatched. See item 131. */
    /* ⚠️ NO BAND RULE HERE ANY MORE — the base rule says exactly what this used to say.
       Mobile briefly carried `aspect-ratio:16/9; min-height:0` because desktop had no ratio and
       mobile needed one. With the ratio expressed as a FLOOR on the base rule, the mobile case
       is not a special case at all, and a duplicate would be a second place to keep in step. */
    @media (max-width:640px) { .asset-grid { grid-template-columns:repeat(2, 1fr); } }
    /* Secondary names wrap to 2 lines; primary has more width so it allows 3. */
    /* §4: Inter 600, 10px, uppercase, letter-spacing 0.16em, type colour (set inline, per type).
       Sized to content and sitting above the name, so the footer reads label → name → metadata. */
    /* ⚠️ THE LABEL SITS ON A RECESSED SURFACE, DERIVED FROM THE FILL — NOT A NEW COLOUR AND NOT
       A CHANGED RING. Once the footer took the card fill, five of the fifteen type labels crossed
       from passing AA to failing (video 5.63→3.92, image and psd 5.98→4.23, thumbnail 4.80→4.21,
       graphic 4.79→4.09). Moving the RINGS would fix the text by putting the palette at the mercy
       of where it renders; accepting AA-large would be the wrong bar, since 10px uppercase is the
       least legible configuration text comes in.
       ⚠️ THE VALUE IS 0.28 — THE LIGHT BAND'S OVERLAY, REUSED, SO NO NEW NUMBER ENTERS THE
       SYSTEM. It composites over whatever fill the card carries, so the surface is derived per
       type exactly as the band is. Measured across all fifteen: worst 4.78 (graphic), range
       4.78–7.69, every one above AA — and the low end lands on the 4.79–4.80 those types had on
       the old #1e1e1e footer, which is the "roughly restore what it had" target.
       ⚠️ DO NOT RAISE IT TO BUY MARGIN. 0.28 is the minimum that clears all fifteen; deeper makes
       the chip read as a black plate rather than a recess in the card's own colour, which is the
       thing that ties it to the band. */
    /* Item 630f — THE PRIMARY PILL. The type pill's own class (same face, size, spacing, radius)
       with the fill and the type colour stripped: an outline in the muted text colour. It sits
       right after the type pill; margin-right:auto keeps the pair hard left so the date stays
       hard right under the chip row's space-between (598e's bookends). Emitted by agPrimaryPill,
       the one reader of the stamp for this device. */
    .ag-type-label.ag-type-label--primary { background-image:none; background:none; color:var(--text-muted); border:1px solid currentColor; margin-left:6px; margin-right:auto; }
    /* ⚠️ ITEM 640, CLIENT/AGENCY ONLY: the PRIMARY pill restyled to match the .del-status-pill
       family sitting beside it in this same row (Approved/Reference/etc) — pill shape, the SAME
       4px leading dot (`::before`, currentColor, the family's own recipe — see
       `.del-status-pill[class*="badge-"]::before`), same Montserrat/700/uppercase weight and
       size (client-scaled: 10px/7px 12px/2.5px radius, matching `body:not(.is-team)
       .del-status-pill`'s own --cbs scale-up). Ink stays var(--text-muted) — NEUTRAL GREY, never
       one of the --st-* status colours — because this names a ROLE (which asset is primary), not
       a state, and must read as a different KIND of thing from a status pill even while sharing
       its shape. `background: rgba(255,255,255,0.12)` + a 0.5px `rgba(255,255,255,0.30)` border
       is the SAME translucent backing `.del-status-pill.badge-quiet` uses (the family's own
       neutral member) — reused rather than a new number, with only the ink diverging from white
       to grey. `body:not(.is-team)` is an OVERRIDE of the rule above, not a change to it — team
       keeps item 630f's plain outline exactly as shipped; client-work-screen.mjs /
       asset-card-anatomy.mjs pin a team golden proving the base rule's declarations are
       untouched. NOT verified in a live browser (item 303) — the numbers are borrowed from an
       existing, already-shipped recipe rather than invented, but the visual result has not been
       seen rendered. */
    body:not(.is-team) .ag-type-label.ag-type-label--primary {
      display:inline-flex; align-items:center; font-family:'Montserrat',sans-serif; font-weight:700;
      font-size:10px; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-muted);
      background:rgba(255,255,255,0.12); border:0.5px solid rgba(255,255,255,0.30);
      padding:7px 12px; border-radius:2.5px; margin-left:6px; margin-right:auto;
    }
    body:not(.is-team) .ag-type-label.ag-type-label--primary::before {
      content:''; width:4px; height:4px; border-radius:50%; background:currentColor;
      display:inline-block; margin-right:4px; vertical-align:middle;
    }
    .ag-type-label { font-family:'Inter',sans-serif; font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.16em; line-height:1; margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      /* ⚠️ align-self:start IS WHAT MAKES THE CHIP HUG THE TEXT — `inline-block` alone does
         NOTHING here, and understanding why is the point. `.ag-body` is a column flex container,
         so this is a FLEX ITEM: its `display` is BLOCKIFIED by spec (inline-block → block), and
         under the default `align-items: stretch` it then fills the cross axis. Measured before
         the fix: declared inline-block, computed BLOCK, 415px in a 415px content box.
         ⚠️ NO CASCADE INSPECTION WOULD HAVE EXPLAINED IT. Exactly one rule matched and it
         declared inline-block; nothing overrode it. The rule WON and was then overruled by the
         formatting context — which is invisible to every "which rule wins" check.
         `align-self:start` addresses the cause (a stretched flex item) rather than wrapping the
         label in an extra element to dodge it. `inline-block` is kept because it is correct for
         any non-flex parent this label is ever reused in. */
      display:inline-block; align-self:start; max-width:100%; padding:2px 5px; border-radius:3px;
      background-image:linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)); }
    .ag-name { color:var(--text); font-size:.95rem; font-weight:500; line-height:1.35; margin:0 0 2px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    /* ⚠️ THE COLLAPSED PUBLISH DETAILS LINE (item 587). It is the NAME slot doing the type
       slot's job as well, so it keeps .ag-name's clamp and layout and takes only what the two
       collapsed lines contributed: the type label's weight and letter-spacing, and its colour
       (set inline from the palette, like every other type label). Not a new component — a
       modifier on the slot that is already there, so a card with it and a card without it still
       align on the same baseline. */
    .ag-name--solo { font-weight:700; letter-spacing:.01em; }
    /* item 598: one name size — .ag-name's own .95rem / 2-line clamp, no per-shape override. */
    .ag-support { font-size:.7rem; color:var(--text-muted); letter-spacing:.04em; }
    .ag-version { display:flex; align-items:center; gap:5px; font-size:10px; opacity:0.6; color:rgba(255,255,255,0.5); margin-top:4px; }
    .ag-version svg { flex-shrink:0; }
    /* Team-only Seq/Rev pills under the asset name. */
    /* margin-top:auto = the flexible spacer — pins the Seq/Rev row to the bottom of
       the (fixed-height, flex-column) card body so pill rows align across the grid
       regardless of 1- vs 2-line titles. Pills keep their own fixed size/padding. */
    .ag-vpills { display:flex; align-items:center; gap:6px; margin-top:auto; padding-top:5px; flex-wrap:wrap; }
    .ag-pill { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; line-height:1; padding:3px 7px; border-radius:4px; white-space:nowrap; }
    .ag-pill svg { width:11px; height:11px; flex-shrink:0; }
    .ag-pill-seq { border:1px solid rgba(255,255,255,0.18); color:var(--text-muted); background:transparent; }
    .ag-pill-rev { background:rgba(251,176,59,0.15); color:#FBB03B; border:1px solid rgba(251,176,59,0.28); }
    /* Combined version pill "V# · R#" — one quiet pill, no accent, no icon (team-only). */
    .ag-pill-vr { background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.6); border:none; }
    /* TRT duration badge — bottom-right corner of the thumbnail (YouTube/Vimeo style). */
    .ag-trt-badge { position:absolute; bottom:6px; left:6px; z-index:2; font-size:11px; font-weight:600; line-height:1; letter-spacing:0.02em; color:#fff; background:rgba(0,0,0,0.75); padding:2px 5px; border-radius:3px; font-variant-numeric:tabular-nums; pointer-events:none; }
    /* Item 630g — the PRIMARY badge on the card's artwork: the duration chip's recipe (same ink,
       backing, padding, radius; pinned to it by asset-grid-geometry.mjs so the two cannot drift),
       top-left, opposite the status overlay's top-right. Uppercase like the type pill it replaced
       in the footer. TEAM ONLY as of item 640 (below) — for team this is still not a status
       badge: no state colour, no del-status-pill family. */
    .ag-primary-badge { position:absolute; top:6px; left:6px; z-index:2; font-size:11px; font-weight:600; line-height:1; letter-spacing:0.08em; text-transform:uppercase; color:#fff; background:rgba(0,0,0,0.75); padding:2px 5px; border-radius:3px; pointer-events:none; }
    /* ⚠️ ITEM 640, CLIENT/AGENCY ONLY: same restyle as the inline PRIMARY pill above — pill shape,
       the family's own 4px leading dot, Montserrat/700/uppercase at the client's scaled size,
       neutral grey ink on the SAME translucent backing `.del-status-pill.badge-quiet` uses. This
       DOES now share the del-status-pill family's shape (deliberately, per this item), while
       staying off every --st-* status colour so it never reads as a state. Position/z-index/
       pointer-events are inherited from the base rule above, untouched. `body:not(.is-team)` is
       an override, not an edit to the base rule — team's opaque dark badge (630g, matching the
       duration chip) is byte-unchanged; the golden pins (client-work-screen.mjs /
       asset-card-anatomy.mjs) prove it. NOT verified in a live browser (item 303). */
    body:not(.is-team) .ag-primary-badge {
      display:inline-flex; align-items:center; font-family:'Montserrat',sans-serif; font-weight:700;
      font-size:10px; letter-spacing:0.06em; color:var(--text-muted);
      background:rgba(255,255,255,0.12); border:0.5px solid rgba(255,255,255,0.30);
      padding:7px 12px; border-radius:2.5px;
    }
    body:not(.is-team) .ag-primary-badge::before {
      content:''; width:4px; height:4px; border-radius:50%; background:currentColor;
      display:inline-block; margin-right:4px; vertical-align:middle;
    }
    /* Type motifs */
    /* ⚠️ THE RING IS A CONTROL AND RETURNS TO A FIXED SIZE — REVERSING THE cqh CONVERSION MADE
       EARLIER THE SAME DAY. Recorded as a REVERSAL, not a correction: the cqh version was built
       to a ruling, shipped, and then re-ruled once the design screenshots were compared.
       WHY FIXED. §5 specifies controls in pixels throughout — overflow menu 22–26px, 44px
       minimum hit target, 4px control radius — and a play button is a control. "A control at a
       consistent size" and "13.3% of the band" cannot both hold: at 13.3cqh the ring was 46px at
       836 and 82px at 1560, which is a consistent PROPORTION and not a consistent size. A button
       that grows with its container stops reading as a button.
       ⚠️ THIS IS THE ROLE SPLIT, AND IT IS THE POINT: controls are fixed, ARTWORK fills. One
       proportion for everything was the wrong SHAPE of answer, not the wrong number. See item 134. */
    /* ⚠️ CLASSIFIED THREE TIMES — fixed 46px (item 134), proportional 28.9% (item 143), fixed
       64px (item 145). All three are left legible: the reasoning moved and came back, and a
       reader who sees only the current state will re-argue the middle position from the same
       evidence. 143 was withdrawn on a reference reading; 134 is the object this reverted to.
       ⚠️ AND THE BACKING IS NOW ITEM 146's, WHICH IS A FOURTH CHANGE TO THIS RULE AND THE ONLY
       ONE FORCED BY A MEASUREMENT RATHER THAN A READING. Item 145 shipped 134's 12% gold tint
       plus a drop shadow, on the argument that the shadow would make the tint survive a bright
       frame. Measured on the deployed page against a white frame:
         plate  rgba(251,176,59,0.12) -> rgb(255,246,231)  1.07:1   invisible
         border rgba(251,176,59,0.25)                       1.17:1   invisible
         triangle #FBB03B on the frame                      1.85:1
       so the control rendered as a bare orange triangle on bright content.
       ⚠️ THE SHADOW WAS DOING 15% OF ITS JOB, AND THE REASON IS THE PROPERTY IT WAS CHOSEN FOR.
       `filter: drop-shadow` follows the element's RENDERED ALPHA, so a 12%-alpha plate casts a
       12%-strength shadow. Rasterised, sampling below the edge: 8 units of darkening at alpha
       0.12 against 55 opaque — 0.15 of full strength. Item 145's comment argued that following
       the rendered alpha was the REASON to prefer drop-shadow over box-shadow. It is exactly
       what neutralised it. `box-shadow` paints behind the border box at full strength whatever
       the background's alpha, which is why the TEAM pills on this same overlay have always been
       legible over any poster (.ag-status-overlay ... { box-shadow:0 1px 6px rgba(0,0,0,.35) }).
       ⚠️ THE RULE (item 146): ANYTHING OVER UNKNOWN CONTENT CARRIES ITS OWN DARK BACKING —
       rgba(0,0,0,0.70) — NEVER A TINT OF ITS OWN HUE. A tint is a wash: it leaves contrast to be
       decided by content nobody has seen. 0.70 is derived from the worst case, not picked: gold
       ink needs alpha >= 0.70 to clear AA (4.5:1) against a WHITE frame, where it reaches 4.58,
       and it is 10.9:1 on a dark one — so the backing costs nothing where the control already
       worked. A shadow separates the SHAPE and cannot raise the INK's contrast against the
       backdrop, which is why no shadow is used here: box-shadow is permitted by the ruling, the
       backing does the work, and adding one on top would be decoration.
       ⚠️ THE INK STAYS GOLD, and #FBB03B is still a knowing exception to item 66's reserved
       decision colour — a play triangle is not a decision. Recorded as deliberate so a palette
       sweep does not "fix" it. At 0.70 it clears AA, so there is no reason to spend it. */
.ag-playring { position:relative; z-index:1; width:64px; height:64px; border-radius:6px; background:rgba(0,0,0,0.70); border:0.5px solid rgba(251,176,59,0.25); display:flex; align-items:center; justify-content:center; color:#FBB03B; }
    /* Audio cards: purple-tint thumb (bg via cfg.bg #0f0e1a) with a subtle purple
       bottom border + purple waveform bars. */
    .ag-card.ag-type-audio .ag-thumb { border-bottom:2px solid rgba(var(--at-audio-ring-rgb),0.2); }
    /* Transcript card motif — document text lines, purple-tinted (#b08cf5) so the icon
       area carries the transcript type hue, like Thumbnail's #d46878 icon. Same neutral
       structure, purple instead of white — no shadow/glow, just the tinted treatment. */
    /* ⚠️ ARTWORK FILLS THE BAND MINUS THE RESERVE. These are content renderings — §5's "line
       rules" — standing in for the transcript that will occupy that space, so they span it
       rather than floating in it. `align-self:stretch` takes the full reserved height and
       `space-evenly` distributes the rules across it; the RULES stay thin because a rule is a
       rule, not a bar that grows.
       ⚠️ RULE THICKNESS AND COUNT ARE NOT SETTLED BY §5 — see item 134. They are held at their
       existing values deliberately rather than invented. */
    .ag-transcript-motif { display:flex; flex-direction:column; justify-content:space-evenly; align-self:stretch; width:68%; }
    /* [REMOVED — item 401] the Selects three-state timeline: .ag-sel-wrap, .ag-selects-motif,
       .ag-sel-tl, .ag-sel-block (+is-sent/is-pending/is-todo), .ag-sel-more, .ag-sel-status and
       .ag-sel-empty. The card renders the plain type glyph now, like every other fileless type
       on this family — see the branch in assetCardFor. The breakdown is text in the meta line
       below the thumbnail (agSelectsMeta), which is untouched.
       ⚠️ THE RULES WENT WITH THE EMISSION RATHER THAN BEING LEFT BEHIND. An orphaned rule reads
       as live (item 159's .ag-badge), and .ag-sel-block in particular carried the 14px cap that
       items 399/400 spent two passes deriving — a later reader finding it would reasonably
       conclude the bars still render somewhere. */
    .ag-tr-speaker { height:6px; width:42%; border-radius:3px; background:rgba(var(--at-transcript-ring-rgb),0.6); }
    .ag-tr-line { height:5px; border-radius:3px; background:rgba(var(--at-transcript-ring-rgb),0.3); }
    .ag-tr-generating { animation:trskPulse 1.4s ease-in-out infinite alternate; align-items:flex-start; }
    /* ⚠️ §5, VERBATIM: "An asset awaiting its file shows its glyph plus 'Real preview when file
       lands' in the clear area of the band, at the same band height as a filled card." Sentence
       case, not caps — the spec writes it that way. Treatment follows .ag-tr-genlabel, the
       existing precedent for a label inside the band. Without it an empty card reads as BROKEN
       rather than WAITING, which is the whole reason the spec asks for it.
       ⚠️ ONLY WHEN GENUINELY AWAITING A FILE. A document card shows field rows whether or not its
       file has landed — PDFs get no preview — so captioning every motif would tell a client a
       real preview is coming when none ever is. Gated on stage `not_started`, which is the
       portal's own "Pending (no active version)". */
    .ag-await-cap { margin-top:8px; font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:#8FA0B3; white-space:nowrap; opacity:.85; }
    .ag-tr-genlabel { margin-top:6px; font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:#8FA0B3; white-space:nowrap; }
    /* Deliverable grid loading skeleton (filter row + asset cards). Pulses via .trsk/trskPulse. */
    /* Summary-bar placeholder — matches the real .asset-summary footprint (padding
       12px + ~1 line, margin 6/10) so the grid below sits at the same Y as real. */
    .del-skel-summary { height:42px; border-radius:4px; background:#2a2a2a; margin:6px 0 10px; }
    .del-skel-filters { display:flex; gap:8px; margin:0 0 14px; } /* matches .asset-filter margin */
    .del-skel-pill { width:96px; height:30px; border-radius:15px; background:#2a2a2a; }
    /* ⚠️ EXPLICIT HEIGHTS, NOT INHERITED ONES — A COLLAPSED LOADING STATE IS THE FAILURE A CLIENT
       SEES ON A SLOW CONNECTION AND NOBODY SEES IN TESTING. The skeleton band used to get its
       height from .ag-thumb's aspect-ratio (its old comment said so: "keeps its aspect ratio").
       With the ratio gone on desktop the band has no content and no basis, so it would render at
       whatever min-height happened to apply — or at nothing if that min-height were ever scoped
       away. Stated here so the skeleton cannot collapse to slivers because of a change made
       somewhere else. Covers BOTH builders: the static markup and skCard, which share the class.
       ⚠️ IT RESERVES A MINIMUM, IT DOES NOT PREDICT THE FINAL HEIGHT — and it cannot: the real
       band absorbs to a row whose height depends on footer content the skeleton has not loaded
       yet. Item 92's rule stands (a height that is not the final height is the same defect
       quieter), so the honest reading is that this under-reserves slightly rather than guessing
       wrongly in both directions. */
    .del-skel-shade { background:#2a2a2a; min-height:150px; }
    .del-skel-card { cursor:default; }
    .del-skel-card:hover { transform:none; box-shadow:none; border-color:var(--border); }
    .del-skel-line { height:12px; border-radius:4px; background:#2a2a2a; margin-bottom:10px; }
    /* Project-name subtitle placeholder. Intentionally sets NO height and NO font-size:
       it carries an &nbsp; and inherits .page-head-sub's 12px / line-height:normal, so its
       line box is identical to the real project name's. Adding either property here would
       reintroduce the guesswork this replaced. */
    .del-skel-sub { display:inline-block; width:120px; background:#2a2a2a; border-radius:4px; vertical-align:baseline; }
    /* ⚠️ AUDIO IS ARTWORK, NOT A GLYPH — and this corrects what I reported. `.ag-wave` is a real
       content rendering (five animated bars), which is exactly §5's "waveform"; the microphone
       glyph I described as audio's belongs to NARRATION. The ruling's criterion — only EXISTING
       content renderings become artwork — puts this one in, and the list that said otherwise was
       built from my error. Bars are percentages of the wave box so they scale with it. */
    /* ⚠️ FOUR STATES, AND MOVEMENT IS HALF THE VOCABULARY. Moving bars mean live — waiting on
       someone. Revision requested and approved are both SETTLED from the card's point of view
       (one is with us, one is done), so neither still moves; they separate from each other by
       weight. That distinguishes all four without touching the active weight, which is held at
       0.5 deliberately: raising it would change every audio card that is not approved, for no
       stated reason.
         no file            the missing-preview glyph, exactly as image/thumbnail/graphic
         approval needed    0.5, animated   — live
         revision requested 0.5, still      — settled, with us
         approved           0.22, still     — settled, done
       ⚠️ THE STATE COMES FROM assetBadgeState, the same function the BADGE reads. One
       computation, two consumers — a second derivation off assetStage is how the motif and the
       badge come to disagree about one card (items 101, 262). */
    /* ⚠️ TURNED — item 353, and the argument it replaces was MINE, not design's. It read:
       "FULL WIDTH, BECAUSE A WAVEFORM IS A TIME AXIS — anything less than the band's width means
       the axis stops before the file does." Design's own card overrules it in their words:
       "extent implied, not measured" — the waveform is a FIXED-EXTENT centred glyph that does
       not stretch. The historical half of the old note survives and now cuts the other way: the
       ORIGINAL motif never filled either (a content-sized ~27px cluster in a centred row), so
       the full-width state was itself the anomaly between two centred ones.
       ⚠️ FIXED PX HEIGHTS, NOT PERCENTAGES — item 216's rule, and this is the defect it exists
       for. `height:54%` resolved against `.ag-thumb`, which is RATIO-ONLY, and WebKit compounds
       that ~15% per layout pass: measured on a live client card at roughly 750px of band, which
       is 182px (the 16:9 floor at a 324px card) x 1.15^10. A px height owes the parent nothing,
       so the fix does not depend on which branch of that diagnosis is right.
       ⚠️ AND THE ANIMATION IS GONE, KEYFRAME AND ALL. It carried no information before the states
       existed and none after: moving bars on a card that is playing nothing are decoration
       pretending to be information, which is the failure the static waveform already had. Three
       states where one moves is worse than three that do not — and removing it is the same edit
       as the fix, because the keyframe was the only thing giving these bars a height at all. */
    /* ⚠️ CENTRED AS A GROUP, AND THE CAP IS WHAT MAKES IT A WAVEFORM RATHER THAN A BAND-HEIGHT
       ONE. `align-items:flex-end` anchored the bars to the bottom of a stretched, full-height
       wave — 18–80px bars in a 118px content box, sitting in the lower quarter. Nothing was
       overriding the design's `align-items:center`; it had never been applied.
       ⚠️ AND `align-self` HAD TO MOVE WITH IT — THE TWO ARE ONE MECHANISM, NOT TWO DECLARATIONS.
       A STRETCHED item clamped by a max-height is stretched to the cap and then sits at the
       START of the cross axis, so `align-self:stretch` would have put a 46px box at the TOP of
       the band and centring inside it would have centred nothing useful. Centred, the 46px box
       sits on the band's midline and the bars sit on it.
       ⚠️ THE BAND KEEPS ITS RATIO AND KEEPS ABSORBING, DELIBERATELY. A short audio band is not a
       local change: the ROW is the unit (grid-auto-rows:1fr, align-items:stretch), audio cards
       share rows with video and image cards in every real deliverable, and a band that stops
       absorbing pushes the row's surplus into flat card background — item 113, measured at 299px,
       which item 131 fixed by making the band the absorber. Capping the WAVE gets the design's
       46px waveform with the band still absorbing and no card growing dead space. Whether the
       band itself should be 16:9 for a type with no image is genuinely open and is a
       grid-geometry decision; it is not answered here. */
    /* ⚠️ TURNED — item 353: THE WAVE IS A FIXED-SIZE GLYPH AGAIN, BY DESIGN'S OWN NEWER CARD.
       This element has now been classified FOUR times, all left legible (items 145/276 — a
       reader who sees only the current state re-argues the withdrawn ones from the same
       evidence):
         · item 134 — ARTWORK_FILL           "artwork stands in for content that will occupy it"
         · item 271 — ARTWORK_FIXED, 46px    "a thing with a natural size should have it"
         · item 276 — ARTWORK_PROPORTIONAL   clamp(28px, 100cqw/6.5, 104px) — design's THEN-answer
         · item 353 — ARTWORK_FIXED again    design's card: "extent implied, not measured"
       [superseded, kept] the /6.5 note read: "100cqw IS the wave area… the silhouette is constant
       on the ratio limb (1:7.01 across 26 widths), which the fixed 46px could not do (1:11.8 to
       1:2.1)." Every measurement in it was right ABOUT THE SCALING MODEL — bars sharing the band
       is exactly what rendered as fat slabs at primary size, and design's answer to that is not a
       better divisor but a different object: a small centred cluster whose extent does NOT track
       the card. That is also their answer to the width question items 275/276 sent them.
       ⚠️ 46px RETURNS BY DESIGN RE-RULING. The guard named 46px "the specific revert to watch"
       because restoring a validated number reads as safe; it is restored here by the authority
       that validated it, which is the one way that assertion was ever supposed to yield.
       ⚠️ [STALE AS OF ITEM 355 — kept for the history] this paragraph recorded the cq units
       and container-type leaving with item 353's fixed 59px glyph. Item 355 brought BOTH back
       in a different job: the glyph now scales AS A UNIT via --wv-u (all dimensions from one
       cq-derived unit, silhouette invariant), which is not the /6.5 model this block
       superseded — there, bar width scaled independently of height and count.
       ⚠️ THE MOBILE QUESTION RETURNS EXACTLY TO ITEM 275's PARKED STATE, not to a new one:
       46px against the 27.7px ratio-floor content box is the pre-276 geometry whose Safari
       measurement is still outstanding. No new exposure.
       Bar 2px / gap 1px are design's own /5-era stated pitch — the only fixed px they ever gave
       — so the cluster is 20 x 2 + 19 x 1 = 59px, centred both axes by .ag-thumb's own
       align-items/justify-content:center. COUNT (20) AND STEPS (3) ARE RULED; the px values are
       provenance, not spec, and are deliberately unpinned. */
    /* ⚠️ THE GLYPH SCALES AS A UNIT — item 355, and the ONE-UNIT rule is what distinguishes
       this from the slab model item 276 killed. `--wv-u` is the glyph's scale: bar = 2u,
       gap = 1u, height = 46u, radius = 1u — EVERY dimension derives from the same unit, so
       bar:gap and the silhouette are invariant at every size BY CONSTRUCTION. The slab problem
       was bar width scaling INDEPENDENTLY (flex-grown bars against a clamped height); a decoupled
       dimension here is that defect returning and is its own break case.
       ⚠️ THE UNIT, DERIVED NOT TUNED: cluster = 20x2u + 19x1u = 59u, and design's spec card
       shows the glyph at roughly a THIRD of card width, so u = card/(3x59) = 100cqw/177.
       The FLOOR (1px) is today's exact 59px cluster — the narrowest real band (128px two-up at
       a 320px viewport) must never get less than it, per the ruling. The CEILING (4px) is
       UNREACHABLE today — max real wave area is 663px -> u = 3.75 — a runaway guard like item
       276's 104px, not a live bound; if `main`'s 1100 cap ever moves, the glyph does not grow
       unboundedly.
       ⚠️ LAYOUT SCALING, NEVER transform:scale — a transform resamples the rasterized layer,
       which is exactly the half-pixel softness the ruling warned about; cq-unit layout renders
       at native resolution, with at worst single-edge antialiasing on fractional bar widths.
       At the real sizes: primary 663 -> u 3.75 -> 7.5px bars (crisp); secondary 323 -> u 1.83
       -> 3.65px bars; mobile floor -> u 1 -> today's glyph unchanged. */
    .ag-wave { display:flex; align-items:center; gap:calc(1 * var(--wv-u));
               align-self:center; height:calc(46 * var(--wv-u));
               --wv-u:clamp(1px, calc(100cqw / 177), 4px); --wv-state:0.95; }
    /* ⚠️ THE LADDER IS REBUILT FROM THE TOP, NOT COMPRESSED AT THE BOTTOM — item 273, and the
       measurement is why. 0.5 / 0.34 / 0.22 was descending and FLAT: all three sat in the bottom
       third, spanning 2.94:1 to 1.61:1 against the band — a 1.83x span with no bright step at
       all. Rebuilt from design's OWN tiers rather than invented, and every value below is one of
       theirs (played .95 / approved .55 / unplayed .26):
         approval needed     0.95   6.60:1   bright — they owe us something
         revision requested  0.55   3.25:1   mid    — it is with us
         approved            0.26   1.76:1   dim    — done
       A 3.75x span with one genuinely bright tier. BRIGHTNESS TRACKS HOW MUCH THE CARD WANTS
       ATTENTION, which is what the badge beside it is also saying.
       ⚠️ AND NOTHING A CLIENT MUST *READ* MAY EVER SIT ON THIS LADDER. Measured against the band
       (#203227, the #2C4536 fill darkened 0.28), the ring clears 3:1 only at alpha >= 0.52 — so
       the bottom two rungs are below readable contrast by construction. That is fine for a
       waveform, which is decorative and identical across files by ruling, and it is a hard
       constraint on what this motif can ever be asked to carry: a value, a label or a count
       placed here would be unreadable in two of its three states. Put it in the meta line.
       ⚠️ THREE WEIGHTS, BECAUSE REMOVING THE ANIMATION TOOK HALF THE VOCABULARY WITH IT.
       Item 268 carried active-vs-settled on MOVEMENT and with-us-vs-done on WEIGHT — so
       approval-needed (0.5, animated) and revision-requested (0.5, still) differed by movement
       ALONE. With the animation gone they would render identically, which is the exact thing
       item 268's ruling refused. The distinction therefore moves onto weight, which is the
       family's own axis:
         approval needed     0.5   live, with them
         revision requested  0.34  settled, with us
         approved            0.22  settled, done
       This is not a new decision, it is what "no animation" plus "these two must differ"
       entails. */
    /* ⚠️ TURNED — item 353. The block this replaces required `flex:1 1 0` (bars SHARE the width)
       and recorded item 270's fixed-3px + space-between comb as the defect. BOTH halves are
       superseded together: the comb was fixed bars with the SURPLUS poured into gaps across a
       full-width wave; a fixed-extent glyph has no surplus to pour, so fixed bars are now the
       design and cannot reproduce the comb. Do not restore flex-grown bars without also
       restoring width:100% — grown bars in a width:auto flex item simply collapse to content.
       ⚠️ THREE OPACITY STEPS WITHIN THE WAVE, TIMES THE STATE — and the composition is the
       point (item 353 Q3). Design's resting card shows "twenty bars at three opacity steps",
       and their three published step values ARE item 273's ladder tiers: 0.95 / 0.55 / 0.26.
       So the steps are RELATIVE (1 / .579 / .274), the state is a multiplier (--wv-state), and
       in the bright state step x state reproduces design's three values exactly. The ladder's
       meaning rides the BRIGHTEST step (1 x state = the state value), so item 273's span and
       top-rung measurements are numerically unchanged — brightness still tracks how much the
       card wants attention, which is what the badge beside it says too. The approved state's
       dimmest bars land at ~0.07: near-invisible texture on a wave whose brightest bars still
       read 0.26 — right for "dim, done". Steps are DERIVED FROM BAR HEIGHT in the emitter
       (tallest brightest), so there is ONE array and no second table to drift. */
    .ag-wave span { flex:0 0 calc(2 * var(--wv-u)); border-radius:calc(1 * var(--wv-u));
                    background:rgb(var(--at-audio-ring-rgb));
                    opacity:calc(var(--wv-state) * var(--wv-step,1)); }
    .ag-wave .wv2 { --wv-step:0.579; }
    .ag-wave .wv3 { --wv-step:0.274; }
    .ag-wave.is-still   { --wv-state:0.55; }
    .ag-wave.is-settled { --wv-state:0.26; }
    /* @keyframes agwave DELETED with the animation it drove — item 270. */
    /* §5's "field rows" — artwork, same contract as the transcript rules. It shares .ag-motif
       with the file glyph, so the MOTIF stretches and the rows distribute inside it. */
    .ag-doclines { display:flex; flex-direction:column; justify-content:space-evenly; flex:1; width:46%; margin-top:8px; }
    .ag-doclines i { height:3px; border-radius:2px; background:rgba(120,120,120,.4); }
    .ag-doclines i:last-child { width:62%; }
    .ag-form { display:flex; flex-direction:column; gap:6px; width:58%; }
    .ag-form i { height:6px; border-radius:2px; background:rgba(110,155,200,.5); }
    .ag-form i.lbl { width:42%; height:3px; background:rgba(110,155,200,.85); }
    /* Publish Details (metadata) card: mini thumb placeholder + form-field previews. */
    .ag-meta-preview { width:100%; height:100%; display:flex; flex-direction:column; gap:8px; padding:12px; box-sizing:border-box; }
    .ag-meta-thumb { width:100%; height:70px; flex-shrink:0; background:#0d2626; border:1px solid rgba(var(--at-publish-details-ring-rgb),0.15); border-radius:5px; display:flex; align-items:center; justify-content:center; color:rgba(var(--at-publish-details-ring-rgb),0.3); }
    .ag-meta-thumb svg { width:30px; height:30px; }
    .ag-meta-fields { display:flex; flex-direction:column; gap:7px; }
    .ag-meta-field { background:rgba(var(--at-publish-details-ring-rgb),0.04); border:1px solid rgba(var(--at-publish-details-ring-rgb),0.15); border-radius:4px; padding:5px 7px; display:flex; flex-direction:column; gap:4px; }
    .ag-meta-flabel { font-size:8px; text-transform:uppercase; letter-spacing:0.06em; font-weight:600; color:rgba(var(--at-publish-details-ring-rgb),0.6); }
    .ag-meta-line { height:5px; border-radius:3px; background:rgba(var(--at-publish-details-ring-rgb),0.25); }
    .ag-meta-line.short { width:70%; }
    /* Real publish title inside the TITLE box, in place of its grey bar. Sized to occupy
       the same 5px-bar + 4px-gap slot so the card's height is unchanged, and kept muted:
       this is supporting detail, not the card's headline (the name slot is). */
    .ag-meta-title { font-size:9px; line-height:1.35; color:rgba(var(--at-publish-details-ring-rgb),0.72); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    /* Platform Metadata inline review modal. */
    .md-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; z-index:340; padding:24px; }
    .md-panel { width:100%; max-width:600px; max-height:88vh; overflow-y:auto; background:#0a1018; border:1px solid #1a2a3a; border-radius:4px; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
    .md-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px 10px; }
    .md-head-left { display:flex; align-items:center; gap:10px; }
    .md-modal-title { font-family:'Manrope',sans-serif; font-weight:600; font-size:1.05rem; color:var(--text); }
    .md-platform-badge { display:inline-flex; align-items:center; gap:6px; font-size:0.72rem; font-weight:600; letter-spacing:.04em; padding:4px 10px; border-radius:4px; background:#1a2a3a; color:#a8c4d8; }
    .md-close { background:none; border:none; color:var(--text-muted); font-size:22px; cursor:pointer; line-height:1; }
    .md-body { padding:0 22px 16px; }
    .md-field { margin-bottom:16px; }
    /* MUTED GREY. #5a6b7a was a blue-grey and it painted PUBLISH TITLE, DESCRIPTION and
       TAGS / KEYWORDS all at once — an audit of everything rendering blue in this column
       found exactly one rule, not the four labels it looked like. After this the ONLY blue
       left in the edit column is .md-cut-note (#4A7A99), which is the one that means
       something. */
    .md-flabel { font-size:0.72rem; font-weight:600; color:#8E8E88; margin-bottom:5px; }   /* ⟦E⟧ sentence case — no forced capitals (item 759) */
    .md-desc-limit { margin-top:5px; font-size:0.7rem; color:#7f98a8; text-align:right; }
    .md-desc-limit--over { color:#E24B4A; }
    .md-locked-note { margin:0 0 12px; padding:9px 12px; border-radius:6px; background:rgba(255,255,255,0.04); border:0.5px solid rgba(255,255,255,0.12); font-size:0.8rem; color:var(--text); }
    .md-locked-note .md-msg-link { color:inherit; text-decoration:underline; text-underline-offset:2px; }
    .md-title-edit { font-family:'Manrope',sans-serif; font-size:1.2rem; font-weight:600; color:var(--text); outline:none; border:1px solid transparent; border-radius:4px; padding:4px 6px; }
    .md-title-edit:hover, .md-desc-edit:hover, .md-date-edit:hover { border-color:#1f3346; }
    .md-title-edit:focus, .md-desc-edit:focus, .md-date-edit:focus { border-color:var(--review); background:rgba(255,255,255,0.02); }
    .md-desc-edit { width:100%; min-height:110px; background:transparent; border:1px solid transparent; border-radius:4px; color:var(--text); font-family:'Inter',sans-serif; font-size:0.9rem; line-height:1.5; padding:8px; resize:vertical; outline:none; }
    .md-tags { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
    /* TIGHTER. 22 chips at the old size was five rows of noise for something rarely edited. */
    .md-chip { display:inline-flex; align-items:center; gap:5px; background:#282826; color:#B4B4AD; font-size:0.72rem; padding:2px 7px; border-radius:3px; }
    /* Collapsed chips are REMOVED FROM LAYOUT, not merely invisible — visibility:hidden would
       leave them occupying the rows this exists to reclaim. */
    .md-chip-hidden { display:none; }
    /* The toggle is a chip, so it sits in the flow and wraps with them; it is a button so it
       is reachable by keyboard, which a clickable span would not be. */
    .md-tag-more { border:0.5px dashed #5A5A52; background:none; color:#8C8C85; cursor:pointer; font-family:'Inter',sans-serif; font-size:0.72rem; padding:2px 7px; border-radius:3px; }
    .md-tag-more:hover { color:#EDEDEA; border-color:#6E6E63; }
    .md-chip button { background:none; border:none; color:#8A867E; cursor:pointer; font-size:14px; line-height:1; padding:0; }
    .md-tag-add { background:transparent; border:1px dashed #3A3A37; border-radius:4px; color:var(--text); font-size:0.76rem; padding:3px 10px; outline:none; min-width:90px; }
    /* Copy-out + character count under the chips. Dark-only, like the rest of this page —
       #metadata-view never carries a data-theme attribute (only #rv-transcript-view and the
       body-level popovers do), so a light rule here would be dead CSS. */
    .md-tagbar { display:flex; align-items:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
    .md-tagcopy { background:transparent; border:1px solid #3A3A37; border-radius:4px; color:#B5B2AC; font-size:0.72rem; font-family:'Inter',sans-serif; padding:3px 10px; cursor:pointer; }
    .md-tagcopy:hover:not(:disabled) { border-color:#4A4A46; color:var(--text); }
    .md-tagcopy:disabled { opacity:0.4; cursor:default; }
    /* Over the cap is a WARNING, never a block — the field stays fully editable, because the
       fix is usually deleting a tag deliberately, not being stopped mid-edit. */
    /* On the label line now: never wraps, never shrinks — the label truncates instead. */
    .md-tagcount { margin-left:auto; flex-shrink:0; white-space:nowrap; text-transform:none; letter-spacing:0; font-weight:500; color:var(--text-muted); }
    .md-tagcount.over { color:#FBB03B; font-weight:600; }
    .md-date-edit { background:transparent; border:1px solid transparent; border-radius:4px; color:var(--text); font-family:'Inter',sans-serif; font-size:0.9rem; padding:6px 8px; outline:none; color-scheme:dark; }
    .md-foot { border-top:1px solid #1a2a3a; padding:14px 22px; display:flex; align-items:center; gap:10px; }
    .md-save { background:var(--brand); color:#1a1c20; border:none; border-radius:4px; padding:9px 16px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; font-size:0.85rem; }
    .md-decision { margin-left:auto; display:flex; gap:8px; }
    .md-btn-changes { background:none; border:0.5px solid var(--border); color:var(--text); border-radius:4px; padding:9px 14px; cursor:pointer; font-size:0.85rem; font-family:'Inter',sans-serif; }
    .md-btn-approve { background:#1D9E75; color:#fff; border:none; border-radius:4px; padding:9px 16px; cursor:pointer; font-weight:600; font-size:0.85rem; font-family:'Inter',sans-serif; }
    /* Two-column edit | preview layout. */
    .md-panel-wide { max-width:880px; }
    .md-cols { display:flex; align-items:stretch; }
    .md-col { flex:1; min-width:0; padding:4px 22px 16px; }
    .md-edit { border-right:1px solid #1a2a3a; }
    /* [REMOVED] .md-preview { background:#070b12 } — an UNSCOPED leftover of the old panel,
       a blue-black fully overridden by the #metadata-view rule below. Its only element
       lives inside that view, so it never painted anything; it was a blue waiting to
       reappear the moment the scoped rule was touched. */
    .md-select { width:100%; background:#0f1722; border:1px solid #1f3346; border-radius:4px; color:var(--text); font-size:0.88rem; padding:7px 9px; outline:none; font-family:'Inter',sans-serif; }
    .md-select:focus { border-color:var(--review); }
    .md-input { width:100%; background:transparent; border:1px solid #1f3346; border-radius:4px; color:var(--text); font-size:0.92rem; padding:7px 9px; outline:none; font-family:'Inter',sans-serif; }
    .md-input:focus { border-color:var(--review); }
    .md-edit .md-desc-edit { border-color:#1f3346; }
    .md-date-edit { width:180px; }
    .md-prev-platform { font-size:0.72rem; color:#6e9bc8; font-weight:600; letter-spacing:.03em; margin-bottom:6px; }
    .md-prev-title { font-family:'Manrope',sans-serif; font-size:1.05rem; font-weight:600; color:var(--text); margin-bottom:8px; line-height:1.3; }
    .md-prev-desc { font-size:0.85rem; color:#c4ccd4; line-height:1.55; white-space:pre-wrap; margin-bottom:12px; }
    .md-prev-tags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
        /* QUIETER than the editor's chips (#2E2E2C / #B5B2AC): these are read-only. */
    .md-prev-pill { background:#232320; color:#8C8C85; font-size:0.72rem; padding:2px 8px; border-radius:4px; border:none; }
    .md-prev-empty { color:#8C8C85; font-size:0.8rem; }
    /* Inside the card, so it is part of the YouTube render — furniture, never signal. */
    .md-prev-date { font-size:0.72rem; color:#8C8C85; }
    @media (max-width:680px) { .md-cols { flex-direction:column; } .md-edit { border-right:none; border-bottom:1px solid #1a2a3a; } }
    /* Publish Details FULL PAGE (mirrors #review-view). */
    #metadata-view { display:none; flex-direction:column; height:100vh; background:#1A1A1A; }
    #metadata-view .md-cols { flex:1; min-height:0; overflow:hidden; align-items:stretch; }
    #metadata-view .md-col { padding:24px 28px; }
    #metadata-view .md-edit { display:flex; flex-direction:column; overflow:hidden; border-right:0.5px solid #3A3A37; }
    #metadata-view .md-edit .md-fields { flex:1; overflow-y:auto; min-height:0; padding-right:4px; }
    /* NO background here — the recess is declared ONCE, further down beside the card that
       sits on it. Two rules of equal specificity setting the same property means the first
       is dead and editing it changes nothing, which is how a value ends up disagreeing
       with itself in two places. */
    #metadata-view .md-preview { overflow-y:auto; }
    #metadata-view .md-flabel { margin-bottom:6px; }
    /* Column headers — Montserrat 700 uppercase title + subtitle. The EDIT one now carries
       Save on its right, so it is a ROW: label block left, save cluster right.
       flex-shrink:0 is the load-bearing part — see the note by .md-ab-save. */
    .md-colhead { margin-bottom:12px; display:flex; align-items:flex-start; gap:12px; flex-shrink:0; }
    .md-colhead-labels { min-width:0; }
    .md-coltitle { font-family:'Montserrat','Manrope',sans-serif; font-weight:700; font-size:0.95rem; color:var(--text); display:flex; align-items:center; gap:7px; }
    /* Muted grey, so the icon labels the column without competing with the word. */
    .md-coltitle svg { flex-shrink:0; color:var(--text-muted); }
    /* "Read only" — a fact about the column, in the quietest register on the page. It is not
       a state badge and never changes; slate-blue would make it informational signal, which
       is reserved for the fold note and the thumbnail badge. */
    .md-colhead-chip { margin-left:auto; flex-shrink:0; align-self:flex-start; background:#232320; color:#7A7A73; font-family:'Inter',sans-serif; font-size:10px; font-weight:600; letter-spacing:.04em; padding:3px 8px; border-radius:4px; white-space:nowrap; }
    /* MUTED GREY, not #7a8a98 — that is a blue-grey and it read as a THIRD blue beside the
       fold note and the thumbnail badge, which are the only two informational blues on this
       page. It also outshouted the Save button next to it. */
    .md-colsub { font-size:0.78rem; color:#7A7A73; margin-top:4px; line-height:1.4; }
    /* The edit column's footer is GONE — Save moved into the sticky action bar, so there is
       exactly ONE save control on the page. .md-edit-foot, .md-save-secondary and
       .md-save-hint went with it; each had this footer as its only user. See .md-ab-save. */
    /* Internal edit history (team only) — lives inside .md-edit, never .md-preview */
    .md-hist { flex-shrink:0; margin-top:12px; border-top:1px solid #2A2A28; padding-top:10px; }
    .md-hist-toggle { display:flex; align-items:center; gap:7px; width:100%; background:none; border:0; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:0.76rem; font-weight:500; padding:4px 0; cursor:pointer; text-align:left; }
    .md-hist-toggle:hover { color:var(--text); }
    .md-hist-chev { transition:transform .15s; flex-shrink:0; }
    .md-hist-toggle.open .md-hist-chev { transform:rotate(180deg); }
    .md-hist-tag { font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); border:0.5px solid var(--border); border-radius:3px; padding:1px 5px; margin-left:auto; }
    .md-hist-body { max-height:220px; overflow-y:auto; margin-top:8px; }
    .md-hist-empty { font-size:0.74rem; color:var(--text-muted); padding:6px 0; }
    .md-hist-entry { padding:8px 0; border-bottom:0.5px solid #2A2A28; }
    .md-hist-entry:last-child { border-bottom:0; }
    .md-hist-head { display:flex; align-items:baseline; gap:8px; margin-bottom:5px; }
    .md-hist-by { font-size:0.76rem; font-weight:600; color:var(--text); }
    .md-hist-when { font-size:0.68rem; color:var(--text-muted); margin-left:auto; }
    .md-hist-change { margin-bottom:5px; }
    .md-hist-field { font-size:0.68rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
    .md-hist-trunc { font-size:8.5px; font-weight:600; text-transform:none; letter-spacing:0; color:#c9a227; border:0.5px solid rgba(201,162,39,0.4); border-radius:3px; padding:0 4px; }
    .md-hist-vals { font-size:0.74rem; line-height:1.5; word-break:break-word; }
    .md-hist-from { color:var(--text-muted); text-decoration:line-through; text-decoration-color:rgba(255,255,255,0.25); }
    .md-hist-arrow { color:var(--text-muted); margin:0 5px; }
    .md-hist-to { color:var(--text); }
    /* .md-approve-btn is NOT dead — the project view's document-review button uses it.
       The old bottom approve bar's own rules (.md-approve-bar / .md-approve-hint /
       .md-approved-banner / .md-prev-thumb) went with the redesign; see .md-actionbar. */
    .md-approve-btn { margin-left:auto; background:var(--approved); color:#fff; border:none; border-radius:4px; padding:11px 24px; font-weight:600; font-size:0.9rem; cursor:pointer; font-family:'Inter',sans-serif; }
    .md-approve-btn:hover { filter:brightness(1.08); }
    /* Review IS a decision — gold, like every other decision surface. Green means "already
       approved" everywhere else in this portal, so a green button asking for a decision said
       the opposite of what it wanted. Approved cards keep the green: there, it is true. */
    .md-approve-btn.is-decision { background:var(--brand); color:#1a1c20; }
    /* Amber "changed since last review" dot — edit side labels only. */
    .md-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:#F7931E; margin-left:6px; vertical-align:middle; }
    #metadata-view .md-field { margin-bottom:22px; max-width:680px; }
    #metadata-view .md-prev-title { font-family:'Montserrat','Manrope',sans-serif; font-weight:700; font-size:1.25rem; }
    .md-divider { height:1px; background:#2A2A28; margin:0 0 14px; }
    /* Roughly double the gap in the preview column only: at 14px the frame read as ATTACHED
       to the header, which is the opposite of "a rendering of somewhere else". */
    #metadata-view .md-preview .md-divider { margin-bottom:30px; }
    /* Read-only thumbnail at the top of the Publish Details preview. */
    /* Scoped form controls — override the global input[type=date] rule (which is
       more specific than a bare class) so the date input stays compact. */
    #metadata-view .md-input, #metadata-view .md-select { width:100%; background:#212120; border:1px solid #3A3A37; border-radius:4px; color:var(--text); padding:7px 9px; font-size:0.82rem; font-family:'Inter',sans-serif; }
    #metadata-view .md-input:focus, #metadata-view .md-select:focus { border-color:var(--review); }
    #metadata-view .md-date-edit { width:180px; min-height:0; background:#212120; border:1px solid #3A3A37; border-radius:4px; color:var(--text); padding:7px 9px; font-size:0.9rem; font-family:'Inter',sans-serif; }
    /* ⟦item 780⟧ the episode's Release Date in place of the Publish Details' own date (read-only). */
    #metadata-view .md-date-ro { padding:7px 0 2px; font-size:0.9rem; font-weight:600; color:var(--text); }
    .md-release-note { margin-top:3px; font-size:0.78rem; color:var(--text-muted); }
    /* Publish Title — two-line textarea, no manual resize. */
    #metadata-view .md-title-area { resize:none; line-height:1.45; min-height:2.6em; overflow:hidden; }
    /* Description rich-text editor (Bold/Italic toolbar + contenteditable). */
    /* THE FIELD'S TOP BAR, not a floating notch above it. It carries the field's outer
       border and top radius, its own bottom hairline as the seam, and sits flush — the two
       were reading as two disconnected objects. */
    .md-rt-toolbar { display:flex; gap:4px; padding:4px 6px; background:#232320; border:0.5px solid #3A3A37; border-bottom:0.5px solid #3A3A37; border-radius:6px 6px 0 0; }
    .md-rt-btn { width:24px; height:22px; display:inline-flex; align-items:center; justify-content:center; background:none; border:none; color:var(--text-muted); font-size:0.78rem; cursor:pointer; border-radius:3px; }
    .md-rt-btn:hover { color:var(--text); }
    .md-rt-btn:hover { background:#2E2E2C; color:var(--text); }
    .md-rt-btn.active { color:#fff; background:#3A3A37; }
    /* REFERENCE TEXT, NOT PROSE — people scan this, they do not read it. Down a step from
       0.9rem, and the toolbar above is now part of the same box (no top border, no top
       radius) so the two read as one field rather than two objects. */
    .md-rt-edit { width:100%; min-height:160px; background:#212120; border:0.5px solid #3A3A37; border-top:none; border-radius:0 0 6px 6px; color:var(--text); font-family:'Inter',sans-serif; font-size:0.8rem; line-height:1.65; padding:9px 10px; outline:none; box-shadow:none; overflow:auto; resize:vertical; }
    .md-rt-edit:focus { border-color:#5A5A55; box-shadow:none; outline:none; }
    /* Bold/italic affect weight/style only — never colour (no blue). */
    .md-rt-edit strong, .md-rt-edit b { font-weight:700; color:var(--text); }
    .md-rt-edit em, .md-rt-edit i { font-style:italic; color:var(--text); }
    .md-prev-desc strong { font-weight:700; color:var(--text); }
    .md-prev-desc em { font-style:italic; }
    /* Topbar Save button (shown when edits made). */
    .md-save-topbar { background:var(--brand); color:#1a1c20; border:none; border-radius:4px; padding:6px 14px; font-weight:600; font-size:0.8rem; cursor:pointer; font-family:'Inter',sans-serif; flex-shrink:0; }
    /* Comment pill in the metadata decision bar (mirrors the review composer pill). */
    /* ══ PUBLISH DETAILS REDESIGN ═════════════════════════════════════════════════════
       Dark-only, like the review page and every other non-transcript view — the scoped
       light theme belongs to #rv-transcript-view alone and this page never carries it. */

    /* ── 1. Sticky top action bar ─────────────────────────────────────────────────────
       Replaces the old bottom .md-approve-bar, which a long description pushed off
       screen. Deliberately the SAME shell as the review page's #rv-action-bar (80px
       tall, 0 28px padding, 8px gap, 8px 8px 0 margin, and FLUSH — no fill, no radius, no
       shadow, item 377) so the two pages read as one system rather than two. It stays put because
       #metadata-view is a 100vh flex column and this is a flex-shrink:0 sibling ABOVE
       .md-cols — the columns scroll internally, the bar cannot scroll away. */
    /* ⚠️ FLUSH, FOLLOWING THE REVIEW BAR (item 377) — which is what this rule's own note
       above says it does ("the SAME shell as the review page's #rv-action-bar"). The
       transcript bar keeps its fill on design's separate authority; this one follows the
       review reference, so it loses the card with #rv-action-bar. */
    #metadata-view .md-actionbar { flex-shrink:0; display:flex; align-items:center; gap:8px; height:80px; padding:0 28px; margin:8px 8px 0; background:transparent; }
    /* ⚠️ THE IDENTIFICATION RULES ARE GONE with the nodes they styled — .md-ab-thumb,
       .md-ab-thumb-ph, .md-ab-meta, .md-ab-name, .md-ab-sub and .md-ab-thumbwrap /
       .md-ab-thumb-dot below. Leaving them would be the exact thing the note further down
       warns about: dead CSS keeping a colour alive and waiting for the next author to
       re-mount something into it. mdThumbPlaceholder() itself STAYS — it takes its class as
       an argument and other callers use it.
       MARGIN-LEFT:0, NOT 14px. Share is now the bar's first child, so that margin was the
       gap after an identification block that no longer exists; keeping it would inset Share
       from the bar edge on this surface alone, which is the divergence being closed. The
       label supplies its own 9px after it, same as the other two bars. */
    .md-ab-share { display:flex; align-items:center; gap:12px; flex-shrink:0; margin-left:0; }
    .md-ab-share:empty { display:none; }
    .md-ab-actions { margin-left:auto; display:flex; align-items:center; gap:8px; flex-shrink:0; }
    /* The review page's own decision class at its action-bar scale (mirrors the
       #rv-brief-dec-slot sizing) — same weights, same paddings, no new button system.
       Approve is the ONLY decision on this page. It carries its full label and a little
       more horizontal padding so it holds the right end of the bar on its own rather
       than reading as a stranded chip, with a short lead-in to its left. */
    /* ⚠️ THE COLOUR OVERRIDE THAT USED TO LIVE HERE IS GONE, AND THAT IS THE POINT. It painted
       Publish Details' Approve Broadcast Gold while the base rule painted the review page's
       Approve var(--approved) GREEN — two Approve controls in two colours, recorded in
       CLAUDE.md item 66 as a known divergence. The base rule is now gold for both, so this
       scope has nothing left to say about fill and must not regrow one: a second declaration
       of the same colour is how the divergence started.
       WHAT SURVIVES IS GEOMETRY ONLY, and it names BOTH buttons — a rule that sized Approve
       alone is what let the pair drift apart on this bar. */
    #metadata-view .md-ab-actions .btn-approve-rv,
    #metadata-view .md-ab-actions .btn-changes-rv { flex:0 0 auto; padding:8px 20px; }
    .md-ab-approved { display:inline-flex; align-items:center; gap:7px; color:var(--approved); font-size:0.85rem; font-weight:600; white-space:nowrap; }
    /* SAVE LIVES IN THE EDIT COLUMN HEADER, not the action bar — it commits that column,
       and sitting beside Approve made a field-level write look like a page-level decision.
       It CANNOT scroll away: .md-colhead is a flex sibling ABOVE .md-fields, and .md-fields
       is the only thing in .md-edit that scrolls. position:sticky would do nothing here —
       sticky positions within a scroll container and the header is not inside one — so the
       guarantee is flex-shrink:0 below, the same way .md-actionbar is pinned.
       OUTLINE, and deliberately MUTED: the hierarchy against gold Approve should be a
       decision, not a side effect of what happens to sit next to it. NEVER hidden and NEVER
       disabled in either dirty state — a save control that disappears when there is nothing
       to save is one you cannot find when there is. */
    #metadata-view .md-colhead-save { display:flex; align-items:center; gap:10px; flex-shrink:0; margin-left:auto; }
    /* A grey fill with grey text and NO border reads as disabled — the affordance was
       missing, not the colour. The border is what says "pressable"; the fill alone did not. */
    #metadata-view .md-ab-save { flex:0 0 auto; box-sizing:border-box; height:30px; background:#35352F; border:0.5px solid #5A5A52; color:#EDEDEA; border-radius:5px; padding:0 16px; font-size:12px; font-weight:600; font-family:'Inter',sans-serif; cursor:pointer; }
    #metadata-view .md-ab-save:hover { background:#414138; border-color:#6E6E63; }
    /* Orange is the portal's unsaved-work colour (same #F7931E as the .md-dot "changed
       since last review" marker) — a state, not a decision, so it never becomes a fill. */
    /* Dirty is Signal Orange #F7931E — the unsaved colour, never gold. Gold is a decision and
       Save is not one; that is why Approve can be gold on the same bar and this cannot. */
    #metadata-view .md-ab-save.is-dirty { background:#4A3418; border:1px solid #F7931E; color:#F7931E; }
    /* nowrap + flex-shrink:0 — "Saved Jul 27, 4:35 PM" was wrapping to two lines beside a
       single-line Save button, which pushed the header row out of alignment. */
    .md-ab-dirty { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; font-size:0.75rem; color:var(--text-muted); white-space:nowrap; }
    .md-ab-dirty.is-dirty { color:#F7931E; }
    /* The dot exists only in the dirty state — "Saved 2:41 PM" needs no bullet in front of
       it, and a permanent dot that only changes colour is a weaker signal than one that
       is either there or not. */
    .md-ab-dirty-dot { width:6px; height:6px; border-radius:50%; background:#F7931E; flex-shrink:0; display:none; }
    .md-ab-dirty.is-dirty .md-ab-dirty-dot { display:block; }

    /* ── Thumbnail state badges ───────────────────────────────────────────────────────
       Informational slate-blue, the same role as .md-cut-warn / .md-cut-note: these say
       WHERE the frame came from, never that anything is wrong. Not gold, not orange,
       not green — those three are decision and state colours on this page. */
    /* [REMOVED] .md-thumb-badge — the thumbnail overlay. Its markup went when the badge
       moved out of the browser frame to .md-thumbnote below it; the rule outlived it by one
       deploy. Same shape as the three retired alongside: dead CSS keeps a colour alive and
       waiting. .md-ab-thumb-dot USED to be the exception here — the sticky action bar's own
       indicator, on a different surface. That bar no longer has a thumbnail, so the exception
       expired and the rule went with it rather than becoming the case it was contrasted against. */

    /* ── 2. Preview column as a recessed platform card ────────────────────────────────
       The two columns used to differ only at their section labels. The preview now sits
       on its own darker ground with an inset edge, so it stays distinguishable at any
       scroll position, and carries no control that could read as a second form. */
    /* COOL SLATE TINT (replaces the #05080e recessed surface). Recession is a lightness
       shift, which is nearly invisible on an already-dark UI — that was the original
       complaint. A hue change survives a glance. Slate-blue is the system's
       informational colour (--hint-accent) and a preview is informational by definition:
       not editable, not a decision surface. Held at HSL S≈40% so it reads
       grey-with-a-cast rather than as a blue panel, and never competes with the
       thumbnail inside it. */
    /* RECESSED BY DEPTH, NOT BY TINT — #111110 under the edit column's #1A1A1A. The blue
       cast is gone (that was the original complaint); this is the same hue, one step down.
       NO inset shadow here: §2e wants ONE seam, and it lives on the edit column's right edge
       below. A gap AND a border AND a recess is three treatments doing one job. */
    #metadata-view .md-preview { background:#111110; }
    /* PREVIEW heading matches EDIT — the override that made it blue is gone, so both
       resolve to .md-coltitle's own colour rather than two rules that must agree. */
    #metadata-view .md-preview .md-prev-empty { color:var(--text-muted); }
        /* Centred HORIZONTALLY and held narrow, so it reads as a posted card rather than a
       panel that happens to be in the right-hand column. NOT vertically centred: the preview
       title has to stay level with the title field it mirrors, and centring it vertically
       would slide it away from its own subject as the description grows. */
        /* PROPORTIONAL WITH A CEILING. 80% keeps a gutter at any column width without anyone
       having to know the column width; the 500px cap stops it growing into a slab on a wide
       monitor. A fixed pixel value cannot do both — 300px read well on a 680px mock and
       leaves more gutter than card on the real column, cramming the description to five
       lines. NOT FILLING THE COLUMN IS THE POINT: the inset is what makes this read as an
       artifact being previewed rather than a second form to fill in. */
    /* The frame and the card are ONE object: the bar has no bottom border, the card has no
       top radius, and both carry the same #45453F edge. Width and centring live on the
       wrapper now so the two cannot drift apart. */
    .md-browser { max-width:min(80%, 500px); margin:0 auto; }
    .md-browser-bar { display:flex; align-items:center; gap:6px; padding:7px 10px; background:#232320; border:0.5px solid #45453F; border-bottom:none; border-radius:8px 8px 0 0; }
    .md-browser-dot { width:7px; height:7px; border-radius:50%; background:#45453F; flex-shrink:0; }
    .md-browser-host { margin-left:6px; background:#1A1A1A; color:#7A7A73; border-radius:20px; padding:2px 12px; font-family:'Inter',sans-serif; font-size:0.68rem; line-height:1.6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .md-pcard { background:#282826; border:0.5px solid #45453F; border-radius:0 0 8px 8px; overflow:hidden; }

    /* Keywords sit OUTSIDE the frame, at the frame's width so the column reads as one stack. */
    /* Same width as the frame so the column reads as one stack. Slate-blue: informational,
       the same role the fold note carries — a fact about the artwork, not a state. */
    /* THE PREVIEW NOTICE — INFORMATIONAL, AND OUTSIDE THE PREVIEW CARD.
       ⚠️ IT USED TO READ AS PART OF THE CARD, and the cause was geometry rather than markup: it
       already rendered above .md-browser, but width-matched to it (max-width:min(80%,500px);
       margin:0 auto) and sitting on the preview column's own #111110 recess, BELOW the divider
       that opens the card region. Same width, same centring, same surface — so it read as a strip
       inside the YouTube card it was describing. It is now full column width and sits ABOVE the
       divider, directly under the caption, which is what makes it a note ABOUT the preview.
       DO NOT re-add a max-width here: matching .md-browser's width is precisely what put it back
       inside the card last time.
       SQUARE CORNERS AND SLATE, deliberately. Rounded corners and gold would read as a decision
       chip, and this decides nothing — Publish Details can be approved with an unapproved
       thumbnail, and the notice must never gate that. Slate is the portal's informational accent;
       gold and orange are reserved for decisions.
       THERE IS NO APPROVED STATE. An approved thumbnail renders nothing at all — a row saying
       everything is fine is a row nobody reads, and it would be the only "success" chrome here. */
    .md-thumbnote { display:flex; align-items:flex-start; gap:8px; margin:0 0 14px; padding:9px 11px; background:rgba(74,122,153,.10); border-left:2px solid #4A7A99; border-radius:0; color:var(--text-secondary); font-family:'Inter',sans-serif; font-size:0.75rem; line-height:1.45; }
    .md-thumbnote svg { flex-shrink:0; margin-top:2px; color:#4A7A99; }
    .md-thumbnote a { color:#8FBDD6; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
    .md-thumbnote a:hover { color:#A9CFE2; }
    .md-prevkw { max-width:min(80%, 500px); margin:18px auto 0; }
    .md-prevkw-label { font-size:0.66rem; letter-spacing:.08em; margin-bottom:7px; }
    /* Two registers on one line: the NAME in the same treatment as every other small label,
       the qualifier quieter and un-capitalised so it reads as an aside rather than a second
       heading shouting alongside the first. */
    .md-prevkw-what { color:#6E6E68; }   /* ⟦E⟧ sentence case (item 759) */
    .md-prevkw-qual { text-transform:none; letter-spacing:0; color:#56564F; font-weight:400; }
    .md-pcard-thumb, .md-pcard-thumb-ph { display:block; width:100%; aspect-ratio:16/9; background:#212120; }
    .md-pcard-thumb { object-fit:cover; }
    /* #3f5163 measured 2.28 against the thumb well — effectively invisible, so a missing
       thumbnail read as a blank box rather than as "none released". Pre-existing (it was
       2.33 before the slate pass), lifted to 4.5. */
    .md-pcard-thumb-ph { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#8A867E; font-size:0.72rem; }
    .md-pcard-body { padding:12px 14px 14px; }
    .md-pcard-title { font-family:'Manrope',sans-serif; font-size:1rem; font-weight:600; color:var(--text); line-height:1.35; margin-bottom:10px; word-break:break-word; }
    .md-pcard-chan { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
    .md-pcard-avatar { width:26px; height:26px; border-radius:50%; background:#33332F; color:#B5B2AC; font-size:0.64rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .md-pcard-chan-name { font-size:0.78rem; color:#C9C5BE; font-weight:500; line-height:1.25; }
    .md-pcard-chan-plat { font-size:0.67rem; color:var(--text-muted); line-height:1.25; }
    /* Description in its own block, so the cut point below reads as part of the
       description surface rather than as page furniture. */
    .md-pcard-desc { background:#212120; border-radius:6px; padding:10px 12px; font-size:0.82rem; line-height:1.55; color:#D8D4CD; white-space:pre-wrap; word-break:break-word; }

    /* ── 3. Description truncation ────────────────────────────────────────────────────
       The point of this view: show WHERE the platform cuts, so it is obvious whether
       links and hashtags land below the fold. */
    /* Fold marker. It has to read as a BOUNDARY — the whole point of the preview is
       showing where the platform truncates — but deliberately NOT as a portal control:
       it mimics the destination's own "more" affordance, so it is styled as a tinted
       inline marker rather than anything resembling Approve/Save. The tick ties it to
       the expanded state's hairline so both readings of the fold look like one idea. */
    .md-fold-tick { display:inline-block; width:2px; height:1em; background:#5A5A52; vertical-align:-0.18em; margin:0 1px 0 3px; border-radius:1px; }
    /* NEUTRAL. This is part of the YouTube render — it imitates the platform's own "more"
       affordance — so it is furniture, not signal. In slate-blue it was a THIRD blue and it
       claimed the informational role that belongs to the fold note and the thumbnail
       annotation. (.md-cut-mark below stays slate: it appears only in the EXPANDED state,
       which is a portal view rather than an imitation of anything, and it genuinely is an
       annotation about where the cut falls.) */
    .md-more { display:inline-flex; align-items:center; gap:3px; vertical-align:baseline; margin-left:4px; padding:1px 7px; background:#33332F; border:0.5px solid #45453F; border-radius:3px; font-family:'Inter',sans-serif; font-size:0.66rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:#B4B4AD; cursor:pointer; }
    .md-more:hover { background:#3F3F3A; color:#EDEDEA; border-color:#5A5A52; }
    /* Expanded state marks the fold INLINE. A full-width rule plus muted text below it
       split one paragraph into what looked like two documents — worse when the cut lands
       mid-sentence and the lower half opens on a comma fragment. Now: a thin hairline and
       a small label, with identical size and colour on both sides, so it stays one
       description with a mark showing where the fold falls. */
    .md-cut-mark { display:inline; white-space:nowrap; user-select:none; }
    .md-cut-mark i { display:inline-block; width:2px; height:1em; background:#5a8aa8; vertical-align:-0.18em; margin:0 5px; border-radius:1px; }
    .md-cut-mark em { font-style:normal; font-size:0.6rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:#9fc0d6; background:rgba(45,88,116,0.45); border-radius:3px; padding:1px 6px; }
    /* Caption sits UNDER the card as a note about the preview — indented off a slate rule
       so it reads as commentary, not as another line of the mock-up. Slate throughout:
       informational, never a state, so no gold, orange or green. */
        /* FULL COLUMN WIDTH, deliberately unlike the card. This is an ANNOTATION ABOUT the card,
       not part of the artifact — matching the card's width made it wrap to three lines and
       implied it was part of the mock-up. It is the one thing in this column that should
       span it. */
    /* The cut note is now a FIELD CONSTRAINT on the DESCRIPTION label, right-aligned on the
       same line — the same shape as the tag editor's "N / M characters", so it reads as a
       limit on the field rather than an announcement about the preview. It is no longer a
       block below a card: no rule, no tinted panel, no padding. */
    /* A LABEL AND ITS RIGHT-ALIGNED VALUE SHARE A ROW, so the row needs a wrapping rule or
       it breaks at a width nobody designed at. The VALUE never wraps and never shrinks — it
       is the part carrying information; the LABEL truncates, because "TAGS / KEY…" still
       reads and a wrapped value collides with whatever sits below.
       min-width:0 is load-bearing: a flex item's default min-width is auto, so without it
       the label refuses to shrink below its content and pushes the value out of the row
       regardless of any text-overflow rule. */
    .md-flabel-row { display:flex; align-items:baseline; gap:8px; min-width:0; }
    .md-flabel-row > .md-flabel-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    /* SAME SIZE as the label (inherited 0.66rem) but NOT its uppercase or tracking — the
       label is a heading, this is a value, and "CUT AT 157" reads as a second heading. */
    .md-cut-note { margin-left:auto; flex-shrink:0; color:#4A7A99; font-weight:500; white-space:nowrap; text-transform:none; letter-spacing:0; }
    /* The note sits directly above the B/I toolbar; a wrapped second line lands on it. */
    .md-flabel-row .md-cut-note { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
    .md-cut-note:empty { display:none; }
    /* Platform-unset notice — the fallback made visible instead of silent. */
    .md-cut-fallback { display:block; margin-top:5px; color:#7f98a8; font-size:0.72rem; }   /* ⟦E⟧ the page's small-text size */
    /* Informational, never a decision: gold #FBB03B and orange #F7931E are reserved for
       decision points. This is the system's slate-blue, lightened from --hint-accent
       (#4A7A99) for legibility on the dark card — the same accent-vs-text split the
       portal already makes with --hint-accent / --hint-text. */
    .md-cut-warn { color:#5E93B5; }
    /* "Fits." was green, which read as a state (--approved is green in this app). It is
       informational like everything else in this note — same slate. */
    .md-cut-ok { color:#5E93B5; }

    /* ── 4. Edit description sizing ───────────────────────────────────────────────────
       The 220px cap existed only because a long description used to push approve off
       screen. The sticky action bar now solves that structurally, so the cap is no longer
       load-bearing and the drag handle is back: a sensible floor, a generous ceiling, and
       its own scroll once the content passes whatever height the user has dragged to. */
    #metadata-view .md-rt-edit { min-height:160px; max-height:60vh; overflow-y:auto; resize:vertical; }
    .ag-motif { display:flex; flex-direction:column; align-items:center; justify-content:center; }
    /* A motif holding artwork stretches; one holding only a glyph stays centred at its own size. */
    .ag-motif:has(.ag-doclines) { align-self:stretch; }
    /* ⚠️ THE GLYPH SIZES LIVE ON THE <svg> AS ATTRIBUTES (width="30"/"34"), SET IN THE RENDERER.
       Presentation attributes carry the lowest specificity, so these rules override them without
       touching the JS — which keeps the conversion to one place and leaves the markup alone.
       Baselines against the 836px primary band (347px): 30px = 8.6%, 34px = 9.8%, 15px = 4.3%. */
    /* ⚠️ GLYPHS STAY FIXED. §5: "a rendering of the asset's content (waveform, line rules, field
       rows) OR its glyph" — the glyph is the spec's own sanctioned fallback, not a shrunken
       artwork. Scaling the narration microphone to 81.6% of the band yields a very large
       microphone, not a waveform; drawing real artwork for the types that lack it is a separate
       job. narration + image/thumbnail/graphic are glyph types today and stay at glyph size. */
    .ag-motif svg { width:30px; height:30px; }
    .ag-card.ag-type-image .ag-motif svg,
    .ag-card.ag-type-thumbnail .ag-motif svg,
    .ag-card.ag-type-graphic .ag-motif svg { width:34px; height:34px; }
    /* The triangle is sized as a FRACTION of the plate and drawn in viewBox units, so changing
       the 64px above is the only edit needed — the glyph follows. 33% matches the 15-in-46 ratio
       the original had, which is the proportion that read correctly. */
    .ag-playring svg { width:33%; height:33%; display:block; }
    .del-list-mode .deliverable-row-main { display:grid; grid-template-columns:36px 1fr 220px 80px; gap:12px; align-items:center; }
    /* Team production row: icon · name · stage · due · actions (eye+chevron) all on one line. */
    /* Team deliverable rows: fixed columns so they align with the header bar.
       icon | name | Due | Visibility | Status | chevron */
    .del-list-mode .team-del-row .deliverable-row-main { grid-template-columns:36px 1fr 120px 20px; }
    /* Inline, beside the name — shown only when there IS one, so it cannot become a column of
       em-dashes again. */
    .del-due-inline { margin-left:8px; font-size:0.72rem; color:var(--text-muted); white-space:nowrap; }
    .del-due-inline.overdue { color:#E24B4A; }
    /* The exception, never the rule: only a deliverable actually hidden from the client. */
    .del-hidden-badge { margin-left:8px; font-size:0.64rem; font-weight:700; letter-spacing:0.06em;
      text-transform:uppercase; color:var(--internal); background:var(--internal-bg);
      border:1px solid var(--internal-border); border-radius:2px; padding:1px 5px; white-space:nowrap; }
    /* SECOND TIER, DELIBERATELY QUIETER. "Hidden" above is an EXCEPTION — the client lost the
       row — and keeps the amber. "Client sees V{n}" is INFORMATION about a normal state (an
       internal V2 over a released V1), so it reads muted and borderless. Same reasoning as
       teamStageBadge, where only Approved is coloured because everything else is ordinary
       progress and five hues at equal weight is a legend, not a signal. */
    .del-clientsees-badge { margin-left:8px; font-size:0.64rem; font-weight:600; letter-spacing:0.05em;
      text-transform:uppercase; color:var(--text-muted); background:transparent;
      border:none; padding:1px 0; white-space:nowrap; }
    /* Status is plain right-aligned text now, coloured only where it differs from the norm. */
    .team-stage-text { font-size:0.76rem; color:var(--text-muted); text-align:right; white-space:nowrap; }
    /* ONE declaration, two surfaces (item 508): the deliverable row and the Status page's
       stage label. Grouped rather than copied, so the green cannot drift between them. */
    .team-stage-text.is-approved,
    .st-stage.is-approved { color:#6FCF8E; }
    .del-col-heads.team { grid-template-columns:36px 1fr 120px 20px; }
    .del-row-vis { display:flex; align-items:center; justify-content:center; }
    .del-list-mode .deliverable-check-circle { display:none; }
    .del-list-mode .deliverable-info { padding:0; }
    .del-list-mode .deliverable-actions { display:flex; justify-content:flex-end; }
    .del-row-status { display:flex; align-items:center; flex-shrink:0; gap:12px; justify-content:flex-end; min-width:220px; }
    .del-list-mode .del-row-status { display:flex; align-items:center; }
    .deliverable-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; margin-left:4px; }
    .del-list-mode .deliverable-sub,
    .del-list-mode .deliverable-version { display:none; }
    .del-list-mode .deliverable-name.is-muted { opacity:.6; }
    .deliverable-info { flex: 1; min-width: 0; }
    .deliverable-info.is-clickable { cursor: pointer; }
    .deliverable-info.is-clickable:hover ~ .deliverable-actions .btn-review { background: rgba(110,155,200,0.22); }
    .deliverable-info.is-clickable:hover ~ .deliverable-actions .btn-watch { background: rgba(110,155,200,0.22); }
    .deliverable-name { font-size: 0.95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .del-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .del-name-row .deliverable-name { flex: 0 1 auto; min-width: 0; }
    .del-asset-count { flex-shrink: 0; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
    .del-needs-review { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #F7931E; white-space: nowrap; }
    .del-nr-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 50%; background: #E24B4A; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
    .del-total-assets { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
    .del-caught-up { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
    /* ── Team production view (deliverable list) ── */
    .team-stage-pill { font-size:11px; font-weight:600; padding:3px 10px; border-radius:4px; white-space:nowrap; }
    .team-stage-pill.stage-draft        { background:var(--surface-1); color:var(--text-secondary); border:0.5px solid var(--border-strong); }
    .team-stage-pill.stage-editing      { background:var(--bg-accent); color:var(--text-accent); }
    .team-stage-pill.stage-clientreview { background:#FFF3CD; color:#7A5800; }
    .team-stage-pill.stage-revisions    { background:var(--bg-danger); color:var(--text-danger); }
    .team-stage-pill.stage-approved2    { background:var(--bg-success); color:var(--text-success); }
    .del-row-stage { flex-shrink:0; display:flex; justify-content:flex-end; }  /* under the right-aligned Status header */
    .del-row-due { flex-shrink:0; text-align:left; font-size:12px; color:var(--text-muted); }  /* under the Due header */
    .team-due.overdue { color:var(--text-danger); font-weight:500; }
    .team-due.empty { opacity:0.4; }
    .del-row-iconbtn { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; background:none; border:none; border-radius:var(--radius); color:var(--text-muted); cursor:pointer; transition:color .12s; }
    .del-row-iconbtn:hover { color:var(--text); }
    .del-row-iconbtn.on { color:var(--text-accent); }
    .del-row-iconbtn svg { width:16px; height:16px; }
    /* ── Archive page ── */
    .arch-project { margin-bottom: 1.75rem; }
    .arch-project-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding-bottom: 8px; border-bottom: 0.5px solid rgba(255,255,255,0.08); margin-bottom: 4px; }
    .arch-del { border-bottom: 0.5px solid rgba(255,255,255,0.08); }
    .arch-del-head { display: flex; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; }
    .arch-del-head:hover { background: rgba(255,255,255,0.02); }
    .arch-chev { color: var(--text-muted); flex-shrink: 0; transition: transform 0.15s; }
    .arch-del.open .arch-chev { transform: rotate(180deg); }
    .arch-del-info { flex: 1; min-width: 0; }
    .arch-del-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; color: #fff; }
    .arch-del-meta { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 3px; }
    .arch-chip { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
    .arch-chip-approved { background: rgba(50,180,100,0.14); color: var(--approved); }
    .arch-chip-complete { background: rgba(247,147,30,0.14); color: #FBB03B; }
    .arch-zip-btn { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; padding: 7px 12px; border-radius: 4px; background: rgba(251,176,59,0.12); border: 1px solid rgba(251,176,59,0.4); color: #FBB03B; cursor: pointer; white-space: nowrap; }
    .arch-zip-btn:hover { background: rgba(251,176,59,0.2); }
    .arch-zip-btn:disabled { opacity: 0.6; cursor: default; }
    .arch-del-body { display: none; padding: 4px 4px 16px 30px; }
    .arch-del.open .arch-del-body { display: block; }
    /* Wider min so labels like "Full Screen Revision" don't truncate mid-word. */
    .arch-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
    .arch-asset { border: 0.5px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--surface); }
    /* Thumb bg/color are set inline from the canonical asset-type palette (archAssetColor). */
    .arch-asset-thumb { height: 84px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
    /* Completed page search + sort toolbar. */
    .arch-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 1.1rem; flex-wrap: wrap; }
    .arch-search { flex: 1; min-width: 200px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 4px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.82rem; padding: 8px 12px; outline: none; }
    .arch-search:focus { border-color: var(--text-muted); }
    .arch-search::placeholder { color: var(--text-muted); }
    .arch-sort { background: var(--surface); border: 0.5px solid var(--border); border-radius: 4px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.82rem; padding: 8px 10px; cursor: pointer; outline: none; }
    .arch-asset-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 0.5px solid var(--border); }
    .arch-asset-name { flex: 1; min-width: 0; font-size: 0.78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .arch-asset-dl { flex-shrink: 0; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 3px; border-radius: 4px; display: inline-flex; transition: color .12s, background .12s; }
    /* Hovering anywhere on the card brightens the download icon (larger effective
       target); the foot itself is the download click zone (thumb stays for preview). */
    .arch-asset:hover .arch-asset-dl { color: #FBB03B; background: rgba(251,176,59,0.12); }
    .arch-asset-foot[data-dl] { cursor: pointer; }
    /* ── Reviewed by me (a limited-tier reviewer's own log) ────────────────────────────────
       .arch-project / .arch-project-label are REUSED, not restyled — the two pages group by
       project identically and a second set of project-heading rules is how they would stop
       looking like one product. Everything below is what DIFFERS: no cards and no grid, because
       this page lists DECISIONS rather than files. A row is a line of text with a verdict on it. */
    .mr-del { border-bottom: 0.5px solid rgba(255,255,255,0.08); padding: 12px 4px; }
    .mr-del-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .mr-del-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; color: #fff; }
    .mr-state { font-family: 'Inter', sans-serif; font-size: 11px; color: rgba(255,255,255,0.35); }
    .mr-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
    .mr-row { display: flex; align-items: center; gap: 10px; padding-left: 2px; }
    /* Clickable, and it now LOOKS it (item 509): the name opens the asset, and before this it
       was styled identically to the inert verdict/timestamp spans beside it — so a dead click
       and a working one were indistinguishable before the click. Underline on hover follows
       .tr-composer-tocut, the file's existing text-link idiom. */
    .mr-row-name { flex: 1; min-width: 0; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color .12s; }
    .mr-row-name:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
    .mr-row-name:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
    .mr-when { flex-shrink: 0; font-family: 'Inter', sans-serif; font-size: 11px; color: rgba(255,255,255,0.35); }
    .mr-again { flex-shrink: 0; font-family: 'Inter', sans-serif; font-size: 10px; color: rgba(255,255,255,0.3); }
    .mr-verdict { flex-shrink: 0; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
    .mr-verdict-approved { background: rgba(50,180,100,0.14); color: var(--approved); }
    /* ⚠️ AMBER, NOT RED, AND THAT IS A RULING RATHER THAN TASTE. "Changes requested" here is the
       reviewer's own note about their own reading — it is not an error being reported back to
       them, and red on a client action surface is an enumerated set of one
       (checks/client-action-no-red.mjs). #FBB03B is the amber the client already meets on
       .arch-chip-complete, so this introduces no new colour. */
    .mr-verdict-changes { background: rgba(251,176,59,0.14); color: #FBB03B; }
    .asset-rename-input { width: 100%; box-sizing: border-box; background: var(--surface2); border: 1px solid var(--brand); border-radius:4px; color: var(--text); font-size: 0.95rem; font-weight: 600; font-family: 'Inter', sans-serif; padding: 2px 6px; outline: none; }
    /* `.asset-thumb` and `.deliverable-thumb` used to be declared here — CSS no v4 element ever wore
       (593e, 2026-09-11): the first had no consumer at any commit, the second was the LEGACY row
       thumbnail that v4 replaced with a type icon at the fork. Deleted, not kept as history. */
    /* ═══ ASSET LIST — §2.3. ONE GRID FOR THE WHOLE TABLE, each row `display: contents`. ═══
       ⚠️ THE HEADS ARE INSIDE THE GRID, and that is the entire point of the rewrite. They used
       to be a separate flex row whose track widths were retyped by hand beside the row's, and
       the two had drifted: measured live at 1004px, the Status head sat 60.2px from the Status
       cell on team and 10px on client. Two definitions that must agree cannot be kept agreeing
       by care. Now there is one track definition and the columns cannot go ragged.
       Tracks are §2.3's, MEASURED at the portal's real 1004px content width before building —
       team resolves to 66 / 355.4 / 142.2 / 124.4 / 140 / 56 and fits with no overflow. */
    .asset-list { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: visible;
                  display: grid; column-gap: 16px; align-items: center;
                  grid-template-columns: 66px minmax(180px, 2fr) minmax(96px, 0.8fr) minmax(max-content, 0.7fr) max-content 56px; }
    /* Client subtracts two columns (§6): no Visibility, and the menu track becomes the 16px
       chevron. Written as its own track list rather than by hiding cells, because a hidden cell
       still occupies its track and would leave two dead columns. */
    /* ⚠️ 36px, NOT §2.3's 16px — MEASURED, and the spec's number is the CONTENT not the TRACK.
       16px is the chevron. The row's 20px right padding sits on the LAST CELL (so the
       separator stays full-bleed edge to edge, as it was on the old flex row), and 16 + 20
       does not fit in a 16px track: the client list overflowed its container by 4px at the
       real 1004px width. Team is unaffected only because its 56px menu track happens to be
       wider than its 34px button plus that padding — it fits by luck, not by design, which is
       why both are asserted against the rendered box rather than against the spec's figures.
       This is the FOURTH measurement in §2.3 not to survive the real grid. */
    .asset-list.agl-client { grid-template-columns: 66px minmax(180px, 2fr) minmax(96px, 0.8fr) max-content 36px; }
    /* ⚠️ RULING 4 — BELOW ~730px OF CONTENT THE TEAM LIST DROPS VISIBILITY. Measured: the six
       columns first overflow at a 728px content box. The page container is `max-width:1100px;
       padding:3rem`, so content = viewport − 96 and 728 content ≈ 824 viewport; 840 leaves a
       margin. Below 700px the container's padding drops to 1.5rem, which only widens the
       content, so this query still covers it. Client's five columns do not overflow until
       580px, which is below §2.2's 640px mobile switch — so the client needs no such rule. */
    @media (max-width: 840px) {
      .asset-list:not(.agl-client) { grid-template-columns: 66px minmax(180px, 2fr) minmax(96px, 0.8fr) max-content 56px; }
      .asset-list:not(.agl-client) .agl-c-vis, .asset-list:not(.agl-client) .agl-h-vis { display: none; }
    }
    /* ⚠️ THE ROW HAS NO BOX. Verified in a browser, not assumed: `display: contents` leaves the
       element with zero client rects and offsetHeight 0, so ANY paint on the row itself —
       background, border, opacity, filter — silently does nothing. Everything that used to sit
       on `.asset-row` is therefore on the CELLS below. What the row DOES keep, also verified:
       it still matches :hover (it is an ancestor of the hit cell), it still matches :last-child,
       and it still receives clicks bubbled from its cells. What it does NOT keep is focus — a
       `display:contents` element with tabindex="0" is NOT focusable, which is why the keyboard
       target is `.agl-open` inside the Asset cell rather than the row. */
    .agl-row { display: contents; }
    .agl-cell { padding: 1rem 0; border-bottom: 0.5px solid var(--border); min-width: 0; transition: background 0.15s; }
    .agl-cell:first-child { padding-left: 1.25rem; }
    .agl-cell:last-child  { padding-right: 1.25rem; }
    .agl-row:last-child .agl-cell { border-bottom: none; }
    /* Whole-row hover, painted on the cells. Verified with a real pointer: hovering cell 1
       repaints cell 3, because :hover matches the boxless ancestor row. */
    .agl-row:hover .agl-cell { background: var(--surface2); }
    /* ⚠️ THE DELETED STATE IS THE ONE THAT FAILS TOWARD LOOKING NORMAL. On the old flex row this
       was `.asset-row--deleted { opacity:.5; filter:grayscale(.75) }` — both of which are
       box-painting properties and both of which stop rendering under `display: contents`, with
       nothing anywhere reporting it. A deleted asset would have rendered identically to a live
       one, team-only, silently. It is per-cell now, and guarded. */
    .agl-row--deleted .agl-cell { opacity: 0.5; filter: grayscale(0.75); }
    .agl-row--deleted:hover .agl-cell { opacity: 0.7; }
    .agl-h { padding: 10px 0; border-bottom: 0.5px solid var(--border); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
    .agl-h:first-child { padding-left: 1.25rem; }
    .agl-h:last-child  { padding-right: 1.25rem; }
    .agl-c-glyph { display: flex; align-items: center; }
    .agl-type { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
    /* The keyboard target. It is the element with a box, so it is the one that can hold focus
       and paint a ring — see the note on .agl-row above. */
    .agl-open { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 3px; }
    .agl-open[tabindex] { cursor: pointer; }
    .agl-open:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
    .agl-c-ver { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    /* gap + wrap for the transcript row's two pills; the status track is max-content so it is
       never compressed (§2.3), but a row can still carry two pills. */
    .agl-c-status { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
    /* ⚠️ ITS OWN CLASS, NOT `.del-status-pill stage-internal`. That literal is pinned at exactly
       ONE render site by checks/internal-badge.mjs (item 74), and reusing it here would add a
       second and turn that guard red. It is also a different fact: this column reports
       VISIBILITY, the badge reports STATUS. */
    .agl-vis { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
    /* ⚠️ THE FILLED CHIP IS GONE — §5's marker is the ONE internal treatment. The list carried a
       solid #FBE6A8 chip while the card carried nothing of the kind, so the same fact read two
       ways on two surfaces. What was superseded is the SHAPE. Edge + hatch is shared; see
       .ag-card.is-internal below.
       ⚠️ RULED (Phase B): NO LONGER BORROWS ITEM 74'S TOKEN — recolored to --rd-violet, the
       same colour item 434's grid marker and item 438's stage badge already carry, so all
       three surfaces naming "internal" (a THIRD, independent fact from either of those two —
       see the audit that traced this) at least agree on ONE colour for it. This also resolves
       a pre-existing mismatch that had nothing to do with this ruling: ink was
       var(--internal-badge-bg) (#FBE6A8) while the border was a hardcoded rgba matching
       #F7E4AE (badge-internal's OWN pre-item-437 colour, coincidentally) — two different pale
       yellows that never actually agreed with each other. Both properties now derive from the
       SAME variable, so they cannot drift apart again the way item 74's token and this
       hardcoded border already had. Safe because .agl-vis is TEAM-ONLY, confirmed at the
       markup level (`isTeam ? cell('agl-c-vis', ...) : ''`, not just hidden by CSS) — no
       client payload ever contains this span, so there is no client vocabulary to disturb.
       Uses var(--rd-violet)/var(--rd-violet-rgb), not the literal #b08cf5 badge-internal uses —
       unlike that selector, .agl-vis is not part of ASSET_BADGE_TEAM/CLIENT, so
       client-badge-treatments.mjs's "ink is never the variable" constraint does not apply
       here, and its `background:transparent` means review-panel-light.mjs's census skips this
       rule outright (transparent backgrounds are excluded there — "ground unknown"). */
    .agl-vis.is-internal { background:transparent; color:var(--rd-violet); border:0.5px solid rgba(var(--rd-violet-rgb),0.45); }
    .agl-vis.is-client { background: transparent; color: var(--text-muted); border: 0.5px solid var(--border-secondary); }

    /* ── §5 INTERNAL MARKER — GRID AND LIST NOW DIVERGE, DELIBERATELY (Phase B, ruled 2026-08-23)
       ⚠️ TURNED AGAIN — THE CARD DROPS THE HATCH+BAR PAIR FOR A SINGLE DOTTED BORDER. Item 138
       shipped a `border-left`, which broke against `.ag-card`'s radius (a single-sided border
       curves away from a rounded corner and thins to nothing). Item 434 fixed the SHAPE by
       moving the bar to a clipped `::after` and the hatch to a `::before` overlay on the same
       selector, kept together deliberately so a co-variance guard could assert them as one
       treatment. This ruling supersedes that mechanism for the card entirely:
       `border:2px dotted #a78bfa` directly on the card element, no pseudo-elements, no overlay,
       nothing left to co-vary — one declaration is the whole treatment now.
       ⚠️ A SYMMETRIC BORDER DOES NOT REOPEN ITEM 138'S DEFECT. That bug was specific to a
       SINGLE-SIDED border fighting a curve it only touches on one side. A 4-sided border has no
       side to curve away from, so it composes with `border-radius` normally — `14px` here is a
       plain declaration, not the trap `border-radius:0` was forced to be for `border-left`.
       ⚠️ TURNED AGAIN (Phase B ruling, item 442) — `--ag-hatch` IS DELETED, NOT KEPT. It was
       preserved through item 440 specifically because the row still consumed it below; that
       last consumer is removed in this same ruling, so nothing anywhere reads `--ag-hatch` any
       more. An unread custom property is dead code with a name that invites a future author to
       reach for it as though it still meant something — deleted along with its consumer rather
       than left behind as a landmine. */
    .ag-card.is-internal { position:relative; border:2px dotted #a78bfa; border-radius:14px; }
    /* ⚠️ TURNED (Phase B ruling, item 442) — THE ROW'S HATCH IS GONE TOO, NO REPLACEMENT. Item
       441 already removed the row's left-edge bar as redundant with the Visibility pill (item
       439); this ruling removes the row's one remaining decoration — the diagonal hatch on
       every cell — for the identical reason the grid card's hatch was removed in item 440: the
       Visibility pill and the Status badge already carry the Internal signal clearly, and the
       texture adds nothing a person reads. The row's internal-only cell selector now carries NO
       declaration at all; an Internal row and a Client-visible row paint their cells
       identically, and the Visibility pill and Status badge are the ONLY surviving cues.
       ⚠️ WORTH KNOWING, NOT ACTED ON HERE: with both the left-edge bar (item 441) and the hatch
       (this ruling) gone, the row's `is-internal` class now matches ZERO CSS rules anywhere in
       the file — it is still emitted in `assetRowFor` (below) and still asserted by the guard's
       `emits === 2` count, but nothing in CSS reads it any more. Left exactly as emitted since
       removing it was not part of what was ruled here, and doing so would touch the guard's
       emission-count premise, which this build does not.
       ⚠️ A NOTE ON THIS COMMENT ITSELF: earlier drafts spelled the selector out literally here,
       twice, with nothing but prose between the second mention and the NEXT comment's `::after`
       — and `checks/internal-badge.mjs` has a WHOLE-FILE regex, `.agl-row.is-internal[^{]*
       ::after`, checking that no `::after` ever gets reattached to this selector. Removing the
       CSS rule that used to sit here took its `{...}` brace with it, closing the gap that regex
       depends on to tell "a real rule" from "a sentence describing one" — the literal selector
       text is deliberately NOT repeated here for that reason, not by accident. */
    /* ⚠️ A REAL ELEMENT, NOT ::after — because the design's marker is a lock ICON plus the word
       (`display:flex; gap:4px` around an SVG) and a pseudo-element's `content` cannot hold one.
       The word alone was ::after while there was nothing to sit beside it.
       ⚠️ THE LOCK REVERSES A NO-LOCK RULING, taken on the reading that it would read as a second
       badge. The drawing has it, and it is part of what makes the marker read as SUBORDINATE to
       the status badge above rather than a competing one. 8px to match the design (was 8.5). */
    /* ⚠️ TURNED — VIOLET, MATCHING .rv-internal-pill (item 427, ruled Phase B). Was white
       (rgba(255,255,255,.88)). SVG stroke is currentColor, so the icon follows for free with
       no JS change. The drop-shadow legibility mechanism mentioned in the original version of
       this note is GONE — see the next comment, which replaced it with a solid chip. */
    /* ⚠️ RULED (Phase B): a solid backing chip, not a text-shadow — same mechanism the stage
       badge above it already uses for legibility over an arbitrary thumbnail (.ag-trt-badge's
       own rgba(0,0,0,.75) chip is the closest sibling on this same card). The shadow is
       removed: it was the fallback for having no background at all, and stacking both is
       redundant once a real backdrop exists. Padding + radius size the chip to the text,
       matching the flex row's own gap rather than a fixed width. */
    .ag-internal-mark { position:absolute; right:9px; top:34px; z-index:3; pointer-events:none; display:flex; align-items:center; gap:4px; font-family:'Inter',sans-serif; font-size:8px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--rd-violet); background:rgba(10,10,14,0.72); padding:2px 6px; border-radius:3px; }
    .ag-internal-mark svg { display:block; flex:none; }
    .agl-c-menu { display: flex; align-items: center; justify-content: flex-end; }
    .deliverable-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
    .deliverable-version { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; font-family: var(--mono); letter-spacing: 0.03em; opacity: 0.8; }
    .thumb-wrap { position: relative; flex-shrink: 0; }
    .action-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #E8342A; border: 2px solid var(--bg); }
    .deliverable-processing-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.2rem 0.55rem; border-radius: 4px; background: rgba(110,155,200,0.12); color: var(--review); margin-top: 0.25rem; }
    .btn-card-internal-toggle { background: var(--surface2); border: 0.5px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-card-internal-toggle:hover { background: var(--border); }
    .btn-card-internal-toggle.is-internal { background: var(--internal-bg); border-color: var(--internal-border); color: var(--internal); font-weight: 600; }
    .btn-card-internal-toggle.is-internal:hover { background: var(--internal-bg-hover); }
    .btn-card-download-toggle { background: var(--surface2); border: 0.5px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-card-download-toggle:hover { background: var(--border); }
    .btn-card-download-toggle.is-enabled { background: rgba(50,180,100,0.1); border-color: rgba(50,180,100,0.3); color: var(--approved); }
    .btn-card-download-toggle.is-enabled:hover { background: rgba(50,180,100,0.18); }
    .proc-spinner { animation: proc-spin 0.9s linear infinite; }
    @keyframes proc-spin { to { transform: rotate(360deg); } }
    .deliverable-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; margin-left: 4px; }
    .btn-metadata { background: var(--brand); border: none; color: #0A0A0A; font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: background 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-metadata:hover { background: #FF8533; }
    .btn-metadata.approved { background: var(--surface2); border: 0.5px solid var(--border); color: var(--text-muted); }
    .btn-metadata.approved:hover { background: var(--border); }
    .btn-review { background: var(--review-bg); border: 1px solid rgba(110,155,200,0.2); color: var(--review); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-review:hover { background: rgba(110,155,200,0.22); }
    .pill-internal-review { background: var(--internal-bg); border: 1px solid var(--internal-border); color: var(--internal); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; cursor: default; transition: background 0.15s; }
    .deliverable-row:hover .pill-internal-review { background: var(--internal-bg-hover); }
    .btn-upload { background: none; border: 1px dashed var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.45rem 0.85rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.35rem; }
    .btn-upload:hover { background: rgba(247,147,30,0.08); }
    .upload-drop-zone { display: none; border: 2px dashed var(--border); border-radius:4px; padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.82rem; margin: 0 1rem 0.75rem; cursor: pointer; transition: all 0.2s; }
    .upload-drop-zone.open { display: block; }
    .upload-drop-zone.dragging { border-color: var(--brand); color: var(--brand); background: rgba(247,147,30,0.04); }
    .upload-drop-zone input[type=file] { display: none; }
    .upload-progress { display: none; margin: 0 1rem 0.75rem; }
    .upload-progress.open { display: block; }
    .upload-progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 0.4rem; }
    .upload-progress-fill { height: 100%; background: var(--brand); border-radius: 2px; transition: width 0.3s; width: 0%; }
    .upload-progress-text { font-size: 0.75rem; color: var(--text-muted); }

    /* TOAST */
    .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--surface2); border: 0.5px solid var(--border); border-radius:4px; padding: 0.9rem 1.25rem; font-size: 0.85rem; color: var(--text); z-index: 200; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.6rem; }
    .toast.show { transform: translateY(0); opacity: 1; }
    .toast.success { border-color: var(--brand); }
    /* Failure gets its own border as well as its own icon. Before this the failure state was the
       UNSTYLED one — the error was signalled by the ABSENCE of the success border, which inverts
       the usual convention and is why nobody noticed the tick. */
    .toast.failure { border-color: #E24B4A; }

    /* ══════════════════════════════════════
       REVIEW HUB
    ══════════════════════════════════════ */
    /* Fill the space below the topbar (portal-main is a 100vh flex column) so the
       transport bar pins to the viewport bottom with no page scroll. */
    #review-view { flex-direction: column; flex: 1; min-height: 0; background: var(--rv-canvas); }
    #review-view.open { display: flex; }
    #review-view.open .review-header { display: none; }

    .review-header { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.5rem; border-bottom: 0.5px solid var(--border); background: rgba(37,39,46,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; flex-shrink: 0; }
    .review-back-btn { background: none; border: 0.5px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius:4px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
    .review-back-btn:hover { color: var(--text); border-color: var(--text-muted); }
    .review-file-info { flex: 1; min-width: 0; }
    .rv-title-row { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
    .review-file-name { font-size: 0.9rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .review-file-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
    /* [REMOVED — item 359, R-03] .rv-status-tag: the header STATUS chip was approval-state
       render #2, always visible beside the decision bar saying the same thing. The bar is the
       ONE chrome render now; the Details tab's Status ROW survives as data. */
    .rv-viewer-name { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }
    .rv-viewer-name strong { color: var(--text); font-weight: 500; }
    .rv-version-select { background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; padding: 0.4rem 0.7rem; color: var(--text); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; outline: none; flex-shrink: 0; }
    .rv-version-menu { position: absolute; top: calc(100% + 4px); left: 0; background: var(--surface2); border: 0.5px solid var(--border); border-radius:4px; padding: 0.35rem; z-index: 30; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
    .rv-version-item { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0.65rem; border-radius:4px; cursor: pointer; gap: 0.5rem; }
    .rv-version-item:hover { background: var(--surface); }
    .rv-version-item.active { background: var(--surface); }
    .rv-version-item-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--text); flex: 1; }
    .rv-version-item-tags { display: flex; gap: 0.3rem; align-items: center; }
    .rv-version-item-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; padding: 0.1rem 0.4rem; border-radius:4px; }
    .rv-version-item-tag.current { background: var(--surface2); color: var(--text-muted); border: 0.5px solid var(--border); }
    .rv-version-item-tag.internal { background: var(--internal-bg); color: var(--internal); border: 1px solid var(--internal-border); }
    .rv-version-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.2rem; border-radius: 4px; display: flex; align-items: center; transition: all 0.15s; flex-shrink: 0; }
    .rv-version-delete:hover { background: rgba(226,75,74,0.15); color: #E24B4A; }
    .rv-internal-toggle { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.4rem 0.7rem; border-radius:4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 0.35rem; border: 0.5px solid var(--border); background: var(--surface); color: var(--text-muted); }
    .rv-internal-toggle:hover { border-color: var(--text-muted); color: var(--text); }
    .rv-internal-toggle.is-internal { background: var(--internal-bg); border-color: var(--internal-border); color: var(--internal); }
    .rv-internal-toggle.is-internal:hover { background: var(--internal-bg-hover); }
    /* Restyled to --rd- tokens (item 375, slice-2 ruling 5): copy and behavior
       untouched — loadVersion still fills both labels and owns visibility. */
    .rv-old-version-banner { display: none; padding: 0.75rem 1rem; margin: 0 1rem 1rem; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius:4px; font-size: 0.78rem; color: var(--rd-text-3); text-align: center; line-height: 1.5; }
    .rv-old-version-banner strong { color: var(--rd-text); }
    /* ⟦item 1173⟧ Reply's landing (team only: both are made by script, for a team open with a comment id). Team blue, never gold. */
    #rv-nr-note { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:7px 12px; margin:0 0 8px; background:var(--rd-inset); border:1px solid var(--rd-inset-bd); border-radius:4px; font-size:12.5px; line-height:1.45; color:var(--rd-text-2); }
    #rv-nr-note b { color:var(--rd-text); font-weight:600; }
    #rv-nr-note .rv-nr-go, #rv-nr-bar button { background:none; border:1px solid var(--v5-ts-team, var(--rd-inset-bd)); color:var(--v5-ts-team, var(--rd-text)); border-radius:4px; padding:3px 9px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; }
    #rv-nr-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 0 8px; font-size:12px; color:var(--rd-text-2); }
    #rv-nr-bar .rv-nr-f[aria-pressed="true"] { background:var(--v5-ts-team-tint, var(--rd-inset)); }
    #rv-nr-bar .rv-nr-all { margin-left:auto; border-color:var(--rd-inset-bd); color:var(--rd-text-2); }
    #rv-nr-bar .rv-nr-step { font-variant-numeric:tabular-nums; }

    .review-body { flex: 1; display: flex; overflow: hidden; background: var(--rv-canvas); }

    /* Player */
    .review-player { flex: 1; display: flex; flex-direction: column; background: #000; overflow: hidden; min-width: 0; position: relative; }
    /* Video + transport are one vertically-centered unit (rvFitPlayer sizes the stage to the
       video's fitted height so the transport docks flush beneath the frame). */
    .rv-media-group { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 8px; box-sizing: border-box; }
    /* §4 (item 378): r4 and the reference's deep frame shadow. Two things deliberately NOT
       taken from §4:
       · NO `aspect-ratio: 16/9` — rvFitPlayer sizes this from the media's REAL ratio, so a
         forced 16:9 would letterbox verticals and fight the fit. Behaviour, not style.
       · NO `border: 1px` — annoMediaBox() measures the media against this element's BORDER-box
         rect while the annotation canvas is positioned against its PADDING box, so a border
         would offset every annotation by 1px on video, image and PDF, silently. */
    .review-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--rv-canvas); position: relative; overflow: hidden; margin: 0; border-radius: 4px;
      box-shadow: 0 24px 70px rgba(0,0,0,.7); }
    /* Transport is its own rounded panel (all four corners, review radius) with a fixed 8px gap
       above — the same gap the page uses between panels. The video + transport stay one centered
       unit; rvFitPlayer accounts for the gap, so it doesn't reopen the old pooled leftover space. */
    .rv-media-group .review-transport { margin: 8px 0 0 0; border-radius: 10px; }
    /* Same 8px gap the transport takes — and rvFitPlayer subtracts BOTH gaps, or the
       stage is sized as if this panel were not there and the media overflows the group. */
    .rv-media-group .rv-tl-panel { margin: 8px 0 0 0; }
    /* Video loading overlay (main player only) */
    .rv-loading { position:absolute; inset:0; background:#080a0d; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; z-index:5; }
    .rv-loading[role="button"] { cursor:pointer; }   /* ⟦item 1005⟧ a tap plays */
    /* ⟦item 1005⟧ a view-only ("Just watch") link has NO comments section at all — no heading, list, note, box or timeline markers */
    body.guest-mode.sfb-watch #review-view .review-panel, html body.guest-mode.sfb-watch #review-view:not(.tr-active) .review-body .review-panel.review-panel, body.guest-mode.sfb-watch #rv-timeline .rv-tl-chip, body.guest-mode.sfb-watch #sfb-watch-note { display:none !important; }   /* the second selector outranks the v5 phone panel's display:flex !important (same id and classes — the class doubled — one more element; no .v5 prefix or :not(.is-team): the v5 sheet guards read those as theirs) */
    /* ⟦item 1005⟧ a guest never reads "Comments are closed for this version · You can still reply" — a guest cannot reply */
    body.guest-mode #rv-frozen { display:none !important; }
    /* ⟦item 1005⟧ a phone's Safari toolbar: the share page is the DYNAMIC viewport tall (100vh is the toolbar-hidden height, so its
       bottom sat behind the toolbar), and its end clears the home indicator */
    @media (max-width: 760px) {
      @supports (height: 100dvh) { body.guest-mode.guest-fit .portal-main { height:100dvh; } body.guest-mode.guest-fit #app { min-height:100dvh; } }
      body.guest-mode.guest-fit #review-view { padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
    }   /* a PHONE's v5 share page only (body.guest-fit, set with html.v5g; every share link is v5, GUEST_V5): the desktop and the v4 guest frame are untouched (pixel-identity-guest) */
    .rv-loading.rv-loading--tap { background:rgba(8,10,13,.55); }   /* ⟦item 1005⟧ waiting for a tap: the poster shows through */
    .rv-loading-ring { width:64px; height:64px; border-radius:50%; border:1.5px solid rgba(var(--rd-gold-rgb),0.3); display:flex; align-items:center; justify-content:center; animation:rvLoadPulse 1.5s ease-in-out infinite; }
    .rv-loading-ring svg { fill:rgba(var(--rd-gold-rgb),0.6); margin-left:3px; }
    /* R-15 (item 359): the review page's muted text. :root --text-muted (#7A7670) measures
       3.2–3.9:1 on this page's surfaces — under the 4.5:1 floor on TEN censused roles. Scoped
       override, the #rv-tab-cuts precedent (same move, same reason); #9A968E is the portal's
       established warm grey and clears 4.87:1 on the worst surface here (the old-version
       banner). :not(.tr-active) keeps the transcript editor exactly as it was — its own themes
       own its values. Dark-only page (reconciliation ruling 1.6), so no light pair. */
    #review-view:not(.tr-active) { --text-muted: #9A968E; }
    /* ⚠️ NATIVE CONTROL CHROME (item 389). Without this the UA paints native controls in LIGHT
       mode inside a dark UI. NOT :root and NOT #review-view — #rv-transcript-view is NESTED
       INSIDE #review-view and is LIGHT-LOCKED for clients (items 60/301/341), so either of
       those would repaint a client-facing light page's controls dark, which no team session
       could ever see (item 82). :not(.tr-active) is this file's own idiom for exactly that
       containment. Reaches the volume slider and the two review textareas; body-mounted
       overlays (#cmp-overlay, rv-tr-pop) are outside it by construction (item 60). */
    #review-view:not(.tr-active) { color-scheme: dark; }
    .rv-loading-text { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.55); } /* 0.3 measured 2.61:1 on the stage — item 359's floor; 0.55 = 6.28 */
    @keyframes rvLoadPulse { 0%,100%{ transform:scale(1); opacity:0.6; } 50%{ transform:scale(1.08); opacity:1; } }
    .review-stage video, .review-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
    /* ══ THE FRAME EDGE — ON THE MEDIA, AS AN OUTLINE, AND ALL THREE CHOICES ARE FORCED ══
       ⚠️ 1. OUTLINE, NEVER A BORDER. annoMediaBox computes `r.left - sr.left` from two
          getBoundingClientRect() calls — both BORDER boxes — and annoPlaceCanvas then applies
          that as `left` on a canvas absolutely positioned inside the stage, which resolves
          against the stage's PADDING box. A border of width B on the stage puts padding-left
          B past border-left, so EVERY markup mark shifts by B. An outline takes up no space
          and changes neither rect, so the offset stays 0. (Slice 3 refused §4's `border 1px`
          for exactly this; this is the same edge obtained without the box-model cost.)
       ⚠️ 2. ON THE MEDIA, NOT THE STAGE. rvFitPlayer caps only the stage's maxHeight while
          its width is flex:1 — so the stage hugs the media in ONE fit case and pillarboxes in
          the rest. Computed at a 1079px stage: 16:9-in-a-tall-area 0px each side, 4:3 73px,
          16:9-in-a-wide-area 184px, and a 9:16 VERTICAL 342px. A ring on the stage would sit
          342px away from the footage on the very content where the edge is hardest to find.
       ⚠️ 3. OUTLINE-OFFSET -1px, so the ring is drawn just INSIDE the media's own edge. At 0
          or positive it is drawn outside the border box and the stage's overflow:hidden clips
          it away in precisely the hugging case. An inset box-shadow was rejected for the
          mirror reason: it paints below the element's content, so the video covers it.
       ⚠️ 4. THE VALUE IS NOT §4's #22222a. That is the reference's frame edge for the STAGE
          against the PAGE, and it is near-black: measured against footage it is 1.33:1 on pure
          black and 1.10:1 on dark grey — it cannot mark an edge on the content this exists
          for. rgba(255,255,255,.22) measures 1.79 / 2.03 / 1.81 across black / dark / mid.
          It reads 1.00 on WHITE footage and that is the accepted trade: when the footage is
          light, the black stage around it already draws the edge. Non-text decoration, so no
          4.5:1 text floor applies. */
    .review-stage video, .review-stage img { outline: 1px solid var(--rd-frame-edge); outline-offset: -1px; }
    .no-media { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.85rem; }
    .rv-gone .rv-gone-d { font-size: 0.78rem; margin-top: -0.4rem; }   /* ⟦item 1054⟧ the date under "This version is no longer streaming." */
    /* ⟦item 769⟧ a web link: the "Open the page" bar under the stage (every audience that reaches it), and the Link artwork when
       there is no screenshot — the palette's Link pair, written inline from assetTypeFill/Ring. */
    .rv-link-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 0 12px; }
    .rv-link-open { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: #ececf0; color: #111114;
                    font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
    .rv-link-open:hover { background: #ffffff; }
    .rv-link-open:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
    .rv-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
    .rv-link-addr { font-size: 13px; color: #c9c9d1; overflow-wrap: anywhere; }
    .rv-link-note { font-size: 12px; color: #9a9aa5; }
    .rv-link-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
    .rv-link-art-frame { position: relative; width: min(60%, 420px); height: min(60%, 260px); border: 1px solid currentColor; border-radius: 10px;
                         display: flex; align-items: center; justify-content: center; opacity: .9; }
    .rv-link-art-bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-bottom: 1px solid currentColor; display: flex; align-items: center; gap: 5px; padding-left: 9px; }
    .rv-link-art-bar i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
    .rv-link-art-bar b { margin-left: 8px; height: 7px; width: 45%; border-radius: 4px; background: currentColor; opacity: .4; }
    /* ⟦item 769⟧ the team's "Add a web link" dialog (behind LINK_ADD_ON). */
    .lk-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
    .lk-dlg { width: 100%; max-width: 440px; background: var(--surface, #1a1a1a); border: 1px solid var(--border, #333); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text, #eee); }
    .lk-h { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
    .lk-l { font-size: 12px; font-weight: 600; color: var(--text-muted, #999); margin-top: 6px; }
    .lk-opt { font-weight: 400; }
    .lk-in { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border, #333); background: var(--bg, #111); color: inherit; font: inherit; font-size: 14px; }
    .lk-file { font-size: 13px; color: var(--text-muted, #999); }
    .lk-err { min-height: 16px; font-size: 12px; color: #E24B4A; }
    .lk-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
    .lk-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border, #333); background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .lk-btn--go { background: var(--brand, #F7931E); border-color: transparent; color: #111; }
    .lk-btn[disabled] { opacity: .6; cursor: default; }
    /* ⟦item 774⟧ directions for the client (max 300, a counter) and what the client does (two choices). */
    .lk-ta { min-height: 66px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border, #333); background: var(--bg, #111); color: inherit; font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
    .lk-help { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-muted, #999); }
    .lk-acts2 { display: flex; gap: 8px; }
    .lk-acts3 { flex-direction: column; }   /* ⟦item 777⟧ three choices, one per line */
    .lk-choice { flex: 1; display: block; border: 1px solid var(--border, #333); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
    .lk-choice input { position: absolute; opacity: 0; pointer-events: none; }
    .lk-choice:has(input:checked) { border-color: var(--brand, #F7931E); }
    .lk-choice b { display: block; font-size: 14px; }
    .lk-choice span { display: block; font-size: 12px; color: var(--text-muted, #999); margin-top: 2px; }
    /* ⟦item 834⟧ project links — the team's strip (and a v4 client's): plain rows above the list, no gold */
    .pl4 { margin: 0 0 18px; border: 1px solid var(--border, #333); border-radius: 10px; padding: 10px 14px; background: var(--surface, #1a1a1a); }
    .pl4-head { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted, #999); padding: 2px 0 6px; }
    .pl4-head span { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: 6px; }
    .pl4-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border, #333); }
    .pl4-main { flex: 1 1 auto; min-width: 0; }
    .pl4-name { font-size: 14px; font-weight: 600; color: var(--text, #eee); text-decoration: none; overflow-wrap: anywhere; }
    .pl4-name:hover { text-decoration: underline; }
    .pl4-meta { margin-top: 3px; font-size: 12px; color: var(--text-muted, #999); overflow-wrap: anywhere; }
    .pl4-tnote { margin-top: 6px; font-size: 12.5px; color: var(--text, #eee); opacity: .85; white-space: pre-wrap; overflow-wrap: anywhere; }
    .pl4-lines { margin-top: 6px; font-size: 12.5px; color: var(--text-muted, #999); white-space: pre-wrap; overflow-wrap: anywhere; }
    .pl4-lines b { color: var(--text, #eee); font-weight: 600; }
    .pl4-acts { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
    .pl4-btn { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border, #333); background: none; color: var(--text, #eee); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
    .pl4-more { display: flex; gap: 8px; margin-top: 8px; }
    .pl4-in { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border, #333); background: var(--bg, #111); color: inherit; font: inherit; font-size: 13px; }
    .no-media svg { opacity: 0.2; }
    .review-stage video { transition: transform 0.05s linear; }

    /* Inline synced transcript panel (normal review) — sits below the player in the
       .review-player column; the stage (flex:1) yields height as the panel grows so
       the video shifts up without resizing. */
    /* Missed by the floating-card pass: it was flush (x=56 against the 64 the other cards use,
       and 8px wider on the right), square, on the ad hoc #0e0e0e, and separated by a hairline
       instead of a gap. Now a card like the rest. No top margin — the transport above already
       contributes 8px of its own bottom margin, and flex columns do not collapse margins, so
       adding one here would double the gap to 16px. overflow:hidden so the radius clips the
       scrolling panel inside it. */
    /* §7's two-tone (slice 4, item 381): header --rd-well over body --rd-strip. The region carries
       the BODY fill and the header paints over it, so the drag strip between them reads as the
       body's top edge.
       ⚠️ §7's PER-ELEMENT BORDERS AND RADII ARE NOT APPLIED, and that is a deviation rather than an
       omission: it draws this as a standalone bordered box (header r 4 4 0 0 + bd, body bd), and
       here it is a CARD in a stack of cards — the floating-card pass gave it radius 10, a shadow
       and an 8px margin deliberately. Outer borders would double the card's own edge. The one
       boundary that carries information is between header and body, and that is the toggle's
       border-bottom below. */
    .rv-tr-region { display:flex; flex-direction:column; flex-shrink:0; background:var(--rd-strip); margin:0 8px 8px 8px; border-radius:10px; overflow:hidden;
      box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
    /* ⚠️ THE WIDTH CONSTRAINT, WRITTEN DOWN RATHER THAN LEFT TO THE TREE (item 583). Being a child
       of .review-player already stops this reaching under .review-panel — a block cannot exceed
       its own column — but item 582's regression was exactly a change of PARENT, which no rule
       here could have caught. max-width:100% is the belt: it holds even if the drawer is one day
       moved into a container that does not constrain it, and the geometry guard asserts the
       rendered right edge stops before the Comments panel's left edge rather than trusting either. */
    .rv-tr-region { max-width:100%; box-sizing:border-box; }
    /* §7: "Header (click toggles)" — a full-width bar. It is a ROW now, not a single button: the
       chevron and label sit on the left and item 577's borrowed search + Aa controls on the right,
       and the row itself carries the click. */
    .rv-tr-head { display:flex; align-items:center; gap:8px; width:100%; box-sizing:border-box; text-align:left;
      background:var(--rd-well); border:0; color:var(--rd-text-5); font-family:'Inter',sans-serif; font-size:11.5px; font-weight:500; padding:10px 14px; cursor:pointer; }
    .rv-tr-head:focus-visible { outline:2px solid var(--rd-gold); outline-offset:-2px; }
    /* Only while open: closed there is no body below, so the line would sit on the card's own edge. */
    .rv-tr-region.open .rv-tr-head { border-bottom:1px solid var(--rd-card-bd); }
    .rd-tr-ico { color:var(--rd-text-3); flex-shrink:0; }
    /* Label role = Archivo 700 caps at .1em, the treatment slices 1-3 already use.
       ⚠️ GOLD HERE IS §7's OWN VALUE AND IS NOT A THIRD ITEM-66 EXCEPTION. Item 66 reserves gold
       for the decision and the asking of it; its two named exceptions (the play triangle, the
       filter segment) are CONTROLS. This is a section label carrying the page's accent, which is
       the reference's own language throughout. */
    .rd-tr-label { font-family:'Archivo',sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; color:var(--rd-gold); flex-shrink:0; }
    .rv-tr-chev { transition:transform 0.2s ease; flex-shrink:0; }
    .rv-tr-region.open .rv-tr-chev { transform:rotate(180deg); }
    /* ══ THE BORROWED CONTROLS, INERT WHILE CLOSED (item 583) ══════════════════════════════════
       They RENDER closed — the row reads chevron / TRANSCRIPT / search / Aa either way, so the
       drawer advertises what it opens into — but there is nothing to search and nothing to resize
       until the transcript is on screen, so they take no clicks and no tab stop. pointer-events
       is what makes the whole row one target while closed: a click over the search box falls
       through to the row and OPENS it, which is the thing a reader is trying to do. */
    .rv-tr-head-slot { flex:1 1 auto; min-width:0; display:flex; justify-content:flex-end; }
    .rv-tr-head-slot > .tr-col-head { flex:1 1 auto; min-width:0; padding:0; border-bottom:0; gap:10px; justify-content:flex-end; }
    .rv-tr-region:not(.open) .rv-tr-head-slot { pointer-events:none; opacity:0.45; }
    /* ⚠️ SMALL AND FIXED, NOT THE READING PAGE'S 68ch (item 583). On the transcript page the field
       tracks the text column; in a header row beside a label it would eat the row. */
    .rv-tr-head-slot .tr-search-field { flex:0 0 auto; width:190px; max-width:190px; height:30px; font-size:13px; }
    /* ⚠️ THE COUNT IS BACK (item 585). Item 583 hid it here on the reasoning that the row is
       narrow and "the field's own state is enough" — which was true only because search did not
       work on this surface at all, so the slot could only ever have said "No matches". With
       trSearchRun reading the mounted container, "3 of 12" is the same real information the
       dedicated page shows, and it is the only thing that tells a reader whether to press the
       next-match arrow. Same treatment as the dedicated page, so there is one count and one
       reading of it. */
    .rv-tr-head-slot .tr-mark-counts { display:none; }    /* the rail already carries this, and the row has no space for it */
    /* ⟦item 850⟧ ON A PHONE THE ROW IS NARROWER THAN ITS CONTENTS (chevron + TRANSCRIPT + a fixed 190px search + Aa A A A ≈ 450px at
       390). The slot right-aligns with flex-end, and a flex row that overflows at its END spills over its START — the search box was
       drawn over the label (seen live, item 848). Phones only, so the desktop row is pixel-identical: the field shrinks to the room
       left, and `safe` keeps any overflow off the label. checks/transcript-row-850-live.mjs measures it at 390 / 320 / 1024 / 1440. */
    @media (max-width: 640px) {
      .rv-tr-head-slot, .rv-tr-head-slot > .tr-col-head { justify-content:safe flex-end; }
      .rv-tr-head-slot > .tr-col-head { gap:8px; }
      .rv-tr-head-slot .tr-search-field { flex:1 1 auto; width:auto; max-width:190px; min-width:0; padding:0 8px; }
      .rv-tr-head-slot .tr-text-aa { display:none; }   /* the three sized A's say it; the row has no room for the word */
    }
    /* the narrowest phones (320): the search needs the room; text size stays on the dedicated transcript page */
    @media (max-width: 359px) { .rv-tr-head-slot .tr-text-seg { display:none; } }
    .rv-tr-drag { display:none; height:10px; cursor:ns-resize; align-items:center; justify-content:center; background:transparent; flex-shrink:0; } /* inherit the card, not a second grey */
    .rv-tr-region.open .rv-tr-drag { display:flex; }
    .rv-tr-drag-bar { width:38px; height:3px; border-radius:2px; background:rgba(255,255,255,0.22); transition:background 0.15s; }
    .rv-tr-drag:hover .rv-tr-drag-bar, .rv-tr-drag.dragging .rv-tr-drag-bar { background:rgba(var(--rd-gold-rgb),0.7); }
    .rv-tr-panel { display:none; height:240px; overflow:hidden; background:transparent; flex-shrink:0; } /* inherit the card, not a second grey */
    .rv-tr-region.open .rv-tr-panel { display:block; }
    /* height:100% — the PANEL owns the number, and rvSizeTranscriptPool computes it from the
       shared video/transcript pool on every open and every drag. A viewport-relative height here
       would fight it: the drawer would stop giving the video its space back. */
    .rv-tr-inline-scroll { height:100%; overflow-y:auto; padding:12px 14px; text-align:left; }
    #tr-inline-scroll .tr-block { margin-bottom:14px; }
    #tr-inline-scroll .tr-speaker { font-size:12px; }
    /* ⟦item 1078⟧ (5) the transcript under the video: ONE style for every speaker, small capitals — a typed real name too (was "LAUREN ZABIEREK" beside "Andy"). Every audience: it is one component. */
    #tr-inline-scroll .tr-speaker, #tr-inline-scroll .tr-speaker.tr-speaker-named { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
    /* ⚠️ EVERY CURRENT-LINE RULE BELOW IS SCOPED TO #tr-inline-scroll, NEVER THE BARE CLASS.
       .tr-word-active, .tr-block-active, --tr-play and the caret are SHARED with the dedicated
       transcript editor (#tr-scroll) — the base rules are unscoped, so a bare retint here would
       repaint that page too. This strip is a playback companion and the editor is a reading
       surface (item 301 gave it a 19.5px serif for that reason), which is why dimming the
       non-current blocks is right here and wrong there. Mirror of item 301's own scoping. */
    /* ══ THE DRAWER'S OWN READING SIZE (item 583) ═════════════════════════════════════════════
       ⚠️ THIS WAS A HARDCODED 16px, AND IT IS THE SECOND HALF OF WHY Aa DID NOTHING HERE. The
       first half was trApplyTextSize stamping only #tr-scroll; even once the attribute arrived,
       a literal font-size cannot be stepped. The drawer now carries the same --tr-read-* contract
       the reading page does, with its OWN base: 16px, because this is a companion strip beside a
       playing video and not a 19.5px reading column. The three steps are the same relative moves
       (−2 / base / +2 — item 583a) so the Aa control means the same thing on both surfaces — one
       preference, two bases, which is exactly what item 575 did for viewport width. */
    #tr-inline-scroll { --tr-read-base:16px; --tr-read-lh:1.95; --tr-read-size:var(--tr-read-base); }
    #tr-inline-scroll[data-text-size="small"] { --tr-read-size:calc(var(--tr-read-base) - 2px); --tr-read-lh:1.85; }
    #tr-inline-scroll[data-text-size="large"] { --tr-read-size:calc(var(--tr-read-base) + 2px); --tr-read-lh:2.05; }
    #tr-inline-scroll .tr-para { font-size:var(--tr-read-size); line-height:var(--tr-read-lh); color:var(--rd-text-3); }
    #tr-inline-scroll .tr-block-active .tr-para { color:var(--rd-text); }
    #tr-inline-scroll .tr-block-time { color:var(--rd-text-5); }
    /* ⚠️ §7 SAYS THE CURRENT LINE'S TIMECODE IS GOLD. IT IS THE PLAYING HUE INSTEAD, DELIBERATELY.
       "Where the playhead is" already has a colour — --tr-play-hue, slate #7FB0CE, and #A39D93
       when paused — carried by the progressive word rule and the caret on BOTH surfaces. Goldening
       it here alone would make one state read two ways depending on which surface you opened,
       which is items 130/154's exact drift. Reading the token also means the timecode dims with
       the caret on pause for free, rather than needing a second paused rule to keep in step. */
    #tr-inline-scroll .tr-block-active .tr-block-time { color:var(--tr-play-hue); }
    #tr-inline-scroll ::selection, #tr-inline-scroll ::-moz-selection { background:rgba(255,255,255,0.14); }
    /* Selection → highlight+comment popover (inline panel) */
    .rv-tr-pop { position:fixed; z-index:100000; background:#1a1c20; border:0.5px solid rgba(255,255,255,0.15); border-radius:8px; box-shadow:0 8px 28px rgba(0,0,0,0.5); padding:10px; width:264px; }
    .rv-tr-pop-hint { font-size:11px; color:rgba(255,255,255,0.45); margin:0 0 7px; }
    .rv-tr-pop textarea { width:100%; box-sizing:border-box; background:#0e0e0e; border:0.5px solid rgba(255,255,255,0.15); border-radius:4px; color:#fff; font-family:'Inter',sans-serif; font-size:13px; padding:7px 9px; resize:vertical; min-height:52px; outline:none; }
    /* ⚠️ THE FOCUS RING WAS GOLD TOO — a third one on this element. A focus ring is not a
     decision, so item 66 applies to it exactly as it does to Save, and removing one gold while
     leaving another is the half-fix this file keeps recording. Slate is the informational hue
     and design's own focus ring is slate; #7FB0CE is its DARK value, for the reason above. */
  .rv-tr-pop textarea:focus { border-color:rgba(127,176,206,0.55); }
    .rv-tr-pop-row { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
    .rv-tr-pop-btn { border:0; border-radius:4px; padding:6px 12px; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; cursor:pointer; }
    /* ⚠️ SAVE IS THE NOTE FAMILY, NOT GOLD. Item 66 reserves gold for the decision, and on this
     page gold IS the send control — so a gold Save is that rule broken on the surface beside
     the one where the popover's own buttons were deliberately kept off it (item 315). Creating
     a note must look the same whichever route a client took.
     ⚠️ DARK VALUES AS LITERALS, DELIBERATELY, AND THIS IS THE ONE THING TO REVISIT. This popover
     lives on the REVIEW page, which is dark for everyone — .rv-tr-inline-scroll resolves
     var(--bg) and #tr-inline-scroll's ::selection is a white wash. It is NOT theme-stamped
     (trApplyTheme stamps rv-transcript-view, tr-sel-bar, cg-pop and the two overlays — not this),
     so var(--trv-note-*) would resolve the LIGHT column and put sand on a dark page. These are
     design's own DARK note values from the README table, which item 282 banked unconsumed.
     WHEN THAT BANK IS UNBANKED THESE BECOME var(--trv-note-fill/-line/-ink) AND NOT BEFORE. */
  .rv-tr-pop-save { background:#4A3D20; border:1px solid #6B5A31; color:#E2C68C; }
    .rv-tr-pop-cancel { background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.7); }
    .rv-spin { transform-origin:center; animation:rvSpin 0.9s linear infinite; }
    @keyframes rvSpin { to { transform:rotate(360deg); } }
    /* Styled audio review stage (BRM audio green scheme); playback is driven by
       the shared video transport bar, so the native <audio> is hidden. */
    .rv-audio { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.4rem; width:100%; height:100%; padding:2rem; box-sizing:border-box;
      background: radial-gradient(circle at 50% 34%, rgba(var(--at-audio-ring-rgb),0.16), transparent 62%), #0d1a10; }
    .rv-audio-art { margin:6px 0 0; display:flex; align-items:center; justify-content:center; width:110px; height:110px; border-radius:16px;
      background:#13241a; border:1px solid rgba(45,196,138,0.25); color:#2dc48a; animation: shimmer 1.6s ease-in-out infinite; }
    .rv-audio-icon { color:var(--at-audio-ring); filter: drop-shadow(0 4px 14px rgba(var(--at-audio-ring-rgb),0.35)); }
    .rv-audio-deliv { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; font-weight:600; color:var(--text-muted); text-align:center; }
    .rv-audio-name { font-family:'Montserrat',sans-serif; font-weight:600; font-size:20px; line-height:1.25; color:#fff; text-align:center; max-width:80%; word-break:break-word; }
    .rv-audio audio { display:none; }
    /* WaveSurfer audio stage */
    .rv-wave { display:flex; flex-direction:column; align-items:center; width:100%; height:100%; padding:1.5rem 2rem 1.25rem; box-sizing:border-box; background:#0d1a10; }
    /* Title group + icon centered together as a unit in the upper area; the
       waveform stays pinned at the bottom. */
    .rv-wave-top { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; }
    .rv-wave audio { display:none; }
    .rv-wave-deliv { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.25); }
    .rv-wave-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; color:#fff; text-align:center; }
    .rv-wave-sub { font-family:'Inter',sans-serif; font-weight:400; font-size:11px; color:rgba(255,255,255,0.3); }
    .rv-wave-canvas { width:100%; min-height:72px; margin:0; flex-shrink:0; }
    .rv-wave-time { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; letter-spacing:0.04em; color:rgba(255,255,255,0.25); }
    .rv-wave-canvas { position: relative; }
    .rv-wave-skel { position:absolute; inset:0; height:72px; animation: shimmer 1.2s ease-in-out infinite;
      background: repeating-linear-gradient(90deg, rgba(45,196,138,0.20) 0 3px, transparent 3px 4px); }
    .rv-wave-fail { display:flex; flex-direction:column; align-items:center; gap:8px; color:rgba(255,255,255,0.4); font-size:0.8rem; padding:1rem; }

    /* Floating transport bar */
    /* Minimal full-width bottom transport (spans player + comment panel). */
        /* Its own floating card, fully rounded and inset on all four sides — deliberately NOT
       flush under the stage. Supersedes the earlier one-continuous-card treatment; the 8px
       top margin is what creates the visible gap, since flex containers do not collapse
       margins. Comment pins are children of #rv-timeline INSIDE this bar and positioned by
       percentage, so they travel with it and stay aligned to the track by construction. */
    /* Every card in this column carries its OWN bottom margin, so the 8px below it holds
       whatever comes next — or nothing. The transcript card used to borrow this bar's bottom
       margin for its top gap, which only worked while the bar was on screen: with the transport
       hidden the transcript butted straight against the stage, measured 0px at every panel
       height, expanded or not. Owning the gap below rather than relying on the neighbour above
       fixes it for any combination of visible cards. */
    /* §6 retint (item 378). GEOMETRY UNTOUCHED: min-height 68 and `24px 18px 12px` exist so
       the markers have room ABOVE the track — changing them moves every pin. */
    /* ⚠️ THE 24px TOP PADDING IS GONE (item 387). Its own comment said "extra top room for
       markers now above the track" — the transport's box was doing double duty as the
       timeline's frame. The timeline is its own panel now and carries that headroom in its
       own padding-top, so this row is symmetric again and sized to its 32px controls. */
    /* ⚠️ THE ROW WRAPS RATHER THAN OVERFLOWING OR SHEDDING A CONTROL (item 388). Measured, the
       two new controls take its minimum from 385px to 498px, and it overflows below ~962px of
       VIEWPORT while the comments panel is open. Every alternative loses a capability: the ⋯
       menu no longer carries speeds, nothing else offers fullscreen, and hiding the step buttons
       removes the only working frame step (item 187 has the arrow keys reported dead). Wrapping
       costs vertical space that rvFitPlayer already subtracts, and both triggers that change the
       width — window resize and the comments toggle — already re-fit.
       ⚠️ A VIEWPORT MEDIA QUERY CANNOT DECIDE THIS: hiding the panel frees 376px at the SAME
       viewport, so the existing max-width:700px slider rule is the mobile layout's decision and
       deliberately not this one. row-gap must follow `gap`, which sets both. */
    .review-transport { background: var(--rd-chrome); min-height: 56px; padding: 12px 18px; display: flex; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 8px; flex-shrink: 0; width: auto; margin: 0 8px 8px 8px; border-radius: 10px; box-sizing: border-box;
      box-shadow: 0 10px 28px rgba(0,0,0,.45); }
    /* ⚠️ THE TIMELINE'S `flex: 1` WAS WHAT PUSHED VOLUME AND ⋯ TO THE RIGHT. With the
       timeline gone (item 387) the row would bunch left, so the LAST element of the left
       group takes the auto margin. Keyed on .rv-time rather than .rv-volume-wrap because
       the timecode is the one control no branch ever hides. */
    .review-transport .rv-time { margin-right: auto; }
    .rv-play { width: 38px; height: 32px; border-radius: 4px; background: var(--rd-gold); color: #1A1A1A; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .rv-play:hover { filter: brightness(1.08); }
    /* §6 has no audio variant; the audio identity (green) is kept and moved onto the
       reference's green with its declared dark ink (ruling 3: extend the restyle to .audio). */
    .review-transport.audio .rv-play { background: var(--rd-green); color: var(--rd-green-ink); }
    /* Frame-step buttons flanking Play (track-prev / track-next style; video only). */
    .rv-step { width: 30px; height: 32px; background: none; border: none; color: var(--rd-text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; transition: color .15s, background .15s; }
    .rv-step:hover { color: var(--text); background: rgba(255,255,255,0.06); }
    .review-transport.audio .rv-step { display: none; }
    /* ⟦item 1041⟧ ↺ 1s / 1s ↻: the frame steps' colours, wide enough for their words; an audio file keeps them (no frames, but seconds);
       a phone gets 44px targets. The hint floats above the bar for a moment: "Jumped back to 12:40". */
    .rv-skip { width: auto; min-width: 44px; padding: 0 8px; gap: 3px; font-size: 12px; font-weight: 600; font-family: inherit; }
    .rv-skip-g { display: inline-flex; line-height: 1; }
    .review-transport.audio .rv-skip { display: inline-flex; }
    .review-transport, .tr-transport { position: relative; }
    .rv-skip-hint { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 10px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; }
    .rv-skip-hint.rv-skip-hint--on { opacity: 1; }
    /* ⟦item 1053⟧ ONE ROW BELOW ~1100px (Jeffrey, Nov 8: answer 2): at 1024 with comments open 1041's words pushed ⛶ and ⋯ onto a second
       row. Here the 1s buttons are their icons alone (the aria-label and title keep "Back 1 second"), the gaps and padding are smaller, and
       ⛶ / ⋯ keep their place on the row. Before the phone rule below, so a phone keeps its 44px targets. */
    @media (max-width: 1100px) {
      .review-transport { gap: 8px; padding-left: 12px; padding-right: 12px; }
      .rv-skip { font-size: 0; gap: 0; min-width: 30px; padding: 0 6px; }
      .rv-volume-wrap { padding-left: 8px; padding-right: 8px; }
    }
    @media (max-width: 700px) { .rv-skip, .review-transport .rv-play { min-width: 44px; height: 44px; } .tr-skip { min-height: 44px; } .review-transport .rv-step:not(.rv-skip) { display: none; } }   /* a phone: no frame steps (an editing tool; no keys there) — the skips take their room */
    /* §6's Plex Mono. ⚠️ tabular-nums AND min-width:8ch both stay — they are what stop a digit
       change reflowing the row and shifting the track mid-scrub, and a family swap changes the
       ch width without changing that requirement. */
    .rv-time { font-family: var(--rd-mono); font-weight: 500; font-size: 14px; white-space: nowrap; flex-shrink: 0; cursor: pointer; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; min-width: 8ch; } /* tabular-nums + min-width so digit changes don't reflow and shift the track while scrubbing */
    .rv-t-cur { color: var(--rd-text); }
    /* ⚠️ §6 says `#5e5e68` — measured 2.72:1 on the census ground, well under the 4.5 floor.
       Slice 1 already did this arithmetic and raised the same reference value to --rd-text-5
       (#81818e, 4.53). The contrast guard is authoritative over the mock's literal (ruling 2). */
    .rv-t-dim { color: var(--rd-text-5); }
    /* ⚠️ §5's OWN CONTAINER VALUES (item 387): `bg #101014; bd #1e1e24; r4` are --rd-well
       (whose reference comment is literally "timeline container") and --rd-card-bd.
       ⚠️ THE PADDING IS A RECORDED DEVIATION AND IT IS LOAD-BEARING. §5 says `9px 12px 0`,
       written for its h80 stack. Ours is a 24px wrap around a 1.5px rail with the chips
       hung ABOVE it: .rv-marker is 18px at bottom:12px of the 1.5px track, so it reaches
       17.25px above the wrap's top edge. A 9px top clips every chip by 8.25px. The top
       padding must stay >= that overhang, and the guard computes it rather than pinning it.
       ⚠️ NO overflow:hidden, ever. The scrub preview is 90px tall at bottom:18px and reaches
       ~95px above the wrap; it is MEANT to escape. Clipping it is invisible until someone
       scrubs. */
    .rv-tl-panel { background: var(--rd-well); border: 1px solid var(--rd-card-bd); border-radius: 4px;
      padding: 19px 12px 6px; box-sizing: border-box; }
    /* `flex: 1` and `min-width: 0` are now INERT — the wrap left the transport's flex row in
       item 387 and is a block-level flex container. Left in place deliberately: they are the
       pair that protects it if it is ever a flex item again (items 62/79/137/152). */
    .rv-timeline-wrap { height: 24px; display: flex; align-items: center; cursor: pointer; position: relative; flex: 1; min-width: 0; }
    /* §5 retint (item 378) — COLOUR ONLY. Every geometry value here is load-bearing: the
       1.5px track, the 24px wrap, the 10px lane and the range box's 8px edge band are what
       rvTimeFromClientX / rvBoxEdge hit-test against. §5's h80 ruler (pin row + h26 track +
       label row) is a REBUILD of a component shared with the compare view and is parked. */
    .rv-timeline { width: 100%; height: 1.5px; background: var(--rd-track); position: relative; }
    /* ⚠️ §5's progress is `rgba(251,176,59,.1)` with a `.35` right edge — values authored for a
       26px block, where a wash reads as filled area. On a 1.5px rail a .1 tint is invisible, so
       the reference's INTENT (progress is gold) is kept and the alpha is not. */
    /* ⚠️ THE FILL COLOUR IS ALREADY MAXIMAL, so "a stronger fill colour" was not a lever:
       solid --rd-gold measures 8.74:1 against its own track. What a 1.5px rail cannot have is
       AREA, so the remaining lever is WEIGHT, and the glow is this component's own established
       idiom rather than a new one: .rv-range next door already lights itself with
       `0 0 14px rgba(var(--rd-gold-2-rgb),0.4)`, same recipe, scaled to a 28px box. 4px here is
       scaled to 1.5px. box-shadow adds no layout, so every pinned geometry value is untouched.
       ⚠️ NAMED SIDE EFFECT: the halo reaches ~4px below the rail, so it washes the top of the
       ruler ticks in the PLAYED region only. That agrees with §5, whose past labels are gold. */
    .rv-timeline-fill { height: 100%; background: var(--rd-gold); pointer-events: none;
      box-shadow: 0 0 4px rgba(var(--rd-gold-rgb), .5); }
    .rv-scrub-line { position: absolute; top: -5px; bottom: -5px; width: 1.5px; background: rgba(255,255,255,0.6); pointer-events: none; display: none; transform: translateX(-0.75px); z-index: 5; }
    /* Persistent playback playhead — always visible (playing + paused) at the current position */
    /* ⚠️ THE PLAYHEAD STAYS WHITE, DELIBERATELY. §5 has no separate playhead — the progress
       fill's right edge IS its position marker. Live has both, so a gold playhead would vanish
       into the gold fill exactly where it matters. White against gold reads at every width. */
    .rv-playhead { position: absolute; top: -11px; left: 0; width: 2px; height: 24px; margin-left: -1px; background: var(--rd-text); pointer-events: none; z-index: 6; }
    /* Comment lane: a wider drag zone above the thin scrub track — drag here selects a range;
       the thin track below keeps click-to-seek + drag-to-scrub. */
    .rv-comment-lane { position: absolute; top: 0; left: 0; right: 0; height: 10px; cursor: crosshair; z-index: 4; }
    /* Range selection — ONE glowing bordered box; its own left/right edges are the drag handles
       (edge-detected in rvBoxPointerDown). No inner fill/handle elements. */
    .rv-range, .rv-wave-range { position: absolute; background: rgba(var(--rd-gold-2-rgb),0.1); border: 2px solid var(--rd-gold-2); box-shadow: 0 0 14px rgba(var(--rd-gold-2-rgb),0.4); border-radius: 3px; box-sizing: border-box; z-index: 5; }
    .rv-range { top: 50%; height: 28px; transform: translateY(-50%); } /* taller than the 4px track, centered on it */
    /* "✕ Clear range" composer link — muted text link beside the timecode chip, range-only. */
    .rv-clear-range { display: inline-flex; align-items: center; gap: 3px; background: none; border: none; color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 11px; cursor: pointer; padding: 0 2px; }
    .rv-clear-range:hover { color: var(--text); }
    /* Audio waveform range overlay — same glowing box, spanning the full waveform height. */
    .rv-wave-lane { position: absolute; inset: 0; cursor: crosshair; z-index: 4; }
    .rv-wave-range { top: 0; height: 100%; }
    /* Saved range comments — a resting (non-editable) highlighted span, matching the selection. */
    /* Saved range comments — a resting (non-editable) box matching the active selection. */
    .rv-comment-span { position: absolute; top: 50%; height: 28px; transform: translateY(-50%); background: rgba(var(--rd-gold-2-rgb),0.1); border: 1px solid rgba(var(--rd-gold-2-rgb),0.5); border-radius: 3px; box-sizing: border-box; pointer-events: none; z-index: 2; }
    .rv-wave-canvas .rv-comment-span { top: 0; height: 100%; transform: none; }
    /* Live in/out label shown near the cursor while dragging a range. */
    #rv-range-label { position: fixed; z-index: 100; transform: translateX(-50%); background: #1A1A1A; color: #fff; border: 1px solid rgba(var(--rd-gold-2-rgb),0.6); border-radius: 4px; padding: 3px 8px; font-family: var(--rd-mono); font-size: 11px; white-space: nowrap; pointer-events: none; display: none; }
    /* X button on the glowing range box (clears the range). */
    .rv-range-x { position: absolute; top: 1px; right: 2px; width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; color: var(--rd-gold-2); cursor: pointer; border-radius: 3px; pointer-events: auto; }
    .rv-range-x:hover { background: rgba(var(--rd-gold-2-rgb),0.28); color: #fff; }
    /* ⚠️ 160x90 IS DECLARED, NOT DERIVED — `aspect-ratio` IS DELIBERATELY ABSENT. See item 216.
       An `aspect-ratio` box with `height:auto` has a CONTENT-BASED height, and in Safari that
       height does not settle here: measured on the real hover path it compounded +15% per layout
       pass, and every mousemove writes `left`, which forces another pass. Two completely
       different child configurations produced the IDENTICAL 1.15 factor, and the child was a
       constant in both — so the driver is this box's own auto height, not anything inside it.
       A definite height removes the content-based computation entirely: there is nothing left to
       iterate, whatever the unnamed mechanism is.
       ⚠️ DO NOT "TIDY" THIS BACK TO `aspect-ratio: 16/9`. 160x90 IS 16:9, so it reads as the same
       statement expressed more cleanly, and it is not — the ratio is what makes the height auto.
       Nor add it ALONGSIDE the height: with a definite height it is inert, and an
       inert-but-correct-looking declaration is the exact trap this whole investigation was. */
    .rv-scrub-preview { position: absolute; bottom: 18px; transform: translateX(-50%); width: 160px; height: 90px; background: #000; border: 1px solid #3a3a3a; border-radius:4px; overflow: hidden; pointer-events: none; display: none; z-index: 6; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
    /* ⚠️ BOTH DIMENSIONS DECLARED, AGAINST A PARENT WHOSE HEIGHT IS DEFINITE. That conjunction is
       the invariant, and THREE FIXES ON THIS ONE ELEMENT EACH SATISFIED EXACTLY ONE HALF OF IT:
       · item 213 — `inset:0; width:100%; height:100%` on an aspect-ratio parent. Both dimensions
         declared; parent indefinite. The percentages could not resolve and the box ran away.
       · item 215 — `inset:0` alone. Nothing to cycle; NEITHER dimension declared. And `inset`
         does not size a REPLACED element: CSS 2.1 §10.6.5 says an absolutely positioned replaced
         element's height "is determined as for inline replaced elements" — i.e. INTRINSIC — and
         `bottom` is then adjusted to fit. So the img rendered at its natural 180px, measured, at
         every sample. `top:0;bottom:0` stretches a div and does NOT stretch an img.
       · item 216 (this) — both declared AND the parent carries `height:90px`. The percentages
         resolve the ordinary way, exactly as `.ag-thumb img.ag-img` does.
       ⚠️ SO THE PERCENTAGES ARE NOT THE HAZARD AND MUST NOT BE REMOVED AGAIN — the hazard was
       resolving them against an indefinite parent. Item 215 removed them, which broke the sizing
       and left the growth factor at an identical 1.15 per pass; that is the measurement proving
       the child was never the driver. If this rule is ever edited, the question to ask is not
       "is this like .ag-thumb's rule" — the two are byte-identical and that is what introduced
       item 215 — but "is THIS parent's height definite".
       display:block is dropped as redundant once absolutely positioned. overflow:hidden on the
       container stays load-bearing for the border-radius. */
    .rv-scrub-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .rv-scrub-preview-time { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.7rem; font-family: var(--rd-mono); text-shadow: 0 1px 2px rgba(0,0,0,0.8); pointer-events: none; }
    /* Comment markers — circular initials avatars, matching the Comments panel
       (nameColor + initials). The 2px ring in the surface colour is what keeps them
       legible against any track colour, and separates adjacent markers in a cascade. */
    /* Markers sit ABOVE the track (keeping the track clear for the range box + scrubbing), with a
       short stem down to their exact timestamp — the Frame.io pattern. */
    .rv-marker { position: absolute; bottom: 12px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%);
      cursor: pointer; z-index: 7; display: flex; align-items: center; justify-content: center;
      font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
      box-shadow: 0 0 0 2px var(--mk-pin), 0 1px 3px rgba(0,0,0,0.4); transition: transform .12s; }
    /* §5's "pin lines in the pin's line colour" — the stem takes the STATE colour while the
       disc keeps the author's. currentColor is set per state below. */
    .rv-marker::after { content: ''; position: absolute; top: 100%; left: 50%; width: 1.5px; height: 12px; background: var(--mk-pin); transform: translateX(-50%); pointer-events: none; }
    .rv-marker:hover { transform: translateX(-50%) scale(1.18); z-index: 8; }
    /* §5's open/resolved/internal palette, applied the way THIS FILE already applies state to
       a marker: as a RING, "rather than losing the author colour that makes markers
       distinguishable from each other" (the note that was here for .internal). The disc stays
       the author's avatar colour — the same identity the Comments panel shows — and the state
       rides the ring and the stem. Replacing the fill would have traded one signal for another.
       ⚠️ `color` here paints the ::after STEM, not the initials: those are re-set to #fff below,
       because they sit on the author's disc and must stay legible on any of them. */
    /* ⚠️ THE CHANNEL IS `--mk-pin`, DELIBERATELY OUTSIDE THE `--rd-` NAMESPACE. Every --rd-
       name is a design TOKEN declared once at :root, and review-panel-restyle.mjs asserts that
       — "a scoped redeclaration is how a token silently means two things" (item 282's bank
       hazard). This is NOT a token: it is a per-element channel whose whole job is to vary, it
       has no :root value, and it names no colour. Conforming to that guard beat loosening it.
       ⚠️ THE STATE RIDES `--mk-pin`, NOT `color`. `color` is the INITIALS, which sit on the
       author's disc and must stay white on any of them; a state colour there would make some
       authors' initials unreadable. One property, read by both the ring and the stem, so the
       two can never disagree about a marker's state. */
    .rv-marker            { --mk-pin: var(--rd-gold); }        /* open */
    .rv-marker.resolved-marker { --mk-pin: var(--rd-green); opacity: 0.55; }
    .rv-marker.internal   { --mk-pin: var(--rd-violet); }
    /* Cascade: 2–3 markers at the same spot fan out instead of hiding one another. */
    .rv-marker.rv-mk-stacked { z-index: 3; }
    /* 4+ collapse into one count badge; click expands the list. */
    /* The collapsed count is not one comment's state, so it takes the neutral chrome and the
       same ring mechanism (--mk-pin) rather than a fourth colour. */
    .rv-marker.rv-mk-more { --mk-pin: var(--rd-text-3); background: var(--rd-chrome); color: var(--rd-text); font-size: 9px; }
    /* ══ SLICE 3b (§5 ruler variant) — MAIN REVIEW TIMELINE ONLY ══════════════════════
       The compare view's mini-timelines keep the avatar-disc `.rv-marker` system above,
       byte-unchanged: `rvPaintMarkers` and `rvGroupMarkers` are SHARED code and this slice
       forks the RENDERER rather than editing them.

       ⚠️ THE RULER LIVES IN THE FREE BAND BELOW THE TRACK, and the reason there IS one is
       not obvious: `.rv-comment-lane` is a SIBLING of `.rv-timeline`, not a child, so its
       `top:0; height:10px` measures from the WRAP and puts the crosshair drag zone in the
       top 10px — ABOVE the track. Measured in wrap coordinates (wrap 24px, track 1.5px,
       flex-centred at 11.25 to 12.75):
           0     to 10      .rv-comment-lane, the range-drag zone
           12.75 to 24      free, 11.25px, crossed only by the playhead and the range box
       §5's label row is h11 and fits that band almost exactly. `top:100%` on a child of
       `.rv-timeline` IS 12.75 in wrap space, so the ruler needs no measurement and nothing
       resizes.
       ⚠️ `pointer-events:none` AND a z-index below the lane's 4 are BOTH required: without
       either, the ruler takes the lane's crosshair drags and the range box's 8px edge
       handles. Neither failure shows in a diff. */
    .rv-tl-ruler { position: absolute; top: 100%; left: 0; right: 0; height: 11px; pointer-events: none; z-index: 1; }
    .rv-tl-tick { position: absolute; top: 0; width: 1px; height: 7px; background: var(--rd-tick); transform: translateX(-50%); }
    /* ⚠️ §5's own future-label colour is #6c6c78 — which this file already carries as
       `--rd-nontext`, i.e. the NON-TEXT token. As text it measures 3.36:1 against the
       census ground and FAILS the 4.5 floor. `--rd-text-5` is slice 1's already-derived
       4.53 value; the contrast guard is authoritative (standing ruling), so no new
       near-copy was minted. */
    .rv-tl-label { position: absolute; top: 0; font-family: var(--rd-mono); font-size: 9px; line-height: 11px; color: var(--rd-text-5); white-space: nowrap; }
    .rv-tl-label.rv-tl-past { color: rgba(var(--rd-gold-rgb), 0.8); }
    /* §5's pin row — numbered chips. The chip anchors at the SAME `bottom:12px` the avatar
       marker used, so the rhythm above the track is unchanged and no hit zone moves. */
    .rv-tl-chip { position: absolute; bottom: 12px; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px;
      border: 1px solid var(--ch-line); background: var(--ch-bg); color: var(--ch-fg);
      font-family: var(--rd-mono); font-size: 9px; font-weight: 700; line-height: 1.3;
      cursor: pointer; z-index: 7; white-space: nowrap; transition: transform .12s; }
    /* §5's "pin lines 2px full-height in the pin's line colour" — one channel, so the chip
       and its stem can never disagree about state. */
    .rv-tl-chip::after { content: ''; position: absolute; top: 100%; left: 50%; width: 2px; height: 12px; background: var(--ch-line); transform: translateX(-50%); pointer-events: none; }
    .rv-tl-chip:hover { transform: translateX(-50%) scale(1.12); z-index: 8; }
    /* ⚠️ THE CHIP READS THE SAME STATE TOKENS THE MARKER'S `--mk-pin` READS. That is what
       makes internal-on-a-compare-marker and internal-on-a-review-chip ONE state rather
       than two elements that happen to agree today: one token per state, two consumers.
       Transcribing §5's hexes here would have been the drift. Per-element channels, no
       :root value, naming no colour — the `--mk-pin` pattern (item 282's bank hazard). */
    .rv-tl-chip            { --ch-line: var(--rd-gold);   --ch-fg: var(--rd-gold);     --ch-bg: rgba(var(--rd-gold-rgb), 0.28); }
    .rv-tl-chip.resolved-chip { --ch-line: var(--rd-green); --ch-fg: var(--rd-green-fg); --ch-bg: rgba(var(--rd-green-rgb), 0.24); }
    /* ⚠️ §5's own internal fill is `.3`, which puts #b08cf5 on a 30% tint of ITSELF at
       3.83:1 — under the floor. 0.20 measures 4.67. Contrast guard authoritative. */
    .rv-tl-chip.internal   { --ch-line: var(--rd-violet); --ch-fg: var(--rd-violet);   --ch-bg: rgba(var(--rd-violet-rgb), 0.20); }
    /* Fan-out: chips at the same timestamp offset around the group's centre rather than
       superimposing. Ported from rvPaintMarkers; see rvPaintChips for why it is kept and
       the +N collapse is not. */
    .rv-tl-chip.rv-tl-stacked { z-index: 3; }
    .rv-mk-pop { position: absolute; bottom: 20px; transform: translateX(-50%); background: #1a1a1a; border: 0.5px solid rgba(255,255,255,0.12);
      border-radius: 6px; padding: 4px; z-index: 12; display: flex; flex-direction: column; gap: 2px; min-width: 190px; max-width: 260px;
      max-height: 210px; overflow-y: auto; box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
    .rv-mk-pop-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
    .rv-mk-pop-row:hover { background: rgba(255,255,255,0.07); }
    .rv-mk-pop-ini { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; flex-shrink: 0; }
    .rv-mk-pop-tx { font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rv-mk-pop-tc { font-size: 10px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
    /* Marker hover tooltip. */
    .rv-mk-tip { position: absolute; bottom: 16px; transform: translateX(-50%); background: #1a1a1a; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 5px 8px; z-index: 10; pointer-events: none; display: flex; align-items: center; gap: 6px; max-width: 280px; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
    .rv-mk-ini { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; flex-shrink: 0; }
    .rv-mk-au { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10px; color: #fff; white-space: nowrap; }
    .rv-mk-tc { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
    .rv-mk-tx { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rv-transport-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; }
    .rv-transport-left, .rv-transport-right { display: flex; align-items: center; gap: 0.4rem; }
    .rv-transport-right { justify-self: end; }
    .transport-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: color 0.2s; display: flex; align-items: center; justify-content: center; }
    .transport-btn:hover { color: var(--text); }
    .rv-tc-btn { background: none; border: none; font-size: 15px; font-weight: 500; color: var(--text-muted); font-family: var(--mono); cursor: pointer; padding: 0.3rem 0.6rem; border-radius:4px; transition: all 0.2s; white-space: nowrap; justify-self: center; }
    .rv-tc-btn:hover { color: var(--brand); background: rgba(var(--rd-gold-2-rgb),0.08); }
    .rv-zoom-controls { display: none; align-items: center; gap: 0.1rem; flex-shrink: 0; }
    .rv-zoom-controls button { background: none; border: none; color: var(--text-muted); width: 24px; height: 24px; border-radius: 4px; cursor: pointer; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: 'Inter', sans-serif; }
    .rv-zoom-controls button:hover { color: var(--text); background: var(--surface2); }
    .rv-zoom-controls span { color: var(--text-muted); font-size: 0.68rem; font-family: var(--mono); padding: 0 0.25rem; cursor: pointer; min-width: 36px; text-align: center; transition: color 0.2s; }
    .rv-zoom-controls span:hover { color: var(--brand); }
    /* §6's volume chip. */
    /* §6 speed + fullscreen. `bg #131317 / bd #1f1f26` are --rd-inset / --rd-inset-bd, shared
       with the volume chip beside them so the three read as one family.
       ⚠️ THE INK IS --rd-text-3, NOT §6's OWN #9a9aa6. Measured: #9a9aa6 is 6.66:1 on the inset
       and --rd-text-3 is 5.43:1, so BOTH clear the floor and the choice is not a contrast one —
       it is that #9a9aa6 is 16 units from --rd-text-3, which is the token the step buttons, the
       mute button and the volume slider in this same row already read. A sixth near-grey for one
       button is the drift, not the fix (item 82: reuse over near-copy).
       ⚠️ min-width is in ch so cycling 1× -> 1.25× cannot reflow the row mid-playback — the same
       no-reflow reasoning as .rv-time's 8ch, and the widest label is 5 characters. */
    .rv-speed-btn { flex-shrink: 0; padding: 5px 9px; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd);
      border-radius: 4px; color: var(--rd-text-3); font-family: var(--rd-mono); font-size: 11.5px; font-weight: 600;
      font-variant-numeric: tabular-nums; min-width: 5ch; text-align: center; cursor: pointer; }
    .rv-fs-btn { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
      background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; color: var(--rd-text-3); cursor: pointer; }
    /* ⟦item 1009⟧ a touch screen's ⛶ is a 44px target; the landscape layout (body.rv-land): the video fills the window inside the safe
       areas, the header, tabs, comments and rail out of sight until it is turned upright again */
    @media (pointer: coarse) { .rv-fs-btn { width: 44px; height: 44px; } }
    body.rv-land #rv-action-bar, body.rv-land #review-view .review-panel, body.rv-land #team-bar { display: none !important; }   /* the rail and the rest sit under the fixed player (z-index 9000) */
    body.rv-land #review-view .review-player { position: fixed !important; inset: 0 !important; z-index: 9000; width: auto !important; height: auto !important; max-height: none !important; margin: 0 !important; border-radius: 0 !important; background: #000;
      padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
    body.rv-land #review-view .review-player video { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain; }
    /* ⟦item 1008⟧ a phone: the details follow the comments and the page's own Approve bar is pinned — the foot sits at their end, never over the words */
    @media (max-width: 679px) { #review-view #rv-tab-pd .rvpd-foot { position:static; } }   /* outranks the later sticky rule */
    /* ⟦item 1015⟧ VIEW ONLY (a client session whose level is View only, or blank): watch, download, comment — no Approve / Request
       changes / Approve details, no share link. body.client-view-only is set once at sign-in (clientViewOnlyApply); the worker refuses
       each of these regardless (403), this only stops the button showing. */
    body.client-view-only .decision-btns, body.client-view-only .rvpd-approve, body.client-view-only .rvpd-changes,
    body.client-view-only #rv-share-btn, body.client-view-only #tr-share-btn, body.client-view-only #del-share-btn,
    body.client-view-only #md-ab-share-slot { display:none !important; }
    /* ⟦item 1011⟧ THE REPORTS' PRINT SHEET (Print / Download PDF): Letter portrait, light, the report alone (#rp-sheet; class names rpp-*) */
    #rp-sheet { display: none; }
    /* ⟦item 1028⟧ (mock RPT-PRINT-1) THE DESIGNED SHEET: navy ink, gold for "used", a dark rule under the header; cards, rows and boxes never
       split across a page; the footer is the @page margin boxes (rppPageCss). Print only; the screen never shows #rp-sheet. */
    @media print {
      html:has(body.rp-print), body.rp-print { background: #fff !important; }
      body.rp-print { display: block !important; height: auto !important; overflow: visible !important; }
      body.rp-print > *:not(#rp-sheet) { display: none !important; }
      body.rp-print #rp-sheet { display: block; color: #1f2430; background: #fff; font: 9.5pt/1.35 Helvetica, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      body.rp-print #rp-sheet .rpp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
      body.rp-print #rp-sheet .rpp-brand { display: flex; align-items: center; gap: 12px; }
      body.rp-print #rp-sheet .rpp-logo { width: 44px; height: 44px; object-fit: contain; }
      body.rp-print #rp-sheet .rpp-ini { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; background: #1b2a4a; color: #fff; font-weight: 700; font-size: 14pt; }
      body.rp-print #rp-sheet .rpp-ini[hidden], body.rp-print #rp-sheet .rpp-logo[hidden] { display: none; }   /* ⟦item 1028⟧ a logo that fails to load gives way to the initials */
      body.rp-print #rp-sheet .rpp-who { font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5d6070; }
      body.rp-print #rp-sheet .rpp-t1 { margin: 1px 0 0; font-size: 20pt; line-height: 1.1; color: #1b2a4a; font-weight: 800; }
      body.rp-print #rp-sheet .rpp-right { text-align: right; font-size: 8.5pt; color: #555; line-height: 1.45; }
      body.rp-print #rp-sheet .rpp-right b { color: #1b2a4a; }
      body.rp-print #rp-sheet .rpp-rule { height: 3px; background: #1b2a4a; margin: 10px 0 12px; }
      body.rp-print #rp-sheet .rpp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-c { border: 1px solid #c9ced8; border-top: 4px solid #1b2a4a; border-radius: 4px; padding: 7px 9px; break-inside: avoid; min-width: 0; }
      body.rp-print #rp-sheet .rpp-c--gold { border-top-color: #c8911f; } body.rp-print #rp-sheet .rpp-c--gold .rpp-c-v { color: #a8740f; }
      body.rp-print #rp-sheet .rpp-c--over { border-top-color: #c0392b; } body.rp-print #rp-sheet .rpp-c--over .rpp-c-v { color: #c0392b; }
      body.rp-print #rp-sheet .rpp-c--pipe { border: 1px dashed #c8911f; border-top: 4px dashed #c8911f; background: #fdf6e7; }   /* ⟦item 1047⟧ In the pipeline */
      body.rp-print #rp-sheet .rpp-c--under { border-top-color: #2e8b57; } body.rp-print #rp-sheet .rpp-c--under .rpp-c-v { color: #2e8b57; }
      body.rp-print #rp-sheet .rpp-c-l { font-size: 6.8pt; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      body.rp-print #rp-sheet .rpp-c-v { font-size: 17pt; font-weight: 700; color: #1b2a4a; margin: 1px 0; white-space: nowrap; }
      body.rp-print #rp-sheet .rpp-c-n { font-size: 7.5pt; color: #666; }
      body.rp-print #rp-sheet .rpp-c--quiet .rpp-c-v { color: #666; }   /* ⟦item 1064b⟧ a client's "ahead of plan" on the print: the small line's grey */
      body.rp-print #rp-sheet .rpp-h { font-size: 10.5pt; color: #1b2a4a; margin: 12px 0 4px; break-after: avoid; }
      body.rp-print #rp-sheet .rpp-h small { font-weight: 400; color: #777; font-size: 8pt; }
      body.rp-print #rp-sheet .rpp-t { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
      body.rp-print #rp-sheet .rpp-t th { text-align: left; color: #1b2a4a; font-size: 8pt; font-weight: 700; border-bottom: 1.5px solid #1b2a4a; padding: 4px 6px; }
      body.rp-print #rp-sheet .rpp-t td { border-bottom: 1px solid #e3e6ec; padding: 4px 6px; }
      body.rp-print #rp-sheet .rpp-t tr { break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-t .rpp-num { text-align: right; white-space: nowrap; }
      body.rp-print #rp-sheet .rpp-tot td { font-weight: 700; border-top: 1.5px solid #1b2a4a; border-bottom: 0; }
      body.rp-print #rp-sheet .rpp-empty { color: #888; font-style: italic; margin: 2px 0 6px; }
      body.rp-print #rp-sheet .rpp-py { border: 1.5px solid #1b2a4a; border-radius: 6px; padding: 10px; margin-top: 14px; break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-py-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 8pt; color: #555; }
      body.rp-print #rp-sheet .rpp-py-top b { color: #1b2a4a; letter-spacing: .08em; }
      body.rp-print #rp-sheet .rpp-bar { position: relative; height: 9px; background: #eceef2; border-radius: 5px; margin: 6px 0 4px; }
      body.rp-print #rp-sheet .rpp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #c8911f; border-radius: 5px; }
      body.rp-print #rp-sheet .rpp-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #000; }
      body.rp-print #rp-sheet .rpp-note { font-size: 7.8pt; color: #666; margin: 4px 0 0; }
      body.rp-print #rp-sheet .rpp-banner { border: 1px solid #c9ced8; border-left: 4px solid #2e8b57; border-radius: 4px; padding: 7px 10px; margin-bottom: 10px; }
      body.rp-print #rp-sheet .rpp-banner b { color: #2e8b57; }
      body.rp-print #rp-sheet .rpp-banner b.rpp-bsplit { color: #1f2430; }   /* ⟦item 1077⟧ a client's "ahead of plan" banner on the print: the rest of the line in the sheet's ink */
      body.rp-print #rp-sheet .rpp-banner .rpp-bq { color: #666; }   /* ⟦item 1072⟧ a client's "ahead of plan" banner on the print: the small line's grey; ⟦item 1077⟧ those words only */
      body.rp-print #rp-sheet .rpp-chart { display: block; break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-grid { stroke: #e3e6ec; } body.rp-print #rp-sheet .rpp-ax { fill: #666; font-size: 9px; }
      body.rp-print #rp-sheet .rpp-b-used { fill: #c8911f; } body.rp-print #rp-sheet .rpp-b-sch { fill: #efd9a3; } body.rp-print #rp-sheet .rpp-bv { fill: #1f2430; font-size: 8.5px; }
      body.rp-print #rp-sheet .rpp-plan { fill: none; stroke: #1b2a4a; stroke-width: 1.5; stroke-dasharray: 4 3; }
      body.rp-print #rp-sheet .rpp-leg { display: flex; gap: 14px; font-size: 7.8pt; color: #555; margin: 2px 0 6px; }
      body.rp-print #rp-sheet .rpp-lg::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; background: #c8911f; }
      body.rp-print #rp-sheet .rpp-lg--sch::before { background: #efd9a3; } body.rp-print #rp-sheet .rpp-lg--plan::before { height: 0; border-top: 1.5px dashed #1b2a4a; vertical-align: 3px; background: none; }
      body.rp-print #rp-sheet .rpp-mh { display: flex; justify-content: space-between; margin-top: 6px; font-size: 7.8pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a8740f; border-bottom: 1px solid #e3e6ec; padding-bottom: 2px; break-after: avoid; }
      body.rp-print #rp-sheet .rpp-up { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #f0f1f4; break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-up small { color: #777; }
      body.rp-print #rp-sheet .rpp-upcols { columns: 2; column-gap: 18px; font-size: 8.2pt; }
      body.rp-print #rp-sheet .rpp-upm { break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-up { padding: 2px 0; }
      body.rp-print #rp-sheet .rpp-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; break-inside: avoid; }
      body.rp-print #rp-sheet .rpp-rules > div { border: 1px dashed #c9ced8; border-radius: 4px; padding: 5px 8px; }
      body.rp-print #rp-sheet .rpp-rules span { display: block; font-size: 6.8pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #777; }
    }
    .rv-speed-btn:hover, .rv-fs-btn:hover { color: var(--rd-text-2); border-color: var(--rd-control-bd); }
    .rv-volume-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 10px; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; }
    .rv-vol-btn { background: none; border: none; color: var(--rd-text-3); cursor: pointer; display: flex; align-items: center; padding: 0; }
    .rv-vol-btn:hover { color: rgba(255,255,255,0.7); }
    /* ⚠️ NEUTRAL, NOT GOLD — and that is item 66 rather than taste: gold marks a decision, and
       a volume slider is not one. §6's fill is #9a9aa6; the old gold was the odd one out. */
    /* ⚠️ §6 VOLUME SLIDER — a full native takeover (item 389). It was a bare
       <input type="range"> styled only with accent-color, which paints the thumb and the
       filled track the SAME colour BY CONSTRUCTION — 1.00:1, worst at 100%, which is the
       always-on default because volume never persists across loads. House pattern is
       .puz-select's: both appearance spellings, explicit box, --rd-* tokens.
       ⚠️ THE RING IS NOT DECORATION AND IS A DEVIATION §6 DOES NOT DRAW. Measured, §6's own
       thumb #e8e8ee on its own fill #9a9aa6 is 2.28:1 and on the audio green 1.57:1 — both
       under the 3:1 non-text floor, and no fill colour fixes it (one dark enough for the thumb
       breaks fill-vs-track). The 2px ring in the pill's own colour bounds the thumb with two
       edges instead: thumb/ring 15.19:1, ring/fill 6.66:1 (9.70:1 on audio).
       ⚠️ --vol-fill / --vol-pct carry NO --rd- prefix on purpose: they are per-element
       channels, and item 374's rule is that no --rd-* token is declared outside :root. The
       --mk-pin / --ch-* pattern (items 378/379).
       ⚠️ WebKit has no filled-track pseudo-element, so ONE gradient serves both engines,
       driven by --vol-pct from updateVolumeUI — the single point every interaction reaches. */
    .rv-vol-slider { --vol-fill: var(--rd-vol-fill); appearance: none; -webkit-appearance: none; width: 66px; height: 14px; background: transparent; margin: 0; cursor: pointer; }
    .rv-vol-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--vol-fill) 0 var(--vol-pct, 100%), var(--rd-vol-track) var(--vol-pct, 100%) 100%); }
    .rv-vol-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: none; border-radius: 50%; background: var(--rd-name); box-shadow: 0 0 0 2px var(--rd-inset); }
    .rv-vol-slider::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--vol-fill) 0 var(--vol-pct, 100%), var(--rd-vol-track) var(--vol-pct, 100%) 100%); }
    .rv-vol-slider::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: var(--rd-name); box-shadow: 0 0 0 2px var(--rd-inset); }
    .review-transport.audio .rv-vol-slider { --vol-fill: var(--rd-green-fg); }
    .review-transport.audio .rv-vol-btn { color: var(--rd-green-fg); }
    .rv-menu-wrap { position: relative; flex-shrink: 0; }
    .rv-menu-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: none; color: var(--text-muted); cursor: pointer; border-radius: 4px; flex-shrink: 0; transition: background .15s, color .15s; }
    .rv-menu-btn:hover { background: var(--surface2); color: var(--text); }
    .rv-menu { position: absolute; bottom: calc(100% + 8px); right: 0; background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; padding: 0.4rem; min-width: 190px; display: none; flex-direction: column; gap: 0.2rem; box-shadow: 0 10px 28px rgba(0,0,0,0.45); z-index: 30; }
    .rv-menu.open { display: flex; }
    .rv-menu-item { background: none; border: none; color: var(--text); text-align: left; padding: 0.45rem 0.55rem; border-radius:4px; cursor: pointer; font-size: 0.8rem; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 0.55rem; }
    .rv-menu-item:hover { background: var(--surface2); }
    .rv-menu-label { font-size: 0.65rem; color: var(--text-muted); padding: 0.35rem 0.55rem 0; text-transform: uppercase; letter-spacing: 0.08em; }
    /* Keyboard-shortcut hint pinned to the right edge of a menu item */
    .rv-menu-key { margin-left: auto; font-size: 0.66rem; color: var(--text-muted); font-family: var(--mono); background: var(--surface2); border: 0.5px solid var(--border); border-radius: 3px; padding: 0.06rem 0.32rem; line-height: 1.2; letter-spacing: 0.02em; }
    /* Grouped section (e.g. View/zoom) with a divider above it */
    .rv-menu-sep { border-top: 0.5px solid var(--border); margin-top: 0.25rem; padding-top: 0.2rem; display: flex; flex-direction: column; gap: 0.2rem; }

    /* Fullscreen */
    .review-player:fullscreen { background: #000; }
    .review-player:fullscreen .review-stage { min-height: 0; }

    /* Panel */
    /* Floating full-height sidebar. .review-body is already a flex ROW whose left column is the
       player (toolbar + stage stacked) and whose right column is this panel running the whole
       height below the breadcrumb — that split predates this change. What made the panel read as
       though it shared the toolbar's row was purely visual: .rv-tabs was pinned to #rv-action-bar's
       height and a divider ran down the join. Detaching it is therefore a margin, not a re-parent.
       Inset 8px on top, bottom and right — but NOT left, which is deliberate. The player column
       is flush to the sidebar, so on that side the stage's own 8px margin is the entire gap;
       on this side the stage's 8px and a left margin here would stack into 16px, making the
       stage's two sides asymmetric (measured 8 left / 16 right). The cards in the player column
       already supply the 8px on this boundary. Rounded on every corner — it is a fully
       independent card, not one docked to the right edge. (It was previously flush right and
       rounded on the left only; that treatment is superseded.)
       The shadow moved with it. It used to throw leftward (-20px 0 / -6px 0) because the left edge
       was the only one exposed; with a gap on every side that reads as lit from one direction
       only, so it is now an ambient drop — down-weighted, cast on all sides — plus the same inset
       top highlight the other cards carry.
       The border-left divider is GONE: the gap now does that work. It was carried here so it
       would disappear with the panel under #review-view.comments-hidden; nothing else read it
       (no JS, no other rule), so removing it has no other effect. */
    /* §8 (item 374): flush chrome panel — 376px, --rd-chrome, hairline left border.
       The floating-card margin/radius/shadow went with the redesign; the mobile
       media queries below still override width/margin at their breakpoints. */
    .review-panel { width: 376px; flex-shrink: 0; min-width: 0; background: var(--rd-chrome); margin: 0; border-left: 1px solid var(--rd-hairline); border-radius: 0; display: flex; flex-direction: column; overflow: hidden; }

    /* Decision bar */
    .decision-bar { padding: 0.85rem; border-bottom: 0.5px solid var(--rv-border); background: var(--rv-elevated); flex-shrink: 0; }
    .decision-inset { background: var(--rv-surface); border: 0.5px solid var(--rv-border); border-radius:4px; padding: 0.9rem; }
    .decision-q { font-size: 0.88rem; font-weight: 500; color: var(--text); }
    .decision-hint { font-size: 0.75rem; color: var(--text-muted); margin: 0.15rem 0 0.8rem; }
    .decision-btns { display: flex; gap: 0.6rem; }
    /* §3 icons (item 376): the buttons carry inline SVGs now, so they lay out as
       flex rows — glyph beside label, centred. Scoped to the pair, not the base
       classes: .btn-approve-rv is also the metadata bar's and .tr-done-btn's
       geometry donor (items 242/362/368), and those carry no icon. */
    .decision-btns .btn-changes-rv, .decision-btns .btn-approve-rv { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
    /* THE DECISION PAIR — THE ONLY DIFFERENCE IS THE FILL. Geometry, type and radius are
       declared ONCE on both selectors together, because declaring them twice is how the pair
       drifted: Approve was weight 500 and Request changes 600, and four scoped overrides gave
       the two different padding and different font sizes. An outline button that ends up
       shorter, greyer or lighter-weight than the filled one stops reading as the second half
       of a choice and starts reading as a disabled control.
       ⚠️ APPROVE'S BORDER IS `1px solid transparent`, NOT `none`. With box-sizing:border-box a
       1px border on one and none on the other is a 2px height difference — exactly the drift
       this rule exists to remove. Do not "tidy" it back to none.
       ⚠️ NO ICON ON EITHER. A tick on Approve alone weights one side of a choice before the
       labels are read; the settled-state readouts below are a different control and keep theirs.
       RED IS GONE FROM THIS PAIR and must not come back: requesting changes is a choice, not
       an error, and the coral read as a warning about the act of asking. */
    .btn-approve-rv, .btn-changes-rv { flex: 1; box-sizing: border-box; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.05em; height: 44px; padding: 0 22px; border-radius:8px; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
    .btn-approve-rv { background: #FBB03B; color: #1A1A1A; }
    .btn-approve-rv:hover { background: #FFBE5C; }
    .btn-changes-rv { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
    .btn-changes-rv:hover { background: rgba(255,255,255,.08); border-color: #fff; }
    .decision-result { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-size: 0.82rem; color: var(--text-muted); }
    .decision-result strong { color: var(--text); font-weight: 600; }
    /* Colour dot + label by decision; the whole line ellipsises as one unit when the row is tight,
       so nothing (long name and all) can push the Change link or the toolbar tools off-row. */
    /* [REMOVED — item 375] .dec-dot/.dec-label/.dec-meta and their state
       colours: the decided label left chrome for the §3 chip (R-03 — one
       statement). The dec-approved/dec-changes CLASS WRITES survive in
       applyDecisionUI as state markers. Deleted with their markup, not left
       orphaned (item 159). */
    /* ⚠️ NO font-size AND NO color — item 558. .decision-result already sets 0.82rem /
       --text-muted, so this inherits the unit's own scale rather than introducing a second one.
       All this class carries is the shrink behaviour: the unit's comment above records that the
       line must ellipsise AS ONE so a long approver name can never push Change decision or the
       toolbar off-row, and .btn-reopen is flex-shrink:0 precisely so this is the part that gives. */
    /* ⚠️ 11.5px IS NOT A NEW SCALE — it is .rd-detail-dec-meta's, the attribution metadata size
       this feature already uses in the Details Status row, and it matches .btn-reopen's 0.72rem
       beside it. Smaller than the unit's own 0.82rem on purpose (item 558a): this is two stacked
       lines in a row that also carries the divider, Change decision and the toolbar, so it buys
       its width back rather than competing for it.
       ⚠️ TWO LINES, AND EACH ELLIPSISES ON ITS OWN. The unit's own note requires that a long
       approver name can never push Change decision off-row (.btn-reopen is flex-shrink:0 so this
       is the part that gives); a column that wrapped freely would grow the bar instead, so the
       nowrap+ellipsis moved down to the line rather than being dropped. */
    .rd-dec-approval { min-width: 0; display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.25; }
    .rd-dec-approval:empty { display: none; }
    .rd-dec-approval-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* ⚠️ THE APPROVED CHIP'S OWN GREEN (--rd-green-fg), not a second one — the chip beside the
       title and this line describe the same fact and must not disagree about its colour.
       ⚠️ AND IT IS DRIVEN BY THE RECORD, NOT BY .dec-approved. That class is set only by
       applyDecisionUI (when a decision is MADE); the restore path that runs on page load never
       sets it, so keying on it would render green after deciding and muted on every reload. */
    .rd-dec-approval.is-approved { color: var(--rd-green-fg); }
    /* The REVISION chip's own token (.rd-status-chip.is-changes), for the same reason the green
       is the approved chip's: the chip beside the title and this line describe one decision, and
       a second coral would let them drift. Item 559. */
    .rd-dec-approval.is-changes  { color: var(--rd-red-fg); }
    .rd-dec-div { width: 1px; height: 20px; background: var(--rd-unit-div); flex-shrink: 0; }
    .btn-reopen { flex-shrink: 0; background: none; border: none; color: var(--text-muted); font-size: 0.72rem; font-family: 'Inter', sans-serif; cursor: pointer; text-decoration: underline; padding: 0; }
    .btn-reopen:hover { color: var(--text); }
    .decision-nudge { font-size: 0.75rem; color: #e89a00; background: rgba(232,154,0,0.08); border: 1px solid rgba(232,154,0,0.2); border-radius:4px; padding: 0.55rem 0.75rem; margin-bottom: 0.75rem; line-height: 1.5; }
    /* Creative Brief: the decision bar is relocated into the top toolbar next to Export PDF
       (rvRenderBrief). Strip the sidebar bar/inset chrome and size Approve / Request changes to
       match #rv-brief-export exactly — 13px, padding 8px 16px, radius 6px — colors unchanged. */
    #rv-brief-dec-slot { display: flex; align-items: center; }
    #rv-brief-dec-slot #rv-dec-bar { padding: 0; border: none; background: none; flex-shrink: 1; }
    #rv-brief-dec-slot .decision-inset { padding: 0; border: none; background: none; border-radius: 0; }
    #rv-brief-dec-slot .decision-btns { gap: 8px; }
    /* Geometry only, and only what differs from the base pair rule — size, type and radius now
       come from there, so this scope cannot make the two buttons disagree with each other. */
    #rv-brief-dec-slot .btn-approve-rv,
    #rv-brief-dec-slot .btn-changes-rv { flex: 0 0 auto; }
    #rv-brief-dec-slot .decision-result { gap: 12px; }
    /* Content-column review ACTION BAR — utility actions (Generate transcript / Share, or the
       brief's Export PDF / Share) on the left, decision (Request changes / Approve) on the
       right. Sits atop the content column at the SAME 42px height as the sidebar's Comments/
       Details tabs, so the two form one split row divided by the sidebar's border-left. */
    /* 80px / 0 28px is design's header scale (items 363/368 — the transcript prototype's
       own padding 18px around a 44px primary, expressed through the fixed-height mechanism
       so the bar cannot vary state-to-state). The older "58px, not 52px" note here described
       a height two rulings ago and is gone with it (item 148).
       ⚠️ THE SURFACE IS SPLIT AND THE GEOMETRY IS NOT (item 377), because the two bars now
       answer to design documents that DISAGREE about whether this row carries a fill:
         · REVIEW (#rv-action-bar) — reference §3 lists padding and gap for the asset header
           row and NO background, radius, border or shadow. That silence is deliberate: every
           OTHER element in §3 (chip, Share, eye, decision wrapper) carries an explicit bg/bd,
           and §2's top bar explicitly carries `bg --rv-chrome`. The row is FLUSH chrome.
         · TRANSCRIPT (#tr-action-bar) — design's own token table calls --surface "Cards,
           header, controls" (transcript-review/README.md:177), so that header IS a surface.
           Its fill is additionally HELD by item 346 pending design's bar-as-paper vs
           bar-as-chrome question; removing it answers that question with a third option
           nobody offered. It keeps its treatment below, unchanged.
       Geometry stays in ONE rule (items 362/368 — both documents agree on the header scale,
       and splitting it is how the two bars drift). The 8px margin STAYS on both: with no fill
       it is invisible on the review bar, and it is what aligns the bar with the stage and
       transport below it. */
    #rv-action-bar, #tr-action-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 80px; padding: 0 28px; margin: 8px 8px 0 8px; flex-shrink: 0; }
    /* The review bar is flush — declared rather than merely absent, so the intent is legible.
       ⚠️ AND `transparent`, NEVER A CANVAS TOKEN: this bar sits on var(--rv-canvas), which is
       #000000 today and becomes #08080a after §1's canvas conversion. Painting the redesign's
       --rd-canvas here would be right for exactly one of those states. */
    #rv-action-bar { background: transparent; }
    /* The transcript bar keeps design's surface — see the split above. Item 346 holds the
       TOKEN; this is that hold, expressed where the review bar can no longer drag it along. */
    #tr-action-bar { background: var(--rv-surface); border-radius: 10px;
      box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
    /* (The .comments-hidden override that used to add margin-right:8px here is gone — the base
       rule now carries it unconditionally, so the bar keeps its gap whether the panel is there
       or not, and its right edge lines up with the stage and transport below it.) */
    /* 12px BETWEEN MEMBERS, one step up the file's existing scale (74 uses) rather than a new
       number. The container inset is untouched at 14px — that padding is shared by all three
       bars and widening it would move the group edge, not the air inside it. */
    #rv-action-left, #tr-action-left { display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; }
    /* Right group of the transcript action bar — holds Download, pinned far-right (space-between). */
    #tr-action-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    /* Guests DO get the content-column action bar — it carries Export PDF (briefs) and the
       Approve / Request changes decision bar (escalation-guarded). Team-only controls inside it
       (Generate transcript, Share) are independently gated off for guests, so nothing leaks. */
    /* Asset navigator pill "‹ N of M ›" — compact segmented control at the start of the action bar. */
    /* ⚠️ #rv-asset-nav LIVES IN THE BREADCRUMB ROW and is toned to match it; #tr-asset-nav is
       still in the transcript action bar and keeps the heavier treatment. They share this rule
       for geometry only — the weights below diverge deliberately. */
    #rv-asset-nav, #tr-asset-nav { display: none; align-items: center; height: 24px; border: 0.5px solid rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
    /* BREADCRUMB WEIGHT, NOT ACTION-BAR WEIGHT. It sits beside the crumbs and must read as
       secondary to them: the same 0.5px var(--border) hairline and 4px radius the crumbs use,
       and --text-muted rather than the brighter 0.6 white the action bar wanted. Pushed to the
       far end by margin-left:auto — the crumbs keep the left, this takes the right, and nothing
       between them competes.
       flex-shrink:0 because it is fixed-width by nature: when the row crowds, the CRUMB names
       must give way (they already ellipsise at max-width:160px), never the controls. */
    .topbar #rv-asset-nav { height: 22px; border-color: var(--border); margin-left: auto; flex-shrink: 0; }
    .topbar #rv-asset-nav .rv-asset-nav-btn { color: var(--text-muted); height: 20px; width: 18px; }
    .topbar #rv-asset-nav .rv-asset-nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
    .topbar #rv-asset-nav .rv-asset-nav-pos { color: var(--text-muted); font-weight: 500; font-size: 10px; padding: 0 6px; }
    /* .rv-nav-center is GONE with both navigators. Nothing adds the class any more, and dead
       CSS keeps a treatment alive and waiting for the next author to re-mount something into it. */
    .rv-asset-nav-btn { background: none; border: none; color: rgba(255,255,255,0.6); width: 20px; height: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; line-height: 1; padding: 0; transition: background .15s, color .15s; font-family: 'Inter', sans-serif; }
    .rv-asset-nav-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
    /* ⚠️ ITEM 690 — THE ENDS DISABLE, THEY DO NOT WRAP (Jeffrey's ruling). A client on the last
       asset who presses › used to land silently back on the first, which reads as "nothing
       happened" or as a loop with no end. The arrow stays IN PLACE (so the pill never changes
       width or jumps) and is dimmed and inert; `disabled` is what makes it inert — a disabled
       <button> fires no click — and these rules only say so visually. Declared for BOTH
       navigators and at the topbar's own specificity, or `.topbar #rv-asset-nav …:hover` would
       still light a dead arrow. */
    .rv-asset-nav-btn:disabled,
    .topbar #rv-asset-nav .rv-asset-nav-btn:disabled,
    #rv-transcript-view[data-theme="light"] .rv-asset-nav-btn:disabled { opacity: 0.3; cursor: default; background: none; }
    .rv-asset-nav-btn:disabled:hover,
    .topbar #rv-asset-nav .rv-asset-nav-btn:disabled:hover { background: none; color: inherit; }
    .rv-asset-nav-pos { color: rgba(255,255,255,0.6); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; padding: 0 7px; white-space: nowrap; font-variant-numeric: tabular-nums; border-left: 0.5px solid rgba(255,255,255,0.14); border-right: 0.5px solid rgba(255,255,255,0.14); line-height: 24px; }
    /* Version switcher in the breadcrumb — "V# · R# ▾" pill beside the active asset name. */
    /* §2 version stepper (item 375). The old .bc-ver-switch/.bc-ver-btn
       trigger rules are DELETED with their markup (ruling 5, item 159); the
       .bc-ver-menu rules below SURVIVE — the menu still opens from the label,
       keeping direct pick and Compare. position:relative is the menu's anchor. */
    .rd-ver-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 8px; flex-shrink: 0; padding: 3px; background: var(--rd-control); border: 1px solid var(--rd-control-bd); border-radius: 4px; }
    .rd-ver-arrow { width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 3px; color: var(--rd-text-3); font-size: 14px; line-height: 1; cursor: pointer; }
    .rd-ver-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.06); color: var(--rd-text); }
    .rd-ver-arrow:disabled { color: #3f3f47; cursor: not-allowed; }
    .rd-ver-label { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; border-radius: 3px; padding: 2px 7px; font-family: var(--rd-mono); font-weight: 600; font-size: 11.5px; color: var(--rd-text-2); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .rd-ver-label:hover { background: rgba(255,255,255,0.06); }
    /* Item 617 — the review-page Version history door: the switcher label's recipe, its own box. */
    .bc-ver-history { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 4px 9px; background: var(--rd-control); border: none; border-radius: 4px; font-family: var(--rd-mono); font-weight: 600; font-size: 11.5px; color: var(--rd-text-2); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .bc-ver-history:hover { background: rgba(255,255,255,0.06); color: var(--rd-text); }
    .bc-ver-history svg { opacity: 0.7; }
    .rd-ver-label svg { opacity: 0.7; }
    /* ══ FIXED, NOT ABSOLUTE — AND THE REASON IS AN ANCESTOR, NOT THIS RULE (item 584) ═════════
       ⚠️ THIS MENU WAS ~99.6% CLIPPED FOR A MONTH AND NOTHING ABOUT IT LOOKED WRONG. An absolutely
       positioned box is clipped by the nearest ancestor with `overflow` — here
       `.topbar-breadcrumb { overflow:hidden }`, which is LOAD-BEARING for rvFitBreadcrumb's
       collapse measurement and must not be touched. Item 49a057a (Aug 4) moved the version
       switcher into the breadcrumb row; the menu's own rules never changed, so nothing in this
       block records the day it stopped being visible.
       Measured from these declared numbers: the wrap is 32px tall (24px arrows + 3px padding +
       1px border, twice), sits in a .bc-crumb whose own 5px padding puts its top at 5.5px, so the
       menu's top edge lands at 42.5px — against a breadcrumb row that is 43px tall. 0.5px of a
       ~124px menu was inside the clip. "Compare versions" is the LAST row and was never on screen.
       ⚠️ `position: fixed` TAKES IT OUT OF EVERY ANCESTOR'S OVERFLOW, which is the whole fix, but
       it only holds while no ancestor establishes a containing block for fixed descendants — a
       `transform`, `filter`, `perspective`, `will-change` or `contain` on .topbar or .portal-main
       would trap it right back. Neither declares one (the same reasoning #ca-scroll-fade already
       relies on), and the guard asserts it rather than trusting this comment.
       top/left are written by rvToggleVersionSwitch from the button's own rect, so they are NOT
       declared here: a stale `top: calc(100% + 5px)` would resolve against the viewport under
       `fixed` and park the menu near the top of the screen. z-index 200 clears the review chrome
       the way the other fixed overlays do; 60 was chosen for a box inside the breadcrumb. */
    .bc-ver-menu { position: fixed; background: var(--surface2); border: 0.5px solid var(--border); border-radius: 5px; padding: 4px; z-index: 200; min-width: 190px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); display: none; }
    .bc-ver-menu.open { display: block; }
    .bc-ver-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text); white-space: nowrap; }
    .bc-ver-item:hover { background: rgba(255,255,255,0.06); }
    .bc-ver-item.active { color: var(--brand); }
    .bc-ver-check { width: 14px; height: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
    .bc-ver-item-label { flex: 1; }
    .bc-ver-item-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,0.08); border-radius: 3px; padding: 1px 5px; }
    .bc-ver-sep { height: 0.5px; background: var(--border); margin: 4px 2px; }
    .bc-ver-compare { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text); white-space: nowrap; }
    .bc-ver-compare:hover { background: rgba(255,255,255,0.06); }
    .bc-ver-compare svg { color: var(--text-muted); flex-shrink: 0; }
    /* Action-bar crowding fallback: on narrow content columns collapse the Transcript label
       to its icon and tighten the decision buttons so everything stays on one row.
       Share is deliberately NOT in here — it is pinned far-left as icon + label at every
       width. The PDF utility controls are not here either: they are icon-only always
       (see the #rv-action-left ordering block below), so they have no label to drop. */
    @media (max-width: 1180px) {
      #rv-tr-gen-btn span { display: none; }
      #rv-tr-gen-btn { padding: 0 7px; }
      /* Compress horizontally only — the 7px vertical padding is held so button height stays
         identical at every width and only the width gives. */
      #rv-action-dec-slot .btn-approve-rv, #rv-action-dec-slot .btn-changes-rv { padding: 0 14px; }
    }
    @media (max-width: 980px) {
      #rv-action-dec-slot .btn-approve-rv, #rv-action-dec-slot .btn-changes-rv { padding: 0 10px; }
    }
    /* Crowding relief for #rv-action-left — applied by rvFitActionBar, which MEASURES rather
       than guessing from a breakpoint. A media query cannot do this job: the comments panel is
       a percentage width, so the bar gets LESS room at 1024px than it does at 900px, and the
       overflow band is not a simple "below N px". !important because #rv-asset-nav's display
       is also set inline by the app (it is hidden when a deliverable has only one asset), and
       this must be able to hide it without disturbing that. */
    #rv-action-left .rv-fit-hide, #tr-action-left .rv-fit-hide { display: none !important; }
    /* ── #rv-action-left running order ────────────────────────────────────────────────
       Every control in this bar is relocated or mounted imperatively — Share and Transcript
       are appendChild'd in by loadVersion, the brief buttons are prepended by rvRenderBrief,
       and the PDF trio is mounted by pdfMountToolbar / pdfMountZoom / annMountHideToggle.
       DOM order is therefore whatever the last mount happened to do.

       That is the ROOT CAUSE of the zoom/Hide-markup position swap: both pdfMountZoom and
       annMountHideToggle re-mount by removing their node and re-inserting it with
       insertAdjacentHTML('beforeend', …). Opening a PDF mounts zoom then the hide toggle
       (zoom left, toggle right), but pdfSetZoom re-runs pdfMountZoom on every zoom step,
       which re-appends zoom AFTER the toggle — they trade places. Toggling Hide-markup
       re-appends the toggle and swaps them straight back.

       `order` fixes it at the source: this is a flex container, so visual position is a
       property of the bar, not of who mounted last. Any remount lands in the same slot at
       any zoom level. Explicit values (not `order: N` on a class) so the running order is
       readable in one place.

       Grouped by function: Share stands alone behind its divider, then the per-asset utility
       buttons, then the PDF mark tools (Markup + Hide-markup, which both act on marks), then
       the zoom cluster fenced off behind a divider of its own. The zoom out / reset / in
       buttons are not listed here because they are not children of this bar — they live inside
       #pdf-zoom, already in that sequence, and it carries the cluster's border box. */
    /* Item 376 regroup: these now order the RIGHT cluster (#rv-action-dec-slot).
       Mock §3 order — eye, Share, decision pair — so the eye precedes Share and
       the decision bar is pinned LAST. Utilities the mock does not know
       (Markup, zoom, gen, brief) sit ahead of the eye, mark tools adjacent. */
    #rv-brief-export   { order: 1; }
    #rv-brief-share    { order: 2; }
    #rv-tr-gen-btn     { order: 3; }
    #pdf-toolbar       { order: 4; }   /* Markup (pencil) ─┐ mark tools */
    #ann-hide-all-btn  { order: 5; }   /* Hide-markup (eye)┘             */
    #pdf-zoom          { order: 6; }   /* zoom out · reset · in          */
    #rv-share-btn      { order: 7; }
    #rv-action-dec-slot > .decision-bar { order: 9; }  /* the pair, always last */
    /* Vertical rule separating pinned Share from the rest of the bar. Drawn as ::after on
       the button itself rather than as its own element, so it appears and disappears with
       Share automatically — Share's visibility is set from several places (addReviewShareButton,
       the brief branch, the guest path) and none of them have to know about the divider.
       Absolutely positioned, so it sits in the flex gap and adds nothing to layout. */
    #rv-share-btn { position: relative; margin-right: 10px; }
    #rv-share-btn::after { content: ''; position: absolute; left: calc(100% + 9px); top: 50%; transform: translateY(-50%); width: 1px; height: 20px; background: var(--border-secondary); }
    /* Set by rvFitActionBar when nothing visible follows Share — see the neighbour test there. */
    #rv-share-btn.rv-no-divider::after { content: none; }
    /* The same suppression for the transcript editor's Share, which is a different element with
       its own ::after. Mirrored rather than dropped — see rvSyncShareDivider. */
    .tr-share-btn.rv-no-divider::after { content: none; }
    /* CROWDING STEP 1: Share drops to icon-only before the label starts losing characters.
       The label is the only thing on this bar carrying identity; "Share" is a word anyone can
       infer from the glyph. Applied by rvFitActionBar, which decides it by measurement. */
    #rv-share-btn.rv-share-compact span { display: none; }
    #rv-share-btn.rv-share-compact { padding: 0 9px; }
    /* ⚠️ min-width:0 IS LOAD-BEARING. A flex item defaults to min-width:auto, which means it
       refuses to shrink below its content — so without this the label pushes the decision
       buttons out of the bar instead of truncating, and no amount of text-overflow fixes it.
       flex:0 1 auto so it gives way; the decision slot never has to. */
    /* margin-left:0 — the label LEADS the left group now (label, divider, Share), so the
       9px that used to clear Share would inset the whole group from the bar's padding edge. */
    #rv-ctx-label { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; margin-left: 0; }
    /* ⚠️ THE TYPE-COLOUR ACCENT BAR IS GONE (item 358, portal-wide ruling) — design's shell
       header carries none, so the title sits flush at the group's left edge, in the bar's own
       place: the bar was the label's first flex child and gap:12px exists only BETWEEN children,
       so nothing needed re-spacing. Its 3px-vs-1px contrast argument retired with it; the
       divider below now stands on its own reason. */
    /* THE DIVIDER TRAVELS WITH THE LABEL, not with Share. Three action bars, and the
       transcript's Share is a different button entirely (.tr-share-btn) — a divider hung off
       each Share is three rules that can drift; one that belongs to the label is a single
       treatment arriving wherever the label is moved.
       It separates the label from Share — content from control, a real boundary.
       ALIGN-SELF:STRETCH, never a pixel height: it tracks a label block that is one line or two
       depending on whether the asset has a project, and a hardcoded height is right for exactly
       one of those.
       LAST CHILD OF THE LABEL, so it is re-parented by the label's own move — no per-bar copy
       to drift. (Its former 1px-vs-3px contrast partner, the type-colour bar, was removed by
       item 358's ruling.) */
    /* ⚠️ var(--border-secondary), NOT a literal. It was #3A3A37 with a hand-written light
       counterpart chosen to match its presence — two values that had to agree by hand, and the
       agreement was a coincidence someone would eventually have to maintain. The token already
       carries both (rgba(255,255,255,0.18) dark / rgba(0,0,0,0.18) light) and flips itself.
       The light value is byte-identical to the literal it replaces. The DARK value is not:
       #3A3A37 was 1.49:1 against #1c1c1f, the token resolves to #454547 at 1.78:1 — a marginally
       more present divider. Accepted deliberately; a hairline that maintains itself is worth more
       than 0.29 of contrast ratio nobody can see. */
    /* [REMOVED — item 376] .rv-ctx-div: the post-title vertical divider left
       with the regroup — deleted with its emission, not orphaned (item 159). */
    /* Share's own ::after would then draw a SECOND line right beside this one. rvFitActionBar
       suppresses it when the label is Share's next visible neighbour. */
    #tr-action-left #rv-ctx-label { order: 0; }
    /* §3 title row (item 376): name + status chip on one line, meta below. */
    .rv-ctx-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
    /* THE DOT IS GONE — the bar is the sole carrier of the asset-type colour. Two nodes painted
       from one lookup said the same thing twice, and at 8px round on the LIGHT transcript theme
       it read as a stray artefact rather than a type. Removing the bar instead was never the
       option: the bar doubles as the label's leading rule, which the dot never did. */
    /* Stacked, and BOTH lines truncate. Note the two share one width by construction — they are
       rows of the same column — so "the project line gives way first" is a statement about which
       line it is acceptable to lose, not a separate mechanism. The name carries identity; the
       project is context, and is the smaller, quieter line for that reason. */
    .rv-ctx-txt { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.3; }
    /* ⚠️ TOKENS, NOT LITERALS — this is why the light theme could not reach these two lines.
       They were written as #EDEDEA and #7A7A73: near-copies of --text (#F0EDE8) and
       --text-muted (#7A7670), close enough to look right in dark and invisible to the light
       sweep, which flips TOKENS and scoped literals and had no way to know about a third thing
       that was neither. Measured on the light transcript editor: the name rendered at
       1.09:1 against #F6F7F8 — near-invisible — where the same line on the dark bars is 14.49:1.
       The project line was never the problem (3.93 dark / 4.03 light, already matched); only the
       name was, and only because #EDEDEA is a dark-mode value sitting unmodified on paper.
       Reading the tokens fixes light AND makes a future theme unable to miss them. Dark moves by
       #EDEDEA→#F0EDE8 and #7A7A73→#7A7670 — sub-perceptual, and the correct values anyway. */
    .rv-ctx-name { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.25; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rv-ctx-proj { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--text-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Copy confirmation — informational slate-blue, never green. Same treatment as the
       transcript's, so the two surfaces confirm identically. */
    #rv-share-btn.rv-share-copied, #rv-share-btn.rv-share-copied:hover {
      background:#0d1720; border-color:#29465a; color:#4A7A99; }
    /* Second rule, fencing the zoom cluster off from the mark tools (Markup + Hide-markup).
       Deliberately ::before on #pdf-zoom rather than ::after on the eye, because only this side
       is gated on BOTH neighbours being present: #pdf-zoom is mounted only when rvPdf is set
       (pdfMountZoom returns early otherwise), and annMountHideToggle mounts the eye whenever
       annSurfaceHasMarkup() — which is true whenever rvPdf is set. So zoom present ⇒ eye
       present. The converse does NOT hold: on image and video reviews the eye is mounted and
       there is no zoom cluster at all, so an ::after on the eye would draw a divider with
       nothing to the right of it. Absolutely positioned, so it adds nothing to layout. */
    #pdf-zoom::before { content: ''; position: absolute; right: calc(100% + 9px); top: 50%; transform: translateY(-50%); width: 1px; height: 20px; background: var(--border-secondary); }
    /* Hide-comments toggle collapses the whole sidebar; content (and the action bar) go full width. */
    #review-view.comments-hidden .review-panel { display: none; }
    /* §2 (item 375): Hide/Show comments has TWO states — .rd-open (panel
       visible, the default) vs closed. The class is written by
       applyReviewCommentsState; a styled class nothing writes renders one
       state forever. Label role: 11px Archivo 700 upper. */
    #rv-hide-comments-btn { display: none; align-items: center; gap: 5px; background: var(--rd-control); border: 1px solid var(--rd-control-bd); color: var(--rd-tool-fg); padding: 6px 11px; border-radius: 4px; cursor: pointer; font-family: 'Archivo', 'Inter', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0; }
    #rv-hide-comments-btn.rd-open { background: var(--rd-seg-active); border-color: var(--rd-toggle-open-bd); color: var(--rd-text); }
    /* §2 help: 30px square control. Inline styles moved here (item 375); the
       sidebar-guard sync's inline display writes are untouched (ruling 6). */
    #rv-help-btn { background: var(--rd-control); border: 1px solid var(--rd-control-bd); color: var(--rd-text-2); width: 30px; height: 30px; border-radius: 4px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px; flex-shrink: 0; }
    /* §3 Share (item 375): control family, label role. Display is driven
       inline by addReviewShareButton / the sync — CSS carries everything else. */
    #rv-share-btn { align-items: center; gap: 5px; background: var(--rd-control); border: 1px solid var(--rd-card-hover-bd); color: var(--rd-text-2); padding: 7px 12px; border-radius: 4px; cursor: pointer; font-family: 'Archivo', 'Inter', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0; }
    #rv-hide-comments-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
    /* Video/image/doc: the decision bar is relocated into the top toolbar (right side),
       beside Generate transcript + Share. Compact to the 36px topbar; colors unchanged. The
       "add a note" nudge becomes an absolute popover so it never distorts the header row. */
    #rv-action-dec-slot { position: relative; display: flex; align-items: center; gap: 10px; flex-shrink: 100; min-width: 0; } /* yields before the tool group (overflow:hidden), so the decided status ellipsises rather than clipping zoom */
    #rv-action-dec-slot #rv-dec-bar { padding: 0; border: none; background: none; }
    #rv-action-dec-slot .decision-inset { padding: 0; border: none; background: none; border-radius: 0; }
    /* Two equal columns sized to the wider button, instead of a min-width big enough to beat the
       longest label. A magic min-width has to exceed "Request changes" at every padding tier or
       the buttons silently go unequal (measured: 130.2px vs 120px at min-width:120), and it
       breaks again if the label text ever changes. `1fr` columns in a shrink-to-fit grid resolve
       to the widest item's max-content, so equality holds at any padding and any label. */
    /* §3 (item 375): the grouped wrapper — both states. SLOT-SCOPED on purpose:
       the BASE .btn-approve-rv stays gold and untouched (the metadata bar and
       .tr-done-btn read it; two guards pin that geometry pair), so §3's green
       lives only where the reference draws it. */
    #rv-action-dec-slot .decision-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; min-width: max-content; background: var(--rd-unit); border: 1px solid var(--rd-unit-bd); padding: 5px 6px; border-radius: 4px; }
    #rv-action-dec-slot .decision-result { background: var(--rd-unit); border: 1px solid var(--rd-unit-bd); padding: 5px 6px 5px 11px; border-radius: 4px; }
    #rv-action-dec-slot .btn-approve-rv { height: auto; padding: 7px 15px; border-radius: 4px; font-family: 'Archivo', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--rd-green); color: var(--rd-green-ink); }
    #rv-action-dec-slot .btn-changes-rv { height: auto; padding: 7px 13px; border-radius: 4px; font-family: 'Archivo', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(var(--rd-red-rgb),0.1); border-color: rgba(var(--rd-red-rgb),0.34); color: var(--rd-red-fg); }
    #rv-action-dec-slot .btn-reopen { background: var(--rd-btn2); border: 1px solid var(--rd-btn2-bd); color: var(--rd-btn2-fg); padding: 7px 12px; border-radius: 4px; font-size: 11px; font-family: 'Inter', sans-serif; text-decoration: none; }
    /* Priority treatment: bolder + more horizontal padding than the utility buttons. */
    /* No explicit height — the 7px vertical padding governs the box, which is the whole point
       of the smaller footprint. min-width stays (reduced 140 → 120) so the two primary actions
       remain equal width; without it they would size to their own labels and "Request changes"
       would sit visibly wider than "Approve". Font size, weight, colours, icon and radius are
       unchanged. */
    /* ⚠️ ONE PADDING FOR BOTH. This was two rules — changes 7px 14px, approve 7px 16px — a 2px
       asymmetry that made the outline read as the smaller control. Size and weight overrides
       (11px/600) are gone too: the pair is 13px/500 on every surface it appears on. */
    #rv-action-dec-slot .btn-approve-rv,
    #rv-action-dec-slot .btn-changes-rv { flex: 0 0 auto; padding: 7px 16px; }
    /* !important beats the inline display:block that JS sets on #rv-dec-prompt (else the
       decision buttons stack). The "Ready for your decision" hint that used to sit here was
       removed — the buttons say what they do, and the label only cost horizontal room. */
    #rv-action-dec-slot #rv-dec-prompt { display: flex; align-items: center; gap: 10px; }
    #rv-action-dec-slot .decision-result { gap: 10px; }
    /* The currently-active decision, shown while re-deciding after Change. */
    .btn-approve-rv.dec-current, .btn-changes-rv.dec-current { box-shadow: 0 0 0 2px var(--rv-canvas), 0 0 0 3px currentColor; }
    .btn-approve-rv.dec-current { position: relative; }
    #rv-action-dec-slot #rv-nudge { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; margin: 0; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
    /* ⚠️ ITEM 717 — applied by rvFitDecisions ONLY when the decision unit is measured clipped; a bar
       that fits carries neither class. Yield: the slot stops shrinking, the title gives way. Wrap:
       the slot's children join the bar's own flex line (display:contents — their `order` values
       above still apply), the decision unit takes a full-width row of its own, and the pair splits
       it into two EQUAL columns. Labels stay whole and on one line; the side padding and letter
       spacing tighten so "Request changes" fits a 390px phone. */
    #rv-action-bar.rv-dec-yield #rv-action-dec-slot { flex-shrink: 0; }
    #rv-action-bar.rv-dec-wrap { flex-wrap: wrap; height: auto; min-height: 80px; row-gap: 10px; padding: 12px 16px; }
    #rv-action-bar.rv-dec-wrap #rv-action-left { flex: 1 1 0; }
    #rv-action-bar.rv-dec-wrap #rv-action-dec-slot { display: contents; }
    #rv-action-bar.rv-dec-wrap #rv-dec-bar { flex: 1 1 100%; min-width: 0; position: relative; }
    #rv-action-bar.rv-dec-wrap #rv-dec-prompt { width: 100%; }
    #rv-action-bar.rv-dec-wrap .decision-btns { grid-auto-flow: row; grid-template-columns: 1fr 1fr; min-width: 0; width: 100%; box-sizing: border-box; }
    #rv-action-bar.rv-dec-wrap .btn-approve-rv,
    #rv-action-bar.rv-dec-wrap .btn-changes-rv { min-width: 0; padding: 7px 6px; letter-spacing: 0.04em; white-space: nowrap; justify-content: center; }

    /* Panel tabs */
    /* Plain text tabs — no chip, no track, no rule. The track went with the filled chip: a
       rounded bar holding two labels with nothing selected inside it reads as a segmented control
       whose selection is missing. State is carried by colour and weight alone. */
    /* §8 tabs (item 374): content-width tabs with a 2px gold underline on the
       active one; label role = Archivo 700 caps. Inactive fg is --rd-nontext per
       the reference's own §8 line (its NON-TEXT caveat notwithstanding — tabs are
       not in the contrast census, and the reference assigns this value to them
       explicitly). The clips/cuts display gating in the TAB SCOPING block below
       is untouched — this rule is style only, per the inline-display writers
       (switchRvTab / openApprovedReview) that own visibility. */
    .rv-tabs { display: flex; gap: 0; margin: 0; padding: 0 14px; border-bottom: 1px solid var(--rd-panel-hair); flex-shrink: 0; }
    .rv-tab { flex: 0 1 auto; height: auto; padding: 12px 6px 10px; margin-right: 14px; display: inline-flex; align-items: center; gap: 4px; font-family: 'Archivo', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rd-nontext); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; transition: color 0.18s; }
    /* The count sits INLINE, beside the label — one row, and a tab with nothing to report is
       simply its label, so a blank can never read as misaligned. (A previous version put these
       in a second aligned row with a different unit per tab; both are gone.)

       OVERFLOW IS STRUCTURAL, not measured. The count never shrinks and the LABEL is what
       ellipsizes, so at any width the number survives and the word degrades — the opposite of
       what .rv-tab's own ellipsis would do, since the count is last in the box. Being a CSS
       property of the two elements it also cannot go stale, which a JS re-measure on drag and
       resize could. Plain totals make it unlikely to fire at all: two digits, not "1:24
       removed". */
    .rv-tab > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    /* Muted and not brand-coloured even on the active tab: it is a figure, not a heading, and
       colouring it would put it in competition with the label it belongs to. */
    .rv-tab-count { flex-shrink: 0; font-family: var(--rd-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--rd-count-off); font-variant-numeric: tabular-nums; }
    .rv-tab.active { color: var(--rd-text); font-weight: 700; border-bottom-color: var(--rd-gold); }
    .rv-tab.active .rv-tab-count { color: var(--rd-gold); }
    .rv-tab:hover:not(.active) { color: var(--rd-text-2); }
    .rv-panel-content { flex: 1; overflow-y: auto; overflow-x: hidden; }
    /* ===== Transcript view (Part 1) ===== */
    #rv-transcript-view { flex:1; display:none; flex-direction:column; min-height:0; background:var(--rv-canvas); }
    #review-view.tr-active .review-body { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
    #review-view.tr-active #rv-transcript-view { display:flex; }
    .tr-body { flex:1; display:flex; min-height:0; }
    /* Left stack = action bar over (rail + center); sits beside the comments column so the bar
       is bounded to rail+transcript and the comments header aligns in the same top row. */
    .tr-left-stack { flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; }
    .tr-lc { flex:1; display:flex; min-height:0; }
    /* Transcript action bar gaps from the rail/center panels below it (review's bar has no
       bottom gap because the stage sits directly under it; here panels do). */
    #tr-action-bar { margin-bottom: 8px; }
    /* Hide comments collapses the whole comments column (+ its divider); the left stack fills. */
    #review-view.comments-hidden #tr-comments-col { display:none; }
    .tr-left { flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; background:var(--rv-surface); border-radius:10px; margin:0 8px 8px 0; overflow:hidden; box-shadow:0 10px 28px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05); transition:background 0.2s ease; }
    .tr-divider { flex:0 0 5px; align-self:stretch; position:relative; cursor:col-resize; }
    .tr-divider::before { content:''; position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:0.5px; background:var(--border); transition:width 0.1s, background 0.1s; }
    .tr-divider:hover::before, .tr-divider.dragging::before { width:3px; background:var(--border-strong); }
    .tr-scroll { flex:1; overflow-y:auto; padding:18px 48px 28px; -webkit-user-select:text; user-select:text; }
    /* Centre-column header (item 342, design's prototype). The header row owns the padding and
       the bottom rule the toolbar used to carry; #tr-toolbar becomes its right column — same id,
       because the workspace cycle hides/restores it by id and the title must stay up there. */
    /* item 577: ONE ROW — search left (flexes, capped at 68ch), tools right. The .tr-col-name /
       .tr-col-sub rules went with the heading; do not reinstate a title here. */
    .tr-col-head { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 28px 12px 48px; border-bottom:0.5px solid var(--border); }
    .tr-toolbar { position:relative; flex-shrink:0; display:flex; align-items:center; gap:10px; }
    /* The Aa control (item 575): the theme segment's box; the option glyphs are the serif at three
       sizes so the control shows what it does. Width is the theme option's 32px. */
    .tr-text-aa { display:inline-flex; align-items:center; padding:0 9px; font:600 11px 'Inter',sans-serif; letter-spacing:.04em; color:var(--text-muted); border-right:1px solid var(--border-secondary); }
    .tr-text-opt { font-family:var(--serif); }
    /* The glyph sizes: the control shows what it does. .tr-text-xs went with the extra-small
       button (item 583a); .tr-text-l is back with Large. */
    .tr-text-s { font-size:12px; } .tr-text-m { font-size:15px; } .tr-text-l { font-size:19px; }
    .tr-theme-opt.active { color:var(--text); background:rgba(255,255,255,0.10); } /* right column of .tr-col-head; the header owns padding + rule */
    /* "3 cuts, 5 notes" — the rail's own population, rendered by trRenderMarkCounts from the
       ARRAY the rail just rendered (one count, item 101). Empty string when nothing is marked. */
    .tr-mark-counts { font-size:12.5px; color:#7FB0CE; font-variant-numeric:tabular-nums; min-height:1em; }
    /* Media-column header row: section label + the Follow along pill. */
    .tr-rail-medhead { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px 2px; }
    .tr-rail-medlabel { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.09em; text-transform:uppercase; color:var(--text-muted); }
    .tr-follow-pill { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 9px; background:none; border:1px solid var(--border-secondary); border-radius:11px; font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:var(--text-muted); cursor:pointer; }
    .tr-follow-pill:hover { color:var(--text); background:rgba(255,255,255,0.06); }
    .tr-follow-dot { width:6px; height:6px; border-radius:50%; background:currentColor; opacity:0.45; }
    .tr-follow-pill.on { color:#7FB0CE; border-color:rgba(127,176,206,0.5); }
    .tr-follow-pill.on .tr-follow-dot { opacity:1; }
    .tr-toolbar .tr-head-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); }
    .tr-toolbar .tr-head-hint { font-family:'Inter',sans-serif; font-weight:400; font-size:9px; color:var(--text-muted); margin-left:auto; }
    .tr-tool-btn { margin-left:auto; background:none; border:0.5px solid rgba(255,255,255,0.2); color:rgba(255,255,255,0.55); border-radius:4px; width:26px; height:24px; cursor:pointer; display:flex; align-items:center; justify-content:center; align-self:center; }
    /* Inside the transcript action bar the utilities are icon-only, 26x26, matching the review
       bar's Markup/zoom/Hide icons exactly (border-secondary, transparent, radius 6). */
    /* Transcript bar is less crowded than the review bar, so its utilities carry one-word
       labels (icon + label). The review bar stays icon-only. */
    /* APPEARANCE lives on the class — no parent-container qualifier — so a button keeps its
       look wherever it sits (Download now lives in #tr-action-right). Only container-layout
       (flex order within a group) stays scoped to #tr-action-left, further down. */
    .tr-tool-btn { margin-left:0; height:26px; width:auto; padding:0 9px; display:inline-flex; align-items:center; gap:5px; border:1px solid var(--border-secondary); border-radius:6px; color:var(--text-muted); flex-shrink:0; }
    .tr-tool-btn > span { font-family:'Inter',sans-serif; font-size:11px; font-weight:600; letter-spacing:0.01em; white-space:nowrap; }
    .tr-tool-btn svg { flex-shrink:0; }
    .tr-tool-btn:hover { color:var(--text); background:rgba(255,255,255,0.06); }
    /* Share — same treatment as the other toolbar buttons (border/padding/color aligned to
       .tr-tool-btn; the 0.5px→1px border reads intentionally heavier). Keeps its right margin +
       divider. min-width reserves the wider "Copied ✓" state so the row never shifts. */
    .tr-share-btn { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:94px; height:34px; padding:0 13px; border:1px solid var(--border-secondary); border-radius:7px; color:var(--text-muted); font-family:'Inter',sans-serif; font-weight:500; font-size:13px; position:relative; margin-right:10px; }
    .tr-share-btn:hover { color:var(--text); background:rgba(255,255,255,0.06); }
    .tr-share-btn::after { content:''; position:absolute; left:calc(100% + 9px); top:50%; transform:translateY(-50%); width:1px; height:20px; background:var(--border-secondary); }
    /* Confirmed "Copied ✓" state — slate-blue #4A7A99, NOT gold/orange (reserved for decisions). */
    .tr-share-btn.tr-share-copied, .tr-share-btn.tr-share-copied:hover { color:#4A7A99; border-color:#4A7A99; background:transparent; }
    .tr-dl-wrap { position:relative; display:flex; align-items:center; flex-shrink:0; }
    .tr-dl-wrap .tr-tool-btn { margin-left:0; }
    /* Theme control — design's SEGMENTED sun/moon pair (item 341; item 60 reversed). Sits in the
       tr-tool-btn family's silhouette (26px, 6px radius, hairline border) so the bar reads as one
       chrome. The ACTIVE segment shows the current mode — state, not target — and both segments
       are always visible, which is what makes it a segmented control rather than a flip button.
       ⚠️ BOTH THEMES STYLED HERE, because unlike the old team-only button this control renders on
       the client's LIGHT editor too; a dark-literal active fill would vanish there (item 82). */
    .tr-theme-seg { display:inline-flex; height:34px; border:1px solid var(--border-secondary);
      border-radius:8px; overflow:hidden; flex-shrink:0; align-self:center; }
    .tr-theme-opt { display:inline-flex; align-items:center; justify-content:center; width:32px;
      height:100%; background:none; border:none; cursor:pointer; color:var(--text-muted); padding:0; }
    .tr-theme-opt + .tr-theme-opt { border-left:1px solid var(--border-secondary); }
    .tr-theme-opt:hover { color:var(--text); background:rgba(255,255,255,0.06); }
    .tr-theme-opt.active { color:var(--text); background:rgba(255,255,255,0.10); cursor:default; }
    #rv-transcript-view[data-theme="light"] .tr-theme-seg { border-color:var(--trv-ctl-line); }
    #rv-transcript-view[data-theme="light"] .tr-theme-opt { color:var(--trv-ink-3); }
    #rv-transcript-view[data-theme="light"] .tr-theme-opt + .tr-theme-opt { border-left-color:var(--trv-ctl-line); }
    #rv-transcript-view[data-theme="light"] .tr-theme-opt:hover { color:var(--trv-ink-2); background:var(--trv-hover); }
    #rv-transcript-view[data-theme="light"] .tr-text-aa { color:var(--trv-ink-label); border-right-color:var(--trv-ctl-line); }
    #rv-transcript-view[data-theme="light"] .tr-theme-opt.active { color:var(--trv-ink-2); background:var(--trv-slate-chip); }
    /* Container LAYOUT — flex ordering WITHIN #tr-action-left (describes the group, not the button). */
    #tr-action-left .tr-share-btn { order:0; }
    /* Download shares Share's order group so the two sit together as utilities; their relative
       position is then DOM order, which is what puts Download immediately after Share. Explicit
       rather than relying on the initial value, because order decides rendering on this bar and
       an unstated 0 reads as "nobody thought about it". */
    #tr-action-left .tr-dl-wrap, #tr-action-left .tr-cdl-btn { order:0; }
    #tr-action-left .tr-tc-btn    { order:1; }
    #tr-action-left .tr-playall-btn { order:2; }
    #tr-action-left .tr-showcuts-btn { order:3; }
    /* The search field is no longer chrome — it moves into the content area below the bar. */
    #tr-toolbar { border-bottom:none; }
    /* "Done with transcript" — client/guest done-signal, slate-blue (hint accent #4A7A99), NEVER gold/green (not a decision). */
    /* ⚠️ THE GEOMETRY BELOW IS THIS BUTTON'S OWN — 13px/500, padding 7px 16px, radius 4px.
       It USED to be described as "read from #rv-action-dec-slot .btn-approve-rv", with a guard
       asserting the two matched. That derivation is DELETED. It broke the moment the decision
       pair was restyled: Approve's numbers are now the SHARED pair geometry, so "match Approve"
       had stopped meaning "same silhouette as the primary action" and started meaning "inherit
       whatever the decision pair does next" — for a control whose entire design note says it
       must not converge with Approve.
       The values happen to agree with the pair today and that is not a coupling: change one and
       the other does not follow. SAME SILHOUETTE says "primary action"; SLATE-BLUE says "a
       different kind of action", and the colour is what carries the distinction.
       NO FIXED HEIGHT: the height is padding-driven, so a hardcoded 26px would match only at one
       font size and drift the moment it changed.
       COLOUR IS NOT APPROVE'S. Green means approval everywhere in this portal and this is
       explicitly not a decision — it approves nothing and moves no asset stage. Same shape says
       "primary action"; slate-blue says "a different kind of action". The two must not converge.
       THREE STATES, ONE FOOTPRINT. All three are this one element with the same box, so nothing
       reflows as it moves between them — which is the whole reason the two-line text block it
       replaced had to go. */
    /* ⚠️ THE VALUES MATCH .btn-approve-rv AND ARE DECLARED RATHER THAN DERIVED — item 66's
       ruling, not an oversight. This control used to read its geometry FROM that selector, and
       when red left the decision pair the coupling changed a button nobody was editing; that
       entry ends "do not re-establish either derivation". So: #FBB03B on #1A1A1A, weight 500,
       letter-spacing .05em, padding 8px 16px, radius 4px, hover #FFBE5C — the same values, said
       here, which survives the next change to the decision pair.
       ⚠️ GOLD IS CORRECT UNDER ITEM 66 AS RESTATED: gold marks the decision, INCLUDING the asking
       of it. This is the transcript's equivalent of Approve — the one thing a client presses to
       end their part. Slate blue is now only the informational line beside it, which is never a
       control. */
    .tr-done-btn { flex-shrink:0; box-sizing:border-box; height:44px; padding:0 22px; border:1px solid transparent;
      border-radius:8px; background:#FBB03B; color:#1A1A1A; font-family:'Inter',sans-serif; font-size:15px;
      font-weight:600; letter-spacing:0.05em; cursor:pointer; white-space:nowrap; transition:background .15s; }
    .tr-done-btn:hover:not(:disabled) { background:#FFBE5C; }
    /* ⚠️ THE PORTAL'S OWN DISABLED TREATMENT (item 180): dimmed, cursor:default, never
       `not-allowed`. This is unavailable RIGHT NOW rather than forbidden — it becomes pressable
       on the first mark — and the label ("Nothing to send yet") says which. The control is
       DISABLED rather than hidden: one that vanishes is harder to find than one visibly waiting. */
    .tr-done-btn:disabled { opacity:0.5; cursor:default; background:#FBB03B; color:#1A1A1A; }
    /* ⚠️ THE INFORMATIONAL LINE — the only slate blue left on this control, and never pressable.
       Green uses #2dc48a rather than --approved (#32b464), which item 137 measured at 3.90:1 and
       fails AA; #2dc48a is the accessible green item 110 established for exactly this. Both are
       theme-scoped below, because a colour that is right in one mode and wrong in the other is
       item 82's structurally-invisible defect. */
    /* ⚠️ THE STATUS BLOCK, design §1. Headline + detail, right aligned, max-width 330px. It
       replaces a single .tr-send-note line AND the centre-column banner (#tr-task-prompt), which
       design removed deliberately: one message about marks, in one place.
       ⚠️ LIGHT VALUES ONLY — and since item 341 (item 60 reversed) that is a KNOWN GAP, not a
       scope: a client can now toggle dark and this block keeps its light inks there. Accepted
       with the rest of the undesigned client-reachable dark, pending the dark palette pass;
       the dark column stays banked in the --trv-* block and nothing here reads it. */
    .tr-send-status { flex-shrink:0; max-width:330px; text-align:right; font-family:'Inter',sans-serif; }
    .tr-ss-head { display:flex; align-items:center; justify-content:flex-end; gap:5px;
                  font-size:13px; font-weight:600; line-height:1.3; color:#2F6183; }
    .tr-send-status--sent .tr-ss-head { color:#1D9E75; }
    .tr-ss-check { flex-shrink:0; }
    .tr-ss-detail { margin-top:2px; font-size:12.5px; line-height:1.45; font-weight:500; color:#4A7A99; }
    /* STATE 2 — sent, nothing new. Quiet: slate text, low-opacity slate border, faint tint. It is
       NOT PRESSABLE, and that is load-bearing rather than cosmetic: a second press with nothing
       new sends a duplicate submission and pushes the team again for no new information.
       pointer-events:none as well as [disabled] so a stray programmatic click cannot reach it —
       the handler refuses independently, and these are three separate locks on one door. */
    /* [REMOVED with the state it painted] .tr-done-is-sent. State 3 now hides the button
       ENTIRELY and the line beside it carries "✓ Notes sent {date}", so a rule styling a sent
       BUTTON has nothing left to style. The three locks it described are not lost: trSendDone
       still refuses on `answered` (the handler-side lock, which is the one that survives a
       programmatic call), and a hidden button cannot be clicked at all. The classList.remove in
       trUpdateDoneBtn stays as a defensive reset, not a live treatment. */
    /* STATE 3 — sent, but marked since. Solid again, because there IS something to do. */
    /* [REMOVED] .tr-done-btn.tr-done-is-resend and its :hover. Both restated the BASE rule exactly
       (#4A7A99 / #fff / transparent border, hover #5A8DAD), so the class painted nothing and
       state 3 was pixel-identical to state 1 while looking, in the stylesheet, as though it had a
       treatment. A rule that changes nothing is worse than no rule: the next reader assumes it
       does something and preserves it.
       ⚠️ THE CLASS ITSELF IS STILL APPLIED, deliberately and temporarily. It is currently the only
       thing anywhere that distinguishes "never sent" from "sent, round reopened" — the labels and
       colours are the same — and checks/transcript-done-ungated.mjs uses it as exactly that
       discriminator. The returning-round signal is moving to the task prompt above the
       transcript; the class goes once the prompt carries it and that guard has been re-pointed,
       NOT before, so there is never a window where nothing tells the two states apart. */
    .tr-done-btn:disabled { cursor:default; }
    /* RIGHT-ALIGNED because it is now the bar's rightmost element. It used to trail the
       Download button, where left-aligned text sat flush against what preceded it; with nothing
       to its right, ragged-left reads as unaligned rather than as a block. align-items:flex-end
       so BOTH lines end on the same edge — text-align alone would leave the flex column's own
       box centred and the effect would depend on which line happened to be longer. */
    .tr-done-hint { z-index:400; max-width:250px; display:flex; align-items:flex-start; gap:8px; padding:9px 11px; background:rgba(74,122,153,0.14); border:1px solid rgba(74,122,153,0.55); border-radius:8px; font-family:'Inter',sans-serif; font-size:11.5px; line-height:1.35; color:#b6dcee; }
    .tr-done-hint-x { background:none; border:none; color:#8fbdd6; font-size:14px; line-height:1; cursor:pointer; padding:0 0 0 2px; flex:0 0 auto; }
    /* item 577: the first-note hint, directly above the first speaker block. It collapses with a
       short fade — max-height and margin animate with the opacity — so the transcript does not
       jump when it goes. */
    /* Colour is the HINT recipe — the same pair .tpp-hint and .tr-play-hint wear: the dark
       editor's hint ink here, slate (#4A7A99, --trv-slate) in the light theme. It is a tip, and
       that is the tip colour; never the muted grey, never gold. */
    .tr-note-hint { display:flex; align-items:center; gap:8px; max-height:40px; margin:0 0 16px; padding:0 0 0 18px; overflow:hidden; opacity:1; font-family:'Inter',sans-serif; font-size:12.5px; line-height:1.5; color:var(--text-secondary); transition:opacity .22s ease, max-height .22s ease, margin .22s ease; }
    .tr-note-hint.is-gone { opacity:0; max-height:0; margin:0; }
    /* The × is the same slate, small, and HOVER-ONLY (keyboard focus reveals it too). */
    .tr-note-hint-x { background:none; border:none; color:inherit; opacity:0; font-size:13px; line-height:1; cursor:pointer; padding:0 2px; flex:0 0 auto; transition:opacity .15s ease; }
    .tr-note-hint:hover .tr-note-hint-x, .tr-note-hint-x:focus-visible { opacity:1; }
    #rv-transcript-view[data-theme="light"] .tr-note-hint { color:var(--trv-slate); }
    /* (reduced motion: the transition is switched off inside the portal's FIRST prefers-reduced-motion
       block below, which playing-rule.mjs reads as THE block — a second one ahead of it would be read instead.) */
    .tr-dl-menu { position:absolute; top:calc(100% + 6px); right:0; min-width:172px; background:var(--surface,#1e1e1e); border:0.5px solid var(--border-strong); border-radius:6px; box-shadow:0 8px 28px rgba(0,0,0,0.4); padding:4px; z-index:120; display:none; }
    .tr-dl-menu.open { display:block; }
    .tr-dl-menu button { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; background:none; border:none; color:var(--text); font-family:'Inter',sans-serif; font-size:12px; font-weight:600; text-align:left; padding:7px 10px; border-radius:4px; cursor:pointer; }
    .tr-dl-menu button span { font-size:10px; font-weight:400; color:var(--text-muted); }
    .tr-dl-menu button:hover { background:rgba(255,255,255,0.06); }
    .tr-tool-btn:hover, .tr-tool-btn.active { color:var(--text-accent); border-color:var(--text-accent); }
    /* An OCR-suggested timecode awaiting glance-check + Save (never auto-applied) — same
       accent as .active, dashed rather than solid, so "pending review" reads distinctly
       from "confirmed and live" without introducing a new color. */
    .tr-tool-btn.suggested { color:var(--text-accent); border-style:dashed; border-color:var(--text-accent); }
    /* Search + replace */
    /* Inline search — always visible in the toolbar. */
    .tr-search-field { flex:1 1 auto; max-width:68ch; font-size:15px; min-width:0; display:flex; align-items:center; gap:8px; height:40px; padding:0 12px; background:var(--surface-1); border:0.5px solid var(--border-strong); border-radius:var(--radius); } /* right edge tracks the 68ch transcript column; same ch basis (15px) as .tr-para */
    .tr-search-field:focus-within { border-color:var(--border-accent); }
    .tr-search-ico { width:18px; height:18px; color:var(--text-secondary); flex-shrink:0; }
    .tr-search-input { flex:1; min-width:0; background:transparent; border:none; color:var(--text); font-family:'Inter',sans-serif; font-size:14px; outline:none; -webkit-appearance:none; appearance:none; }
    .tr-search-input::placeholder { color:var(--text-muted); }
    .tr-search-count { font-family:'Inter',sans-serif; font-size:11px; color:var(--text-muted); white-space:nowrap; align-self:center; }
    /* ⚠️ PINNED BY trTcPlacePop, NOT BY THIS RULE (item 516). This was `position:absolute;
       top:calc(100% - 4px); right:12px` — anchored to the RIGHT EDGE of #tr-action-bar (the
       nearest positioned ancestor; #tr-action-left, its real parent, is overflow:hidden and not
       positioned), so it opened at the far end of an 80px bar that spans the whole transcript
       column, nowhere near the leftmost button it belongs to. The same bar's download menu
       already solves this shape: fixed, under its button's rect, escaping the group's clip. No
       top/left here on purpose — a static coordinate in this rule is the defect coming back. */
    .tr-tc-pop { position:fixed; z-index:120; display:flex; flex-direction:column; gap:8px; width:200px; padding:12px; background:var(--surface); border:0.5px solid var(--border-strong); border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,0.4); }
    .tr-tc-pop-label { font-family:'Inter',sans-serif; font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); }
    .tr-tc-input { width:100%; height:34px; background:var(--surface-1); border:0.5px solid var(--border-strong); border-radius:var(--radius); color:var(--text); font-family:var(--mono); font-size:13px; text-align:center; outline:none; }
    .tr-tc-input:focus { border-color:var(--border-accent); }
    .tr-tc-fps { font-family:var(--mono); font-size:11px; color:var(--text-muted); }
    .tr-tc-mode { font-family:'Inter',sans-serif; font-size:10.5px; color:var(--text-muted); min-height:13px; line-height:1.25; }
    .tr-tc-mode:empty { display:none; }
    .tr-tc-save { background:#35352F; border:none; color:#EDEDEA; border-radius:var(--radius); padding:7px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:0.05em; cursor:pointer; }
    .tr-search-clear, .tr-search-nav { flex-shrink:0; background:none; border:none; color:var(--text-muted); cursor:pointer; display:inline-flex; align-items:center; padding:0; margin-left:4px; }
    .tr-search-clear:hover, .tr-search-nav:hover { color:var(--text); }
    .tr-replace-btn { background:var(--surface2); border:0.5px solid var(--border); color:var(--text); border-radius:4px; padding:6px 10px; font-family:'Inter',sans-serif; font-size:11px; cursor:pointer; white-space:nowrap; }
    .tr-replace-btn:hover { border-color:rgba(255,255,255,0.4); }
    .tr-search-match { background:rgba(55,138,221,0.25); border-radius:3px; }
    .tr-search-current { background:rgba(55,138,221,0.5); border-radius:3px; }
    /* Words: confidence, edited, deleted, active, edit-input */
    /* Currently-playing word: distinct purple tint + purple underline that FULLY overrides
       any annotation colour underneath (amber Highlight / green Clip / plain), so the
       playhead word is always unmistakably purple. !important beats the annotation rules
       regardless of source order / specificity; non-active words keep their own tint. */
    /* Active playback word: transient playback position, NOT an annotation — a cool
       slate-blue distinct from the gold/green/red annotation palette. Translucent tint
       (annotations underneath show through) + a slate underline bar + brightened text. */
    /* ⚠️ THE FILL IS GONE AND THE FOUR !important WENT WITH IT. Design is explicit — "Never a
     fill" — and the fill was also the reason this rule needed !important at all: it was
     fighting every mark background. The active word now carries WEIGHT (design's specimen
     shows font-weight 600 on it) and the shared rule, so nothing has to be forced. */
  /* ⚠️ position:relative IS THE CARET'S CONTAINING BLOCK, NOT DECORATION — see the caret rule.
     Scoped to the STATE class rather than to .tr-word, which is the pattern
     .tr-word-low-confidence, .tr-word-very-low and .tr-word-edited already use: it positions
     ONE element per tick instead of establishing 17,723 containing blocks at render.
     Stacking is unchanged — #tr-dim-layer is z-index:1 and this is z-index:auto, so the wash
     still covers the playing word exactly as it did while this was unpositioned. */
  .tr-word-active { font-weight:600; position:relative; }
    #tr-scroll ::selection, #tr-scroll::selection { background:rgba(255,255,255,0.14); color:inherit; }
    /* Low-confidence words: a small amber dot centered below the word (no underline). */
    .tr-word-low-confidence, .tr-word-very-low { position:relative; }
    .tr-word-low-confidence::after { content:''; position:absolute; left:calc(50% - 2px); bottom:3px; transform:translateX(-50%); width:3px; height:3px; border-radius:50%; background:rgba(251,176,59,0.7); }
    .tr-word-very-low::after { content:''; position:absolute; left:calc(50% - 2px); bottom:2px; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--gold); }
    .tr-word-edited { position:relative; }
    .tr-word-edited::before { content:'·'; position:absolute; top:-0.85em; left:50%; transform:translateX(-50%); color:#c7cdd6; font-weight:700; line-height:1; }
    .tr-word-deleted { text-decoration:line-through; opacity:0.4; }
    /* Collapsed to nothing, NOT display:none — the element stays in the flow so its trw-{gi} id,
       its dataset timings and every mark span that indexes by source order remain valid. */
    .tr-word-filler { display:inline-block; width:0; overflow:hidden; opacity:0; pointer-events:none; }
    .tr-word-input { font-family:inherit; font-size:inherit; line-height:inherit; color:#fff; background:rgba(255,255,255,0.15); border:0.5px solid #c7cdd6; border-radius:3px; padding:0 2px; outline:none; }
    /* Clips panel */
    /* (clips panel removed — clips live under the Activity "Clips" filter pill) */
    /* Floating clip-selection bar */
    #tr-sel-bar { position:fixed; z-index:99999; display:flex; align-items:center; gap:2px; background:#fff; border:0.5px solid var(--border-strong); border-radius:var(--radius); padding:4px; box-shadow:0 6px 20px rgba(0,0,0,0.35); }
    /* Copy-link confirmation. On <body> and position:fixed for the same containing-block reason
       #tr-sel-bar is, and white in BOTH themes to match it — these floating bars are one family,
       and a popover that inverted with the editor theme would be the odd one out on the review
       page, which has no theme at all. */
    /* DARK SURFACE, unlike #tr-sel-bar and the mark-clear bar. Those are white in both themes
       because they float OVER content and have to stand off it. This is a quiet acknowledgement
       that something worked — white made a confirmation the brightest thing on the page.
       Themed by context, not by the stored transcript preference: see trShowCopyPop. */
    #tr-copy-pop { position:fixed; z-index:99999; display:none; width:max-content; max-width:min(340px, calc(100vw - 24px)); background:#232322; border:0.5px solid #3A3A37; border-radius:var(--radius); padding:9px 10px; box-shadow:0 8px 24px rgba(0,0,0,0.45); font-family:'Inter',sans-serif; }
    .tcp-head { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#F0EDE8; white-space:nowrap; }
    #tr-copy-pop.tcp-ok .tcp-tick { color:#6FBF8E; flex-shrink:0; }
    #tr-copy-pop.tcp-fail .tcp-head { color:#EE8A82; }
    /* URL and Copy share one row: the URL takes the space and truncates, the button never
       shrinks. At the popover's max width that leaves ~250px of URL — and with the protocol
       stripped these alias links fit comfortably, so truncation is the exception. */
    .tcp-urlrow { display:flex; align-items:stretch; gap:6px; margin-top:7px; }
    /* The URL is a VALUE, not prose: monospace on a faint inset ground. Selectable in both
       states — someone may want to grab it by hand even when the copy worked. */
    .tcp-url { flex:1; min-width:0; padding:5px 7px; background:rgba(255,255,255,0.06); border:0.5px solid rgba(255,255,255,0.10); border-radius:5px; font-family:ui-monospace,'JetBrains Mono',monospace; font-size:11px; color:#D8D4CE; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-user-select:text; user-select:text; cursor:text; }
    .tcp-copy { flex-shrink:0; padding:0 10px; border:0.5px solid rgba(255,255,255,0.20); border-radius:5px; background:none; font-family:inherit; font-size:11px; font-weight:600; color:#C9C5BF; cursor:pointer; }
    .tcp-copy:hover { background:rgba(255,255,255,0.07); color:#F0EDE8; }
    .tcp-copy.done { color:#6FBF8E; border-color:rgba(111,191,142,0.5); }
    .tcp-copy.bad { color:#EE8A82; border-color:rgba(238,138,130,0.5); }
    /* DEMOTED, below a hairline. These are destructive and team-only; they must not compete
       with the link the person actually came for. Text, not buttons — the boxed pair read as
       two equal calls to action sitting under a confirmation. */
    .tr-sel-pill { font-size:11px; color:var(--text-muted); white-space:nowrap; padding:0 10px 0 6px; margin-right:2px; border-right:0.5px solid var(--border); }
    /* ── THE NOTE COMPOSER (design §3, item 367) ─────────────────────────────────────────
       Rendered into #tr-sel-bar by trCommentStart — "expands the same popover in place", so it
       inherits item 315's container (the bar is WHITE IN BOTH THEMES, and the --trv-* tokens
       are :root-declared — item 282 — precisely so body-mounted popovers can consume them; one
       set of rules serves both themes, no fork). .tr-sel-name is GONE with its only consumer,
       the one-line input this composer replaces (item 130: deleted, never left orphaned). */
    #tr-sel-bar.composing { display:block; padding:0; overflow:hidden; width:min(340px, calc(100vw - 16px)); }
    .tr-composer-head { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--trv-subpanel); border-bottom:1px solid var(--trv-hairline); }
    .tr-composer-tag { font-size:9.5px; font-weight:600; letter-spacing:0.8px; text-transform:uppercase; padding:2px 6px; border-radius:4px; background:var(--trv-note-chip); color:var(--trv-note-ink); flex-shrink:0; }
    .tr-composer-range { font-size:12.5px; color:var(--trv-ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
    .tr-composer-tocut { margin-left:auto; flex-shrink:0; border:none; background:transparent; color:var(--trv-cut-ink); font-family:'Inter',sans-serif; font-size:12px; font-weight:600; cursor:pointer; padding:2px 4px; border-radius:4px; }
    .tr-composer-tocut:hover { text-decoration:underline; }
    .tr-composer-body { padding:10px; }
    .tr-composer-field { display:block; width:100%; min-height:74px; box-sizing:border-box; font-family:'Inter',sans-serif; font-size:13.5px; line-height:1.6; color:var(--trv-ink); background:#fff; border:1px solid var(--trv-ctl-line); border-radius:8px; padding:8px 10px; outline:none; resize:vertical; }
    .tr-composer-field:focus { border-color:var(--trv-ctl-line-strong); box-shadow:0 0 0 3px rgba(74,122,153,0.14); } /* design's ring, exact */
    .tr-composer-hint { font-size:11.5px; color:var(--trv-ink-3); margin:6px 0 8px; }
    .tr-composer-actions { display:flex; justify-content:flex-end; gap:8px; }
    .tr-composer-cancel { border:none; background:transparent; color:var(--trv-ink-3); font-family:'Inter',sans-serif; font-size:12.5px; font-weight:500; cursor:pointer; padding:6px 10px; border-radius:6px; }
    .tr-composer-cancel:hover { background:rgba(0,0,0,0.05); }
    /* The save wears the NOTE family — the popover's own sand — never gold: saving a note is
       not a decision and not the asking of one (item 66). */
    .tr-composer-save { border:1px solid var(--trv-note-line); background:var(--trv-note-fill); color:var(--trv-note-ink); font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; cursor:pointer; padding:6px 14px; border-radius:7px; }
    .tr-composer-save:hover { background:var(--trv-note-hover); }
    /* Transcript redesign: speaker line, text states, selection bar, activity panel */
    .tr-block-active { background:transparent; }
    /* Active-turn indicator during playback — kept (functional) but thin and low-contrast in a token. */
    .tr-block-active .tr-para { border-left:1px solid rgba(255,255,255,0.14); }
    .tr-speaker-line { display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
    .tr-block-time { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; color:rgba(255,255,255,0.35); cursor:pointer; white-space:nowrap; }
    .tr-block-time:hover { color:#c7cdd6; }
    /* Softer highlight: low-intensity amber tint + amber underline (reads cleanly across
       wrapped lines, unlike a solid block fill). */
    /* ⚠️ `, var(--tr-play)` IS THE PLAYING RULE COMPOSING — see .tr-word. Remove it and a
     SPOKEN word silently loses this treatment, or this loses the rule; box-shadow does not
     compose across rules, the winner replaces. */
  .tr-st-highlight { background:rgba(251,176,59,0.15); box-shadow:inset 0 -0.14em 0 rgba(251,176,59,0.6), var(--tr-play); border-radius:2px; }
    .tr-hl-addpill { display:inline-block; font-size:11px; color:var(--text-muted); border:0.5px solid var(--border); border-radius:20px; padding:3px 10px; margin:0 6px; cursor:pointer; vertical-align:middle; transition:opacity 0.4s ease; user-select:none; }
    .tr-hl-addpill:hover { color:var(--text); border-color:var(--border-strong); }
    .tr-hl-cinput { display:flex; align-items:center; gap:6px; margin:6px 0 10px 16px; }
    .tr-hl-cinput input { flex:1; max-width:340px; background:var(--surface-1); border:0.5px solid var(--border-strong); color:var(--text); border-radius:4px; padding:5px 9px; font-family:'Inter',sans-serif; font-size:12px; outline:none; }
    .tr-hl-save, .tr-hl-cancel { background:none; border:0.5px solid var(--border-strong); color:var(--text-muted); border-radius:4px; padding:4px 10px; font-size:11px; cursor:pointer; }
    .tr-hl-save { color:var(--color-highlight); border-color:rgba(251,176,59,0.5); }
    /* ── PDF review surface (pdf.js) ─────────────────────────────────────────── */
    /* ⚠️ ITEM 750: ONE PAGE ON THE STAGE, FITTED TO ITS WIDTH, BOTH EDGES REACHABLE. `align-items:center` on this scroller
       spilled a page wider than the stage out of BOTH sides, and the left spill sat before the scroll origin where nothing
       can reach it (item 749 measured 233px of an 857px page lost at 390). The page now starts at the left and centres with
       auto margins, which collapse to 0 when it overflows — so a zoomed page scrolls to either edge. The current page's
       neighbours are rendered into .pdf-park: laid out (the text-layer fix-ups measure boxes) but inside a 0×0 clip, so they
       add nothing to the scroll area and nothing shows. */
    .pdf-scroll { position:absolute; inset:0; overflow:auto; padding:1.25rem; display:flex; flex-direction:column; align-items:flex-start; background:#3a3a3a; }
    .pdf-page { position:relative; flex:none; margin:0 auto; background:#fff; box-shadow:0 2px 14px rgba(0,0,0,0.45); }
    .pdf-park { position:absolute; left:0; top:0; width:0; height:0; overflow:hidden; visibility:hidden; pointer-events:none; }
    .pdf-pager { display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 0 2px; flex:none; }
    .pdf-pager-lbl { font-size:13px; font-weight:600; color:var(--text, #e8e8ea); font-variant-numeric:tabular-nums; min-width:92px; text-align:center; }
    .pdf-pager-btn { width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--border, #2a2a2e); background:transparent; color:var(--text, #e8e8ea); cursor:pointer; padding:0; }
    .pdf-pager-btn:disabled { opacity:.35; cursor:default; }
    .pdf-pager-btn:not(:disabled):hover { background:rgba(255,255,255,.06); }
    .pdf-fail { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:24px; text-align:center; color:var(--text, #e8e8ea); font-size:14px; }
    .pdf-fail p { margin:0; }
    .pdf-fail-retry { padding:8px 16px; border-radius:8px; border:1px solid var(--border, #2a2a2e); background:transparent; color:inherit; font:inherit; font-weight:600; cursor:pointer; }
    .pdf-page canvas { display:block; position:absolute; inset:0; }
    .pdf-overlay { pointer-events:none; z-index:3; }
    .pdf-draw-mode .pdf-overlay { pointer-events:auto; cursor:crosshair; }
    .pdf-draw-mode .pdf-textlayer { pointer-events:none; user-select:none; } /* drawing wins over selecting */
    /* pdf.js text layer: invisible glyphs positioned over the raster, purely for selection. */
    /* opacity stays at 1 and the GLYPHS are transparent instead. The layer used to be
       opacity:0.25, which faded the ::selection background along with the invisible text
       and made an in-progress selection very hard to read. */
    .pdf-textlayer { position:absolute; inset:0; overflow:hidden; opacity:1; line-height:1; z-index:2; }
    /* DESCENDANT, not child: pdf.js wraps marked-content runs in <span class="markedContent">,
       so text spans are not always direct children. With `>` those inner spans got none of
       this styling — including color:transparent, which would paint real text over the
       raster. Matches pdf.js's own `.textLayer span` rule. */
    .pdf-textlayer span { color:transparent; position:absolute; white-space:pre; cursor:text; transform-origin:0% 0%; }
    .pdf-textlayer .markedContent { top:0; height:0; width:0; } /* wrapper is a grouping node, not a box */
    /* Extends the LAST span of each visual line so its hit area reaches the right edge of the
       page (pdfMarkLineEdges applies the class). Text spans are tight boxes around their
       glyphs, so without this the whole right-hand side of every short line is bare text
       layer — and a caret landing there cannot be resolved against absolutely-positioned
       children, so Chrome falls back to a fixed offset near the END of the layer and the
       selection jumps to the bottom of the page. See pdfSnapFocusToText.
       Absolutely positioned, so it is OUT OF FLOW and does NOT enlarge the span's
       getBoundingClientRect() — the highlight quads are measured from that box and stay
       exact. .pdf-textlayer's overflow:hidden clips the width to the page. */
       --tail-top/--tail-h are set per line by pdfMarkLineEdges so consecutive tails also cover
       the INTER-LINE GAPS: with a plain height:100% the few px between one line's bottom and
       the next line's top are still bare layer, and a pointer crossing them flashes the
       runaway for a frame (measured: every residual bad frame was in such a gap). */
    .pdf-textlayer span.pdf-line-end::after { content:''; position:absolute; left:100%; top:var(--tail-top,0); height:var(--tail-h,100%); width:4000px; cursor:text; }
    .pdf-textlayer span.pdf-line-start::before { content:''; position:absolute; right:100%; top:var(--tail-top,0); height:var(--tail-h,100%); width:4000px; cursor:text; }
    .pdf-textlayer ::selection,
    .pdf-textlayer span::selection { background:rgba(56,132,255,0.42); }
    .pdf-textlayer ::-moz-selection,
    .pdf-textlayer span::-moz-selection { background:rgba(56,132,255,0.42); }
    .pdf-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:0.85rem; }
    /* Icon-only, so a fixed square rather than label padding — same 26px box as the zoom
       and hide-markup controls, which keeps the trio visually flush at any width. */
    .pdf-draw-btn { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; flex-shrink:0; font-family:inherit; color:#FBB03B; background:transparent; border:1px solid rgba(251,176,59,0.4); border-radius:6px; cursor:pointer; }
    .pdf-draw-btn.active { background:rgba(251,176,59,0.16); border-color:#FBB03B; } /* toggle reads as ON while the palette is up */
    /* Docked markup row — a normal flex child under #rv-action-bar, so the stage shifts
       down rather than being covered by a floating palette. */
    /* Shrink-wraps instead of spanning the column: space-between used to fling Cancel/Done
       to the far edge, miles from the palette they belong with. */
    /* §4 retint (item 378) onto the tokens slice 1 declared for exactly this and left
       unconsumed. ⚠️ IT STAYS DOCKED: §4 draws this floating with a backdrop blur, and the note
       above records why it is not — "so the stage shifts down rather than being covered by a
       floating palette". Position and layout are untouched; only the surface moved. */
    #rv-markup-row { display:none; align-items:center; gap:20px; width:fit-content; margin:8px auto 0 auto; min-height:44px; padding:0 14px; background:var(--rd-markup-bg); border:1px solid var(--rd-markup-bd); border-radius:10px; flex-shrink:0;
      box-shadow: 0 14px 40px rgba(0,0,0,.6); }
    #rv-markup-row .mk-left { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
    #rv-markup-row .mk-right { display:flex; align-items:center; gap:6px; flex-shrink:0; }
    /* Zoom cluster — always visible while a PDF is open. */
    /* margin-left 10px (was 2px) opens the 8px flex gap out to 18px so the divider drawn by
       #pdf-zoom::before has room to sit centred in it. position:relative anchors that rule. */
    .pdf-zoom { display:inline-flex; align-items:center; gap:2px; flex-shrink:0; position:relative; border:1px solid var(--border-secondary); border-radius:6px; padding:2px; margin-left:10px; }
    .pdf-zoom-btn { display:inline-flex; align-items:center; justify-content:center; width:26px; height:22px; background:none; border:none; color:var(--text); border-radius:4px; cursor:pointer; }
    .pdf-zoom-btn:hover:not(:disabled) { background:rgba(255,255,255,0.08); }
    .pdf-zoom-btn:disabled { opacity:0.3; cursor:default; }
    /* Icon-only reset button; the live percentage lives in its title/aria-label. */
    .pdf-zoom-lvl { display:inline-flex; align-items:center; justify-content:center; width:26px; height:22px; padding:0; background:none; border:none; color:var(--text-muted); font-family:inherit; cursor:pointer; border-radius:4px; }
    .pdf-zoom-lvl:hover { background:rgba(255,255,255,0.08); color:var(--text); }
    .pdf-zoom-lvl.active { color:#FBB03B; } /* zoom is not at 100% — reset is meaningful */
    /* Hide-all-markup toggle — sits beside Markup/Share in the action bar. */
    /* Icon-only (the eye carries the state) — square box matching .pdf-draw-btn. */
    .ann-hide-btn { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; flex-shrink:0; font-family:inherit; color:var(--text-muted); background:transparent; border:1px solid var(--border-secondary); border-radius:6px; cursor:pointer; }
    .ann-hide-btn:hover { color:var(--text); background:rgba(255,255,255,0.06); }
    .ann-hide-btn.active { color:#FBB03B; border-color:rgba(251,176,59,0.5); background:rgba(251,176,59,0.12); }
    /* Per-comment eye + the dim/hidden card states that pair a comment with its mark. */
    .cc-mark-only { color:var(--text-muted); font-style:italic; font-size:0.78rem; }
    .rv-pop-hint { flex:1; font-size:0.68rem; color:var(--text-muted); align-self:center; }
    .rv-bubble-actions { align-items:center; }
    .cc-eye { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:2px; display:inline-flex; align-items:center; border-radius:3px; }
    .cc-eye:hover { color:var(--text); background:rgba(255,255,255,0.08); }
    .cc-eye.off { color:#FBB03B; }
    .comment-card.cc-mark-hidden { opacity:0.55; }
    .comment-card.cc-dimmed { opacity:0.45; transition:opacity 0.15s ease; }
    .comment-card.hl { opacity:1; }
    /* Point-first text label input (image/video + PDF). */
    .ann-text-input { position:absolute; z-index:30; transform:translateY(-1em); min-width:120px; background:rgba(0,0,0,0.55); border:1px dashed currentColor; border-radius:3px; padding:2px 6px; font-family:'Inter',sans-serif; font-weight:600; font-size:15px; outline:none; }
    .ann-text-input::placeholder { color:rgba(255,255,255,0.4); font-weight:400; }
    /* Selected/dimmed annotation dots — the media half of the comment↔mark link. */
    /* Sticky note — a standalone square marker on the document (image, video frame or PDF
       page). DOM rather than canvas paint so it can be clicked and expanded. */
    .ann-sticky { position:absolute; z-index:13; transform:translate(-2px,-2px); width:24px; height:24px; display:flex; align-items:center; justify-content:center;
      background:#FBB03B; color:#1A1A1A; border:1px solid rgba(0,0,0,0.35); border-radius:4px; cursor:pointer; padding:0;
      box-shadow:0 2px 8px rgba(0,0,0,0.45); transition:transform 0.12s ease, box-shadow 0.12s ease; }
    .ann-sticky:hover { transform:translate(-2px,-3px) scale(1.08); }
    .ann-sticky.dimmed { opacity:0.35; }
    .ann-sticky.selected { box-shadow:0 0 0 3px rgba(251,176,59,0.55), 0 0 14px rgba(251,176,59,0.9); z-index:15; }
    .ann-sticky.resolved { opacity:0.5; filter:grayscale(0.5); }
    .ann-sticky-card { position:absolute; z-index:16; width:230px; }
    .ann-sticky-tag { display:inline-block; font-size:0.6rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:#1A1A1A; background:#FBB03B; border-radius:3px; padding:1px 5px; }
    .ann-sticky-text { font-size:0.8rem; line-height:1.5; color:var(--text); white-space:pre-wrap; word-break:break-word; }
    .rv-anno-dot.dimmed { opacity:0.35; }
    .rv-anno-dot.selected { box-shadow:0 0 0 3px rgba(var(--rd-gold-rgb),0.55), 0 0 14px rgba(var(--rd-gold-rgb),0.9); z-index:14; }
    #pdf-sel-bar { position:fixed; z-index:9996; display:none; align-items:center; gap:0.5rem; padding:0.35rem 0.5rem; background:var(--surface2); border:0.5px solid var(--border-secondary); border-radius:6px; box-shadow:0 6px 20px rgba(0,0,0,0.5); }
    #pdf-sel-bar .pdf-sel-pill { font-size:0.66rem; color:var(--text-muted); letter-spacing:0.05em; text-transform:uppercase; padding-left:0.2rem; }
    #pdf-sel-bar .pdf-sel-btns { display:flex; gap:0.3rem; }
    #pdf-sel-bar .pdf-sel-btn { font-family:inherit; font-size:0.72rem; font-weight:600; padding:0.25rem 0.6rem; border-radius:4px; cursor:pointer; border:1px solid var(--border-secondary); background:transparent; color:var(--text); }
    #pdf-sel-bar .sel-highlight { border-color:rgba(251,176,59,0.55); color:var(--gold); }
    #pdf-sel-bar .sel-cut { border-color:rgba(226,75,74,0.5); color:var(--text-danger); }
    #pdf-sel-bar .pdf-sel-btn:hover { background:rgba(255,255,255,0.07); }
    /* ⚠️ ITEM 345's RULING: ONE CUT TREATMENT IN THE READING COLUMN, BOTH AUDIENCES — a cut is
       a cut in the text, for everyone. Whether we have ACCEPTED it is workflow state, and
       workflow state belongs on a control (the rail card's Resolve), not in the typography of
       the passage. So a pending PROPOSAL joins this rule and renders exactly as a confirmed
       cut; the states stay fully distinguishable in status/confirmedBy and on every card.
       ⚠️ ITEM 173 IS NARROWED, NOT DELETED. Its rule — a proposal must not read as a decision —
       still holds; it is now expressed by an UNRESOLVED CARD CARRYING A RESOLVE BUTTON rather
       than by the mark's colour. A later reader finding gold-dashed in the history: it moved to
       the card, it was not lost by accident.
       ⚠️ CARRIED-FORWARD PENDING IS DELIBERATELY NOT JOINED — see the .tr-st-pending rule. */
    .tr-st-removed, .tr-st-pending.tr-st-proposal { text-decoration:line-through; text-decoration-color:rgba(226,75,74,0.9); text-decoration-thickness:2px; color:var(--text-secondary); opacity:0.7; background:transparent; }
    /* Carried-forward, not yet reviewed: provisional dashed underline, NOT a strikethrough —
       the mark is inert until confirmed, so it must not read as an applied cut. */
    /* ⚠️ LINE-THROUGH, NOT UNDERLINE — AND THE HUE IS DELIBERATELY UNCHANGED (item 173).
       This read as "annotated" to a client because an UNDERLINE is what says annotated; the
       line-through is what says cut. The reported symptom was "looks commented, not removed",
       and the obvious reading — gold is the comment hue, so move it off gold — was measured and
       is wrong: over the light base a client sees, pending↔removed is 22.0 apart in tint while
       pending↔highlight is 43.7. It was ALREADY nearer removed. The defect lived in the
       decoration the whole time.
       ⚠️ AND RECOLOURING WOULD HAVE FORKED ONE VOCABULARY ACROSS THREE TREATMENTS. `.tr-st-pending`,
       `.tr-pending-badge` ("Pending review") and `.cg-cut-pending` ("Pending · from client",
       client-visible) all say the same thing in the same gold; moving one leaves the in-text mark
       red while its own badge and its chip stay gold, about one mark, on one screen.
       ⚠️ THICKNESS MATCHES `.tr-st-removed` AT 2px ON PURPOSE — a thin dashed rule reads as SOLID
       at body-text size, which would collapse the only decoration difference between a proposed
       cut and a confirmed one. The weakness is carried by the tint (0.10 against removed's 0.18)
       and by the hue, not by making the line hard to see.
       `text-underline-offset` went with the underline — it does nothing to a line-through, and a
       declaration that cannot apply is worse than one that is wrong (item 148). */
    /* ⚠️ SINCE ITEM 345 THIS RULE IS THE CARRIED-FORWARD TREATMENT ONLY — a pending PROPOSAL
       carries .tr-st-proposal and the compound selector above outranks this at (0,2,0). Carried
       stays gold-dashed DELIBERATELY, out of 345's scope: a carried cut is inert in every export
       while a filled treatment would render it as decided — THE TEXT AND THE EDL DISAGREEING
       SILENTLY IN THE READING COLUMN, which is worse than the inconsistency 345 fixed. Its final
       treatment is an OPEN QUESTION for its own ruling; until then, current treatment stands. */
    .tr-st-pending { text-decoration:line-through dashed; text-decoration-color:var(--gold); text-decoration-thickness:2px; background:rgba(251,176,59,0.10); }
    .tr-carry-banner { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; padding:0.7rem 0.9rem; margin:0 0 0.5rem; border:1px solid rgba(251,176,59,0.45); background:rgba(251,176,59,0.10); border-radius:var(--radius); font-size:0.8rem; color:var(--text); }
    /* Client task prompt — sits in the same slot as the carry banner and borrows its shape, but
       states an ASK rather than flagging work to check, so it is quieter: no buttons, no accent
       fill. The Done control already at the bottom of the page is the action; a second call to
       action here would be two places to finish the same thing.
       ⚠️ THIS SURFACE DEFAULTS LIGHT FOR THE ONLY AUDIENCE THAT SEES IT — and since item 341 a
       client can reach it in dark (item 60 reversed; the dark they reach is pre-redesign and
       accepted as-is pending the dark palette pass). It renders inside #rv-transcript-view. It
       needs NO light override because the text is `var(--text)`, which the light block flips,
       rather than a literal: item 82's actual lesson. CHECKED, NOT ASSUMED — the 0.10 amber wash
       over the light #FFFFFF surface resolves to #FFF7EB, and light --text against it measures
       ~16:1. A hardcoded near-white here would have measured ~1.1 and been invisible. */
    .tr-carry-banner .tcb-msg { flex:1; min-width:220px; line-height:1.45; }
    .tr-carry-banner .tcb-msg strong { color:var(--gold); }
    .tr-carry-banner button { font-family:inherit; font-size:0.74rem; font-weight:600; padding:0.35rem 0.7rem; border-radius:4px; cursor:pointer; border:1px solid var(--border-secondary); background:transparent; color:var(--text); }
    .tr-carry-banner button.tcb-primary { border-color:rgba(251,176,59,0.6); color:var(--gold); }
    .tr-carry-banner button:hover { background:rgba(255,255,255,0.06); }
    /* Per-mark Confirm / Reject, shown inline on a pending mark's activity row. */
    .tr-pending-badge { display:inline-flex; align-items:center; gap:0.25rem; font-size:0.62rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--gold); border:1px solid rgba(251,176,59,0.45); background:rgba(251,176,59,0.10); border-radius:3px; padding:0.08rem 0.3rem; margin-left:0.35rem; vertical-align:middle; }
    .tr-pending-acts { display:flex; gap:0.35rem; margin-top:0.4rem; }
    .tr-pending-acts button { font-family:inherit; font-size:0.68rem; font-weight:600; padding:0.22rem 0.55rem; border-radius:4px; cursor:pointer; border:1px solid var(--border-secondary); background:transparent; color:var(--text-muted); }
    .tr-pending-acts button.tpa-confirm { border-color:rgba(50,180,100,0.5); color:var(--approved); }
    .tr-pending-acts button.tpa-reject { border-color:rgba(226,75,74,0.45); color:var(--text-danger); }
    .tr-pending-acts button:hover { background:rgba(255,255,255,0.06); }
    .tr-st-strike { text-decoration:line-through; text-decoration-color:rgba(226,75,74,0.9); text-decoration-thickness:2px; color:var(--text-secondary); opacity:0.7; } /* visual "I'd cut this" — not a Remove action */
    /* Clip: same lighter-weight treatment as Highlight (soft tint + underline, not a solid
       block), keeping Clip's own green so it stays distinct from Highlight (amber)/Cut. */
    /* NO PER-WORD ROUNDING. Each word is its own span and the trailing space lives INSIDE it,
       so adjacent marked words already touch — a 2px radius on every one cut a notch at every
       word boundary and the passage read as a ransom note. Square edges make the run continuous;
       the word-span markup should not be visible in the highlight. */
    /* ONE CONTINUOUS FILL, NO UNDERLINE — the same treatment the client proposal mark now uses,
       for the same reason. The inset underline was a second mark in the same colour saying the
       same thing, drawn per word with a break at every space, which is the strongest possible
       version of the ransom-note effect the square edges above already exist to avoid. The fill
       alone marks the passage; box-decoration-break keeps it whole across a wrap. */
    .tr-st-clip { background:rgba(74,124,89,0.16);
      -webkit-box-decoration-break:clone; box-decoration-break:clone; }
    .tr-cbubble { display:inline-block; background:var(--gold); color:#1A1A1A; border-radius:20px; padding:1px 5px; font-size:10px; line-height:1.4; margin:0 3px; vertical-align:middle; cursor:pointer; }
    .tr-guest-badge { vertical-align:-1px; margin-right:2px; color:var(--text-muted); opacity:0.8; }
    .tr-act-reply { margin:5px 0 0 12px; font-size:11px; color:var(--text-muted); font-style:italic; line-height:1.5; }
    .tr-word-flash { background:rgba(255,255,255,0.35) !important; border-radius:2px; }
    .tr-word-flash-clip { background:rgba(74,124,89,0.25) !important; border-radius:2px; }
    /* ⟦item 847⟧ a Selects clip's passage, opened from "See this in the full transcript ›": the Selects indigo, kept until the
       transcript re-renders (never a flash — the reader came to read it) */
    #rv-transcript-view .tr-word.sel-tr-passage { background:rgba(var(--at-selects-ring-rgb),0.30); border-radius:2px; }
    #rv-transcript-view[data-theme="light"] .tr-word.sel-tr-passage { background:rgba(var(--at-selects-ring-rgb),0.24); }
    /* ── Edit selection: an editable span ────────────────────────────────────────────────
       Deliberately LOUDER than the resting .tr-st-clip mark. A resting clip says "this is
       saved"; this has to say "this is being changed right now, and these two ends move".
       Same containment discipline as cg-focus: the dim is a class on the SCROLL CONTAINER
       and the emphasis is a class on the word, so the whole treatment is added and removed
       with classList and #tr-scroll's innerHTML comes back byte-identical. */
    /* ⚠️ ONE WASH, NOT 17,723 OPACITIES. This was `opacity:0.32` + a 180ms transition on EVERY
       .tr-word, which on a real transcript is ~17,700 elements each becoming its own stacking
       context and, during the transition, a candidate compositing layer. It cost ~2s on the
       opening press and produced stale-tile artifacts during smooth scroll — two passages drawn
       over each other with the DOM provably clean (84 blocks, 17,723 words, 0 loose).
       ⚠️ SCROLLPORT-SIZED, NOT CONTENT-SIZED — that is the requirement, and `position:fixed`
       positioned from the scroller's rect is how it is met. An overlay INSIDE #tr-scroll would be
       laid out against the scrolled content and span the full scroll height, which is the
       many-thousand-pixel layer this replaces. Same lifecycle and the same rect source as
       #tr-edit-layer above, which has always worked this way.
       ⚠️ DIMMING BY WASH, NOT BY COLOUR, IS WHAT KEEPS ITEM 184 TRUE: the wash covers mark tints,
       text AND the red strikethrough uniformly, so a cut word outside the selection still reads
       quieter than the span. A `color`-only dim leaves .tr-st-* backgrounds at full strength,
       which is why that option was rejected. */
    /* ⚠️ NO `display` HERE, AND THAT IS LOAD-BEARING, NOT AN OMISSION. trDimPosition shows this
       element with `style.display = ''`, which CLEARS the inline value and falls back to the
       stylesheet — so a `display:none` in this rule meant the wash mounted, positioned itself
       correctly, and never painted once. It shipped that way. The inline style is the only owner
       of visibility; #tr-edit-layer below works for the same reason, and that must stay true of
       both. Guarded by checks/display-reset-coherence.mjs. */
    #tr-dim-layer { position:fixed; pointer-events:none; z-index:1; background:rgba(28,28,31,0.68); }
    /* ⚠️ RAISED ABOVE THE WASH, AND THIS ONLY WORKS BECAUSE #tr-scroll CREATES NO STACKING
       CONTEXT (it is position:static, no transform, no opacity, no z-index). Give it one and the
       selection is trapped under the wash — the selection would silently stop looking selected.
       Guarded. */
    #tr-scroll.tr-editing .tr-word.tr-edit-span,
    #tr-scroll.tr-editing .tr-word.tr-pending-span,
    #tr-scroll.tr-editing .tr-word.tr-edit-cut-off { position:relative; z-index:2; }
    #tr-scroll.tr-editing .tr-word.tr-edit-span { background:rgba(74,124,89,0.30); box-shadow:inset 0 -0.16em 0 rgba(74,124,89,1); border-radius:2px; }
    /* The boundary words carry the grab affordance's colour so the handle reads as attached
       to a WORD rather than floating between two of them. */
    #tr-scroll.tr-editing .tr-word.tr-edit-head { box-shadow:inset 0.14em 0 0 var(--color-clip), inset 0 -0.16em 0 rgba(74,124,89,1); }
    #tr-scroll.tr-editing .tr-word.tr-edit-tail { box-shadow:inset -0.14em 0 0 var(--color-clip), inset 0 -0.16em 0 rgba(74,124,89,1); }
    #tr-scroll.tr-editing .tr-word.tr-edit-head.tr-edit-tail { box-shadow:inset 0.14em 0 0 var(--color-clip), inset -0.14em 0 0 var(--color-clip), inset 0 -0.16em 0 rgba(74,124,89,1); }
    /* CUT MODE. Red rather than sage, and the span carries the strikethrough live — a cut is
       applied, so the transcript has to show what the edit DOES, not just where the edges are.
       .tr-edit-cut-off is a word the edge has just passed: it was in the cut, it no longer is,
       and it stops reading as removed immediately rather than at Save. */
    #tr-scroll.tr-editing-cut .tr-word.tr-edit-span { background:rgba(226,75,74,0.22); box-shadow:inset 0 -0.16em 0 rgba(226,75,74,0.95); text-decoration:line-through; text-decoration-color:rgba(226,75,74,0.95); text-decoration-thickness:2px; }
    #tr-scroll.tr-editing-cut .tr-word.tr-edit-head { box-shadow:inset 0.14em 0 0 var(--color-removed), inset 0 -0.16em 0 rgba(226,75,74,0.95); }
    #tr-scroll.tr-editing-cut .tr-word.tr-edit-tail { box-shadow:inset -0.14em 0 0 var(--color-removed), inset 0 -0.16em 0 rgba(226,75,74,0.95); }
    #tr-scroll.tr-editing-cut .tr-word.tr-edit-head.tr-edit-tail { box-shadow:inset 0.14em 0 0 var(--color-removed), inset -0.14em 0 0 var(--color-removed), inset 0 -0.16em 0 rgba(226,75,74,0.95); }
    #tr-scroll.tr-editing .tr-word.tr-edit-cut-off { text-decoration:none; color:var(--text); background:rgba(255,255,255,0.07); border-radius:2px; }
    #tr-edit-layer.tr-edit-cut .tr-edit-grab::before,
    #tr-edit-layer.tr-edit-cut .tr-edit-grab::after { background:var(--color-removed); }
    #tr-edit-layer.tr-edit-cut .tr-edit-grab:hover::after,
    #tr-edit-layer.tr-edit-cut .tr-edit-grab.dragging::after { background:#EE6D6C; }
    .tr-edit-runtime { font-size:11px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
    .tr-edit-runtime.up { color:#2E7D4F; }    /* programme gets time back */
    .tr-edit-runtime.down { color:#C0392B; }  /* programme loses more */
    /* While editing, the whole transcript is a click target for snap-to-word, so the text
       cursor would lie about what a click does. */
    #tr-scroll.tr-editing { cursor:pointer; user-select:none; }
    /* Handles live in a FIXED overlay on <body>, never inside #tr-scroll — see #tr-edit-layer's
       creation comment. Positioned from each boundary word's client rect. */
    #tr-edit-layer { position:fixed; inset:0; z-index:99997; pointer-events:none; }
    .tr-edit-grab { position:absolute; width:14px; margin-left:-7px; pointer-events:auto; cursor:ew-resize; display:flex; align-items:center; justify-content:center; touch-action:none; }
    .tr-edit-grab::before { content:''; position:absolute; inset:0 5px; background:var(--color-clip); border-radius:2px; }
    .tr-edit-grab::after { content:''; position:absolute; left:2px; right:2px; top:50%; height:12px; margin-top:-6px; background:var(--color-clip); border-radius:3px; box-shadow:0 1px 4px rgba(0,0,0,0.45); }
    .tr-edit-grab:hover::after, .tr-edit-grab.dragging::after { background:#6FA57E; }
    /* The mode bar. Docked, not floating: it must not chase the selection as the transcript
       scrolls, because unlike the creation bar this one persists across scrolling. */
    #tr-edit-bar { position:fixed; z-index:99998; display:flex; align-items:center; gap:10px; background:#fff; border:0.5px solid var(--border-strong); border-radius:var(--radius); padding:7px 8px 7px 12px; box-shadow:0 6px 20px rgba(0,0,0,0.35); font-family:'Inter',sans-serif; }
    .tr-edit-tc { font-size:12px; color:#1a1a1a; white-space:nowrap; font-variant-numeric:tabular-nums; }
    .tr-edit-was { font-size:11px; color:var(--text-muted); white-space:nowrap; margin-left:-4px; }
    .tr-edit-hint { font-size:11px; color:var(--text-muted); white-space:nowrap; padding-left:10px; border-left:0.5px solid var(--border); }
    .tr-edit-acts { display:flex; align-items:center; gap:4px; padding-left:6px; }
    .tr-edit-btn { border:0.5px solid var(--border-strong); background:transparent; border-radius:4px; padding:4px 12px; font-family:'Inter',sans-serif; font-weight:600; font-size:12px; cursor:pointer; white-space:nowrap; color:rgba(0,0,0,0.66); }
    .tr-edit-btn:hover { background:rgba(0,0,0,0.06); }
    .tr-edit-io { display:inline-flex; align-items:center; gap:6px; }
    /* ⚠️ SIGNAL ORANGE = UNSAVED (item 69), never gold. Gold is a decision or the asking of one
       (item 66 as restated); a pending range is neither — it is a range nobody has committed.
       No mark type uses orange, so a pending span cannot be read as a clip, cut or highlight. */
    /* ⚠️ `, var(--tr-play)` IS THE PLAYING RULE COMPOSING — see .tr-word. Remove it and a
     SPOKEN word silently loses this treatment, or this loses the rule; box-shadow does not
     compose across rules, the winner replaces. */
  .tr-pending-span { background:rgba(247,147,30,0.16); box-shadow:inset 0 -0.14em 0 rgba(247,147,30,0.75), var(--tr-play); }
    /* Scoped like .tr-edit-span's own rule so it wins inside .tr-editing and re-lights the span
       the surrounding dim has knocked back — and clears any mark decoration the words carry, so a
       pending range over a cut reads as pending rather than as the cut underneath it. */
    #tr-scroll.tr-editing .tr-word.tr-pending-span { background:rgba(247,147,30,0.22);
      box-shadow:inset 0 -0.16em 0 rgba(247,147,30,0.95); border-radius:2px;
      text-decoration:none; }
    #tr-edit-layer.tr-pending .tr-edit-grab::before,
    #tr-edit-layer.tr-pending .tr-edit-grab::after { background:#F7931E; }
    .tr-pending-tc { color:#F7931E; font-weight:700; }
    .tr-edit-btn.tr-pending-make { border-color:rgba(247,147,30,0.55); }
    .tr-edit-btn.tr-pending-make:hover { background:rgba(247,147,30,0.12); }
    /* Monospace so the letter reads as a KEY, not as the first word of the label. */
    .tr-edit-key { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; font-weight:700; line-height:1;
                   border:0.5px solid var(--border-strong); border-radius:3px; padding:2px 4px; opacity:0.85; }
    /* Matches .tv-row.disabled — the portal's own unavailable-RIGHT-NOW treatment. `cursor:default`,
       never not-allowed: the action is coming back the moment the media plays. */
    .tr-edit-btn.tr-edit-io:disabled { opacity:0.5; cursor:default; background:transparent; }
    .tr-edit-btn.tr-edit-io:disabled:hover { background:transparent; }
    .tr-edit-btn.tr-edit-save { background:var(--color-clip); border-color:var(--color-clip); color:#fff; }
    .tr-edit-btn.tr-edit-save:hover { background:#3F6B4A; }
    .tr-edit-btn.tr-edit-save:disabled { opacity:0.45; cursor:default; background:var(--color-clip); }
    .tr-sel-btns { display:flex; align-items:center; gap:2px; }
    .tr-sel-div { width:0.5px; height:16px; background:var(--border); flex-shrink:0; }
    .tr-sel-btn { border:none; background:transparent; border-radius:4px; padding:4px 10px; font-family:'Inter',sans-serif; font-weight:500; font-size:12px; cursor:pointer; white-space:nowrap; }
    .tr-sel-btn.sel-highlight { color:var(--color-highlight); }
    .tr-sel-btn.sel-highlight:hover { background:rgba(251,176,59,0.12); }
    .tr-sel-btn.sel-clip { color:var(--color-clip); }
    .tr-sel-btn.sel-clip:hover { background:rgba(74,124,89,0.12); }
    .tr-sel-btn.sel-remove { color:var(--text-danger); }
    .tr-sel-btn.sel-remove:hover { background:var(--bg-danger); }
    .tr-sel-btn.sel-cut { color:var(--color-removed); }
    .tr-sel-btn.sel-cut:hover { background:var(--bg-danger); }
    .tr-sel-btn.sel-restore { color:#3DAE6A; }
    .tr-sel-btn.sel-restore:hover { background:rgba(61,174,106,0.14); }
    /* Cut ranges hidden via the "Show cuts" toggle */
    .tr-cut-hidden { display:none; }
    /* Suggest-cuts panel (#6) — lives in the right-hand panel slot */
    .tr-suggest-panel { display:flex; flex-direction:column; flex:1; min-height:0; padding:10px 12px 6px; }
    .tr-suggest-head { display:flex; align-items:center; gap:8px; padding:2px 0 12px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); flex-shrink:0; }
    .tr-suggest-head > span { margin-right:auto; }
    .tr-suggest-applyall, .tr-suggest-done { background:none; border:0.5px solid var(--border-strong); color:var(--text-muted); border-radius:4px; padding:3px 9px; font-size:10px; cursor:pointer; text-transform:none; letter-spacing:0; }
    .tr-suggest-applyall { color:var(--text-danger); border-color:rgba(226,75,74,0.4); }
    .tr-suggest-reset { background:none; border:0.5px solid var(--border-strong); color:var(--text-muted); border-radius:4px; padding:3px 9px; font-size:10px; cursor:pointer; }
    .tr-suggest-list { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:5px; }
    .tr-suggest-row { display:flex; align-items:center; gap:8px; padding:7px 8px; background:var(--surface-1); border:0.5px solid var(--border); border-radius:5px; cursor:pointer; }
    .tr-suggest-row:hover { border-color:var(--border-strong); }
    .tr-suggest-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
    .tr-suggest-top { display:flex; align-items:center; gap:7px; }
    .tr-suggest-kind { font-family:'Montserrat',sans-serif; font-weight:700; font-size:8px; letter-spacing:0.06em; padding:2px 5px; border-radius:3px; flex-shrink:0; }
    .tr-suggest-kind.k-filler { background:rgba(226,75,74,0.16); color:var(--text-danger); }
    .tr-suggest-kind.k-silence { background:rgba(255,255,255,0.16); color:#9aa4b0; }
    .tr-suggest-label { font-size:12px; color:var(--text); white-space:nowrap; }
    .tr-suggest-time { font-size:10px; color:var(--text-muted); margin-left:auto; flex-shrink:0; }
    .tr-suggest-snippet { font-size:11px; color:var(--text-muted); line-height:1.45; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
    .tr-suggest-acts { display:flex; gap:4px; flex-shrink:0; }
    .tr-suggest-apply, .tr-suggest-ignore { background:none; border:0.5px solid var(--border-strong); border-radius:4px; padding:3px 9px; font-size:11px; cursor:pointer; }
    .tr-suggest-apply { color:#3DAE6A; border-color:rgba(61,174,106,0.4); }
    .tr-suggest-empty { padding:16px 8px; font-size:12px; color:var(--text-muted); text-align:center; }
    .tr-suggest-empty-sub { margin-top:8px; font-size:10px; opacity:0.85; line-height:1.5; }
    .tr-sel-btn.sel-strike { color:rgba(255,255,255,0.55); }
    .tr-sel-btn.sel-strike:hover { background:rgba(255,255,255,0.12); }
    .tr-act-panel { display:flex; flex-direction:column; height:100%; min-height:0; background:transparent; width:100%; }
    .tr-act-head { flex-shrink:0; display:flex; align-items:baseline; gap:10px; padding:16px 20px 12px; border-bottom:0.5px solid rgba(255,255,255,0.08); }
    .tr-act-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; letter-spacing:0.08em; color:#fff; }
    .tr-act-count { font-family:'Inter',sans-serif; font-size:11px; color:var(--text-muted); }
    .tr-act-pills { flex-shrink:0; display:flex; flex-wrap:wrap; gap:6px; padding:10px 16px 4px; }
    .tr-pill { border:0.5px solid transparent; border-radius:20px; padding:5px 12px; font-family:'Inter',sans-serif; font-weight:600; font-size:12px; cursor:pointer; white-space:nowrap; opacity:0.55; transition:opacity 0.12s; }
    .tr-pill.active { opacity:1; }
    .tr-pill-all { background:rgba(255,255,255,0.08); color:var(--text); border-color:rgba(255,255,255,0.15); }
    .tr-pill-highlight { background:rgba(251,176,59,0.12); color:var(--color-highlight); border-color:rgba(251,176,59,0.3); }
    .tr-pill-clip { background:rgba(74,124,89,0.12); color:var(--color-clip); border-color:rgba(74,124,89,0.3); }
    .tr-pill-removed { background:rgba(226,75,74,0.12); color:var(--color-removed); border-color:rgba(226,75,74,0.3); }
    .tr-pill-strikethrough { background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.55); border-color:rgba(255,255,255,0.3); }
    .tr-act-export { margin-left:auto; background:rgba(255,255,255,0.15); border:0.5px solid rgba(255,255,255,0.4); color:#c7cdd6; border-radius:4px; padding:3px 9px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:8px; text-transform:uppercase; letter-spacing:0.04em; cursor:pointer; }
    .tr-act-export:hover { background:rgba(255,255,255,0.25); }
    .tr-act-list { flex:1; overflow-y:auto; padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
    .tr-act-empty { flex:1; padding:24px 20px; font-size:12px; color:var(--text-muted); line-height:1.5; }
    /* Tools rail accordion — closed by default, each row toggles independently. */
    .tr-tools { display:flex; flex-direction:column; flex:1; min-height:0; overflow-y:auto; }
    .tr-tool { border-bottom:0.5px solid var(--border); flex-shrink:0; }
    .tr-tool-head { width:100%; display:flex; align-items:center; gap:9px; padding:13px 14px; background:none; border:0; color:var(--text-secondary); cursor:pointer; font-family:'Montserrat',sans-serif; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:0.04em; transition:color .15s; }
    .tr-tool-head:hover { color:var(--text); }
    .tr-tool-chev { color:var(--text-muted); transition:transform .15s; flex-shrink:0; }
    .tr-tool:not(.open) .tr-tool-chev { transform:rotate(-90deg); }
    .tr-tool-label { flex:1; text-align:left; }
    .tr-tool-count { background:rgba(255,255,255,0.1); color:var(--text-secondary); font-family:'Inter',sans-serif; font-size:10px; font-weight:700; padding:2px 7px; border-radius:9px; letter-spacing:0; }
    .tr-tool:not(.open) .tr-tool-body { display:none; }
    .tr-tool.open .tr-tool-body { border-top:0.5px solid var(--border); }
    /* Activity panel tabs (item 9) */
    .tr-tabs { flex-shrink:0; display:flex; flex-wrap:nowrap; gap:1px; padding:8px 8px 0; border-bottom:0.5px solid var(--border); }
    .tr-tab { flex:1 1 auto; min-width:0; text-align:center; background:none; border:none; border-bottom:2px solid transparent; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:10px; font-weight:500; padding:4px 5px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .tr-tab.active { color:var(--text); border-bottom-color:var(--text-accent); }
    .tr-act-subhead { padding:10px 16px 0; }
    .tr-spk-list { padding:12px 16px; display:flex; flex-direction:column; gap:8px; }
    .tr-spk-hint { padding:12px 16px 0; font-size:12.5px; color:var(--text-secondary); }   /* ⟦item 1067⟧ 4 */
    #rv-transcript-view[data-theme="light"] .tr-spk-name-link { color:#396793; }
    .tr-spk-name-link { padding:0; border:0; background:none; color:#8fb6dc; font:inherit; font-weight:600; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
    .tr-spk-row { display:flex; align-items:center; gap:10px; }
    .tr-spk-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-secondary); flex-shrink:0; min-width:80px; }
    .tr-spk-input { flex:1; min-width:0; background:var(--surface-1); border:0.5px solid var(--border-strong); border-radius:4px; color:var(--text); font-family:'Inter',sans-serif; font-size:13px; padding:6px 8px; outline:none; }
    .tr-spk-input:focus { border-color:var(--border-accent); }
    .tr-spk-name { font-family:'Inter',sans-serif; font-size:13px; color:var(--text); }
    .tr-ai-summary { padding:14px 16px; color:var(--text-secondary); font-size:13px; line-height:1.7; }
    .tr-ai-list { padding:12px 16px; display:flex; flex-direction:column; gap:6px; overflow-y:auto; }
    .tr-ai-chapter { display:flex; gap:10px; padding:8px 10px; background:var(--rv-elevated); border:0.5px solid rgba(255,255,255,0.06); border-radius:4px; cursor:pointer; }
    .tr-ai-chapter:hover { border-color:rgba(255,255,255,0.14); }
    .tr-ai-ch-time { font-family:var(--mono); font-size:11px; color:var(--text-accent); flex-shrink:0; }
    .tr-ai-ch-title { font-size:13px; color:var(--text); }
    .tr-ai-phrases { padding:14px 16px; display:flex; flex-wrap:wrap; gap:6px; align-content:flex-start; overflow-y:auto; }
    .tr-ai-phrase { background:rgba(255,255,255,0.06); border:0.5px solid rgba(255,255,255,0.16); color:var(--text-secondary); border-radius:20px; padding:4px 10px; font-family:'Inter',sans-serif; font-size:12px; cursor:pointer; }
    .tr-ai-phrase:hover { background:rgba(255,255,255,0.12); }
    .tr-spk-list, .tr-ai-list, .tr-ai-phrases, .tr-ai-summary { flex:1; min-height:0; overflow-y:auto; }
    /* Summary tab now flows summary → Phrases inside one scroll container. */
    .tr-ai-scroll { flex:1; min-height:0; overflow-y:auto; }
    .tr-ai-scroll .tr-ai-summary, .tr-ai-scroll .tr-ai-phrases { flex:none; overflow:visible; }
    .tr-ai-subhead { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); padding:4px 16px 0; margin-top:6px; }
    .tr-act-item { position:relative; background:var(--rv-elevated); border:0.5px solid rgba(255,255,255,0.06); border-left:3px solid rgba(255,255,255,0.2); border-radius:4px; padding:6px 8px; cursor:pointer; }
    .tr-act-item:hover { border-color:rgba(255,255,255,0.14); }
    .tr-act-item.type-highlight { border-left-color:var(--color-highlight); }
    .tr-act-item.type-clip { border-left-color:var(--color-clip); }
    .tr-act-item.type-removed { border-left-color:var(--color-removed); }
    .tr-act-item.type-strikethrough { border-left-color:var(--color-removed); } /* legacy strikethrough = Cut */
    .tr-act-label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:1px; }
    .tr-act-meta { font-family:'Inter',sans-serif; font-size:11px; color:var(--text-muted); line-height:1.35; margin-top:2px; }
    .tr-act-del { position:absolute; top:8px; right:8px; background:none; border:none; color:rgba(255,255,255,0.3); cursor:pointer; font-size:12px; line-height:1; padding:0 2px; }
    .tr-act-del:hover { color:var(--text-danger); }
    .tr-sel-btn.sel-clear { color:var(--text-muted); display:inline-flex; align-items:center; gap:4px; }
    .tr-sel-btn.sel-clear:hover { background:rgba(0,0,0,0.06); }
    .tr-act-quote { font-family:'Inter',sans-serif; font-style:italic; font-size:12px; color:rgba(255,255,255,0.5); line-height:1.4; }
    .tr-act-quote.clamped { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .tr-act-more { display:inline-flex; align-items:center; gap:3px; background:none; border:none; color:var(--text-accent); font-family:'Inter',sans-serif; font-size:12px; cursor:pointer; padding:2px 0 0; }
    .tr-act-more svg { transition:transform 0.15s; }
    .tr-act-more.open svg { transform:rotate(180deg); }
    .tr-act-comment { font-family:'Inter',sans-serif; font-size:12px; color:rgba(255,255,255,0.85); margin-top:5px; line-height:1.4; }
    /* Right column follows the light/dark toggle (activity, player, clips) */
    /* LEFT — tools rail: player + transcript tools. Collapses to an icon strip (Part 2). */
    .tr-rail { flex:0 0 300px; min-width:0; display:flex; flex-direction:column; min-height:0; background:var(--rv-surface); border-radius:10px; margin:0 8px 8px 8px; overflow:hidden; position:relative; box-shadow:0 10px 28px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05); transition:flex-basis .18s ease; }
    /* [REMOVED — item 575] `.tr-rail.player-big { flex-basis:460px }` and `.tr-rail.collapsed
       { flex-basis:52px }`. Both were written for the flex layout and became INERT when 5c made
       .tr-lc a grid (5c's grid-template-columns:292px … is what sizes the rail; flex-basis on a
       grid item does nothing). The Enlarge button flipped its class and aria-pressed and the rail
       did not move — a control that reads as broken. The track is now a custom property on the
       grid container: --tr-rail-track, set by .tr-lc.tr-player-big / .tr-lc.tr-rail-collapsed,
       the mechanism the third column's .tr-yrm-collapsed already used. See the rules at .tr-lc. */
    .tr-rail.collapsed .tr-player-wrap, .tr-rail.collapsed .tr-tools-slot, .tr-rail.collapsed .tr-pending-panel { display:none; }
    .tr-rail-toggle { align-self:flex-end; flex-shrink:0; margin:8px 8px 0; width:26px; height:26px; display:flex; align-items:center; justify-content:center; background:none; border:0.5px solid var(--border-strong); border-radius:6px; color:var(--text-muted); cursor:pointer; transition:color .15s, border-color .15s; }
    .tr-rail-toggle:hover { color:var(--text); border-color:var(--text-muted); }
    .tr-rail.collapsed .tr-rail-toggle { align-self:center; margin:8px auto 0; }
    .tr-rail.collapsed .tr-rail-chev { transform:rotate(180deg); }
    .tr-player-wrap { position:relative; flex-shrink:0; }
    /* item 575: anchored to .tr-mini-frame (the video frame + its 12px .tr-mini padding), so
       20px = 12px padding + 8px inset into the frame's top-right corner. Was top/right:18px from
       .tr-player-wrap, which put it on the Follow along pill once the medhead row sat above. */
    .tr-mini-frame { position:relative; }
    .tr-mini-expand { position:absolute; top:20px; right:20px; z-index:3; width:24px; height:24px; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.55); border:0.5px solid rgba(255,255,255,0.2); border-radius:5px; color:#fff; cursor:pointer; opacity:0; transition:opacity .15s, background .15s; }
    .tr-mini-frame:hover .tr-mini-expand { opacity:1; }
    .tr-mini-expand:hover { background:rgba(0,0,0,0.8); }
    /* RIGHT — comments column: the relocated .review-panel fills it outright. */
    /* Comments column is transparent — the relocated .review-panel inside is the rounded surface
       (it keeps its review-page margin/radius/background/shadow). */
    .tr-comments-col { flex:0 0 380px; min-width:0; display:flex; min-height:0; }

  /* ══ PASS 5c — THE THREE-COLUMN GRID (design §3) ═══════════════════════════════════
     media | transcript | marks. Replaces the flex row whose right column was the borrowed
     comments panel. The centre carries design's 48px gutter — deferred here from 5b by the
     border-box arithmetic (item 301): 48px inside a 660px measure leaves 564px of text,
     about 58 characters against design's own stated 62 to 70, so the gutter is a property
     of the COLUMN and the 660 stays the measure. */
  #rv-transcript-view .tr-lc {
    display:grid;
    /* ⚠️ THE TRACKS ARE VARIABLES, AND THE STATE CLASSES LIVE ON THIS CONTAINER (item 575).
       A grid item cannot size its own track — `.tr-rail.player-big { flex-basis:460px }` was
       inert for the whole life of this grid. Enlarge and Collapse write tr-player-big /
       tr-rail-collapsed HERE (trTogglePlayerSize, trApplyRailState) and the third column's
       tr-yrm-collapsed already did. Two orthogonal variables, so the three states compose
       without a six-way selector table; collapsed is declared AFTER big, so a collapsed rail
       stays collapsed whatever the Enlarge toggle last said. */
    --tr-rail-track:292px;
    --tr-side-track:332px;
    grid-template-columns:var(--tr-rail-track) minmax(0,1fr) var(--tr-side-track);
    min-height:0;
  }
  #rv-transcript-view .tr-lc.tr-player-big { --tr-rail-track:460px; }
  #rv-transcript-view .tr-lc.tr-rail-collapsed { --tr-rail-track:52px; }
  #rv-transcript-view .tr-lc > .tr-left { padding:0 48px; min-width:0; }
  /* ⚠️ THE THIRD TRACK IS A STACK OF TWO SLOTS (item 406), AND THE COLUMN WIDTHS DO NOT MOVE.
     .tr-side is the grid child now, so 292 | 1fr | 332 is exactly what 5c set and the centre
     measure is untouched — item 304's disaster was a FOURTH column eating 380px of the row the
     grid lives in, and a wrapper INSIDE an existing track cannot do that.
     Tools fill the column when they are alone (a client, whose rail is the whole column).
     ⚠️ WITH THE PANEL BESIDE THEM THE CAP IS THE PANEL'S FLOOR, NOT A FRACTION (item 407).
     45% was an invented number and measured too small: at a 577px column it left the tools
     259.7px against 501px of open accordions, so the clip edge sliced a tool header in half at
     exactly the line where the panel begins — which reads as the panel covering it. Expressed
     as "whatever is left once the panel has 16rem" the tools get 321.2px in that same state.
     ⚠️ THE CAP STAYS ON THE TOOLS RATHER THAN BECOMING A min-height ON THE PANEL. A floor on
     the panel cannot be shrunk, so a short column would push the panel out of .tr-side and
     produce the REAL overlap this item exists to rule out; a cap on the tools always gives way.
     The max(96px, …) term is the other end of the same worry — without it a column shorter than
     16rem drives the cap to zero and the tools vanish. min-height:0 on every one of them, or
     nothing can scroll inside a flex column. */
  #rv-transcript-view .tr-lc > .tr-side { min-width:0; min-height:0; display:flex; flex-direction:column; }
  #rv-transcript-view .tr-side > .tr-panel-slot { flex:1 1 auto; min-height:0; overflow-y:auto; }
  #rv-transcript-view .tr-side > .tr-review-slot { flex:1 1 auto; min-height:0; display:flex; }
  /* ⚠️ EACH AUDIENCE HAS EXACTLY ONE OCCUPANT HERE NOW (item 408), WHICH IS WHY ITEM 407's CAP
     AND HAIRLINE ARE GONE RATHER THAN RETUNED. Team: the tools moved to the rail, so
     #tr-panel-slot is empty and collapses. Client: #tr-review-slot is team-only and empty, so
     it collapses. The two are never occupied together, so there is nothing to divide a column
     between and no boundary to draw — a hairline would have drawn a line above a panel with
     nothing above it. If anything is ever put back beside the panel, item 407's measurement is
     the one to re-read: a cap belongs on the tools, never as a min-height on the panel, because
     a floor cannot be shrunk and a short column would push the panel out of .tr-side. */
  #rv-transcript-view .tr-side > .tr-panel-slot:empty { display:none; }
  #rv-transcript-view .tr-review-slot:empty { display:none; }

  /* ⚠️ THE HANDBACK MOVED THE CONTENT AND LEFT THE GEOMETRY — this is the other half of it.
     5c handed .review-panel back to the review page, so nothing renders into #tr-comments-col
     any more; it kept `flex:0 0 380px` and went on eating 380px of the row the grid lives in.
     ⚠️ STILL TRUE AFTER ITEM 406: the borrow was restored, but into #tr-review-slot INSIDE the
     third grid track — never back into this column, precisely because a fourth column is what
     produced the measurement below. This rule stays, and so does the column.
     Measured consequence: the grid gets (width − 380), so the centre track is
     width − 380 − 292 − 332, which at a 1100px window is 96px — 0 after the 48px gutters, i.e.
     ONE WORD PER LINE, with the search field reduced to its icon.
     NOT DELETED, per 5c's scope: #tr-comments-col, the column and exitTranscript's restore all
     remain because item 35's tab-swap mechanism owns that column. What it must not do is
     RESERVE WIDTH for content that no longer arrives. */
  #rv-transcript-view .tr-comments-col { display:none; }

  /* ══ PASS 5d — THE MEDIA COLUMN (design §2) ════════════════════════════════════════
     Sections A and B sit under the player inside .tr-player-wrap, so they collapse with the
     rail (item 171's collapse is a WIDTH collapse and is unaffected by this). No volume
     control — and do not add one; the review page has the only one and design omits it here. */
  #tr-sec-a { padding:14px 14px 16px; }
  .tr-sec-label { font-size:10.5px; font-weight:600; letter-spacing:0.9px; text-transform:uppercase;
                  color:var(--trv-ink-label); margin-bottom:10px; }

  /* scrubber: 5px track, 3px radius, fill + head. 20px below the video, 12px above the time line. */
  #tr-scrub { padding:20px 0 0; cursor:pointer; }
  .tr-scrub-track { position:relative; height:5px; border-radius:3px; background:var(--trv-track); }
  .tr-scrub-fill { position:absolute; left:0; top:0; bottom:0; width:0; border-radius:3px;
                   background:var(--trv-slate); }
  .tr-scrub-head { position:absolute; top:50%; left:0; width:11px; height:11px; margin:-5.5px 0 0 -5.5px;
                   border-radius:50%; background:var(--trv-slate); pointer-events:none; }
  .tr-scrub-ticks { position:absolute; inset:0; pointer-events:none; }
  /* ⚠️ pointer-events:none IS THE READ-ONLY RULE IN CSS, and it is not decoration: without it a
     tick sits over the scrub track and swallows the seek click, so the bar would stop working
     exactly where a range is marked. */
  .tr-tick { position:absolute; top:-3px; width:2px; height:11px; background:var(--trv-slate-2);
             border-radius:1px; }
  .tr-tick-span { position:absolute; top:0; bottom:0; background:var(--trv-slate-sel); }
  .tr-time-line { display:flex; justify-content:center; align-items:baseline;
                  margin-top:12px; font-size:12.5px; font-variant-numeric:tabular-nums; }
  /* The readout (item 500): dashed accent, same treatment as .tr-tool-btn.suggested — the
     transcript page's own accent token, not the reserved decision gold (item 66). Always
     visible; the dash says "clickable", and .no-tc withdraws the pointer (not the border) when
     there is no timecode to switch to, so the element does not change shape with state. */
  /* ⟦item 1175⟧ NO GOLD ON THE PLAYER: the readout was --text-accent (#FBB03B dark / #B26A00 light), the decision gold. Now the
     playback slate the rest of the player wears (--tr-play-hue's two values: #7FB0CE on dark, --trv-slate on light); same dashed shape. */
  .tr-time-readout { --tr-ro-ink:#7FB0CE; --tr-ro-line:rgba(127,176,206,0.55);
                     display:inline-flex; align-items:baseline; gap:6px; padding:4px 11px; background:none;
                     border:1px dashed var(--tr-ro-line); border-radius:6px; color:var(--tr-ro-ink);
                     font:inherit; font-variant-numeric:tabular-nums; line-height:1.3; cursor:pointer; }
  #rv-transcript-view[data-theme="light"] .tr-time-readout { --tr-ro-ink:var(--trv-slate); --tr-ro-line:rgba(74,122,153,0.5); }
  .tr-time-readout:hover { background:rgba(255,255,255,0.05); }
  .tr-time-readout.no-tc { cursor:default; }
  .tr-time-readout.no-tc:hover { background:none; }
  .tr-time-readout:focus-visible { outline:2px solid var(--tr-ro-ink); outline-offset:2px; }
  .tr-time-cur { font-weight:600; color:inherit; }
  .tr-time-sep { color:var(--trv-ink-4); }
  .tr-time-tot { color:var(--trv-ink-4); }
  .tr-time-readout.tc-mode .tr-time-tot { color:inherit; opacity:0.75; }

  /* transport: 3 columns, 8px gap, Speed | Back 5s | Play — order is in the MARKUP, not here. */
  .tr-transport { position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-top:14px; }   /* ⟦item 1041⟧ Speed · Back 5s · ↺ 1s · Play · 1s ↻ (was 3) */
  .tr-tbtn { display:flex; flex-direction:column; align-items:center; gap:6px; padding:11px 4px 9px;
             border-radius:8px; background:var(--trv-surface); border:1px solid var(--trv-ctl-line);
             color:var(--trv-ink-2); font-weight:500; font-size:11.5px; cursor:pointer; }
  .tr-tbtn:hover { background:var(--trv-hover); border-color:var(--trv-ctl-line-strong); }
  /* Disabled = the same dimmed treatment as .bu-upload-btn:disabled / .ui-dialog-btn:disabled.
     Hover is neutralised too, or a dead control would still light up under the pointer. */
  .tr-tbtn:disabled { opacity:.45; cursor:default; }
  .tr-tbtn:disabled:hover { background:var(--trv-surface); border-color:var(--trv-ctl-line); }
  /* Back 5s is the emphasised one (design §2) — 1.5px slate border, 600 weight, slate shadow. */
  .tr-tbtn-emph { border:1.5px solid var(--trv-slate); font-weight:600; color:var(--trv-slate-ink);
                  box-shadow:0 1px 2px rgba(74,122,153,0.14); }
  .tr-tbtn-emph:hover { background:var(--trv-slate-hover); }
  .tr-tbtn-glyph { display:flex; align-items:center; justify-content:center; height:16px; }
  /* ⟦item 1067⟧ 10 — THE SIMPLER PLAYER (team, client and guest share this transport): three buttons centred with space between —
     ↺ 5s · a big round Play (56px) · speed — each ≥ 40px tall; the 1-second nudges are small text buttons beside the readout.
     ⚠️ The Play rules carry TWO ids (#rv-transcript-view #tr-play-btn) so they out-rank the v5 client skin's .tr-tbtn tile rule
     (.v5 body:not(.is-team) #review-view.tr-active.v5tr .tr-tbtn: one id) without a v5 rule of their own (no literal in the v5 sheet). */
  /* ⟦item 1175⟧ ONE TIDY ROW (Jeffrey, Nov 16): ↺ 5s · Play / Pause · 1×, centred, ALL THREE 52px tall (the round Play 52 × 52, the two
     side pills 52px tall with fully round ends), so the row reads as one control; the readout line above is unchanged in shape. */
  .tr-transport { display:flex; justify-content:center; align-items:center; gap:20px; grid-template-columns:none; margin-top:14px; }
  .tr-transport .tr-tbtn { flex-direction:row; justify-content:center; gap:4px; min-width:64px; height:52px; min-height:52px; padding:0 14px; border-radius:26px; font-size:13px; font-weight:600; }
  .tr-transport .tr-tbtn-glyph { height:auto; }
  #rv-transcript-view #tr-play-btn.tr-tbtn-play { width:52px; height:52px; min-width:52px; padding:0; border-radius:50%; border:0; background:var(--trv-slate); color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.18); }
  #rv-transcript-view #tr-play-btn.tr-tbtn-play:hover { background:var(--trv-slate-2); }
  #rv-transcript-view #tr-play-btn.tr-tbtn-play:disabled:hover { background:var(--trv-slate); }
  #rv-transcript-view #tr-play-btn.tr-tbtn-play:not(.tr-playing) .tr-tbtn-glyph { padding-left:3px; }   /* the ▶ sits optically centred */
  .tr-transport .tr-tbtn-speed { font-variant-numeric:tabular-nums; }
  .tr-sr { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  .tr-time-line { align-items:center; gap:4px; }
  .tr-time-line .tr-nudge { min-height:28px; padding:2px 8px; border:0; border-radius:6px; background:none; color:var(--trv-ink-3); font:inherit; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; }
  .tr-time-line .tr-nudge:hover { background:var(--trv-hover); color:var(--trv-ink); }
  .tr-time-line .tr-nudge:focus-visible { outline:2px solid var(--trv-slate); outline-offset:1px; }

  /* ══ SECTION B "Mark a range" — RESTYLE, NOT A REBUILD (design §2) ═════════════════
     ⚠️ #tr-pending-panel ALREADY IS design's Section B: two equal fields at flex:1 1 0, the
     hint, the commit grid (items 179-186). It is ALREADY in the media column and ALREADY
     below Section A — #tr-rail holds [rail-toggle, .tr-player-wrap (which contains Section A),
     #tr-pending-panel] in that order — so the "move" was done by construction and only the
     metrics and colour differ. A duplicate Section B was built and removed once this pass
     (item 306); do not build a third.
     ⚠️ ITEM 185's RULE IS UNAFFECTED AND WAS CHECKED BEFORE TOUCHING ANYTHING: the panel is a
     SIBLING of #tr-panel-slot and stays one — renderTrActivity does slot.innerHTML = html and
     would destroy a panel rendered inside it. 5c re-pointed that assertion when the slot left
     the rail; it still holds and needed no second re-point.
     ⚠️ AND THE PENDING STATE'S SIGNAL ORANGE IS LEFT ALONE. Item 181 ruled it deliberately —
     orange means UNSAVED (item 69's split), and design's Section B specifies the RESTING
     presentation and says nothing about the pending one. Restyling it here would be taking a
     colour ruling that has not been made. */
  #tr-pending-panel { padding:14px; border-radius:8px; }
  #tr-pending-panel .tpp-btn { height:36px; border-radius:7px; font-size:13px; font-weight:600;
                               font-variant-numeric:tabular-nums; }
  #tr-pending-panel .tpp-hint { font-size:11.5px; line-height:1.5; }
  /* item 574(C): the Space-bar line under the transport shares the hint recipe above and the
     light-theme slate below — one recipe, not a third spelling. Centred because it describes the
     whole row, not one field. Colour in the dark editor theme is the .tpp-hint base (line ~6589). */
  .tr-play-hint { margin-top:8px; font-size:11.5px; line-height:1.5; text-align:center; color:var(--text-secondary); }

  /* ⚠️ COLOUR IS LIGHT-SCOPED, per item 301 — LIGHT is design's palette, DARK is pre-redesign
     and kept on purpose. --trv-ink is #1D1A17; applied unscoped it is near-black on the team's
     dark panel, and no team session can see a light-mode defect (item 82, and its inverse). */
  #rv-transcript-view[data-theme="light"] #tr-pending-panel { background:var(--trv-subpanel); }
  /* ⚠️ THE PENDING TINT MUST BE RESTATED AT THIS SPECIFICITY — the subpanel rule above is
     (id + attr + id) and beats `.tr-pending-panel.is-pending` on background, so without this the
     LIGHT pending state would wear an orange border over a neutral fill: half the unsaved signal,
     in the one theme a client can be in (item 82). Same pair as the dark is-pending rule. */
  #rv-transcript-view[data-theme="light"] #tr-pending-panel.is-pending {
    border-color:rgba(247,147,30,0.45); background:rgba(247,147,30,0.10); }
  #rv-transcript-view[data-theme="light"] #tr-pending-panel .tpp-btn {
    background:var(--trv-surface); border-color:var(--trv-ctl-line); color:var(--trv-ink); }
  #rv-transcript-view[data-theme="light"] #tr-pending-panel .tpp-hint,
  #rv-transcript-view[data-theme="light"] .tr-play-hint { color:var(--trv-slate); }
    /* BOTTOM — transport dock: the relocated #rv-transport spans all three columns. */
    .tr-transport-dock { flex-shrink:0; }
    .tr-transport-dock .rv-menu-wrap { display:none !important; } /* video-only Fit/Fill/Zoom — N/A for a transcript */
    /* No decision affordance on the transcript page — hide the decision bar + old-version notice
       that ride along with the relocated panel (belt-and-suspenders with the .tr-active rule). */
    #rv-transcript-view .review-panel .decision-bar,
    #rv-transcript-view .review-panel .rv-old-version-banner { display:none !important; }

    /* ══ TAB SCOPING — COMMENTS | DETAILS (review) vs COMMENTS | CLIPS (transcript) ═══════
       The review panel is MOVED into #tr-review-slot by enterTranscript (item 406 — it was
       #tr-comments-col before 5c) and moved back on
       exit, so a descendant selector on #rv-transcript-view is a true scope: the same buttons
       swap roles purely by where they currently live, and exiting restores the review page's
       pairing with no JS to run and nothing to un-set. The review page is untouched.

       Both halves are !important because switchRvTab writes inline display on the panes; the
       scope rule has to win over an inline style left behind by the other view. The buttons
       need it too — openApprovedReview sets an inline display:none on every .rv-tab (see
       enterTranscript, which clears it).

       Clips is team-only on top of that: #rv-transcript-view carries data-team="1" only when
       window.teamSession is truthy (stamped in enterTranscript), so a client or guest gets
       COMMENTS alone — Details hidden by scope, Clips hidden by gate, no empty tab. */
    #rv-transcript-view .rv-tab[data-tab="details"],
    #rv-transcript-view #rv-tab-details { display:none !important; }
    /* CLIPS and CUTS are open to team AND client; guests stay on COMMENTS alone. Keyed on
       data-viewer rather than data-team, which is a boolean and cannot express three
       audiences. Group scaffolding inside the CLIPS pane is still team-only — that is a
       render-time branch, not a CSS one, so no group markup exists in a client's DOM. */
    #rv-transcript-view[data-viewer="guest"] .rv-tab[data-tab="clips"],
    #rv-transcript-view[data-viewer="guest"] .rv-tab[data-tab="cuts"],
    #rv-transcript-view[data-viewer="guest"] #rv-tab-clips,
    #rv-transcript-view[data-viewer="guest"] #rv-tab-cuts { display:none !important; }
    #review-view:not(.tr-active) .rv-tab[data-tab="clips"],
    #review-view:not(.tr-active) .rv-tab[data-tab="cuts"],
    #review-view:not(.tr-active) #rv-tab-clips,
    #review-view:not(.tr-active) #rv-tab-cuts { display:none !important; }
    /* ══ TRANSCRIPT NOTES (item 582) — TWO CONDITIONS, BOTH NEGATIVE, SAME SHAPE AS ABOVE ══════
       The tab exists only on the review page (never in the editor, where COMMENTS already lists
       these marks) and only on an asset whose OWN linked transcript resolved — .rv-tr-linked,
       written by rvSyncTrNotesTab from the worker's resolved id.
       ⚠️ WRITTEN AS EXCLUSIONS, NOT AS A POSITIVE `display:block`, because switchRvTab writes an
       INLINE display on the pane: a positive rule would have to be !important and would then
       out-rank the inline none, pinning the pane open under whichever tab was actually selected
       — LANDMINE 1 in switchRvTab's own comment, one selector along. Excluding leaves the inline
       style in charge exactly as it is for every other pane. */
    #review-view:not(.rv-tr-linked) .rv-tab[data-tab="trnotes"],
    #review-view:not(.rv-tr-linked) #rv-tab-trnotes,
    #review-view.tr-active .rv-tab[data-tab="trnotes"],
    #review-view.tr-active #rv-tab-trnotes { display:none !important; }

    /* ══ TRANSCRIPT NOTES CARDS ═══════════════════════════════════════════════════════════════
       .tr-kind / .tr-mark-text / .tr-mark-quote / .tr-mark-tc are the RAIL's components, reused
       as-is — the same object on a second surface should not look like a second kind of object.
       Only the wrapper, the state chip and the badge are new, and every colour below resolves
       through the existing --rd-* tokens rather than a literal, so the pane cannot drift from
       the panel it sits in. */
    .trn-list { display:flex; flex-direction:column; gap:8px; padding:12px 14px; }
    .trn-empty { padding:18px 14px; font-size:0.78rem; color:var(--rd-text-3, var(--text-muted)); }
    .trn-card { background:var(--rd-card, rgba(255,255,255,0.03)); border:1px solid var(--rd-card-bd, rgba(255,255,255,0.08));
                border-radius:8px; padding:9px 11px; text-align:left; }
    .trn-card[role="button"] { cursor:pointer; transition:border-color 0.15s, background 0.15s; }
    .trn-card[role="button"]:hover { border-color:rgba(255,255,255,0.2); background:rgba(255,255,255,0.05); }
    .trn-card[role="button"]:focus-visible { outline:2px solid var(--rd-gold, #E2C68C); outline-offset:1px; }
    /* A span-less note has nowhere to jump, so it carries no pointer and no hover — the card
       still reads the same, it just does not pretend to be a control. */
    .trn-card-flat { cursor:default; }
    .trn-card-head { display:flex; align-items:center; gap:7px; margin-bottom:5px; }
    /* The state pushes right, so the three chips line up down the list whatever the kind. */
    .trn-state { margin-left:auto; font-family:'Archivo','Inter',sans-serif; font-size:9px; font-weight:700;
                 letter-spacing:0.09em; text-transform:uppercase; padding:2px 6px; border-radius:3px;
                 border:1px solid transparent; white-space:nowrap; }
    /* GOLD FOR PENDING, the same token the revision chip and the carried-mark treatment already
       spend on "needs an answer". Green for resolved. Declined is DELIBERATELY NEUTRAL: it is an
       answer, so it must not read as urgent, and it is not a success, so it must not read green. */
    .trn-state.is-pending  { background:rgba(var(--rd-gold-rgb),0.12);  border-color:rgba(var(--rd-gold-rgb),0.32);  color:var(--rd-gold); }
    .trn-state.is-resolved { background:rgba(var(--rd-green-rgb),0.12); border-color:rgba(var(--rd-green-rgb),0.30); color:var(--rd-green-fg); }
    .trn-state.is-declined { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.14); color:var(--rd-text-3, var(--text-muted)); }
    .trn-by { margin-top:5px; font-size:0.6rem; color:var(--rd-text-3, var(--text-muted)); }
    /* The tab badge. Inline beside the label like .rv-tab-count, but gold and never shrinking —
       the count must survive a label that ellipsizes (see the .rv-tab rule above). */
    .trn-tab-badge { margin-left:5px; display:inline-block; min-width:15px; padding:0 4px; border-radius:7px;
                     background:rgba(var(--rd-gold-rgb),0.16); color:var(--rd-gold); font-size:9px; font-weight:700;
                     line-height:15px; text-align:center; flex-shrink:0; }
    /* Three tabs (COMMENTS | CLIPS | CUTS) is the tightest case, and only team ever sees it.
       .tr-comments-col is user-resizable down to 280px, giving (280 − 24 margin − 6 gap)/3 ≈ 83px
       per tab; "COMMENTS" measures ~62px at 0.72rem/600/0.05em, so it fits. That is an estimate
       of text advance, not a measurement, so rather than rely on it these three properties make
       the strip structurally unable to break: without nowrap a long label would wrap and blow
       the fixed 30px height. Worst case a label ellipsizes; the strip itself always holds.

       The tab row is one line and stays one line — a count sits INLINE beside its label, so a
       tab with nothing to report is simply its label. That does not rest on this estimate
       either: the count never shrinks and the label ellipsizes, so whatever the width, the
       number survives and only the word degrades. */
    .rv-tab { white-space:nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; }

    /* ══ CLIPS PANEL ═════════════════════════════════════════════════════════════════════
       Groups, then the Ungrouped bucket last. No group carries a colour: membership is shown
       by the panel, the hover tooltip and the focus filter — never by hue, because a clip in
       two groups would have to pick one. Emphasis in the transcript body is OPACITY only. */
    /* These two panes were team-only and had never been contrast-audited. --text-muted
       (#7A7670) measures 3.77 on the panel — under AA for text a CLIENT now has to read to
       know what was clipped or cut. Lifted to 4.7 for these panes only; the token is
       untouched everywhere else, so nothing outside the transcript panel moves.
       DARK ONLY — light already resolves --text-muted to #6B6862, which passes on paper;
       applying the dark-tuned value there made it WORSE (3.37). */
    #rv-transcript-view:not([data-theme="light"]) #rv-tab-clips,
    #rv-transcript-view:not([data-theme="light"]) #rv-tab-cuts { --text-muted:#8A8680; }
    #rv-tab-clips { padding:4px 0 10px; }
    .cg-empty { padding:22px 16px; text-align:center; color:var(--text-muted); font-size:0.78rem; line-height:1.6; }
    .cg-stale { margin:0 12px 10px; padding:8px 10px; border:0.5px solid rgba(251,176,59,0.45); background:rgba(251,176,59,0.10); border-radius:6px; color:var(--text); font-size:0.7rem; line-height:1.5; }
    .cg-group { border-bottom:0.5px solid var(--border); }
    .cg-head { display:flex; align-items:center; gap:7px; padding:9px 12px; cursor:pointer; user-select:none; }
    .cg-head:hover { background:rgba(255,255,255,0.04); }
    .cg-group.focused .cg-head { background:rgba(74,124,89,0.14); }
    .cg-chev { flex-shrink:0; color:var(--text-muted); transition:transform .16s ease; }
    .cg-group.open .cg-chev { transform:rotate(90deg); }
    /* Name over runtime as a two-line stack. The stack owns the flex:1, not the name. */
    .cg-headmain { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
    .cg-name { min-width:0; font-size:0.78rem; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    /* Metadata line: runtime, plus the Custom-order badge. The badge used to sit in the header
       row, where — once preview made five controls — it left the name about 30px and rendered
       it as "T…". Anything that isn't the name lives down here. */
    .cg-sub { display:flex; align-items:center; gap:6px; min-width:0; }
    /* tabular-nums so the durations column doesn't shimmy as digits change */
    .cg-rt { flex-shrink:0; font-size:0.63rem; font-weight:500; color:var(--text-muted); font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    /* Panel total, below Ungrouped — a summary of everything above it, so it sits at the end. */
    /* Footer row: action left, total right, under the separator the total already carried.
       WRAPS rather than collides — at the panel's 280px floor "+ New group" (~66px) plus a long
       total ("6 clips in 12 groups · 3:26 total", ~190px) exceeds the ~256px of content width,
       and a wrapped second line reading right is better than either being truncated. The total
       keeps margin-left:auto so it stays right-aligned on both one line and two, and stays right
       when it is the only thing in the row (the client's case). */
    .cg-foot { display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; padding:9px 12px; border-top:0.5px solid var(--border); }
    /* The total TRUNCATES rather than crowding the action. It had no nowrap, so at a narrow
       panel it wrapped its own text onto a second line hard against "+ New group" — which reads
       as no gap at all rather than as a wrap. min-width:0 is what lets a flex item shrink below
       its content at all; without it the ellipsis never engages. The 16px column gap is the
       floor the two can never close, since gap applies before any shrinking. */
    .cg-foot-total { margin-left:auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.64rem; font-weight:600; letter-spacing:0.02em; color:var(--text-muted); font-variant-numeric:tabular-nums; }
    /* A quiet text action, not a dashed box — the box was right in the middle of a list, where it
       had to hold its own against the rows around it. In a footer it only has to look clickable. */
    .cg-foot-new { flex-shrink:0; padding:0; background:none; border:none; font-family:inherit; font-size:0.7rem; font-weight:600; color:var(--text-secondary); cursor:pointer; }
    .cg-foot-new:hover { color:var(--text); text-decoration:underline; }
    /* item 404 — the send-to-Selects modal body. Rows rather than a bare list: the target and
       the groups are two different questions and a divider is what says so. */
    .selx-lab { font-size:0.68rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-muted); margin:14px 0 6px; }
    .selx-optional { color:var(--text-muted); opacity:0.7; letter-spacing:0.02em; text-transform:none; }
    .selx-memo { width:100%; min-height:88px; box-sizing:border-box; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-family:'Inter',sans-serif; font-size:13.5px; line-height:1.5; padding:10px 12px; resize:vertical; }
    .selx-memo::placeholder { color:var(--text-muted); opacity:0.7; }
    .selx-hint { font-size:12px; color:var(--text-muted); margin:6px 0 0; line-height:1.5; }
    .selx-sel { width:100%; padding:8px 10px; border-radius:4px; border:1px solid var(--border); background:var(--surface2); color:var(--text); font-family:inherit; font-size:0.82rem; }
    .selx-groups { max-height:220px; overflow-y:auto; border:1px solid var(--border); border-radius:4px; }
    .selx-row { display:flex; align-items:center; gap:10px; padding:8px 11px; border-bottom:0.5px solid var(--border); cursor:pointer; }
    .selx-row:last-child { border-bottom:none; }
    .selx-row:hover { background:var(--surface2); }
    .selx-row input { flex:0 0 auto; cursor:pointer; }
    .selx-rname { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.82rem; color:var(--text); }
    .selx-rmeta { flex:0 0 auto; font-size:0.7rem; color:var(--text-muted); font-variant-numeric:tabular-nums; }
    /* ⚠️ THE CONSEQUENCE LINE IS NOT A TOAST AND NOT A SECOND DIALOG. It sits directly above the
       Send button and updates as groups are ticked, so the thing being agreed to is on screen at
       the moment of agreeing. A confirm stacked on a modal is a dialog on a dialog. */
    .selx-conseq { margin-top:12px; padding:9px 11px; border-radius:4px; border:1px solid rgba(251,176,59,0.35); background:rgba(251,176,59,0.08); font-size:0.76rem; line-height:1.5; color:var(--text-secondary); }
    .selx-conseq.none { border-color:var(--border); background:var(--surface2); color:var(--text-muted); }
    .selx-empty { padding:14px 12px; font-size:0.8rem; color:var(--text-muted); }
    /* ── Group preview ────────────────────────────────────────────────────────────────
       The reading surface deliberately REUSES .tr-para / .tr-speaker / .tr-word /
       .tr-st-removed rather than restyling them, so preview inherits every light-theme and
       contrast fix the transcript already has, and cut strikethrough looks identical here
       and there. Only the assembly chrome below is new. */
    /* ══ CLIPS WORKSPACE ══════════════════════════════════════════════════════════════
       Full-width sibling of #tr-scroll. Sized to fill the editor column; the tools rail and
       comments panel are stood down for the duration (see cgWsEnter), so the two columns get
       the whole width — which is the entire reason this view exists. */
    /* FRAMED, unlike preview. The frame's job is to say the transcript is still there behind
       this: preview is a FILTER on the normal view (player in the rail, panel still useful,
       only the body swapped), while the workspace is a DEPARTURE — transcript gone, player
       irrelevant. The inset gutter of darker ground is what makes it read as a layer over the
       editor rather than a new page. The top rail is the existing clip sage, not a new colour. */
    .cg-ws { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden;
             margin:10px 12px 12px; border-radius:10px; border:0.5px solid var(--border-strong);
             background:var(--rv-canvas); box-shadow:0 18px 44px rgba(0,0,0,.46), 0 2px 10px rgba(0,0,0,.34);
             position:relative; }
    .cg-ws::before { content:''; position:absolute; top:0; left:0; right:0; height:3px;
                     background:rgb(74,124,89); border-radius:10px 10px 0 0; }
    /* The gutter: the ground behind the frame is darker than the frame itself. */
    /* ⚠️ BOTH SPELLINGS OF display:none, AND THIS RULE IS NOT THEME-SCOPED — which is what made
       the gap an ACCESSIBILITY defect rather than a cosmetic one. JS serializes
       `el.style.display='none'` WITH a space; the static #cg-ws markup is hand-written WITHOUT
       one. A single substring :not() sees only the JS spelling, so a CLOSED workspace matched on
       every fresh load and painted the pane #07090c — and because the selector carries no
       [data-theme], it did so in BOTH themes. Item 333 fixed the LIGHT sibling below and, by
       removing it from the match set, handed the win to this one: light-mode transcript text
       (#23201C) then sat on #07090c at 1.23:1, against 4.5:1 for AA. Measured 2026-08-15.
       The two rules are a PAIR and must be edited as one — see the light one in the
       [data-theme="light"] block, and checks/workspace-containment.mjs, which now asserts both. */
    #review-view.tr-active .tr-left:has(> .cg-ws:not([style*="display: none"]):not([style*="display:none"])) { background:#07090c; }
    .cg-ws .cgws-top { padding-top:17px; }   /* clear the 3px rail */
    .cgws-top { flex-shrink:0; display:flex; align-items:center; gap:14px; padding:14px 20px; border-bottom:0.5px solid var(--border); }
    .cgws-back { display:inline-flex; align-items:center; gap:5px; flex-shrink:0; background:none; border:0.5px solid var(--border-strong); border-radius:6px; color:var(--text); font-family:inherit; font-size:0.76rem; padding:5px 11px 5px 8px; cursor:pointer; }
    .cgws-back:hover { background:rgba(255,255,255,0.06); border-color:var(--text-muted); }
    .cgws-ctx { min-width:0; }
    .cgws-ctx-name { font-size:0.86rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cgws-ctx-sub { font-size:0.62rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--text-muted); }
    .cgws-total { margin-left:auto; flex-shrink:0; font-size:0.76rem; color:var(--text-muted); }
    .cgws-body { flex:1; display:flex; min-height:0; }

    /* Left: groups */
    .cgws-groups { flex:0 0 190px; display:flex; flex-direction:column; gap:2px; padding:12px 10px; border-right:0.5px solid var(--border); overflow-y:auto; }
    .cgws-gitem { display:flex; flex-direction:column; gap:2px; text-align:left; background:none; border:none; border-radius:6px; padding:7px 9px; cursor:pointer; font-family:inherit; }
    .cgws-gitem:hover { background:rgba(255,255,255,0.05); }
    .cgws-gitem.selected { background:rgba(74,124,89,0.18); box-shadow:inset 0 0 0 1px rgba(74,124,89,0.5); }
    .cgws-gname { font-size:0.78rem; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cgws-gmeta { font-size:0.66rem; color:var(--text-muted); }
    .cgws-grule { height:0; border-top:0.5px solid var(--border); margin:8px 4px; }
    .cgws-gung .cgws-gname { color:var(--text-muted); font-weight:500; }
    .cgws-new { margin-top:8px; background:none; border:0.5px dashed var(--border-strong); border-radius:6px; color:var(--text-muted); font-family:inherit; font-size:0.72rem; padding:6px 9px; cursor:pointer; }
    .cgws-new:hover { color:var(--text); border-color:var(--text-muted); }
    .cgws-side-empty { font-size:0.72rem; color:var(--text-muted); padding:8px 9px; }

    /* Right: the selected group */
    .cgws-main { flex:1; min-width:0; display:flex; flex-direction:column; overflow-y:auto; padding:16px 22px 28px; }
    .cgws-head { display:flex; align-items:flex-start; gap:14px; flex-shrink:0; padding-bottom:12px; border-bottom:0.5px solid var(--border); margin-bottom:14px; }
    .cgws-head-text { min-width:0; }
    .cgws-title { margin:0; font-size:1.05rem; font-weight:600; color:var(--text); }
    .cgws-sub { font-size:0.72rem; color:var(--text-muted); margin-top:3px; }
    .cgws-head-acts { margin-left:auto; display:flex; gap:8px; flex-shrink:0; }
    /* Labelled, not bare icons — a control with room to say what it does should say it. */
    .cgws-btn { display:inline-flex; align-items:center; gap:6px; background:none; border:0.5px solid var(--border-strong); border-radius:6px; color:var(--text); font-family:inherit; font-size:0.75rem; padding:6px 12px; cursor:pointer; }
    .cgws-btn:hover { background:rgba(255,255,255,0.06); border-color:var(--text-muted); }
    .cgws-empty { font-size:0.8rem; color:var(--text-muted); padding:26px 4px; line-height:1.6; }
    .cgws-cards { display:flex; flex-direction:column; gap:8px; }
    .cgws-card { display:flex; align-items:flex-start; gap:10px; padding:12px 12px 13px; background:var(--rv-surface); border:0.5px solid var(--border); border-radius:8px; position:relative; }
    .cgws-card:hover { border-color:var(--border-strong); }
    .cgws-card.dragging { opacity:0.4; }
    .cgws-card.drop-before { box-shadow:inset 0 2px 0 var(--color-clip); }
    .cgws-card.drop-after { box-shadow:inset 0 -2px 0 var(--color-clip); }
    .cgws-grip { flex-shrink:0; width:11px; margin-top:3px; color:var(--text-muted); opacity:0.45; cursor:grab; }
    .cgws-card:hover .cgws-grip { opacity:0.8; }
    .cgws-grip-none { cursor:default; }
    .cgws-card-main { flex:1; min-width:0; cursor:pointer; }
    .cgws-meta { font-size:0.68rem; font-family:ui-monospace,monospace; color:var(--text-muted); margin-bottom:5px; }
    /* FULL text, no clamp — room for whole sentences is the point of this view. */
    .cgws-text { font-size:0.88rem; line-height:1.55; color:var(--text); white-space:pre-wrap; }
    .cgws-also { font-size:0.66rem; color:var(--text-muted); margin-top:6px; }
    .cgws-menu { flex-shrink:0; }
    /* The panel's ▶ is kept (it is a client's affordance while reading, and preview is viewing
       not structure) but it was unlabelled. Name it on hover rather than deleting it. */
    .cg-act-preview { position:relative; }
    .cg-act-preview::after { content:attr(data-label); position:absolute; right:calc(100% + 6px); top:50%; transform:translateY(-50%); white-space:nowrap; font-size:0.62rem; color:var(--text-muted); background:var(--rv-surface); border:0.5px solid var(--border); border-radius:4px; padding:2px 6px; opacity:0; pointer-events:none; transition:opacity .12s; }
    .cg-act-preview:hover::after { opacity:1; }
    .cg-wsopen { display:flex; align-items:center; justify-content:center; gap:7px; margin:10px 12px 4px; padding:7px 10px; width:calc(100% - 24px); background:none; border:0.5px solid var(--border-strong); border-radius:6px; color:var(--text); font-family:inherit; font-size:0.74rem; cursor:pointer; }
    .cg-wsopen:hover { background:rgba(255,255,255,0.06); border-color:var(--text-muted); }

    /* Matches .tr-scroll's geometry so the sequence sits on exactly the ground the normal
       transcript does. The difference was `scrollbar-gutter:stable both-edges`, which reserves
       a scrollbar's width down BOTH sides — the transcript reserves none, so preview alone was
       held off the container edges and the reserved strip read as panel showing beside the
       content. Same padding, no gutter, same ground. */
    .cg-pv-scroll { flex:1; overflow-y:auto; padding:0 48px 28px; -webkit-user-select:text; user-select:text; }
    /* The bar reads as part of the panel, not as a band laid on top of it. It used to paint
       --rv-canvas (#E2E5E9 light / #000 dark) against the panel's --rv-surface, which is what
       made it a distinct block; it now paints the SURFACE, so the fill matches its surroundings
       and only the hairline below separates the bar from the sequence.
       The background is NOT removed. This element is position:sticky, so its fill is what stops
       the sequence text scrolling visibly through it — `background:none` would look correct at
       rest and smear the moment anyone scrolled. Matching the surface is how the band goes away
       without giving up the occlusion.

       FULL-BLEED. The negative margins cancel .cg-pv-scroll's 48px side padding so the bar —
       and, the point of it, the hairline under the track — runs the whole width of the
       container it sits in, instead of stopping 48px short and leaving panel showing beside it.
       The matching padding puts the bar's CONTENTS back on the same left edge as the sequence
       below, so nothing moves except the fill and the rule. */
    .cg-pv-bar { position:sticky; top:0; z-index:5; background:var(--rv-surface); padding:14px 48px 10px; margin:0 -48px 6px; border-bottom:0.5px solid var(--border); }
    .cg-pv-bartop { display:flex; align-items:center; gap:10px; margin-bottom:9px; }
    /* Lighter border now it sits on the panel rather than on a band: --border-strong existed to
       hold its own against the canvas fill, and against the surface it reads as a hard ring. */
    .cg-pv-play { flex-shrink:0; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center;
                  background:none; border:0.5px solid var(--border); border-radius:50%; color:var(--text);
                  cursor:pointer; padding:0; }
    .cg-pv-play:hover { background:rgba(255,255,255,0.08); border-color:var(--text-muted); }
    .cg-pv-title { flex:1; min-width:0; font-size:0.78rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-secondary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cg-pv-count { flex-shrink:0; font-size:0.7rem; font-weight:600; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
    .cg-pv-exit { flex-shrink:0; background:none; border:0.5px solid var(--border-strong); color:var(--text-secondary); border-radius:4px; padding:3px 9px; font-family:'Inter',sans-serif; font-size:0.68rem; font-weight:600; cursor:pointer; }
    .cg-pv-exit:hover { color:var(--text); border-color:var(--text-muted); }
    /* Segments are proportional to RAW clip spans — the same figure the group row quotes and
       the same one the EDL delivers. */
    .cg-pv-segs { display:flex; gap:2px; height:6px; }
    .cg-pv-seg { position:relative; background:var(--border-strong); border-radius:2px; overflow:hidden; cursor:pointer; min-width:3px; }
    .cg-pv-seg:hover { outline:1px solid var(--text-muted); outline-offset:1px; }
    /* The TRACK is neutral — the pale green only read as "track" against the band, and on the
       panel it looked like a second, weaker fill competing with the real one. The current
       segment stays distinguishable by being a touch lighter than its neighbours AND by being
       the only one carrying a fill. The FILL itself stays sage: that is the progress, and it is
       the one thing here that should be coloured. */
    .cg-pv-seg.current { background:rgba(255,255,255,0.26); }
    .cg-pv-seg-fill { position:absolute; left:0; top:0; bottom:0; width:0%; background:#4A7C59; }
    .cg-pv-clip { margin:0 0 26px; padding-top:8px; }
    .cg-pv-head { display:flex; align-items:center; gap:9px; margin-bottom:8px; flex-wrap:wrap; }
    .cg-pv-num { flex-shrink:0; width:19px; height:19px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--border-strong); color:var(--text-secondary); font-size:0.62rem; font-weight:700; font-variant-numeric:tabular-nums; }
    .cg-pv-clip.current .cg-pv-num { background:#4A7C59; color:#fff; }
    /* --text-secondary, not --text-muted: muted measures 4.39 on the light canvas, under AA at
       this size. The panel's muted figures sit on the lighter --rv-surface and do pass there. */
    .cg-pv-tc, .cg-pv-dur { font-family:'JetBrains Mono',monospace; font-size:0.66rem; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
    .cg-pv-dur { padding-left:1px; }
    /* The manual order need not follow the interview. Name the jump where it happens rather
       than letting it read as a transcript glitch. */
    .cg-pv-back { font-size:0.6rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-secondary); border:0.5px solid var(--border-strong); border-radius:3px; padding:1px 5px; }
    .cg-pv-block { margin-bottom:14px; }
    .cg-pv-speaker { font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-secondary); margin-bottom:5px; }
    /* Dimming the passages you're not on, but 0.55 measured 3.64 on light / 4.25 on dark —
       under AA for body text somebody is expected to READ. 0.65 clears it on both (5.25 / 5.47)
       and still separates the current clip clearly. */
    .cg-pv-clip:not(.current) .tr-para { opacity:0.65; transition:opacity .2s; }
    .cg-pv-nowords { font-size:0.78rem; color:var(--text-secondary); padding-left:16px; }
    /* Sequence rail — the same order, in the CLIPS tab, so you can jump without scrolling. */
    .cg-rail { margin:0 12px 10px; padding:9px 10px; border:0.5px solid rgba(74,124,89,0.45); background:rgba(74,124,89,0.10); border-radius:6px; }
    /* ── No comment composer during preview ────────────────────────────────────────────
       NOT because a preview comment has no coherent anchor — it does. postComment anchors to
       rvVid.currentTime, and preview seeks the SOURCE media (cgPreviewGoto → trFadeSkip to
       clips[i].start), so that timestamp points at exactly the passage the commenter was
       watching. Reordering the sequence does not corrupt it; nothing about the source timeline
       changed.

       The real defect is rvRange. postComment prefers it over currentTime:
           const tc = rvRange ? rvRange.start : (rvComposerTimecode ? rvVid.currentTime : null);
       and preview does NOT clear it (rvRange is reset only on review entry, explicit clear, and
       after a post). So a transport range selected BEFORE entering preview silently wins and
       anchors the comment to a passage the commenter is no longer looking at.

       If commenting in preview is ever wanted back, the fix is `rvRange = null` in
       cgPreviewEnter — one line — not a redesign. This is hidden, not deleted, for that reason. */
    #review-view.cg-previewing .rv-composer,
    #review-view.cg-previewing #rv-pill { display:none !important; }
    .cg-rail-top { display:flex; align-items:center; gap:8px; font-size:0.7rem; color:var(--text-secondary); margin-bottom:8px; }
    .cg-rail-top span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cg-pv-word-active { background:rgba(122,162,224,0.16) !important; color:#dce8fb !important; border-radius:2px; box-shadow:inset 0 -0.16em 0 rgba(138,180,232,0.95) !important; }
    .cg-playing { flex-shrink:0; font-size:0.63rem; font-weight:600; color:var(--color-clip); }
    .cg-head-playing { box-shadow:inset 2px 0 0 var(--color-clip); }
    .cg-rail-playing { align-items:baseline; }
    .cg-rail-meta { color:var(--text-secondary); }
    .cg-rail-live { flex:0 0 auto !important; color:var(--color-clip); font-weight:600; }
    .cg-rail-exit { flex-shrink:0; background:none; border:0.5px solid var(--border-strong); color:var(--text-secondary); border-radius:4px; padding:2px 7px; font-family:'Inter',sans-serif; font-size:0.64rem; font-weight:600; cursor:pointer; }
    .cg-rail-items { display:flex; flex-wrap:wrap; gap:4px; }
    .cg-rail-item { display:flex; align-items:center; gap:5px; background:none; border:0.5px solid var(--border-strong); border-radius:4px; padding:2px 6px; color:var(--text-secondary); font-family:'Inter',sans-serif; font-size:0.62rem; cursor:pointer; font-variant-numeric:tabular-nums; }
    .cg-rail-item:hover { color:var(--text); border-color:var(--text-muted); }
    .cg-rail-item.current { background:#4A7C59; border-color:#4A7C59; color:#fff; }
    .cg-rail-n { font-weight:700; }
    /* Shared marks the EXCEPTION — internal is the default and needs no badge. Sage, because
       this is the one state where a group has left our side of the wall. */
    .cg-shared-badge { flex-shrink:0; font-size:0.56rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--color-clip); border:0.5px solid rgba(74,124,89,0.5); background:rgba(74,124,89,0.14); border-radius:3px; padding:1px 4px; }
    .cg-menu { position:relative; flex-shrink:0; }
    .cg-menu .btn-more { width:22px; height:22px; padding:0; line-height:1; }
    .cg-custom { flex-shrink:0; font-size:0.56rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--text-muted); border:0.5px solid var(--border-strong); border-radius:3px; padding:1px 4px; }
    .cg-act { flex-shrink:0; width:22px; height:22px; display:flex; align-items:center; justify-content:center; background:none; border:none; border-radius:4px; color:var(--text-muted); cursor:pointer; opacity:0; transition:opacity .15s, color .15s, background .15s; }
    .cg-head:hover .cg-act, .cg-act.pinned { opacity:1; }
    .cg-act:hover { color:var(--text); background:rgba(255,255,255,0.08); }
    .cg-body { padding:0 0 8px; }
    .cg-clip { display:flex; gap:8px; align-items:flex-start; padding:7px 12px 7px 26px; cursor:pointer; border-left:2px solid transparent; }
    .cg-clip:hover { background:rgba(255,255,255,0.04); border-left-color:var(--color-clip); }
    .cg-clip.dragging { opacity:0.4; }
    .cg-clip.drop-before { box-shadow:inset 0 2px 0 var(--color-clip); }
    .cg-clip.drop-after { box-shadow:inset 0 -2px 0 var(--color-clip); }
    .cg-grip { flex-shrink:0; margin-top:2px; color:var(--text-muted); opacity:0; cursor:grab; }
    .cg-clip:hover .cg-grip { opacity:0.65; }
    .cg-clip-main { flex:1; min-width:0; }
    .cg-clip-tc { font-size:0.63rem; font-family:ui-monospace,monospace; color:var(--text-muted); }
    /* Gold, and the only gold in the editor. Amber/sage/red are the MARK colours and each asserts
       something about a passage (item 41); this is a glyph in the panel, not a mark in the text,
       so it cannot be confused with one. Inline-flex + the negative vertical-align keeps it on the
       timecode baseline instead of pushing the line taller — the row height must not change
       between a favourite and a non-favourite, or the list twitches as you toggle. */
    .tr-quotes-help { font-size:0.72rem; line-height:1.5; color:var(--text-muted); margin-bottom:10px; }
    /* Reserves its line always, so a status message appearing does not jump the buttons down
       under the cursor that just pressed one. */
    .tr-quotes-status { min-height:1.15rem; margin-top:8px; font-size:0.72rem; line-height:1.5; }
    /* The summary. Scrolls INSIDE itself rather than growing the modal — the unresolved list is
       shown in full deliberately, and a 20-quote failure must not push the dialog off screen and
       take the Import button with it. */
    .tq-sum { margin-top:10px; padding:10px 12px; border-radius:5px; border:0.5px solid var(--border-strong);
              max-height:230px; overflow-y:auto; }
    .tq-sum.tq-ok   { border-color:rgba(92,138,92,0.5); }
    .tq-sum.tq-warn { border-color:rgba(232,185,74,0.6); }
    .tq-sum.tq-bad  { border-color:rgba(226,75,74,0.6); }
    .tq-head { font-size:0.78rem; font-weight:650; margin-bottom:2px; }
    .tq-ok   .tq-head { color:#5C8A5C; }
    .tq-warn .tq-head { color:#C79A2E; }
    .tq-bad  .tq-head { color:#E24B4A; }
    .tq-line { font-size:0.72rem; color:var(--text-secondary); }
    .tq-list { list-style:none; margin:9px 0 0; padding:0; display:flex; flex-direction:column; gap:7px; }
    .tq-list li { display:flex; flex-direction:column; gap:1px; padding-left:9px; border-left:2px solid var(--border-strong); }
    /* The quote wraps in full — truncating the thing that failed to match makes it unfixable. */
    .tq-q   { font-size:0.72rem; line-height:1.45; color:var(--text); overflow-wrap:anywhere; }
    .tq-why { font-size:0.67rem; line-height:1.4; color:var(--text-muted); }
    .tq-copy { margin-top:10px; padding:0; background:none; border:none; font-family:inherit;
               font-size:0.7rem; font-weight:600; color:var(--text-secondary); cursor:pointer; }
    .tq-copy:hover { color:var(--text); text-decoration:underline; }
    .tq-notes { margin-top:10px; padding-top:8px; border-top:0.5px solid var(--border-strong);
                display:flex; flex-direction:column; gap:4px; font-size:0.67rem; line-height:1.45; color:var(--text-muted); }
    .cg-fav { display:inline-flex; align-items:center; vertical-align:-1px; margin-right:4px; color:#E8B94A; cursor:pointer; }
    .cg-fav svg { display:block; }
    .cg-fav:hover { color:#F2CC6B; }
    .cg-fav-ro { cursor:default; }
    .cg-fav-ro:hover { color:#E8B94A; }
    .cg-clip-text { font-size:0.72rem; line-height:1.45; color:var(--text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .cg-clip-in { font-size:0.6rem; color:var(--text-muted); margin-top:2px; }
    .cg-group.drop-into .cg-head { box-shadow:inset 0 0 0 1.5px var(--color-clip); border-radius:5px; }
    /* .cg-newbtn removed with the in-list "+ New group" it styled — the footer uses .cg-foot-new.
       The WORKSPACE keeps its own bottom-anchored button under .cgws-new, deliberately untouched. */
    .cg-ungrouped .cg-name { color:var(--text-muted); font-weight:500; }

    /* Assign popover — lives on <body> (like #tr-sel-bar) so no transformed ancestor can clip
       it, which also puts it OUTSIDE the themed subtree; trApplyTheme stamps it directly. */
    .cg-pop { position:fixed; z-index:130; width:236px; max-height:320px; display:none; flex-direction:column; background:var(--rv-surface,#1a1a1a); border:0.5px solid var(--border-strong); border-radius:8px; box-shadow:0 12px 34px rgba(0,0,0,0.6); overflow:hidden; }
    .cg-pop.open { display:flex; }
    .cg-pop-head { padding:9px 11px 7px; font-size:0.62rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-muted); border-bottom:0.5px solid var(--border); }
    .cg-pop-list { flex:1; overflow-y:auto; padding:4px 0; }
    .cg-pop-row { display:flex; align-items:center; gap:8px; padding:6px 11px; cursor:pointer; font-size:0.75rem; color:var(--text); }
    .cg-pop-row:hover { background:rgba(255,255,255,0.06); }
    .cg-pop-box { flex-shrink:0; width:14px; height:14px; border:1.2px solid var(--border-strong); border-radius:3px; display:flex; align-items:center; justify-content:center; color:transparent; }
    /* Sage — the SAME rgb(74,124,89) the clip marks use, written literally rather than via
       var(--color-clip). The popover lives on <body>, outside #rv-transcript-view, so the
       light-theme override of that token (#3F6B4A, declared inside the editor's scope) never
       reaches it; the var resolved to the root value here and to a different value inside the
       editor, which is how these controls drifted off the clip palette. Literal values keep the
       popover reading as "clips" in both themes. */
    .cg-pop-row.on .cg-pop-box { background:rgb(74,124,89); border-color:rgb(74,124,89); color:#fff; }
    .cg-pop-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cg-pop-n { flex-shrink:0; font-size:0.62rem; color:var(--text-muted); }
    .cg-pop-new { display:flex; gap:6px; padding:8px 9px; border-top:0.5px solid var(--border); }
    .cg-pop-input { flex:1; min-width:0; background:rgba(255,255,255,0.06); border:0.5px solid var(--border-strong); border-radius:5px; padding:5px 8px; color:var(--text); font-size:0.72rem; font-family:inherit; }
    .cg-pop-input:focus { outline:none; border-color:rgb(74,124,89); }
    /* Client "Save this clip for…" — the note sits under the create row, separated, because
       it is about the whole request rather than the clip in hand. */
    .cg-pop-note { padding:8px 9px 9px; border-top:0.5px solid var(--border); }
    /* Ours, shared deliberately. Marked so a client can tell our assembly from their picks. */
    /* Send to the team — the client's closing signal, and the only action in MY CLIPS. */
    /* Not filed yet — a to-do, not a holding bucket. Dashed edge so it reads as unfinished. */
    .cg-unfiled .cg-head { box-shadow:inset 2px 0 0 var(--text-muted); }
    .cg-unfiled .cg-name { color:var(--text-muted); }
    .cg-send { display:block; width:calc(100% - 24px); margin:14px 12px 6px; padding:10px 12px; background:rgb(74,124,89); border:none; border-radius:6px; color:#fff; font-family:inherit; font-size:0.82rem; font-weight:600; cursor:pointer; }
    .cg-send:hover:not(:disabled) { background:rgb(63,107,74); }
    .cg-send:disabled { opacity:0.6; cursor:default; }
    .cg-sent { display:flex; align-items:flex-start; gap:9px; margin:14px 12px 6px; padding:10px 12px; border:0.5px solid rgba(74,124,89,0.45); background:rgba(74,124,89,0.12); border-radius:6px; }
    .cg-sent-tick { flex-shrink:0; color:var(--color-clip); margin-top:1px; }
    .cg-sent-main { font-size:0.8rem; font-weight:600; color:var(--text); }
    .cg-sent-sub { font-size:0.68rem; color:var(--text-muted); margin-top:2px; }
    /* FROM THE CLIENT — theirs, in our panel. Set apart so it never reads as one of ours. */
    .cg-fromclient { margin-top:16px; padding-top:12px; border-top:0.5px solid var(--border-strong); }
    .cg-fc-head { display:flex; align-items:baseline; gap:8px; margin:0 12px 6px; flex-wrap:wrap; }
    .cg-fc-title { font-size:0.6rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--color-clip); }
    .cg-fc-who { font-size:0.72rem; font-weight:600; color:var(--text); }
    .cg-fc-when { margin-left:auto; font-size:0.64rem; color:var(--text-muted); }
    .cg-fc-unsent { font-style:italic; }
    .cg-fc-set .cg-head { box-shadow:inset 2px 0 0 var(--color-clip); }
    .cg-fc-note { margin:8px 12px 4px; padding:8px 10px; border-left:2px solid var(--border-strong); font-size:0.75rem; line-height:1.5; color:var(--text-secondary); font-style:italic; }
    /* An empty-state that sits ABOVE other content, rather than replacing the pane. */
    /* A note-less highlight: a MARK in the comments list, not a note. Quieter than a card that
       carries something someone wrote — flatter ground, no avatar weight, muted quote — but
       still a full card with its timecode and its delete control. It is deliberately NOT a
       fourth tab: a highlight is the anchor for a comment, and four tabs do not fit at the
       panel's 280px minimum. */
    .cc-tr-bare { background:transparent; box-shadow:none; border-style:dashed; opacity:0.9; }
    .cc-tr-bare .cc-avatar { opacity:0.45; transform:scale(0.88); }
    .cc-tr-bare .cc-author { font-weight:500; color:var(--text-muted); }
    .cc-tr-bare .cc-tr-quote { color:var(--text-secondary); font-style:italic; }
    .cc-tr-bare:hover { background:rgba(255,255,255,0.03); }
    .cg-empty-inline { padding:14px 16px 10px; text-align:left; }
    .cg-sharedhead { margin:14px 12px 6px; font-size:0.6rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--text-muted); }
    .cg-shared .cg-head { box-shadow:inset 2px 0 0 var(--text-muted); }
    .cg-pop-add { flex-shrink:0; padding:5px 9px; background:rgb(74,124,89); border:none; border-radius:5px; color:#fff; font-size:0.7rem; font-weight:600; cursor:pointer; }
    .cg-pop-add:hover:not(:disabled) { background:rgb(63,107,74); }
    .cg-pop-add:disabled { opacity:0.4; cursor:default; }

    /* Group focus: dim everything, restore the focused group's clips. Opacity only — the
       sage .tr-st-clip tint is never recoloured, so a clip in two groups reads identically
       under either group's focus. */
    #tr-scroll.cg-focus .tr-word { opacity:0.3; transition:opacity .18s ease; }
    #tr-scroll.cg-focus .tr-word.cg-emph { opacity:1; }
    #tr-scroll.cg-focus .tr-speaker, #tr-scroll.cg-focus .tr-block-time { opacity:0.35; }
    .cg-focus-bar { display:flex; align-items:center; gap:8px; margin:0 12px 8px; padding:7px 10px; background:rgba(74,124,89,0.16); border:0.5px solid rgba(74,124,89,0.45); border-radius:6px; font-size:0.7rem; color:var(--text); }
    .cg-focus-bar button { margin-left:auto; background:none; border:none; color:var(--text-muted); font-size:0.68rem; cursor:pointer; text-decoration:underline; }
    .cg-focus-bar button:hover { color:var(--text); }

    /* Cuts section. The red accent is mark TYPE (cuts already read red in the transcript), not
       group identity — the never-by-colour rule applies to which group a clip belongs to, and
       still holds: no group anywhere carries a hue. */
    .cg-cut { border-left-color:transparent; }
    .cg-cut:hover { border-left-color:var(--color-removed); }
    .cg-cut .cg-clip-text { color:var(--text-muted); text-decoration:line-through; text-decoration-color:rgba(226,75,74,0.55); }
    .cg-cut.pending .cg-clip-text { text-decoration:none; font-style:italic; }
    .cg-cut-note { font-size:11px; color:var(--text-muted); margin-top:3px; white-space:pre-wrap; } /* the client's reason for the cut (item 367) */
  .cg-cut-silence { font-style:italic; opacity:0.75; }
    .cg-cut-pending { margin-left:7px; padding:1px 5px; border-radius:3px; font-size:0.58rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:#D69A3E; background:rgba(251,176,59,0.16); border:0.5px solid rgba(251,176,59,0.4); }
    /* Cut attribution — one line, ~18px. Everything the comment card's header carries (avatar,
       author, timestamp, badge) at a height the CUTS tab can survive at 350 rows. Wraps rather
       than overflows at 280px, and the badge is allowed to drop to a second line before the
       author name is truncated — who made a destructive edit outranks how it is laid out. */
    .cg-cut-attrib { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:4px; font-size:0.6rem; color:var(--text-muted); line-height:1.5; }
    .cg-cut-av { flex-shrink:0; width:15px; height:15px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.5rem; font-weight:700; letter-spacing:0.02em; color:var(--text-secondary); background:rgba(255,255,255,0.10); }
    .cg-cut-who { font-weight:600; color:var(--text-secondary); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:11ch; }
    .cg-cut-when { flex-shrink:0; }
    .cg-cut-when::before { content:'·'; margin-right:5px; opacity:0.6; }
    /* The badges were sized for the timecode line they used to sit on; scale them to this one. */
    .cg-cut-attrib .cg-cut-pending, .cg-cut-attrib .cg-cut-declined { margin-left:0; }
    .cg-cut-attrib .team-tag { transform:scale(0.92); transform-origin:left center; }
    .cg-cut-acts { flex-shrink:0; display:flex; align-items:center; gap:2px; }
    .cg-clip:hover .cg-cut-acts .cg-act, .cg-cut-acts .cg-act.pinned { opacity:1; }
    /* Clip rows carry ONE ⋯ instead of a strip of icons — see cgClipRow. Reveal on row hover,
       matching the icons it replaced, and stay lit while the menu is open so the button does not
       vanish out from under an open dropdown. (:has is the only way to reach the button from its
       sibling menu's state; where it is unsupported the button merely fades and the menu still
       works.) The menu itself is .more-menu, min-width 180px — it fits the panel's 280px floor. */
    .cg-clip-menu { flex-shrink:0; margin-top:-1px; }
    .cg-clip:hover .cg-clip-menu .cg-act { opacity:1; }
    .cg-clip-menu:has(.more-menu.open) .cg-act { opacity:1; }
    .cg-clip-menu .btn-more { width:22px; height:22px; padding:0; line-height:1; justify-content:center; background:none; border:none; }
    .cg-act-ok:hover { color:#3DAE6A; background:rgba(61,174,106,0.14); }
    .cg-act-no:hover, .cg-act-out:hover { color:var(--color-removed); background:rgba(226,75,74,0.13); }
    /* Cuts pane header — a count strip rather than a collapsible section head, since CUTS is now
       a whole tab and has nothing to collapse into. */
    #rv-tab-cuts { padding:4px 0 10px; }
    .cg-cutbar { display:flex; align-items:center; gap:8px; padding:9px 12px 8px; border-bottom:0.5px solid var(--border); font-size:0.7rem; font-weight:600; color:var(--text-muted); }
    .cg-cutbar .cg-cut-pending { margin-left:auto; }
    /* Declined: a proposal the team answered no to. Deliberately NEUTRAL, not red — the
       client did nothing wrong and this is not an error state, it is an answer. */
    .cg-cut-declined { margin-left:7px; padding:1px 5px; border-radius:3px; font-size:0.58rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:#9AA4AE; background:rgba(255,255,255,0.07); border:0.5px solid rgba(255,255,255,0.18); }
    .cg-cut.declined .cg-clip-text { opacity:0.6; text-decoration:none; }
    /* Authorship tags reuse .team-tag's geometry. CLIENT is the slate informational tone —
       it is a fact about provenance, not a decision or a warning, so never gold or red. */
    /* Compounded with .team-tag deliberately: that class is defined LATER in the sheet, so
       at equal specificity it wins and the tag rendered gold — the decision colour, on a
       provenance label. Slate is the informational tone; provenance is a fact, not a state. */
    .team-tag.tr-tag-client { color:#8FB8D4; background:rgba(74,122,153,0.20); margin-left:7px; }
    .team-tag.tr-tag-guest  { color:#9AA4AE; background:rgba(255,255,255,0.08); margin-left:7px; }
    .cg-cutlist { display:flex; flex-direction:column; }
    .tr-mini { flex-shrink:0; padding:12px; }
    .tr-mini-stage { position:relative; width:100%; height:0; padding-top:56.25%; flex-shrink:0; background:#000; border-radius:4px; cursor:pointer; overflow:hidden; background-size:cover; background-position:center; }
    .tr-mini-stage.audio { height:60px; padding-top:0; background:#13241a; color:#2dc48a; display:flex; align-items:center; justify-content:center; }
    /* ⟦item 1175⟧ THE ON-VIDEO PLAY BUTTON (Jeffrey, Nov 16: "keep it"): ~56px, a white ▶ on a soft see-through dark circle with a light
       blur, centred on the video, never orange (gold is for client decisions only). Shown ONLY while paused: .playing (painted by
       trPlayPaint from the element's own play / pause / ended events) hides it, and the old "show again on hover while playing" is gone.
       Hover while paused: a touch brighter. A click on the video flashes the action taken (▶ or ❚❚) for ~0.6s (.tr-mini-flash,
       trStageClick); during the flash the button itself stays hidden so two icons never sit on top of each other. */
    .tr-mini-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; width:56px; height:56px; border-radius:50%; background:rgba(0,0,0,0.45); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; display:flex; align-items:center; justify-content:center; pointer-events:none; transition:opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease; }
    .tr-mini-play svg { width:24px; height:24px; margin-left:3px; }
    .tr-mini-stage:not(.playing):hover .tr-mini-play { background:rgba(0,0,0,0.3); }
    .tr-mini-stage.audio .tr-mini-play { background:rgba(0,0,0,0.4); color:#1D9E75; }
    .tr-mini-stage.playing .tr-mini-play, .tr-mini-stage.tr-flashing .tr-mini-play { opacity:0; visibility:hidden; }
    .tr-mini-flash { position:absolute; top:50%; left:50%; z-index:3; width:56px; height:56px; margin:-28px 0 0 -28px; border-radius:50%; background:rgba(0,0,0,0.45); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; display:flex; align-items:center; justify-content:center; pointer-events:none; animation:tr-mini-flash 0.6s ease-out forwards; }
    .tr-mini-flash svg { width:24px; height:24px; }
    .tr-mini-flash.is-play svg { margin-left:3px; }
    @keyframes tr-mini-flash { 0% { opacity:0.95; transform:scale(0.9); } 100% { opacity:0; transform:scale(1.2); } }
    .tr-scrub { position:relative; height:6px; background:var(--border-strong); border-radius:3px; margin:10px 7px 0; cursor:pointer; }
    .tr-scrub-fill { position:absolute; left:0; top:0; bottom:0; width:0%; background:rgba(255,255,255,0.55); border-radius:3px; }
    .tr-scrub-fill::after { content:''; position:absolute; right:-6px; top:50%; transform:translateY(-50%); width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,0.55); box-shadow:0 1px 3px rgba(0,0,0,0.4); }
    .tr-scrub.audio .tr-scrub-fill { background:#1D9E75; }
    .tr-mini-wave { color:#2dc48a; display:flex; align-items:center; justify-content:center; pointer-events:none; }
    .tr-mini-time { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; color:rgba(255,255,255,0.4); margin-top:8px; }
    .tr-playall-btn.active { color:rgba(255,255,255,0.55); border-color:rgba(255,255,255,0.5); }
    .tr-panel-slot { flex:1; display:flex; min-height:0; }
    /* ⚠️ .tr-tools IS THE SCROLLER, NOT THIS SLOT (item 407 measured it: the slot reported
       scrollHeight === clientHeight while .tr-tools reported 501/260). min-height:0 or the
       flex child cannot shrink and nothing inside it can scroll. */
    .tr-tools-slot { flex:1 1 auto; display:flex; min-height:0; }
    /* ── THE PENDING PANEL — docked under the player, above the accordions ──────────────────
       ⚠️ SIGNAL ORANGE, NOT GOLD (item 69's split, item 181's ruling): orange means UNSAVED,
       gold means a decision or the asking of one. A range with no record yet is unsaved; nobody
       is being asked to decide anything until the type buttons appear. The nearest existing
       transient panel is .tr-carry-banner — same shape (a display:none sibling that PUSHES
       rather than overlays, 1px border at .45 on a .10 tint, var(--radius)) — and it is GOLD
       because it is about carried-forward marks awaiting review. Shape borrowed, hue not.
       ⚠️ flex:0 0 auto so it takes its own height and pushes the accordions down; the slot below
       is flex:1 and absorbs the rest. It never overlays. */
    .tr-pending-panel { flex:0 0 auto; display:flex; flex-direction:column; gap:0.4rem;
      margin:0 8px 8px; padding:0.6rem 0.7rem; border-radius:var(--radius);
      border:1px solid var(--border-secondary); background:var(--surface-2, rgba(255,255,255,.03));
      font-size:0.78rem; color:var(--text); }
    /* ⚠️ THE ORANGE IS THE PENDING STATE, NOT THE PANEL — item 181's ruling held and its SCOPE
       was the defect: the base rule wore Signal Orange in ALL THREE states, so the resting panel
       (nothing unsaved, nobody asked anything) read as a highlighted box. Design's Section B is a
       plain section at rest; the moment a range EXISTS — the unsaved state item 181's orange
       actually means — the tint returns. Do not "tidy" the two rules back into one. */
    .tr-pending-panel.is-pending { border-color:rgba(247,147,30,0.45); background:rgba(247,147,30,0.10); }
    /* The set edge's real timecode inside the field (design §2: "47:42 in"). Same box as the key
       glyph it replaces — tabular so the field does not breathe as the numbers change mid-drag. */
    .tpp-btn-tc { font-weight:600; font-variant-numeric:tabular-nums; }
    .tpp-head { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
    .tpp-title { font-size:0.66rem; font-weight:700; letter-spacing:0.12em; color:#F7931E; }
    .tpp-x { background:none; border:none; color:var(--text-secondary); font-size:1.05rem;
      line-height:1; padding:0 2px; cursor:pointer; }
    .tpp-x:hover { color:var(--text); }
    .tpp-tc { font-size:0.86rem; font-weight:600; font-variant-numeric:tabular-nums; }
    .tpp-sub { font-size:0.72rem; color:var(--text-secondary); }
    /* The pair is ONE row, both halves equal, so it reads as a pair rather than as a live
       control beside a dead one. flex:1 1 0 (not flex:1) — content basis would size "in" and
       "out" differently. */
    .tpp-io { display:flex; gap:0.4rem; }
    .tpp-btn { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center;
      gap:0.35rem; padding:0.34rem 0.5rem; border-radius:6px; border:1px solid var(--border-secondary);
      background:var(--surface-2, rgba(255,255,255,.04)); color:var(--text);
      font-size:0.74rem; cursor:pointer; }
    .tpp-btn:hover:not(:disabled) { border-color:rgba(247,147,30,0.55); }
    /* ⚠️ cursor:default, NOT not-allowed — item 180's lookup. This is unavailable RIGHT NOW, not
       forbidden: it returns the moment the media plays, and the hint below says so. */
    .tpp-btn:disabled { opacity:0.5; cursor:default; }
    .tpp-hint { font-size:0.68rem; color:var(--text-secondary); line-height:1.35; }
    .tpp-divider { height:1px; background:rgba(247,147,30,0.28); margin:0.1rem 0; }
    .tpp-make-label { font-size:0.66rem; font-weight:700; letter-spacing:0.1em;
      color:var(--text-secondary); }
    /* ⚠️ TWO COLUMNS, NOT A HARDCODED THREE-BUTTON LAYOUT. Team gets three types and Discard
       fills the fourth cell; a client gets two and Discard moves up into the third. The grid is
       filled from trCreatableTypes() (item 183), so the shape follows the audience rule rather
       than restating it. */
    .tpp-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:0.35rem; }
    /* Type buttons stay NEUTRAL surfaces — the panel's orange already says "unsaved"; colouring
       the choices would claim something about the choices themselves. */
    .tpp-cell { display:flex; align-items:center; justify-content:center; gap:0.3rem;
      padding:0.36rem 0.4rem; border-radius:6px; border:1px solid var(--border-secondary);
      background:var(--surface-2, rgba(255,255,255,.04)); color:var(--text); font-size:0.74rem;
      cursor:pointer; }
    .tpp-cell:hover { border-color:rgba(247,147,30,0.55); }
    .tpp-discard { color:var(--text-secondary); }
    /* Transcript view re-hosts the panel in its own slot, where it fills the column outright —
       the floating inset/rounding belongs to the review layout, so neutralise both here. */
    /* Let the panel keep the review page's own treatment (margin 8px 8px 8px 0, radius 10,
       --rv-surface, shadow) so the two pages can't drift. */
    .tr-comments-col .review-panel,
    .tr-review-slot .review-panel { width:auto; flex:1; min-height:0; }
    .tr-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; }
    .tr-head-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); }
    .tr-head-hint { font-family:'Inter',sans-serif; font-weight:400; font-size:9px; color:var(--text-muted); }
    .tr-block { margin-bottom:20px; }
    .tr-spk-check { margin-left:8px; padding:1px 6px; border:1px solid var(--border); border-radius:6px; font-size:11px; font-weight:600; color:var(--text-secondary); white-space:nowrap; vertical-align:middle; }   /* ⟦item 1004⟧ the team's "check speaker" */
    .tr-speaker { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-secondary); margin-bottom:6px; display:inline-block; }
    .tr-speaker[onclick] { cursor:pointer; }
    .tr-speaker[onclick]:hover { color:#d4d8de; }
    .tr-speaker-named { text-transform:none; letter-spacing:0.01em; } /* real names aren't shouted; inherits 15px */
    .tr-speaker-input { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; letter-spacing:0.01em; text-transform:none; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,0.5); border-radius:0; color:#c7cdd6; padding:0 0 1px; margin:0; outline:none; min-width:120px; -webkit-appearance:none; appearance:none; }
    /* 1.6, down from 2.05. At 2.05 a three-line passage occupied five lines of vertical space
       and consecutive lines stopped reading as one paragraph — the gap between lines competed
       with the gap between speakers. */
    .tr-para { font-family:'Inter',sans-serif; font-weight:400; font-size:17px; color:rgba(255,255,255,0.8); line-height:1.6; padding-left:16px; border-left:2px solid rgba(255,255,255,0.22); max-width:66ch; text-align:left !important; }
    #tr-scroll, #tr-scroll .tr-block, #tr-scroll .tr-para, #tr-scroll .tr-word { text-align:left !important; } /* force left-align, override anything */
    /* ── Loading skeleton (Option D) ───────────────────────────── */
    @keyframes trskPulse { from { opacity:1; } to { opacity:0.4; } }
    @keyframes trskSpin { to { transform:rotate(360deg); } }
    #rv-neutral-loading { display:none; position:fixed; inset:0; z-index:400; background:var(--bg); flex-direction:column; align-items:center; justify-content:center; gap:22px; }
    #rv-neutral-loading.show { display:flex; }
    /* ⚠️ THE TOPBAR IS RAISED OVER THE COVER, THE COVER IS NOT LOWERED UNDER THE TOPBAR —
       and the difference is not stylistic. The cover exists to hide the review UI while the
       asset type is unknown, and the review view stacks as high as 120 (.tr-dl-menu, then
       #rv-range-label at 100, #rv-nudge at 40, the menus at 30, .review-header at 20). Dropping
       the cover below the topbar's z-index:10 would let all of those render straight through it.
       SCOPED TO WHILE THE COVER IS UP, because .ui-dialog-overlay ALSO sits at 400: a permanent
       `.topbar { z-index:401 }` would put every uiConfirm/uiChoose overlay UNDER the topbar,
       which is a worse bug than the one being fixed and would show up on a destructive confirm.
       So: one class, on for exactly as long as the cover is, and Back + the breadcrumb stay
       live throughout. They were always RENDERED during the wait — renderBreadcrumb runs before
       the cover lifts — merely painted over, so this exposes what is already there rather than
       building a new escape route. */
    body.rv-cover-up .topbar { z-index: 401; }
    .rv-neutral-logo { font-family:'Montserrat',sans-serif; font-weight:700; font-size:12px; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-muted); }
    .rv-neutral-spinner { width:34px; height:34px; border:3px solid var(--border-strong); border-top-color:var(--rd-gold); border-radius:50%; animation:trskSpin 0.8s linear infinite; }
    .trsk { animation:trskPulse 1.5s ease-in-out infinite alternate; }
    .trsk-line, .trsk-tab { background:#2a2a2a; border-radius:4px; }
    .tr-mini-stage .trsk-ring { width:46px; height:46px; border-radius:50%; border:3px solid rgba(255,255,255,0.3); }   /* ⟦item 1175⟧ was orange rgba(251,176,59,0.3): no orange on the player */
    .trsk-vlabel { position:absolute; bottom:10px; left:0; right:0; text-align:center; font-size:11px; color:var(--text-muted); }
    .trsk-tabs { display:flex; gap:1px; padding:8px 8px 0; border-bottom:0.5px solid var(--border); }
    .trsk-tab { flex:1 1 0; height:14px; margin:0 2px 8px; }
    .trsk-acts { padding:12px 16px; display:flex; flex-direction:column; gap:10px; }
    .trsk-act { border-left:3px solid #2a2a2a; border-radius:4px; padding:8px 10px; display:flex; flex-direction:column; gap:6px; background:var(--surface-1); }
    .trsk-act .trsk-line { height:12px; }
    .trsk-status { display:flex; align-items:center; gap:9px; font-size:12px; color:var(--text-muted); margin-bottom:24px; }
    .trsk-spinner { width:14px; height:14px; flex-shrink:0; border:2px solid var(--border-strong); border-top-color:#FBB03B; border-radius:50%; animation:trskSpin 0.8s linear infinite; }
    .trsk-turn { margin-bottom:26px; }
    .trsk-turn + .trsk-turn { border-top:0.5px solid var(--border); padding-top:22px; }
    .trsk-spk { width:120px; height:13px; background:rgba(251,176,59,0.2); border-radius:4px; margin-bottom:12px; }
    .trsk-para { padding-left:16px; border-left:2px solid rgba(255,255,255,0.12); display:flex; flex-direction:column; gap:10px; max-width:68ch; }
    .trsk-para .trsk-line { height:12px; }
    /* ── Review page loading skeleton — toolbar + comments (item 430) ──────────────
       The video frame keeps RV_VIDEO_LOADING_HTML (the pulsing ring) unchanged, its own
       region with its own trigger. These two are new, but reuse the SAME conventions as
       the transcript skeleton above (trsk/trskPulse shimmer, flat #2a2a2a fill, inline
       animation-delay stagger) and the deliverable-grid skeleton's approach of building
       the placeholder INSIDE the real structural classes (.comment-card/.cc-header/
       .rd-meta) so padding/gaps match exactly rather than being approximated. */
    .rvsk-chip { display:inline-block; width:64px; height:22px; border-radius:11px; background:#2a2a2a; }
    .rvsk-btn  { display:inline-block; width:132px; height:44px; border-radius:8px; background:#2a2a2a; }
    .rvsk-toolbar-fills { display:flex; align-items:center; gap:8px; }
    /* Placed INSIDE real .comment-card/.cc-header/.rd-meta so the container's own padding,
       gap and the avatar's real 24px circle carry over unchanged — only the content pieces
       are new flat fills, which is what keeps this from reflowing when renderComments()
       overwrites it with real cards. */
    .rvsk-card { cursor:default; }
    .rvsk-card:hover { background:var(--rd-card); border-color:var(--rd-card-bd); }
    .rvsk-fill { background:#2a2a2a; }
    .rvsk-line { height:11px; border-radius:4px; background:#2a2a2a; }
    .rvsk-name { width:38%; }
    .rvsk-pill { display:inline-block; width:58px; height:16px; border-radius:8px; background:#2a2a2a; }
    .rvsk-time { width:30%; }
    /* ══ PASS 6 · THE PLAYING RULE — progressive across the block (item 322) ═══════════════
     Design: "slate rule under the words already spoken, ending at a 2px pulsing caret …
     anchor the rule at the block's first word … NEVER A FILL." Ruled reading (a): the block,
     wrapping across lines. The rule's job is to say WHICH PASSAGE has been spoken and a
     passage is a speaker turn — restarting it at every line wrap would make it a fact about
     the COLUMN WIDTH rather than the audio, so the same rule would mean different things at
     different window sizes. "Keep it to one line" describes the specimen's own nowrap
     construction; every specimen that shows this is a single-line demo.

     ⚠️ COSTS NOTHING PER TICK, AND THAT IS WHY IT IS CSS RATHER THAN JS. Both classes are
     ALREADY maintained by trSyncWord — `.tr-block-active` on the block, `.tr-word-active` on
     the caret word — so "every word up to the caret" falls out of a sibling combinator with
     ZERO added DOM work. Measured: marking each spoken word costs 0.134ms/tick on a 300-word
     block against 0.005ms for what is already paid — 26x on top, at 60Hz, plus N style
     invalidations. Do NOT "simplify" this into a per-word class.

     ⚠️ AND THE CUSTOM PROPERTY IS OURS, NOT DESIGN'S — DO NOT COLLAPSE IT TO A PLAIN
     box-shadow. Design's specimen is static and can write one combined list
     (`0 0 0 1px var(--note-fill), inset 0 -3px 0 -0.5px var(--slate)`); we have TWO RULES that
     must compose, and box-shadow does not compose across rules — the winner REPLACES. A plain
     box-shadow here would silently drop the note's ring on spoken words, which is the thing
     commit 1b added to make a marked run read as one mark. `--tr-play` lets each mark rule
     append it. Three rules compose it today; the other 19 box-shadow rules on .tr-word are
     edit-mode, clip-preview or team-only and cannot co-occur with playback on a reading
     surface. */
  .tr-word { cursor:pointer; border-radius:3px; padding:0 1px; transition:background 0.1s;
             --tr-play:0 0 #0000; box-shadow:var(--tr-play); }
  /* The hue resolves ONCE on the scroller — theme and paused both feed it, so the rule and the
     caret below need no theme duplicates and cannot disagree about which colour they are. */
  .tr-scroll { --tr-play-hue:#7FB0CE; }
  .tr-scroll.tr-paused { --tr-play-hue:#A39D93; }
  /* ⚠️ `:has(.tr-word-active)` IS NOT DECORATION — IT IS WHAT STOPS THE WHOLE PARAGRAPH
     FLASHING, AND REMOVING IT LOOKS LIKE A SIMPLIFICATION. This rule SETS and the one below
     RESETS after the caret, so the reset needs `.tr-word-active` to exist in order to match
     anything. `trSyncWord` skips its block-class maintenance entirely when NO word contains
     currentTime (`active === -1`) while still having removed the old `.tr-word-active` above
     that guard — so the block keeps `.tr-block-active`, nothing carries `.tr-word-active`,
     the reset matches nothing, and EVERY word in the block rules at once.
     Measured on 049: that state is 18.1% of playback — 3,021 gaps of at least one frame,
     median 310ms, and 2,957 of them INSIDE a block, which is the whole paragraph.
     ⚠️ AND THE FIX IS NOT IN trSyncWord, WHICH IS WHY IT IS HERE. Clearing `.tr-block-active`
     during a gap would make `blkChanged` read the block as changed when the next word lands,
     firing trAutoScrollTo per gap — 2,957 extra scrolls per play-through, which is item 188's
     per-word-following defect returning. The stranded class is LOAD-BEARING there.
     With `:has()` all three states are correct and the intermediate cannot be expressed:
     both classes → progressive; block only → nothing painted; neither → nothing.
     Specificity is unchanged — `:has()` contributes its argument's — so this and the reset
     both score (0,3,0) and source order still settles it, reset last. */
  .tr-block-active:has(.tr-word-active) .tr-word { --tr-play:inset 0 -3px 0 -0.5px var(--tr-play-hue); }
  /* ...minus everything AFTER the caret. The general sibling combinator is what makes this
     free; words are siblings inside the block's single .tr-para (one per block, pinned by
     transcript-reading-type.mjs). */
  .tr-block-active .tr-word-active ~ .tr-word { --tr-play:0 0 #0000; }
  /* ⚠️ THE CARET IS SCOPED TO .tr-block-active DELIBERATELY, at two classes, so it beats
     .tr-word-low-confidence::after — a team diagnostic that would otherwise tie on specificity
     and win or lose by source order on any word that is both active and low-confidence. */
  /* ⚠️ OUT OF FLOW, AND THIS IS A MEASURED FIX RATHER THAN A TIDY-UP. As `display:inline-block`
     this caret was an IN-FLOW BOX INSIDE A LINE BOX, so inserting and removing it every tick
     re-laid-out the paragraph — and if the block's height changed, everything below it in a
     17,723-word scroller with it. Measured on preview-6f in Safari, paused, no forced reads:
     it cost 5ms per tick on a 679-word block (p90 length) and 0.57ms on a 51-word one, and
     its p95 hit 23ms against a 17ms floor even at 51 words — an occasional dropped frame at
     TYPICAL length, which is why this is correctness rather than tail tuning.
     ⚠️ DO NOT RESTORE `display:inline-block`. A decoration must not occupy a line box.
     `margin-top:-11px` centres it (half of height) rather than a transform, which would
     create a containing block and a compositing layer for no reason. */
  .tr-block-active .tr-word-active::after { content:''; position:absolute; right:-2px; top:50%;
    margin-top:-11px; width:2px; height:22px;
    background:var(--tr-play-hue); animation:tr-caret-blink 1s ease-in-out infinite; }
  .tr-scroll.tr-paused .tr-block-active .tr-word-active::after { animation:none; }
  @keyframes tr-caret-blink { 0%, 100% { opacity:1; } 50% { opacity:0.25; } }
  /* ⚠️ THE PORTAL'S FIRST prefers-reduced-motion BLOCK. Design requires it for the caret pulse
     and the stepped advance; the advance is already stepped (it moves on word boundaries, not
     on a transition), so the pulse is the only motion to hold. It holds a STATIC caret rather
     than removing it — the caret is information, the pulse is the decoration. */
  @media (prefers-reduced-motion: reduce) {
    .tr-block-active .tr-word-active::after { animation:none; }
    .tr-note-hint { transition:none; }   /* item 577: the first-note hint fades; here it simply goes */
  }
    /* ⚠️ A MARKED RUN IS ONE REGION, SO ITS WORDS DO NOT ROUND (item 174).
       Every word is its own span (`.join('')`, trailing space inside the span), so a marked
       passage is N adjacent boxes. Measured: the boxes TOUCH — largest gap across a nine-word
       run is 0.00px — so the fragmentation was never gaps. It was `.tr-word`'s 3px radius
       notching the tint at every word boundary, which at 15px body text reads as a row of pills
       rather than one struck passage.
       The radius stays on `.tr-word` itself because it is there for the HOVER background, where a
       single word really is its own region. It is withdrawn only where consecutive words share a
       tint. Specificity (0,2,0) beats `.tr-word`, and the light theme's `border-radius:2px` on
       `.tr-st-removed`/`.tr-st-strike` was DELETED rather than overridden — an id-scoped rule
       would have won on specificity whatever this one says, so leaving it would have fixed every
       treatment except the one the client sees most.
       ⚠️ ALL FIVE MARKED CLASSES, NOT JUST PENDING. The report was about a pending cut; the
       defect is per-word rounding on any tinted run, and highlight and clip are the runs a client
       sees most often. Fixing only the reported instance is item 171's shape. */
    .tr-word.tr-st-pending, .tr-word.tr-st-removed, .tr-word.tr-st-strike,
    .tr-word.tr-st-highlight, .tr-word.tr-st-clip { border-radius:0; }
    .tr-word:hover { background:rgba(255,255,255,0.1); }
    /* Transcript LIGHT reading mode — left column only; right panel stays dark */
    .tr-para, .tr-speaker, .tr-block-time { transition:color 0.2s ease; }
    .tr-ts { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; color:rgba(255,255,255,0.45); cursor:pointer; margin-left:6px; white-space:nowrap; }
    .tr-ts:hover { color:#c7cdd6; }
    .tr-empty { color:var(--text-muted); font-size:13px; padding:2rem 0; }
    .tr-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:4rem 1rem; color:var(--text-muted); }
    .tr-empty-state p { font-size:13px; }
    .tr-generate-btn { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; background:rgba(255,255,255,0.15); color:#c7cdd6; border:0.5px solid rgba(255,255,255,0.4); border-radius:4px; padding:8px 16px; cursor:pointer; }
    .tr-generate-btn:hover { background:rgba(255,255,255,0.25); }
    .tr-approve { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:0.5px solid var(--border); background:var(--rv-surface); }
    /* Keyboard shortcuts overlay */
    #rv-help-btn:hover { color:var(--rd-gold); border-color:var(--rd-gold); }
    .sc-modal { max-width:420px; width:100%; background:#1a1a1a; border:0.5px solid rgba(255,255,255,0.1); border-radius:6px; padding:18px 20px; }
    .sc-header { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); margin-bottom:14px; }
    .sc-section { margin-bottom:14px; }
    .sc-section:last-child { margin-bottom:0; }
    .sc-section-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.06em; color:#FBB03B; margin-bottom:6px; }
    .sc-row { display:flex; align-items:center; justify-content:space-between; padding:5px 0; font-family:'Inter',sans-serif; font-size:12px; color:var(--text); }
    .sc-row kbd { display:inline-block; background:rgba(255,255,255,0.08); border:0.5px solid rgba(255,255,255,0.15); border-radius:4px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; padding:3px 7px; margin-left:5px; color:var(--text); }
    /* Transcripts page */
    .tp-btn { font-family:'Montserrat',sans-serif; font-weight:700; font-size:11px; border-radius:4px; padding:8px 14px; cursor:pointer; margin-left:8px; }
    .tp-btn-secondary { background:var(--surface2); border:0.5px solid var(--border); color:var(--text); }
    .tp-btn-primary { background:#7c5cbf; border:none; color:#fff; }
    .tp-btn:hover { filter:brightness(1.08); }
    .tp-filter { display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; }
    .tp-filter-btn { background:none; border:0.5px solid var(--border); color:var(--text-muted); font-family:'Inter',sans-serif; font-size:12px; padding:5px 12px; border-radius:4px; cursor:pointer; }
    .tp-filter-btn.active { background:var(--surface2); color:var(--text); }
    .tp-fc { color:var(--text-muted); font-size:11px; }
    .tp-group { margin-bottom:22px; }
    .tp-group-head { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.08em; color:#FBB03B; padding:0 0 8px; border-bottom:0.5px solid var(--border); margin-bottom:8px; }
    .tp-row { display:flex; align-items:center; gap:12px; padding:11px 14px; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; margin-bottom:8px; cursor:pointer; transition:border-color .15s; }
    .tp-row:hover { border-color:rgba(255,255,255,0.22); }
    .tp-internal { border-left:1px solid rgba(255,255,255,0.14); }
    .tp-icon { width:34px; height:34px; flex-shrink:0; border-radius:4px; background:#14181e; border:0.5px solid rgba(255,255,255,0.14); color:#8FA0B3; display:flex; align-items:center; justify-content:center; }
    .tp-info { flex:1; min-width:0; }
    .tp-name { font-size:13.5px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .tp-meta { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
    .tp-badge { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; padding:2px 7px; border-radius:4px; flex-shrink:0; }
    .tp-badge.internal { background:var(--internal-bg); color:var(--internal); }
    .tp-badge.shared { background:rgba(29,158,117,0.15); color:#1D9E75; }
    .tp-status { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; padding:2px 7px; border-radius:4px; flex-shrink:0; }
    .tp-status.processing { background:rgba(110,155,200,0.14); color:#9bb0c8; }
    .tp-status.ready { background:rgba(251,176,59,0.14); color:#FBB03B; }
    .tp-status.approved { background:rgba(29,158,117,0.15); color:#1D9E75; }
    /* Work Queue tabs (team) */
    .wq-tabs { display:flex; gap:22px; border-bottom:1px solid var(--border); margin-bottom:1.1rem; }
    .wq-com-bulkbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 2px 14px; }
    .wq-com-bulkcount { font-family:'Inter',sans-serif; font-size:12px; color:var(--text-muted); }
    .wq-tab { display:inline-flex; align-items:center; gap:7px; background:none; border:none; cursor:pointer; padding:9px 1px; margin-bottom:-1px; font-family:inherit; font-size:13.5px; font-weight:600; color:#666; border-bottom:2px solid transparent; transition:color .15s; }
    .wq-tab:hover { color:#999; }
    .wq-tab.active { color:#FBB03B; border-bottom-color:#FBB03B; }
    .wq-tab-badge { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; font-size:11px; font-weight:600; background:rgba(255,255,255,0.08); color:inherit; }
    .wq-tab.active .wq-tab-badge { background:rgba(251,176,59,0.18); }
    /* Team work queue (Action Items, team view) */
    .ta-section { margin-bottom:18px; }
    .ta-head { display:flex; align-items:center; gap:8px; padding:6px 0 10px; cursor:pointer; user-select:none; }
    .ta-chev { color:rgba(255,255,255,0.4); transition:transform .15s; flex-shrink:0; }
    .ta-section.collapsed .ta-chev { transform:rotate(-90deg); }
    .ta-section.collapsed .ta-rows { display:none; }
    /* ⚠️ THE CARDS, NOT THE ROWS. Rows now live inside .wq-dcard, so the .ta-rows rule above
       collapses a section to a stack of bare card HEADERS rather than to nothing. Both rules
       are kept: .ta-rows still owns any ungrouped list. */
    .ta-section.collapsed .ta-cards { display:none; }
    .ta-sec-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:15px; color:#fff; letter-spacing:0.02em; }
    .ta-badge { font-family:'Montserrat',sans-serif; font-weight:700; font-size:12px; padding:3px 10px; border-radius:10px; }
    .ta-rows { display:flex; flex-direction:column; gap:6px; }
    /* Section helper line (e.g. Open comments: reply-or-resolve guidance). */
    .ta-sec-desc { font-family:'Inter',sans-serif; font-size:11.5px; color:var(--text-muted); margin:-4px 0 10px; padding-left:25px; }
    /* Divider above the deprioritised Not started group. */
    .wq-divider { height:0.5px; background:var(--border); margin:26px 0 20px; }
    /* Not started is deprioritised: muted, nobody is waiting on it. */
    .ta-section-muted { opacity:0.6; }
    .ta-section-muted .ta-sec-title { color:var(--text-secondary); }
    /* Outer row = optional checkbox in the left margin + the accent card. The blue
       accent line lives on .ta-row-card, so the checkbox sits OUTSIDE (left of) it. */
    .ta-row { display:flex; align-items:stretch; gap:10px; }
    /* ⚠️ WRAPS, so the floor above can never turn into horizontal overflow. Once the name is
       guaranteed 120px, a narrow row has to put the overage SOMEWHERE; without wrapping it
       would push .ta-actions past the card's right edge and out of reach. The buttons drop to
       a second line instead, which is legible at any width. row-gap only applies once wrapped,
       so a normal-width row is pixel-identical to before. */
    .ta-row-card { flex:1; min-width:0; display:flex; flex-wrap:wrap; row-gap:9px; align-items:center; gap:11px; background:#1a1a1a; border:0.5px solid rgba(255,255,255,0.06); border-left:2px solid var(--ta-color); border-radius:4px; padding:16px 14px; }
    .ta-row-card:hover { border-color:rgba(255,255,255,0.14); border-left-color:var(--ta-color); }
    /* In Review multi-select checkbox + bulk action bar. */
    /* Padding + equal negative margin = a ~32px click target around the 16px box
       (no layout shift) so near-misses toggle instead of opening the row. */
    /* "View all assets" grid icon inline in a Work Queue row's deliverable line. */
    .ta-grid-btn { display:inline-flex; align-items:center; vertical-align:middle; background:none; border:none; color:var(--text-muted); cursor:pointer; padding:2px; margin-left:6px; border-radius:3px; line-height:0; transition:color .15s, background .15s; }
    .ta-grid-btn:hover { color:var(--brand); background:rgba(255,255,255,0.08); }
    /* align-self:center → the checkbox is centered against the full row height,
       consistently across rows (no more one-sits-higher). */
    .ta-check { flex-shrink:0; align-self:center; display:flex; align-items:center; padding:8px; margin:-8px; cursor:pointer; }
    /* Neutral-grey checkbox (not stark white), consistent with the dark UI. */
    .ta-check input { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin:0; cursor:pointer; border:1.5px solid #6b6b6b; border-radius:4px; background:transparent; position:relative; transition:background .12s, border-color .12s; }
    .ta-check-spacer { width:32px; cursor:default; } /* 16px box + the 8px padding each side that .ta-check margins back out — border-box, so the padding is inside the width */
    .ta-check input:hover { border-color:#8a8a8a; }
    .ta-check input:checked { background:#8a8a8a; border-color:#8a8a8a; }
    .ta-check input:checked::after { content:''; position:absolute; left:4px; top:1px; width:4px; height:8px; border:solid #1a1a1a; border-width:0 2px 2px 0; transform:rotate(45deg); }
    /* Bulk reminder, Work Queue header. Deliberately NOT brand-filled: it fans out
       external email to many clients at once, so it stays secondary and doesn't compete
       with the client-specific actions in the rows below. margin-left:auto pushes it to
       the far end of the title row, away from the view toggle. */
    /* align-self:center — the row is align-items:baseline for the heading, which would
       otherwise hang the button off the title's text baseline. */
    /* Scope cue. The Work Queue is scoped to the SELECTED CLIENT (via
       /api/team-action-items → handleTeamActionItems(client, …)), but this button is not —
       nothing else on the page signals that, so the chip carries it. The confirm dialog
       names every affected client too; this makes scope visible before the click, not just
       during it. Don't remove on the assumption the page reads as workspace-wide. */
    .ra-scope { font-size:9.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); border:0.5px solid var(--border); border-radius:3px; padding:1px 5px; }
    .ta-thumb { width:40px; height:40px; flex-shrink:0; border-radius:7px; display:flex; align-items:center; justify-content:center; font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px; }
    .ta-thumb-dashed { border:1px dashed rgba(255,255,255,0.25)!important; background:rgba(255,255,255,0.03); color:rgba(255,255,255,0.4); font-size:18px; }
    /* ⚠️ `flex:1` HERE MEANT `flex-basis:0`, AND THAT IS WHY THE NAME VANISHED RATHER THAN
       TRUNCATING. Every sibling in the row — .ta-thumb, .ta-tag, .ta-actions, .inrev-urgency —
       is flex-shrink:0 by design. With basis 0 the name column starts at ZERO and only grows
       into whatever the fixed siblings leave over, so the moment their combined width reaches
       the row width there is no free space to grow into and `min-width:0` lets it settle at a
       few pixels. The result is not an ellipsis, it is a sliver of the first glyph: "Long
       Cut — Episode 3" renders as a bare vertical stroke.
       ⚠️ A REAL BASIS PLUS A FLOOR IS THE FIX, NOT A WIDER COLUMN. The name now starts at 210px
       and cannot be squeezed below 120px, which is where `text-overflow:ellipsis` starts doing
       the job it was always meant to do. Widening the page only moves the width at which the
       collapse happens; it does not stop it happening. */
    .ta-info { flex:1 1 210px; min-width:120px; }
    .ta-name { font-family:'Inter',sans-serif; font-weight:600; font-size:14px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ta-preview { font-family:'Inter',sans-serif; font-weight:400; font-size:12px; color:rgba(255,255,255,0.5); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
    .ta-meta { font-family:'Inter',sans-serif; font-weight:400; font-size:12px; color:rgba(255,255,255,0.3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
    /* ⚠️ ONE RECIPE, SIX STATES. The tint/ink/border pattern is written ONCE here and each
       .tag-* modifier only remaps which state token feeds it — so a state cannot acquire its own
       private treatment, which is exactly how the inline `background:<hex>1f;color:<hex>` this
       replaced let the Status page drift. Alphas are .badge-*'s own 0.14 / 0.55. (item 508) */
    .ta-tag { font-family:'Montserrat',sans-serif; font-weight:700; font-size:7px; text-transform:uppercase; letter-spacing:0.06em; padding:3px 7px; border-radius:10px; flex-shrink:0; white-space:nowrap;
              --st-tag: var(--st-quiet); --st-tag-rgb: var(--st-quiet-rgb);
              background: rgba(var(--st-tag-rgb),0.14); color: var(--st-tag); border: 0.5px solid rgba(var(--st-tag-rgb),0.55); }
    .ta-tag.tag-internal   { --st-tag: var(--st-internal);   --st-tag-rgb: var(--st-internal-rgb); }
    .ta-tag.tag-revision   { --st-tag: var(--st-revision);   --st-tag-rgb: var(--st-revision-rgb); }
    .ta-tag.tag-notify     { --st-tag: var(--st-notify);     --st-tag-rgb: var(--st-notify-rgb); }
    .ta-tag.tag-withclient { --st-tag: var(--st-withclient); --st-tag-rgb: var(--st-withclient-rgb); }
    .ta-tag.tag-approved   { --st-tag: var(--st-approved);   --st-tag-rgb: var(--st-approved-rgb); }
    .ta-tag.tag-quiet      { --st-tag: var(--st-quiet);      --st-tag-rgb: var(--st-quiet-rgb); }
    /* The row's left-border accent reads the SAME token as its tag — one state, one colour. */
    .ta-row-card.st-internal   { --ta-color: var(--st-internal); }
    .ta-row-card.st-revision   { --ta-color: var(--st-revision); }
    .ta-row-card.st-notify     { --ta-color: var(--st-notify); }
    .ta-row-card.st-withclient { --ta-color: var(--st-withclient); }
    .ta-row-card.st-approved   { --ta-color: var(--st-approved); }
    .ta-row-card.st-quiet      { --ta-color: var(--st-quiet); }
    /* margin-left:auto is a no-op on an unwrapped row (.ta-info already absorbs the slack) and
       is what keeps the buttons right-aligned on the second line once the row does wrap. */
    .ta-actions { display:flex; gap:6px; flex-shrink:0; margin-left:auto; }
    .ta-thumb svg { display:block; width:20px; height:20px; } /* proportional to the 40px tile */
    /* In Review row spacing (spacing only — no color/icon changes): wider checkbox
       gutter, more separation before the status badge, fixed badge→button gap. */
    /* In Review rows are dense (56px thumb, 2 compact lines) — keep the status pill
       and action button compact so they read as secondary, not competing elements. */
    /* Waiting-on-client rows: prominent elapsed + state label, urgency-coloured left border. */
    /* ══ IN REVIEW'S HEADLINE — THE WORK QUEUE'S METRICS, DELIBERATELY ═════════════════════════
       Same 36/800/-0.02em as `body.is-team #page-home .section-title`. The two screens are one
       product and the headline is the loudest thing on both, so a 26px one here would read as a
       lesser page rather than a different state.
       ⚠️ THE COUNT IS NOT AMBER, AND THE ABSENCE IS THE SIGNAL. #FBB03B on the Work Queue's count
       means "this is on you"; the same ink here would say the same thing about work that is
       explicitly not. Weight alone carries the number, and the span is kept so the two headlines
       stay one shape — the next reader should be changing a colour, not adding markup. */
    /* ══ STATUS PAGE (item 517) — the design handoff, over the hourly snapshot ═══════════════
       Tokens are the README's. State colours are the portal's where the portal already has them
       (revision = --st-revision, notify = --signal, team = --rd-violet, approved =
       --approved); the two with no counterpart (With client, In progress) are declared here once.
       GOLD IS FOR DECISIONS ONLY (README hard rule, item 66): action controls, the selection
       banner, the caption's clear link. Never a state. Type tiles are ASSET_TYPE_PALETTE's ring
       and fill (ruling 5) — nothing here declares a type colour. */
    #page-status { --sp-revision:var(--st-revision); --sp-notify:var(--signal); --sp-notify-rgb:247,147,30; --sp-client:#8FB8D4; --sp-client-rgb:143,184,212; --sp-team:var(--rd-violet); --sp-approved:var(--approved);
      --sp-progress:#B4B8C0; --sp-progress-rgb:180,184,192; /* sp-progress: the README's In-progress grey — the same hex as File's ring by coincidence; exempted like team-stage-text, never aliased to --at-file-ring (a state must not follow an asset type) */
      --sp-signoff-date:#6FCF8E; /* sp-signoff: the README's Approved TEXT variant — the same hex as audio's ring by coincidence, exempted like team-stage-text */
      --sp-bg:#1A1A1A; --sp-surface:#202020; --sp-surface2:#2A2A2A; --sp-hover:#1F1F1F; --sp-selected:#282828; --sp-bd:#2A2A2A; --sp-bd2:#2F2E2F; --sp-bd3:#3A393A; --sp-bd4:#4B4A4B;
      --sp-text2:#D6D5D6; --sp-text3:#B0AFB0; --sp-muted:#8C8B8C; --sp-disabled:#4B4A4B; }
    .sp-main { max-width:1120px; }
    .sp-head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px 32px; }
    .sp-title-row { display:flex; align-items:baseline; gap:16px; }
    .sp-title { margin:0; font-family:'Montserrat',sans-serif; font-weight:900; font-size:44px; letter-spacing:0.03em; text-transform:uppercase; line-height:1; color:#fff; }
    .sp-snap { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--sp-muted); }
    .sp-refresh { width:34px; height:34px; border-radius:5px; border:none; background:transparent; color:var(--sp-muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
    .sp-refresh:hover { color:#fff; background:#232323; }
    /* ⚠️ A ~9s JOB NEEDS A VISIBLE WORKING STATE — a dead button reads as broken, which is the
       whole reason item 513 called this route deferred rather than missing. The icon is already
       a refresh arrow, so it spins rather than being swapped for a second indicator.
       `prefers-reduced-motion` gets the disabled dimming without the rotation — the state is
       still legible, it just does not move. */
    .sp-refresh[disabled] { cursor:default; opacity:0.55; }
    .sp-refresh[disabled]:hover { color:var(--sp-muted); background:transparent; }
    .sp-refresh.is-working svg { animation:sp-spin 0.9s linear infinite; transform-origin:50% 50%; }
    @keyframes sp-spin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { .sp-refresh.is-working svg { animation:none; } }
    /* ⟦item 1175⟧ the click flash fades without growing (kept AFTER the portal's FIRST reduced-motion block, which playing-rule reads) */
    @media (prefers-reduced-motion: reduce) { .tr-mini-flash { animation-name:tr-mini-flash-fade; } @keyframes tr-mini-flash-fade { 0% { opacity:0.95; } 100% { opacity:0; } } }
    .sp-hero { margin:18px 0 0; font-family:'Inter',sans-serif; font-size:20px; font-weight:500; letter-spacing:-0.01em; color:var(--sp-text3); text-wrap:pretty; }
    .sp-hero b { color:var(--gold); font-weight:600; }
    .sp-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px 24px; padding-top:18px; margin:18px 0 34px; border-top:1px solid var(--sp-bd); }
    .sp-select-wrap { position:relative; }
    .sp-select { appearance:none; -webkit-appearance:none; min-width:240px; padding:10px 36px 10px 13px; border-radius:5px; background:var(--sp-surface); border:1px solid var(--sp-bd3); color:#fff; font-family:'Inter',sans-serif; font-size:14px; font-weight:500; cursor:pointer; }
    .sp-select-chev { position:absolute; right:12px; top:50%; transform:translateY(-50%); pointer-events:none; color:var(--sp-text3); }
    .sp-eye { display:inline-flex; align-items:center; gap:8px; background:none; border:none; padding:0; cursor:pointer; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--sp-muted); }
    .sp-eye.is-hidden { color:#fff; }
    .sp-caption { display:flex; align-items:center; gap:14px; margin:0 0 12px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; letter-spacing:0.16em; text-transform:uppercase; color:var(--sp-muted); }
    .sp-caption .sp-clear { font-family:'Inter',sans-serif; font-weight:500; font-size:12px; letter-spacing:0; text-transform:none; color:var(--gold); background:none; border:none; padding:0; cursor:pointer; }
    .sp-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(84px, 1fr)); gap:8px; margin-bottom:40px; }
    .sp-card { background:var(--sp-surface); border:1px solid var(--sp-bd); border-radius:5px; min-width:0; cursor:pointer; text-align:left; padding:0; font:inherit; color:inherit; overflow:hidden; }
    .sp-card:hover { background:#262626; }
    .sp-card-rule { height:3px; background:var(--sp-bd3); border-radius:5px 5px 0 0; }
    .sp-card-body { display:flex; flex-direction:column; gap:10px; padding:12px 12px 14px; }
    .sp-card-label { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; letter-spacing:0.06em; text-transform:uppercase; color:var(--sp-muted); overflow-wrap:anywhere; }
    .sp-card-n { font-family:'Montserrat',sans-serif; font-weight:900; font-size:24px; color:var(--sp-disabled); }
    .sp-card.has-n .sp-card-rule, .sp-card.has-n .sp-card-n { background:var(--sp-state); }
    .sp-card.has-n .sp-card-n { background:none; color:var(--sp-state); }
    .sp-card.is-on { background:var(--sp-selected); border-color:var(--sp-state); }
    .sp-card.is-on .sp-card-label { color:#fff; }
    .sp-card.is-revision, .sp-dot.is-revision  { --sp-state:var(--sp-revision); }
    .sp-card.is-notify, .sp-dot.is-notify      { --sp-state:var(--sp-notify); }
    .sp-card.is-client, .sp-dot.is-client      { --sp-state:var(--sp-client); }
    .sp-card.is-team, .sp-dot.is-team          { --sp-state:var(--sp-team); }
    .sp-card.is-progress, .sp-dot.is-progress  { --sp-state:var(--sp-progress); }
    .sp-card.is-approved, .sp-dot.is-approved  { --sp-state:var(--sp-approved); }
    /* Item 544 — shared-for-reference: settled, informational. The In-progress grey on purpose:
       a reference transcript is nobody's outstanding work, and a colour of its own would read as
       a sixth signal on a page whose cards are a to-do list. */
    .sp-card.is-reference, .sp-dot.is-reference { --sp-state:var(--sp-progress); }
    .sp-banner { position:sticky; top:16px; z-index:5; display:flex; align-items:center; gap:16px; border-radius:8px; padding:16px 18px; margin-bottom:28px; border:1px solid rgba(var(--rd-gold-rgb),0.38); box-shadow:0 10px 28px rgba(0,0,0,0.45); background:linear-gradient(90deg, rgba(var(--rd-gold-rgb),0.16) 0%, rgba(32,32,32,0.96) 46%, rgba(32,32,32,0.96) 100%); }
    .sp-banner-ico { width:42px; height:42px; flex-shrink:0; border-radius:8px; background:rgba(var(--rd-gold-rgb),0.16); border:1px solid rgba(var(--rd-gold-rgb),0.45); color:var(--gold); display:flex; align-items:center; justify-content:center; }
    .sp-banner-text { flex:1; min-width:0; }
    .sp-banner-title { font-family:'Inter',sans-serif; font-size:17px; font-weight:600; color:#fff; }
    .sp-banner-detail { font-family:'Inter',sans-serif; font-size:12.5px; color:var(--sp-muted); margin-top:2px; }
    .sp-banner-clear { background:none; border:none; padding:0; font-family:'Inter',sans-serif; font-size:13px; color:var(--sp-muted); cursor:pointer; }
    .sp-banner-clear:hover { color:#fff; }
    .sp-send { display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:#1A1A1A; border:none; border-radius:5px; padding:11px 16px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10.5px; letter-spacing:0.10em; text-transform:uppercase; cursor:pointer; }
    .sp-send:hover { background:var(--signal); }
    .sp-send:disabled { opacity:.6; cursor:default; }
    .sp-group { display:flex; flex-direction:column; overflow-x:auto; margin-bottom:44px; }
    .sp-group-head { display:flex; justify-content:space-between; align-items:flex-end; gap:32px; min-width:876px; padding-bottom:16px; border-bottom:1px solid var(--sp-rule, var(--sp-bd)); }
    /* The README's `<state color>66` rule: the state's rgb triple at 0.4. Tokens where the portal
       has them (a literal triple here is a second copy of the palette — asset-type-palette.mjs). */
    .sp-group.is-revision { --sp-rule:rgba(var(--st-revision-rgb),0.4); }
    .sp-group.is-notify   { --sp-rule:rgba(var(--sp-notify-rgb),0.4); }
    .sp-group.is-client   { --sp-rule:rgba(var(--sp-client-rgb),0.4); }
    .sp-group.is-team     { --sp-rule:rgba(var(--rd-violet-rgb),0.4); }
    .sp-group.is-progress { --sp-rule:rgba(var(--sp-progress-rgb),0.4); }
    .sp-group.is-reference { --sp-rule:rgba(var(--sp-progress-rgb),0.4); } /* item 544 — same grey as its dot */
    .sp-group.is-approved { --sp-rule:rgba(var(--st-approved-rgb),0.4); }
    .sp-eyebrow { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--sp-muted); }
    .sp-group-title { font-family:'Inter',sans-serif; font-size:26px; font-weight:600; letter-spacing:-0.015em; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:2px 0 0; cursor:pointer; }
    .sp-group-title:hover { text-decoration:underline; text-underline-offset:3px; }
    .sp-group-left { min-width:0; }
    .sp-group-right { display:flex; align-items:center; gap:14px; flex-shrink:0; }
    .sp-group-meta { font-family:'Inter',sans-serif; font-size:13.5px; color:var(--sp-muted); white-space:nowrap; }
    /* Add asset (item 519): a QUIET secondary control — .del-add-btn's own recipe (the portal's
       existing "Add asset" treatment on the deliverable page and the Work Queue header) at this
       header's all-caps typography. NOT gold: gold marks decision points, and adding an asset is a
       utility action; gold here outweighed the Release / Notify / Remind callouts that are
       decisions (item 518 shipped it gold — corrected). */
    .sp-add { display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:3px; background:var(--surface); border:0.5px solid rgba(255,255,255,0.15); font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; letter-spacing:0.10em; text-transform:uppercase; color:var(--text-muted); cursor:pointer; flex-shrink:0; }
    .sp-add:hover { color:var(--text); border-color:rgba(255,255,255,0.35); }
    /* ⟦item 1114⟧ the team → client message modal's styles (.tmsg-*, item 603 / 603a / 603b / M3) are deleted with the modal (Jeffrey, Nov 13: retire the old team message modal) */
    .sp-row.is-inert { cursor:default; }   /* item 526: the dispatch found nothing to open */
    /* Drop target (item 519): the portal's own drop visual (.bu-drop.dragging / .ag-add-card.drag —
       Signal Orange, never gold), shown on the whole group while a FILE drag is over it, with a
       label so the feature is found rather than stumbled on. */
    .sp-group { position:relative; border-radius:6px; }
    .sp-group.is-dropping { outline:1.5px dashed var(--brand); outline-offset:6px; background:rgba(var(--sp-notify-rgb),0.06); }
    .sp-group.is-dropping::after { content:attr(data-drop-label); position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--brand); background:rgba(26,26,26,0.72); border-radius:6px; }
    .sp-cols, .sp-row { display:grid; grid-template-columns:26px minmax(240px,1fr) 96px 104px 132px 80px 148px 32px; gap:18px; align-items:center; min-width:964px; }
    /* ⚠️ EIGHT TRACKS SINCE THE VISIBILITY COLUMN (item 554). .sp-cols and .sp-row share this
       declaration precisely so the head and the row cannot disagree about the count — emitting
       the wrong number of cells does not fail loudly, it shifts every later column by one. The
       min-width moved with it (860 → 964) or the new track would have been stolen from Asset. */
    /* The visibility chip: the portal-wide internal treatment, not a new one. --st-internal IS
       --rd-violet (the "internal only, never client-visible" token), and the light theme already
       maps that to its neutral gray, so both themes come for free. Same recipe as .agl-vis. */
    .sp-vis { display:inline-flex; align-items:center; gap:5px; font-family:'Inter',sans-serif; font-size:10.5px; font-weight:600; padding:2px 7px; border-radius:3px; white-space:nowrap; }
    .sp-vis svg { flex:none; }
    .sp-vis.is-internal { color:var(--st-internal); border:0.5px solid rgba(var(--st-internal-rgb),0.45); }
    .sp-vis.is-client   { color:var(--sp-muted);    border:0.5px solid var(--sp-bd4); }
    /* item 535: the ⋯ column. The wrap is the deliverable card's (absolute, bottom-right of a thumb);
       in a grid cell it sits in flow. The button keeps its own look — one trigger, one style. */
    .sp-menu { display:flex; justify-content:flex-end; }
    .sp-menu .ag-menu-wrap { position:static; }
    .sp-menu .ag-menu-btn { background:var(--surface2); border:0.5px solid var(--border); color:var(--text-muted); }
    .sp-menu .ag-menu-btn:hover { background:var(--border); color:var(--text); }
    /* ══ Story Builder (item 539) ══ */
    #page-story .sb-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
    .sb-head-right { display:flex; align-items:center; gap:8px; }
    .sb-proj-label { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
    #sb-project { background:var(--surface2); border:0.5px solid var(--border); color:var(--text); border-radius:6px; padding:.5rem .7rem; font-size:.9rem; min-width:240px; }
    .sb-tabs { display:flex; gap:4px; margin:18px 0 12px; border-bottom:1px solid var(--border); }
    .sb-tab { background:none; border:none; color:var(--text-muted); padding:.55rem .9rem; font-size:.92rem; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:inherit; }
    .sb-tab:hover { color:var(--text); }
    .sb-tab.is-active { color:var(--text); border-bottom-color:var(--brand); font-weight:600; }
    .sb-body { min-height:200px; }
    .sb-empty, .sb-loading { color:var(--text-muted); padding:2rem 0; text-align:center; font-size:.92rem; }
    .sb-hint { color:var(--text-muted); font-size:.82rem; margin-bottom:10px; }
    .sb-hint-warn { color:var(--st-revision); }   /* a recording that refused to load — stated, not swallowed */
    .sb-list { display:flex; flex-direction:column; gap:8px; }
    .sb-row { display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; background:var(--surface); border:0.5px solid var(--border); border-radius:8px; padding:12px 14px; }
    .sb-row[onclick] { cursor:pointer; } .sb-row[onclick]:hover { border-color:var(--border-strong); }
    .sb-row-main { display:flex; align-items:center; gap:10px; min-width:0; }
    .sb-row-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sb-row-meta { color:var(--text-muted); font-size:.82rem; white-space:nowrap; }
    .sb-row-open { color:var(--brand); font-size:.82rem; white-space:nowrap; }
    .sb-row-picks { margin-right:12px; background:#141d2a; color:#8fb0ff; border:1px solid #8fb0ff; border-radius:14px; padding:3px 10px; font:inherit; font-size:.78rem; font-weight:650; cursor:pointer; }   /* ⟦item 1051⟧ team blue */
    .sb-origin { font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:99px; border:1px solid var(--border); color:var(--text-muted); }
    .sb-origin.is-source { color:#7BA7C9; border-color:#3a5568; }
    .sb-origin.is-delivered { color:#8BB48A; border-color:#3f5c3e; }
    .sb-origin.is-rec { color:var(--text-muted); }
    .sb-reels-head { margin-bottom:12px; }
    .sb-lockchip { font-size:.72rem; color:#C9A227; }
    .sb-btn { background:var(--brand); color:#fff; border:none; border-radius:6px; padding:.5rem .85rem; font-size:.88rem; font-family:inherit; cursor:pointer; }
    .sb-btn:hover { background:var(--brand-dark); } .sb-btn:disabled { opacity:.45; cursor:not-allowed; }
    .sb-btn-ghost { background:var(--surface2); color:var(--text); border:0.5px solid var(--border); }
    .sb-btn-ghost:hover { background:var(--border); }
    .sb-btn-gold { background:#B4702A; } .sb-btn-gold:hover { background:#9c5f22; }
    .sb-btn-sm { padding:.32rem .6rem; font-size:.78rem; }
    /* Reel editor overlay */
    .sb-reel-editor { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:220; display:flex; align-items:center; justify-content:center; padding:24px; }
    .sb-re-frame { background:var(--bg); border:1px solid var(--border); border-radius:14px; width:100%; max-width:860px; max-height:90vh; display:flex; flex-direction:column; overflow:hidden; }
    .sb-re-head { display:flex; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid var(--border); align-items:flex-start; }
    .sb-re-titles { display:flex; flex-direction:column; gap:6px; flex:1; min-width:0; }
    .sb-re-title { background:transparent; border:none; color:var(--text); font-size:1.15rem; font-weight:700; font-family:inherit; outline:none; border-bottom:1px solid transparent; }
    .sb-re-title:focus { border-bottom-color:var(--border); }
    .sb-re-subtitle { background:transparent; border:none; color:var(--text-muted); font-size:.9rem; font-family:inherit; outline:none; }
    .sb-re-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .sb-re-status { color:var(--text-muted); font-size:.78rem; margin-right:4px; }
    .sb-re-status.is-error { color:var(--st-revision); }   /* a save that did not happen says so where you are looking */
    .sb-re-lockbanner { background:rgba(201,162,39,.12); border-bottom:1px solid rgba(201,162,39,.3); color:#D9B84A; padding:10px 18px; font-size:.86rem; }
    .sb-re-items { padding:14px 18px; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
    .sb-re-items.is-readonly { opacity:.72; }
    .sb-re-items.is-readonly input, .sb-re-items.is-readonly button { pointer-events:none; }
    .sb-item { background:var(--surface); border:0.5px solid var(--border); border-radius:8px; padding:10px 12px; }
    .sb-item-h { display:flex; align-items:center; gap:8px; }
    .sb-item-n { width:22px; height:22px; border-radius:99px; background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:.75rem; color:var(--text-muted); }
    .sb-item-rec { font-weight:600; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sb-item-dur { color:var(--text-muted); font-size:.8rem; }
    .sb-ai, .sb-fromclip { font-size:.66rem; text-transform:uppercase; letter-spacing:.05em; padding:1px 6px; border-radius:99px; border:1px solid var(--border); color:var(--text-muted); }
    .sb-item-trim { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:.8rem; color:var(--text-muted); flex-wrap:wrap; }
    .sb-item-trim input { width:78px; background:var(--surface2); border:0.5px solid var(--border); color:var(--text); border-radius:5px; padding:.28rem .4rem; font-family:inherit; }
    .sb-item-cuts { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
    .sb-cut { font-size:.74rem; background:rgba(226,75,74,.1); color:#E27A79; border:1px solid rgba(226,75,74,.25); border-radius:5px; padding:2px 6px; }
    .sb-cut .sb-x, .sb-x { background:none; border:none; color:inherit; cursor:pointer; font-size:.9rem; padding:0 2px; }
    .sb-item-actions { margin-top:8px; display:flex; gap:6px; justify-content:flex-end; }
    .sb-x2 { background:var(--surface2); border:0.5px solid var(--border); color:var(--text-muted); border-radius:5px; width:30px; height:26px; cursor:pointer; }
    .sb-x2:hover:not(:disabled) { color:var(--text); } .sb-x2:disabled { opacity:.35; cursor:default; }
    .sb-x2.sb-del:hover { color:#E24B4A; }

    .sp-cols { padding:10px 4px 0; font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:var(--sp-muted); }
    .sp-row { padding:16px 4px; border-bottom:1px solid #232323; }
    .sp-row:hover { background:var(--sp-hover); }
    .sp-row.is-selected { background:rgba(var(--rd-gold-rgb),0.06); }
    .sp-empty { padding:16px 4px; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--sp-muted); }
    .sp-cell-asset { display:flex; align-items:center; gap:10px; min-width:0; }
    .sp-tile { width:26px; height:26px; flex-shrink:0; border-radius:6px; display:flex; align-items:center; justify-content:center; }
    .sp-name { font-family:'Inter',sans-serif; font-size:15.5px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; cursor:pointer; }
    .sp-hero-tag { padding:3px 7px; border-radius:3px; border:1px solid var(--sp-bd4); font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; letter-spacing:0.14em; text-transform:uppercase; color:var(--sp-progress); flex-shrink:0; } /* deliberately NOT gold */
    .sp-comments { display:inline-flex; align-items:center; gap:5px; color:var(--sp-client); font-family:'Montserrat',sans-serif; font-weight:700; font-size:12.5px; }
    .sp-status { display:inline-flex; align-items:center; gap:8px; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--sp-text2); }
    .sp-dot { width:7px; height:7px; border-radius:2px; background:var(--sp-state); flex-shrink:0; }
    .sp-due { font-family:'Inter',sans-serif; font-size:13.5px; color:var(--sp-muted); }
    .sp-due.is-late { color:var(--st-revision); }
    .sp-move { display:flex; flex-direction:column; gap:2px; }
    .sp-move-days { font-family:'Montserrat',sans-serif; font-weight:900; font-size:15px; }
    .sp-move-why { font-family:'Inter',sans-serif; font-size:11.5px; }
    .sp-move.is-owe { color:var(--signal); }  .sp-move.is-noreply { color:var(--st-revision); }
    .sp-move.is-commented { color:var(--sp-client); }  .sp-move.is-waiting { color:var(--sp-progress); }  .sp-move.is-none { color:var(--sp-muted); }
    .sp-signoff-date { font-family:'Inter',sans-serif; font-size:12.5px; font-weight:500; color:var(--sp-signoff-date); }
    .sp-signoff-by { font-family:'Inter',sans-serif; font-size:11.5px; color:var(--sp-muted); }
    .sp-callout { display:flex; align-items:center; gap:14px; min-width:812px; margin:0 4px 8px; border-radius:4px; background:rgba(var(--rd-gold-rgb),0.06); padding:7px 10px 7px 14px; }
    .sp-callout-why { flex:1; min-width:0; font-family:'Inter',sans-serif; font-size:13px; color:var(--sp-text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    /* item 521 — the four callout actions (Release / Notify / Send reminder / Upload revision) take
       the .sp-add neutral recipe. Deliberate, Jeffrey-approved narrowing of the gold rule: gold
       marks WHERE action is owed (.sp-callout keeps its tint), no longer the control itself. */
    .sp-action { padding:4px 9px; border-radius:3px; border:0.5px solid rgba(255,255,255,0.15); background:var(--surface); font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; letter-spacing:0.10em; text-transform:uppercase; color:var(--text-muted); cursor:pointer; flex-shrink:0; }
    .sp-action:hover:not(:disabled) { color:var(--text); border-color:rgba(255,255,255,0.35); }
    .sp-action:disabled { opacity:.45; cursor:default; }
    /* .st-stage survives (status-pill-palette §5d and asset-type-palette pin it); the page no longer renders it. */
    .st-stage { font-family:'Montserrat',sans-serif; font-weight:700; font-size:9px; text-transform:uppercase; letter-spacing:0.06em; white-space:nowrap; flex-shrink:0; color:var(--text-muted); }
    /* ══ DELIVERABLE CARDS — THE ONE STRUCTURE BOTH TEAM LISTS ARE BUILT FROM ════════════════
       Work Queue and In Review are different STATES (one has actions and urgency, one has
       neither) but they are the same PRODUCT, and the card is what says so. Deliberately one
       class set rather than two: a `wq-` and an `ir-` copy of this block is how the two screens
       drift apart one padding value at a time, which is the drift items 130/154 exist about.
       ⚠️ THE DELIVERABLE NAME AND "VIEW ALL ASSETS" MOVED UP HERE FROM THE ROW. Every row under
       one card repeated the same deliverable · project line and carried its own grid button —
       N copies of one fact, and N buttons that all opened the same page. The card head states
       it once, which is what buys the row its width back for the thing that differs. */
    .wq-dcard { background:#151515; border:0.5px solid rgba(255,255,255,0.07); border-radius:6px; padding:13px 14px 14px; margin-bottom:10px; }
    .wq-dcard-head { display:flex; align-items:baseline; gap:10px; padding-bottom:11px; margin-bottom:11px; border-bottom:0.5px solid rgba(255,255,255,0.07); }
    /* ⚠️ THE PROJECT NAME YIELDS BEFORE THE DELIVERABLE NAME — 4× the shrink factor, not
       flex-shrink:0. A non-shrinking project label is the same defect as .ta-info's, one level
       up: "Acme Rebrand — Q3 Campaign" would hold its full width and truncate the deliverable
       the card is actually about. The deliverable name is the card's subject and truncates last. */
    .wq-dcard-title { font-family:'Inter',sans-serif; font-weight:600; font-size:13.5px; color:#fff; flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .wq-dcard-proj { font-family:'Inter',sans-serif; font-weight:400; font-size:11.5px; color:rgba(255,255,255,0.32); white-space:nowrap; flex:0 4 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
    /* Not a .ta-btn: this is a navigation link sitting in a header, and giving it the row
       buttons' uppercase Montserrat chrome would make it compete with the actions below it. */
    .wq-dcard-link { margin-left:auto; flex-shrink:0; display:inline-flex; align-items:center; gap:5px; background:none; border:none; padding:3px 6px; border-radius:3px; cursor:pointer; font-family:'Inter',sans-serif; font-size:11.5px; color:var(--text-muted); line-height:1; transition:color .15s, background .15s; }
    .wq-dcard-link:hover { color:var(--brand); background:rgba(255,255,255,0.07); }
    .wq-dcard-link svg { flex-shrink:0; }
    /* The rows already sit on their own surface; inside a card they lose the second background
       so the card reads as one object rather than a box full of boxes. */
    .wq-dcard .ta-row-card { background:#1e1e1e; }
    .ta-btn { flex-shrink:0; background:var(--surface); border:0.5px solid rgba(255,255,255,0.15); color:var(--text-muted); font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:0.05em; padding:8px 12px; border-radius:4px; cursor:pointer; white-space:nowrap; transition:border-color .15s,color .15s; }
    .ta-icon-btn { width:24px; height:24px; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--surface); border:0.5px solid rgba(255,255,255,0.15); border-radius:4px; color:rgba(255,255,255,0.3); cursor:pointer; transition:color .15s,border-color .15s; }
    .ta-icon-btn:hover { color:#1D9E75; border-color:rgba(29,158,117,0.5); }
    .ta-btn:hover { color:#fff; border-color:rgba(255,255,255,0.35); }
    /* Prominent variant — leads its row (e.g. Resolve on an open comment). */
    .ta-btn-primary { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.28); color:#fff; }
    .ta-btn-primary:hover { background:rgba(255,255,255,0.18); border-color:rgba(255,255,255,0.42); color:#fff; }
    .ta-btn:disabled { opacity:0.4; cursor:default; }
    .ta-btn:disabled:hover { color:var(--text-muted); border-color:rgba(255,255,255,0.15); }
    .tr-mini-empty { font-family:'Inter',sans-serif; font-size:11px; color:var(--text-muted); text-align:center; padding:18px 8px; border:0.5px dashed var(--border); border-radius:4px; }
    .tr-mini-removed { font-size:12px; }   /* ⟦item 1054⟧ "Video removed <date> · text only" */
    #review-view.tr-active .decision-bar { display:none; }

    /* Comments */
    /* Filters + open-count ride in their own rounded card, a step lighter than the panel, rather
       than sitting on the panel with a hairline under them. */
    /* §8 filter row (item 374): ONE row — segmented All/Open/Resolved left, the
       sort + (team-only) visibility menus as 28px icon buttons right. The two
       superseded rows collapsed into .rd-filter-row; .comment-filters IS the
       segmented container now, so the contrast census's bg chain
       [.comment-filters → .cfilter-btn] measures the real surface (#131317).
       Both legacy class names survive on purpose: filterCmt's selector and
       RV_CMT_CONTROLS' hide/restore list both address them. */
    .rd-filter-row { display: flex; align-items: center; gap: 8px; padding: 13px 14px 11px; flex-shrink: 0; }
    .comment-filters { display: flex; align-items: center; gap: 2px; margin: 0; padding: 3px; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; }
    .cfilter-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--rd-text-3); font-family: 'Archivo', 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: background 0.15s, color 0.15s; }
    .cfilter-btn.active { background: var(--rd-seg-active); color: var(--rd-text); }
    /* Side padding matches the tab track and filter card (12px) so everything in the panel shares
       one left/right edge; the gap is what separates cards now, not rules between them. */
    .comments-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
    .comment-empty { padding: 2.5rem 1rem; text-align: center; color: var(--rd-text-3); font-size: 0.82rem; line-height: 1.6; }

    /* Comment card */
    /* Each comment is its own card sitting ON the panel: radius 10px to match the tab track and
       filter card, and --surface (#202020) against the panel's #141414 so the card reads as
       lifted rather than blending in. */
    /* §8 card (item 374): r4, 1px border + 3px left EDGE that encodes STATE
       (transparent public / green .5 resolved / violet internal / slate agency —
       ruling 3). The state rules live in the "Comment display" block further
       down; they are declared AFTER this :hover at equal specificity so a state
       edge survives hovering (item 110 — source order decides ties), while the
       hover here re-asserts the transparent edge for the PUBLIC card, whose
       border-color shorthand would otherwise paint the left strip. */
    .comment-card { background: var(--rd-card); border: 1px solid var(--rd-card-bd); border-left: 3px solid transparent; border-radius: 4px; padding: 11px 12px 11px 11px; cursor: pointer; transition: background 0.15s, border-color 0.15s; overflow: hidden; word-break: break-word; overflow-wrap: anywhere; }
    .comment-card:hover { background: var(--rd-card-hover); border-color: var(--rd-card-hover-bd); border-left-color: transparent; }
    .cc-header { display: flex; align-items: center; gap: 9px; min-width: 0; }
    .cc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } /* replies still nest in one */
    .cc-subline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--rd-text-3); }
    .cc-num { font-size: 10px; color: var(--rd-text-5); font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; margin-left: auto; }
    /* Resolve control: on an UNRESOLVED card it is one of the §8 hover tools (22px
       square); on a RESOLVED card it is the 18px green check circle — still the
       same button, still the reopen handler, so no capability moves. */
    .cc-circle { width: 22px; height: 22px; border-radius: 4px; border: none; background: var(--rd-tool-bg); color: var(--rd-tool-fg); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; padding: 0; }
    .cc-circle:hover { color: var(--rd-green-fg); }
    .cc-circle svg { display: block; }
    .resolved-card .cc-circle { width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--rd-green-rgb),.16); border: 1px solid rgba(var(--rd-green-rgb),.4); color: var(--rd-green-fg); }
    /* §8 hover-tool group (eye / visibility / delete). Hide-at-rest is FINE-POINTER
       sugar only — see the @media (hover: hover) block below; a coarse pointer
       keeps this at-rest visibility (Phase B ruling 4). */
    .rd-tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
    .rd-tools .cc-icon-btn, .rd-tools .cc-eye { width: 22px; height: 22px; border-radius: 4px; background: var(--rd-tool-bg); color: var(--rd-tool-fg); border: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
    /* §8 meta row: timecode chip → date → replies → (right) Reply. */
    .rd-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; min-width: 0; }
    .rd-replies { font-size: 11.5px; font-weight: 600; color: var(--rd-tool-fg); flex-shrink: 0; }
    .rd-meta .cc-btn { margin-left: auto; color: var(--rd-gold); font-size: 11.5px; font-weight: 600; }
    @media (hover: hover) {
      /* Desktop-only reveal. The RESOLVED check is state, not a tool, so its
         selector below excludes it; ruling 4 keeps every control at rest on
         coarse pointers by scoping the hide to (hover: hover) alone. The
         .reply-del rules (item 359 R-08) are a separate, untouched mechanism. */
      .comment-card .rd-tools, .comment-card:not(.resolved-card) .cc-circle, .comment-card .rd-meta .cc-btn { opacity: 0; transition: opacity 0.15s; }
      .comment-card:hover .rd-tools, .comment-card:focus-within .rd-tools,
      .comment-card:hover .cc-circle, .comment-card:focus-within .cc-circle,
      .comment-card:hover .rd-meta .cc-btn, .comment-card:focus-within .rd-meta .cc-btn { opacity: 1; }
    }
    .cc-tc-inline { font-size: 0.7rem; color: var(--brand); background: rgba(247,147,30,0.12); padding: 0.08rem 0.4rem; border-radius:4px; font-family: var(--mono); margin-right: 0.35rem; cursor: pointer; }
    .open-count { margin-left: auto; font-size: 0.7rem; color: var(--brand); font-family: var(--mono); align-self: center; }
    /* Sort + team-only visibility as compact dropdown menus (reusing .bc-ver-* pattern). One row. */
    .comment-controls { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
    /* §8's right-side icon button(s). The mock draws ONE (sort/filter); the team
       additionally has the visibility menu, which stays a second identical button
       hidden for clients exactly as before — collapsing both behind one button
       would be a behavior change, and this slice is visual-only (deviation
       recorded in item 374). No bc-ver-* reuse: those classes are the breadcrumb
       version switcher's (Phase B ruling 6). */
    .rd-menu-wrap { position: relative; display: inline-flex; }
    .rd-icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; color: var(--rd-text-3); cursor: pointer; padding: 0; transition: color 0.15s, border-color 0.15s; }
    .rd-icon-btn:hover { color: var(--rd-text); border-color: var(--rd-control-bd); }
    .rd-menu { position: absolute; top: calc(100% + 5px); right: 0; background: var(--rd-card); border: 1px solid var(--rd-card-bd); border-radius: 4px; padding: 4px; z-index: 60; min-width: 150px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); display: none; }
    .rd-menu.open { display: block; }
    .rd-menu-head { padding: 5px 8px 3px; font-family: 'Archivo', 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rd-text-5); }
    .rd-menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--rd-text-2); white-space: nowrap; }
    .rd-menu-item:hover { background: var(--rd-card-hover); }
    .rd-menu-item.active { color: var(--rd-gold); }
    /* The menu buttons keep their #rv-sort-value/#rv-vis-value readouts for
       rvSyncCommentControls — visually hidden, announced to AT. */
    .rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* Open-count badge, now on the Open pill itself (empty → hidden). */
    .cfilter-count { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--rd-text-5); font-variant-numeric: tabular-nums; }
    .cfilter-btn.active .cfilter-count { color: var(--rd-gold); }
    .cfilter-count:empty { display: none; }
    /* Uniform neutral — no per-person colour. The hashed palette put purple on roughly one
       author in six, which made purple mean "this person" as often as it meant "internal". */
    /* §8 avatar: 24px circle, initials 10/700, tinted BY STATE — open gold,
       resolved green, internal violet, agency slate (ruling 3). State rules are
       adjacent so a fifth state has to be added here, visibly. */
    .cc-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: rgba(var(--rd-gold-rgb),.16); color: var(--rd-gold); }
    .resolved-card .cc-avatar { background: rgba(var(--rd-green-rgb),.16); color: var(--rd-green-fg); }
    .comment-card.cc-internal .cc-avatar { background: rgba(var(--rd-violet-rgb),.18); color: var(--rd-violet); }
    .comment-card.cc-agency .cc-avatar { background: rgba(var(--rd-slate-rgb),.16); color: var(--rd-slate); }
    .cc-author { font-size: 12.5px; font-weight: 600; color: var(--rd-name); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .team-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: #FBB03B; background: rgba(251,176,59,0.16); padding: 1px 5px; border-radius: 3px; }
    .cc-age { font-size: 11.5px; color: var(--rd-text-5); flex-shrink: 0; }
    .cc-tc { font-size: 0.68rem; color: var(--brand); background: rgba(247,147,30,0.1); padding: 0.1rem 0.45rem; border-radius:4px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
    .cc-body { font-size: 13px; color: var(--rd-body); line-height: 1.5; margin-top: 8px; word-break: break-word; overflow-wrap: anywhere; }
    /* Transcript highlight-comment (read-only) merged into the Comments panel */
    .cc-transcript { box-shadow: inset 3px 0 0 rgba(255,255,255,0.4); } /* fallback; kind class overrides */
    /* Source badge, not a visibility badge — neutral so it cannot be read as "internal". */
    .cc-tr-badge { display: inline-flex; align-items: center; margin-left: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); background: var(--rv-elevated); border: 0.5px solid var(--rv-border); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
    .cc-tr-quote { font-size: 0.78rem; color: var(--text-muted); font-style: italic; border-left: 2px solid var(--rv-border-strong); padding-left: 8px; margin: 3px 0 6px; line-height: 1.5; }
    /* [REMOVED — item 374] .cc-actions/.cc-actions-right: the actions ROW is gone.
       §8 puts visibility/delete in the header's hover-tool group (.rd-tools) and
       Reply in the meta row (.rd-meta) — every handler survives, only the
       geography moved. Deleted with their markup, not left orphaned (item 159). */
    /* Transcript note composer — quieter than the video composer it replaces. That box is a
       primary action on the review page; this is a secondary one beside a list of marks, so it
       reads as an input rather than a call to action. */
    /* ONE LINE that grows. It was two rows plus a resize grip plus a helper line for what is
       usually one sentence. resize:none because trNoteGrow sizes it from its own content —
       a manual grip on a box that resizes itself is two mechanisms fighting, and the grip was
       most of the perceived height. The helper line is gone: the placeholder already says what
       the box is for, and a permanent caption for a one-line input is a caption per keystroke. */
    .tr-note-box { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 7px 8px; background: var(--rv-elevated); border: 0.5px solid var(--rv-border); border-radius: 10px; flex-shrink: 0; }
    .tr-note-input { flex: 1; min-width: 0; box-sizing: border-box; resize: none; overflow-y: auto; max-height: 120px; background: transparent; border: none; outline: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.78rem; line-height: 1.5; padding: 3px 2px; }
    .tr-note-input::placeholder { color: var(--text-muted); }
    .tr-note-send { flex-shrink: 0; padding: 4px 11px; border: 0.5px solid var(--border-strong); border-radius: 5px; background: none; color: var(--text-secondary); font-family: inherit; font-size: 0.68rem; font-weight: 600; cursor: pointer; }
    .tr-note-send:hover:not(:disabled) { color: var(--text); border-color: var(--text-muted); }
    .tr-note-send:disabled { opacity: 0.45; cursor: default; }
    /* "Whole transcript" stands where a timecode badge sits on every other card — same slot,
       saying plainly that this one is not anchored rather than showing 0:00–0:00. */
    /* ⚠️ ONE RECIPE FOR "THIS MARK HAS NO ANCHOR", SHARED BY THE TWO CARDS THAT SAY IT.
       ccTrCardHTML already solved this for transcript marks — a NOTE renders "Whole transcript"
       in the very slot an anchored mark puts its timecode chip in — so the comment card's
       General tag is the SAME treatment, not a second one invented beside it. Listed together
       rather than duplicated: two rules would drift, and the whole point is that a reader
       recognises the shape without reading the word.
       ⚠️ DELIBERATELY NOT GOLD. .cc-tc-badge is gold (--rd-gold) and gold is the decision ink;
       an unanchored comment is a CATEGORY, not a decision, so it takes the muted text colour and
       no fill at all. The pair reads as "loud chip = seek here / quiet label = nothing to seek". */
    .cc-tr-whole,
    .cc-unanchored { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
    .cc-icon-btn { width: 26px; height: 26px; padding: 0; border: none; border-radius: 4px; background: transparent; color: var(--rd-tool-fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, color 0.15s; flex-shrink: 0; }
    .cc-icon-btn:hover { background: var(--rd-tool-bg); color: var(--rd-text); }
    .cc-icon-btn.cc-del-btn:hover { color: var(--text-danger); }
    .cc-icon-btn.cc-visibility-btn:hover { color: var(--internal); }
    .cc-btn { background: none; border: none; color: var(--rd-text-3); font-size: 0.68rem; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; padding: 0; transition: color 0.2s; font-family: 'Inter', sans-serif; }
    .cc-btn.cc-del-btn:hover { color: var(--text-danger); }
    .cc-btn:hover { color: var(--rd-text); }
    .cc-resolve-btn { color: var(--approved); }
    /* Replies nest under the parent: left indent + connector line. */
    .cc-replies { margin-top: 0.5rem; margin-left: 22px; padding-left: 12px; border-left: 1.5px solid var(--rd-panel-hair); display: flex; flex-direction: column; gap: 0.5rem; }
    /* align-items:flex-start so the delete button sits level with the author line rather than
       centring against a tall reply; margin-left:auto pushes it to the row's end. */
    .reply-row { display: flex; align-items: flex-start; gap: 0.45rem; }
    .reply-del { width: 22px; height: 22px; margin-left: auto; flex-shrink: 0; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; }
    .reply-row:hover .reply-del, .reply-del:focus-visible { opacity: 1; }
    /* R-08 (item 359): a coarse pointer has no hover, so opacity 0 at rest made delete-reply
       INVISIBLE on touch — a client on an iPad could not see the control at all. The file's
       first hover-media query; the fine-pointer reveal above is untouched. */
    @media (hover: none) { .reply-del { opacity: 0.7; } }
    .reply-av { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; background: rgba(255,255,255,0.06); color: var(--rd-text-3); }
    .reply-author { font-size: 11.5px; font-weight: 600; color: var(--rd-name); }
    .reply-text { font-size: 12.5px; color: var(--rd-text-2); line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
    .reply-input-wrap { display: none; margin-top: 0.45rem; gap: 0.35rem; align-items: flex-end; }
    .reply-input-wrap.open { display: flex; }
    .reply-input { flex: 1; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius:4px; padding: 0.4rem 0.55rem; color: var(--rd-text); font-size: 12.5px; font-family: 'Inter', sans-serif; outline: none; resize: none; min-height: 34px; transition: border-color 0.2s; }
    .reply-input:focus { border-color: var(--rd-card-hover-bd); }
    /* Circular, matching the composer's send button — both are "send", so they should not be two
       different shapes. Square 30px box so 50% is a true circle. */
    .reply-send { background: var(--brand); border: none; color: #0A0A0A; border-radius:50%; width: 30px; height: 30px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
    .reply-send:hover { background: var(--brand-dark); }

    /* Composer */
    /* Same card treatment as a comment, so the thing you type into matches the things you read. */
    /* §8 composer (item 374): pinned area (14px, hairline top) around ONE box
       (.rd-cbox) — top row (timecode chip → visibility toggle), textarea, footer
       (MARKUP → SEND). Same ids, same handlers; only the anatomy moved. */
    .rv-composer { margin: 0; padding: 14px; background: transparent; border: none; border-top: 1px solid var(--rd-panel-hair); border-radius: 0; flex-shrink: 0; }
    .rd-cbox { border-radius: 4px; background: var(--rd-inset); border: 1px solid var(--rd-card-hover-bd); overflow: hidden; transition: border-color 0.15s; }
    .rd-cbox:focus-within { border-color: var(--rd-control-bd); }
    /* 8px bottom padding is the GAP between the timecode chip and the textarea (item 506). The
       textarea is full-bleed with its own background (.composer-input-wrap .composer-input), so
       with 0 here the chip row sat flush on the field's top edge with no breathing room. */
    .rd-crow { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; flex-wrap: wrap; }
    .rd-cfoot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rd-footer-bd); background: var(--rd-footer); }
    /* ⚠️ COMPOUND SELECTOR, NOT A BARE `.rd-markup-btn` — AND THAT IS THE WHOLE FIX.
       The button is `class="composer-icon-btn rd-markup-btn"`, and `.composer-icon-btn`
       (a 28px SQUARE icon button) is declared LATER in this stylesheet. Two single-class
       selectors tie on specificity, so source order decided and the square won: with
       `padding: 0 10px` surviving inside a 28px border-box, the content box resolved to
       SIX pixels and the MARKUP label spilled straight out of its own border. Matching the
       element's real compound (0,2,0 beats 0,1,0) makes the modifier win regardless of
       where either rule sits — item 110's "placement is load-bearing", fixed by not
       depending on placement at all. */
    .composer-icon-btn.rd-markup-btn { width: auto; height: 30px; padding: 0 10px; gap: 6px; background: var(--rd-markup-bg); border: 1px solid var(--rd-markup-bd); color: var(--rd-text-3); border-radius: 4px; }
    .composer-icon-btn.rd-markup-btn:hover:not(.disabled) { color: var(--rd-text); border-color: var(--rd-control-bd); }
    .rd-markup-label { font-family: 'Archivo', 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
    /* Agency-reader note (item 344) — quiet, informational, slate-blue, NOT a banner. Translucent
       slate on the dark composer panel (matches the panel; the pill on comment cards uses the
       lighter chip). Team-view only. */
    .rv-agency-note { margin: 0 12px 8px; padding: 6px 10px; font-size: 11.5px; line-height: 1.4; color: #8FB8D4; background: rgba(74,122,153,0.10); border: 0.5px solid rgba(74,122,153,0.25); border-radius: 6px; flex-shrink: 0; }
    /* Inline post-comment confirmation — sits above the composer, in the panel flow (not a
       floating overlay). Hidden until shown; the dismiss animates opacity only. */
    .hint-toast { display: none; margin: 0 12px 8px; padding: 8px 10px; background: var(--hint-bg); color: var(--hint-text); border-left: 3px solid var(--hint-accent); border-radius: 4px; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px; line-height: 1.4; flex-shrink: 0; }
    .hint-toast.hint-show { display: block; }
    .hint-toast.hint-fade { opacity: 0; transition: opacity 0.4s ease; }
    /* Guest on-player prompt — floats over the stage, bottom-left, clear of the transport. */
    /* Guest locked state. Panel tokens throughout so it reads as part of the panel rather than a
       guest-only card; the CTA is --rd-gold because it IS the one decision this screen asks of a
       guest (item 66: gold marks a decision or the asking of one). */
    .rv-guest-lock { padding: 14px 16px 16px; border-top: 1px solid var(--rd-hairline); }
    /* Locked = the THREAD is withheld too, not just the composer. body.rv-guest-locked is set by
       rvSyncGuestLock for an unidentified guest: the whole comments pane (filter row + list) goes,
       and the lock block grows to fill the panel so it reads as the panel's content rather than a
       footer under a void. !important on purpose — switchRvTab writes an inline display:block on
       #rv-tab-comments, and a tab click while locked must not bring the list back. */
    body.rv-guest-locked #rv-tab-comments { display: none !important; }
    /* The pane itself collapses too, not just its child. .rv-panel-content is flex:1, so with
       only #rv-tab-comments hidden it still took half the column as an empty box and the lock
       centred in the other half — visibly low, not centred in the panel. Only the comments tab
       lives in the pane for a guest (rvApplyGuestChrome hides the rest), so nothing else is lost. */
    body.rv-guest-locked .rv-panel-content { flex: 0 0 0; min-height: 0; overflow: hidden; }
    body.rv-guest-locked .rv-guest-lock { flex: 1; display: flex; flex-direction: column; justify-content: center; border-top: none; }
    .rv-guest-lock-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--rd-text-3); }
    .rv-guest-lock-text { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--rd-text-3); }
    .rv-guest-lock-cta { background: var(--rd-gold); color: #1A1A1A; border: none; border-radius: 4px; padding: 8px 16px; font-family: 'Archivo','Inter',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
    .rv-guest-lock-cta:hover { filter: brightness(1.08); }
    .rv-guest-id { display: none; flex-direction: column; gap: 8px; margin-top: 12px; }
    .rv-guest-id.open { display: flex; }
    .rv-guest-id .gc-sub { font-size: 12px; color: var(--rd-text-3); margin: 0; }
    .rv-guest-id input { width: 100%; box-sizing: border-box; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; color: var(--rd-text); font-size: 13px; padding: 8px 10px; outline: none; font-family: 'Inter', sans-serif; }
    .rv-guest-id input:focus { border-color: var(--rd-gold); }
    .rv-guest-id-err { color: var(--text-danger, #E24B4A); font-size: 11.5px; min-height: 14px; }
    .rv-guest-id-cancel { background: none; border: none; color: var(--rd-text-3); font-size: 11.5px; cursor: pointer; text-decoration: underline; align-self: center; padding: 0; }
    /* Display-only version chip: a guest sees WHICH version, never a control to change it. */
    .rv-guest-vchip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 4px; background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); color: var(--rd-text-3); font-family: var(--rd-mono); font-size: 11.5px; letter-spacing: 0.02em; }
    .guest-hint { position: absolute; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; max-width: 320px; padding: 10px 12px; background: var(--hint-bg); color: var(--hint-text); border: 1px solid rgba(74,122,153,0.5); border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); font-family: 'Inter', sans-serif; font-size: 13px; }
    .guest-hint-badge { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--hint-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
    .guest-hint-text { flex: 1; line-height: 1.4; }
    .guest-hint-x { flex-shrink: 0; background: none; border: none; color: var(--hint-text); opacity: 0.55; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
    .guest-hint-x:hover { opacity: 1; }
    .composer-pill { background: var(--surface); border: 0.5px solid var(--border); border-radius:4px; padding: 0.65rem 0.85rem; cursor: text; color: var(--text-muted); font-size: 0.85rem; transition: border-color 0.2s; }
    .composer-pill:hover { border-color: rgba(247,147,30,0.3); }
    .composer-body { display: none; }
    .composer-body.open { display: block; }
    /* Composer is always-visible now: the entry pill + close-x are retired. The
       .open class still gates show/hide (approved state removes it). */
    .composer-pill { display: none !important; }
    .composer-close-x { display: none !important; }
    .composer-frozen { font-size: 0.78rem; color: var(--rd-text-2); background: var(--rd-inset); border: 1px solid var(--rd-inset-bd); border-radius: 4px; text-align: center; padding: 0.6rem; line-height: 1.5; display: none; }
    .composer-input-wrap { position: relative; }
    .composer-close-x { position: absolute; top: 0.5rem; right: 0.5rem; background: var(--rv-elevated-2); border: none; color: var(--text-muted); width: 22px; height: 22px; border-radius:4px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.75rem; transition: all 0.2s; z-index: 1; opacity: 0.65; }
    .composer-close-x:hover { opacity: 1; color: var(--text); background: var(--border); }
    /* padding-bottom reserves the send button's corner (28px button + 8px inset + 6px breathing
       room), so a filled multi-line comment scrolls clear of it instead of running underneath.
       Retuned from 48px when the button went from a 34px circle to a 28px labelled rectangle.
       min-height tracks it, or a short comment would be mostly reserved space. */
    .composer-input { width: 100%; background: transparent; border: none; border-radius: 8px; padding: 10px 12px; color: var(--rd-text); font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 400; outline: none; resize: none; min-height: 82px; line-height: 1.5; }
    .composer-input::placeholder { color: var(--rd-placeholder); }
    /* Single clean row: lock · clock · timecode · pencil … send (right). The tools
       wrapper uses display:contents so every item shares the toolbar's gap. */
    /* Wraps because SMPTE timecodes are wide: a range chip reads "01:02:05:12 – 01:15:10:27"
       (212px), and with the visibility switch, Clear-range and the pencil the row needs ~391px
       inside a 333px composer — it used to push the last controls past the panel's right edge and
       give the whole panel a horizontal scrollbar. Wrapping drops the overflow onto a second line
       instead of clipping it. (.composer-tools is display:contents, so THIS is the flex container
       its children actually live in.) */
    /* [REMOVED — item 374] .composer-toolbar/.composer-tools: the below-input tool
       row is gone — §8 splits it into .rd-crow (above) and .rd-cfoot (below). */
    /* (was margin-left:auto to push it to the end of the toolbar flex row — it no longer lives
       there, so positioning is handled entirely by the rule further down.) */
    .composer-icon-btn { background: none; border: 0.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.55); cursor: pointer; width: 28px; height: 28px; border-radius:4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
    .composer-icon-btn:hover:not(.disabled) { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
    .composer-icon-btn.active { color: #FBB03B; border-color: #FBB03B; background: rgba(251,176,59,0.14); }
    .composer-icon-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
    /* Ruling (Option C): the input box gets ONE neutral grey treatment in both
       Internal and Public modes — the toggle switch color + label text above are
       the only mode-signaling elements, so this no longer gates on .internal-mode.
       Reuses the "internal" tokens because they are already neutral gray, not
       because the box itself means "internal". */
    .composer-input-wrap .composer-input { background: var(--internal-bg); }
    .internal-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--internal); background: var(--internal-bg); padding: 1px 5px; border-radius: 3px; }
    /* [REMOVED — item 374] .comment-card.internal-card: emitted nowhere — the live
       class is .cc-internal (below). An orphaned rule reads as live (item 159). */
    .cc-visibility-btn { background: none; border: none; color: var(--text-muted); font-size: 0.68rem; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; padding: 0; transition: color 0.2s; font-family: 'Inter', sans-serif; }
    .cc-visibility-btn:hover { color: var(--internal); }
    /* Send — matches the transport play button (rounded square, gold). */
    /* Labelled rounded-rectangle, sized by its padding rather than a fixed box. Replaces the
       circle: the label and the rectangular shape are what separate it from the icon-only square
       Play control now, so the circle is no longer doing that job.
       6px radius and a 1px border match .composer-tc-chip, the other padded footer control — the
       pencil's 4px belongs to a fixed 28px icon square, which this is not. Border is the same
       orange as the fill so the edge reads as one solid shape at the chip's weight. */
    .composer-send { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: rgba(var(--rd-gold-rgb),.12); border: 1px solid rgba(var(--rd-gold-rgb),.4); color: var(--rd-gold); border-radius: 4px; font-family: 'Archivo', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; box-sizing: border-box; transition: background 0.15s; flex-shrink: 0; }
    .composer-send:hover { background: rgba(var(--rd-gold-rgb),.2); }
    /* Comment composer — mode toggle (icon-only lock) + hint + states */
    /* Visibility switch. Purple matches the internal-user colour already used for avatars and
       .cc-internal cards, so "internal" reads the same wherever it appears in the panel. */
    /* §8 visibility toggle: gold chip + knob right = PUBLIC, violet chip + knob
       left = INTERNAL (the mock's own direction — it flips the old one). The
       ruled tips live in updateComposerUI, the one writer of the titles. */
    .cmt-vis-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 1px solid rgba(var(--rd-gold-rgb),.3); background: rgba(var(--rd-gold-rgb),.1); border-radius: 4px; padding: 3px 8px; cursor: pointer; font-family: 'Inter', sans-serif; flex-shrink: 0; }
    .cmt-vis-track { position: relative; width: 26px; height: 15px; border-radius: 4px; background: var(--rd-gold); transition: background 0.18s; flex-shrink: 0; }
    .cmt-vis-thumb { position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left 0.18s; }
    .cmt-vis-label { font-family: 'Archivo', 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rd-pub-label); transition: color 0.18s; }
    .cmt-vis-toggle.internal { background: rgba(var(--rd-violet-rgb),.14); border-color: rgba(var(--rd-violet-rgb),.38); }
    .cmt-vis-toggle.internal .cmt-vis-track { background: var(--rd-int-track); }
    .cmt-vis-toggle.internal .cmt-vis-thumb { left: 2px; }
    .cmt-vis-toggle.internal .cmt-vis-label { color: var(--rd-violet); }
    /* Merged timecode chip — one control for what was a clock button plus a readout. */
    .composer-tc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3.5px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 500; cursor: pointer; box-sizing: border-box; transition: background 0.15s, border-color 0.15s, color 0.15s; flex-shrink: 0; }
    .composer-tc-chip.on { background: rgba(var(--rd-gold-rgb),.1); border: 1px solid rgba(var(--rd-gold-rgb),.28); color: var(--rd-gold); font-family: 'IBM Plex Mono', monospace; }
    .composer-tc-chip.off { background: var(--rd-control); border: 1px solid var(--rd-control-bd); color: var(--rd-text-3); font-family: 'Inter', sans-serif; }
    .composer-tc-chip.off:hover { color: var(--rd-text); }
    .composer-tc-chip .tcc-ico { flex-shrink: 0; }
    /* Tracks .composer-input's radius — the ring traces the field's own edge, so a mismatch here
       draws a 4px ring inside an 8px box (item 506). */
    .composer-input.has-annotation { box-shadow: inset 0 0 0 1px rgba(var(--rd-gold-rgb),.4); border-radius: 8px; }
    .composer-icon-btn.has-anno { color: #F7931E; border-color: #F7931E; }
    /* Comment display — tags, timecode badge, accent border */
    /* §8 visibility chip: 9.5/700 caps, 9px icon, tint recipe. Letter-spacing stays
       the reference's own .04em (the chip role, distinct from the .1em label role). */
    .cc-tag { display: inline-flex; align-items: center; gap: 4px; font-family: 'Archivo', 'Inter', sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 1.5px 6px; border-radius: 4px; flex-shrink: 0; }
    /* Neutral, and named for the word it shows. Orange is the general UI accent and purple means
       internal, so a client-visible comment — the default, most common state — should claim
       neither. "Public" rather than "Client" to match the visibility toggle, which already uses
       that word for the same state. */
    .cc-tag.public { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); color: var(--rd-text-3); }
    .cc-tag.internal { background: rgba(var(--rd-violet-rgb),.16); border: 1px solid rgba(var(--rd-violet-rgb),.42); color: var(--rd-violet); }
    /* A limited-tier reviewer's personal record. ⚠️ SLATE, THE INFORMATIONAL TONE — deliberately
       NOT the decision colours: green (#2dc48a / .badge-done) means an authoritative approval and
       warm red means Revisions, and spending either here would make a record that moved nothing
       read as one that did. Same geometry as its sibling chips so it reads as context on the
       card, not as a second status. */
    .cc-tag.cc-limited-dec { background: rgba(var(--rd-slate-rgb),.16); border: 1px solid rgba(var(--rd-slate-rgb),.42); color: var(--rd-slate); text-transform: none; letter-spacing: 0.02em; }
    /* Ruling 3: on an AGENCY card the PUBLIC chip wears the slate tint — the
       "slate visibility-style chip". NOT a revived AGENCY pill: item 350 deleted
       .cc-tag-agency and the byline carries the org name; this only tints the
       visibility chip the card already has. */
    .comment-card.cc-agency .cc-tag.public { background: rgba(var(--rd-slate-rgb),.16); border-color: rgba(var(--rd-slate-rgb),.42); color: var(--rd-slate); }
    /* AGENCY authorship (item 344; byline since item 350 — the pill is GONE, deleted not
       orphaned per item 159). The ORG NAME in the byline carries the distinction, in the
       informational slate family, never gold (item 66). Theme-split within the family
       (item 82): flat #395A6E on the dark panel is ~2:1, so the base (dark) rule is the
       lighter slate the .rv-agency-note already uses there; the transcript light theme
       overrides to the deep slate (see the light block, beside the other comment-card
       overrides). Applied to .cc-author and .reply-author when the comment/reply carries
       agency:true — BOTH the team and the agency view of the thread. */
    .cc-byline-agency { color: #8FB8D4; }
    /* Ruling 3 (item 374): the agency edge is the DARK-surface slate #8FB8D4 — the
       same family member the byline above uses, on the same reasoning (item 350:
       flat #4A7A99 on a dark surface is ~2:1). agency-comment-ui.mjs pins it. */
    .comment-card.cc-agency { border-left-color: var(--rd-slate); }
    /* ⟦item 930⟧ the AGENCY tag on an agency person's comment and reply: neutral grey (never gold, blue or purple) */
    .cc-tag.cc-agency-tag, .team-tag.cc-agency-tag { background: rgba(140,140,151,.16); border: 1px solid rgba(140,140,151,.45); color: #9a9aa4; }
    .cc-tc-badge { display: inline-flex; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; padding: 1.5px 6px; border-radius: 4px; background: rgba(var(--rd-gold-rgb),.1); color: var(--rd-gold); cursor: pointer; flex-shrink: 0; } /* gold over the .1 tint on --rd-card composites 5.3:1 — clears item 359's census floor */
    .cc-anno-badge { margin-left: 6px; color: #F7931E; font-size: 11px; }
    /* §8 state table. These sit AFTER .comment-card:hover at equal specificity, so
       a state edge survives hovering (source order decides the tie — item 110).
       The PUBLIC card's edge is transparent: under §8 the edge encodes STATE, and
       gold is the interactive accent, not a card marker. Resolved is edge+check
       now, not a fade. .hl (the ccClick selection) is declared LAST so selection
       wins over every state. */
    .comment-card.cc-client { border-left-color: transparent; }
    .comment-card.cc-internal { background: var(--rd-int-card); border-color: var(--rd-int-bd); border-left-color: var(--rd-violet); }
    .comment-card.cc-internal:hover { background: var(--rd-int-hover); border-color: var(--rd-int-hover-bd); border-left-color: var(--rd-violet); }
    .comment-card.resolved-card { border-left-color: rgba(var(--rd-green-rgb),.5); }
    .comment-card.resolved-card:hover { border-left-color: rgba(var(--rd-green-rgb),.5); }
    .comment-card.hl { border-left-color: var(--rd-gold); }
    /* Transcript-mark cards: review card shape, distinguished by a kind-coloured left border +
       a small type badge. Higher specificity than the generic .cc-transcript purple border. */
    /* Kind bar as an INSET shadow, not a border-left — an inset shadow follows the card's
       border-radius, so the corners stay rounded (a colored border-left squared them off). */
    .comment-card.cc-tr-highlight { box-shadow: inset 3px 0 0 var(--color-highlight); }
    .comment-card.cc-tr-clip { box-shadow: inset 3px 0 0 var(--color-clip); }
    .comment-card.cc-tr-cut { box-shadow: inset 3px 0 0 var(--color-removed); }
    /* A note is NEUTRAL on purpose. The other three colours mean something about the media —
       amber marks a passage, sage selects one, red removes one. A note is about the transcript
       as a whole and asserts nothing about any passage, so giving it a hue would imply an
       intent it does not have. Grey is the statement, not the absence of one. */
    .comment-card.cc-tr-note { box-shadow: inset 3px 0 0 var(--text-muted); }
    /* Type + timecode line beneath the header. */
    .cc-tr-meta { display: flex; align-items: center; gap: 8px; margin: 1px 0 7px; }
    .cc-tr-quote.clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cc-tr-more { background: none; border: 0; color: var(--text-secondary); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; padding: 3px 0 0; }
    .cc-tr-more:hover { color: var(--text); }
    .cc-type-badge { display: inline-flex; align-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 8.5px; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 3px; }
    .cc-tb-highlight { color: var(--color-highlight); background: rgba(251,176,59,0.14); }
    .cc-tb-clip { color: #6bbf86; background: rgba(74,124,89,0.18); }
    .cc-tb-cut { color: #ef6f6a; background: rgba(226,75,74,0.16); }
    .cc-tb-note { color: var(--text-secondary); background: rgba(255,255,255,0.09); }
    /* Annotation overlay */
    .rv-anno-canvas { position: absolute; z-index: 8; cursor: crosshair; touch-action: none; }
    /* Cut-skip fade mask: dips the video stage to black to hide the HLS seek stutter. */
    #rv-skip-mask { position:absolute; inset:0; background:#000; opacity:0; pointer-events:none; z-index:10; transition:opacity 0.12s ease; }
    #rv-skip-mask.on { opacity:1; }
    /* Numbered annotation dots + popover */
    .rv-anno-dot { position: absolute; z-index: 9; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--rd-gold); color: #1a1c20; border: 1.5px solid rgba(0,0,0,0.35); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 10px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.5); padding: 0; transition: transform .1s; }
    .rv-anno-dot:hover { transform: translate(-50%, -50%) scale(1.15); }
    .rv-anno-dot.resolved { opacity: 0.45; }
    .rv-anno-pop { position: absolute; z-index: 12; width: 260px; max-width: calc(100% - 16px); background: var(--surface); border: 0.5px solid var(--brand); border-radius: 4px; padding: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.55); color: var(--text); font-size: 0.82rem; }
    .rv-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .rv-pop-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--rd-gold); color: #1a1c20; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center; }
    .rv-pop-meta { flex: 1; min-width: 0; }
    .rv-pop-author { font-weight: 600; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rv-pop-when { font-size: 0.7rem; color: var(--text-muted); }
    .rv-pop-x { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 2px 4px; }
    .rv-pop-x:hover { color: var(--text); }
    .rv-pop-body { font-size: 0.82rem; line-height: 1.45; word-break: break-word; margin-bottom: 8px; }
    .rv-pop-replies { border-top: 0.5px solid var(--border); padding-top: 8px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 140px; overflow-y: auto; }
    .rv-pop-reply { font-size: 0.78rem; line-height: 1.4; color: var(--text); }
    .rv-pop-rauthor { font-weight: 600; }
    .rv-pop-team { font-size: 0.6rem; font-weight: 700; color: var(--brand); border: 0.5px solid var(--brand); border-radius: 3px; padding: 0 3px; vertical-align: middle; }
    .rv-pop-replywrap { display: flex; gap: 6px; }
    .rv-pop-input { flex: 1; min-width: 0; background: rgba(0,0,0,0.25); border: 0.5px solid var(--border); border-radius: 4px; color: var(--text); font-size: 0.78rem; padding: 6px 8px; font-family: 'Inter', sans-serif; }
    .rv-pop-input:focus { outline: none; border-color: var(--brand); }
    .rv-pop-send { background: var(--rd-gold); color: #1a1c20; border: none; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem; padding: 0 10px; cursor: pointer; }
    .rv-pop-del { display: block; width: 100%; margin-top: 8px; background: none; border: 0.5px solid var(--bg-danger); color: var(--text-danger); border-radius: 4px; font-size: 0.74rem; padding: 6px; cursor: pointer; }
    .rv-pop-del:hover { background: var(--bg-danger); }
    /* Inline draw-comment bubble: 3-line textarea, comfortable width */
    #rv-anno-bubble { min-width: 240px; }
    .rv-bubble-ta { width: 100%; box-sizing: border-box; resize: vertical; min-height: 62px; line-height: 1.4; font-family: 'Inter', sans-serif; margin-bottom: 8px; }
    .rv-bubble-actions { display: flex; justify-content: flex-end; }
    /* Send button: standard outline pattern (no solid fill) */
    #rv-anno-bubble .rv-pop-send { background: none; border: 0.5px solid var(--rd-gold); color: var(--rd-gold); border-radius: 4px; padding: 6px 14px; font-size: 13px; font-family: 'Inter', sans-serif; font-weight: 600; cursor: pointer; }
    #rv-anno-bubble .rv-pop-send:hover { background: rgba(var(--rd-gold-rgb),0.12); }
    /* ── Share links: topbar buttons, modal, Shared Links view ── */
    .rv-share-btn { background:none; border:0.5px solid var(--border); color:var(--text-muted); border-radius:4px; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
    .rv-share-btn:hover { color:var(--text); border-color:var(--text-muted); }
    /* Share moved to the topbar (#rv-share-btn, beside ?) — the old full-width
       .rv-invite-* button below approve/request-changes is gone. */
    #rv-share-btn:hover { color:var(--rd-gold); border-color:var(--rd-gold); }
    .share-ov { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:500; padding:24px; }
    .share-card { width:100%; max-width:440px; background:#1e1e1e; border:0.5px solid var(--brand); border-radius:4px; padding:20px; box-shadow:0 20px 60px rgba(0,0,0,0.5); color:var(--text); }
    .share-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
    .share-head h3 { margin:0; font-size:1rem; font-weight:600; }
    .share-x { background:none; border:none; color:var(--text-muted); font-size:1rem; cursor:pointer; }
    .share-x:hover { color:var(--text); }
    .share-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); margin:14px 0 8px; }
    .share-pills { display:flex; gap:8px; }
    .share-pill { flex:1; background:var(--surface-1); border:0.5px solid var(--border-strong); color:var(--text-secondary); border-radius:20px; padding:7px 0; font-size:0.8rem; cursor:pointer; font-family:'Inter',sans-serif; }
    .share-pill.active { background:var(--bg-accent); color:var(--text-accent); border-color:var(--border-accent); }
    .share-gen { width:100%; margin-top:16px; background:#FBB03B; color:#1a1c20; border:none; border-radius:4px; padding:10px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:0.82rem; cursor:pointer; }
    .share-url-row { display:flex; gap:8px; }
    .share-url { flex:1; min-width:0; background:rgba(0,0,0,0.25); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.78rem; padding:8px 10px; font-family:'Inter',sans-serif; }
    /* NEUTRAL-FILLED, matching Save. It was a gold outline, and gold means a DECISION —
       copying a link is not one. Same treatment as the Save control so the two utility
       actions in this app read alike. */
    .share-copy { background:#35352F; border:0.5px solid #5A5A52; color:#EDEDEA; border-radius:4px; padding:0 14px; font-size:13px; cursor:pointer; white-space:nowrap; }
    .share-copy:hover { background:#414138; border-color:#6E6E63; }
    .share-exp { font-size:0.78rem; color:var(--text-muted); margin-top:10px; }
    .share-exp.low { color:var(--text-danger); font-weight:500; }
    /* Guest access — the most useful info under the permanent-link model, given real weight.
       Base .share-log-row/who/when are shared with the Shared Links page, so modal-only
       emphasis is scoped under .share-access. */
    .share-access { margin-top:18px; background:rgba(255,255,255,0.03); border:0.5px solid var(--border); border-radius:6px; padding:12px 14px; }
    .share-access-head { font-size:0.8rem; font-weight:600; color:var(--text-secondary); margin-bottom:8px; }
    .share-log { max-height:200px; overflow-y:auto; display:flex; flex-direction:column; gap:0; }
    .share-log-row { display:flex; justify-content:space-between; gap:10px; font-size:0.78rem; }
    .share-access .share-log-row { padding:8px 0; border-top:0.5px solid var(--border); font-size:0.82rem; }
    .share-access .share-log-row:first-child { border-top:none; padding-top:2px; }
    .share-log-who { font-weight:500; word-break:break-word; }
    .share-access .share-log-who { color:var(--text); }
    .share-log-when { color:var(--text-muted); white-space:nowrap; font-size:0.72rem; }
    .share-access .share-log-when { font-size:0.75rem; }
    .share-empty { font-size:0.78rem; color:var(--text-muted); font-style:italic; }
    .share-access .share-empty { font-style:normal; color:var(--text-secondary); text-align:center; padding:10px 4px; font-size:0.82rem; }
    /* Regenerate is the outlined button; Revoke is demoted to a quiet, still-red text link, set apart. */
    /* LINK MANAGEMENT, fenced off. Regenerate and Revoke are not part of sharing — they
       undo it — so they sit below a hairline rather than reading as two more ways to share. */
    .share-actions { margin-top:18px; padding-top:14px; border-top:0.5px solid #3A3A37; }
    .share-actions-head { font-size:0.66rem; text-transform:uppercase; letter-spacing:.08em; color:#6E6E68; margin-bottom:9px; }
    /* Regenerate is not a decision either — neutral outline. */
    .share-regen { width:100%; background:none; border:0.5px solid #5A5A52; color:#B4B4AD; border-radius:4px; padding:9px; font-size:0.82rem; cursor:pointer; font-family:'Inter',sans-serif; }
    .share-regen:hover { background:rgba(251,176,59,0.08); }
    /* REVOKE IS THE ONLY DESTRUCTIVE ACTION HERE — muted coral, not gold, and not a bare danger
       link that reads as an afterthought next to a bordered Regenerate.
       ⚠️ THIS CORAL IS REVOKE'S OWN AND IS DECLARED HERE. It used to be described as "the coral
       the review page uses for Request changes", and a guard asserted the two matched so they
       could not drift. That coupling is DELETED: Request changes is no longer red at all, and
       it never had anything to do with this button — revoking a share link is destroying access,
       not declining a cut. The drift-prevention trick outlived the thing it was tracking.
       Nothing else may derive from these values, and they must not be re-linked to the decision
       pair; guest-no-share.mjs now asserts this rule declares its own coral. */
    .share-revoke-link { display:block; width:100%; margin:10px 0 0; background:rgba(232,52,42,0.08); border:1px solid rgba(232,52,42,0.4); color:#FF7A6E; border-radius:4px; padding:8px; opacity:1; font-size:0.78rem; cursor:pointer; font-family:'Inter',sans-serif; text-decoration:underline; text-underline-offset:2px; }
    .share-revoke-link:hover { opacity:1; }
    .share-ctx { font-size:0.82rem; color:var(--text-secondary); line-height:1.45; margin-bottom:12px; }
    /* The OTHER copy button in this modal — same argument as .share-copy above. Leaving one
       gold and one neutral would be the exact divergence this pass removes. */
    /* ⟦item 863⟧ Download links view (team) */
    .dll-list { display:flex; flex-direction:column; gap:8px; }
    .dll-row { display:flex; align-items:center; gap:12px; padding:12px 14px; border:0.5px solid var(--border); border-radius:8px; background:var(--surface); }
    .dll-tile { flex:0 0 auto; min-width:54px; padding:5px 6px; border-radius:6px; font-size:10px; font-weight:700; letter-spacing:.06em; text-align:center; }
    .dll-code { flex:0 0 64px; font-size:12px; font-weight:700; color:var(--text); }
    .dll-main { flex:1 1 auto; min-width:0; }
    .dll-item { font-size:14px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .dll-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
    .dll-state { flex:0 0 auto; font-size:10.5px; font-weight:700; letter-spacing:.08em; padding:3px 7px; border-radius:5px; }
    .dll-on { color:#2E7D53; background:rgba(46,125,83,.14); }
    .dll-off, .dll-gone { color:var(--text-muted); background:rgba(127,127,127,.14); }
    @media (max-width: 679px) { .dll-row { flex-wrap:wrap; } .dll-main { flex-basis:100%; order:3; } }
    /* Shared Links view */
    .sl-tabs { display:flex; gap:8px; padding:0 0 16px; flex-wrap:wrap; }
    .sl-tab { background:none; border:0.5px solid var(--border-strong); color:var(--text-muted); border-radius:20px; padding:5px 14px; font-size:12px; cursor:pointer; font-family:'Inter',sans-serif; }
    .sl-tab.active { background:var(--bg-accent); color:var(--text-accent); border-color:var(--border-accent); }
    .sl-card { background:var(--surface); border:0.5px solid var(--border); border-radius:8px; padding:14px 16px; margin-bottom:12px; }
    .sl-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .sl-name { font-weight:600; font-size:0.9rem; }
    .sl-origin { display:inline-block; margin-left:8px; font-size:9.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; padding:2px 6px; border-radius:4px; background:rgba(255,255,255,0.07); color:var(--text-muted); vertical-align:middle; }
    .sl-crumb { font-size:0.74rem; color:var(--text-muted); margin-top:2px; }
    .sl-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:4px; white-space:nowrap; background:var(--bg-success); color:var(--text-success); }
    .sl-badge.soon { background:#FFF3CD; color:#7A5800; }
    .sl-url-row { display:flex; gap:8px; margin-top:10px; }
    .sl-url { flex:1; min-width:0; background:rgba(0,0,0,0.25); border:0.5px solid var(--border); border-radius:4px; color:var(--text-muted); font-size:0.74rem; padding:6px 8px; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sl-exp { font-size:0.74rem; color:var(--text-muted); margin-top:8px; }
    .sl-exp.low { color:var(--text-danger); font-weight:500; }
    .sl-actions { display:flex; gap:8px; margin-top:10px; }
    .sl-btn { background:none; border:0.5px solid var(--border-strong); color:var(--text-secondary); border-radius:4px; padding:5px 12px; font-size:0.74rem; cursor:pointer; }
    .sl-btn:hover { color:var(--text); }
    .sl-btn.danger { border-color:var(--bg-danger); color:var(--text-danger); }
    /* ⟦item 935⟧ AN EDITOR MAKES, ROTATES OR TURNS OFF NO GUEST LINK (Jeffrey, Oct 26; the worker refuses it: shareRefuses). The class is
       set at sign-in for any team role but admin and agency, so every Share control is hidden whoever later shows it (inline display
       included). Copying a link that exists stays (.sl-btn without .sl-w). */
    body.team-no-share #rv-share-btn, body.team-no-share #tr-share-btn, body.team-no-share #del-share-btn, body.team-no-share #proj-select-btn,
    body.team-no-share #rv-brief-share, body.team-no-share .sl-w { display:none !important; }
    .sl-log { margin-top:10px; border-top:0.5px solid var(--border); padding-top:8px; display:flex; flex-direction:column; gap:5px; }
    /* Email Log */
    .el-filters { display:flex; gap:8px; flex-wrap:wrap; margin-top:1rem; }
    .el-filters input { background:var(--surface2); border:0.5px solid var(--border); border-radius:6px; color:var(--text); font-size:12.5px; padding:8px 11px; font-family:'Inter',sans-serif; outline:none; }
    .el-filters input:focus { border-color:var(--brand); }
    .el-count { font-size:12px; color:var(--text-muted); margin-bottom:10px; }
    .el-row { border:0.5px solid var(--border); border-radius:8px; padding:12px 14px; margin-bottom:8px; background:var(--surface); }
    .el-row-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
    .el-to { font-weight:600; font-size:13px; color:var(--text); }
    .el-email { font-size:12px; color:var(--text-muted); }
    .el-meta { font-size:11.5px; color:var(--text-muted); margin-top:3px; }
    .el-note { font-size:12px; color:var(--text); line-height:1.55; margin-top:8px; padding:7px 10px; border-left:2px solid var(--brand); background:rgba(255,255,255,0.04); border-radius:0 4px 4px 0; white-space:normal; }
    /* Failed sends, surfaced alongside successful ones */
    .el-badges { display:flex; align-items:center; gap:6px; flex-shrink:0; }
    .el-row.failed { border-color:rgba(226,75,74,0.45); background:rgba(226,75,74,0.05); }
    .el-failed { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; padding:2px 7px; border-radius:4px; background:rgba(226,75,74,0.18); color:#E24B4A; white-space:nowrap; }
    .el-err { font-size:11.5px; color:#E24B4A; line-height:1.5; margin-top:6px; }
    .el-count-failed { color:#E24B4A; }
    .el-assets { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
    .el-asset { font-size:11px; background:rgba(255,255,255,0.06); color:var(--text); padding:3px 8px; border-radius:4px; }
    .el-via { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; padding:2px 7px; border-radius:4px; background:rgba(74,158,255,0.16); color:#4A9EFF; white-space:nowrap; flex-shrink:0; }
    .sl-views { font-size:0.74rem; color:var(--text-muted); }
    .share-log-meta { display:flex; align-items:center; gap:8px; flex-shrink:0; }
    .sl-status { font-size:0.6rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; padding:2px 7px; border-radius:4px; white-space:nowrap; }
    .sl-status.matched { background:rgba(92,174,122,0.16); color:#5CAE7A; }
    .sl-status.newcontact { background:rgba(247,147,30,0.16); color:#F7931E; }
    .sl-status.guest { background:rgba(255,255,255,0.08); color:var(--text-muted); }
    .rv-anno-replay { position: absolute; z-index: 7; pointer-events: none; }
    .rv-anno-replay-x { position: absolute; top: 12px; right: 12px; z-index: 9; background: rgba(0,0,0,0.6); color: #fff; border: 0.5px solid rgba(255,255,255,0.25); border-radius: 4px; font-size: 0.72rem; padding: 5px 10px; cursor: pointer; }
    .rv-anno-bar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 6px; background: #1a1a1a; border: 0.5px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 6px 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
    .rv-anno-tool { width: 28px; height: 28px; border-radius: 4px; background: none; border: 1px solid transparent; color: var(--rd-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
    .rv-anno-tool:hover { color: var(--rd-text); }
    .rv-anno-tool.active { background: rgba(var(--rd-gold-rgb),0.16); border-color: rgba(var(--rd-gold-rgb),0.45); color: var(--rd-gold); }
    .rv-anno-sw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
    /* §4's selected ring is `0 0 0 2px {panel}, 0 0 0 4px {swatch colour}` — the outer half
       needs the swatch's OWN colour, which the renderer writes inline as `background`, so it is
       not reachable from CSS. The inner gap is taken (it is what makes the ring read as a ring)
       and the outer stays a neutral border. Recorded rather than approximated with a wrong hue. */
    .rv-anno-sw.active { border-color: var(--rd-text); box-shadow: 0 0 0 2px var(--rd-markup-bg); }
    .rv-anno-div { width: 1px; height: 18px; background: var(--rd-markup-bd); margin: 0 2px; }
    .rv-anno-cancel { background: none; border: none; color: var(--rd-text-3); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; }
    .rv-anno-cancel:hover { color: var(--rd-text); }
    .rv-anno-done { background: var(--rd-gold); color: #1A1A1A; border: none; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; padding: 6px 14px; cursor: pointer; }

    /* Details */
    .details-sec { padding: 1rem 1.1rem; border-bottom: 1px solid var(--rd-panel-hair); }
    .details-sec:last-child { border-bottom: none; }
    /* §8 Details tab: 10px label-role headings in gold; key/value rows on hairlines. */
    .details-sec-label { font-family: 'Archivo', 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rd-gold); margin-bottom: 0.6rem; }
    .rvrh-count { font-size: 0.8rem; color: var(--text); margin-bottom: 0.6rem; }
    .rvrh-list { display: flex; flex-direction: column; gap: 0.4rem; }
    .rvrh-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: var(--text-muted); }
    .rvrh-dot { width: 6px; height: 6px; border-radius: 50%; background: #1D9E75; flex-shrink: 0; }   /* Released — green */
    .rvrh-dot-notify { background: #6fa8ff; }                                                        /* Notified — blue */
    .rvrh-mail { width: 12px; height: 12px; flex-shrink: 0; color: #6fa8ff; margin-left: -1px; }
    .rvrh-when { color: var(--text); white-space: nowrap; }
    .rvrh-who { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rvrh-notified .rvrh-who { color: #8fb8f0; }
    .rvrh-empty { font-size: 0.74rem; color: var(--text-muted); font-style: italic; }
    .detail-row { display: flex; gap: 0.75rem; padding: 7px 0; margin-bottom: 0; align-items: flex-start; border-bottom: 1px solid var(--rd-card-hover); }
    .detail-row:last-child { border-bottom: none; }
    .detail-label { font-size: 11.5px; color: var(--rd-text-4); width: 104px; flex-shrink: 0; padding-top: 0.1rem; }
    .detail-value { font-size: 12.5px; color: var(--rd-detail-val); flex: 1; word-break: break-word; overflow-wrap: anywhere; }
    /* §3 status chip (item 375) — the ONE chrome status statement (R-03: the
       chip and the decided unit share state; the unit carries no label).
       Label role 10px; 12px icon; state tints per §3. The changes fg is the
       RAISED --rd-red-fg, not the reference's #E5484D — the census floor
       (see the token block). */
    .rd-status-chip { display: none; align-items: center; gap: 5px; font-family: 'Archivo', 'Inter', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; flex-shrink: 0; }
    .rd-status-chip svg { display: block; }
    .rd-status-chip.is-pending  { background: rgba(var(--rd-gold-rgb),0.12);  border-color: rgba(var(--rd-gold-rgb),0.32);  color: var(--rd-gold); }
    .rd-status-chip.is-approved { background: rgba(var(--rd-green-rgb),0.12); border-color: rgba(var(--rd-green-rgb),0.30); color: var(--rd-green-fg); }
    .rd-status-chip.is-changes  { background: rgba(var(--rd-red-rgb),0.12);   border-color: rgba(var(--rd-red-rgb),0.32);   color: var(--rd-red-fg); }
    /* ⚠️ ITEM 673 — CLOSED IS NEUTRAL, and it is the one chip state carrying no hue at all. Gold
       asks, green approves, coral flags a revision; a closure is none of those and borrowing any
       of the three would state something untrue in colour before a word is read. */
    .rd-status-chip.is-closed   { background: rgba(255,255,255,0.06);         border-color: rgba(255,255,255,0.14);         color: var(--text-muted); }
    /* ⚠️ ITEM 673 PART 2 — THE TEAM ACTION FORM's own rows, borrowing the dialog's input rule
       rather than restating it: only the stacking and the label need saying. The error line is
       reserved (min-height) so a validation message does not jump the buttons under the cursor. */
    .ta-form { display:flex; flex-direction:column; gap:10px; margin:4px 0 2px; text-align:left; }
    .ta-form .ui-dialog-label { font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-muted); margin-bottom:-4px; }
    .ta-form .ui-dialog-input { width:100%; }
    .ta-form-err { min-height:16px; font-size:12px; color:var(--rd-red-fg, #E24B4A); text-align:left; }
    /* Item 673 part 3 — the close-out pass. A taller dialog than the single-asset forms, so the
       row list scrolls rather than the dialog growing past the viewport on a long deliverable. */
    .tac-dialog { max-width:620px; width:92vw; text-align:left; }
    .tac-allrow { display:flex; align-items:center; gap:8px; margin:6px 0 10px; font-size:12px; color:var(--text-muted); }
    .tac-allrow .ui-dialog-input { width:auto; flex:0 1 240px; }
    .tac-all-note { font-size:11px; opacity:.75; }
    .tac-rows { max-height:46vh; overflow:auto; display:flex; flex-direction:column; gap:8px; }
    .tac-row { border:0.5px solid var(--border); border-radius:6px; padding:8px 10px; }
    .tac-row-head { display:flex; align-items:center; gap:10px; }
    .tac-name { flex:1 1 auto; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .tac-row-head .ui-dialog-input { flex:0 0 210px; width:210px; }
    .tac-fields { display:flex; gap:6px; margin-top:8px; }
    .tac-fields .ui-dialog-input { flex:1 1 auto; width:auto; min-width:0; }
    .tac-row-result { font-size:11.5px; margin-top:6px; color:var(--text-muted); }
    .tac-row-result.is-ok  { color:var(--approved, #2dc48a); }
    .tac-row-result.is-bad { color:var(--rd-red-fg, #E24B4A); }
    .tac-rest { margin-top:10px; border-top:0.5px solid var(--border); padding-top:8px; }
    .tac-rest-head { font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-muted); margin-bottom:4px; }
    .tac-rest-row { font-size:12px; color:var(--text-muted); padding:1px 0; }
    .tac-undo-note { font-size:11.5px; color:var(--text-muted); margin:6px 0 2px; }
    /* Internal pill — item [scope gap]: openReview never showed agVisibilityState anywhere;
       agInternalMark covers the card grid only. Sibling shape to .rd-status-chip (same base
       rule copied rather than shared, since the chip's states are decision-kind variants and
       this is a single fixed treatment — one shared class would need an unused state axis).
       ⚠️ COLOUR IS --rd-violet, NOT A NEW #b08cf5 LITERAL. asset-type-palette.mjs asserts
       #b08cf5 (and its rgba triple) may not be hardcoded anywhere outside the transcript
       type's own var chain — a second copy is exactly the drift that guard exists to catch.
       --rd-violet is this page's OWN existing "internal" token (already carrying that meaning
       on .cc-tag.internal, .comment-card.cc-internal, .rv-marker.internal, .cmt-vis-toggle —
       the comment panel's Internal tags on this same page), so this reuses it rather than
       adding a fourth copy. It resolves to var(--at-transcript-ring) = #b08cf5 UNCONDITIONALLY
       here: #review-view is dark-only by design (review-panel-light.mjs's own header — "the
       review page is dark-only, so [the :root value] was right for its whole life"), and the
       ONLY light-theme override of --rd-violet (#5D5A55) is scoped to
       #rv-transcript-view[data-theme="light"] — the separate transcript editor, which borrows
       review-panel components but is not this surface. So this pill is #b08cf5 in every mode
       #review-view actually runs in, with no split to fix. ⚠️ --rd-violet DOES still alias
       the TRANSCRIPT TYPE ring, though — a pre-existing coupling (already present on the
       comment-panel tags above), not introduced here, and the one thing worth knowing before
       a future edit ever changes the transcript ring colour expecting only transcripts to
       move. */
    .rv-internal-pill { display:none; align-items:center; gap:5px; font-family:'Archivo','Inter',sans-serif; font-weight:700; font-size:10px; letter-spacing:0.1em; text-transform:uppercase; padding:2px 8px; border-radius:4px; border:1px solid rgba(var(--rd-violet-rgb),0.32); background:rgba(var(--rd-violet-rgb),0.12); color:var(--rd-violet); white-space:nowrap; flex-shrink:0; }
    .rv-internal-pill svg { display:block; }
    .detail-status-pill { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.2rem 0.65rem; border-radius:4px; text-transform: uppercase; }
    .detail-status-pill.needs-review { background: rgba(122,118,112,0.15); color: var(--text-muted); }
    .detail-status-pill.approved     { background: rgba(50,180,100,0.12); color: var(--approved); }
    .detail-status-pill.changes      { background: rgba(232,52,42,0.12); color: var(--changes); }
    .rd-detail-dec-meta { font-size: 11.5px; color: var(--rd-text-3); margin-left: 6px; }
    .activity-item { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.45rem; }
    .activity-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 0.38rem; }
    .activity-dot.v { background: var(--text-muted); }
    .activity-dot.c { background: var(--review); }
    .activity-dot.d { background: var(--approved); }
    .activity-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
    .activity-text strong { color: var(--text); font-weight: 500; }
    /* [REMOVED — item 359, R-03] .details-decision-card: duplicated the Status row in the
       SAME tab. */

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .review-body { flex-direction: column; }
      /* Stacked below 900px: the panel docks to the BOTTOM rather than the right, so the floating
         treatment turns 90° with it — inset left/right/top, flush to the bottom edge, rounded on
         the top corners only. The gap replaces the border that used to separate the two regions,
         exactly as it does in the side-by-side layout. width:auto (not 100%) so the side margins
         inset it instead of overflowing. */
      .review-panel { width: auto; margin: 8px; border-radius: 10px; border-top: none; max-height: 48vh; }
      .review-player { min-height: 38vh; }
    }
    @media (max-width: 700px) {
      header { padding: 1.25rem 1.5rem; }
      main   { padding: 2rem 1.5rem 5rem; }
      /* ⚠️ #page-deliverable-detail MUST TRACK main HERE. It carries its own `padding: 3rem`
         and was absent from this query, so on a 390px phone the deliverable page kept 48px
         sides — a quarter of the screen as margin — while Action Items got 24px. The two
         surfaces then rendered the SAME card component at DIFFERENT widths: 139px against
         163px. That is a defect in its own right (one component, two sizes, nothing saying
         so), and it was also silently clipping badges: the status overlay is right-anchored,
         so an over-wide pill overflows LEFT into .ag-thumb's overflow:hidden. Measured at
         139px, "Your approval needed" lost 8px and "Revisions in progress" 2.6px, cut with no
         ellipsis and no error. At 163px all six client badges fit with 16px to spare. */
      #page-deliverable-detail { padding: 2rem 1.5rem 5rem; }
      .cards-grid { grid-template-columns: 1fr; }
      .modal-overlay { padding: 0; align-items: flex-end; }
      .modal { border-radius:4px 16px 0 0; max-height: 88vh; }
      .deliverable-row-main { flex-wrap: wrap; }
      .deliverable-actions { width: 100%; justify-content: flex-end; }
      .review-header { padding: 0.75rem 1rem; }
      .copy-link-btn { padding: 0.4rem; }
      .copy-link-btn-label { display: none; }
      .review-panel { max-height: 52vh; }
      .rv-transport-row { grid-template-columns: 1fr 1fr; row-gap: 0.6rem; }
      .rv-tc-btn { order: 3; grid-column: 1 / -1; justify-self: center; }
      .rv-vol-slider { display: none; }
    }
  
  /* ── V3 NAV SHELL ────────────────────────────────── */
  body { display: flex; overflow: hidden; height: 100vh; flex-direction: row; }

  .sidebar {
    width: 220px;
    background: #141414;
    border-right: 0.5px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
    z-index: 50;
  }
  /* Collapsed = icon rail: brand mark, icon nav (with attention badge), divider,
     avatar, then the expand » at the very bottom. */
  /* overflow:visible so hover tooltips can escape the 56px rail (the collapsed
     rail is short, so no scroll is lost). */
  .sidebar.collapsed { width: 56px; overflow: visible; }
  .sidebar.collapsed .brand-text-name,
  .sidebar.collapsed .brand-text-sub,
  .sidebar.collapsed .sidebar-client,
  .sidebar.collapsed .nav-item-text,
  .sidebar.collapsed .toggle-btn-label,
  .sidebar.collapsed .user-info-name,
  .sidebar.collapsed .user-info-role { display:none; }
  /* Collapsed: shrink + center the logo so it fits the 56px rail. */
  .sidebar.collapsed .sidebar-brand { padding:16px 6px; }
  .sidebar.collapsed .brand-row { justify-content:center; }
  .sidebar.collapsed .brand-logo-img { height:auto; width:40px; }
  /* border-bottom:none, not a deleted declaration: the BASE .sidebar-brand rule sets a border
     unconditionally, so the collapsed rail needs to actively switch it off. This rule (not the
     earlier .sidebar.collapsed one above) is the one that wins — same specificity, later in the
     sheet — so the override has to live here. */
  .sidebar.collapsed .sidebar-brand { padding:18px 0; border-bottom:none; }
  /* Collapsed rail: stack the logo over the toggle so both fit the narrow column. */
  .sidebar.collapsed .brand-row { flex-direction:column; justify-content:center; gap:12px; }
  .sidebar.collapsed .sidebar-nav { flex:1; padding:12px 0; align-items:center; gap:4px; }
  .sidebar.collapsed .nav-item { position:relative; justify-content:center; padding:10px 0; width:100%; }
  .sidebar.collapsed .nav-item-icon { width:auto; }
  .sidebar.collapsed .nav-badge { position:absolute; top:3px; right:11px; min-width:15px; height:15px; padding:0 3px; box-sizing:border-box; border-radius:50%; background:#E24B4A; color:#fff; font-size:9px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; line-height:1; }
  .sidebar.collapsed .sidebar-footer { order:1; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:14px 0; border-top:none; } /* same reasoning as .sidebar-brand above */
  /* ⚠️ THIS PAIR USED TO READ `> div:not(.user-avatar), > button { display:none }`, WHICH IS WHY
     THE COLLAPSED RAIL HAD NO LOGOUT AT ALL — not a hard-to-find one, an absent one. It is
     re-pointed at the two things that genuinely cannot fit 56px (the name/role block and the
     team's ⎋), so the labelled button survives collapse instead of being caught by a
     child-selector that never named it. */
  .sidebar.collapsed .sidebar-user-meta { display:none; }
  .sidebar.collapsed .sidebar-user { flex-direction:column; gap:0; }
  /* Collapsed Log out: icon over word, bordered so it reads as a control at 44px rather than as
     a caption under the avatar. The word still RENDERS — it is small, never absent. */
  .sidebar.collapsed .sidebar-logout {
    flex-direction:column; align-items:center; justify-content:center; gap:3px;
    width:44px; margin:0 auto; padding:7px 0; text-align:center;
    border:0.5px solid var(--border); border-radius:6px;
  }
  .sidebar.collapsed .sidebar-logout-icon svg { width:14px; height:14px; }
  .sidebar.collapsed .sidebar-logout-text { font-size:8px; line-height:1; letter-spacing:0.01em; }
  .sidebar.collapsed .user-avatar { width:34px; height:34px; font-size:12px; }
  .sidebar.collapsed .sidebar-toggle { order:2; }
  .sidebar.collapsed .nav-item:hover::after {
    content: attr(data-label);
    position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    background: var(--surface2); border: 0.5px solid var(--border); color: var(--text);
    font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius:4px;
    white-space: nowrap; z-index: 100; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  }
  /* (Collapsed icon-rail layout is defined above.) */
  /* Collapse toggle — compact icon button at the top, aligned right of the CLIENT PORTAL header. */
  .sidebar-toggle {
    margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; padding: 0;
    display: flex; align-items: center; justify-content: center; border-radius: 6px;
    border: 0.5px solid var(--border); background: transparent; color: var(--text-muted);
    cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s;
  }
  .sidebar-toggle:hover { background: var(--surface2); color: var(--text); border-color: var(--text-muted); }
  .sidebar-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .sidebar.collapsed .sidebar-toggle { margin-left: 0; }
  .toggle-chev { flex-shrink:0; transition:transform 0.22s cubic-bezier(0.4,0,0.2,1); }
  .sidebar.collapsed .toggle-chev { transform:rotate(180deg); } /* points right → expand */
  .sidebar-brand { padding:24px 20px 18px; border-bottom:0.5px solid var(--border); cursor:pointer; }
  .brand-row { display:flex; align-items:center; gap:10px; }
  .brand-mark {
    width:32px; height:32px; background:linear-gradient(135deg, #F7931E, #FBB03B); border-radius:4px;
    display:flex; align-items:center; justify-content:center;
    font-family:'Montserrat',sans-serif; font-weight:900; font-size:12px;
    color:white; flex-shrink:0; letter-spacing:0.02em;
  }
  .brand-logo-img { height:42px; width:auto; display:block; flex-shrink:0; object-fit:contain; }
  .brand-text-name { font-family:'Montserrat',sans-serif; font-weight:700; font-size:13px; color:var(--text); letter-spacing:-0.2px; line-height:1.2; }
  /* ══ NAV GROUP RULES ═══════════════════════════════════════════════════════════════════
     Same principle as the project page divider: acting surfaces above, consulting surfaces
     below. A hairline rather than a labelled group — the grouping is legible from the order
     and the gap, and three more headings in a nav this short would cost more than they say. */
  /* ══ CLIENT TRANSCRIPT VIEW ════════════════════════════════════════════════════════════
     Driven off the EXISTING data-team stamp, not a second attribute: enterTranscript already
     writes data-team="1"|"0" on #rv-transcript-view, and a parallel data-client flag would be
     one more thing to keep in step with it — the exact divergence that comment warns about.

     Ours | the material | theirs. The team's clips are the most valuable thing on the page and
     were sitting in a sidebar tab, under a heading, beneath an empty state telling the client to
     select something and choose Clip. Everything hidden below is an editor's tool being shown to
     someone who has never used one; team keeps all of it.

     SEARCH IS NOT IN THAT SET. It was removed in the first pass and restored: finding a phrase
     in a 66-minute interview is navigation, and the alternative is scrolling. The things below
     are removed because they ask the reader to understand our process; a search box asks
     nothing and answers the most ordinary question there is. */
  #rv-transcript-view[data-team="0"] .rv-tabs { display:none !important; }           /* NOTES|MY CLIPS|CUTS */
  #rv-transcript-view[data-team="0"] .tr-act-section { display:none !important; }    /* Summary/Chapters/Speakers */
  /* The one instruction on the page. If more than this is needed the page is still wrong. */
  .tr-client-hint { color:var(--text-muted); font-size:0.74rem; line-height:1.5; padding:10px 12px 12px; }
  /* ══ ONE MARKS LIST ════════════════════════════════════════════════════════════════════
     NOTES / MY CLIPS / CUTS splits by type, which is an editor's taxonomy. A client thinks
     "things I marked". Three tabs meant three empty states on arrival and a decision about
     which one a thing belongs in before they had made anything. Kind is a PROPERTY of the
     mark, shown as a badge, not a destination. */
  /* ══ YOUR MARKS — the client rail (pass 4 commit 1, item 295) ══════════════════════════════
     ⚠️ PREFIXED tr-yrm-*, NOT tr-mark-*. The block directly below owns `.tr-marks`, `.tr-mark`,
     `.tr-mark-tc` and `.tr-mark-quote` — the "one marks list" in the comments panel, live since
     d757064. Reusing those names would restyle that list from here, silently (item 149).
     The DARK rules below are the page's pre-redesign idiom and stay that way — a client can
     reach dark since item 341, and the --trv-* dark column is still banked. Design §5's full
     treatment (card tints, chips, delete + undo, composer, collapse) landed in item 351 as
     LIGHT-SCOPED rules further down, reading the --trv-* tokens. Item 361 gave the chips §5's
     LEGEND form (swatch + word, no counts) while keeping their filter behaviour — design meant
     a passive legend, and the filter was ruled to stay under its look. */
  .tr-yrm { display:flex; flex-direction:column; gap:6px; padding:10px 9px 12px; }
  .tr-yrm-head { display:flex; align-items:baseline; gap:7px; padding:0 3px 4px; }
  /* Item 361: the label's TREATMENT comes from .tr-sec-label (composed in the markup) — one
     small-caps rule shared with WATCH AND LISTEN / MARK A RANGE. This rule may carry ONLY
     flex-context overrides: it is declared LATER than .tr-sec-label, so any font/color here
     wins on source order and silently un-matches the label (guarded). The margin-bottom
     neutralizes sec-label's own 10px, which would misheight a baseline-aligned flex row. */
  .tr-yrm-label { margin-bottom:0; }
  /* The count is TEXT — design §5: "the count at 12px --slate" — not a badge circle. Dark
     keeps the idiom's slate (--hint-accent); light overrides to --trv-slate below. */
  .tr-yrm-count { flex-shrink:0; font-size:12px; font-weight:600; color:var(--hint-accent);
    font-variant-numeric:tabular-nums; }
  .tr-yrm-card { border:0.5px solid var(--border-secondary); border-radius:6px;
    padding:7px 9px 8px; background:var(--surface-1); display:flex; flex-direction:column; gap:4px; }
  /* CUT AND NOTE STAY VISUALLY DISTINCT — design's non-negotiable #3, in the transcript and the
     rail alike. A left edge does it here rather than a fill, because a fill is design §5's card
     tint and that arrives with the rest of the treatment in pass 5. */
  .tr-yrm-card.is-cut  { border-left:2px solid var(--color-removed); }
  .tr-yrm-card.is-note { border-left:2px solid var(--color-highlight); }
  .tr-yrm-meta { display:flex; align-items:center; gap:6px; }
  .tr-yrm-tag { font-size:0.58rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
    color:var(--text-secondary); }
  .tr-yrm-tc { font-size:0.62rem; color:var(--text-muted); font-variant-numeric:tabular-nums; }
  /* NEW: added since the last send. Slate — the portal's informational colour — never gold, which
     item 66 reserves for a decision and the asking of one. This states a fact. */
  /* No auto margin — the meta row's .tr-yrm-sp spacer pushes the right side (item 351); an auto
     here would split the free space with it and float New mid-row. */
  .tr-yrm-new { font-size:0.58rem; font-weight:700; color:var(--hint-accent); }
  .tr-yrm-quote { font-size:0.72rem; line-height:1.45; color:var(--text-secondary);
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .tr-yrm-card.is-cut .tr-yrm-quote { text-decoration:line-through; }
  .tr-yrm-note { font-size:0.68rem; line-height:1.4; color:var(--text); }
  /* ══ item 351: design §5's full treatment — chips, delete + undo, composer, collapse. ══
     DARK below = the page's idiom; the LIGHT block underneath reads the --trv-* tokens. */
  /* The meta row's right side is pushed by a flex SPACER, not an auto margin on .tr-yrm-new —
     with the delete button present, two auto margins would split the space and float New
     mid-row. The spacer is emitted always, so New and the trash pack right together. */
  .tr-yrm-sp { flex:1; }
  .tr-yrm-fold { flex-shrink:0; width:24px; height:24px; display:flex; align-items:center;
    justify-content:center; background:transparent; border:none; border-radius:5px;
    color:var(--text-muted); cursor:pointer; padding:0; }
  .tr-yrm-fold:hover { background:var(--rv-elevated-2); color:var(--text); }
  .tr-yrm-chips { display:flex; gap:14px; padding:0 3px 3px; }
  /* Item 361: design §5's LEGEND form — 10px swatch (2px radius) + the word, 14px gap, no
     boxed border and NO counts. The chips still FILTER (ruled: design's look, item 351's
     behaviour); the transparent border is kept so .active's border-color causes no layout
     shift. A filter is not a decision — slate, never gold (item 66). */
  .tr-yrm-chip { display:inline-flex; align-items:center; gap:5px; font-size:0.66rem;
    font-weight:600; letter-spacing:0.03em; padding:2px 5px; border-radius:6px;
    cursor:pointer; background:transparent; border:1px solid transparent;
    color:var(--text-muted); }
  /* ⚠️ THE ACTIVE STATE IS OURS, NOT DESIGN'S (item 366). Design drew a passive LEGEND, so no
     active treatment exists in any handoff — a swatch-chip that filters on click needs one, and
     this is item 351's chip active treatment carried forward (slate tint, never gold: a filter
     is not a decision, item 66). If design ever draws one, theirs supersedes this. */
  .tr-yrm-chip.active { border-color:var(--hint-accent); color:var(--hint-accent);
    background:rgba(74,122,153,0.10); }
  .tr-yrm-swatch { flex-shrink:0; width:10px; height:10px; border-radius:2px; }
  /* Swatch colours come from the same axis as the CARDS' kind edges — dark: the idiom's mark
     colours; light overrides below use design's swatch tokens. The match is ASSERTED, not
     incidental (item 366): the guard compares the swatch rules' tokens against the card rules'
     own, per kind, per theme. */
  .tr-yrm-chip.is-cut  .tr-yrm-swatch { background:var(--color-removed); }
  .tr-yrm-chip.is-note .tr-yrm-swatch { background:var(--color-highlight); }
  .tr-yrm-fempty { font-size:0.68rem; color:var(--text-muted); padding:6px 3px; }
  /* Delete: faint at REST (not hidden — touch devices have no hover), full on card hover
     or its own focus. Rest opacity is the "faint at rest" ruling, item 351. */
  .tr-yrm-del { flex-shrink:0; margin-left:6px; width:20px; height:20px; display:flex;
    align-items:center; justify-content:center; background:transparent; border:none;
    border-radius:4px; color:var(--text-muted); opacity:0.35; cursor:pointer; padding:0; }
  .tr-yrm-card:hover .tr-yrm-del, .tr-yrm-del:focus { opacity:1; }
  .tr-yrm-del:hover { color:var(--color-removed); background:rgba(232,52,42,0.10); }
  .tr-yrm-undo { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:6px;
    background:var(--rv-elevated-2); border:0.5px solid var(--border-secondary); }
  .tr-yrm-undo-txt { flex:1; min-width:0; font-size:0.68rem; color:var(--text-secondary); }
  .tr-yrm-undo-btn { flex-shrink:0; background:transparent; border:none; color:var(--hint-accent);
    font-size:0.68rem; font-weight:700; cursor:pointer; padding:2px 4px; }
  .tr-yrm-composer { display:flex; flex-direction:column; gap:6px; padding:9px 3px 0;
    border-top:1px solid var(--border-secondary); margin-top:2px; }
  .tr-yrm-hint { font-size:0.64rem; line-height:1.4; color:var(--text-muted); }
  /* item 579: attribution. The author line is quiet (it is on every card); the read-only tag wears
     --hint-accent, the informational slate, because it explains why a control is absent rather
     than marking a decision — never gold. */
  .tr-yrm-by { margin-top:5px; font-size:0.6rem; color:var(--text-muted); }
  .tr-yrm-bytag { font-size:0.58rem; font-weight:600; color:var(--hint-accent); white-space:nowrap; }
  .tr-yrm-note-input { resize:none; min-height:42px; box-sizing:border-box;
    background:var(--surface-1); border:1px solid var(--border-secondary); border-radius:8px;
    padding:6px 8px; color:var(--text); font-family:'Inter',sans-serif; font-size:0.72rem;
    line-height:1.5; outline:none; }
  .tr-yrm-note-send { align-self:flex-end; background:var(--rv-elevated-2);
    border:1px solid var(--border-secondary); color:var(--text); font-size:0.68rem;
    font-weight:600; padding:5px 12px; border-radius:6px; cursor:pointer; }
  /* THE COLLAPSED RAIL (design §5): a 46px strip, and the WHOLE strip is the button. The grid's
     third track narrows with it — the class lives on .tr-lc, written by the renderer from
     window._trYrmOpen (session-only, default open — item 342's not-persisted ruling). */
  #rv-transcript-view .tr-lc.tr-yrm-collapsed { --tr-side-track:46px; } /* item 575: the side track is a variable now, so this composes with the rail states */
  .tr-yrm-rail-collapsed { width:100%; min-height:220px; display:flex; flex-direction:column;
    align-items:center; gap:14px; padding:14px 0; background:transparent; border:none;
    cursor:pointer; color:var(--text-muted); }
  .tr-yrm-cpill { background:var(--hint-accent); color:#fff; font-size:0.62rem; font-weight:700;
    padding:3px 6px; border-radius:9px; font-variant-numeric:tabular-nums; }
  .tr-yrm-clabel { writing-mode:vertical-rl; font-size:10.5px; font-weight:600;
    text-transform:uppercase; letter-spacing:0.06em; }
  /* ══ item 351 LIGHT: design §5's card treatment + §9.6's transcript-to-rail match, from the
     --trv-* tokens (item 282). LIGHT-SCOPED per items 301/313/314: the tokens carry design's
     LIGHT values, and a client can reach dark since item 341 — unscoped, these are light cards
     on the pre-redesign dark panel. Dark keeps the idiom above until the dark palette pass.
     ⚠️ ONE CUT TREATMENT (item 345): the card branches on is-cut/is-note ONLY — no
     pending/confirmed distinction may enter these selectors. */
  #rv-transcript-view[data-theme="light"] .tr-yrm-card { border-radius:9px; padding:10px 11px; }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card.is-note { background:var(--trv-surface);
    border:1px solid var(--trv-note-card-line-2); border-left:3px solid var(--trv-note-line); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card.is-cut { background:var(--trv-cut-card);
    border:1px solid var(--trv-cut-card-line); border-left:3px solid var(--trv-cut-line); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card .tr-yrm-tag { padding:2px 6px;
    border-radius:4px; letter-spacing:0.08em; }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card.is-note .tr-yrm-tag {
    background:var(--trv-note-chip); color:var(--trv-note-ink-2); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card.is-cut .tr-yrm-tag {
    background:var(--trv-cut-chip); color:var(--trv-cut-ink); }
  /* §9.6: the card quotes its words in the READING SERIF, carrying the same treatment as the
     transcript — a cut's quote struck in rust, a note's plain. */
  #rv-transcript-view[data-theme="light"] .tr-yrm-quote { font-family:var(--serif);
    font-size:13.5px; line-height:1.5; color:var(--trv-note-quote); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-card.is-cut .tr-yrm-quote {
    color:var(--trv-cut-quote); }
  /* Item 361: design §5's legend metrics — 11.5px --ink-3 words; the count at --slate; the
     swatches from design's own tokens (note: sand fill ringed --note-line; cut: cut fill
     ringed --cut-swatch, the token whose comment IS "Legend swatch ring"). The base chip
     border is transparent, so no border-color here — a --trv-ctl-line border would re-box
     the legend in the one theme a client sees. */
  #rv-transcript-view[data-theme="light"] .tr-yrm-chip { color:var(--trv-ink-3); font-size:11.5px; }
  #rv-transcript-view[data-theme="light"] .tr-yrm-chip.active { border-color:var(--trv-slate);
    color:var(--trv-slate); background:rgba(74,122,153,0.10); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-count { color:var(--trv-slate); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-chip.is-note .tr-yrm-swatch {
    background:var(--trv-note-fill); box-shadow:inset 0 0 0 1px var(--trv-note-line); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-chip.is-cut .tr-yrm-swatch {
    background:var(--trv-cut-fill); box-shadow:inset 0 0 0 1px var(--trv-cut-swatch); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-undo { background:var(--trv-subpanel);
    border:1px solid var(--trv-line-2); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-undo-txt { color:var(--trv-ink-3); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-undo-btn { color:var(--trv-slate); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-composer { border-top:1px solid var(--trv-line-2); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-hint { color:var(--trv-slate); font-size:11.5px; }
  #rv-transcript-view[data-theme="light"] .tr-yrm-note-input { background:var(--trv-surface);
    border:1px solid var(--trv-ctl-line); color:var(--trv-ink); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-note-send { background:var(--trv-surface);
    border:1px solid var(--trv-ctl-line); color:var(--trv-ink); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-fold { color:var(--trv-ink-3); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-cpill { background:var(--trv-slate-chip);
    color:var(--trv-slate-2); }
  #rv-transcript-view[data-theme="light"] .tr-yrm-clabel { color:var(--trv-ink-3); }

  .tr-marks { display:flex; flex-direction:column; gap:6px; padding:4px 10px 10px; }
  .tr-mark { border:0.5px solid var(--border); border-radius:6px; padding:8px 10px; cursor:pointer; }
    /* ── DONE — item 411 ──────────────────────────────────────────────────────────────────
       ONE treatment, four surfaces, and it is OPACITY rather than a colour ON PURPOSE.
       These cards live on two different papers: the team's panel is dark, the client's
       transcript page is light-locked (item 60), and no team session can see a light-mode
       defect (item 82). Opacity is theme-independent, so one declaration is correct on both
       and there is no light/dark pair to keep in step — the honest way to make "both themes
       correct" true is to have no colour to pair. checks/mark-done-state.mjs §6 pins that:
       a hex or rgba() in any of these rules fails, which is what stops the next edit
       reintroducing a pair by accident.
       0.55 is the file's own established dim for a settled thing (.ann-sticky.resolved,
       .cmp-cm.resolved, .rv-marker.resolved-marker) rather than a new number — de-emphasised
       and still readable, which is the point: the mark STAYS in the list.
       ⚠️ NO LINE-THROUGH ON A CUT. The cuts row's text is ALREADY struck, and that strike is
       what says REMOVED (its own rule says so). A second strike meaning "dealt with" would
       draw two different facts the same way on one row. Dim only, everywhere. */
    .cc-tr-done, .cg-cut-done, .tr-mark-done, .tr-yrm-done { opacity:0.55; }
    /* The control stays fully legible on a dimmed card — it is the way back out, and a
       reverse action you can barely see is a one-way action wearing a toggle's clothes. */
    .cc-tr-done .cc-done-btn, .cg-cut-done .cg-act-done { opacity:1; }
  .tr-mark:hover { border-color:var(--text-muted); }
  .tr-mark-head { display:flex; align-items:center; gap:7px; margin-bottom:4px; }
  .tr-kind { flex-shrink:0; font-size:0.6rem; font-weight:700; letter-spacing:0.06em;
    text-transform:uppercase; border-radius:3px; padding:2px 6px; }
  .tr-kind-clip { background:#eefaf1; color:#2e6b45; }
  .tr-kind-note { background:#fdf4e3; color:#8a5a12; }
  .tr-kind-cut  { background:#f7eaea; color:#8a3232; }
  .tr-mark-tc { font-size:0.66rem; color:var(--text-muted); font-variant-numeric:tabular-nums; }
  /* Delete sits at the end of the head row, quiet until the card is hovered — a client
     scanning what they marked should not be reading a column of delete buttons. */
  .tr-mark-del { margin-left:auto; flex-shrink:0; width:20px; height:20px; display:flex;
    align-items:center; justify-content:center; border:none; border-radius:4px; background:none;
    color:var(--text-muted); cursor:pointer; padding:0; opacity:0; transition:opacity 120ms ease; }
  .tr-mark:hover .tr-mark-del, .tr-mark-del:focus { opacity:1; }
  .tr-mark-del:hover { background:rgba(226,75,74,0.14); color:#E24B4A; }
  /* THE CLIENT'S OWN WORDS LEAD. The card used to show the quoted transcript text only, so a
     note with a comment displayed everything except the comment — the one part the client
     wrote. The quote is context for it, not the other way round. */
  .tr-mark-text { font-size:0.78rem; line-height:1.5; color:var(--text);
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .tr-mark-quote { margin-top:5px; font-size:0.71rem; line-height:1.45; font-style:italic;
    color:var(--text-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .tr-marks-empty { color:var(--text-muted); font-size:0.75rem; line-height:1.5; padding:12px; }
  /* ══ CONDENSED GROUP VIEW ══════════════════════════════════════════════════════════════
     Selecting a group CHANGES THE CENTRE COLUMN; it does not start playing. Autoplay on a
     single click takes the page away from someone who was only looking, and on a shared link
     it can start audio in an open-plan office. Play is its own act. */
  /* The rail row has TWO targets: the name selects, the glyph plays. One control that does
     both is what made a look-at-it click start audio. */
  .tr-cg-select { flex:1; min-width:0; text-align:left; background:none; border:none; padding:0;
    color:inherit; font:inherit; cursor:pointer; }
  /* FILLED, because this is the primary action on the rail. Outlined it was a grey glyph in a
     grey box — the visual language of a disabled control — so the one thing the page exists to
     have pressed read as switched off. The row tint already says which proposal is playing, so
     the button carries no state of its own and can be solid on every row. */
  .tr-cg-playbtn { flex-shrink:0; width:24px; height:24px; display:flex; align-items:center;
    justify-content:center; border:none; border-radius:5px;
    background:var(--color-clip); color:#fff; cursor:pointer; padding:0; }
  .tr-cg-playbtn:hover { filter:brightness(1.12); }
  /* Segmented control — only exists while something is selected. Nothing to collapse before. */
  /* 48px to match .tr-toolbar's left pad and .tr-scroll / .cg-pv-scroll's, so the control lines
     up with the text column and with the proposal header below it. It sat at 0 while everything
     around it was inset — survivable while it was the only thing in that gap, and plainly wrong
     once the header arrived between it and the transcript. */
  .tr-viewseg { display:flex; gap:0; padding:10px 48px 12px; }
  .tr-viewseg button { padding:5px 12px; border:0.5px solid var(--border-strong); background:none;
    color:var(--text-muted); font-family:inherit; font-size:0.72rem; cursor:pointer; }
  .tr-viewseg button:first-child { border-radius:5px 0 0 5px; }
  .tr-viewseg button:last-child { border-radius:0 5px 5px 0; border-left:none; }
  .tr-viewseg button.on { background:var(--surface2); color:var(--text); border-color:var(--text-muted); }
  /* ── THE PROPOSAL HIGHLIGHT: ONE BAND, NOT A ROW OF BOXES ─────────────────
     A passage is ONE thing and has to read as one. The marking is applied per word — it must be,
     since the transcript is painted with classes and never rewritten (see the containment
     guards) — so the band is made continuous by construction instead: every word span carries
     its own trailing space INSIDE it (`word + ' '` in renderTranscript), so adjacent fills abut
     with nothing unpainted between them and the run comes out as a single sweep of colour. That
     is why the collapsed view must not add a separator text node of its own; one did, and it put
     an unfilled gap at every word boundary, which is exactly the row of boxes.

     NO RADIUS, for the same reason — a corner at every word notches the band at every boundary.

     NO UNDERLINE. It used to distinguish "coming" from "playing": underline for the not-yet, fill
     for the now, on the reasoning that a fill would compete with the part actually playing. But
     an underline is a second mark in the same colour saying the same thing, and per word it is
     the strongest possible box-drawing — a rule under every word with a break at every space.
     The competition it was avoiding is better answered by INTENSITY: one treatment, two weights.

     box-decoration-break:clone so a fragment that wraps keeps its fill rather than losing it on
     the continuation line. */
  .tr-word.cg-part { background:rgba(251,176,59,0.13); box-shadow:none; border-radius:0;
    -webkit-box-decoration-break:clone; box-decoration-break:clone; }
  .tr-word.cg-part-now { background:rgba(251,176,59,0.30); box-shadow:none; border-radius:0;
    -webkit-box-decoration-break:clone; box-decoration-break:clone; }
  /* THE GREEN CLIP TINT IS THE TEAM'S. It answers "is this passage clipped?", which only the
     team asks — and for a client every proposal part IS a clip, so the same words carried both
     the sage tint and the gold proposal marking, two colours with no legend meaning nearly the
     same thing. One colour, two intensities: gold underline for a part that is coming, gold
     fill for the part playing. */
  #rv-transcript-view[data-team="0"] .tr-st-clip { background:none; box-shadow:none; }
  /* ── THE PROPOSAL HEADER ───────────────────────────────────────────────────
     Inset to 48px so the name lines up with the text column beneath it (.tr-scroll and
     .cg-pv-scroll both pad 48px), with the rule outside that and the text a further 12px in —
     an indent that reads as deliberate rather than as a column that failed to line up.
     THE RULE IS THE SAME GREEN AS THE CHOSEN RAIL ROW, via the same variable rather than a
     matching hex: the header exists because a row was clicked, and the colour is what says which
     one. Two literals that happen to agree would drift the first time either is restyled. */
  /* A TINTED PANEL, not a line of text. The rule alone left the name and its figures reading as
     loose text that happened to sit above the transcript; a container says the clip is a thing
     the page is holding. The green LEFT RULE is unchanged and still does the work it was added
     for — tying the header to the chosen rail row — and the tint is the same green at low alpha,
     so the panel does not introduce a second colour. Radius on the right only, so the rule stays
     flush and reads as an edge rather than a decoration. */
  .tr-cvhead { flex-shrink:0; margin:0 48px 12px; padding:9px 12px;
    border-left:2px solid var(--color-clip); background:rgba(74,124,89,0.05);
    border-radius:0 6px 6px 0; }
  /* Name, play, then Exit pushed right. baseline alignment so the glyph sits ON the name's line
     rather than centred against a two-line name — the pair has to read as one phrase. */
  /* Description left, controls right, controls CENTRED against the pair rather than aligned to
     either line — they act on both. */
  .tr-cvhead-top { display:flex; align-items:center; gap:14px; }
  /* min-width:0 is what makes truncation possible AT ALL: a flex item's default min-width is
     auto, so the name would refuse to shrink below its content and push the controls out of the
     panel instead. That is the bug this layout would otherwise have, and it was already latent
     with two controls. */
  .tr-cvhead-main { flex:1 1 auto; min-width:0; }
  /* TRUNCATES, never wraps. A wrapping name grows the panel downward and drags the controls with
     it; an ellipsis keeps the row one line whatever the name is. The full text stays in the DOM
     and in the title attribute. */
  .tr-cvhead-name { color:var(--text); font-size:0.95rem; font-weight:600; line-height:1.3;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* flex-shrink:0 — the controls keep their size and the name takes what is left, never the
     other way round. */
  .tr-cvhead-actions { flex:0 0 auto; display:flex; align-items:center; gap:8px; }
  /* The divider does the separating that Exit's border used to. */
  .tr-cvhead-div { flex:0 0 auto; width:1px; align-self:stretch; margin:2px 3px;
    background:var(--border-strong); }
  /* LABELLED AND FILLED, in the selection green. It is the primary action on this screen, and as
     a bare glyph in a 22px square it read as decoration — an outlined or unlabelled control is
     the visual language of something switched off. flex-shrink:0 so a long name cannot squeeze
     it away; align-self keeps it on the name's first line rather than centred against two. */
  .tr-cvhead-play { flex-shrink:0; align-self:center; display:inline-flex; align-items:center;
    gap:7px; padding:8px 15px; border:none; border-radius:6px; background:var(--color-clip);
    color:#fff; font-family:inherit; font-size:0.84rem; font-weight:600; cursor:pointer; }
  .tr-cvhead-play:hover { filter:brightness(1.12); }
  /* Exit sits BESIDE Play, not against the far margin where it was disconnected from the thing
     it exits. A visible border and no fill keeps the two distinguishable at a glance: one is the
     action, one is the way out, and they must not read as a pair of equal buttons. */
  /* Jump shares Exit's outline treatment — both are secondary to Play and neither should read as
     the primary action sitting beside them. */
  /* Jump keeps an outline — it is an action on the clip, sitting beside Play, and needs to read
     as a button. Exit does not: the divider already separates it, and a third bordered box in the
     row would make three equal-looking choices out of two actions and a way out. */
  .tr-cvhead-jump { flex-shrink:0; align-self:center; padding:8px 15px;
    border-radius:6px; border:0.5px solid var(--border-strong); background:none;
    color:var(--text-secondary); font-family:inherit; font-size:0.84rem; cursor:pointer; }
  .tr-cvhead-jump:hover { color:var(--text); border-color:var(--text-muted); }
  .tr-cvhead-exit { flex-shrink:0; align-self:center; padding:8px 4px; border:none;
    background:none; color:var(--text-secondary); font-family:inherit; font-size:0.84rem;
    cursor:pointer; }
  .tr-cvhead-exit:hover { color:var(--text); }
  /* Tabular figures so the two timecodes do not jitter against each other. */
  .tr-cvhead-sub { margin-top:3px; color:var(--text-muted); font-size:0.72rem; line-height:1.45;
    font-variant-numeric:tabular-nums; }
  /* THE LENGTH CARRIES THE WEIGHT — it is the fact most clients want, and joined into a sentence
     it was the least visible thing in the line. The other two stay muted: they explain the first
     one rather than competing with it. */
  /* THE NOTE COMPOSER LIVES IN THE HEADER, below a hairline, full width. Not a popover and not
     a modal: the header is the one region that unambiguously belongs to the selected clip, so
     the composer needs no label saying what it is attached to — and selecting another clip
     replaces the header, so the composer goes with it. No dismissable layer, no focus trap, and
     no question about what happens if a client clicks a different clip while it is open.
     Themed with vars rather than literals: the header renders in whichever theme the view
     carries, and a hardcoded light panel would be a white slab on the team's dark editor. */
  /* The reaction composer rules were deleted with it — item 264. */
  .tr-cvhead-dur { color:var(--text); font-weight:600; }
  .tr-cvhead-dot { margin:0 2px; opacity:0.5; }
  /* THE TRANSPORT — inside the panel, below the name row, present only while playing. Replaces
     the preview bar, which carried its own name, pause and exit directly above the header's. */
  .tr-cvt { display:flex; align-items:center; gap:9px; margin-top:9px; }
  .tr-cvt-time { flex:0 0 auto; font-size:0.68rem; color:var(--text-muted);
    font-variant-numeric:tabular-nums; }
  .tr-cvt-total { text-align:right; }
  /* One segment per SECTION, flex-weighted by its share of the clip, so the widths mean
     something. The gap is what draws the division — a border would add width the weighting
     does not account for. */
  .tr-cvt-track { flex:1 1 auto; min-width:0; display:flex; gap:2px; height:5px; }
  .tr-cvt-seg { position:relative; overflow:hidden; border-radius:3px;
    background:rgba(74,124,89,0.22); }
  .tr-cvt-fill { position:absolute; left:0; top:0; bottom:0; background:var(--color-clip);
    border-radius:3px; }
  /* COLLAPSED VIEW: cloned blocks, so the rendering is the transcript's by construction. */
  .tr-cv-block.now .tr-para { background:rgba(251,176,59,0.14); border-radius:3px; }
  /* THE BREAK BETWEEN SECTIONS. A rule ACROSS the column, not a wider margin — whitespace is
     what separates paragraphs of one continuous statement, so more of it says "same thing, new
     breath" and is exactly the reading this has to prevent. The label carries no duration: how
     much was passed over is a fact about the interview, not about the proposal. */
  .tr-cv-break { display:flex; align-items:center; gap:10px; margin:22px 0; color:var(--text-muted);
    font-size:0.62rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; }
  .tr-cv-break::before, .tr-cv-break::after { content:''; flex:1;
    border-top:1px dashed var(--border-strong); }
  /* THE ONE DECISION AFFORDANCE ON THE PAGE — gold, and the only gold in the client view.
     Deliberately NOT Approve / Request changes: a client marking passages is not making a
     formal decision, and offering one here would misrepresent what they are doing. */
  /* SLATE-BLUE, NOT GREEN. --approved means "approved" everywhere else in this portal, and
     a transcript is a working surface that is never approved — that distinction is the whole
     basis for the transcript's separate vocabulary, so painting its receipt green undoes it
     in the one place a client actually reads. #4A7A99 is the informational colour the fold
     note and the thumbnail badge already use: this is a fact about what happened, not a
     state the work is in. The check glyph stays — it confirms receipt, which is true. */
  /* ══ IN-PLACE PREVIEW (client) ══════════════════════════════════════════════════════════
     The team's preview REPLACES the transcript column with its own view. For a client that
     loses the one thing the page is for: seeing where a clip sits in the conversation. So the
     transcript stays, everything outside the group drops to 40%, and the group reads as one
     thing without being extracted from its context.

     DIMMED, NOT HIDDEN. A client watching parts jump needs to see that material was passed over
     — hiding it makes the jumps look like playback faults. */
  /* DE-EMPHASISE, DO NOT DISABLE. opacity:0.4 over a dark surface is grey-on-grey: a client
     had to press play to read a passage, which is the opposite of what a transcript is for.
     Colour, not opacity — the non-playing text stays comfortably readable and the playing part
     wins on contrast rather than on the rest being switched off. */
  #rv-transcript-view.cg-inplace .tr-word,
  #rv-transcript-view.cg-inplace .tr-speaker,
  #rv-transcript-view.cg-inplace .tr-block-time { color:#8d857c; transition:color 140ms ease; }
  #rv-transcript-view.cg-inplace .tr-word.cg-part { color:var(--text); }
  /* The part PLAYING now, in the same gold the transcript already uses for a team clip. */
  /* COLOUR ONLY. The fill comes from the base rule above, so the two intensities are declared
     once — this rule carried its own copy of the playing fill and would have drifted from it. */
  #rv-transcript-view.cg-inplace .tr-word.cg-part-now { color:var(--text); }
  /* Left rail: the team's clips, persistent while the transcript scrolls. */
  .tr-client-groups { display:flex; flex-direction:column; gap:5px; padding:10px 9px 12px; }
  /* SENTENCE CASE AT REAL SIZE. Small, uppercase and muted was right when this was the only text
     in the block; once the clip names grew it became the quietest thing in the section it heads,
     which inverts the reading order — the label a client needs first was the last thing they saw.
     It now outranks the blurb beneath it and stays below the names, which are still what gets
     read. Sized relative to those two deliberately: name 0.9 > heading 0.82 > blurb 0.72. */
  .tr-client-ghead { display:flex; align-items:baseline; gap:7px; padding:0 3px 4px; }
  .tr-client-glabel { color:var(--text); font-size:0.82rem; font-weight:600;
    letter-spacing:0; text-transform:none; }
  /* The selection green, so the badge reads as part of the same system as the chosen row and the
     play control rather than as a third accent. Baseline-aligned with the heading, not centred —
     a pill centred against a larger word sits visibly low. */
  .tr-client-gcount { flex-shrink:0; background:var(--color-clip); color:#fff; font-size:0.62rem;
    font-weight:700; line-height:1; padding:3px 6px; border-radius:9px;
    font-variant-numeric:tabular-nums; }
  /* The heading NAMES the rail; this says what to do with it. A client arriving at a list of
     named passages has nothing telling them an opinion is wanted rather than a finished list
     being shown — and the ask has to arrive before the rows, not after them at the Send button. */
  .tr-client-gsub { color:var(--text-secondary); font-size:0.72rem; line-height:1.45;
    padding:0 3px 9px; }
  /* Treatment A: name on top, duration beneath. No play triangle — every row plays, so a glyph
     on each one marks nothing, and it was stealing width from the name. */
  .tr-cg-item { display:flex; align-items:flex-start; gap:8px; width:100%; text-align:left; padding:8px 10px;
    border:0.5px solid var(--border); border-radius:6px; background:none; color:var(--text);
    font-family:inherit; font-size:0.76rem; cursor:pointer; }
  .tr-cg-item:hover { border-color:var(--color-clip); background:rgba(74,124,89,0.07); }
  /* Per-clip feedback, revealed only on the SELECTED row. Below a hairline so it reads as
     a second register within the row rather than more of the same line.
     SLATE-BLUE when active: green is the play button in this very row and means approved
     elsewhere; gold means a decision. This is neither. */
  .tr-cg-item { flex-wrap:wrap; }
  /* ⚠️ THE PREVIOUS RULES WERE DARK-THEME VALUES ON A LIGHT SURFACE, which is the whole bug.
     A #5A5A52 border and #B4B4AD text over the client rail's light background is a faint grey
     on a faint fill — the universal look of a DISABLED control — and the hairline above them
     was rgba(255,255,255,0.08), i.e. white on white and therefore not there at all. Clients are
     LOCKED to light (item 60), so this surface is never dark for the people who use it.
     TWO EQUAL BUTTONS, no text input. The input was flex:1 in a ~290px rail beside a fixed
     button, which left it too narrow to show its own placeholder — "Add a note about th". A
     field that cannot display its prompt is not a field. The composer moved to the clip header,
     where the width is the whole pane. */
  .tr-cf { display:flex; align-items:stretch; gap:8px; width:100%; margin-top:8px; padding-top:8px; border-top:0.5px solid rgba(0,0,0,0.10); }
  /* flex:1 1 0 with min-width:0 — EQUAL halves regardless of label length. flex:1 alone uses
     content as the basis, so "Looks good" would take more room than "Add note" and the pair
     would sit off-centre. min-width:0 is what lets either shrink at all. */
  .tr-cf-btn { flex:1 1 0; min-width:0; height:28px; display:inline-flex; align-items:center; justify-content:center; gap:6px;
    background:#FFFFFF; border:0.5px solid #B4B2A9; color:#3A3A37; border-radius:4px;
    font-family:'Inter',sans-serif; font-size:11px; font-weight:600; cursor:pointer;
    padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tr-cf-btn:hover { border-color:#8A887F; background:#F7F6F3; }
  /* SLATE-BLUE active, not green: green is the play glyph in this very row and means approved
     elsewhere in the portal. Gold means a decision. Clip feedback is neither. */
  .tr-cf-btn.on { background:#EEF3F6; border-color:#4A7A99; color:#395A6E; }
  .tr-cf-btn svg { flex-shrink:0; }

  .tr-cg-item.playing { border-color:var(--color-clip); background:rgba(74,124,89,0.12); }
  /* WRAPS TO TWO LINES rather than truncating. A group name is the only thing telling a client
     what the clip is; an ellipsis in a 200px rail hides the half that distinguishes
     "The diagnosis" from "The diagnosis, short version". */
  /* THE NAME IS WHAT GETS READ, so it carries the size. Everything else in the row — the
     duration, the heading above it — is supporting detail, and at a uniform 0.76rem the row had
     no focal point: a client scanned three identical-weight blocks to find out what they were
     being offered. The heading stays small on purpose; it is a section label, not a peer. */
  .tr-cg-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; line-height:1.3; font-size:0.9rem; font-weight:600; color:var(--text); }
  /* Duration alone, on its own line. Or Part N of M while playing — never both. */
  .tr-cg-meta { display:block; margin-top:3px; font-size:0.68rem; color:var(--text-muted);
    font-variant-numeric:tabular-nums; }
  .tr-cg-item.playing .tr-cg-meta { color:var(--color-clip); font-weight:600; }
  .nav-divider { height:1px; margin:9px 16px; background:var(--border); }
  .sidebar.collapsed .nav-divider { margin:9px 12px; }
  /* ⚠️ TOKENISED, ITEM 631: was the literal #FBB03B. Rail parity repoints the client to this ONE
     base rule (its own colour override at the old 1323 is deleted), so a hardcoded hex here would
     be a hex reused rather than a token shared — rail-parity.mjs forbids the literal on this
     selector for exactly that reason. Same value, --rd-gold, :root ~159. */
  /* ⚠️ line-height:1.2 IS EXPLICIT, ITEM 631 — measured needed. The client's own typography
     override (font-size:13px, Archivo) sets no line-height of its own, so this UNITLESS ratio
     cascades to it too and is computed against ITS OWN font-size (15.6px there, 12px here) — a
     browser 'normal' line-height for an uninstalled family (Archivo/Montserrat, neither a system
     font on a bare headless render) was measured to be non-deterministic well past this, tall
     enough that a client render occasionally exceeded the 42px logo's height and grew
     `.sidebar-brand` a few px taller than the team's — the exact drift rail-parity-live.mjs's
     equal-header-height pin exists to catch. Both stacks now sit safely under the logo's 42px in
     every measured run. */
  .brand-text-sub { font-family:'Montserrat',sans-serif; font-weight:700; font-size:10px; line-height:1.2; color:var(--rd-gold); margin-top:1px; letter-spacing:0.08em; text-transform:uppercase; }
  /* ⚠️ ITEM 631: an EXPLICIT, FIXED height on the wordmark+role stack — not just the ratio
     line-height above — so `.brand-row`'s height (and so `.sidebar-brand`'s) stays anchored to
     the 42px logo regardless of which audience's font metrics (Montserrat/10px vs the client's
     own Archivo/13px override) a given browser measures for the text inside. 30px comfortably
     clears both stacks in every measured run; `overflow:hidden` is the guard-rail for the rare
     case a browser's font-fallback metrics still exceed it. rail-parity-live.mjs pins the two
     rails' `.sidebar-brand` heights equal — this rule is why that holds regardless of typography. */
  .brand-text-col { height:30px; overflow:hidden; display:flex; flex-direction:column; justify-content:center; }
  /* ⚠️ ITEM 631: an empty reserved line under the wordmark, filled 'Team' by applyTeamNav only —
     see that function. min-height MUST equal its own line-height (rail-parity.mjs pins the
     equality) so the slot holds its place empty for a client and does not shift the nav down by a
     few px only for a team session. Styled off .sidebar-client-label (same font-size/colour/
     letter-spacing) but NOT uppercase — a status word ("Team") reads as a sentence, not a label. */
  .brand-role { font-size:10px; color:var(--text-muted); letter-spacing:0.1em; line-height:12px; min-height:12px; margin-top:2px; }
  .sidebar.collapsed .brand-role { display:none; }
  /* Generic branding mode (per-workspace, via body.branding-generic from applyBranding):
     hide the BR logo icon so the standalone "CLIENT PORTAL" text is the mark. Text/logo
     swap only — brand colors (gold/orange/black) are unchanged. */
  body.branding-generic .brand-logo-img { display:none; }
  body.branding-generic .brand-text-sub { font-size:14px; letter-spacing:0.1em; margin-top:0; }

  /* ── Share-bundle: select mode + guest bundle grid ── */
  /* Signed releases list (project detail) */
  .rel-row { display:flex; align-items:center; gap:10px; padding:10px 14px; border:0.5px solid var(--border); border-radius:8px; background:var(--surface); margin-bottom:8px; }
  .rel-ico { color:var(--text-muted); flex-shrink:0; }
  .rel-name { font-size:13px; color:var(--text); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rel-dl { margin-left:auto; flex-shrink:0; font-size:11.5px; font-weight:600; color:var(--brand); text-decoration:none; border:0.5px solid var(--border); border-radius:5px; padding:5px 11px; }
  .rel-dl:hover { border-color:var(--brand); background:rgba(251,176,59,0.08); }
  /* Collapsed signed-releases summary on the Downloads page (one per project group).
     Expanded rows reuse .rel-row/.rel-name/.rel-dl above so the two surfaces match. */
  .arch-rel { margin:0 0 10px; }
  .arch-rel-head { display:flex; align-items:center; gap:8px; width:100%; background:none; border:0; padding:6px 0; cursor:pointer; font-family:'Inter',sans-serif; color:#FBB03B; }
  .arch-rel-head:hover { filter:brightness(1.12); }
  .arch-rel-ico { flex-shrink:0; }
  .arch-rel-label { font-size:12.5px; font-weight:600; }
  .arch-rel-chev { margin-left:6px; flex-shrink:0; transition:transform .15s; }
  .arch-rel.open .arch-rel-chev { transform:rotate(180deg); }
  .arch-rel-body { display:none; padding-top:6px; }
  .arch-rel.open .arch-rel-body { display:block; }
  .proj-select-btn { margin-left:auto; display:inline-flex; align-items:center; gap:7px; background:var(--surface2); border:0.5px solid var(--border); color:var(--text); font-family:'Inter',sans-serif; font-size:12px; font-weight:500; padding:8px 14px; border-radius:6px; cursor:pointer; transition:background .15s, border-color .15s, color .15s; white-space:nowrap; }
  .proj-select-btn:hover { border-color:var(--brand); color:var(--brand); }
  .proj-select-btn svg { flex-shrink:0; }
  .proj-select-bar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--surface); border:0.5px solid var(--brand); border-radius:8px; padding:12px 16px; margin:1.25rem 0 1rem; box-shadow:0 4px 18px rgba(0,0,0,0.25); }
  .psb-info { font-size:13px; color:var(--text); } .psb-info b { color:var(--brand); }
  .psb-actions { display:flex; gap:10px; }
  .psb-cancel { background:none; border:0.5px solid var(--border); color:var(--text); font-family:'Inter',sans-serif; font-size:12.5px; padding:8px 16px; border-radius:6px; cursor:pointer; }
  .psb-cancel:hover { background:var(--surface2); }
  .psb-create { background:var(--brand); border:none; color:#1a1c20; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; padding:8px 16px; border-radius:6px; cursor:pointer; }
  .psb-create:disabled { opacity:0.4; cursor:not-allowed; }
  .psg-group { margin-bottom:1.75rem; }
  .psg-group-title { font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); font-weight:600; margin:0 0 0.75rem; }
  .psg-loading { padding:2rem; text-align:center; color:var(--text-muted); font-size:13px; }
  .ag-card--select { cursor:pointer; }
  .ag-card--select.ag-selected { outline:2px solid var(--brand); outline-offset:-2px; }
  /* Top-LEFT so it never collides with the top-right status badge; cool blue when selected
     so it reads distinctly from any warm-toned status badge. Select mode only. */
  .ag-select-check { position:absolute; top:8px; left:8px; z-index:4; width:22px; height:22px; border-radius:5px; border:1.5px solid rgba(255,255,255,0.65); background:rgba(0,0,0,0.45); display:flex; align-items:center; justify-content:center; color:#fff; }
  .ag-card--select.ag-selected .ag-select-check { background:#4A9EFF; border-color:#4A9EFF; color:#fff; }
  /* Bundle share-link modal */
  .bundle-ov { position:fixed; inset:0; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; z-index:500; padding:24px; }
  .bundle-modal { width:100%; max-width:460px; background:var(--surface); border:0.5px solid var(--border); border-radius:10px; padding:22px; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
  .bundle-modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
  .bundle-modal-head h3 { font-family:'Manrope',sans-serif; font-size:1.05rem; font-weight:700; color:var(--text); margin:0; }
  .bundle-modal-x { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:15px; }
  .bundle-modal-sub { font-size:12.5px; color:var(--text-muted); line-height:1.5; margin:0 0 14px; }
  /* Item 720: a guest reads a Publish Details before naming themselves. */
  #metadata-view.md-guest-locked .md-rt-toolbar,
  #metadata-view.md-guest-locked .md-chip button,
  #metadata-view.md-guest-locked .md-tag-add,
  #metadata-view.md-guest-locked #md-ab-save,
  #metadata-view.md-guest-locked #md-ab-dirty { display:none !important; }
  #metadata-view.md-guest-locked .md-title-area,
  #metadata-view.md-guest-locked .md-rt-edit,
  #metadata-view.md-guest-locked .md-date-edit { background:transparent; border-color:transparent; cursor:default; }
  .md-sec-state { margin-left:8px; font-size:11px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--text-muted); }
  .md-sec-state.is-saved { color:var(--approved, #4ec98a); }
  .md-sec-state.is-error { color:var(--text-danger, #E24B4A); }
  /* ⟦item 986⟧ the quiet "Saved" fades; the two-people question's buttons */
  .md-sec-state { transition:opacity .6s ease; }
  .md-sec-state.is-fading { opacity:0; }
  .md-sec-state .md-draft-btn { background:none; border:0; padding:0; font:inherit; font-weight:700; color:inherit; text-decoration:underline; cursor:pointer; }
  .md-sec-retry { background:none; border:none; padding:0; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
  .md-guest-unlock { background:none; border:none; padding:0; color:var(--brand); font:inherit; text-decoration:underline; cursor:pointer; }
  .md-guest-attrib { margin-top:4px; color:var(--text-muted); }
  /* Item 720: what a link LEFT OUT, said on screen — never only a smaller count. */
  .bundle-skipped { margin:0 0 14px; padding:10px 12px; border:0.5px solid rgba(226,75,74,0.45); background:rgba(226,75,74,0.08); border-radius:6px; font-size:12.5px; line-height:1.5; color:var(--text); }
  .bundle-skipped-h { font-weight:600; margin:0 0 4px; }
  .bundle-skipped ul { margin:0; padding:0 0 0 16px; }
  .bundle-url-row { display:flex; gap:8px; }
  .bundle-url-input { flex:1; min-width:0; background:var(--bg); border:0.5px solid var(--border); border-radius:6px; color:var(--text); font-size:12.5px; padding:9px 11px; font-family:'Inter',sans-serif; outline:none; }
  .bundle-url-input:focus { border-color:var(--brand); }
  .bundle-copy-btn { background:var(--brand); border:none; color:#1a1c20; font-weight:600; font-size:12.5px; padding:9px 16px; border-radius:6px; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; }
  /* Guest bundle grid view */
  #guest-bundle-view { max-width:1100px; margin:0 auto; padding:48px 32px; }
  .gbv-back { display:inline-flex; align-items:center; gap:5px; }
  .gbv-back svg { flex-shrink:0; }
  .gbv-head { margin-bottom:1.75rem; }
  .gbv-title { font-family:'Manrope',sans-serif; font-size:1.5rem; font-weight:700; color:var(--text); margin-bottom:4px; }
  .gbv-sub { font-size:13px; color:var(--text-muted); }
  /* Mirrors .review-player:fullscreen — black ground, picture centred, transport still on screen. */
  /* ── Guest preview (lightweight single-asset share landing) ──
     Replaces the full review page for a single-asset share link: watch + react freely,
     comments unlock after the (existing) email gate, and there is NO download anywhere on
     percentage-height child is the WebKit percentage cycle (items 215/216, guarded), so the
     black box on screen until then. */
  /* Locked state: ghost lines under a blur, a lock, one CTA. The ghost is decoration, not
     content — it is aria-hidden and carries no real comment text. */
  /* --rd-gold, the portal's one reserved decision hue — was var(--brand), which is a
     different amber and made the guest screen's primary action the only one in the product
     not spelling the same token. */
  /* Inline identify step — the SAME two-stage gate as #guest-email-gate, rendered in the
     panel instead of a modal (guestEmailGate takes the elements as an argument). */
  /* Unlocked state: a plain thread + a one-line composer. Not the review page's thread UI. */
  /* ⚠️ min-height:106px, ITEM 631 — MEASURED, NOT GUESSED. A plain client's block is one row
     shorter than the team's (no chevron, no "See as client" row), so without a floor the two
     rails' first `.nav-item` sits at different heights. 106px is the TEAM state's real rendered
     height: label + name row (with the chevron shown) + short code + the preview-button row +
     this rule's own 14px/14px padding — measured with a throwaway headless-Chrome harness (the
     version-history-door-live.mjs pattern: real stylesheet + real `#sidebar` markup, chevron and
     `#sidebar-preview-btn` forced visible, name/short populated, `getBoundingClientRect()` read
     back through a `<pre>`) against the CURRENT stylesheet — rail-parity-live.mjs re-measures the
     same way on every run and fails if this drifts from it. */
  .sidebar-client { position:relative; padding:14px 20px; border-bottom:0.5px solid var(--border); min-height:106px; }
  /* No left-inset here — .sidebar-client's own 20px padding (line 8157) already lands exactly on
     the ICON column: sidebar-nav's 10px padding + nav-item's own 10px padding = 20px from the
     sidebar edge, same as .sidebar-client-preview's icon (its -8px margin and 8px padding net to
     zero against this same 20px). The label/name/short align with where icons START, not where
     nav-item TEXT starts after its icon+gap (that was the prior, now-reverted 27px offset). */
  .sidebar-client-label { font-size:10px; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin-bottom:3px; }
  .sidebar-client-name { font-size:13.5px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* Short name (Client Code) under the full workspace name — same secondary-line treatment as
     .client-switcher-item-meta ("N active projects"). Omitted entirely (kept display:none) when
     the client has no Client Code set, rather than rendering an empty line. */
  .sidebar-client-short { font-size:11px; color:var(--text-muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* Team-only client switcher */
  .sidebar-client.switchable { cursor:pointer; }
  .sidebar-client.switchable:hover { background:rgba(255,255,255,0.03); }
  .sidebar-client-row { display:flex; align-items:center; gap:6px; }
  .sidebar-client-row .sidebar-client-name { flex:1; min-width:0; }
  .sidebar-client-chevron { flex-shrink:0; color:var(--text-muted); transition:transform .18s ease; }
  .sidebar-client.open .sidebar-client-chevron { transform:rotate(180deg); }
  /* No `display` declared: updateSidebarUser toggles between inline-flex and none, so the
     rule cannot fight the inline style that gates the audience. */
  .sidebar-client-preview { align-items:center; gap:6px; margin:7px 0 0 -8px; padding:5px 8px; background:none; border:none; border-radius:4px; font-family:'Inter',sans-serif; font-size:11.5px; color:var(--text-muted); cursor:pointer; line-height:1; transition:color .15s, background .15s; }
  .sidebar-client-preview:hover { color:var(--brand); background:rgba(255,255,255,0.06); }
  .sidebar-client-preview svg { flex-shrink:0; }
  .client-switcher-menu {
    display:none; position:absolute; top:calc(100% - 4px); left:14px; right:14px; z-index:120;
    background:#1e1e1e; border:0.5px solid rgba(255,255,255,0.12); border-radius:6px;
    box-shadow:0 8px 24px rgba(0,0,0,0.4); padding:6px; max-height:60vh; overflow-y:auto;
  }
  .sidebar-client.open .client-switcher-menu { display:block; }
  .client-switcher-head { font-size:10px; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); padding:6px 8px 7px; }
  .client-switcher-item {
    display:flex; align-items:center; gap:8px; padding:8px 8px; border-radius:4px;
    cursor:pointer; color:#ccc; transition:background .12s, color .12s;
  }
  .client-switcher-item:hover { background:rgba(255,255,255,0.05); color:#fff; }
  .client-switcher-item.active { color:#FBB03B; }
  .client-switcher-item-body { flex:1; min-width:0; }
  .client-switcher-item-name { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* Short name (Client Code), directly under the full name — same treatment as
     .client-switcher-item-meta, kept as its own class so an item with BOTH a short name and a
     project-count meta line renders two distinct secondary lines rather than overwriting one. */
  .client-switcher-item-code { font-size:11px; color:var(--text-muted); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .client-switcher-item.active .client-switcher-item-code { color:rgba(251,176,59,0.7); }
  .client-switcher-item-meta { font-size:11px; color:var(--text-muted); margin-top:1px; }
  .client-switcher-item.active .client-switcher-item-meta { color:rgba(251,176,59,0.7); }
  .client-switcher-check { flex-shrink:0; width:14px; display:flex; align-items:center; justify-content:center; }
  /* "Preview as this client" (team-only QA tool — handleTeamPreviewClient). Own tab, read-only
     session; does not switch this tab's own client context, so it sits apart from the row's
     click-to-switch behavior rather than inside it. */
  .client-switcher-preview-btn { flex-shrink:0; width:22px; height:22px; display:flex; align-items:center; justify-content:center; border-radius:4px; color:var(--text-muted); background:none; border:none; cursor:pointer; }
  .client-switcher-preview-btn:hover { background:rgba(255,255,255,0.08); color:#fff; }
  .client-switcher-empty { padding:10px 8px; font-size:12px; color:var(--text-muted); }
  .sidebar-nav { flex:1; padding:12px 10px; display:flex; flex-direction:column; gap:1px; }
  .nav-item {
    display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:4px;
    font-size:13px; color:var(--text-muted); cursor:pointer;
    transition:background 0.12s, color 0.12s; user-select:none; position:relative;
  }
  .nav-item:hover { background:rgba(255,255,255,0.05); color:var(--text); }
  /* ⚠️ TOKENISED, ITEM 631: was the literal #FBB03B. Background stays the bare rgba literal —
     that is the team's own existing value and rail parity leaves it as the only rule now that
     the client's neutral/amber split (the old 1349/1350) is deleted. */
  .nav-item.active { background:rgba(255,255,255,0.05); color:var(--rd-gold); }
  .nav-item-icon { font-size:14px; width:18px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; }
  /* ⚠️ TOKENISED, ITEM 631: background was the literal #F7931E. color:#fff stays literal — white
     is not a palette token here. The client's own badge override (padding/radius/font-weight) is
     deleted, so this is now the only rule and both rails render it. */
  .nav-badge {
    margin-left:auto; background:var(--rd-gold-2); color:#fff;
    font-family:'Montserrat',sans-serif; font-size:10px; font-weight:700; padding:1px 6px; border-radius:2px;
    min-width:18px; text-align:center;
  }
  /* ⚠️ COLUMN, NOT ROW — the footer now stacks the user row over the Log out row. The team's
     appearance is unchanged by this: its only footer content is still .sidebar-user (the same
     avatar + name + ⎋ row this used to lay out directly), so a one-child column and a one-child
     row render identically. */
  .sidebar-footer { padding:14px 20px 20px; border-top:0.5px solid var(--border); display:flex; flex-direction:column; align-items:stretch; gap:4px; margin-top:auto; }
  .sidebar-user { display:flex; align-items:center; gap:9px; }
  .sidebar-user-meta { flex:1; min-width:0; }

  /* ── LOG OUT ──────────────────────────────────────────────────────────────────────────────
     ⚠️ THE GEOMETRY IS .nav-item's, RETYPED RATHER THAN INHERITED, AND THAT IS DELIBERATE.
     Giving the button `class="nav-item"` would hand it the rail's ACTIVE treatment
     (`.nav-item.active { color:#FBB03B }`), the collapsed tooltip `::after`, and
     sidebarNavBg/setNavActive's idea of what a nav item is — none of which apply to a control
     that leaves the portal. It matches the nav's numbers because the brief asks it to LOOK like
     one, and `checks/sidebar-logout.mjs` asserts the two stay equal so "matches the nav items"
     cannot quietly stop being true.

     ⚠️ THE HOVER CORAL IS REVOKE'S, TYPED HERE, NOT READ FROM IT — and that is a compromise, not
     a preference. .share-revoke-link's own rule says "Nothing else may derive from these values",
     and guest-no-share.mjs asserts that rule DECLARES its coral rather than borrowing one, so
     promoting these to a shared token would fail that guard. Jeffrey asked for Revoke's existing
     coral and no new colour, so the values are repeated with both facts written down: they are
     the same coral by instruction, and NOTHING enforces that they stay the same. Reported. */
  .sidebar-logout {
    display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:4px;
    width:100%; background:none; border:none; text-align:left;
    font-family:'Inter',sans-serif; font-size:13px; color:var(--text-muted);
    cursor:pointer; transition:background 0.12s, color 0.12s;
  }
  .sidebar-logout-icon { width:18px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; }
  .sidebar-logout:hover, .sidebar-logout:focus-visible { background:rgba(232,52,42,0.08); color:#FF7A6E; }
  /* Both skins show this control (Jeffrey's ruling). No audience scope here on purpose — the
     only per-skin difference is geometry, which the client-skin rule handles. */
  .user-avatar {
    width:28px; height:28px; border-radius:50%; background:#333;
    border:0.5px solid var(--border); display:flex; align-items:center; justify-content:center;
    font-size:10px; font-weight:600; color:var(--text-muted); flex-shrink:0;
  }
  .user-info-name { font-size:12px; font-weight:500; color:var(--text-muted); }
  /* ⟦team v5⟧ the way into v5 from today's pages: team-only (renderTeamBadge un-hides it for a member allowed v5 whose own
     choice is off), never in the collapsed rail. The colours are TEAM-20's, as literals: this is v4 sidebar CSS (no .v5 tokens). */
  .team-newv-try { flex:0 0 auto; padding:4px 8px; border:0.5px solid #24344c; border-radius:6px; background:#141d2a; color:#8fb0ff; font-family:'Inter',sans-serif; font-size:10.5px; font-weight:600; white-space:nowrap; cursor:pointer; }
  .team-newv-try:hover { background:#1a2638; }
  .team-newv-try[hidden], .sidebar.collapsed .team-newv-try { display:none; }
  .user-info-role { font-size:10px; color:var(--text-muted); margin-top:1px; opacity:.6; }

  /* ── MAIN WRAPPER ── */
  .portal-main { flex:1; display:flex; flex-direction:column; overflow:hidden; height:100vh; }

  /* ── TOPBAR ── */
  /* One step darker than #rv-action-bar's #1A1A1A below it, so this row files itself as
     chrome/navigation and the toolbar reads as the working surface. It was already darker at
     #111111, but only by 9 levels — too close to register as a separate region. */
  .topbar {
    /* §2 (item 375): chrome bg + hairline. ⚠️ The long-standing optical
       padding-top correction below was PREMISED on there being no visible
       boundary at the band edge (canvas-on-canvas, so the eye read the band as
       running to the action bar). The §2 hairline IS the boundary, so the
       premise lapsed with it (item 168's shape) and standard centring is
       correct again. */
    background:var(--rd-chrome); border-bottom:1px solid var(--rd-hairline);
    /* padding-top is an OPTICAL correction, not a centring fix — the row is already
       align-items:center and measures dead centre. The topbar background and the 8px gap below it
       are both --rv-canvas, so with no boundary at y=52 the eye reads the black band as running
       0→60 (down to the action-bar card) and its centre as y=30, while the content centres on
       y=26. The 8px inset pushes the content onto the perceived centre. */
    /* left inset 22px, not 28px, so Back lines up with Share in the toolbar row below: that row
       is a card inset 8px from the player column with 14px of its own padding, i.e. 22px of
       effective left inset. The topbar has no card, so it has to spell the same total out. */
    /* 44px, down from 52px. Measured across 52/48/44/40/36: the optical correction is
       height-INDEPENDENT — content centres at (H+padding-top)/2 and the perceived band (topbar
       plus the action bar's 8px margin) centres at (H+8)/2, equal for any H whenever padding-top
       is 8 — and folding is horizontal, so height cannot affect it. The only real limit is
       clearance under the tallest control (26px, the Back button): bottom slack is H-34, so 44
       leaves 5px below and 13px above. 40 leaves 3px and reads as nearly touching; 36 leaves 1px.
       The above/below asymmetry is the optical correction working, not a mistake. */
    /* padding-right 8px, not 40px, so the LAST control in this row — Hide comments — ends on
       the same x as the comments panel card below it, which is inset 8px from the viewport.
       Left stays 22px, matching the toolbar row's 8px card inset + 14px internal padding. */
    padding:0 16px 0 14px; min-height:52px; display:flex; align-items:center; gap:14px; flex-shrink:0; box-sizing:border-box;
  }
  /* Topbar back button + breadcrumb crumbs share ONE pill shape: same 0.5px
     border, color, radius, padding and (transparent) background. Only the text
     colour differs — parent crumbs muted, active crumb bright. */
  .topbar-back,
  .bc-crumb { display:inline-flex; align-items:center; background:none; border:0.5px solid var(--border); border-radius:4px; padding:5px 11px; font-family:'Inter',sans-serif; font-size:12.5px; letter-spacing:.04em; transition:border-color .15s, color .15s; flex-shrink:0; }
  /* §2 Back (item 375): a control-family pill. The crumbs stay flat (their own
     declutter ruling below); only Back carries the box. */
  .topbar-back { gap:5px; padding:5px 10px 5px 6px; background:var(--rd-control); border:1px solid var(--rd-control-bd); color:var(--rd-text-2); font-weight:500; cursor:pointer; }
  .topbar-back svg { color:var(--rd-text-3); }
  .topbar-back:hover { color:var(--rd-text); border-color:var(--rd-text-3); }
  /* Review topbar share button (icon-only, tooltip via title). */
  .rv-share-btn { margin-left:auto; background:none; border:0.5px solid var(--border); color:var(--text-muted); border-radius:4px; padding:5px 8px; cursor:pointer; display:inline-flex; align-items:center; transition:all .15s; flex-shrink:0; }
  .rv-share-btn:hover { color:var(--text); border-color:var(--text-muted); }
  .rv-share-btn:disabled { opacity:.5; cursor:default; }
  /* Guest (share-link) mode: no sidebar/back nav. Guests DO get the decision bar (Approve /
     Request changes) — the email-gate/CRM escalation flow guards formal approval, same as
     guest comments; a non-contact guest's decision is captured as a comment instead. */
  body.guest-mode .sidebar { display:none; }
  body.guest-mode #topbar-back { display:none !important; }
  /* Guest name-entry screen (mirrors the loading/login screens). */
  #guest-gate { position:fixed; inset:0; background:var(--bg); display:none; align-items:center; justify-content:center; z-index:120; padding:24px; }
  #guest-gate.visible { display:flex; }
  .guest-card { width:100%; max-width:380px; background:var(--surface); border:0.5px solid var(--border); border-radius:4px; padding:28px 26px; box-shadow:0 20px 60px rgba(0,0,0,0.4); text-align:center; }
  .guest-card .gc-eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); margin-bottom:8px; }
  /* ⟦item 741⟧ THE PORTAL'S MARK — assets/icon/mrp-mark-tight.svg: mrp-mark-gradient.svg (the transparent
     mark, the Crafted Motion gradient) with its viewBox CROPPED to the glyph (52 36 96 108 of the 180
     square — the art's padding is for tiles, not for a mark beside words), its EXACT bytes as a base64
     data: URI, so it is one image in its own document (no id collisions between copies, no request,
     crisp at any size — it is the vector). checks/portal-mark.mjs decodes this URI and compares it to
     the file byte for byte. SIZED TO ~1.5× THE CAP HEIGHT of the words beside it (ruled 2026-09-28;
     measured caps: the rail's 10px Plus Jakarta Sans 7.45, the guest eyebrow's 11px Inter 8.0, the
     name prompt's 16px Manrope 11.52): 12px here, .mrp-mark--11 on the rail, .mrp-mark--17 on the
     name prompt — square boxes: the SVG gets the box as its viewport (100% 100%) and letterboxes its 8:9 glyph
     itself, exactly as an <img> of the file would (portal-mark-live compares against one). Decorative beside the words
     "Media Review Portal" (aria-hidden); where it stands alone it carries role="img" and the name. The black-on-white
     versions (mrp-mono-white / mrp-mark-black) are for light surfaces and NO light surface shows
     the mark today — they are deliberately not placed. */
  .mrp-mark { display:inline-block; flex:0 0 auto; width:12px; height:12px; vertical-align:middle; background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjUyIDM2IDk2IDEwOCIgd2lkdGg9Ijk2IiBoZWlnaHQ9IjEwOCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMCIgeTE9IjEiIHgyPSIxIiB5Mj0iMCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRjlBMTFCIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRUY1QTI4Ii8+PC9saW5lYXJHcmFkaWVudD48bWFzayBpZD0ibSI+PHJlY3Qgd2lkdGg9IjE4MCIgaGVpZ2h0PSIxODAiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMzAgOTIgTDc2IDEzMiBMMTYwIDM0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMTgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvbWFzaz48L2RlZnM+PHBhdGggZD0iTTcyIDQwIFE1MiAyOCA1MiA1MiBMNTIgMTI4IFE1MiAxNTIgNzIgMTQwIEwxMzggMTAyIFExNTggOTAgMTM4IDc4IFoiIGZpbGw9InVybCgjZykiIG1hc2s9InVybCgjbSkiLz48L3N2Zz4=") center / 100% 100% no-repeat; }
  .mrp-mark--11 { width:11px; height:11px; }
  .mrp-mark--17 { width:17px; height:17px; }
  .mrp-mark--34 { width:34px; height:34px; }
  /* ══ ITEM 742 — THE SIGN-IN PAGE (ruled mock, Sep 27) — ITEM 744: ONE COLUMN AT EVERY WIDTH ═════════════════════
     Direction B (the desktop split with a portal glimpse) shipped in item 742 and was REVERSED on Sep 28 after it was
     seen live (item 744): the phone form, centred, at every width; the glimpse is gone, markup and CSS.
     Before any session, so it is the same page for EVERY client — v4 and v5 alike — and for the team's way in.
     ⚠️ THE TOKENS ARE A SCOPED COPY OF THE v5 BLOCK, NOT A REFERENCE TO IT. `.v5` is on <html> only for a team session
     or a preview tab (v5Enabled()), and a signed-out visitor has neither, so not one --v5-* token exists here unless it is
     declared here. Each value below is the `.v5` block's own, byte for byte — checks/sign-in-page.mjs parses both
     declarations and fails on any name whose value differs, so the two cannot drift. Declared on #login-screen and
     #teamLoginModal themselves (never on <html>), so nothing after sign-in can see them.
     The mock's #0e0e12 page and #1b1b21 fields are drawn with the v5 page (--v5-bg) and panel (--v5-panel2) instead:
     one dark, not a third near-black. The mark is .mrp-mark--17 beside 16px / 700 words (~1.5x the cap, item 741's rule). */
  #login-screen, #teamLoginModal {
    --v5-bg:#0d0d0f; --v5-panel2:#17171b; --v5-line:#26262c;
    --v5-text:#e8e8ea; --v5-text2:#c9c9d1; --v5-text3:#9a9aa4; --v5-muted:#8c8c97;
    --v5-gold:#f5a524; --v5-gold-rgb:245,165,36; --v5-on-gold:var(--v5-bg); --v5-line-gold:rgba(var(--v5-gold-rgb), .30);
    --v5-bad:#e08a8a; --v5-ghost-line:rgba(255,255,255,.2); --v5-head-wash-hover:rgba(255,255,255,.06);
    --v5-font:'Plus Jakarta Sans', 'Inter', sans-serif;
    --v5-hero-ink:#ffffff; --v5-team-ink:#8fb0ff;   /* ⟦item 856⟧ TEAM-29's white Continue and TEAM label */
  }
  #login-screen { position:fixed; inset:0; z-index:200; display:flex; background:var(--v5-bg); color:var(--v5-text); font-family:var(--v5-font); overflow-y:auto; -webkit-font-smoothing:antialiased; }
  #login-screen *, #teamLoginModal .modal * { box-sizing:border-box; }
  /* ⚠️ ITEM 744 (ruled Sep 28, after seeing item 742 live): ONE COLUMN AT EVERY WIDTH — the phone form, centred on the page
     both ways, max 400px, on the plain page (no card). Item 742's desktop split and its portal glimpse are DELETED, markup
     and CSS. `margin:auto` on the column centres it without clipping when a short window cannot hold it. */
  .lg-side { flex:1 1 auto; display:flex; padding:32px 24px; }
  .lg-col { width:100%; max-width:400px; margin:auto; display:flex; flex-direction:column; gap:28px; }
  .lg-lockup { display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--v5-text); font-family:var(--v5-font); }
  .lg-pane { display:flex; flex-direction:column; gap:14px; margin:0; }
  .lg-pane[hidden] { display:none; }
  .lg-head { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
  /* ⚠️ ITEM 745 (the mock's C2 board, ruled Sep 28): the old greeting and instruction line are gone — the portal's NAME is
     the page's one h1 (24 / 800 / −0.02em) beside the mark (12px gap, centred on the heading), the tagline under it
     (18 / 500 / 1.45, --v5-text3), 28px below the header row and 44px above the form (the pane's 14px gap + these margins).
     ITEM 746 (Mark B, ruled Sep 29): the mark is 34px — at 26 its cut-out check read as a smudge on a phone. The row is now
     the mark's 34px, not the h1's 28.8px line box; the 28px still measures from the ROW's bottom edge.
     The not-found pane keeps its own 17px lockup, NOT a heading — its own heading stays that state's only h1. */
  .lg-brand { display:flex; align-items:center; gap:12px; }
  .lg-title { margin:0; font-family:var(--v5-font); font-size:24px; font-weight:800; line-height:1.2; letter-spacing:-.02em; color:var(--v5-text); }
  .lg-tagline { margin:14px 0 30px; font-size:18px; font-weight:500; line-height:1.45; letter-spacing:-.01em; color:var(--v5-text3); }
  .lg-nf-lockup { margin-bottom:14px; }
  .lg-h { margin:0; font-size:26px; font-weight:800; line-height:1.15; letter-spacing:-.02em; color:var(--v5-text); outline:none; }
  .lg-lead { margin:0; font-size:15px; line-height:1.55; color:var(--v5-text3); }
  .lg-addr { color:var(--v5-text); font-weight:600; overflow-wrap:anywhere; }
  .lg-field { display:flex; flex-direction:column; gap:8px; }
  .lg-field label { font-size:13px; font-weight:600; color:var(--v5-text2); font-family:var(--v5-font); text-transform:none; letter-spacing:0; margin:0; }
  .lg-field input { width:100%; height:50px; padding:0 16px; border-radius:12px; border:1px solid var(--v5-ghost-line); background:var(--v5-panel2); color:var(--v5-text); font-family:var(--v5-font); font-size:16px; outline:none; transition:border-color .15s, box-shadow .15s; }
  .lg-field input::placeholder { color:var(--v5-muted); opacity:1; }
  .lg-field input:focus { border-color:var(--v5-gold); box-shadow:0 0 0 3px var(--v5-line-gold); }
  .lg-go { height:50px; margin-top:4px; border:0; border-radius:12px; background:var(--v5-gold); color:var(--v5-on-gold); font-family:var(--v5-font); font-size:15px; font-weight:700; cursor:pointer; }
  .lg-go:hover { filter:brightness(1.06); }
  .lg-go:disabled { cursor:progress; opacity:.75; }
  .lg-ghost { height:48px; border:1px solid var(--v5-ghost-line); border-radius:12px; background:none; color:var(--v5-text); font-family:var(--v5-font); font-size:14px; font-weight:600; cursor:pointer; }
  .lg-ghost:hover { background:var(--v5-head-wash-hover); }
  #login-screen button:focus-visible, #login-screen a:focus-visible, #teamLoginModal button:focus-visible { outline:2px solid var(--v5-text); outline-offset:2px; }
  .lg-err { margin:0; min-height:1.2em; font-size:13px; color:var(--v5-bad); }
  .lg-err:empty { display:none; }
  .lg-rule { height:1px; margin-top:14px; background:var(--v5-line); }
  .lg-team, .lg-stuck { margin:0; font-size:13px; color:var(--v5-muted); }
  .lg-stuck { text-align:center; }
  .lg-link { padding:0; border:0; background:none; color:var(--v5-gold); font-family:inherit; font-size:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
  .lg-link:hover { text-decoration:underline; }
  .lg-nf-icon { width:64px; height:64px; margin-bottom:14px; border-radius:18px; background:var(--v5-head-wash-hover); color:var(--v5-text2); display:flex; align-items:center; justify-content:center; }
  /* the unknown-email state: the column becomes the mock's centred card */
  #login-screen[data-state="notfound"] .lg-col { max-width:440px; padding:44px 44px 36px; border-radius:20px; background:var(--v5-panel2); border:1px solid var(--v5-line); }
  @media (max-width: 560px) {
    #login-screen[data-state="notfound"] .lg-col { padding:0; border:0; border-radius:0; background:none; }
  }
  /* ⟦item 1158⟧ THE SIGN-IN CODE PANE (reached only when the worker answers codeNeeded; LOGIN_CODE_ON is off): the not-found pane's
     card and lockup, one wide-spaced code field, "Send a new code" with its wait, and the way back to the form. */
  #login-screen[data-state="code"] .lg-col { max-width:440px; padding:44px 44px 36px; border-radius:20px; background:var(--v5-panel2); border:1px solid var(--v5-line); }
  @media (max-width: 560px) {
    #login-screen[data-state="code"] .lg-col { padding:0; border:0; border-radius:0; background:none; }
  }
  .lg-code-form { display:flex; flex-direction:column; gap:14px; margin:0; }
  .lg-field input.lg-code { height:58px; padding:0 0 0 .45em; font-size:26px; font-weight:700; letter-spacing:.45em; text-align:center; font-variant-numeric:tabular-nums; }
  .lg-link:disabled { color:var(--v5-muted); cursor:default; text-decoration:none; }
  .lg-note { margin:0; font-size:12px; color:var(--v5-muted); text-align:center; }
  /* the team login modal, restyled to match (same element ids, same handlers) */
  /* ⚠️ A SOLID page, not a see-through wash: opened from the sign-in page, the modal sits over the v4 shell, and at .75
     (before this item) the team sidebar's agency logo showed through, blurred, to a signed-out visitor. Centred at every
     width — the generic phone rule drops every other modal to the bottom edge. */
  #teamLoginModal { background:var(--v5-bg); backdrop-filter:none; align-items:center; padding:16px; }
  #teamLoginModal .modal { width:100%; max-width:400px; max-height:95vh; overflow-y:auto; padding:28px 28px 24px; display:flex; flex-direction:column; gap:14px;
    background:var(--v5-panel2); border:1px solid var(--v5-line); border-radius:20px; color:var(--v5-text); font-family:var(--v5-font); box-shadow:0 24px 64px rgba(0,0,0,.5); }
  #teamLoginModal .tl-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
  #teamLoginModal .tl-close { width:36px; height:36px; margin:-8px -8px -8px 0; border:0; border-radius:10px; background:none; color:var(--v5-muted); display:flex; align-items:center; justify-content:center; cursor:pointer; }
  #teamLoginModal .tl-close:hover { background:var(--v5-head-wash-hover); color:var(--v5-text); }
  #teamLoginModal .tl-title { margin:0 0 4px; font-size:24px; font-weight:800; line-height:1.2; letter-spacing:-.02em; color:var(--v5-text); font-family:var(--v5-font); }
  #teamLoginModal .tl-err { margin:0; font-size:13px; color:var(--v5-bad); }
  #teamLoginModal .tl-actions { display:flex; gap:10px; margin-top:6px; }
  #teamLoginModal .tl-actions button { flex:1 1 0; height:48px; }
  #teamLoginModal .lg-go { margin-top:0; }
  @media (max-width: 560px) {
    #teamLoginModal .modal { border-radius:20px; max-height:92vh; padding:24px 20px 20px; }
  }
  /* ⟦team v5⟧ TEAM-29, the choice after sign-in: the team modal's own tokens. `.modal[hidden]` beats the overlay's
     `.modal` display so exactly one of the two panels shows. The TEAM label's blue is the TEAM bar's (--v5-team-ink, mock TEAM-20);
     the Continue button is WHITE, not gold: gold is the client's. */
  #teamLoginModal .modal[hidden] { display:none; }
  #teamLoginModal .tnv-label { font-size:11px; font-weight:700; letter-spacing:.14em; color:var(--v5-team-ink); font-family:var(--v5-font); }
  #teamLoginModal .tnv-lead { margin:0; font-size:15px; line-height:1.55; color:var(--v5-text3); }
  #teamLoginModal .tnv-switch { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; margin-top:4px; padding:14px 16px; border:1px solid var(--v5-line); border-radius:12px; background:var(--v5-bg); color:var(--v5-text); font-family:var(--v5-font); text-align:left; cursor:pointer; }
  #teamLoginModal .tnv-switch:hover { background:var(--v5-head-wash-hover); }
  #teamLoginModal .tnv-switch-words { display:flex; flex-direction:column; gap:3px; min-width:0; }
  #teamLoginModal .tnv-switch-label { font-size:14px; font-weight:600; color:var(--v5-text); }
  #teamLoginModal .tnv-switch-sub { font-size:12px; color:var(--v5-muted); }
  #teamLoginModal .tnv-sw { position:relative; flex:0 0 36px; width:36px; height:20px; border-radius:999px; background:var(--v5-panel2); border:1px solid var(--v5-ghost-line); box-sizing:border-box; transition:background .15s, border-color .15s; }
  #teamLoginModal .tnv-knob { position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:var(--v5-text3); transition:left .15s, background .15s; }
  #teamLoginModal .tnv-switch[aria-checked="true"] .tnv-sw { background:var(--v5-hero-ink); border-color:var(--v5-hero-ink); }
  #teamLoginModal .tnv-switch[aria-checked="true"] .tnv-knob { left:19px; background:var(--v5-bg); }
  #teamLoginModal .tnv-continue { width:100%; margin-top:6px; background:var(--v5-hero-ink); color:var(--v5-bg); }
  #teamLoginModal .tnv-switch:focus-visible { outline:2px solid var(--v5-text); outline-offset:2px; }
  .guest-card .gc-eyebrow.gc-brand { display:flex; align-items:center; justify-content:center; gap:6px; }
  .guest-card .gc-title { font-family:'Manrope',sans-serif; font-weight:600; font-size:1.15rem; color:var(--text); margin-bottom:6px; }
  .guest-card .gc-sub { font-size:0.82rem; color:var(--text-muted); margin-bottom:18px; }
  .guest-card input { width:100%; background:var(--surface2); border:0.5px solid var(--border); border-radius:4px; color:var(--text); font-size:0.95rem; padding:11px 12px; outline:none; font-family:'Inter',sans-serif; margin-bottom:14px; }
  .guest-card input:focus { border-color:var(--brand); }
  .guest-card button { width:100%; background:var(--brand); color:#1a1c20; border:none; border-radius:4px; padding:11px; font-weight:600; font-size:0.9rem; cursor:pointer; font-family:'Inter',sans-serif; }
  .guest-card button:disabled { opacity:.5; cursor:default; }

  /* ⚠️ overflow:hidden IS A BACKSTOP, NOT THE MECHANISM. rvFitBreadcrumb collapses the middle
     crumbs into a … menu and that is what should keep the row inside its width. But the row had
     NO overflow set at all, so a single crumb longer than the whole bar — or a collapse that
     runs before its own measurement is valid — would spill past the topbar edge with nothing to
     stop it. It also makes scrollWidth > clientWidth a real measurement rather than one that
     happens to work: the collapse test depends on this box being able to be smaller than its
     content. */
  .topbar-breadcrumb { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; }
  /* Item 686: the team refresh control. Slate (--st-quiet), never gold — it is housekeeping, not a
     decision. LAST in the row (order: 100). Its auto margin pushes it to the right edge on a plain
     page; on the review page a flexible spacer already takes the free space (an auto margin gets
     none once an item grows), so it simply follows the last control. Measured in Chrome by
     checks/team-refresh-live.mjs. */
  .team-refresh-btn { order: 100; margin-left: auto; flex-shrink: 0; width: 28px; height: 26px; align-items: center; justify-content: center; background: none; border: 0.5px solid var(--border); border-radius: 4px; color: var(--st-quiet); cursor: pointer; padding: 0; }
  .team-refresh-btn:hover { color: var(--rd-text-2); border-color: var(--rd-card-hover-bd); }
  .team-refresh-btn:disabled { opacity: .5; cursor: default; }
  .team-refresh-btn.is-busy svg { animation: teamRefreshSpin 0.9s linear infinite; }
  @keyframes teamRefreshSpin { to { transform: rotate(360deg); } }
  .bc-crumb { min-width:0; }
  .bc-crumb.clickable { cursor:pointer; }
  .bc-name { font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; min-width:0; transition:color .12s; } /* cap so a long crumb (e.g. asset name) truncates instead of pushing later crumbs (Transcript) off-screen */
  /* Declutter: the whole trail is LOCATION, not actions — it was reading at the same visual
     weight as Share / Request changes / Approve. EVERY crumb is flat now, current one included;
     the only thing separating "you are here" from its ancestors is text brightness.
     Back keeps its own pill deliberately: it is the one action in the row, and the row still
     reads as one language because both chevrons match.
     Two deliberate constraints keep the trail from reflowing as you navigate, since a crumb
     changes state (current <-> ancestor) whenever you move a level:
       - border-color:transparent, not border:none, so the 0.5px box still occupies its space;
       - the SAME font-weight in both states, differing only in colour. A heavier current crumb
         would re-measure the text and shift every crumb after it the moment you navigated. */
  .bc-crumb { border-color:transparent; padding-left:2px; padding-right:2px; }
  /* §2 colours (item 375). ⚠️ SAME font-weight in both states, DELIBERATELY
     diverging from §2's 600-weight current crumb: the no-reflow constraint
     above is a measured ruling (a heavier current crumb re-measures the text
     and shifts every crumb after it on navigation) and it wins over the mock
     (item 311's shape — the mock could not know the constraint). */
  .bc-crumb:not(.dim) .bc-name { color:var(--rd-text); }   /* current page — bright */
  .bc-crumb.dim .bc-name { color:var(--rd-text-4); }       /* ancestors — muted */
  .bc-crumb.dim.clickable:hover { border-color:transparent; }      /* no box on hover either */
  .bc-crumb.dim.clickable:hover .bc-name { color:var(--text); }
  /* Was #333 on a #0D0D0D row — effectively invisible. Muted white so the chevrons read as the
     connective tissue between crumbs, at the same weight as the ‹ chevron inside Back. */
  .bc-sep { color:var(--rd-sep); font-size:14px; flex-shrink:0; align-self:center; }
  /* Overflow collapse — applied by rvFitBreadcrumb, never authored into the markup. */
  .topbar-breadcrumb .bc-hidden { display:none !important; }
  /* Last resort below ~560px: once the middle is folded into "…" and Back + the current page
     STILL do not fit, the current page ellipsises rather than running under Hide comments.
     Crumbs are flex-shrink:0 by default (shared with .topbar-back), which is what let it spill.
     flex only shrinks when space is genuinely short, so this never fires while the trail fits —
     and it cannot reintroduce the reflow the flattening avoided, because that concerns a crumb
     changing state, not the row running out of room. */
  .topbar-breadcrumb > .bc-crumb:last-child { flex-shrink:1; min-width:0; }
  /* Final step, and only when measurement says the row still cannot fit: Hide comments drops to
     its icon. Measured at 414px the breadcrumb is left 15.8px of content space while the folded
     trail needs ~51px — Back (71) + Hide comments (121) + help (26) + gaps (56) had already
     claimed 274 of 290. The current crumb has shrunk to zero by then, so the label is the only
     slack left, and the button keeps its icon and its title. Same treatment #rv-tr-gen-btn
     already gets when the action bar runs out of room. */
  .topbar.bc-tight #rv-hide-comments-label { display:none; } /* the LABEL only — targeting `span` would also catch #rv-hide-comments-ico, which only survives today because of an inline display style */
  .topbar.bc-tight #rv-hide-comments-btn { padding:0 7px; }
  .bc-collapse { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; height:22px; min-width:24px; padding:0 6px; background:none; border:none; border-radius:5px; color:var(--text-muted); font-family:'Inter',sans-serif; font-size:14px; line-height:1; cursor:pointer; transition:background .15s, color .15s; }
  .bc-collapse:hover { background:var(--rv-elevated-2); color:var(--text); }
  .bc-menu { position:fixed; z-index:200; min-width:180px; max-width:280px; padding:5px; background:var(--rv-elevated); border:0.5px solid var(--rv-border-strong); border-radius:8px; box-shadow:0 12px 32px rgba(0,0,0,.55); display:flex; flex-direction:column; gap:1px; }
  .bc-menu-item { display:block; width:100%; text-align:left; background:none; border:none; border-radius:5px; padding:7px 9px; color:var(--text); font-family:'Inter',sans-serif; font-size:12px; letter-spacing:.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
  .bc-menu-item:hover:not(:disabled) { background:var(--rv-elevated-2); }
  .bc-menu-item:disabled { color:var(--text-muted); cursor:default; }
  /* Flex layout: icon + input are siblings with a gap, so they cannot overlap.
     The border/background/sizing live on the wrap; the input is transparent. */

  /* ── Upload modal ─────────────────────────────────────────── */
  .puz-eyebrow { font-size:0.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
  /* No -webkit-line-clamp / overflow:hidden — that clips descenders (g, j, q, y)
     on the last line in WebKit regardless of line-height. Wrap freely instead. */
  .puz-title { font-family:'Syne',sans-serif; font-size:1.15rem; font-weight:700; color:var(--text); margin-top:3px; line-height:1.5; padding-bottom:5px; overflow:visible; word-break:break-word; overflow-wrap:anywhere; }
  .puz-hero { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:160px; border:2px dashed var(--border); border-radius:4px; padding:48px 16px; text-align:center; cursor:pointer; transition:border-color .15s, background .15s; background:var(--surface2); }
  .puz-hero:hover, .puz-hero.dragging { border-color:var(--brand); background:rgba(110,155,200,0.06); }
  .puz-hero-main { font-size:0.95rem; color:var(--text); font-weight:500; word-break:break-word; }
  .puz-hero-hint { font-size:0.74rem; color:var(--text-muted); }
  #puz-input { display:none; }
  .puz-field-label { display:block; font-size:0.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); margin-bottom:0.35rem; }
  .puz-select { width:100%; appearance:none; -webkit-appearance:none; -moz-appearance:none; background-color:var(--surface2); color:var(--text); border:0.5px solid var(--border); border-radius:4px; padding:10px 34px 10px 12px; font-size:0.88rem; font-family:'Inter',sans-serif; cursor:pointer; outline:none; background-repeat:no-repeat; background-position:right 12px center; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5L7 8.5L10.5 5' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .puz-select:focus { border-color:var(--brand); }
  .puz-text-input { width:100%; box-sizing:border-box; background-color:var(--surface2); color:var(--text); border:0.5px solid var(--border); border-radius:4px; padding:10px 12px; font-size:0.88rem; font-family:'Inter',sans-serif; outline:none; }
  .puz-text-input:focus { border-color:var(--brand); }
  .puz-text-input::placeholder { color:var(--text-muted); }
  .puz-badge { display:inline-block; font-size:0.68rem; font-weight:600; padding:0.18rem 0.5rem; border-radius:4px; background:var(--surface2); color:var(--text); border:0.5px solid var(--border); margin-right:7px; }
  .puz-info { font-size:0.78rem; color:var(--text-muted); margin-top:11px; line-height:1.55; }
  .puz-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
  .puz-toggle-label { font-size:0.85rem; color:var(--text); }
  .puz-toggle { position:relative; display:inline-block; width:38px; height:22px; flex-shrink:0; cursor:pointer; }
  .puz-toggle input { opacity:0; width:0; height:0; position:absolute; }
  .puz-track { position:absolute; inset:0; background:var(--surface2); border:0.5px solid var(--border); border-radius:999px; transition:background .15s, border-color .15s; }
  .puz-thumb { position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:var(--text-muted); transition:transform .15s, background .15s; }
  .puz-toggle input:checked + .puz-track { background:var(--internal-bg); border-color:var(--internal-border); }
  .puz-toggle input:checked + .puz-track .puz-thumb { transform:translateX(16px); background:var(--internal); }
  .puz-upload-btn { width:100%; margin-top:18px; background:var(--brand); color:#1a1c20; border:none; border-radius:4px; padding:0.72rem 1rem; font-family:'Inter',sans-serif; font-size:0.9rem; font-weight:600; cursor:pointer; transition:opacity .15s; }
  .puz-upload-btn:disabled { opacity:0.4; cursor:not-allowed; }

  /* ── CONTENT AREA ── */
  .portal-content { flex:1; overflow-y:auto; }
  #app { min-height:0; }
  #portal-view > header { display:none; }
  #app.visible { display:flex; flex-direction:column; height:100%; }

  /* Override old fixed header */
  header.app-header { display:none !important; }

  /* ─────────────────────────────────────────────────────────────────────────────────────
     TRANSCRIPT EDITOR — LIGHT THEME
     Scoped to the dedicated editor only (#rv-transcript-view[data-theme="light"]). The review
     page and the inline transcript panel are separate DOM subtrees and never carry this
     attribute, so they stay dark and byte-identical. Everything here is ADDITIVE — no dark
     rule is modified. Two mechanisms:
       (1) Token overrides on the view element → every descendant reading a semantic token
           (surface / text / border / accent / danger / meaning / internal) flips for free.
       (2) Scoped overrides for the hardcoded literals dark mode uses — the pervasive
           rgba(255,255,255,α) hairlines/hovers flipped to rgba(0,0,0,α), plus the three
           meaning washes tuned to the approved light alphas and a custom light ::selection.
     Meaning colors are NOT inverted/derived: highlight #B26A00, cut #C0392B, clip #3F6B4A
     are chosen light values. ─────────────────────────────────────────────────────────── */
  #rv-transcript-view[data-theme="light"] {
    /* Elevation ramp — COOL paper, cards float on a slightly darker canvas.
       Every surface tone is cooled at the TOKEN level rather than per-element, so the whole
       editor moves as a matched set and no surface can be missed: a single cooled panel among
       warm neighbours reads as a bug, not as a theme. The warm originals (#F7F5F1 / #F0ECE4 /
       #E7E3DB, all R>B) were what made a mark-free transcript still read yellow-brown at
       full-screen scale — it was never the amber washes.
       Replacements are chosen at MATCHED L*, so only the hue moves, not the elevation ramp:
         surface   #F7F5F1 (L*96.59, R-B +6)  →  #F6F7F8 (L*97.18, R-B -2)
         elevated2 #F0ECE4 (L*93.50, R-B +12) →  #EBEDEF (L*93.65, R-B -4)
         canvas    #E7E3DB (L*90.34, R-B +12) →  #E2E5E9 (L*90.82, R-B -7)
       The canvas is deliberately NOT flattened to #F6F7F8: it is the ground the panels sit on,
       and it keeps the same ~6.4 L* drop below them that the warm ramp had. Flattening it would
       erase the elevation the panels depend on now that their shadows are near-weightless. */
    --rv-canvas:      #E2E5E9;
    --rv-surface:     #F6F7F8;
    --rv-elevated:    #FFFFFF;
    --rv-elevated-2:  #EBEDEF;
    --rv-border:        rgba(0,0,0,0.10);
    --rv-border-strong: rgba(0,0,0,0.16);
    --bg:        #F6F7F8;
    --surface:   #FFFFFF;
    --surface2:  #EBEDEF;
    --surface-1: rgba(0,0,0,0.03);
    /* Flip INHERITED text too, not just elements that read var(--text). The root's dark-mode
       color (#F0EDE8) is otherwise inherited by any descendant with no explicit colour rule,
       which is a standing trap: such an element renders near-white on paper and no token
       override can catch it. (This is how #rv-zoom-level and the asset navigator ended up
       white-on-white.) */
    color: var(--text);
    /* text */
    --text:               #1A1A1A;
    --text-muted:         #6B6862;
    --text-secondary:     rgba(0,0,0,0.60);
    --color-text-tertiary:#8A857D;
    /* borders */
    --border:           rgba(0,0,0,0.10);
    --border-secondary: rgba(0,0,0,0.18);
    --border-tertiary:  rgba(0,0,0,0.07);
    --border-strong:    rgba(0,0,0,0.18);
    --border-stronger:  rgba(0,0,0,0.24);
    /* gold accent (UI) — reserved for actions/active state, distinct from highlight meaning */
    --gold:         #B26A00;
    --text-accent:  #B26A00;
    --border-accent:rgba(178,106,0,0.55);
    --bg-accent:    rgba(178,106,0,0.12);
    /* danger (generic) */
    --text-danger: #C0392B;
    --bg-danger:   rgba(192,57,43,0.12);
    --changes:     #C0392B;
    /* success */
    --text-success:#17795A;
    --bg-success:  rgba(23,121,90,0.12);
    --approved:    #1E9E62;
    /* meaning tokens — chosen light values (text / marker / border of each mark) */
    --color-highlight: #B26A00;
    --color-removed:   #C0392B;
    --color-clip:      #3F6B4A;
    /* internal indicator — light neutral gray */
    --internal:          #6B6862;
    --internal-bg:       rgba(0,0,0,0.05);
    --internal-border:   rgba(0,0,0,0.15);
    --internal-bg-hover: rgba(0,0,0,0.08);
    /* contextual hint (Done-with-transcript) — slate blue, darkened for a light ground */
    --hint-accent: #3A6C88;
    --hint-bg:     rgba(74,122,153,0.12);
    --hint-text:   #2E5A73;
  }
  /* ── THE BORROWED REVIEW PANEL GETS A LIGHT PALETTE (item 410) ──────────────────────────
     The COMMENTS | CLIPS | CUTS panel is built on the --rd-* family — the review page's
     redesign palette, declared ONCE at :root with dark values and, until this block, with no
     light values anywhere in the file. The review page is dark-only, so that was correct for
     its whole life. Item 406 then borrowed .review-panel into #tr-review-slot, which is INSIDE
     #rv-transcript-view — a container that can be light. The panel is correctly scoped and
     needs no trApplyTheme stamp: it inherits data-theme fine. What it inherits is a theme that
     re-points the --rv-, --text and --border families and says nothing about the --rd- family, so every surface in it kept
     its :root dark value and the panel rendered as a dark slab on paper.
     ⚠️ SO THIS IS A TOKEN GAP, NOT A SCOPE GAP, and the fix belongs at the token level for the
     reason this file already states 100 lines up: "Every surface tone is cooled at the TOKEN
     level rather than per-element, so the whole editor moves as a matched set and no surface
     can be missed." Per-element rules would fix the surfaces someone thought to list.
     ⚠️ SCOPED TO THE LIGHT TRANSCRIPT VIEW, SO THE REVIEW PAGE IS UNTOUCHED. On the review page
     .review-panel is a sibling of #rv-transcript-view, never a descendant, so it keeps :root's
     dark values exactly. review-panel-restyle.mjs §1 pins those hexes AT :root and is not
     weakened by this: nothing here edits a :root declaration.
     ⚠️ VALUES ARE ROLE-MAPPED ONTO THE LIGHT RAMP ABOVE, NOT MINTED (item 292's drift warning).
     Every value is either an existing light token or a value already used by the light theme
     for that role. The dark palette's contrast commitments were computed against #1A1A1A; the
     light ones are re-measured by review-panel-light.mjs §3, which is authoritative here the
     way review-approval-once.mjs §3 is for dark.
     ⚠️ FOUR TOKENS ARE DELIBERATELY ABSENT because they DERIVE and so follow for free — the
     --rd-tick: var(--rd-nontext) idiom (item 385). Re-pointing them would mint a near-copy:
       --rd-tick      → var(--rd-nontext)      --rd-vol-track → var(--rd-card-hover-bd)
       --rd-vol-fill  → var(--rd-tool-fg)      --rd-mono      → a FONT, no light variant exists
     A fifth, --rd-green-fg, derives from a JS-published asset-type ring and is re-pointed
     explicitly: the ring is chosen for a dark ground and is not a light foreground. */
  #rv-transcript-view[data-theme="light"] {
    /* surfaces — cards float WHITE on the panel, panel sits on the cool canvas */
    --rd-canvas:#E2E5E9; --rd-chrome:#F6F7F8; --rd-card:#FFFFFF; --rd-card-hover:#EBEDEF;
    --rd-control:#FFFFFF; --rd-inset:#EBEDEF; --rd-footer:#F6F7F8; --rd-unit:#FFFFFF;
    --rd-well:#EBEDEF; --rd-strip:#F6F7F8; --rd-btn2:#EBEDEF;
    --rd-tool-bg:rgba(0,0,0,0.05); --rd-seg-active:rgba(0,0,0,0.08); --rd-markup-bg:rgba(0,0,0,0.05);
    /* borders — the light theme's own two hairline weights, nothing new */
    --rd-hairline:rgba(0,0,0,0.10); --rd-panel-hair:rgba(0,0,0,0.10);
    --rd-card-bd:rgba(0,0,0,0.10); --rd-card-hover-bd:rgba(0,0,0,0.16);
    --rd-control-bd:rgba(0,0,0,0.16); --rd-inset-bd:rgba(0,0,0,0.10);
    --rd-footer-bd:rgba(0,0,0,0.10); --rd-unit-bd:rgba(0,0,0,0.16);
    --rd-unit-div:rgba(0,0,0,0.10); --rd-btn2-bd:rgba(0,0,0,0.16);
    --rd-markup-bd:rgba(0,0,0,0.10); --rd-track-bd:rgba(0,0,0,0.16);
    --rd-track:rgba(0,0,0,0.16); --rd-toggle-open-bd:rgba(0,0,0,0.16);
    --rd-sep:rgba(0,0,0,0.16); --rd-frame-edge:rgba(0,0,0,0.18);
    /* text ramp — every TEXT role clears 4.5:1 on the card it lands on; --rd-nontext and
       --rd-count-off are NON-TEXT (inactive tab, ruler marks) and clear 3:1. Measured, not
       eyeballed: review-panel-light.mjs §3 recomputes all of them. */
    --rd-text:#1A1A1A; --rd-text-2:rgba(0,0,0,0.60); --rd-text-3:#66635D;
    --rd-text-4:#66635D; --rd-text-5:#66635D; --rd-nontext:#8A857D;
    --rd-name:#1A1A1A; --rd-body:#1A1A1A; --rd-detail-val:#1A1A1A; --rd-btn2-fg:#1A1A1A;
    --rd-placeholder:#66635D; --rd-tool-fg:#66635D; --rd-count-off:#8A857D;
    /* accents — the light theme's designed counterparts, so meaning survives the flip.
       The rgb triplets MUST move with their hexes or the §8 tint recipe
       rgba(var(--rd-x-rgb), a) paints the DARK hue at low alpha on paper. */
    --rd-gold:#865000; --rd-gold-2:#865000; --rd-gold-rgb:134,80,0; --rd-gold-2-rgb:134,80,0;
    --rd-green:#14694E; --rd-green-fg:#14694E; --rd-green-rgb:20,105,78; --rd-green-ink:#FFFFFF;
    --rd-red:#AD3327; --rd-red-fg:#AD3327; --rd-red-rgb:173,51,39;
    --rd-slate:#35627C; --rd-slate-rgb:53,98,124;
    --rd-pub-label:#865000;
    /* internal — violet is the DARK spelling of "internal only"; the light theme spells the
       same meaning in neutral gray (--internal #66635D), so it maps there rather than to a
       lightened violet nobody designed. Never client-visible either way. */
    --rd-violet:#5D5A55; --rd-violet-rgb:93,90,85;
    --rd-int-card:rgba(0,0,0,0.05); --rd-int-bd:rgba(0,0,0,0.15);
    --rd-int-hover:rgba(0,0,0,0.08); --rd-int-hover-bd:rgba(0,0,0,0.15);
    --rd-int-track:#5D5A55;
    }
  /* ── ELEVATION: shadows flip to borders on light ──────────────────────────────────────
     Dark mode builds elevation from wide, high-alpha black (up to .55 at 28px) plus an inset
     white top-line. Both are wrong on paper: a big soft black blur under a light panel reads as
     grime, not lift, and the white inset line is invisible. On light the balance inverts — a
     crisp 1px edge does the work a shadow does on dark, and the shadow shrinks to a whisper.
     Only .tr-left/.tr-rail had ever been tuned; the comments panel, action bar, transport dock
     and every dropdown were still rendering their raw dark values here.
     The 1px edge is an INSET ring, not a real border: these are flex/rounded panels, and a real
     border would shift their layout by 2px. An inset ring is free. */
  /* Centre-column header + follow pill, light column (item 342) — tokens, not literals. */
  #rv-transcript-view[data-theme="light"] .tr-col-head { border-bottom-color:var(--trv-hairline); }
  #rv-transcript-view[data-theme="light"] .tr-mark-counts { color:var(--trv-slate); }
  #rv-transcript-view[data-theme="light"] .tr-rail-medlabel { color:var(--trv-ink-label); }
  #rv-transcript-view[data-theme="light"] .tr-follow-pill { border-color:var(--trv-ctl-line); color:var(--trv-ink-3); }
  #rv-transcript-view[data-theme="light"] .tr-follow-pill:hover { color:var(--trv-ink-2); background:var(--trv-hover); }
  #rv-transcript-view[data-theme="light"] .tr-follow-pill.on { color:var(--trv-slate-ink); border-color:var(--trv-slate); background:var(--trv-slate-chip); }
  /* ⚠️ THE PAPER CONSUMES DESIGN'S OWN TOKEN — item 346. Design's README §4: "the centre
     column is the only --surface card with elevation", and its table says --surface #FFFFFF.
     Our bank maps that as --trv-surface, which the paper now reads; the cooling pass's
     --rv-surface (#F6F7F8) stays for the ELEVEN other consumers this deliberately does not
     drag along — both rails, the action bar, the workspace cards, the review page's panels.
     The census is the reason the fix is one line: editing the shared token was measured as a
     twelve-surface decision, so the paper switched tokens instead. NO NEW TOKEN WAS MINTED
     (item 292's drift warning): --trv-column was considered and refused — design's vocabulary
     already names this surface.
     ⚠️ THE ACTION BAR HOLDS at --rv-surface, one open question to design, recorded in item
     346: their table says the bar is --surface #FFFFFF, but the bar shares its token with
     eleven surfaces — bar-as-paper (split it off) or bar-as-chrome (move the set)? */
  #rv-transcript-view[data-theme="light"] .tr-left { background:var(--trv-surface); }
  #rv-transcript-view[data-theme="light"] .tr-left,
  #rv-transcript-view[data-theme="light"] .tr-rail,
  #rv-transcript-view[data-theme="light"] .review-panel,
  #rv-transcript-view[data-theme="light"] #tr-action-bar {
    box-shadow:inset 0 0 0 1px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  }
  /* [REMOVED — item 378] the .review-transport member of this list. Item 306 gave the
     transcript its OWN transport and stopped borrowing #rv-transport, which openReview
     appends to #review-view — a SIBLING of #rv-transcript-view, never a descendant. The
     class is emitted nowhere else, so this selector could not match. */
  /* Genuinely floating layers (menus / popovers / the selection bar) still need to read as
     ABOVE the surface, so they keep a real shadow — but tightened, and leaning on the 0.18
     border they already carry in light rather than on blur. */
  #rv-transcript-view[data-theme="light"] .tr-dl-menu,
  #rv-transcript-view[data-theme="light"] .tr-tc-pop {
    box-shadow:0 2px 6px rgba(0,0,0,0.07), 0 8px 20px rgba(0,0,0,0.09);
  }
  /* Action-bar utility buttons + generic hovers (white-α → black-α). */
  #rv-transcript-view[data-theme="light"] .tr-tool-btn { border-color:rgba(0,0,0,0.18); color:rgba(0,0,0,0.55); }
  #rv-transcript-view[data-theme="light"] .tr-tool-btn:hover,
  #rv-transcript-view[data-theme="light"] .tr-share-btn:hover,
  #rv-transcript-view[data-theme="light"] .tr-dl-menu button:hover,
  #rv-transcript-view[data-theme="light"] .tr-carry-banner button:hover,
  #rv-transcript-view[data-theme="light"] .tr-pending-acts button:hover,
  #rv-transcript-view[data-theme="light"] .tr-ai-phrase:hover { background:rgba(0,0,0,0.05); }
  /* Light theme: the neutral fill needs its own value — #35352F on a light canvas is a dark
     slab. Same role, same reading, inverted ground. */
  #rv-transcript-view[data-theme="light"] .tr-tc-save { background:#E4E1DA; color:#2A2A26; }
  /* Inline comment bubble — the fill was already fine (white on #8A5200 = 6.39, and #8A5200 vs
     the #F8DCB0 wash = 4.82). The weak part was the RING: a paper-coloured ring is only 1.22
     against the wash it is meant to cut the badge out of, so the separation barely registered.
     A dark ring separates on every ground the badge can land on — wash, paper, or selection. */
  #rv-transcript-view[data-theme="light"] .tr-cbubble { background:#8A5200; color:#fff; box-shadow:0 0 0 1.5px rgba(0,0,0,0.28); }
  #rv-transcript-view[data-theme="light"] .tr-replace-btn:hover { border-color:rgba(0,0,0,0.30); }
  /* Playing word + edit affordances (pale-blue/white text → dark). */
  /* The light theme needs only the HUE, which resolves on the scroller — one variable, so the
     rule and the caret cannot disagree about it. (Was a light copy of the removed fill.) */
  #rv-transcript-view[data-theme="light"] .tr-scroll { --tr-play-hue:var(--trv-slate); }
  #rv-transcript-view[data-theme="light"] .tr-scroll.tr-paused { --tr-play-hue:var(--trv-ink-3); }
  #rv-transcript-view[data-theme="light"] .tr-word-edited::before { color:var(--text-muted); }
  #rv-transcript-view[data-theme="light"] .tr-word-input { color:#1A1A1A; background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.25); }
  #rv-transcript-view[data-theme="light"] .tr-word-flash { background:rgba(0,0,0,0.10) !important; }
  /* Transcript body text — the reading surface. Dark mode softens white to 0.8; light uses the
     approved #1A1A1A the washes were validated against. */
  #rv-transcript-view[data-theme="light"] .tr-para { color:var(--text); border-left-color:rgba(0,0,0,0.14); }
  #rv-transcript-view[data-theme="light"] .tr-word:hover { background:rgba(0,0,0,0.06); }
  /* Block dividers / times. */
  #rv-transcript-view[data-theme="light"] .tr-block-active .tr-para { border-left-color:rgba(0,0,0,0.14); }

  /* ══ PASS 5b — THE READING TYPOGRAPHY (design §4) ══════════════════════════════════
     Scoped to #tr-scroll, the DEDICATED transcript page. `.tr-para` is deliberately REUSED
     by the inline review panel (#tr-inline-scroll) and the clip preview (.cg-pv-block) — a
     comment above its base rule says so — so restyling the bare class would restyle two
     surfaces this redesign is not about. #tr-inline-scroll already overrides font-size at
     equal specificity and is unaffected either way; the clip preview would NOT have been.

     ⚠️ THE 18px BETWEEN-PARAGRAPHS RULE IS INAPPLICABLE AND IS NOT WRITTEN. Design asks for
     18px between paragraphs inside a block and 30px between blocks. A block emits EXACTLY
     ONE .tr-para (renderTranscript returns one per speaker turn), so there is never a second
     paragraph to separate. Shipping it would be a correct rule that cannot fire, which reads
     as coverage (item 148). Only the 30px is real.

     ⚠️ THE 48px COLUMN PADDING IS NOT HERE EITHER. Design's "max-width 660px, auto margins,
     0 48px padding" describes the reading COLUMN; under this file's global border-box a 48px
     padding inside 660 leaves 564px of text — about 58 characters against design's own
     stated 62 to 70. The 660 is the measure; the gutter belongs to the centre column, 5c. */
  /* ══ READING SIZE — item 575 (client report: constant scrolling on a laptop) ═════════════
     One base size per viewport class, one preference on top, ONE consumer. --tr-read-base is
     design's 19.5px / 1.78 at 1440px and up and 17.5px / 1.68 below (C1); the Aa control writes
     data-text-size on #tr-scroll and Small / Large step 2px off whichever base is in force (C2),
     so a laptop's Large is a desktop's Medium. Persisted per browser in localStorage
     (brm_tr_text_size), read by trApplyTextSize on every transcript entry; client-facing.
     ⚠️ THE MEASURE IS 80ch, NOT A PIXEL (C3). Design's 660px was ≈73 characters at 19.5px; the
     ask was a wider line that never exceeds a readable measure regardless of viewport, so the cap
     is written in the font's own unit and grows with the size the reader chose (≈760px at
     19.5px, ≈700px at 17.5px). A 1024px column was measured at ≈115 characters and rejected in the
     mockup (design/transcript-type-mock.html). At 1280 the grid's centre track (656px) still
     governs and the cap never engages; there, C1 is what helps. Left-aligned as before: the
     right-hand gutter is what shrinks. */
  #tr-scroll { --tr-read-base:19.5px; --tr-read-lh:1.78; --tr-read-size:var(--tr-read-base); }
  @media (max-width:1439px) { #tr-scroll { --tr-read-base:17.5px; --tr-read-lh:1.68; } }
  #tr-scroll[data-text-size="small"] { --tr-read-size:calc(var(--tr-read-base) - 2px); --tr-read-lh:1.64; }
  #tr-scroll[data-text-size="large"] { --tr-read-size:calc(var(--tr-read-base) + 2px); --tr-read-lh:1.85; }
  /* `xsmall` is gone with its button (item 583a). Left as a note rather than a rule, so a reader
     who finds data-text-size="xsmall" in an old localStorage value knows why nothing happens:
     TR_TEXT_SIZES no longer includes it, so trApplyTextSize falls back to medium and the bare
     #tr-scroll rule renders it at the base size. */
  #tr-scroll .tr-para {
    font-family:var(--serif);
    font-size:var(--tr-read-size); line-height:var(--tr-read-lh); letter-spacing:0.1px;
    text-wrap:pretty;
    max-width:80ch;                     /* the measure (item 575) — replaces design's 660px and the base rule's 66ch */
  }
  #tr-scroll .tr-block { margin-bottom:30px; }
  #tr-scroll .tr-speaker { font-family:'Inter',sans-serif; font-size:13px; font-weight:600; letter-spacing:0.3px; }
  #tr-scroll .tr-block-time { font-family:'Inter',sans-serif; font-size:12.5px; font-weight:500; font-variant-numeric:tabular-nums; }

  /* ══ COLOUR IS LIGHT-SCOPED, AND THIS IS A KNOWN TWO-VOCABULARY STATE ══════════════
     ⚠️ NOT AN OVERSIGHT, AND DO NOT "FINISH" IT BY APPLYING THESE UNSCOPED.
     LIGHT is design's palette (the --trv-* set, item 282). DARK is PRE-REDESIGN and keeps
     today's colours deliberately. Since item 341 (item 60 reversed) a CLIENT can reach that
     pre-redesign dark through the theme toggle — an accepted, recorded state, not this
     rebuild's scope; the dark palette pass is where the second vocabulary gets designed. --trv-ink-read is #23201C; applied unscoped that is near-black text on
     the team's dark surface, i.e. invisible.
     A later pass unbanks the dark column (item 282 banked it in a comment, AFTER the live
     block at equal specificity) if the team's view is ever brought into the redesign. Size,
     leading, letter-spacing, measure and block spacing above are theme-INDEPENDENT and apply
     to both, because only the ink was in question.

     ⚠️ THE GENERAL HAZARD, WHICH IS WHY THIS NEEDS SAYING RATHER THAN ASSUMING: NEITHER
     AUDIENCE'S SESSION CAN SEE THE OTHER'S DEFECT. Item 82 recorded that a light-mode defect
     is structurally invisible to a team session; the inverse is equally true, and this rule
     is exactly where a dark-mode regression would hide. "I looked at it" is evidence about
     ONE theme. Check both, or say which one you checked. */
  #rv-transcript-view[data-theme="light"] #tr-scroll .tr-para { color:var(--trv-ink-read); }
  #rv-transcript-view[data-theme="light"] #tr-scroll .tr-speaker { color:var(--trv-ink-speaker); }
  #rv-transcript-view[data-theme="light"] #tr-scroll .tr-block-time { color:var(--trv-ink-time); }
  #rv-transcript-view[data-theme="light"] .tr-block-time { color:rgba(0,0,0,0.55); } /* was 0.40 → 2.83 contrast, under AA on the reading surface; 0.55 → 4.68 */
  #rv-transcript-view[data-theme="light"] .tr-block-time:hover { color:var(--text); }
  /* ══ PASS 6 · THE NOTE TREATMENT — design's sand, LIGHT-SCOPED (item 313) ══════════════
     Was rgba(251,176,59,0.38) gold with an inset underline. Design §"Transcript mark
     treatments": background --note-fill, a 0 0 0 1px ring in the SAME colour, and NO
     UNDERLINE — "underlines belong to playback", which is pass 6's own playing rule.

     ⚠️ LIGHT-SCOPED, NOT APPLIED TO THE BASE RULE. --trv-* are design's LIGHT values (item
     282 banked the dark column unconsumed), and #F3E8CE on the team's dark surface is a
     bright sand block. Item 301's known two-vocabulary state, second instance: the client
     gets the redesign, the team keeps the pre-redesign wash until something deliberately
     brings that view across. Neither audience's session can see the other's defect.

     ⚠️ THE OUTSET RING IS NOT DECORATION — IT IS WHAT MAKES A RUN READ AS ONE MARK.
     A marked passage is N word spans (item 175: the trailing space is INSIDE the span), so
     without a ring at the fill colour the boxes touch but the fill stops at each edge. The
     ring closes the boundary horizontally and the line gap vertically.

     ⚠️ AND DESIGN'S `border-radius: 2px` IS DELIBERATELY NOT APPLIED. Item 174 MEASURED that
     a per-word radius notches the tint twice at every word boundary and reads as a row of
     pills at 15px — worse at 19.5px — and set .tr-word.tr-st-* to radius 0 for exactly that.
     Design's 2px is written for a SINGLE span and does not know our markup is per-word.
     Do not "finish the spec" by restoring it; the run's continuity is the stronger property. */
  #rv-transcript-view[data-theme="light"] .tr-st-highlight { background:var(--trv-note-fill); box-shadow:0 0 0 1px var(--trv-note-fill), var(--tr-play); }
  /* Fill only here too. A light-theme override that kept the underline would put it back on
     exactly half the sessions, which is the harder half to notice. */
  #rv-transcript-view[data-theme="light"] .tr-st-clip { background:rgba(74,124,89,0.22);
    -webkit-box-decoration-break:clone; box-decoration-break:clone; }
  #rv-transcript-view[data-theme="light"] .tr-word-flash-clip { background:rgba(74,124,89,0.30) !important; }
  /* ══ PASS 6 · THE CONFIRMED CUT — design's rust, LIGHT-SCOPED (item 313) ═══════════════
     Was a #C0392B strike on a red wash. Design: --cut-fill background, --cut-rule at 1.5px
     for the strike, --cut-dim for the struck text.

     ⚠️ 1.5px HERE AND 2px ON .tr-st-PENDING IS THE POINT, NOT AN INCONSISTENCY. Item 173
     ruled a client's PENDING cut gold and DASHED because a proposal must not read as a
     decision, and recorded that a thin dashed rule reads as SOLID at body size — so the
     dash may never be the thinner of the two. checks/transcript-mark-treatments.mjs asserts
     dash-vs-solid, hue, AND that the dash is no thinner than this. Lowering pending to match
     collapses the only thing separating proposed from confirmed.

     ⚠️ DESIGN'S PALETTE HAS NO PENDING STATE (item 292). Its cut is this solid rust strike;
     applying it to .tr-st-pending as well would erase the distinction. That gap goes back to
     design — do not invent a pending token here. */
  #rv-transcript-view[data-theme="light"] .tr-st-removed,
  #rv-transcript-view[data-theme="light"] .tr-st-pending.tr-st-proposal,
  #rv-transcript-view[data-theme="light"] .tr-st-strike { background:var(--trv-cut-fill); text-decoration-color:var(--trv-cut-rule); text-decoration-thickness:1.5px; color:var(--trv-cut-dim); opacity:1; }
  #rv-transcript-view[data-theme="light"] .tr-hl-save { border-color:rgba(178,106,0,0.55); }
  /* ⚠️ ITEM 345 IN THE LIGHT COLUMN — ONE CUT TREATMENT, and the compound selector above
     (.tr-st-pending.tr-st-proposal joined to .tr-st-removed) is what carries it: a pending
     PROPOSAL resolves rust fill / solid strike / dimmed ink exactly as a confirmed cut. The
     hollow-dashed treatment briefly specified for this state was superseded by the ruling
     before it ever shipped: the decision moved OUT of the typography and onto the rail card's
     Resolve control. Item 173's proposal-must-not-read-as-a-decision rule is NARROWED, not
     deleted — it lives on the unresolved card now, not in the mark's colour.
     ⚠️ THIS RULE IS THE CARRIED-FORWARD TREATMENT ONLY (timing questions, not proposals), out
     of 345's scope on the sharp ground that a carried cut is inert in every export — filled
     typography would have the text and the EDL disagreeing silently. Open question, own ruling
     pending; current treatment stands. */
  #rv-transcript-view[data-theme="light"] .tr-st-pending { background:rgba(178,106,0,0.10); }
  /* Selection-action button hovers. */
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-highlight:hover { background:rgba(178,106,0,0.10); }
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-clip:hover { background:rgba(74,124,89,0.14); }
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-restore { color:#1E8A54; }
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-restore:hover { background:rgba(30,138,84,0.12); }
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-strike { color:rgba(0,0,0,0.55); }
  #rv-transcript-view[data-theme="light"] .tr-sel-btn.sel-strike:hover { background:rgba(0,0,0,0.08); }
  /* Suggested-cuts panel. */
  #rv-transcript-view[data-theme="light"] .tr-suggest-kind.k-filler { background:rgba(192,57,43,0.14); }
  #rv-transcript-view[data-theme="light"] .tr-suggest-kind.k-silence { background:rgba(0,0,0,0.08); color:#6B6862; }
  #rv-transcript-view[data-theme="light"] .tr-suggest-apply { color:#1E8A54; border-color:rgba(30,138,84,0.4); }
  /* Bespoke activity panel (legacy tools). */
  #rv-transcript-view[data-theme="light"] .tr-act-head { border-bottom-color:rgba(0,0,0,0.08); }
  #rv-transcript-view[data-theme="light"] .tr-act-title { color:var(--text); }
  #rv-transcript-view[data-theme="light"] .tr-pill-all { background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.15); }
  #rv-transcript-view[data-theme="light"] .tr-pill-highlight { background:rgba(178,106,0,0.12); border-color:rgba(178,106,0,0.35); }
  #rv-transcript-view[data-theme="light"] .tr-pill-clip { background:rgba(74,124,89,0.14); border-color:rgba(74,124,89,0.35); }
  #rv-transcript-view[data-theme="light"] .tr-pill-removed { background:rgba(192,57,43,0.12); border-color:rgba(192,57,43,0.35); }
  #rv-transcript-view[data-theme="light"] .tr-pill-strikethrough { background:rgba(0,0,0,0.08); color:rgba(0,0,0,0.55); border-color:rgba(0,0,0,0.22); }
  #rv-transcript-view[data-theme="light"] .tr-act-export { background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.22); color:var(--text-muted); }
  #rv-transcript-view[data-theme="light"] .tr-act-export:hover { background:rgba(0,0,0,0.12); }
  #rv-transcript-view[data-theme="light"] .tr-tool-count { background:rgba(0,0,0,0.08); }
  #rv-transcript-view[data-theme="light"] .tr-ai-chapter { border-color:rgba(0,0,0,0.06); }
  #rv-transcript-view[data-theme="light"] .tr-ai-chapter:hover { border-color:rgba(0,0,0,0.16); }
  #rv-transcript-view[data-theme="light"] .tr-ai-phrase { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.14); }
  #rv-transcript-view[data-theme="light"] .tr-act-item { border-color:rgba(0,0,0,0.08); border-left-color:rgba(0,0,0,0.2); }
  #rv-transcript-view[data-theme="light"] .tr-act-item:hover { border-color:rgba(0,0,0,0.16); }
  #rv-transcript-view[data-theme="light"] .tr-act-del { color:rgba(0,0,0,0.3); }
  #rv-transcript-view[data-theme="light"] .tr-act-quote { color:rgba(0,0,0,0.5); }
  #rv-transcript-view[data-theme="light"] .tr-act-comment { color:rgba(0,0,0,0.85); }
  /* Done-with-transcript (slate) — light slate text was invisible on paper. */
  /* ⚠️ STATES 1 AND 3 NEED NO LIGHT OVERRIDE, and the ones that used to be here are removed
     rather than kept. They set color:var(--hint-text) on .tr-done-btn, written when the control
     was a tinted outline; against the solid #4A7A99 fill it now has, that would put muted grey
     text on a saturated slate field. A solid fill carries its own contrast and is correct on
     paper and on ink alike — 4.63:1 for white on #4A7A99, unchanged by the theme.
     STATE 2 DOES need one: #8fbdd6 slate is legible on a dark bar and nearly invisible on
     #F6F7F8. Darkened to #2F6183 (5.64:1 on the tinted light box; 7.64:1 for #8fbdd6 on the dark
     one) so the quiet state stays quiet without
     becoming unreadable — the light-mode trap recorded as item 82. */
  /* [REMOVED with .tr-done-is-sent] The light-theme override for a sent BUTTON — there is no
     sent button any more. Its replacement, .tr-send-note--sent, has its own light override
     beside the base rule, so the theme scoping did not go with it. */
  #rv-transcript-view[data-theme="light"] .tr-share-btn.tr-share-copied,
  #rv-transcript-view[data-theme="light"] .tr-share-btn.tr-share-copied:hover { color:var(--hint-accent); border-color:var(--hint-accent); }
  /* Relocated review chrome (transport / composer / comment-card badges) — these share the
     review page's rules, so the overrides are scoped to the light editor only; the review page
     keeps its dark chrome. Covers the white-on-light readouts the auto-scan flagged. */
  /* [REMOVED — item 378] .rv-t-cur and .rv-scrub-line light overrides: both render only
     inside #rv-transport (rv-t-cur via fmtTimeHTML -> #rv-tc), which item 306 stopped
     relocating into this view. Orphaned, verified by emission census. */
  #rv-transcript-view[data-theme="light"] .composer-icon-btn { border-color:rgba(0,0,0,0.18); color:rgba(0,0,0,0.55); }
  #rv-transcript-view[data-theme="light"] .composer-icon-btn:hover:not(.disabled) { color:rgba(0,0,0,0.80); border-color:rgba(0,0,0,0.35); }
  #rv-transcript-view[data-theme="light"] .composer-icon-btn.active { color:var(--text-accent); border-color:var(--text-accent); background:rgba(178,106,0,0.12); }
  #rv-transcript-view[data-theme="light"] .composer-send { background:var(--gold); border-color:var(--gold); color:#fff; }
  #rv-transcript-view[data-theme="light"] .cc-tc-badge { background:rgba(0,0,0,0.06); color:var(--text-muted); }
  /* SORT / SHOW menu buttons. The colour was ALREADY correct (#6B6862, 4.57 on its chip) — the
     failure was visual WEIGHT, not contrast: an 11px/600 chip on a 5%-black fill sat next to
     ALL/OPEN/RESOLVED pills drawn at 0.68rem with a real border, so it read as sub-UI. Match the
     pills' geometry (border + padding + type scale) and keep the approved muted tone. */
  #rv-transcript-view[data-theme="light"] .cc-menu-btn {
    color:var(--text-muted); background:none;
    border:0.5px solid var(--border); border-radius:4px;
    padding:0.25rem 0.65rem; font-size:0.68rem; font-weight:500; letter-spacing:0.05em;
  }
  #rv-transcript-view[data-theme="light"] .cc-menu-btn:hover { color:var(--text); background:rgba(0,0,0,0.05); border-color:var(--rv-border-strong); }
  /* Composer field. The placeholder colour was already muted at opacity:1 (5.10) — what actually
     read as "disabled" was the FIELD: .composer-input is filled with --rv-surface, i.e. a grey
     well sitting inside a white --rv-elevated card, which is the universal disabled-input shape.
     On light an input should be paper with a defined edge, and the placeholder can then sit a
     little darker without competing with real content. */
  #rv-transcript-view[data-theme="light"] .composer-input { background:#FFFFFF; border-color:rgba(0,0,0,0.18); }
  #rv-transcript-view[data-theme="light"] .composer-input:focus { border-color:var(--gold); }
  #rv-transcript-view[data-theme="light"] .composer-input::placeholder { color:rgba(0,0,0,0.55); opacity:1; }
  #rv-transcript-view[data-theme="light"] .composer-input::-webkit-input-placeholder { color:rgba(0,0,0,0.55); opacity:1; }
  /* Empty state — 0.82rem centred in an otherwise blank panel, at the same muted tone as every
     minor label, so it disappeared. It is the panel's only content when it shows; give it weight. */
  #rv-transcript-view[data-theme="light"] .comment-empty { color:var(--text-secondary); }
  /* The agency byline's light half (item 350) — the deep slate of the ruled pair. */
  #rv-transcript-view[data-theme="light"] .cc-byline-agency { color:#395A6E; }
  #rv-transcript-view[data-theme="light"] .cc-eye.off { color:var(--text-accent); }
  /* Type badges — the lightened dark-mode tints (#6bbf86 / #ef6f6a) are weak on paper; use the
     light meaning colors (deferred here from commit 2, step 3). */
  #rv-transcript-view[data-theme="light"] .cc-tb-clip { color:var(--color-clip); background:rgba(74,124,89,0.16); }
  #rv-transcript-view[data-theme="light"] .cc-tb-cut { color:var(--color-removed); background:rgba(192,57,43,0.14); }
  /* The note badge and its composer key off white-alpha fills, which vanish on a light panel. */
  #rv-transcript-view[data-theme="light"] .cc-tb-note { color:var(--text-secondary); background:rgba(0,0,0,0.07); }
  #rv-transcript-view[data-theme="light"] .tr-note-send { border-color:rgba(0,0,0,0.20); }
  #rv-transcript-view[data-theme="light"] .tr-note-send:hover:not(:disabled) { border-color:rgba(0,0,0,0.40); }
  /* ── Clips panel (light) ──────────────────────────────────────────────────────────────
     Every hover/fill in the dark rules is white-alpha, which is invisible on paper; each one
     needs a black-alpha twin. The count chip and the drag grip are the two that vanish
     completely without this. */
  #rv-transcript-view[data-theme="light"] .cg-head:hover,
  #rv-transcript-view[data-theme="light"] .cg-clip:hover,
  #rv-transcript-view[data-theme="light"] .cg-act:hover { background:rgba(0,0,0,0.05); }
  #rv-transcript-view[data-theme="light"] .cg-custom { border-color:rgba(0,0,0,0.22); color:var(--text-secondary); }
  /* Preview sage follows the light CLIP colour (#3F6B4A), not the dark one — same rule the
     in-text clip mark already uses, so the assembly chrome and the marks agree on paper. */
  /* Lightened with the dark side, and for the same reason — the band it used to sit on is gone.
     Light is where that band was most obvious: --rv-canvas is #E2E5E9 against a #F6F7F8 panel. */
  #rv-transcript-view[data-theme="light"] .cg-pv-play { border-color:rgba(0,0,0,0.13); color:#1A1A1A; }
  #rv-transcript-view[data-theme="light"] .cg-pv-play:hover { background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.34); }
  /* Neutral track on light too. Darker rather than lighter here: on a near-white panel the
     segments are read as marks ON the surface, so the current one has to gain weight, not lose it. */
  #rv-transcript-view[data-theme="light"] .cg-pv-seg.current { background:rgba(0,0,0,0.26); }
  #rv-transcript-view[data-theme="light"] .cg-pv-seg-fill,
  #rv-transcript-view[data-theme="light"] .cg-pv-clip.current .cg-pv-num,
  #rv-transcript-view[data-theme="light"] .cg-rail-item.current { background:#3F6B4A; border-color:#3F6B4A; color:#fff; }
  #rv-transcript-view[data-theme="light"] .cg-rail { border-color:rgba(63,107,74,0.42); background:rgba(63,107,74,0.09); }
  /* .cg-newbtn's light overrides went with it — the footer action is a text button that takes
     its colours from --text-secondary/--text, which are already themed. */
  #rv-transcript-view[data-theme="light"] .cg-group.focused .cg-head { background:rgba(74,124,89,0.14); }
  /* ── Clips workspace (light) ─────────────────────────────────────────────────────── */
  /* On paper the frame reads through a lighter surface + a real edge; the heavy dark shadow
     would be a smudge, and the gutter has to be DARKER than the frame, not black. */
  #rv-transcript-view[data-theme="light"] .cg-pv-word-active { background:rgba(74,116,150,0.16) !important; color:#12324a !important; box-shadow:inset 0 -0.16em 0 rgba(74,116,150,0.9) !important; }
  #rv-transcript-view[data-theme="light"] .cg-playing { color:#3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-head-playing { box-shadow:inset 2px 0 0 #3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-rail-live { color:#3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-ws { background:#FFFFFF; border-color:rgba(0,0,0,0.14);
    box-shadow:0 14px 34px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08); }
  /* ⚠️ BOTH SPELLINGS OF display:none ARE EXCLUDED, AND THE SECOND IS THE ONE THAT MATTERED.
     JS writes `el.style.display = 'none'` and it serializes WITH a space ("display: none");
     the static markup at #cg-ws is hand-written WITHOUT one ("display:none"). A single
     substring :not() saw only the JS spelling — so on a fresh load, before any team action
     ever touched the workspace, this rule matched a CLOSED workspace and the client's pane
     rendered the workspace tint #E8E6E1 instead of --rv-surface #F6F7F8 for the whole
     session (a client never opens the workspace, so nothing ever rewrote the attribute).
     Measured in a browser 2026-08-15 while chasing the black scroll fade: the "sand" pane
     the fade was failing to match was itself this accident, not the design. */
  #rv-transcript-view[data-theme="light"] .tr-left:has(> .cg-ws:not([style*="display: none"]):not([style*="display:none"])) { background:#E8E6E1; }
  #rv-transcript-view[data-theme="light"] .cgws-back:hover,
  #rv-transcript-view[data-theme="light"] .cgws-btn:hover,
  #rv-transcript-view[data-theme="light"] .cgws-gitem:hover,
  #rv-transcript-view[data-theme="light"] .cg-wsopen:hover { background:rgba(0,0,0,0.05); }
  #rv-transcript-view[data-theme="light"] .cgws-back,
  #rv-transcript-view[data-theme="light"] .cgws-btn,
  #rv-transcript-view[data-theme="light"] .cg-wsopen { border-color:rgba(0,0,0,0.20); }
  #rv-transcript-view[data-theme="light"] .cgws-back:hover,
  #rv-transcript-view[data-theme="light"] .cgws-btn:hover,
  #rv-transcript-view[data-theme="light"] .cg-wsopen:hover { border-color:rgba(0,0,0,0.38); }
  #rv-transcript-view[data-theme="light"] .cgws-new { border-color:rgba(0,0,0,0.20); }
  #rv-transcript-view[data-theme="light"] .cgws-new:hover { border-color:rgba(0,0,0,0.38); background:rgba(0,0,0,0.03); }
  #rv-transcript-view[data-theme="light"] .cgws-gitem.selected { background:rgba(74,124,89,0.14); box-shadow:inset 0 0 0 1px rgba(63,107,74,0.45); }
  #rv-transcript-view[data-theme="light"] .cgws-card { background:#FFFFFF; border-color:rgba(0,0,0,0.12); }
  #rv-transcript-view[data-theme="light"] .cgws-card:hover { border-color:rgba(0,0,0,0.26); }
  #rv-transcript-view[data-theme="light"] .cg-act-preview::after { background:#FFFFFF; border-color:rgba(0,0,0,0.14); }
  #rv-transcript-view[data-theme="light"] .cg-stale { border-color:rgba(178,106,0,0.50); background:rgba(251,176,59,0.20); }
  #rv-transcript-view[data-theme="light"] .cg-focus-bar { background:rgba(74,124,89,0.14); border-color:rgba(63,107,74,0.45); }
  /* Cuts (light) — the dark-mode reds/ambers are lightened tints that go weak on paper; use the
     light meaning colours, same pairing the transcript marks already use in this theme. */
  #rv-transcript-view[data-theme="light"] .cg-cut .cg-clip-text { color:var(--text-secondary); text-decoration-color:rgba(192,57,43,0.6); }
  #rv-transcript-view[data-theme="light"] .cg-cut-pending { color:#8A5200; background:rgba(251,176,59,0.26); border-color:rgba(178,106,0,0.45); }
  #rv-transcript-view[data-theme="light"] .cg-cut-declined { color:#565F68; background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.18); }
  #rv-transcript-view[data-theme="light"] .cg-cut-av { background:rgba(0,0,0,0.07); color:var(--text-secondary); }
  #rv-transcript-view[data-theme="light"] .team-tag.tr-tag-client { color:#2E5A73; background:rgba(74,122,153,0.18); }
  #rv-transcript-view[data-theme="light"] .team-tag.tr-tag-guest { color:#5F6B75; background:rgba(0,0,0,0.06); }
  #rv-transcript-view[data-theme="light"] .cg-cutbar { color:var(--text-secondary); border-bottom-color:rgba(0,0,0,0.08); }
  #rv-transcript-view[data-theme="light"] .cg-act-ok:hover { color:#1E8A54; background:rgba(30,138,84,0.13); }
  #rv-transcript-view[data-theme="light"] .cg-act-no:hover,
  #rv-transcript-view[data-theme="light"] .cg-act-out:hover { color:#C0392B; background:rgba(192,57,43,0.12); }
  /* Focus dimming (light). The first attempt copied dark's logic and pushed FURTHER (0.22) on
     the theory that dark text on paper stays legible when faded. That was backwards: on a light
     ground, fading toward the canvas erases a mark's tint entirely — a sage clip at 0.22 over
     #F7F6F3 composites to ~#EFF0EC, i.e. paper, so the clip marks stopped reading as sage at
     all. Light needs LESS dimming than dark, not more.
     Marks get a higher floor still, so a clip outside the focused group is de-emphasised but
     still legibly sage — the sage/gold distinction between "kept selection" and "commented on"
     must survive focus mode. */
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-word { opacity:0.58; }
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-st-clip,
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-st-highlight,
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-st-removed { opacity:0.75; }
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-word.cg-emph { opacity:1; }
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-speaker,
  #rv-transcript-view[data-theme="light"] #tr-scroll.cg-focus .tr-block-time { opacity:0.55; }
  /* Edit selection — light needs a shallower dim for the same reason cg-focus does: 0.32 on
     near-black text over white is legible, on white-ish text it is not. */
  /* The light surface is #F6F7F8; a lighter wash, because light needs less dimming than dark
     (the 0.55 the per-word rule used, not the 0.32). */
  #rv-transcript-view[data-theme="light"] ~ #tr-dim-layer,
  #tr-dim-layer[data-theme="light"] { background:rgba(246,247,248,0.55); }
  /* [REMOVED — item 336] #tr-scroll-fade[data-theme="light"], item 333's restated literal. It
     existed only because the fade element sat outside the themed subtree and could not read the
     view's token; with the fade gone there is nothing to restate. The dim layer above keeps the
     pattern for the surface that still needs it. */
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing .tr-word.tr-edit-span { background:rgba(74,124,89,0.28); box-shadow:inset 0 -0.16em 0 rgba(63,107,74,0.95); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing .tr-word.tr-edit-head { box-shadow:inset 0.14em 0 0 #3F6B4A, inset 0 -0.16em 0 rgba(63,107,74,0.95); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing .tr-word.tr-edit-tail { box-shadow:inset -0.14em 0 0 #3F6B4A, inset 0 -0.16em 0 rgba(63,107,74,0.95); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing .tr-word.tr-edit-head.tr-edit-tail { box-shadow:inset 0.14em 0 0 #3F6B4A, inset -0.14em 0 0 #3F6B4A, inset 0 -0.16em 0 rgba(63,107,74,0.95); }
  /* Cut mode on light — the sage overrides above are more specific than the dark cut rules, so
     each needs its own light counterpart or an edited cut would render sage on light only. */
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing-cut .tr-word.tr-edit-span { background:rgba(192,57,43,0.16); box-shadow:inset 0 -0.16em 0 rgba(192,57,43,0.9); text-decoration:line-through; text-decoration-color:rgba(192,57,43,0.9); text-decoration-thickness:2px; }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing-cut .tr-word.tr-edit-head { box-shadow:inset 0.14em 0 0 #C0392B, inset 0 -0.16em 0 rgba(192,57,43,0.9); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing-cut .tr-word.tr-edit-tail { box-shadow:inset -0.14em 0 0 #C0392B, inset 0 -0.16em 0 rgba(192,57,43,0.9); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing-cut .tr-word.tr-edit-head.tr-edit-tail { box-shadow:inset 0.14em 0 0 #C0392B, inset -0.14em 0 0 #C0392B, inset 0 -0.16em 0 rgba(192,57,43,0.9); }
  #rv-transcript-view[data-theme="light"] #tr-scroll.tr-editing .tr-word.tr-edit-cut-off { background:rgba(0,0,0,0.05); color:#1A1A1A; }
  /* Assign popover — on <body>, outside this subtree, so it is themed by its OWN attribute
     (stamped by trApplyTheme, same treatment as #tr-sel-bar). */
  .cg-pop[data-theme="light"] { background:#FFFFFF; border-color:rgba(0,0,0,0.18); box-shadow:0 12px 34px rgba(0,0,0,0.18); }
  .cg-pop[data-theme="light"] .cg-pop-head { color:rgba(0,0,0,0.55); border-bottom-color:rgba(0,0,0,0.10); }
  .cg-pop[data-theme="light"] .cg-pop-row { color:#1A1A1A; }
  .cg-pop[data-theme="light"] .cg-pop-row:hover { background:rgba(0,0,0,0.05); }
  .cg-pop[data-theme="light"] .cg-pop-box { border-color:rgba(0,0,0,0.30); }
  .cg-pop[data-theme="light"] .cg-pop-n { color:rgba(0,0,0,0.50); }
  .cg-pop[data-theme="light"] .cg-pop-new { border-top-color:rgba(0,0,0,0.10); }
  .cg-pop[data-theme="light"] .cg-pop-input { background:#FFFFFF; border-color:rgba(0,0,0,0.22); color:#1A1A1A; }
  .cg-pop[data-theme="light"] .cg-pop-input::placeholder { color:rgba(0,0,0,0.45); opacity:1; }
  .cg-pop[data-theme="light"] .cg-pop-note { border-top-color:rgba(0,0,0,0.10); }
  #rv-transcript-view[data-theme="light"] .cg-shared .cg-head { box-shadow:inset 2px 0 0 rgba(0,0,0,0.35); }
  #rv-transcript-view[data-theme="light"] .cc-tr-bare:hover { background:rgba(0,0,0,0.03); }
  #rv-transcript-view[data-theme="light"] .cc-tr-bare .cc-tr-quote { color:rgba(0,0,0,0.62); }
  #rv-transcript-view[data-theme="light"] .cg-shared-badge { color:#3F6B4A; border-color:rgba(63,107,74,0.5); background:rgba(74,124,89,0.16); }
  #rv-transcript-view[data-theme="light"] .cg-unfiled .cg-head { box-shadow:inset 2px 0 0 rgba(0,0,0,0.35); }
  #rv-transcript-view[data-theme="light"] .cg-send { background:#3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-send:hover:not(:disabled) { background:#355c3f; }
  #rv-transcript-view[data-theme="light"] .cg-sent { border-color:rgba(63,107,74,0.45); background:rgba(74,124,89,0.14); }
  #rv-transcript-view[data-theme="light"] .cg-sent-tick, #rv-transcript-view[data-theme="light"] .cg-fc-title { color:#3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-fc-set .cg-head { box-shadow:inset 2px 0 0 #3F6B4A; }
  #rv-transcript-view[data-theme="light"] .cg-fromclient { border-top-color:rgba(0,0,0,0.14); }
  /* ── uiConfirm / uiPrompt dialogs raised from the LIGHT editor ────────────────────────
     They mount on <body>, so they carry their own data-theme (stamped at construction) rather
     than inheriting the editor's scope. Dark is untouched — no rule keys off [data-theme="dark"]. */
  .ui-dialog-overlay[data-theme="light"] { background:rgba(0,0,0,0.28); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog { background:#FFFFFF; border-color:rgba(0,0,0,0.14); box-shadow:0 20px 60px rgba(0,0,0,0.20); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-title { color:#1A1A1A; }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-msg { color:rgba(0,0,0,0.62); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-input { background:#FFFFFF; border-color:rgba(0,0,0,0.22); color:#1A1A1A; }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-input:focus { border-color:rgb(74,124,89); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-pre { background:#F5F5F3; border-color:rgba(0,0,0,0.14); color:#1A1A1A; }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-pre-mark { background:rgba(247,147,30,0.30); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-ask { color:#1A1A1A; }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-btn.cancel { background:#FFFFFF; color:#1A1A1A; border-color:rgba(0,0,0,0.22); }
  .ui-dialog-overlay[data-theme="light"] .ui-dialog-btn.cancel:hover { background:rgba(0,0,0,0.05); }
  /* ── String-out export modal ──────────────────────────────────────────────────────────
     #tr-export-overlay sits outside #review-view, so it is themed by its OWN data-theme
     attribute (trApplyTheme stamps it alongside #tr-sel-bar and #cg-pop). Dark is the default
     and matches what the inline style used to hardcode; light turns the code well into paper
     instead of a black box floating on a white modal. */
  .tr-export-ta { background:#0e0e0e; color:rgba(255,255,255,0.85); border:0.5px solid rgba(255,255,255,0.1); }
  .modal-overlay[data-theme="light"] .tr-export-ta { background:#F7F6F3; color:#1A1A1A; border-color:rgba(0,0,0,0.18); }
  .modal-overlay[data-theme="light"] .modal { background:#FFFFFF; color:#1A1A1A; }
  .modal-overlay[data-theme="light"] .modal-title { color:#1A1A1A; }
  .modal-overlay[data-theme="light"] .modal-close { color:rgba(0,0,0,0.55); }
  .modal-overlay[data-theme="light"] .modal-close:hover { color:#1A1A1A; background:rgba(0,0,0,0.06); }
  .modal-overlay[data-theme="light"] .tr-replace-btn { color:#1A1A1A; border-color:rgba(0,0,0,0.25); }
  .modal-overlay[data-theme="light"] .tr-replace-btn:hover { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.40); }
  /* ── Found by the re-run white-on-light scan over the WHOLE editor subtree ────────────
     The earlier scan was scoped too narrowly and never reached the RELOCATED transport dock or
     the relocated comments panel, which is where most of these live. Measured contrast in
     parentheses is the value before the fix. */
  /* [REMOVED — item 378] the transport scrubber's light overrides (.rv-timeline,
     .rv-timeline-fill, .rv-vol-btn). Their premise — "the RELOCATED transport dock" — lapsed
     when item 306 gave the transcript its own transport; #rv-transport is a SIBLING of
     #rv-transcript-view, so these could not match. The review page is dark-only
     (reconciliation ruling 1.6), so the restyle below needs no light pair. */
  /* Filter-pill tray — rgba(255,255,255,0.04), i.e. no tray at all on paper. */
  #rv-transcript-view[data-theme="light"] .comment-filters { background:rgba(0,0,0,0.04); }
  /* COMMENTS / DETAILS tab + the composer's timecode chip both ride --brand (#F7931E), which the
     light scope does not override because --brand is the portal-wide signal orange and is used
     on dark chrome elsewhere. Route these two to the light gold instead (2.11 / 2.37 → 4.74). */
  #rv-transcript-view[data-theme="light"] .rv-tab.active { color:#A05F00; }
  /* The chip sits on its OWN 12% amber wash, not on paper, so it needs to go a step darker than
     the tab does to clear AA against that ground (#A05F00 → 4.38 there; #8F5500 → 5.22). */
  #rv-transcript-view[data-theme="light"] .composer-tc-chip.on { background:rgba(178,106,0,0.12); border-color:#8F5500; color:#8F5500; }
  /* Send: white on --gold #B26A00 lands at 4.24, just under AA for its 0.7rem label. */
  #rv-transcript-view[data-theme="light"] .composer-send { background:#9E5E00; border-color:#9E5E00; color:#fff; }
  /* Timeline range marker — conditional (only with a range comment), so it never surfaced in a
     scan. Its ✕ is --brand on the range's own amber tint (1.37), and the 14px orange glow is a
     dark-mode affordance that reads as a smudge on a light transport. */
  #rv-transcript-view[data-theme="light"] .rv-range,
  #rv-transcript-view[data-theme="light"] .rv-wave-range { border-color:#A05F00; box-shadow:0 0 0 1px rgba(160,95,0,0.25); }
  #rv-transcript-view[data-theme="light"] .rv-range-x { color:#8F5500; }
  /* Asset navigator "‹ N of M ›" — conditional UI (multi-transcript deliverables), so it is
     display:none until it applies and both earlier scans skipped it. Its text and borders are
     raw white-alpha: 1.05 contrast, i.e. completely invisible on paper. */
  #rv-transcript-view[data-theme="light"] #tr-asset-nav { border-color:rgba(0,0,0,0.18); }
  #rv-transcript-view[data-theme="light"] .rv-asset-nav-btn,
  #rv-transcript-view[data-theme="light"] .rv-asset-nav-pos { color:rgba(0,0,0,0.72); border-color:rgba(0,0,0,0.14); }
  #rv-transcript-view[data-theme="light"] .rv-asset-nav-btn:hover { color:var(--text); background:rgba(0,0,0,0.06); }
  /* Floating selection bar — themed via its OWN attribute (trApplyTheme stamps it), because it
     is a fixed-position sibling of #review-view, not a descendant of the editor. Its background
     is #fff in both themes, so on light its dark-mode shadow reads as grime and .sel-strike's
     rgba(255,255,255,0.55) label is white-on-white. Light-only; dark keeps every current value. */
  /* ══ PASS 6 · THE SELECTION POPOVER — design's container, LIGHT-SCOPED (item 313) ═══════
     ⚠️ SCOPED BY THE BAR'S OWN data-theme, NOT BY #rv-transcript-view. #tr-sel-bar is one of
     the seven nodes appended to <body> (item 60's body-mounted trap), so it sits OUTSIDE the
     themed subtree and a `#rv-transcript-view[data-theme="light"] #tr-sel-bar` selector would
     match NOTHING. trApplyTheme / trThemeStamp stamp it instead; that is why every light rule
     here reads #tr-sel-bar[data-theme="light"]. Do not "tidy" it to match its neighbours. */
  #tr-sel-bar[data-theme="light"] { background:var(--trv-surface); border:1px solid var(--trv-card-line); border-radius:9px; box-shadow:var(--trv-pop-shadow); }
  /* Light counterpart. Applied ONLY when the popover was opened from inside the transcript
     editor — everywhere else the app has a single dark palette and the popover stays dark. */
  #tr-copy-pop[data-theme="light"] { background:#FCFBF9; border-color:rgba(0,0,0,0.14); box-shadow:0 2px 6px rgba(0,0,0,0.07), 0 8px 20px rgba(0,0,0,0.10); }
  #tr-copy-pop[data-theme="light"] .tcp-head { color:#1A1A1A; }
  #tr-copy-pop[data-theme="light"].tcp-ok .tcp-tick { color:#2E7D4F; }
  #tr-copy-pop[data-theme="light"].tcp-fail .tcp-head { color:#C0392B; }
  #tr-copy-pop[data-theme="light"] .tcp-url { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.09); color:#333; }
  #tr-copy-pop[data-theme="light"] .tcp-copy { border-color:rgba(0,0,0,0.16); color:#444; }
  #tr-copy-pop[data-theme="light"] .tcp-copy:hover { background:rgba(0,0,0,0.05); color:#1a1a1a; }
  #tr-copy-pop[data-theme="light"] .tcp-copy.done { color:#2E7D4F; border-color:rgba(46,125,79,0.45); }
  #tr-copy-pop[data-theme="light"] .tcp-copy.bad { color:#C0392B; border-color:rgba(192,57,43,0.45); }
  /* ⚠️ FILLED BUTTONS OF EQUAL WEIGHT, AND NEITHER IS GOLD. Design states that outright, and
     item 66 is why it matters here: gold marks a decision, and on this page gold IS the send
     button. Two actions offered side by side must not compete — a filled Note against a text
     Cut reads as a recommendation nobody made. Same padding, same weight, same radius; only
     the hue differs, and it is the mark's own hue in both cases. */
  #tr-sel-bar[data-theme="light"] .tr-sel-btn { color:var(--trv-ink); border:1px solid transparent; font-weight:500; }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-highlight { background:var(--trv-note-fill); border-color:var(--trv-note-line); color:var(--trv-note-ink); }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-highlight:hover { background:var(--trv-note-hover); }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-cut { background:var(--trv-cut-fill); border-color:var(--trv-cut-line); color:var(--trv-cut-ink); }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-cut:hover { background:var(--trv-cut-hover); }
  /* ⚠️ CLIP IS TEAM-ONLY AND DESIGN DOES NOT SPECIFY IT — design's popover is the CLIENT's, and
     a client owns no clips (item 61). It keeps its existing sage rather than being given an
     invented fill: inventing a treatment the handoff has not drawn is the move items 133 and
     275 both record as the one not to make. Restore and Clear are team affordances too. */
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-clip { color:#3F6B4A; }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-strike { color:rgba(0,0,0,0.55); }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-restore { color:#1E8A54; }
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-clip:hover,
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-strike:hover,
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-restore:hover,
  #tr-sel-bar[data-theme="light"] .tr-sel-btn.sel-clear:hover { background:var(--trv-hover); }
  /* The edit bar is on <body> for the same containing-block reason and is themed the same way.
     Like #tr-sel-bar its fill is white in BOTH themes — only the shadow softens. */
  #tr-edit-bar[data-theme="light"] { box-shadow:0 2px 6px rgba(0,0,0,0.07), 0 8px 20px rgba(0,0,0,0.10); border-color:rgba(0,0,0,0.18); }
  #tr-edit-layer[data-theme="light"] .tr-edit-grab::before,
  #tr-edit-layer[data-theme="light"] .tr-edit-grab::after { background:#3F6B4A; }
  #tr-edit-layer[data-theme="light"] .tr-edit-grab:hover::after,
  #tr-edit-layer[data-theme="light"] .tr-edit-grab.dragging::after { background:#57855F; }
  #tr-edit-layer[data-theme="light"].tr-edit-cut .tr-edit-grab::before,
  #tr-edit-layer[data-theme="light"].tr-edit-cut .tr-edit-grab::after { background:#C0392B; }
  #tr-edit-layer[data-theme="light"].tr-edit-cut .tr-edit-grab:hover::after,
  #tr-edit-layer[data-theme="light"].tr-edit-cut .tr-edit-grab.dragging::after { background:#D9534F; }
  #tr-edit-bar[data-theme="light"] .tr-edit-runtime.up { color:#1E8A54; }
  #tr-edit-bar[data-theme="light"] .tr-edit-runtime.down { color:#C0392B; }
  #tr-sel-bar[data-theme="light"] .tr-sel-div { background:var(--trv-line-2); }
  #tr-sel-bar[data-theme="light"] .tr-sel-pill { color:var(--trv-ink-3); font-size:12.5px; border-right-color:var(--trv-line-2); }
  /* Custom light text selection — cool gray-blue, a different hue family from all three washes
     (so a drag-to-highlight reads as selection→then→highlight, two distinct states). */
  #rv-transcript-view[data-theme="light"] ::selection { background:rgba(74,116,150,0.28); }
  #rv-transcript-view[data-theme="light"] ::-moz-selection { background:rgba(74,116,150,0.28); }

/* ══ SELECTS PAGE ══════════════════════════════════════════════════════════
   ⚠️ PURPLE IS TRANSCRIPT'S RING AND IT IS READ FROM THE PALETTE, NEVER TRANSCRIBED. It comes
   in as --at-transcript-ring-rgb, the custom property written from ASSET_TYPE_PALETTE, because
   static CSS cannot read a JS table and hand-copying the hex is exactly how that palette became
   six disagreeing tables. The first cut of this block DID hardcode #b08cf5 and
   asset-type-palette.mjs caught it — the mechanism working. The family reading is the point: a
   Selects set is made of transcript spans, and it inherits the colour rather than matching it. Gold #FBB03B is the decision colour under item 66 as restated,
   and every gold thing here is a decision or the asking of one. */
/* ⚠️ IN FLOW, LIKE ITS SIBLINGS — NOT `position:fixed`. `body` is a flex ROW whose first child
   is the 220px sidebar, and #review-view / #metadata-view start beside it because the ROW puts
   them there; they account for nothing themselves. This shipped as `position:fixed; inset:0`,
   which is out of flow: it began at x=0 and the sidebar (z-index 50 against its 30) painted over
   the left edge, clipping the h1 to "ll Episode Selects" and the speaker label to "PEAKER A".
   ⚠️ jsdom PERFORMS NO LAYOUT, so a correct build and that one measure identically in the suite
   and no behavioural assertion could ever have seen it. §11 of checks/selects-page.mjs asserts
   the STRUCTURE instead, derived from RV_SURFACE_IDS — item 213: where a rule is checkable
   statically that beats measuring it, and it beats it hardest where measurement is unavailable. */
#selects-view { display:none; flex:1; flex-direction:column; min-height:0;
  overflow-y:auto; scrollbar-gutter:stable; background:var(--bg); }
#selects-view.open { display:flex; }
/* ⚠️ `flex-shrink:0` IS WHAT MAKES THE PAGE SCROLL, AND ITS ABSENCE CLIPPED 19,658px OF A REAL
   SET — item 398. This frame is the only child of #selects-view, which is a CONSTRAINED flex
   column (flex:1 of #app.visible, height:100%) declaring `overflow-y:auto` above: the view is
   the intended scroller. A flex item defaults to `flex-shrink:1`, and its automatic minimum
   size resolves to its CONTENT only where computed `overflow` is `visible` — CSS Flexbox §4.5,
   the same clause item 275 turns on. This frame sets `overflow:hidden` (for the 12px radius),
   so its automatic minimum is ZERO and it shrinks to the container instead of overflowing it.
   Measured on the live build with a 400-line transcript: the frame was squashed from 20,592px
   to 932px and CLIPPED the rest, while #selects-view saw nothing overflowing it and so never
   produced a scrollbar. Nothing scrolled — not the page, not either column.

   ⚠️ THE OTHER TWO FIXES ARE WORSE AND ARE NOT THE ONE TO REACH FOR. Dropping `overflow:hidden`
   un-clips the corners the radius exists for; moving the scroll onto the frame gives Selects a
   second scroller and leaves the view's own `overflow-y:auto` inert (declared and unreachable,
   item 159). Refusing to shrink lets the container's ALREADY-DECLARED scroller do its job. */
/* ⚠️ `width:100%` IS LOAD-BEARING, AND THE REASON IS THE AUTO MARGINS ABOVE IT — item 528.
   This frame is a flex ITEM of the column container #selects-view, and in flexbox an auto
   margin on the cross axis beats `align-items:stretch` (CSS Flexbox §8.1): with `margin:0 auto`
   and no width, the frame is FIT-CONTENT, not the container's width. Measured on the live 049
   set at 1440px: a decided item (transcript at 64ch, result bar) sized the frame to 1105px and
   centred it 43px in; an undecided item (the "1 more undecided after this one…" hint is one
   long line) sized it to the full 1192px. The card slid sideways on every click between them.
   NOT the scrollbar — document and view scrollWidth were 1440/1192 in both states. A declared
   width gives the auto margins a fixed box to centre; max-width keeps the cap. The gutter on
   #selects-view covers the smaller, separate mechanism (a classic scrollbar appearing when the
   content grows past the viewport) without hiding anything. */
.sel-frame { width:100%; max-width:1280px; margin:0 auto; border-radius:12px; background:#0D0E11;
  border:1px solid rgba(255,255,255,.09); overflow:hidden; flex-shrink:0; }
.sel-head { padding:22px 28px 20px; border-bottom:1px solid rgba(255,255,255,.07);
  display:flex; justify-content:space-between; align-items:flex-start; gap:24px; }
/* [REMOVED — item 401] .sel-crumb / .sel-crumb b — the duplicate breadcrumb. */
.sel-titlerow { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sel-title { font-family:Montserrat,sans-serif; font-weight:900; font-size:26px;
  letter-spacing:-.01em; margin:0; }
.sel-sub { font-size:13px; color:rgba(255,255,255,.5); max-width:640px; line-height:1.55;
  margin-top:10px; }
.sel-eyebrow { font-size:10px; font-weight:600; letter-spacing:.14em; color:rgb(var(--at-transcript-ring-rgb)); }
.sel-srcline { font-size:12px; color:rgba(255,255,255,.4); margin-top:4px; }
.sel-themerow { margin-top:10px; }
.sel-body { display:grid; grid-template-columns:1fr 400px; }
.sel-left { padding:26px 28px 32px; display:flex; flex-direction:column; gap:22px;
  border-right:1px solid rgba(255,255,255,.07); min-width:0; }

.sel-itemtitle { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.sel-itemtitle h3 { font-family:Montserrat,sans-serif; font-weight:700; font-size:22px; margin:0; }
.sel-itemtc { font-size:13px; color:rgba(255,255,255,.4); font-variant-numeric:tabular-nums; }
.sel-badge-new { font-size:10px; font-weight:600; letter-spacing:.1em; color:#FBB03B;
  border:1px solid rgba(251,176,59,.4); border-radius:3px; padding:2px 7px; }
/* ⚠️ "Sent Aug 12" HERE AND A BARE "Sent" ON THE ROW IS ONE RULE, NOT A DRIFT — DO NOT
   "FIX" EITHER TO MATCH THE OTHER. Item 246 governs the asset-list ROW, where a DATE
   COLUMN sits beside the status cell and carries the date already, so the badge says only
   what happened. The card and this page have no date column, so the badge is the only
   thing that can say when. Same principle in both places: THE BADGE SAYS WHAT, AND IT SAYS
   WHEN ONLY WHERE NOTHING ELSE DOES. The two strings look like a divergence and are the
   same rule meeting two different layouts. */
.sel-badge-sent { font-size:11px; font-weight:600; color:rgba(255,255,255,.4); }
.sel-badge-alt { font-size:11px; font-weight:600; color:rgb(var(--at-transcript-ring-rgb));
  border:1px solid rgba(var(--at-transcript-ring-rgb),.4); border-radius:3px; padding:2px 7px; }

/* ⚠️ THE COMPACT TRANSPORT — item 401's strip WITHOUT the thumbnail, and it is a RESTORATION
   of two of that family's six rules rather than a rebuild. What stays removed: .sel-thumb and
   its poster (the reason the strip went — a 76x44 still of a video sitting six inches to its
   right), .sel-thumb-rule, .sel-stripmid and .sel-medialine.
   ⚠️ AND DROPPING THE MEDIA LINE IS WHY .sel-stripmid COULD NOT COME BACK WITH THE SCRUB.
   That wrapper existed to STACK two things — a line of text over the bar. With the text gone
   the scrub is the only thing in the middle, so a wrapper whose whole job was stacking would
   be a box with one child; the bar takes the remaining width itself and centres against the
   play button. The row is therefore two items, not three, and the CSS says so. */
.sel-transport { background:#0F1115; border:1px solid rgba(255,255,255,.08); border-radius:6px;
  padding:10px 14px; display:flex; align-items:center; gap:14px; }
.sel-play { width:38px; height:38px; flex:0 0 38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.04); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.sel-play:hover { border-color:rgba(var(--at-transcript-ring-rgb),.6); background:rgba(var(--at-transcript-ring-rgb),.16); }
/* min-width:0 is load-bearing on a flex item, not tidiness — the default min-width:auto refuses
   to shrink below content and pushes the row's own padding out (items 62, 79, 137, 152). */
.sel-scrub { flex:1; min-width:0; height:3px; background:rgba(255,255,255,.1);
  border-radius:2px; position:relative; }
/* ONE FILL PER SPAN — item 355's rule, restored with the bar. A single fill from the first
   span's start to the last one's end draws the material the team CUT as if it were included;
   at 3:39-5:29 on a 52-second item that is 57 seconds of cut footage asserted as marked. */
.sel-scrub-span { position:absolute; top:0; bottom:0; background:rgba(var(--at-transcript-ring-rgb),.5); border-radius:2px; }
.sel-scrub-head { position:absolute; top:-1px; bottom:-1px; width:2px; background:#fff; display:none; }
/* [REMOVED — item 393] `.sel-expand`, the strip's "Collapse / Watch it" button. It WAS the
   video toggle, not a file-metadata control, and the reflow moved that job into the right
   column's .sel-vidtoggle. Deleted rather than left as an orphaned rule: a rule with no emission
   site reads as live and gets reused by whoever finds it first (item 159's .ag-badge). Two
   toggles for one thing is the duplication items 307 and 308 both cost a pass to remove. */
/* ⚠️ NO `aspect-ratio` HERE, DELIBERATELY, AND THE OBVIOUS VERSION OF THIS RULE IS A TRAP.
   A 16:9 ratio-only box whose height comes from the ratio alone is item 215/216's compounding
   cycle: Chrome clamps and Safari grows, measured at 90px -> 6,453,724px. Taking the child out
   of flow does NOT fix it — item 216 measured the growth factor as IDENTICAL across two
   completely different child configurations, which is what proved the container's own auto
   height was the driver rather than the child. That is exactly the reasoning-instead-of-
   measuring mistake this file keeps paying for, and it was made here again before the guard
   refused it.
   So the MEDIA defines the height and the stage merely wraps it: a <video> carries its own
   intrinsic ratio, so `height:auto` sizes it correctly with nothing to resolve against and no
   box to grow. It is also better than forcing 16:9 — a vertical source letterboxes inside a
   forced frame and simply arrives at its own shape here. Neither instrument in this repo can
   observe the difference (Chrome renders every broken state correctly, jsdom performs no
   layout), which is why the structural rule is worth more than any measurement. */
.sel-stage { display:none; background:#08090B;
  border:1px solid rgba(255,255,255,.07); border-radius:6px; overflow:hidden; }
.sel-stage.open { display:block; }
.sel-stage video, .sel-stage audio { width:100%; height:auto; display:block; }
.sel-text { display:flex; flex-direction:column; gap:18px; max-width:64ch; }
/* [REMOVED — item 401] .sel-rulerow / .sel-rulerow .hr — the "WHAT WAS SAID" rule row.
   .sel-text survives: it is what the turns render into. */
.sel-turn { display:grid; grid-template-columns:92px minmax(0,1fr); gap:18px; align-items:baseline; }
.sel-gutter { text-align:right; }
.sel-spk { font-family:Montserrat,sans-serif; font-weight:700; font-size:11px;
  letter-spacing:.08em; color:rgba(255,255,255,.72); }
.sel-gtc { font-size:11px; color:rgba(255,255,255,.28); font-variant-numeric:tabular-nums; }
.sel-para { font-size:17px; line-height:1.72; color:rgba(255,255,255,.88); text-wrap:pretty; margin:0; }

.sel-decide { border-top:1px solid rgba(255,255,255,.07); padding-top:12px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sel-keep { font-size:14px; font-weight:600; color:#1A1205; background:#FBB03B; border:none;
  border-radius:4px; padding:13px 34px; cursor:pointer; }
.sel-keep:hover { background:#F7931E; }
.sel-pass { font-size:14px; font-weight:600; background:none;
  border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.75); border-radius:4px;
  padding:13px 34px; cursor:pointer; }
.sel-pass:hover { border-color:rgba(255,255,255,.4); color:#fff; }
.sel-linkbtn { font-size:13px; font-weight:500; color:rgba(255,255,255,.5); background:none;
  border:none; text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:0; }
.sel-linkbtn:hover { color:#fff; }
.sel-note { width:100%; font-size:13px; line-height:1.6; background:#12141A;
  border:1px solid rgba(255,255,255,.12); border-radius:4px; padding:12px 14px;
  min-height:74px; color:var(--text); display:none; }
.sel-note.open { display:block; }
.sel-hint { font-size:12px; color:rgba(255,255,255,.35); width:100%; }
.sel-result { background:#12141A; border:1px solid rgba(255,255,255,.08); border-radius:6px;
  padding:16px 18px; display:flex; align-items:center; justify-content:space-between;
  gap:12px; width:100%; }
.sel-dot { width:7px; height:7px; border-radius:50%; display:inline-block; margin-right:8px; }
/* ⚠️ STATE LIVES IN CLASSES, NOT IN `style=`, AND THAT IS THE WHOLE REASON THIS BLOCK EXISTS.
   selRender used to emit these colours inline — `style="color:rgba(255,255,255,.38)"` — and an
   inline declaration outranks EVERY `[data-theme="light"]` rule no matter how it is written, so
   a correct light block would still have shipped white-on-white here. Nothing about that failure
   is visible in the CSS: the rules read fine and the page renders unreadable. Anything added to
   selRender that carries a colour belongs here, not on the element. */
.sel-dot.is-ok     { background:var(--at-audio-ring); }
.sel-dot.is-muted  { background:rgba(255,255,255,.4); }
.sel-dot.is-none   { background:transparent; }
.sel-qchip .sel-dot { margin:0; }
.sel-qchip.is-keep { color:var(--at-audio-ring); }
.sel-qchip.is-pass { color:rgba(255,255,255,.38); }
.sel-qchip.is-none { color:rgba(255,255,255,.3); }
.sel-qgroup.is-sent { color:rgba(255,255,255,.3); }
.sel-qgroup.is-open { color:#FBB03B; }
.sel-para.is-empty { color:rgba(255,255,255,.4); }
/* ⚠️ THE PLAYING WORD — BACKGROUND ONLY, NO WEIGHT AND NO PADDING, AND THAT IS A LAYOUT RULING
   RATHER THAN A TASTE ONE. This repaints up to 60 times a second on a 17px reading column, and
   `font-weight` or `padding` changes a word's ADVANCE WIDTH — so every word after it on the line
   shifts, and the paragraph jitters under someone who is reading it. `.tr-word-active` uses
   weight, and item 327 measured what that costs once something is already reflowing; a
   background costs no layout at all.
   ⚠️ NO NEW TOKEN. The tint is the page's own type colour through the palette's published
   triplet — the same source `.sel-scrub-span`, `.sel-eyebrow` and `.sel-badge-alt` already read
   — so a palette edit moves it with everything else, and there is no fifth violet to keep in
   step (item 82's near-copy trap). The radius is safe here for the reason item 174's is not:
   exactly one word is ever marked, so no run exists to notch at every boundary. */
.sel-w.is-now { background:rgba(var(--at-transcript-ring-rgb),.20); border-radius:2px; }
.sel-result-state { font-size:14px; font-weight:600; }
.sel-result-state.is-keep { color:var(--at-audio-ring); }
.sel-result-state.is-pass { color:rgba(255,255,255,.5); }
.sel-result-qual { font-size:13px; color:rgba(255,255,255,.4); }
.sel-sent-line { color:var(--at-audio-ring); font-weight:600; }

/* ── THE VIDEO PREVIEW, AT THE TOP OF THE RIGHT COLUMN (item 393) ────────────
   ⚠️ IT LIVES INSIDE .sel-queue, WHICH IS WHAT MAKES "the same width as The Set" TRUE BY
   CONSTRUCTION RATHER THAN BY A MATCHING NUMBER. The right column is a fixed 400px grid track
   (.sel-body), so a preview declared at 400px elsewhere would agree today and drift the first
   time that track moves — the shape items 101 and 121 both record. Inset 24px to sit on the
   same left edge as .sel-qhead, so the video's edge lines up with THE SET below it.
   ⚠️ AND THE STAGE DELIBERATELY DECLARES NO aspect-ratio — see the note above .sel-stage and
   aspect-ratio-percentage-cycle.mjs, which refused it once already. The media sizes itself from
   its own intrinsic ratio; a forced 16:9 box here is items 215/216's compounding family. */
.sel-vidwrap { border-bottom:1px solid rgba(255,255,255,.07); }
.sel-vidhead { padding:18px 24px 12px; display:flex; align-items:center; gap:12px; }
.sel-vidname { font-size:13px; font-weight:600; flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* ⚠️ THE PART COUNT CARRIED FROM THE REMOVED MEDIA STRIP (item 401). Same quiet-meta weight as
   .sel-vidtc beside it rather than a treatment of its own: it is a second fact about the same
   item, and the name is what carries identity on this row. `flex:0 0 auto` for the reason
   .sel-vidtc has it — the NAME gives way when the header is narrow (it already ellipsises),
   and a truncated "2 par…" is a fact you cannot read where a truncated name is still a name. */
.sel-vidparts { font-size:12px; color:rgba(255,255,255,.45); flex:0 0 auto;
  font-variant-numeric:tabular-nums; }
.sel-vidtc { font-size:12px; color:rgba(255,255,255,.45); flex:0 0 auto;
  font-variant-numeric:tabular-nums; }
.sel-vidtoggle { display:flex; align-items:center; gap:5px; flex:0 0 auto;
  font-size:12px; font-weight:600; color:rgba(255,255,255,.6);
  background:none; border:1px solid rgba(255,255,255,.16); border-radius:5px;
  padding:5px 9px; cursor:pointer; font-family:inherit; }
.sel-vidtoggle:hover { color:#fff; border-color:rgba(255,255,255,.4); }
/* The chevron is ONE glyph rotated, not two paths swapped — the toggle mutates a class rather
   than rewriting innerHTML, and a class is the only thing a CSS transition could ever follow. */
.sel-vidchev { transition:transform .12s ease; }
.sel-vidtoggle.is-collapsed .sel-vidchev { transform:rotate(-90deg); }
/* ⚠️ THE INSET IS A MARGIN ON THE STAGE, NOT PADDING ON A WRAPPER, AND THAT IS WHAT MAKES THE
   SPACE REALLY COME BACK. A padded wrapper keeps its own padding when the stage inside it goes
   `display:none`, leaving a dead 18px strip under the header and a toggle that has to mutate two
   elements to clear it. A margin on a display:none box does not exist at all, so ONE class flip
   reclaims the whole height and THE SET moves up. */
.sel-vidwrap .sel-stage { margin:0 24px 18px; }

.sel-queue { background:#0B0C0F; display:flex; flex-direction:column; }
.sel-qhead { padding:20px 24px 14px; display:flex; justify-content:space-between; align-items:baseline; }
.sel-qhead h4 { font-family:Montserrat,sans-serif; font-weight:700; font-size:13px;
  letter-spacing:.06em; margin:0; }
.sel-qmeta { font-size:12px; color:rgba(255,255,255,.4); }
.sel-qrows { padding:0 14px 8px; display:flex; flex-direction:column; gap:2px;
  max-height:520px; overflow:auto; }
.sel-qrow { display:flex; align-items:center; gap:13px; padding:12px; border-radius:6px;
  background:none; border:1px solid transparent; cursor:pointer; text-align:left; width:100%;
  color:inherit; }
.sel-qrow:hover { background:rgba(255,255,255,.04); }
.sel-qrow.selected { background:rgba(var(--at-transcript-ring-rgb),.1); border-color:rgba(var(--at-transcript-ring-rgb),.4); }
.sel-qidx { width:20px; flex:0 0 20px; font-size:11px; color:rgba(255,255,255,.3);
  font-variant-numeric:tabular-nums; }
.sel-qmid { flex:1; min-width:0; }
.sel-qname { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; }
.sel-qsub { font-size:11px; font-variant-numeric:tabular-nums; color:rgba(255,255,255,.4); }
.sel-qchip { font-size:11px; font-weight:600; white-space:nowrap; display:flex;
  align-items:center; gap:6px; }
.sel-qgroup { display:flex; align-items:center; gap:10px; padding:14px 12px 6px;
  font-size:10px; font-weight:600; letter-spacing:.12em; }
.sel-qgroup .hr { flex:1; height:1px; background:rgba(255,255,255,.07); }
.sel-foot { margin-top:auto; padding:20px 24px 24px; border-top:1px solid rgba(255,255,255,.07); }
/* [RETIRED — item 734] .sel-send / .sel-send:hover — the client's Send button. Replaced by the quiet "I'm done for now" link
   (.sel-done, a .sel-linkbtn) and, for the team, Start edit (.sel-startedit) with its stamp (.sel-editstamp). */
.sel-editrow { margin-top:10px; }
.sel-startedit { font-size:12px; font-weight:600; padding:7px 12px; border-radius:6px; border:1px solid rgba(255,255,255,.22); background:none; color:inherit; cursor:pointer; }
.sel-startedit:hover { border-color:rgba(255,255,255,.4); }
.sel-editstamp { margin-top:10px; font-size:12px; opacity:.75; }
#selects-view[data-theme="light"] .sel-startedit { border-color:var(--trv-line); color:var(--trv-ink); }
.sel-foot-hint { font-size:12px; color:rgba(255,255,255,.4); margin-top:8px; }
@media (max-width:900px) { .sel-body { grid-template-columns:1fr; }
  .sel-left { border-right:none; border-bottom:1px solid rgba(255,255,255,.07); } }

/* ══════════════════════════════════════════════════════════════════════════════════════
   SELECTS, LIGHT. Reconciliation ruling 1.6 sanctions the transcript as the light-first
   reading surface; Selects is the second surface under it, on the SAME tokens and the SAME
   preference key. (1.6's text still says "the transcript" singular — a doc gap, recorded
   rather than edited here.)
   ⚠️ ONE KEY, NOT TWO, AND THE REASON IS NOT TIDINESS: #selects-view and #rv-transcript-view
   are the same asset read by the same person one click apart. Two preferences would let a
   client's transcript and their Selects disagree about the colour of the page. So this rides
   trTheme()/trApplyTheme, and trThemeKey's audience split carries over unchanged — a client
   with nothing stored lands LIGHT on both, whatever the team key on that browser says.
   ⚠️ #selects-view IS A SIBLING OF #review-view, NOT A DESCENDANT (ensureSelectsView inserts
   it with insertBefore(v, rv.nextSibling)), so no #rv-transcript-view[data-theme] rule can
   ever reach it — item 60's body-mounted trap in a different shape. It gets its own stamp in
   trApplyTheme, and the stamp is applied in openSelectsReview BEFORE the first paint.
   ⚠️ EVERY INK BELOW WAS MEASURED, NOT CHOSEN. Text roles clear 4.5:1 against the paper they
   actually sit on (surface #FFFFFF, panel #FBFAF8, subpanel #F7F5F1); non-text clears 3:1.
   The ring #b08cf5 is 2.65:1 on white and #FBB03B is 1.85:1 — both FAIL as ink on paper,
   which is why the violet ink and --trv-note-ink exist here at all. */
.sel-decide-q { font-family:'Inter',sans-serif; font-size:13.5px; font-weight:700; margin:0 0 12px; }
.sel-why { margin-top:8px; font-size:13px; }
/* Item 533 — arrival overlay. Tokens, not the mock's hexes: the sheet is the page's surface. */
.sel-arrive-scrim { position:fixed; inset:0; z-index:420; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; padding:28px; }
.sel-arrive-sheet { position:relative; width:100%; max-width:560px; max-height:calc(100vh - 56px); overflow:auto; background:#15161A; color:#E8E8EA; border:0.5px solid rgba(255,255,255,0.14); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,0.45); padding:32px 34px 26px; font-family:'Inter',sans-serif; }
.sel-arrive-x { position:absolute; top:14px; right:14px; width:32px; height:32px; border-radius:8px; border:none; background:transparent; color:#9A9AA4; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sel-arrive-x:hover { background:rgba(255,255,255,0.08); color:#E8E8EA; }
.sel-arrive-h { font-size:24px; font-weight:800; letter-spacing:-0.015em; line-height:1.2; margin:0 0 20px; padding-right:28px; }
.sel-arrive-memo { background:rgba(251,176,59,0.10); border:1px solid rgba(251,176,59,0.35); border-radius:10px; padding:16px 18px; margin-bottom:24px; }
.sel-arrive-from { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.sel-arrive-memo p { margin:0; font-size:14.5px; line-height:1.6; white-space:pre-wrap; }
.sel-arrive-steps { display:flex; flex-direction:column; gap:14px; margin-bottom:22px; }
.sel-arrive-step { display:flex; gap:13px; align-items:flex-start; }
.sel-arrive-n { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,0.10); color:#C9C9CF; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; margin-top:1px; }
.sel-arrive-t { font-size:14.5px; line-height:1.55; color:#C9C9CF; }
.sel-arrive-t b { font-weight:700; color:#E8E8EA; }
.sel-arrive-reassure { border-top:0.5px solid rgba(255,255,255,0.14); padding-top:18px; margin-bottom:24px; font-size:14px; line-height:1.6; color:#9A9AA4; }
.sel-arrive-reassure b { color:#E8E8EA; font-weight:700; }
.sel-arrive-foot { display:flex; align-items:center; justify-content:center; }
.sel-arrive-start { font-size:15px; font-weight:800; padding:13px 26px; }
#selects-view[data-theme="light"] .sel-arrive-sheet { background:var(--trv-surface); color:var(--trv-ink); border-color:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-arrive-x { color:var(--trv-muted); }
#selects-view[data-theme="light"] .sel-arrive-x:hover { background:var(--trv-panel); color:var(--trv-ink); }
#selects-view[data-theme="light"] .sel-arrive-memo { background:#FDF3E0; border-color:#F0DFBB; }
#selects-view[data-theme="light"] .sel-arrive-from { color:#5C3D00; }
#selects-view[data-theme="light"] .sel-arrive-n { background:var(--trv-panel); color:var(--trv-muted); }
#selects-view[data-theme="light"] .sel-arrive-t, #selects-view[data-theme="light"] .sel-arrive-reassure { color:var(--trv-muted); }
#selects-view[data-theme="light"] .sel-arrive-t b, #selects-view[data-theme="light"] .sel-arrive-reassure b { color:var(--trv-ink); }
#selects-view[data-theme="light"] .sel-arrive-reassure { border-top-color:var(--trv-line-2); }
#selects-view[data-theme="light"] { background:var(--trv-desk); }
/* ⚠️ THE CATCH-ALL, AND IT IS LOAD-BEARING RATHER THAN BELT-AND-BRACES. Every element added
   to selRender later inherits from here; without it an unstyled addition takes the dark
   base's white text and lands white-on-white, which is exactly the failure this whole pass
   exists to prevent and is invisible until someone opens the page. */
#selects-view[data-theme="light"] .sel-frame { color:var(--trv-ink);
  background:var(--trv-surface); border-color:var(--trv-card-line); }
#selects-view[data-theme="light"] .sel-head { border-bottom-color:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-sub,
#selects-view[data-theme="light"] .sel-srcline,
#selects-view[data-theme="light"] .sel-itemtc,
#selects-view[data-theme="light"] .sel-badge-sent,
#selects-view[data-theme="light"] .sel-gtc,
#selects-view[data-theme="light"] .sel-linkbtn,
#selects-view[data-theme="light"] .sel-hint,
#selects-view[data-theme="light"] .sel-qmeta,
#selects-view[data-theme="light"] .sel-qidx,
#selects-view[data-theme="light"] .sel-qsub,
#selects-view[data-theme="light"] .sel-foot-hint,
#selects-view[data-theme="light"] .sel-para.is-empty,
#selects-view[data-theme="light"] .sel-result-qual,
#selects-view[data-theme="light"] .sel-qchip.is-pass,
#selects-view[data-theme="light"] .sel-qchip.is-none,
#selects-view[data-theme="light"] .sel-qgroup.is-sent,
#selects-view[data-theme="light"] .sel-result-state.is-pass { color:var(--trv-ink-3); }
#selects-view[data-theme="light"] .sel-eyebrow,
#selects-view[data-theme="light"] .sel-badge-alt { color:var(--sel-violet-ink); }
#selects-view[data-theme="light"] .sel-badge-alt { border-color:var(--sel-violet-ink); }
#selects-view[data-theme="light"] .sel-transport { background:var(--trv-subpanel);
  border-color:var(--trv-line); }
#selects-view[data-theme="light"] .sel-play { border-color:var(--trv-ctl-line);
  background:transparent; color:var(--trv-ink-2); }
#selects-view[data-theme="light"] .sel-play:hover { border-color:var(--sel-violet-ink); }
#selects-view[data-theme="light"] .sel-scrub { background:var(--trv-track); }
/* Solid, not the .5 alias: rgba(ring,.5) over --trv-track measures 1.96:1 — a marked region
   nobody can see. Solid violet is 4.32:1 against the same track (item 391). */
#selects-view[data-theme="light"] .sel-scrub-span { background:var(--sel-violet-ink); }
#selects-view[data-theme="light"] .sel-scrub-head { background:var(--trv-ink); }
/* Light needs a heavier wash for the same reading: the same alpha that reads as a mark on a
   near-black column is nearly invisible on white paper. The INK is untouched — the body text
   keeps --trv-ink over the composite, so the highlight cannot cost legibility. */
#selects-view[data-theme="light"] .sel-w.is-now { background:rgba(var(--at-transcript-ring-rgb),.28); }
#selects-view[data-theme="light"] .sel-left { border-right-color:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-badge-new { color:var(--trv-note-ink);
  border-color:var(--trv-note-line); }
#selects-view[data-theme="light"] .sel-qgroup.is-open { color:var(--trv-note-ink); }
/* The stage is a VIDEO WELL — dark in both themes, deliberately: media sits on a dark ground
   so a letterboxed frame reads as frame rather than as page. --trv-video-bg is design's own
   token for exactly that. (.sel-thumb shared this rule until item 401 removed the strip.) */
#selects-view[data-theme="light"] .sel-stage { background:var(--trv-video-bg);
  border-color:var(--trv-line); }
/* ⚠️ .sel-vidtoggle INHERITS .sel-expand's LIGHT TREATMENT BECAUSE IT INHERITS ITS JOB
   (item 393). The strip's "Collapse / Watch it" button WAS the video toggle — the reflow moved
   it into the right column and relabelled it Hide/Show, so this is the same control's rule
   following it rather than a second opinion about what a quiet control looks like. */
#selects-view[data-theme="light"] .sel-vidtoggle,
#selects-view[data-theme="light"] .sel-pass { color:var(--trv-ink-2);
  border-color:var(--trv-ctl-line); }
#selects-view[data-theme="light"] .sel-vidtoggle:hover,
#selects-view[data-theme="light"] .sel-pass:hover { color:var(--trv-ink);
  border-color:var(--trv-ctl-line-strong); }
#selects-view[data-theme="light"] .sel-vidwrap { border-bottom-color:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-vidparts,
#selects-view[data-theme="light"] .sel-vidtc { color:var(--trv-ink-3); }
/* ⚠️ THE NAME DECLARES ITS OWN INK RATHER THAN INHERITING THE FRAME'S. Inheritance would render
   correctly and be invisible to the contrast census, which resolves an ink by asking which rule
   WINS for that element — an inherited value has no winning rule, so the role reports null and
   the one text on this strip that carries the item's identity would go unchecked. */
#selects-view[data-theme="light"] .sel-vidname { color:var(--trv-ink); }
#selects-view[data-theme="light"] .sel-linkbtn:hover { color:var(--trv-ink); }
#selects-view[data-theme="light"] .sel-qgroup .hr { background:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-spk { color:var(--trv-ink-speaker); }
#selects-view[data-theme="light"] .sel-para { color:var(--trv-ink-read); }
#selects-view[data-theme="light"] .sel-decide,
#selects-view[data-theme="light"] .sel-foot { border-top-color:var(--trv-line-2); }
#selects-view[data-theme="light"] .sel-note { background:var(--trv-surface);
  border-color:var(--trv-ctl-line); color:var(--trv-ink); }
#selects-view[data-theme="light"] .sel-result { background:var(--trv-subpanel);
  border-color:var(--trv-line); }
#selects-view[data-theme="light"] .sel-queue { background:var(--trv-panel); }
#selects-view[data-theme="light"] .sel-qrow:hover { background:var(--trv-hover); }
/* The tint stays the type-identity alias; the BORDER carries the signal, because the tint
   alone is 1.09:1 on panel. */
#selects-view[data-theme="light"] .sel-qrow.selected { border-color:var(--sel-violet-ink); }
#selects-view[data-theme="light"] .sel-qchip.is-keep,
#selects-view[data-theme="light"] .sel-result-state.is-keep,
#selects-view[data-theme="light"] .sel-sent-line { color:var(--trv-green); }
#selects-view[data-theme="light"] .sel-dot.is-ok { background:var(--trv-green); }
#selects-view[data-theme="light"] .sel-dot.is-muted { background:var(--trv-ink-4); }
/* ⚠️ KEEP AND SEND HOLD BRAND AMBER IN BOTH THEMES — #1A1205 on #FBB03B is 10.04:1, and the
   primary action is not re-toned per theme. Item 66's gold means a decision, and Keep IS the
   decision this page exists to take; a light-theme variant would say it more quietly on the
   one surface where it must not be quiet. No rule below touches .sel-keep or .sel-send. */
/* ⚠️ THE PAGE BADGE CARRIES A MARKER CLASS, AND THE CLASS IS WHAT KEEPS THE SHARED FAMILY
   INTACT. .del-status-pill.badge-ask is 1.69:1 and .badge-done 2.00:1 on white — both
   unreadable here — but client-badge-treatments.mjs resolves those treatments by collecting
   every rule whose classes are a SUBSET of {del-status-pill, badge-ask}, and asserts the ink
   set as an EQUALITY. A bare light override would be picked up as the winner and fail it. The
   extra .sel-pagebadge class puts this rule outside that subset, so the family's contract is
   untouched and only this page's rendering moves. */
#selects-view[data-theme="light"] .del-status-pill.sel-pagebadge.badge-ask {
  background:var(--trv-note-chip); color:var(--trv-note-ink); border-color:var(--trv-note-line); }
#selects-view[data-theme="light"] .del-status-pill.sel-pagebadge.badge-done {
  background:rgba(47,107,79,.10); color:var(--trv-green); border-color:rgba(47,107,79,.35); }
/* Item 673 — the neutral "Closed" pill on light paper, same reasoning as its two siblings
   above: badge-quiet's dark-theme rgba(255,255,255,…) is unreadable here. Neutral ink/border,
   no hue — matching the closed-work ruling (gold asks, green approves, this asks for nothing). */
#selects-view[data-theme="light"] .del-status-pill.sel-pagebadge.badge-quiet {
  background:rgba(0,0,0,.05); color:var(--trv-ink-3); border-color:var(--trv-ctl-line); }
/* The segmented pair shares the transcript's CLASSES and carries its own IDS — see the note at
   selThemeToggleHtml. The transcript's own light rules are scoped to #rv-transcript-view, so
   they cannot reach this copy and it needs its own. */
#selects-view[data-theme="light"] .tr-theme-seg { border-color:var(--trv-ctl-line); }
#selects-view[data-theme="light"] .tr-theme-opt { color:var(--trv-ink-3); }
#selects-view[data-theme="light"] .tr-theme-opt + .tr-theme-opt { border-left-color:var(--trv-ctl-line); }
#selects-view[data-theme="light"] .tr-theme-opt:hover { color:var(--trv-ink-2); background:var(--trv-hover); }
#selects-view[data-theme="light"] .tr-theme-opt.active { color:var(--trv-ink-2); background:var(--trv-slate-chip); }
@media (max-width:900px) {
  #selects-view[data-theme="light"] .sel-left { border-bottom-color:var(--trv-line-2); } }


    /* ⟦item 1135⟧ NO ZOOM ON A PHONE — the CSS half (the viewport meta and brmNoZoom are in the head). No double-tap zoom anywhere
       (pans, scrolls and pinch-free panning stay; a rule of the page's own, like the drawing canvas's touch-action:none, is more
       specific and wins). On a PHONE only — a coarse pointer at a phone's width, or a phone on its side — no field under 16px (iOS
       zooms into a smaller one when it is focused); a mouse never matches, so desktop is unchanged. :not(#nz1135) gives the rule an
       id's weight, so it outranks any class rule's own !important. It only RAISES: a field designed larger carries data-nz-keep
       (Story Builder's reel title, 18.4px), or the floor would shrink it. Pinned by checks/item-1135.mjs. */
    * { touch-action: manipulation; }
    @media (pointer: coarse) and (max-width: 679px), (pointer: coarse) and (max-height: 500px) {
      input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]):not([data-nz-keep]):not(#nz1135),
      textarea:not([data-nz-keep]):not(#nz1135), select:not([data-nz-keep]):not(#nz1135) { font-size: 16px !important; }
      /* ⟦item 1155⟧ the rich-text boxes too (Jeffrey, Nov 15: "16px for rich text boxes on phone"): any contenteditable that is
         editable now (the Publish Details description #modal-description and .md-rt-edit, team and client). A box set
         contenteditable="false" (locked, read-only) is not a field and keeps its size. Its own rule, so the field floor above keeps
         its three selectors. Same query, so an iPad and a desktop are unchanged. Pinned by checks/item-1155.mjs. */
      [contenteditable]:not([contenteditable=false]):not([data-nz-keep]):not(#nz1135) { font-size: 16px !important; }
    }
  