/* =====================================================================
   tokens.css — the light system for desk-ui-v3.

   ★★ THIS IS THE ONLY FILE IN desk-ui-v3 THAT MAY NAME A COLOUR.
   Every hex, rgb() and hsl() in the running page lives between here and
   the end of §1. shell.js, ui.js and every screen built on them emit
   class names and nothing else. audit.js asserts this by walking
   `document.styleSheets` and every element's inline `style` attribute,
   and it carries a negative control that injects a red literal and
   proves the walk goes from zero findings to one.

   ⚠ ONE DOCUMENTED EXCEPTION, and it is in index.html, not here:
   `<meta name="theme-color">`. The browser paints that BEFORE any
   stylesheet loads, so no variable can reach it. It is a hand-copy of
   --ground-page and it goes stale silently — desk-ui-v2 was bitten by
   exactly this when the palette was regraded and the phone kept painting
   green behind a grey desk. If --ground-page changes, change the meta.

   ── WHERE THESE NUMBERS COME FROM ────────────────────────────────────
   Read out of Yahia's own Figma file (`Cv1iuvcY5EzCs10RnIZppY`) and
   recorded in `unitech-program/DESK-DESIGN-2026-09-01.md`. They are
   slothUI's, not invented here, and not adjusted to taste.

       Brand/60  #4F46E5     Gray/0   #FFFFFF     Gray/40  #94A3B8
       Brand/30  #A5B4FC     Gray/5   #F8FAFC     Gray/60  #475569
                             Gray/20  #E2E8F0     Gray/80  #1E293B

   The two warm signals are NOT from Figma. They are the real bird's
   crest and cheek, carried over byte-for-byte from
   `desk-ui-v2/CONTRACT.md`, where they were already the only two warm
   colours on a cool field. They survive the move to light unchanged.
   Do not nudge them to "match" the indigo.
   ===================================================================== */


/* =====================================================================
   §1  THE TOKENS. Nothing below this section names a colour.
   ===================================================================== */

:root {

  /* ── the greys, straight off the Figma file ────────────────────────── */
  --gray-0:   #FFFFFF;
  --gray-5:   #F8FAFC;
  --gray-20:  #E2E8F0;
  --gray-30:  #CBD5E1;
  --gray-40:  #94A3B8;
  --gray-60:  #475569;
  --gray-80:  #1E293B;

  /* ── indigo: STRUCTURE ONLY ────────────────────────────────────────
     Where you are, what is a link, who she is. It never means
     "do something". That is the cheek's job and only the cheek's. */
  --brand:      #4F46E5;   /* Brand/60 */
  --brand-hair: #A5B4FC;   /* Brand/30 — hover edges, her outline */
  --brand-wash: #EEF0FE;   /* the current rail item's ground */
  --brand-edge: #DDE1FD;   /* its border */
  --brand-ring: rgba(79, 70, 229, .11);   /* focus halo, = --brand at 11% */

  /* ── the two warm signals. One meaning each ─────────────────────── */

  /* ⚠⚠ YELLOW CHANGED WHAT IT MEANS ON 2026-09-06, AND THE SENTENCE IT
     REPLACES IS QUOTED HERE BECAUSE THE CHANGE IS THE POINT. It used to
     read "SHE REFUSED. A number she will not invent, or a thing she
     needs decided" -- two different facts wearing one colour. The
     locked look splits them (spec §0, ratified as D29):

         yellow      NEEDS YOU. One tinted card per screen and nothing
                     else on that screen is yellow. It is the thing the
                     owner has to answer.
         warm peach  SHE COULD NOT. Her own refusal, in a warm tile
                     carrying the words "could not". Never yellow and
                     never red: a refusal is not a decision waiting on
                     somebody, and it is not a failure either.

     Neither hex moves. What they are FOR does. */
  --crest: #F2C94C;   /* NEEDS YOU. One card per screen, and nothing else
                         on that screen is yellow. */
  --cheek: #EF8E3F;   /* PRESS THIS. At most one per screen, on whatever
                         actually needs doing. Nothing else is orange. */

  /* ⚠⚠ THESE THREE WERE USED BEFORE THEY EXISTED, on 2026-09-02, by the
     bento pass. `.tile.warm`, `.delta[data-dir="up"]` and the ring's rest
     track all referenced them and an undeclared var() computes to nothing:
     the warm tile lost its background and got a `currentColor` border, and
     `.tile.warm .ring circle.rest` resolved `stroke` to NONE.

     ★ THAT LAST ONE IS WHY THIS IS WRITTEN UP RATHER THAN JUST FIXED. A ring
     of 0 of 95 draws its lit arc as nothing ON PURPOSE, and with the rest
     track also gone it drew NOTHING AT ALL while still reporting itself as a
     ring, with data-ring="0/95" sitting in the markup for any check to find.
     A shape that measures as present and paints as absent is the exact
     failure this desk is built to refuse, and I shipped it into the file
     that defines the colours. Caught by a builder rendering it, not by me
     grepping for hex literals -- I checked that no colour was NAMED outside
     this file and never checked that the names I used were REAL.

     Contrast measured, not guessed: --cheek-ink is 7.5:1 on --cheek-ground
     and 8.0:1 on white, against the crest set's 7.0:1. */
  --cheek-ground: #FEF7F0;
  --cheek-edge:   #F5DCC4;
  --cheek-ink:    #7A4310;   /* 7.5:1 on --cheek-ground. measured */

  /* ── SHE COULD NOT ───────────────────── added 2026-09-07, MEASURED 2026-09-07
     The tile she draws when she looked and still cannot tell: "could
     not read Alibaba", "could not check the sanctions list", "I would
     not guess the incoterm".

     ⚠⚠ THESE WERE THREE ALIASES OF THE DILUTE CHEEK AND THAT WAS WRONG
     TWICE OVER. It was written on the grounds that the dilute cheek is
     already measured and a second warm ramp is a second thing to keep
     true. Both halves failed on contact with the screen:

       · IT PAINTED ZERO PIXELS. The family was declared and nothing was
         ever repointed to it, so the eleven panels it was added for
         stayed on the needs-you yellow. On the Cockatiel screen ten of
         them meant "she could not" and one meant "she needs you to
         decide", side by side, in the same colour. One colour, two
         opposite meanings, which is the whole thing D29 exists to stop.
       · AND REPOINTING THEM TO THE ALIAS WOULD HAVE MADE IT WORSE.
         #FEF7F0 is 4.97 deltaE from white. The crest ground it would
         have replaced is 24.75. It is yellow-at-the-edge-of-visible all
         over again -- the exact panel this pass was written to stop
         being invisible -- and it is the same paint as `.tile.warm`, so
         a could-not tile and a warm tile could not be told apart by a
         person or by a probe.

     So the family gets its own values, and here is the measurement that
     picked them. CIE76 deltaE against the white card behind the tile,
     and WCAG contrast for every ink:

       --couldnot-ground #FFDCB8   25.38 dE from white   (crest: 24.74)
                                   11.87 dE from --crest-ground
                                   20.44 dE from --cheek-ground
       --couldnot-ink    #7A4310   6.13:1 on the ground, 7.96:1 on white
       --couldnot-ink-2  #7F4E1C   5.38:1 on the ground
       --couldnot-tap    #F2C79C   --couldnot-ink on it is 5.09:1

     As visible as the crest, plainly a different colour from it, plainly
     not the dilute cheek, and every ink over the 4.5:1 floor.

     ★ AND IT IS STILL NOT THE CHEEK ITSELF, for the mechanical reason
     that was right the first time: `oneAction` in audit.js counts
     elements whose background is within 6 per channel of --cheek
     (#EF8E3F). #FFDCB8 is 16, 78 and 121 away, and 13, 19 and 108 from
     --crest, so a could-not tile can sit on a screen that already has
     its one orange button without the count going to two, and cannot be
     mistaken for the needs-you card either.

     --couldnot-ink is the same hex as --cheek-ink. That is not an
     alias: it is a separate declaration with its own measurement,
     because it now sits on a different ground and 7.50:1 there is
     6.13:1 here. */
  --couldnot-ground: #FFDCB8;
  --couldnot-edge:   #F5C79A;
  --couldnot-ink:    #7A4310;   /* 6.13:1 on --couldnot-ground. measured */
  --couldnot-ink-2:  #7F4E1C;   /* the second line inside one. 5.38:1. */
  --couldnot-tap:    #F2C79C;   /* a code chip or a tap inside one. 5.09:1 */

  /* the quiet grounds the two warm signals sit on. Both are the signal
     itself, heavily diluted; neither is ever used for a word. */
  /* ⚠ THE NEEDS-YOU TINT IS THE LOCKED IMAGE'S NOW, NOT THE OLD WHISPER.
     #FEFCF3 was yellow at the edge of visible, which was right while
     yellow meant "she refused" and had to sit quietly inside a panel.
     It is now the one card on the screen the owner has to answer, so it
     takes the mockup's #FFF3C4. Both inks re-measured on it rather than
     assumed: --crest-ink 6.1:1, --crest-ink-2 5.1:1. */
  --crest-ground: #FFF3C4;
  --crest-edge:   #F2E3A8;
  /* ⚠ THESE TWO COMMENTS WERE STALE AND SAID SO IN THE WORD "MEASURED".
     7.9:1 and 5.8:1 are the ratios on the OLD #FEFCF3 ground (7.04 and
     5.56, in fact); on the ground three lines up they are 6.50 and 5.13.
     Both clear the floor, which is why nothing broke, and a number
     nobody re-took after moving the thing under it is exactly the shape
     this file keeps being caught by. Re-measured 2026-09-07. */
  --crest-ink:    #6B5410;   /* words INSIDE a crest panel. 6.50:1 on the
                                crest ground. 4.88:1 on --crest-tap and
                                4.56:1 on --crest itself, both measured. */
  --crest-ink-2:  #7A6423;   /* the second line inside one. 5.13:1. */
  --crest-tap:    #E4D3A6;   /* the border of a tap in a crest panel */

  /* ── WHICH LAW A REFUSAL PANEL IS WEARING ────────── added 2026-09-07
     `.refusal` is used for two opposite things and always was: "She
     stopped this" and "What she could not open", which are HER refusing,
     and "She is asking you" and Today's decision card, which are the
     owner's to answer. D29 gives those two different colours, so the
     panel reads its set from here and the two variants say which.

     ⚠ DECLARED AT :root ON PURPOSE. `.tap` is drawn outside a refusal on
     five screens, and audit.js's `everyTokenResolves` requires every
     var() used anywhere to resolve at the root. A per-element custom
     property that a stylesheet could have declared is the undeclared
     var() trap this file already carries a scar from: an undeclared
     var() computes to NOTHING, and a shape that measures as present and
     paints as absent is the exact failure the desk is built to refuse.
     So the default is the needs-you set, which is what every tap outside
     a refusal has always worn, and only `.refusal` moves it. */
  --rf-ground: var(--crest-ground);
  --rf-edge:   var(--crest-edge);
  --rf-ink:    var(--crest-ink);
  --rf-ink-2:  var(--crest-ink-2);
  --rf-tap:    var(--crest-tap);
  --rf-dot:    var(--crest);       /* the 8px mark beside the heading */
  --rf-press:  var(--crest);       /* the ground of a PRESSED tap inside one */

  /* ── the three grounds. Depth is the STACK, not a pile of borders ──── */
  --ground-rail: var(--gray-0);   /* the rail: white, and it is the frame */
  --ground-page: #F1F5F9;         /* the main area: tinted, and it recedes */
  --ground-card: var(--gray-0);   /* every card and table: white, on top   */
  --ground-sunk: var(--gray-5);   /* table headers, side panels, lanes     */

  /* ── ink ───────────────────────────────────────────────────────────
     ⚠ MEASURED CORRECTION, and the reason is written down.
     Gray/40 #94A3B8 on white is 2.60:1. That fails 4.5:1 for body text
     and fails even the 3:1 large-text floor. The approved mockup sets
     11–12px metadata in it. A token is not a licence to set words in it.
     So the token stays exactly as Figma has it and is used for RULES,
     ICON FILLS and DECORATION, and quiet WORDS get --ink-quiet, which is
     Slate 500 and measures 4.76:1 on white. audit.js measures this.

     ⚠⚠ THE COMMENT TERMINATOR USED TO BE ON THE LINE ABOVE, AND IT COST
     THE WHOLE DESK ITS DARKEST INK. The comment closed there, so the six
     lines that followed
     were parsed as CSS, the terminator at the end of them was orphaned,
     and the parser's error recovery ran to the next semicolon
     -- which was the end of `--ink: var(--gray-80);`. Exactly one
     declaration in the file was silently discarded, and it was the token
     for every heading and every figure on every screen.

     Nothing looked broken. `color: var(--ink)` with no such token falls
     back to the inherited colour, so headings rendered in --ink-body grey
     (#475569) instead of #1E293B: still legible, still tidy, and not the
     design. It survived every review, every screenshot and ten checks.
     Found 2026-09-02 by a new audit assertion that a var() must resolve,
     written after a DIFFERENT undeclared-token bug an hour earlier.
     ⚠ AND --ink-quiet IS MEASURED AGAINST THE TINTED GROUND, NOT WHITE.
     It was #64748B (Slate 500), which is 4.76:1 on a white card and
     4.34:1 on --ground-page — and audit.js caught it failing on the
     very first empty state the frame drew, because an empty state sits
     on the page ground by definition. The tighter of the two grounds is
     the one that decides the value.

     ⚠⚠ AND IT MOVED AGAIN 2026-09-03, FOR A THIRD GROUND. #5F6E85 was
     4.57:1 on --ground-panel: it cleared 4.5 by 0.07, and v4 then made
     that panel the ground under her chat bubble, under every helper
     panel and under the top bar. A token with 0.07 of headroom is a
     token that fails the next time anybody tints anything, and it fails
     silently because the audit measures the ONE ground an element
     happens to sit on. #5C6B82 is the same hue one step darker and
     measured on every ground this desk paints:

         white   #FFFFFF   5.41    --ground-plate #F7F8FA   5.09
         page    #F1F5F9   4.94    --ground-sunk  #F8FAFC   5.17
         panel   #EEF1F5   4.78    glass over the plate     4.51

     ⚠ THE GLASS RULE DID NOT CHANGE AND MUST NOT. 4.51 is 0.01 of
     headroom over a ground whose real composite depends on whatever is
     behind it, which is a different number on every scroll position.
     Words on glass stay --ink-body (6.31:1). See the glass token. */
  /* ⚠ TWO OF THESE FOUR TOOK THE LOCKED LOOK'S VALUES ON 2026-09-07, AND
     THE THIRD WAS REFUSED BY A MEASUREMENT. The spec's §0 palette is
     text #1B1D28, secondary #6B7080, labels #9AA0AE. The first and the
     last are here. #6B7080 is not, and this is why:

     --ink-quiet is the desk's word for a quiet WORD, and the spec's
     "secondary" is a lighter thing than that. Set to #6B7080 and
     measured on every screen, audit.js came back with four findings on
     Cockatiel alone: the timestamps beside her chat lines, 12px at 600,
     at 4.36:1 against 4.5. Not a rounding: four words a person reads,
     under the floor, on the screen she talks on. At #5C6B82 the same
     four measure 5.0:1.

     ...THE OTHER TWO MOVED BECAUSE THE GROUNDS MOVED. Contrast is a pair
     and never a colour on its own; the panel is white glass now rather
     than a grey band, so a slightly lighter ink is safe there and only
     there. --ink-body is the one the spec has no word for at all: it
     carries sentences, which a three-value palette does not separate
     from "secondary", so it stays exactly where it was measured.

     ★ THE POINT IS THAT THE MEASUREMENT DECIDED, NOT THE SPEC AND NOT
     ME. The locked image wins on looks and this file says so; a
     contrast floor is not a look. The run that refused it is
     `desk-ui-v4/test/look-after-20260907.json`. */
  --ink:        #1B1D28;          /* 15.6:1 white. headings, figures                */
  --ink-body:   var(--gray-60);   /*  7.6:1 white ·  7.2:1 tinted. sentences         */
  --ink-quiet:  #5C6B82;          /*  5.4:1 white ·  5.5:1 panel. quiet words        */
  --ink-mute:   #9AA0AE;          /*  2.4:1. NEVER A WORD. lines, icons, dividers    */
  --ink-on-brand: var(--gray-0);   /* 6.3:1 on --brand. measured */

  /* ⚠ DARK, NOT WHITE, AND THE ORANGE DID NOT MOVE.
     The approved mockup sets white on --cheek. That measures 2.44:1 —
     it fails 4.5:1 and it fails the 3:1 large-text floor too, on the ONE
     control that is the whole point of every screen. audit.js caught it
     the first time an orange button was drawn.
     The warm colours are untouchable to the byte (desk-ui-v2/CONTRACT.md
     and the design doc both), so the fix is the ink, not the ground:
     --gray-80 on --cheek measures 6.00:1. It also reads as MORE
     press-this, not less, because it is the highest-contrast thing on
     the screen — which is exactly what the one action should be. */
  --ink-on-cheek: var(--gray-80);  /* 6.0:1 on --cheek. measured */

  /* ── lines ─────────────────────────────────────────────────────────── */
  --line:       var(--gray-20);
  --line-firm:  var(--gray-30);

  /* ── the three verdict colours. NOT signals: they report a fact that
     has already happened, they never ask for anything. That is why they
     may exist beside the two warm signals without competing with them. */
  --yes:        #15803D;   /*  5.1:1 on white. it happened.       */
  --yes-ground: #F0FDF4;
  --yes-edge:   #BBF7D0;
  --no:         #B4232A;   /*  6.4:1 on white. it did not.        */
  --no-ground:  #FEF2F2;
  --no-edge:    #FBD5D5;

  /* the second seat's mark. Teal, so two people are told apart at 20px
     without either of them borrowing indigo or a warm signal. */
  --seat-2:     #0E7490;

  /* ── shadow. Three, and no more. A fourth is decoration ───────────── */
  /* ⚠ THESE THREE CARRY THE v4 MOCKUP'S VALUES, and they are the only
     tokens in this file whose value changed between v3 and v4. See §1b. */
  /* ⚠ SOFTENED 2026-09-07 WITH THE GROUNDS, NOT SEPARATELY. These were
     cut against a mid-grey backdrop. On a near-white one the same
     opacities read as dirt under every card, so each drop lost about a
     third of its weight and gained a little blur. The SHAPE of the
     system is unchanged: three lifts, and a fourth would be
     decoration. */
  --lift-1: 0 1px 2px rgba(27, 29, 40, .03), 0 3px 12px rgba(27, 29, 40, .04);
  --lift-2: 0 1px 2px rgba(27, 29, 40, .04), 0 8px 20px rgba(27, 29, 40, .06);
  --lift-3: 0 16px 40px rgba(27, 29, 40, .11), 0 2px 8px rgba(27, 29, 40, .04);
  --scrim:  rgba(15, 23, 42, .34);
  --glaze:  rgba(255, 255, 255, .94);   /* the plate a photo control sits on */
  --glaze-edge: rgba(15, 23, 42, .09);


  /* =================================================================
     SPACE. A 4px scale, and every value in this file is on it.

     ⚠ THIS IS THE ONE PLACE v3 DELIBERATELY DOES NOT COPY THE MOCKUP.
     The approved mockup carries 9px, 11px, 13px and 15px paddings side
     by side with 8, 10, 12 and 16. Nothing is wrong with any single one
     of them; what is wrong is that there is no answer to "how much
     space goes here", so the next person guesses again and the screens
     drift apart by two pixels at a time. The visual result at these
     sizes is within a pixel of the mockup.
     ================================================================= */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  28px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* corners, also on a scale */
  --r-1:  6px;
  --r-2:  8px;
  --r-3: 10px;
  --r-4: 12px;
  --r-5: 16px;
  --r-pill: 999px;


  /* =================================================================
     TYPE. Manrope, and the tracking is NOT the old face's.
                                                    changed 2026-09-07

     The locked look (`unitech-program/mockups-2026-09-06/LOCKED-*.png`,
     and §0 of the makeover spec) sets Manrope at 400 to 600, big
     numbers at 300, body 14, labels 12. Plus Jakarta Sans is gone.

     ★★ A CJK FACE IS IN THE STACK AND IT IS NOT DECORATION. This desk is
     being built to read Chinese factory pages and to print Chinese
     company names beside their English ones. With no CJK family named,
     those characters fall through every Latin family in the list to
     whatever the machine happens to have, and on a machine that has
     none the answer is tofu -- a name rendered as empty boxes is a name
     nobody can check against the page it came from.
     `test/desk-look.test.ts` measures that a known Chinese string is
     actually DRAWN by Noto Sans SC, not merely that it is named: the
     same string is measured again with that family taken out of the
     stack and the two widths must differ.

     ⚠ EVERY FACE ENDS IN A GENERIC FAMILY. A stack whose last hope is a
     named font has no fallback at all. Both do, and the test asserts it.

     ⚠ THE TRACKING MOVED WITH THE FACE, ON PURPOSE. The negative values
     below were cut for Plus Jakarta Sans, which is drawn wide and needs
     pulling in. Manrope is already tight, so the same numbers over-set
     it -- and letter-spacing is an ABSOLUTE length that INHERITS, so an
     over-tight display value is inherited by every small run nested
     inside a figure and eats the spaces between its words. This desk
     has already shipped that bug once, live, on the line saying where a
     rate came from. Each display value below is about a third smaller
     than the one it replaces; the small sizes were already at zero and
     stay there. `look-probe.js` walks every screen for a run at 14px or
     less tracking tighter than a tenth of its own size, and the test
     refuses a single one.

     ⚠ The webfont is loaded from Google in index.html. If it does not
     arrive the stack below carries the page; it will not look the same
     and it will still work. Never make a fact depend on the font.
     ================================================================= */
  --face: 'Manrope', 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system,
          'Segoe UI', Roboto, sans-serif;
  --face-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-screen:  26px;   /* the screen's own name          */ --tr-screen: -.60px;
  --t-lede:    17px;   /* the one sentence at the top    */ --tr-lede:   -.20px;
  --t-head:    16px;   /* a panel heading                */ --tr-head:   -.30px;
  --t-body:    14px;   /* prose. the locked look says 14 */ --tr-body:   -.05px;
  --t-ui:      14px;   /* the default. controls, cells   */ --tr-ui:     -.10px;
  --t-cell:    13px;   /* dense table text               */ --tr-cell:   -.10px;
  --t-small:   12px;   /* metadata under a thing         */ --tr-small:   0px;
  --t-tiny:    11px;   /* chips, tallies                 */ --tr-tiny:    0px;
  --t-caps:    10px;   /* the uppercase section labels   */ --tr-caps:  .12em;


  /* =================================================================
     §1b  THE PLATE.                                    added 2026-09-02

     Everything below is measured off the approved v4 mockup
     (`.compare-tmp/desk-v4.src.html`). Nothing above it moved: the
     greys, the two warm signals, the verdicts, the space scale and the
     type scale are byte-identical to v3.

     ⚠ THREE TOKENS DID MOVE, AND THE PLAN SAYS SO IN ITS OWN TABLE.
     `--lift-1`, `--lift-2` and `--lift-3` carry the mockup's values
     now. The build plan's prose says "existing tokens keep their exact
     values" and its very next table says `--lift-1` "replaces the
     current value" — a contradiction, resolved in favour of the table,
     because the plate's whole look is depth from shadow rather than
     from hairlines and a wave-2 builder reading the plan will reach for
     `--lift-2` expecting the new one. No colour moved. Every screen
     built on v3 renders with a softer shadow and nothing else.
     ================================================================= */

  /* ── the four grounds. Depth is the STACK, and there are four of them
     now: the backdrop the plate floats on, the plate, a section inside
     it, and a card. Borders stop doing the work. --ground-page and
     --ground-rail survive untouched because seven built screens are
     standing on them. */
  /* ⚠⚠ ALL THREE MOVED ON 2026-09-07 AND THEY MOVED TOGETHER. The old
     set was a mid-grey backdrop (#9AA3B2) with the plate floating on
     it: a dark frame around a light desk. The locked look has no dark
     frame at all -- a near-white cool ground with a faint blue-lavender
     wash, the plate a shade lighter than it, and panels made of WHITE
     GLASS rather than of a grey band.

     They cannot be changed one at a time. The panel is only readable as
     a panel because the plate is a shade below it; the plate is only
     readable as a plate because the outer ground is a shade below THAT.
     Move one and the other two stop meaning anything. Three shades
     inside seven points of lightness is the whole look, and it is why
     the shadows below got softer in the same edit: a drop shadow cut
     for a mid-grey backdrop is a smudge on a white one. */
  --ground-outer: #F3F4F8;   /* laptop only. On a phone the plate fills the screen */
  --ground-plate: #FBFCFE;
  --ground-panel: rgba(255, 255, 255, .80);   /* the top bar, a section, a helper panel */

  /* the faint blue-lavender wash across the outer ground. Two stops,
     both nearly transparent: it is a temperature, not a gradient
     anybody should be able to point at. */
  --wash-a: rgba(199, 184, 255, .26);
  --wash-b: rgba(188, 217, 255, .22);

  /* ⚠ MEASURED, because --ground-panel is a THIRD ground and the
     tighter one decides. --ink-quiet used to clear 4.5 here by 0.07 and
     that is why the token moved on 2026-09-03.
     ⚠⚠ AND THE PANEL IS NOT A COLOUR ANY MORE, IT IS WHITE GLASS, so
     "the panel's contrast" is no longer a number that can be worked out
     from this file: it depends on what is scrolled underneath it. Over
     the plate it composites to about #FEFEFF and --ink-quiet measures
     5.0:1 there, which is BETTER than the grey band it replaces -- but
     the rule that decides it is audit.js measuring the real composite
     behind each real word on each real screen, not this comment.
     Nothing quieter than --ink-quiet may carry a word on it. */

  /* ── the stage ramp. ONE HUE, darker is further along.
     ⚠ INK, NOT WHITE, ON s1..s5. The mockup sets white on --st5 and
     that measures 2.98:1 — it fails 4.5 and fails the 3:1 large floor
     too. --ink on --st5 is 4.90:1 and on --st4 is 7.34:1. --st6 IS
     --brand to the byte, so it takes --ink-on-brand (6.29:1) exactly as
     the rail's current item does. Measured, not guessed. */
  --st1: #EEF0FE;
  --st2: #DDE1FD;
  --st3: #C7CDFB;
  --st4: #A5B4FC;
  --st5: #818CF8;
  --st6: #4F46E5;
  --ink-on-st:  var(--ink);          /* s1..s5 */
  --ink-on-st6: var(--ink-on-brand); /* s6 only */

  /* ── the monogram tints. Six ground/ink pairs, picked by a hash of
     the name, so a company keeps its colour on every screen and every
     reload. Every pair measured: 8.4, 7.0, 8.2, 7.5, 8.1, 6.7 to 1. */
  --mono-a: #E8ECFF; --mono-a-ink: #3730A3;
  --mono-b: #E1F1F4; --mono-b-ink: #0E7490;
  --mono-c: #F3E8FF; --mono-c-ink: #6B21A8;
  --mono-d: #FDF0E1; --mono-d-ink: #7A4310;
  --mono-e: #E6F4EA; --mono-e-ink: #166534;
  --mono-f: #FCE7F3; --mono-f-ink: #9D174D;

  /* ── the ONE glass thing, and the phone's tab strip.
     ⚠ NEVER UNDER TEXT THAT IS READ AT --ink-quiet. Composited over the
     plate this ground measured 4.31:1 against the old --ink-quiet and
     failed outright; against the 2026-09-03 value it measures 4.51:1,
     which is 0.01 of headroom over a composite that changes with
     whatever is scrolled underneath it. THE RULE DID NOT RELAX.
     --ink-body is 6.31:1 and --ink is 12.2:1. `glass cannot make a
     plane`: it goes on things that float and nowhere else. */
  /* ⚠ THE GLASS IS WHITE NOW, NOT LAVENDER. The locked look builds every
     floating thing out of "white at 80 percent" over the plate, and the
     lavender tint was the old palette's way of keeping glass visible
     against a grey backdrop it no longer sits on. The composite over
     the plate is LIGHTER than the old one, so every word already
     cleared on it clears by more; the rule below did not relax, it
     simply got easier to keep. */
  --glass:      rgba(255, 255, 255, .80);
  --glass-edge: rgba(255, 255, 255, .90);

  /* ── the plate's bezel and its drop. One shadow, and it is the only
     thing in the file that draws two effects at once. */
  /* ⚠ THE 7px INSET BEZEL WAS A DEVICE FOR A DARK BACKDROP and it is a
     1px white inner edge now, which is what the locked look asks every
     surface to carry. The drop went from .28 to .07: at .28 on a
     near-white ground the plate looked bruised rather than lifted. */
  --plate-shadow: inset 0 0 0 1px rgba(255, 255, 255, .90),
                  0 24px 60px rgba(27, 29, 40, .07),
                  0 2px 8px rgba(27, 29, 40, .04);

  /* ── corners, named for the thing rather than for a step, because the
     plate's scale is not the 4px card scale. --r-pill is above. */
  /* ⚠ THE LOCKED LOOK SAYS "one 32 px rounded container" AND "20 px"
     PANELS, so --r-plate and --r-panel take those two numbers exactly.
     --r-app follows the plate rather than keeping a number of its own:
     .desk is the backdrop, and a backdrop whose corner is rounder than
     the thing sitting on it draws a shape nobody meant to draw. */
  --r-app:   32px;
  --r-plate: 32px;
  --r-panel: 20px;
  --r-card:  16px;
  --r-bar:   15px;

  /* ── type the plate adds. The v3 scale is untouched. */
  --t-h2:   24px;  --tr-h2:   -.55px;   /* a panel's own name        */
  --t-h3:   18px;  --tr-h3:   -.30px;   /* a section inside one      */
  --t-hero: 36px;  --tr-hero: -1.0px;   /* a tile's figure           */
}

/* ⚠ NO DARK VARIANT, ON PURPOSE. The owner chose light against the
   existing dark grey desk, with five light reference dashboards in hand
   (design doc, "The look"). A dark mode nobody asked for is a second
   palette to keep the three-colour law true in, and it would be checked
   by nobody. `color-scheme: light` tells the browser to stop tinting
   form controls and scrollbars for a theme this page does not have. */
:root { color-scheme: light; }


/* =====================================================================
   §2  THE DOCUMENT
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ground-page);
  color: var(--ink-body);
  font-family: var(--face);
  font-size: var(--t-ui);
  line-height: 1.5;
  letter-spacing: var(--tr-ui);
  -webkit-font-smoothing: antialiased;
  /* ⚠ the body never scrolls sideways. Wide things scroll inside their
     own box (§6, `.wide`). audit.js asserts this at 375px and has a
     control that proves the assertion can fail. */
  overflow-x: hidden;
}

/* the shell mounts here. It is the whole viewport, and the rail and the
   main area divide it between them; nothing outside it scrolls. */
#app { height: 100%; min-height: 0; }

/* one visible focus ring, everywhere, and it is the brand's.
   :focus-visible only, so a mouse click does not draw one. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* ── the icon set is STROKED now, and this is the one rule that says so.
   ⚠⚠ `fill: none !important` IS A COMPATIBILITY SHIM AND IT IS DELIBERATE.
   v3's set was Phosphor's FILLED paths, so twenty-five rules across the
   seven built screens say `svg { fill: currentColor }` or
   `svg { fill: var(--ink-mute) }`. Against a stroked path a fill turns
   every glyph into a blob — silently, with nothing erroring and every
   check green. Those screens are re-cut in wave 2; until then this rule
   keeps them legible. It is scoped to `[data-icon]`, which UI.icon()
   stamps and nothing else carries, so the sparkline, the ring and the
   waffle are untouched.
   ⚠ IT ALSO MEANS A SCREEN'S `fill: var(--ink-mute)` NO LONGER COLOURS
   ITS ICON: stroke follows `color`, which is darker, so the icon gets
   MORE contrast, never less. Nothing is made harder to see. */
svg[data-icon] {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Motion is opt-out everywhere it exists. There are three animations in
   this file and all three stop here. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* =====================================================================
   §3  THE FRAME. shell.js renders exactly this and nothing else.

   ┌ .desk ─────────────────────────────────────────────────────────┐
   │  the outer ground, and the plate floating on it                │
   │  ┌ .plate ──────────────────────────────────────────────────┐  │
   │  │ .rail │ .main = .topbar + .mainscroll                    │  │
   │  └──────────────────────────────────────────────────────────┘  │
   └────────────────────────────────────────────────────────────────┘

   ⚠ THE CLASS NAMES `.nav` AND `.tally` SURVIVED THE REDRAW ON PURPOSE.
   The rail item is a 46px round icon button now and it is still
   `.nav[data-go]` carrying `.tally`, because audit.js's railIsOneList,
   railCarriesItsNumbers and every fixture's own rail reader are written
   against those two names. Renaming them to the mockup's `.rbtn` would
   have been a cosmetic change that quietly blinded three checks.
   ===================================================================== */

.desk {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  /* the faint blue-lavender wash of the locked look. Two soft radial
     stops over the flat ground, top-left cool violet and top-right
     cool blue, both nearly transparent. The flat colour is listed last
     so a browser that cannot paint the gradients still gets the ground
     rather than nothing. */
  background:
    radial-gradient(1200px 800px at 12% -10%, var(--wash-a), transparent 62%),
    radial-gradient(1000px 700px at 92% 4%, var(--wash-b), transparent 58%),
    var(--ground-outer);
  padding: var(--sp-5);
  border-radius: var(--r-app);
}

.plate {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--ground-plate);
  border-radius: var(--r-plate);
  box-shadow: var(--plate-shadow);
  padding: var(--sp-4);
}

/* ── the icon rail ─────────────────────────────────────────────────
   Numbers on the icons, words on hover. The word is a real tip on the
   dark ground, not a `title` attribute: a title takes a second to
   appear and cannot be styled, and the rail is the one place a person
   is scanning rather than reading. */
.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-2) 0 var(--sp-1);
  /* ⚠ NOT `overflow-y: auto`. One axis `visible` and the other not makes
     the browser compute BOTH to auto, and the hover tips are absolutely
     positioned children that stick 100px out of a 76px column — so the
     rail grew a horizontal scrollbar of its own, under the nine icons,
     on a page with nothing to scroll. Nine fixed items, a mark and a
     seat come to about 630px; the rail does not need to scroll. */
  overflow: visible;
}

.brandrow { display: block; margin-bottom: var(--sp-3); }
/* ⚠ GLASS, NOT WHITE, ON THE MARK AND ON EVERY RAIL BUTTON. The locked
   look builds the rail out of round glass buttons on the plate; the old
   solid white read as nine cards stacked in a column. `--glass` is
   white at 80 percent, so on the plate the difference is a few points
   of lightness and a real blur behind it -- and the 1px white edge is
   what actually draws the button, exactly as the spec says. */
.mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-1);
  display: grid; place-items: center;
}
.mark svg { width: 20px; height: 20px; color: var(--brand); }
/* the words beside the mark belong to a 232px rail, not to a 76px one */
.brandtxt { display: none; }
.navlabel { display: none; }

.nav {
  position: relative;
  width: 46px; height: 46px; flex: none;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-1);
  border: 1px solid transparent;
  display: grid; place-items: center;
  color: var(--ink-body); font: inherit; cursor: pointer; padding: 0;
}
.nav:hover { border-color: var(--brand-edge); }
.nav svg { width: 19px; height: 19px; }
/* the label is the hover word. It is IN the button, so it is the
   accessible name as well as the tip and nothing is announced twice. */
.nav > span {
  position: absolute; left: 56px; top: 50%; transform: translateY(-50%);
  background: var(--gray-80); color: var(--ink-on-brand);
  font-size: var(--t-small); font-weight: 600;
  padding: 5px var(--sp-2); border-radius: var(--r-2);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .12s; z-index: 40;
}
.nav:hover > span, .nav:focus-visible > span { opacity: 1; }
/* ★ THE SELECTED ONE IS RINGED, which is the locked look's word for it
   and not a synonym for "filled". The wash and the ring together are
   what say WHERE YOU ARE; the ring alone would be lost against the
   glass and the fill alone reads as a pressed button. */
.nav[aria-current] {
  background: var(--brand-wash); border-color: var(--brand-edge); color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring), inset 0 0 0 1px var(--glass-edge), var(--lift-1);
}

/* a tally is a COUNT SOMETHING PUBLISHED. The rail never invents one and
   never shows a zero: no tally at all is the honest look of "nobody has
   told me". Shell.tally() is the only way one appears. It sits on the
   icon's shoulder now: dark ground, white figure. */
.tally {
  position: absolute; top: -5px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--gray-80); color: var(--ink-on-brand);
  font-size: var(--t-tiny); font-weight: 700; font-style: normal;
  display: grid; place-items: center; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tally.warm { background: var(--cheek); color: var(--ink-on-cheek); }
/* ★★ THE WARM COUNT SURVIVES BEING LOOKED AT. Structure never overrules
   a signal, so the current item's own dressing does not repaint it. */
.nav[aria-current] .tally { background: var(--gray-80); color: var(--ink-on-brand); }
.nav[aria-current] .tally.warm { background: var(--cheek); color: var(--ink-on-cheek); }

.railfoot {
  margin-top: auto; padding-top: var(--sp-3);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.who { position: relative; display: block; }
.avi {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--brand); color: var(--ink-on-brand);
  display: grid; place-items: center; font-size: var(--t-cell); font-weight: 800;
  box-shadow: var(--lift-1);
}
.avi.two { background: var(--seat-2); }
/* the seat's name and address are the hover word, on the same dark tip
   as the rail's, because a 76px column has no room for a line of text
   and dropping it would leave an unlabelled circle claiming to be a
   person. */
.who > div {
  position: absolute; left: 50px; bottom: 0;
  background: var(--gray-80); color: var(--ink-on-brand);
  padding: var(--sp-2); border-radius: var(--r-2);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .12s; z-index: 40;
}
.who:hover > div, .who:focus-within > div { opacity: 1; }
.who > div > b { display: block; font-size: var(--t-small); font-weight: 700; }
.who > div > span { display: block; font-size: var(--t-tiny); }
.who .none { font-size: var(--t-tiny); }
#signout { width: 34px; height: 34px; border-radius: var(--r-pill); }

/* ── the main column ───────────────────────────────────────────────
   A flex column: the top bar keeps its place and the screen scrolls
   under it. `bare` is the chrome:false case, where the screen owns the
   whole area and the shell adds nothing — the reply view and the chat. */
.main {
  display: flex; flex-direction: column; gap: var(--sp-3);
  min-width: 0; min-height: 0; overflow: hidden;
  padding-left: var(--sp-2);
}
.main[data-chrome="bare"] { overflow-y: auto; overflow-x: hidden; }
.mainscroll {
  flex: 1; min-height: 0; min-width: 0;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}

/* ── the top bar ───────────────────────────────────────────────────
   Tabs, then the screen's one action if it declared one, then the seats.
   ⚠ IT IS INSIDE .main, WHICH IS WHERE audit.js COUNTS ORANGE. So the
   screen's action in the bar is counted exactly like one in the body,
   and a warm tab count may NOT be --cheek. See §18 of the contract. */
/* ⚠ THE BAR IS GLASS NOW AND ITS INNER EDGE IS DOING THE WORK. As a
   grey band it was drawn by its FILL; as white glass over a plate only
   a shade below it, the fill is nearly invisible and the 1px white edge
   plus the soft lift are what make it a surface. Take the edge away and
   the tabs float on nothing -- which is a real thing to get wrong,
   because it still looks tidy. */
.topbar {
  background: var(--ground-panel);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-1);
  border-radius: var(--r-panel);
  padding: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2);
  flex: none; min-width: 0;
}
/* ⚠ AN AREA WITH NO TABS DOES NOT GET AN EMPTY PANEL. A 58px band of
   ground with two initials in the corner reads as a control strip that
   has failed to load. With no tabs the bar is just the row of marks, on
   the plate, and it comes back the moment a screen declares tabs or an
   action. shell.js stamps the count; nothing here counts children. */
.topbar[data-tabs="0"] { background: none; box-shadow: none; backdrop-filter: none;
                         -webkit-backdrop-filter: none; padding: var(--sp-1) var(--sp-1) 0; }
.topbar .sp { flex: 1; }
.tabs { display: flex; gap: var(--sp-1); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-pill);
  background: var(--ground-card); box-shadow: var(--lift-1);
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: var(--t-cell); font-weight: 600;
  color: var(--ink-body); white-space: nowrap; flex: none;
}
.tab:hover { border-color: var(--brand-edge); }
.tab svg { width: 16px; height: 16px; }
.tab[aria-selected="true"] {
  color: var(--ink); border-color: var(--brand-edge);
  box-shadow: 0 0 0 3px var(--brand-ring), var(--lift-2);
}
/* ⚠ A TAB'S WARM COUNT IS THE DILUTE CHEEK, NOT THE CHEEK. --cheek here
   would be a second orange inside .main and oneAction would fail the
   run — the same trap the tracker's `bad` cell fell into on 2026-09-02.
   The rail's badge keeps the full signal because the rail is not the
   screen. Crest is left alone: yellow is not counted as an action. */
.tab .n {
  font-size: var(--t-tiny); font-weight: 700; border-radius: var(--r-pill);
  padding: 1px 7px; background: var(--line); color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}
.tab .n.warm  { background: var(--cheek-ground); color: var(--cheek-ink); box-shadow: inset 0 0 0 1px var(--cheek-edge); }
.tab .n.crest { background: var(--crest); color: var(--ink-on-cheek); }

.faces {
  display: flex; align-items: center; padding: var(--sp-1);
  background: var(--ground-card); border-radius: var(--r-pill);
  box-shadow: var(--lift-1); flex: none;
}
.faces .f {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: var(--t-tiny); font-weight: 800;
  color: var(--ink-on-brand); border: 2px solid var(--ground-card); margin-left: -8px;
}
.faces .f:first-child { margin-left: 0; }
.faces .f.y { background: var(--brand); }
.faces .f.a { background: var(--seat-2); }

/* ── the screen's own heading, under the bar ───────────────────────── */
.pad { padding: var(--sp-3) var(--sp-2) var(--sp-6); min-width: 0; }

/* ⚠ THE CRUMB WENT TO CAPS WHEN THE TITLE CAME DOWN, and it is the same
   edit, not a second one. At 12px/600 under a 26px title the two read as
   a label and a heading. Under an 18px title they are six pixels apart
   and read as two headings, one of them small. `--t-caps` is the shape
   this system already uses for a quiet label above a thing (`.tile>.cap`
   is the same three lines), so the crumb takes it rather than inventing
   a fourth size. */
.crumb {
  font-size: var(--t-caps); font-weight: 700; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--ink-quiet); margin-bottom: var(--sp-2);
}
/* ★ THE SCREEN'S NAME IS A LABEL THE RAIL ALREADY CARRIES, so it stopped
   being the biggest thing on the page.

   Measured 2026-09-04 across 38 tabs at 1440x900: on 25 of them the
   largest text on the screen was the screen's own NAME, not a fact — the
   word "Today", "Live work", "Parts", "Sourcing", "Who is doing what" or
   "What is owed", every one of which the rail said before the click. At
   26px/800 it beat every figure on the desk except the four widest tiles.

   ⚠ IT IS `--t-h3`, NOT A NEW NUMBER, and `--t-screen` is deliberately
   left where it is: `screen-reply.js` uses that token for `h2.who`, the
   name of the person you are answering, on a screen that draws no
   `h2.screen` at all. Moving the token's value would have moved that
   heading too, silently, on a screen nobody was looking at.

   To put it back: `var(--t-screen)` / `var(--tr-screen)` and weight 800,
   plus the phone override that used to sit in §3's media query. */
/* ⚠ 600, NOT 700. The locked look sets Manrope from 400 to 600 and
   nothing heavier, and Manrope's 600 is already darker on the page than
   Plus Jakarta Sans's 700 was. The SIZE is untouched: it is --t-h3 by a
   measurement taken on 2026-09-04 (on 25 of 38 tabs the largest text on
   the screen was the screen's own name, which the rail had already
   said) and that decision is not this pass's to reopen. */
h2.screen {
  margin: 0 0 var(--sp-1); font-size: var(--t-h3); font-weight: 600;
  color: var(--ink); letter-spacing: var(--tr-h3);
}
/* the instrument: ONE SENTENCE. Not four cards of invented percentages. */
.lede {
  margin: 0 0 var(--sp-5); font-size: var(--t-lede); color: var(--ink-body);
  line-height: 1.5; letter-spacing: var(--tr-lede); max-width: 62ch;
}
.lede b { color: var(--ink); font-weight: 800; }

.sechead { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0 0 var(--sp-3); flex-wrap: wrap; }
* + .sechead { margin-top: var(--sp-7); }
.sechead h3 { margin: 0; font-size: var(--t-ui); font-weight: 800; color: var(--ink); letter-spacing: -.35px; }
.sechead .n { font-size: var(--t-small); font-weight: 700; color: var(--ink-quiet); font-variant-numeric: tabular-nums; }
.sechead .hint { font-size: var(--t-small); color: var(--ink-quiet); margin-left: auto; }


/* =====================================================================
   §3b  THE PHONE. Not the laptop squeezed.

   The plate fills the viewport, the outer ground goes, and the rail
   becomes a five-tab glass strip at the foot. The other four areas are
   ONE SWIPE RIGHT, never dropped: `flex: 0 0 20%` is what makes the
   strip read as five, with the sixth peeking in at the edge.
   shell.js sets --nav-order from the one rail array; nothing here names
   a screen.

   ⚠ THE STRIP IS IN FLOW, NOT FLOATING. The mockup draws it over the
   list. A floating bar sits on top of whatever the last row is, and the
   audit's overflow walk cannot see a row it has covered. In flow, the
   list ends where the strip starts.
   ===================================================================== */

@media (max-width: 900px) {
  .desk { padding: 0; border-radius: 0; }
  .plate {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 0; box-shadow: none; padding: var(--sp-2);
  }

  .rail {
    grid-row: 2;
    flex-direction: row; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
    margin-top: var(--sp-2);
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    backdrop-filter: blur(12px) saturate(1.6);
    border: 1px solid var(--glass-edge);
    border-radius: var(--r-panel);
    box-shadow: var(--lift-3);
  }
  .rail .brandrow, .rail .railfoot { display: none; }

  /* ═══ THE PHONE BAR: FIVE, AND THE REST BEHIND MORE (plan item 5) ══════════════════════
     ★★ WHAT THIS REPLACES AND WHY. The bar used to hold all nine areas and scroll sideways.
     Nine at a 68px minimum is 612px of rail on a 375px phone, so four of them lived off the
     right-hand edge: Catalogue, People, Getting it there and Tasks. A screen you cannot see is
     a screen you do not know is there, and nothing on the bar said there was more.

     Five carry `.onphone`, stamped by shell.js from the `phone` rank in its one RAIL array, and
     a sixth button opens the rest. There is no list of names here: an area added tomorrow with
     no phone rank lands behind More by itself.

     ⚠ THE BAR NO LONGER SCROLLS SIDEWAYS, IT WRAPS. Six buttons at a sixth each fit; opening
     More lets the rail take a second row. A bar that both scrolled and wrapped would put a row
     half off the screen. */
  .rail { flex-wrap: wrap; overflow-x: hidden; }
  .nav { flex: 0 0 calc(100% / 6); min-width: 0; }
  .rail:not(.is-open) .nav[data-go]:not(.onphone) { display: none; }
  .rail .nav.more { order: 6; }
  .rail.is-open .nav.more { order: 99; }
  /* ⚠ THE WORD CHANGES WHEN IT IS OPEN. A control that says "More" while the thing is already
     more is a control that reads as broken the second time it is pressed.
     ★ IT REPLACES THE WORD RATHER THAN ADDING TO IT: "More (close)" in a 62px cell came out as
     "More (clos...", which is a label that has to be guessed at. */
  .rail.is-open .nav.more .nvw { font-size: 0; }
  .rail.is-open .nav.more .nvw::after {
    content: "Close"; font-size: var(--t-caps); font-weight: 600;
  }
  /* ⚠ AND THE OPEN BAR GIVES ITS LABELS ROOM. Nine buttons at a sixth each is 62px, where
     "Getting it there" is an ellipsis; a quarter each is 88px and it reads. The closed bar
     keeps the sixth, because six across is what makes it fit without scrolling at all. */
  .rail.is-open .nav { flex: 0 0 25%; }

  .nav {
    order: var(--nav-order, 99);
    width: auto; height: auto; flex: 0 0 20%; min-width: 68px;
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-1);
    background: none; box-shadow: none; border-radius: var(--r-3);
    /* ⚠ --ink-body, NOT --ink-quiet. Composited over the plate this
       glass ground measures 4.31:1 against --ink-quiet and fails. */
    color: var(--ink-body);
  }
  .nav svg { width: 20px; height: 20px; }
  /* on a phone the hover word IS the label, in place, because hover does
     not exist and an unlabelled row of icons is a guess */
  .nav > span {
    position: static; transform: none; opacity: 1; background: none;
    color: inherit; padding: 0; border-radius: 0;
    font-size: var(--t-caps); font-weight: 600; letter-spacing: 0;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  .nav[aria-current] { background: var(--brand-wash); border-color: transparent; box-shadow: none; }
  .tally { top: 2px; right: calc(50% - 24px); font-size: 9.5px; min-width: 16px; height: 16px; }

  .main { padding-left: 0; }
  .topbar { flex-wrap: wrap; border-radius: var(--r-panel); }
  .tabs { order: 3; flex-basis: 100%; }
  .pad { padding: var(--sp-3) var(--sp-1) var(--sp-5); }
  /* ⚠ THE `h2.screen { font-size: 23px }` THAT USED TO SIT HERE IS GONE,
     AND IT HAD TO GO IN THE SAME EDIT. Measured 2026-09-04 at a real
     375x812: the phone override took the title to 23px while the section
     heading beside it has no phone override and stays at 24px, so the
     screen's own name rendered ONE PIXEL SMALLER than a heading under it
     — the flattest top-two gap measured anywhere, 1.04. With the laptop
     title now at 18px, leaving 23px here would have given the phone a
     BIGGER title than the laptop. One size on both. */
  .lede { font-size: 15.5px; margin-bottom: var(--sp-4); }
}


/* =====================================================================
   §4  HER. The portrait, and the chip that goes BESIDE it.

   ★★ BINDING. These are photographs of a real cockatiel who died. The
   portrait is never dimmed, never greyed, never desaturated, never
   swapped for a glyph, and never used as a loading state. Whatever the
   system is doing, her face is at full strength and the STATUS goes on
   a chip next to it. Crest up = she has something to say. Crest flat =
   she is quiet. That is the entire vocabulary.
   ===================================================================== */

.her { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.herface {
  border-radius: var(--r-pill); border: 1.5px solid var(--brand-hair);
  overflow: hidden; flex: none; background: var(--ground-card); padding: 0;
  width: 30px; height: 30px;
}
.herface img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 54% 26%;
  /* ⚠ no filter, no opacity, no mix-blend-mode. Ever. */
}
.herface.lg { width: 44px; height: 44px; }
.herface.sm { width: 24px; height: 24px; border-width: 1px; }
.herchip {
  font-size: var(--t-tiny); font-weight: 700; color: var(--ink-quiet);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.herchip.saying { color: var(--crest-ink); }


/* =====================================================================
   §5  THE COMPONENTS ui.js RENDERS
   ===================================================================== */

/* ── money. A figure is a currency AND an amount, not one string ─────
   "="  the bank actually did it. A fact off a statement.
   "≈"  nothing moved. An estimate at a dated reference rate.
   A banked margin is only ever reported from an "=". */
.cur { font-size: .76em; font-weight: 700; color: var(--ink-quiet); margin-right: var(--sp-1); letter-spacing: .02em; }
.fx { display: inline-block; min-width: 0; }
.fx .amt { display: block; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ⚠⚠ THE MIRROR STATES ITS OWN TRACKING, AND THAT IS NOT TIDINESS.
   `letter-spacing` INHERITS and is an ABSOLUTE length. A hero figure tracks at
   -1.9px because it is 44px display type; this line is 12px and its <em> is 11px,
   and both inherit that same -1.9px. A space in Plus Jakarta Sans at 12px is about
   3px wide, so -1.9px eats most of it and the words close up.

   Found on the LIVE desk on 2026-09-03, by the owner, in the one place it does the
   most damage: the rate's own provenance. "Bank Negara Malaysia middle rate (1700
   session), 2026-09-03" rendered as one unbroken word. The figure was right, the
   source was right, and the line that says where a number came from was unreadable
   -- which is the whole point of printing it.

   ★ It is a CLASS, not an instance: any small run nested inside a figure inherits
   display tracking. `.unit` above already carries its own -.3px for exactly this
   reason and nobody generalised it. A run at 11-14px states its own tracking. */
.inmyr { display: block; font-size: var(--t-small); white-space: normal; font-variant-numeric: tabular-nums; margin-top: 1px; letter-spacing: var(--tr-small); line-height: 1.35; }
.inmyr .mval { white-space: nowrap; }
.tile > .fig .inmyr, .tile > .fig small, .tile > .fig em { letter-spacing: var(--tr-small); }
.inmyr .sign { font-weight: 800; margin-right: 3px; }
.inmyr.settled { color: var(--ink-body); }
.inmyr.settled .sign { color: var(--yes); }
.inmyr.est { color: var(--ink-quiet); }
.inmyr.est .sign { color: var(--ink-quiet); }
.inmyr em { font-style: normal; color: var(--ink-quiet); font-weight: 500; margin-left: var(--sp-1); font-size: var(--t-tiny); letter-spacing: var(--tr-tiny); }

/* ── nothing(). The empty-state vocabulary ─────────────────────────────
   NEVER A DASH, NEVER A ZERO, NEVER A BLANK. A zero and an unknown are
   different facts and the product's credibility rests on the difference
   being visible without being explained. */
.none { color: var(--ink-quiet); font-weight: 500; font-style: normal; }
.emptyrow { padding: var(--sp-6) var(--sp-5); text-align: center; color: var(--ink-quiet); font-size: var(--t-cell); }
.emptyrow b { display: block; color: var(--ink); font-size: var(--t-ui); font-weight: 700; margin-bottom: var(--sp-1); }

/* ── stage(). ONE CONTINUOUS TRACK, not six separate dashes ───────────
   A name alone is not a measure, so the name carries a position under
   it. `gap: 0` and one shared ground: six loose dashes read as six
   things, and this is one thing at a point along itself. */
.stg { display: inline-flex; flex-direction: column; gap: var(--sp-1); min-width: 96px; }
.stg b { font-size: var(--t-small); font-weight: 700; color: var(--ink); letter-spacing: var(--tr-cell); }
.pips { display: flex; gap: 0; border-radius: 3px; overflow: hidden; background: var(--line); }
.pips i { height: 5px; flex: 1; background: transparent; }
.pips i.lit { background: var(--brand); }
.pips.lost i.lit { background: var(--ink-mute); }
.stg.lost b { color: var(--ink-quiet); }

/* ── verbs(). The four-verb row menu ─────────────────────────────────── */
.menucell { position: relative; width: 44px; }
.dots {
  width: 32px; height: 32px; border-radius: var(--r-1);
  border: 1px solid transparent; background: none;
  display: grid; place-items: center; cursor: pointer; margin-left: auto; padding: 0;
}
.dots:hover, .dots[aria-expanded="true"] { border-color: var(--line); background: var(--ground-card); }
.dots svg { width: 16px; height: 16px; fill: var(--ink-mute); }
/* ⚠ FIXED, AND A CHILD OF <body>. `.tablewrap` scrolls sideways, which
   makes the browser compute its overflow-y to `auto` too, so a menu
   positioned inside the table was clipped on the last row of every
   table — two verbs cut off, no error, no overflow, a clean audit.
   Positioned against the viewport, nothing can clip it. ui.js sets left
   and top, flips it above the button near the bottom of the screen, and
   closes it on any scroll. */
.menu {
  position: fixed; left: 0; top: 0; z-index: 60; width: 232px;
  background: var(--ground-card); border: 1px solid var(--line); border-radius: var(--r-4);
  box-shadow: var(--lift-2); padding: var(--sp-1); text-align: left;
}
.mi {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); cursor: pointer;
  font: inherit; font-size: var(--t-cell); font-weight: 600; color: var(--ink-body);
  letter-spacing: var(--tr-cell); width: 100%; text-align: left; background: none; border: none;
}
.mi:hover { background: var(--ground-sunk); color: var(--ink); }
.mi svg { width: 15px; height: 15px; fill: currentColor; flex: none; opacity: .8; }
.mi.danger { color: var(--no); }
.mi.danger:hover { background: var(--no-ground); }
.mi small { display: block; font-size: var(--t-tiny); color: var(--ink-quiet); font-weight: 500; margin-top: 1px; }
.mi span { min-width: 0; }

/* ⚠ AN UNAVAILABLE VERB HAS TO LOOK UNAVAILABLE AS WELL AS SAY WHY, AND
   IT KEEPS ITS PLACE EITHER WAY. The menu never changes shape under the
   hand: four items, always, in one order — a verb that vanishes when the
   desk will not allow it leaves a person hunting for a control that was
   there a second ago. So it stays, greyed, with the reason underneath.

   ⚠ AND THE REASON NEEDS A LINE OF ITS OWN. `.mi` is a flex row, so an
   appended <small> sat BESIDE the label and squeezed it to nothing. It
   is a DIRECT child of `.mi`, which is what tells it apart from the
   <small> nested inside the deny item's own <span> — that one is part of
   the label and stays where it is.

   FIVE screens each carried these rules privately. The indent lines the
   reason up under the label rather than under the icon, and it is
   derived from the icon rather than picked: 15px of icon, then the row's
   own gap. Both selectors are here because the screens set `disabled`
   AND `aria-disabled`, and a rule that only matched one of them would be
   right on the screens that happened to set that one. */
.mi { flex-wrap: wrap; }
.mi > small { flex: 1 0 100%; margin-left: calc(15px + var(--sp-2)); white-space: normal; line-height: 1.45; }
.mi > small:empty { display: none; }
.mi:disabled, .mi[aria-disabled="true"] { color: var(--ink-quiet); cursor: default; }
.mi:disabled:hover, .mi[aria-disabled="true"]:hover { background: none; color: var(--ink-quiet); }
.mi:disabled svg, .mi[aria-disabled="true"] svg { opacity: .45; }
.msep { height: 1px; background: var(--line); margin: var(--sp-1) var(--sp-2); }


/* =====================================================================
   §6  THE SHARED FURNITURE screens build out of.
   Nothing here is a screen. Everything here is used by more than one.
   ===================================================================== */

/* ── the ONE press-this ──────────────────────────────────────────────
   At most one per screen. shell.js declares it (`data-owes`) rather than
   the audit inferring it from the markup: inferred from "is there an
   orange button", the assertion would agree with the button by
   construction and catch nothing. */
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--cheek); color: var(--ink-on-cheek); border: none; font: inherit;
  font-size: var(--t-cell); font-weight: 700; letter-spacing: var(--tr-cell);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-3); cursor: pointer;
}
.act:hover { filter: brightness(.95); }
/* ⚠ MEASURED, AND THE INK MOVED AGAIN. This was --ink-quiet on --line,
   which is 4.20:1 and does not clear 4.5:1 — on the one control that is
   the whole point of every screen, in the state where a person most
   needs to read WHAT they cannot press yet. --ink-body on --line is
   6.15:1. The grey ground and `cursor: not-allowed` are what say "off";
   illegibility was never doing that job, it was only making the label
   hard to read. Same fix as white-on-cheek, for the same reason. */
.act:disabled { background: var(--line); color: var(--ink-body); cursor: not-allowed; filter: none; }
.act svg { width: 15px; height: 15px; fill: currentColor; }
.act.wide { width: 100%; }

/* everything else you can press. Quiet, and there may be many. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--ground-card); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: var(--t-cell); font-weight: 700; letter-spacing: var(--tr-cell);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-2); cursor: pointer;
}
.btn:hover { border-color: var(--brand-hair); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.iconbtn {
  width: 32px; height: 32px; border-radius: var(--r-2); border: 1px solid var(--line);
  background: var(--ground-card); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0;
}
.iconbtn:hover { border-color: var(--brand-hair); }
.iconbtn svg { width: 16px; height: 16px; fill: var(--ink-body); }

/* ── a WIDE thing scrolls inside its own box. The body never does ───── */
.wide { overflow-x: auto; }

/* ── tables ─────────────────────────────────────────────────────────── */
.tablewrap {
  border: 1px solid var(--line); border-radius: var(--r-4);
  overflow-x: auto; background: var(--ground-card); box-shadow: var(--lift-1);
}
table { border-collapse: collapse; width: 100%; font-size: var(--t-cell); min-width: 660px; }
th {
  text-align: left; padding: var(--sp-3) var(--sp-4); background: var(--ground-sunk);
  font-size: var(--t-caps); font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-quiet); border-bottom: 1px solid var(--line); white-space: nowrap;
}
th.r, td.r { text-align: right; }
td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); color: var(--ink-body); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--ground-sunk); }
td b { color: var(--ink); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { display: block; font-size: var(--t-small); color: var(--ink-quiet); margin-top: 1px; }
.pn { font-family: var(--face-mono); font-size: var(--t-small); color: var(--ink-quiet); font-weight: 600; }
.days { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.days.old { color: var(--no); }
.rowlink { color: var(--ink); font-weight: 700; cursor: pointer; background: none; border: none; font: inherit; padding: 0; text-align: left; }
.rowlink:hover { color: var(--brand); }

/* ── chips. ⚠ A CHIP MARKS THE EXCEPTION, NOT THE RULE.
   "YOUR TURN" on 8 of 9 rows is the same defect as the old board's "new"
   on all 207. Where a state is the majority, say it ONCE at the group
   level and chip only the minority that differs. */
.tag {
  display: inline-block; font-size: var(--t-tiny); font-weight: 700;
  padding: 2px var(--sp-2); border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-body); background: var(--ground-sunk); white-space: nowrap;
}
.tag.no    { border-color: var(--no-edge);    background: var(--no-ground);    color: var(--no); }
.tag.yes   { border-color: var(--yes-edge);   background: var(--yes-ground);   color: var(--yes); }
.tag.quiet { border-color: var(--line);       background: var(--ground-sunk);  color: var(--ink-quiet); }
.tag.guess { border-color: var(--crest-edge); background: var(--crest-ground); color: var(--crest-ink-2); }

/* who put a fact there: Y, A, or C. A price she found never looks like
   one he typed, and that is the whole point of the mark. */
.src {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  border-radius: var(--r-pill); font-size: 9px; font-weight: 800;
  color: var(--ink-on-brand); margin-left: var(--sp-1); vertical-align: 1px; flex: none;
}
.src.y { background: var(--brand); }
.src.a { background: var(--seat-2); }
.src.c { background: var(--ground-card); border: 1.2px solid var(--brand-hair); color: var(--brand); }

/* ── cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--ground-card); border: 1px solid var(--line);
  border-radius: var(--r-4); padding: var(--sp-4); box-shadow: var(--lift-1);
}
.kv { display: flex; gap: var(--sp-3); padding: var(--sp-2) 0; font-size: var(--t-cell); border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv dt { color: var(--ink-quiet); width: 96px; flex: none; font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; word-break: break-word; }

/* ── SHE COULD NOT. A warm tile, and NEVER the needs-you yellow ──────
   ⚠⚠ THE HEADING HERE USED TO READ "SHE REFUSED. The only yellow on the
   screen", 1088 lines after the same token was redefined as needs-you.
   One file, two contradictory statements about one colour, and the
   screen believed the older one: on Cockatiel, ten panels saying "I
   would not guess the incoterm" sat in the same yellow as one panel
   saying "She is asking you: which incoterm did you agree with Bhavya?"
   D29 (spec §0, 2026-09-06) settles it and this rule now follows it.

   A refusal is not a fault. 409/400 is her stopping something on
   purpose, and her sentence is printed verbatim. A 500 or a timeout is
   the desk failing, and it wears `.fault`.

   THREE THINGS WEAR THIS PANEL AND TWO LAWS RUN THROUGH IT:

     .refusal            SHE COULD NOT. "She stopped this", "What she
                         could not open", "This conversation was
                         removed". Warm peach.
     .refusal.decide     NEEDS YOU. Today's decision card.
     .refusal.asking     NEEDS YOU. "She is asking you", with taps.

   The set is read from --rf-*, so a child rule does not have to know
   which variant it is inside, and adding a third variant is one line
   rather than a sweep through eight rules. */
.refusal {
  --rf-ground: var(--couldnot-ground);
  --rf-edge:   var(--couldnot-edge);
  --rf-ink:    var(--couldnot-ink);
  --rf-ink-2:  var(--couldnot-ink-2);
  --rf-tap:    var(--couldnot-tap);
  /* ⚠ the dot is the INK, not a saturated warm. A --crest dot on a peach
     tile puts the needs-you yellow back on the screen the panel was
     moved off, eight pixels at a time. */
  --rf-dot:    var(--couldnot-ink);
  --rf-press:  var(--couldnot-tap);
  border: 1px solid var(--rf-edge); background: var(--rf-ground);
  border-radius: var(--r-4); padding: var(--sp-3) var(--sp-4);
}
/* the two that are the OWNER'S to answer, and they keep the yellow */
.refusal.decide, .refusal.asking {
  --rf-ground: var(--crest-ground);
  --rf-edge:   var(--crest-edge);
  --rf-ink:    var(--crest-ink);
  --rf-ink-2:  var(--crest-ink-2);
  --rf-tap:    var(--crest-tap);
  --rf-dot:    var(--crest);
  --rf-press:  var(--crest);
}
.refusal > b {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-cell); font-weight: 800; color: var(--rf-ink); margin-bottom: var(--sp-1);
}
.refusal > b::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--rf-dot); flex: none; }
/* ⚠⚠ AN UNSIZED <svg> IN THIS FLEX ROW IS A 300px BLOB, AND THREE GREEN
   CHECKS WALK PAST IT. `.refusal > b` is a flex container and sized
   nothing inside it; `UI.icon()` draws a 24px viewBox with no width, so
   as a flex item it takes the row's whole cross size. Seen with the eye
   on Catalogue's removal stop 2026-09-03, filling half the panel —
   `iconSet` only asks whether the svg came from `UI.icon`, `bodyOverflow`
   sees no overflow because the box grows to fit it, and `contrast` reads
   no words on it. The photo-store warning has drawn the same blob since
   it was written. Same class as `.seg button svg` and `.tap svg`, and
   the same fix. Size only: §3's `svg[data-icon]` shim owns fill and
   stroke. Folded in from screen-catalogue.js by the second coherence
   pass, where it could only ever cover one screen's two panels. */
.refusal > b svg { width: 15px; height: 15px; flex: none; }
.refusal p { margin: 0 0 var(--sp-2); font-size: var(--t-small); color: var(--rf-ink-2); line-height: 1.55; }
.refusal p:last-child { margin-bottom: 0; }
.refusal code {
  font-family: var(--face-mono); font-size: var(--t-tiny);
  background: var(--rf-tap); padding: 1px var(--sp-1); border-radius: var(--r-1); color: var(--rf-ink);
}

/* the taps inside a refusal. Taps only: a thing only he can answer is a
   TAP in the product, never a shell line. */
.taps { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* ⚠ IT WRAPS, AND IT USED TO BE `white-space: nowrap`. Nowrap is right
   for "Yes" and "Different" and wrong for a tap that carries a real
   subject line — "Re: Yanmar 6EY18AL crankshaft, gc ranau" — and both
   kinds of tap are drawn by this one class. One nowrap tap wider than
   its card pushes past the viewport with nothing able to scroll it back,
   which is precisely what audit.js's overflow walk exists to catch.
   `normal` costs the short ones nothing: they have no space to break at,
   so they stay on one line exactly as before. */
.tap {
  font: inherit; font-size: var(--t-small); font-weight: 700; letter-spacing: var(--tr-cell);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); cursor: pointer;
  background: var(--ground-card); border: 1px solid var(--rf-tap); color: var(--rf-ink);
  white-space: normal; overflow-wrap: anywhere; max-width: 100%; text-align: left;
}
.tap:hover { border-color: var(--rf-press); }
/* ⚠ THE PRESSED GROUND IS ITS OWN TOKEN AND NOT --rf-dot, WHICH I WROTE
   FIRST AND CAUGHT BY DOING THE ARITHMETIC. On a could-not panel the dot
   is the INK, so `background: var(--rf-dot); color: var(--rf-ink)` would
   have painted #7A4310 words on a #7A4310 ground: 1.00:1, a tap a person
   cannot read, and no live check would have caught it because no fixture
   presses a tap. Measured both ways: --crest-ink on --crest is 4.56:1,
   --couldnot-ink on --couldnot-tap is 5.09:1. */
.tap[aria-pressed="true"] { background: var(--rf-press); border-color: var(--rf-press); color: var(--rf-ink); }
/* ⚠ A TAP MAY CARRY AN ICON AND FOR A YEAR THIS FILE SIZED NO svg IN
   ONE. `.act`, `.btn`, `.pillbtn`, `.iconbtn` and `.mi` all size theirs;
   `.tap` did not, so the first tap built with an icon laid three 150px
   glyphs down the middle of Today's Ask-her panel. inline-flex costs a
   text-only tap nothing — a bare text run is one anonymous flex item and
   still wraps inside itself — and it is what makes `align-items` and
   `gap` mean anything for the ones that do hold a glyph.
   Size and layout only: §3's `svg[data-icon]` shim owns fill and stroke. */
.tap { display: inline-flex; align-items: center; gap: var(--sp-2); }
.tap svg { width: 15px; height: 15px; flex: none; }

/* the desk FAILED, which is a different thing and never wears yellow */
.fault {
  border: 1px solid var(--no-edge); background: var(--no-ground);
  border-radius: var(--r-4); padding: var(--sp-3) var(--sp-4);
  font-size: var(--t-cell); color: var(--no); line-height: 1.55;
}
.fault b { font-weight: 800; }


/* =====================================================================
   §7  THE SIGN-IN PANEL.
   The markup is `DeskAuth.auth.panelHTML()`, lifted from v2 unchanged.
   Only the dress is new: v2's is dark. Class names are v2's exactly, so
   the wiring keeps working with nothing altered in it.
   ===================================================================== */

.gate { display: grid; place-items: center; padding: var(--sp-8) var(--sp-5); min-height: 100%; }
.signin {
  width: min(400px, 100%); background: var(--ground-card);
  border: 1px solid var(--line); border-radius: var(--r-5);
  padding: var(--sp-6); box-shadow: var(--lift-1);
  display: flex; flex-direction: column;
}
.signin .empty { margin: 0 0 var(--sp-5); font-size: var(--t-cell); color: var(--ink-body); line-height: 1.6; }
.signin .empty__what {
  display: block; font-size: var(--t-head); font-weight: 800;
  color: var(--ink); letter-spacing: var(--tr-head); margin-bottom: var(--sp-2);
}
.signin .empty strong { color: var(--ink); font-weight: 700; }
.signin__lab { font-size: var(--t-small); font-weight: 700; color: var(--ink-quiet); margin-bottom: var(--sp-1); }
.signin .in {
  font: inherit; font-size: var(--t-ui); color: var(--ink);
  background: var(--ground-card); border: 1px solid var(--line-firm);
  border-radius: var(--r-2); padding: var(--sp-3); margin-bottom: var(--sp-4); width: 100%;
}
.signin .in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.signin .btn { justify-content: center; margin-top: var(--sp-1); }

/* the sentence. Three kinds, three grounds, because "wrong password",
   "the service is broken" and "I could not reach it at all" want three
   different things from a person. ⚠ `credentials` is the ONLY one that
   is a statement about him; it is the only one dressed as a refusal. */
.signin__say {
  margin: 0 0 var(--sp-4); font-size: var(--t-small); line-height: 1.55;
  border-radius: var(--r-2); padding: var(--sp-3);
  border: 1px solid var(--crest-edge); background: var(--crest-ground); color: var(--crest-ink);
}
.signin__say[data-kind="offline"], .signin__say[data-kind="fault"] {
  border-color: var(--no-edge); background: var(--no-ground); color: var(--no);
}
.signin__say[hidden] { display: none; }


/* =====================================================================
   §8  THE TOUCH FLOOR.

   ★★ 44px IS THE FLOOR ON A THUMB, AND FOUR CONTROLS WERE UNDER IT.
   Measured at a real 375x812 viewport on 2026-09-01: `.tap` 36px,
   `.iconbtn` 32px, `.dots` 32px. audit.js does not measure touch targets
   and none of them looked wrong on a laptop, so nothing was ever going
   to catch these except a finger.

   ⚠ `.dots` IS THE ONE THAT MATTERS MOST. It is the way to all four
   verbs on every row of every screen — "learn it once on DHL and you
   know it everywhere" — and it was the smallest control in the product.
   Three screens had already raised it privately, which is three screens
   where it was right and four where it was not.

   ⚠⚠ AND THIS BLOCK IS AT THE END OF THE FILE ON PURPOSE, NOT BY
   ACCIDENT OF EDITING. `.dots` and `.iconbtn` set width and height in
   their own rules in §5 and §6, at the SAME specificity as these. Put
   this block up in §3's phone block, where it was first written, and the
   later definitions win and it silently does nothing — `.tap` came out
   at 44px, because `.tap` declares no min-height to compete with, while
   `.dots` stayed at 32 and the run still read as a pass. Measured, both
   ways, before this comment was written.

   Height only where a label lives: a `.tap` grows downwards and keeps
   the words it had. The two square controls take the floor in both.
   ===================================================================== */

@media (max-width: 900px) {
  .tap { min-height: 44px; }
  .btn, .act { min-height: 44px; }
  .iconbtn, .dots { width: 44px; height: 44px; }
  .menucell { width: 44px; }
}

/* =====================================================================
   THE BENTO, AND THE SIX SHAPES THAT LIVE IN IT.        added 2026-09-02

   ★ WHY. Nine screens carried 5,667 characters of paragraph between
   them. The brief: say it with size, colour and position so the answer
   arrives before the label does.

   ⚠ TILE SIZE IS THE RANKING, and that is the only thing it is. A tile
   is big because the thing in it matters most on this screen, never
   because the chart happened to need the room. AT MOST TWO heroes per
   screen: three heroes is no hero, and the eye has nothing to land on.

   ★★ AND A TILE WITH NO DATA IS HOLLOW, NEVER EMPTY, NEVER ZERO.
   Same footprint, dashed edge, no fill. The layout must not jump when
   the first real row arrives, and a `0` in 44px type is the desk
   inventing the most comforting answer available out of no evidence.
   ===================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
/* span is set per tile with --c / --r, so a screen's ranking is readable
   in one place in its own file rather than scattered through class names */
.tile {
  grid-column: span var(--c, 3);
  grid-row: span var(--r, 1);
  min-width: 0;                 /* ⚠ or a long figure blows the track out */
  background: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  justify-content: space-between;
}
.tile > .cap {
  font-size: var(--t-caps); font-weight: 700; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--ink-quiet);
  display: flex; align-items: center; gap: var(--sp-2);
}
/* ★ THE FIGURE IS THE TILE. Everything else on it is support.

   ★★ AND THERE IS ONE HERO PER SCREEN, NOT TWO. Measured 2026-09-04:
   `--t-hero: 36px` was declared, commented "a tile's figure", and
   referenced by NOTHING. What actually rendered was a hard-coded 30px
   here and a hard-coded 44px below, and the 44px branch fired on any
   tile spanning 4, 5 or 6 columns — so People drew "95" and "14" at the
   same 44px, Freight "3" and "10", Catalogue "6" and its photo waffle,
   Money's widest tile and its running balance. Two answers at exactly
   one size is not a hero, it is a tie, and a tie is what "nothing
   dominates" feels like. The token is awake and the branch is narrower.

   ⚠ THE BRANCH IS `--c: 5|6` AND NOT `--c: 6` ALONE, AND THAT WAS
   MEASURED, NOT PREFERRED. `--c` is a GRID SPAN over 12 columns, not a
   size class: the four screens that draw a hero lay their bento out as
   5 + 4 + 3 = 12. NOT ONE TILE ON THIS DESK DECLARES `--c: 6`, so a
   branch keyed on 6 would have left every figure on every screen at the
   base size and deleted the hero from the product entirely, while
   passing every check in audit.js. Promoting a tile to 6 is a layout
   decision in a screen file (6 + 4 + 3 = 13 wraps the row), and this is
   the token file. Keyed on 5, each of People, Freight, Money and
   Catalogue has exactly ONE figure at 36px, measured on all four.

   ⚠ TWO HEROES ON ONE ROW ARE STILL POSSIBLE IN CSS (5 + 5 = 10 fits,
   and so does 6 + 6). Nothing here makes a tie impossible. What makes it
   impossible to SHIP unnoticed is `oneThingIsBiggest` in audit.js, which
   counts the elements at the largest rendered size and fails on two.

   ⚠ `.tile[style*="--c: 5"]` IS A SUBSTRING MATCH ON AN INLINE STYLE
   ATTRIBUTE. People and Freight set `--c` from JavaScript, so both were
   re-rendered and looked at rather than reasoned about. Both forms of
   the declaration, with and without the space, are matched. */
/* ★ "BIG NUMBERS AT 300" is the locked look's own line, and it is the
   most visible thing in this whole pass: 17, 5, 2, 1 on the home are
   drawn LIGHT and large, not black and heavy. Weight is not contrast --
   the colour is unchanged at --ink, 15.6:1 -- and size is what
   `oneThingIsBiggest` ranks, so nothing the audit measures moves.
   ⚠ The unit and any small run inside keep their own weight AND their
   own tracking (the line below): a 15px unit inheriting a 24px figure's
   tracking is the bug that ate the spaces out of the rate's provenance
   line on the live desk. */
.tile > .fig {
  font-size: var(--t-h2); font-weight: 300; letter-spacing: var(--tr-h2); line-height: 1.02;
  color: var(--ink); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap;
}
.tile > .fig .unit { font-size: 15px; font-weight: 600; color: var(--ink-quiet); letter-spacing: -.2px; }
.tile[style*="--c: 5"] > .fig, .tile[style*="--c:5"] > .fig,
.tile[style*="--c: 6"] > .fig, .tile[style*="--c:6"] > .fig {
  font-size: var(--t-hero); letter-spacing: var(--tr-hero);
}
.tile > .sub { font-size: var(--t-small); color: var(--ink-quiet); }
.tile.warm { border-color: var(--cheek-edge); background: var(--cheek-ground); }
.tile.warm > .fig { color: var(--ink); }
.tile.crest { border-color: var(--crest-edge); background: var(--crest-ground); }
.tile.crest > .cap, .tile.crest > .sub { color: var(--crest-ink-2); }
.tile.crest > .fig { color: var(--crest-ink); }

/* ── the hollow tile ────────────────────────────────────────────────
   ⚠ IT KEEPS ITS SIZE. A tile that collapses when it has nothing means
   the whole grid reflows the day the first row lands, and a person who
   learned the layout has to learn it again. */
.tile.is-hollow { background: transparent; border-style: dashed; border-color: var(--line-firm); }
.tile.is-hollow > .fig { color: var(--ink-mute); font-size: 22px; letter-spacing: -.6px; }

/* ── the shared hollow, inside any shape ──────────────────────────── */
.hollow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-small); color: var(--ink-quiet); min-height: 28px;
}
.hollow > i {
  width: 26px; height: 14px; flex: none; border-radius: var(--r-1);
  border: 1px dashed var(--line-firm);
}

/* ── 1. spark ───────────────────────────────────────────────────────
   No axis, no legend, no grid. If it needs one of those it is the wrong
   shape for the tile. */
.spark { display: block; width: 100%; }
.spark svg { display: block; width: 100%; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.5; vector-effect: non-scaling-stroke;
                  stroke-linejoin: round; stroke-linecap: round; }
.spark polygon  { fill: var(--brand); opacity: .10; stroke: none; }
.spark circle   { fill: var(--brand); }
.tile.warm .spark polyline, .tile.warm .spark circle { stroke: var(--cheek); fill: none; }
.tile.warm .spark circle { fill: var(--cheek); }
.tile.warm .spark polygon { fill: var(--cheek); }

/* ── 2. ring ────────────────────────────────────────────────────────── */
.ring { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; flex: none; }
.ring svg { width: 58px; height: 58px; display: block; }
.ring circle { fill: none; stroke-width: 4.5; }
.ring circle.rest { stroke: var(--line); }
.ring circle.lit  { stroke: var(--brand); stroke-linecap: round; }
/* ⚠ a round cap on a zero-length arc still paints a dot, so "0 of 8" showed
   a mark that reads as "a little bit". Zero is a real measurement and its
   picture is an empty ring. */
.ring circle.lit[data-flat] { stroke-linecap: butt; stroke: none; }
.ring b {
  position: absolute; font-size: var(--t-cell); font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.tile.warm .ring circle.lit { stroke: var(--cheek); }
.tile.warm .ring circle.rest { stroke: var(--cheek-edge); }

/* ── 3. track ───────────────────────────────────────────────────────
   ⚠ `none` IS NOT `good`. It is the ground colour, not the healthy
   colour, because "nobody has said" must never read as "fine". */
.track { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.track > i { width: 9px; height: 20px; border-radius: 2px; flex: none; display: block; }
/* ⚠⚠ `bad` WAS --cheek, AND THAT WAS A REAL FAULT. Orange is "press this",
   the one action on a screen. A tracker cell painted orange is counted as an
   action by audit.js's oneAction check, measured by computed colour, so ONE
   overdue invoice put two oranges on Money and failed the run. It was caught
   by the check doing its job, not by review.

   ★ AND THE RIGHT COLOUR WAS ALREADY HERE. `--no` is a VERDICT colour, and
   this file's own note on it says verdicts "report a fact that has already
   happened, they never ask for anything. That is why they may exist beside
   the two warm signals without competing with them." An expired rate is a
   fact, not a request. `--cheek` was me reaching for red-ish and finding the
   action colour.

   `good` stays quiet on purpose: a thing that is fine does not need a colour,
   and painting it green makes a tracker read as decoration. */
.track > i[data-state="good"] { background: var(--brand); opacity: .45; }
.track > i[data-state="warn"] { background: var(--crest); }
.track > i[data-state="bad"]  { background: var(--no); }
.track > i[data-state="none"] { background: var(--ground-sunk); border: 1px solid var(--line); }

/* ── 4. bar list ────────────────────────────────────────────────────── */
.bars { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.barrow { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: var(--sp-3);
          align-items: center; font-size: var(--t-cell); }
.barrow .lab { color: var(--ink-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.barrow .trk { height: 16px; background: var(--ground-sunk); border-radius: var(--r-1); overflow: hidden; min-width: 0; }
.barrow .trk > i { display: block; height: 100%; background: var(--brand); opacity: .55; border-radius: var(--r-1); }
.barrow .val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.barrow[data-state="warn"] .trk > i { background: var(--crest); opacity: 1; }
/* same reason as the tracker above: a bar reporting a bad fact is a verdict,
   not the one action on the screen. */
.barrow[data-state="bad"]  .trk > i { background: var(--no); opacity: 1; }

/* ── 5. delta ───────────────────────────────────────────────────────
   ⚠ There is no styling for "no earlier reading", because delta()
   returns nothing at all in that case. A greyed-out chip would be a
   third state a person reads as "flat". */
.delta {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: var(--t-tiny); font-weight: 700; padding: 2px var(--sp-2);
  border-radius: var(--r-pill); background: var(--ground-sunk); color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}
.delta[data-dir="up"]   { background: var(--cheek-ground); color: var(--cheek-ink); }
.delta[data-dir="down"] { background: var(--brand-wash); color: var(--brand); }
.delta i { font-style: normal; }

/* ── 6. waffle ──────────────────────────────────────────────────────── */
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: 100%; max-width: 132px; }
.waffle > i { aspect-ratio: 1; border-radius: 1.5px; background: var(--ground-sunk); border: 1px solid var(--line); display: block; }
.waffle > i[data-lit] { background: var(--brand); opacity: .55; border-color: transparent; }

/* ── motion, and the one rule about it ──────────────────────────────
   A bar grows in and a ring sweeps once, on first paint only. Nothing
   loops, nothing pulses: a dashboard that moves while you read it is
   harder to read, and a thing that moves forever stops meaning
   anything moved. */
@media (prefers-reduced-motion: no-preference) {
  .barrow .trk > i { animation: growx .5s cubic-bezier(.2,.7,.3,1) both; }
  .ring circle.lit { animation: sweep .6s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes growx { from { transform: scaleX(0); transform-origin: left; } }
@keyframes sweep { from { stroke-dasharray: 0 100; } }

/* ── the phone ──────────────────────────────────────────────────────
   ⚠ 12 columns at 375px is a 27px column, so a "4-wide" tile is 108px
   and a big figure overflows it. On a phone the grid drops to 2 and
   every tile takes half, except a hero, which takes the row. */
@media (max-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .tile { grid-column: span 1; padding: var(--sp-3); }
  .tile[style*="--c: 4"], .tile[style*="--c:4"],
  .tile[style*="--c: 5"], .tile[style*="--c:5"],
  .tile[style*="--c: 6"], .tile[style*="--c:6"] { grid-column: span 2; }
  /* ⚠ THE TWO FIGURE OVERRIDES THAT USED TO SIT HERE (26px base, 34px
     wide) ARE GONE, AND THE SPAN RULE ABOVE IS NOT: the width of a tile
     on a two-column phone is a layout question and stays keyed on 4|5|6.
     The SIZE is not. Measured 2026-09-04 at a real 375x812: the phone
     media queries shrank the TOP of the type scale and left the bottom
     alone — title 26 to 23, hero figure 44 to 34, ordinary figure 30 to
     26, lede 17 to 15.5, body 13 either way — so the top-to-second gap
     tightened on every one of the seven tabs measured, without
     exception. The phone was not more packed than the laptop, it was
     FLATTER, on the surface with less room to carry a ranking. The
     figure now renders at the same 24 and 36 on both. */
  .ring, .ring svg { width: 48px; height: 48px; }
}


/* =====================================================================
   §9  THE PLATE'S FURNITURE.                          added 2026-09-02

   A section, its heading, a segmented control, a quiet pill, and rows
   drawn as cards. Nothing here is a screen; everything here is used by
   more than one, which is the only test for whether it belongs.
   ===================================================================== */

.panel {
  background: var(--ground-panel); border-radius: var(--r-panel);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4);
  min-width: 0;
}
.panel.white { background: var(--ground-card); box-shadow: var(--lift-1); }
* + .panel { margin-top: var(--sp-3); }
/* ★ A PANEL WITH NOTHING IN IT KEEPS ITS FOOTPRINT AND SAYS SO. Ground
   and shadow go, a dashed edge arrives, and the padding does not move —
   so the layout cannot jump the day the first real row lands. An empty
   WHITE card reads "there are none of these"; a dashed one reads
   "nobody has told us", and those are two different facts. */
.panel.is-hollow { background: none; box-shadow: none; border: 1.5px dashed var(--line-firm); }

.phead { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; min-width: 0; }
.phead .sp { flex: 1; }
/* ⚠⚠ A PANEL'S NAME CAME DOWN WITH THE SCREEN'S NAME, AND IT WAS FORCED
   BY ARITHMETIC, NOT PREFERRED. `--t-hero` is 36 and an ordinary figure
   wants roughly 1.5 below it, which is 24 — and 24 is exactly what this
   heading was. Measured on Today > What changed the moment the figure
   moved: `.phead h2` "What changed" and the tile figure "3" both landed
   on 24px, so a tab that HAD a single uncontested hero before this pass
   (30 over 26) came out of it in a dead heat. A label tying a fact is
   the whole defect this pass exists to remove, so the label moved.

   The desk now has one line you can state: A LABEL IS 18, AN ORDINARY
   FACT IS 24, THE ANSWER IS 36. Nothing that names a thing is bigger
   than the smallest thing that measures one. `.fun-step > b` (26) and
   `.tile.is-hollow > .fig` (22) sit inside that, and both are facts.

   Weight 700 keeps a panel's own name apart from a section inside it,
   which stays at 600 on the line below. To put it back: `--t-h2`,
   `--tr-h2`, weight 600. */
.phead h2 { margin: 0; font-size: var(--t-h3); font-weight: 700; letter-spacing: var(--tr-h3); color: var(--ink); line-height: 1.1; }
.phead h3 { margin: 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--tr-h3); color: var(--ink); line-height: 1.1; }
.phead .n {
  font-size: var(--t-small); font-weight: 700; color: var(--ink-quiet);
  background: var(--ground-card); border-radius: var(--r-pill);
  padding: 3px var(--sp-2); box-shadow: var(--lift-1);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* same reason as the tab count: --cheek inside .main is an action */
.phead .n.warm  { background: var(--cheek-ground); color: var(--cheek-ink); }
.phead .n.crest { background: var(--crest); color: var(--ink-on-cheek); }

/* a segmented control. One question, several answers, one of them on. */
.seg { display: inline-flex; gap: var(--sp-1); padding: var(--sp-1); background: var(--ground-card); border-radius: var(--r-pill); box-shadow: var(--lift-1); }
.panel.white .seg { background: var(--ground-panel); box-shadow: none; }
.seg button {
  font: inherit; font-size: var(--t-small); font-weight: 600;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--ink-body); cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--brand-wash); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-edge); }
.seg button .n { margin-left: var(--sp-1); font-size: var(--t-tiny); font-variant-numeric: tabular-nums; }
/* ⚠ AN UNSIZED <svg> LAYS OUT AT ITS OWN INTRINSIC BOX, AND THE EYE DID
   NOT CATCH IT. Measured 2026-09-02 on Deals: segment icons drew between
   20 and 48px and pushed their pills 11px past the panel. `bodyOverflow`
   found it; three reviewers looking at the same screen did not, because
   an icon slightly too big still looks like an icon. Every control in
   this file that may hold one sizes it, and this was the one that did
   not. Size only: the `svg[data-icon]` shim in §3 owns fill and stroke. */
.seg button svg { width: 14px; height: 14px; flex: none; }

/* a quiet pill: many of these may exist, and none of them is the action */
.pillbtn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3); border-radius: var(--r-pill);
  background: var(--ground-card); color: var(--ink-body);
  font: inherit; font-size: var(--t-cell); font-weight: 600;
  border: 1px solid transparent; box-shadow: var(--lift-1); cursor: pointer; white-space: nowrap;
}
.pillbtn:hover { border-color: var(--brand-edge); }
.pillbtn svg { width: 15px; height: 15px; }
.pillbtn.q { background: none; box-shadow: none; color: var(--ink-body); padding: var(--sp-2); }
/* a pill that owns its column: the head of a list, a form's one button */
.pillbtn.full { width: 100%; justify-content: center; }

/* ── a box you type in ───────────────────────────────────────────────
   ★★ ONE TEXT BOX, AND UNTIL 2026-09-03 THERE WERE SEVEN. Six screens
   each carried a private skin for the same control — `.cx-field input`,
   `.hu-in`, `.pr-in`, `.tk-field input`, `.tk-typed input`, `.dl-in
   input`, `#drafts-view .dedit` — and they had drifted apart in the two
   ways a copied rule always drifts: the EDGE (`--line` on three of them,
   `--line-firm` on four) and the TYPE (`--t-ui` on four, `--t-cell` on
   two, `--t-body` on one). A person filling in Sourcing's log form and
   People's edit form was looking at two different controls for one job,
   and neither file could see the other.
   The fold takes the majority on both: `--line-firm`, because the edge
   of a text box is the whole signal that you may type in it, and a box
   one gray step quieter than the four that already looked right is the
   copy that was wrong; `--t-ui`, which is this file's declared default
   for controls. What stays local is SIZE — how wide a box is in its own
   form, and how tall a textarea starts — because that is a fact about
   the form and not about the control.
   ⚠ `width: 100%` IS SAFE ON THE FLEX ONES. A flex item's `flex-basis`
   overrides `width` on the main axis, so `.hu-in`'s `flex: 1 1 200px`
   still decides its width; the declaration only reaches the boxes that
   are not flex items at all.
   LAYOUT AND THE PALETTE'S OWN NAMES: nothing here is a new colour. */
.field {
  width: 100%; box-sizing: border-box; min-width: 0;
  font: inherit; font-size: var(--t-ui); color: var(--ink);
  background: var(--ground-card); border: 1px solid var(--line-firm);
  border-radius: var(--r-2); padding: var(--sp-2) var(--sp-3);
  outline: none;
}
textarea.field { min-height: 76px; resize: vertical; line-height: 1.5; }
/* the halo is `--brand-ring`, which IS `--brand` at 11%: a focus ring is
   structure saying where you are, never an action and never a refusal. */
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

/* ★★ THE NINTH AND TENTH COPIES, AND THE TWO THINGS THEY ACTUALLY DID
   DIFFERENTLY. `.mn-field input/select` (Money, 28 controls) and
   `.kx-field input/select` (Catalogue, 14) were written privately while
   §22's fold was running and neither file was the other's to touch. Money's
   copy was byte-identical to the rule above on every declaration it shared,
   so folding it moved nothing at all. Catalogue's differed in exactly two
   places, and both are real facts about that screen rather than drift, so
   both survive here as modifiers rather than being flattened away.

   ⚠ `.field.is-tap` IS A TAP TARGET FLOOR, NOT A LOOK. Catalogue is the one
   screen whose forms are worked through standing in a warehouse: the price
   panel, the add-a-part form and the edit form are all filled in on a
   phone. 40px on the laptop, 44px on the phone, which is the same floor
   `.kx-acts .btn` and `.kx-find input` already declare beside them. Padding
   alone gives 38-39px, and the difference between 39 and 44 is the
   difference between hitting a box and hitting the one under it.

   ⚠ `.field.hints` IS A REFUSAL TO LET A PLACEHOLDER READ AS A VALUE. The
   browser's own placeholder ink is dark enough that "4850" in an empty
   Price each box looked like a number somebody had typed, on the one screen
   whose entire claim is that it never shows a figure nobody gave it. Quiet
   ink is what the rest of the desk uses for a word that is not an answer.
   It is opt-in and not the default because a placeholder that is a genuine
   example of the FORMAT ("Maybank, Bank Negara, your forwarder…") is not
   pretending to be a value, and Money's boxes are all of that kind. */
.field.is-tap { min-height: 40px; }
.field.hints::placeholder { color: var(--ink-quiet); }

/* ★ THE TYPE CHIP IS A CONTROL, NOT A LABEL, AND IT LOOKS LIKE ONE.
   It names what the row currently says it is and carries a caret, so it
   reads as something you may change rather than as a word somebody
   typed. A guess wears `.tag guess`, which is the crest palette: yellow
   is her refusing, and an unconfirmed guess is exactly that. The caret
   turns when the answers are open. Nothing here names a colour.
   ⚠ THE svg IS SIZED HERE AND FILLED, not stroked: this one glyph is a
   solid caret out of the same map, and the `svg[data-icon]` shim in §3
   would otherwise draw it as nothing. That is why `fill: currentColor`
   appears on this rule and on no other. */
.typechip { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: block; }
.typechip .tag { display: inline-flex; align-items: center; gap: var(--sp-1); }
.typechip .tag svg { width: 10px; height: 10px; fill: currentColor; flex: none; }
.typechip:hover .tag { border-color: var(--brand-hair); }
.typechip[aria-expanded="true"] .tag svg { transform: rotate(180deg); }

/* the one press-this, in the top bar, is a pill like everything else
   around it. The colour, the ink and the one-per-screen law are §6's. */
.topbar .act { border-radius: var(--r-pill); padding: var(--sp-3) var(--sp-4); }

/* ── rows as cards ──────────────────────────────────────────────────
   ⚠ EVERY TRACK IS minmax(0, 1fr) OR A FIXED PX, NEVER `auto`. An auto
   track will not size below its item's min-content, and the cells below
   carry nowrap + ellipsis — which clips what is PAINTED and not what
   the element CONTRIBUTES. That pair rendered a 783px card inside a
   375px phone with the buttons off screen and `body.scrollWidth` read
   clean throughout. --rc is set by the screen, per table. */
.rows { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.rowhead, .rowc {
  display: grid; grid-template-columns: var(--rc, minmax(0, 1fr));
  gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); min-width: 0;
}
.rowhead {
  font-size: var(--t-caps); font-weight: 700; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--ink-quiet); padding: var(--sp-1) var(--sp-4) 0;
}
.rowc { background: var(--ground-card); border-radius: var(--r-card); box-shadow: var(--lift-1); min-height: 62px; }
.rowc .c { min-width: 0; font-size: var(--t-cell); color: var(--ink-body); }
/* ⚠⚠ THEY WRAP, AND THEY USED TO BE nowrap + ellipsis. FOUR BUILDERS
   INDEPENDENTLY PATCHED THIS ONE PAIR OF RULES, which is what a shared
   defect looks like from inside five files. The pair clips what is
   PAINTED and not what the element CONTRIBUTES, so a fact simply
   disappears with nothing able to scroll to it — measured at 1440 (a
   351px factory name in a 315px cell on Sourcing; a 245px sub in a 192px
   box on Today) and again at 375 (a 154px title painted into 90px on
   Deals). CONTRACT §11 calls a fact visible on the laptop and gone on
   the phone a bug, not a trade.
   Wrapping cannot blow a track out, because every `--rc` track is
   `minmax(0,1fr)` or a fixed px: min-content becomes the longest WORD,
   and `overflow-wrap: anywhere` breaks the one word that is a 32
   character email address. The row grows a line instead. */
.rowc .c b { display: block; font-size: var(--t-ui); font-weight: 700; color: var(--ink); letter-spacing: -.25px; white-space: normal; overflow-wrap: anywhere; }
.rowc .c small { display: block; font-size: var(--t-small); color: var(--ink-quiet); line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.rowc .c.num { font-variant-numeric: tabular-nums; text-align: right; }
.rowc .nm { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
/* a cell holding controls must not clip them: the taps wrap onto a
   second line rather than pushing the card past its track. */
.rowc .c .taps { flex-wrap: wrap; }

/* ── the control cell, hanging on the right of its row ───────────────
   ★ FIVE SCREENS WROTE THIS ONE RULE FIVE TIMES: `.cx-editcell`,
   `.cx-mk`, `.hu-acts`, `.pr-acts` and `.dl-acts`, all of them "the
   buttons on this row, pushed to the right, wrapping rather than
   pushing the card past its track, and left-aligned on the phone
   because a right edge on a stacked card is a right edge nobody can
   find". The cell case is `.rowc .c.acts`; the rule is written unscoped
   because one screen's group is a span INSIDE its cell rather than the
   cell itself, and a group of controls is a group of controls.
   ⚠ IT WRAPS, for the same reason `.taps` does: a row with four
   controls on a 40px track pushes the card past the viewport with
   nothing able to scroll it back. */
.acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; min-width: 0; }

/* ── a list row that carries a menu ──────────────────────────────────
   ⚠ A BUTTON CANNOT HOLD A BUTTON. A row that is itself a link or a
   button cannot contain the four-verb menu, so the row becomes a line
   holding the link and the menu beside it, and the link keeps every
   rule it had. `2px`, not `--sp-2`: the dots sit against the row they
   belong to. Folded in from `#screen-her .cvrow`. */
.linkrow { display: flex; align-items: center; gap: 2px; min-width: 0; }
.linkrow > :first-child { flex: 1 1 auto; min-width: 0; }
.linkrow > .menucell { flex: none; }

/* ── rows as cards, ON THE PHONE ─────────────────────────────────────
   ★ ONE CARD PER ROW, AND THE COLUMN HEAD MOVES ONTO EACH LINE AS ITS
   CAPTION. NOTHING IS DROPPED: every fact on the laptop is on the phone.
   The caption comes off `data-label`, which each screen writes from the
   very same column array that draws the head, so the two cannot drift.

   ⚠ `--rc` IS OVERRIDDEN WITH !important AND THAT IS NOT LAZINESS. The
   screens set `--rc` in an INLINE style on `.rows`, per table, which
   beats any stylesheet rule that is not marked. Six or seven laptop
   tracks inside a 375px plate give each track about 40px, and 40px of
   cell is not a column, it is a place a fact goes to die.

   ⚠ AND THE NAME CELL IS A BLOCK, NOT A FLEX ROW. The caption rule
   below turns every `.c` into a flex row so its label can sit beside its
   value, which assumes the cell holds ONE thing. The name cell holds
   two, the name and the line under it, and as flex items they raced
   along one line: measured at a real 375 viewport 2026-09-02, twelve
   elements on People whose content was wider than a box nothing could
   scroll to, while `document.scrollWidth` read 375 throughout. That is
   exactly why the overflow walk measures CONTENT against BOX. */
@media (max-width: 900px) {
  .rows { --rc: minmax(0, 1fr) !important; }
  .rowhead { display: none; }
  .rowc { align-items: start; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
  /* ⚠ ONLY A CELL THAT DECLARED A CAPTION BECOMES A LABELLED ROW, and
     the selector is deliberately this narrow. `[data-label]` alone would
     catch the `data-label=""` cells that screens use to say "this one
     has no head", and `.c` alone would catch the cells that carry no
     attribute at all — Today's day count is one, and it holds a figure
     and the word under it, which as two flex items race along one line.
     A cell with no caption keeps the display it has on the laptop. */
  .rowc .c[data-label]:not([data-label=""]) {
    display: flex; gap: var(--sp-4); align-items: baseline; min-width: 0; padding: 2px 0;
  }
  .rowc .c[data-label]:not([data-label=""])::before {
    content: attr(data-label); flex: 0 0 38%;
    font-size: var(--t-small); font-weight: 700; color: var(--ink-quiet); letter-spacing: .02em;
  }
  /* the name cell already says what it is; a caption beside it would be
     the word "Job" printed next to a job. */
  .rowc .nm .c::before { content: none; }
  .rowc .nm { align-items: flex-start; }
  .rowc .nm .c { display: block; }
  .rowc .c > * { min-width: 0; }
  .rowc .c.num { text-align: left; }
  .rowc .menucell { width: auto; display: flex; justify-content: flex-end; }
  /* ★ THE CONTROLS COME BACK TO THE LEFT. On a stacked card there is no
     column edge for them to hang off, so a right-aligned group floats
     away from the facts it belongs to. Four screens said this privately. */
  .acts { justify-content: flex-start; }
  /* the tap floor rises to the phone's, exactly as `.kx-field input` used
     to declare privately at this same breakpoint. */
  .field.is-tap { min-height: 44px; }
}


/* =====================================================================
   §10  THE MONOGRAM.

   ⚠ WE HOLD NO PHOTOGRAPHS OF ANY CUSTOMER AND WILL NOT INVENT FACES.
   Two initials on one of six tints, and the tint is `fnv1a(name) % 6`
   so a company keeps its colour on every screen and every reload. That
   is the whole point: it is recognisable without claiming to be a
   likeness. A name nobody has supplied draws the HOLLOW, never a "?" —
   a question mark is a face for a person who does not exist.
   ===================================================================== */

.mono {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center; flex: none;
  font-size: var(--t-cell); font-weight: 800; letter-spacing: -.3px;
}
.mono.sm { width: 32px; height: 32px; font-size: var(--t-small); }
.mono[data-tint="a"] { background: var(--mono-a); color: var(--mono-a-ink); }
.mono[data-tint="b"] { background: var(--mono-b); color: var(--mono-b-ink); }
.mono[data-tint="c"] { background: var(--mono-c); color: var(--mono-c-ink); }
.mono[data-tint="d"] { background: var(--mono-d); color: var(--mono-d-ink); }
.mono[data-tint="e"] { background: var(--mono-e); color: var(--mono-e-ink); }
.mono[data-tint="f"] { background: var(--mono-f); color: var(--mono-f-ink); }
.mono.is-hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--line-firm); color: var(--ink-quiet); }


/* =====================================================================
   §11  THE FUNNEL STRIP.

   Each step is a figure, a caption and a bar scaled to the FIRST step.
   ⚠ NEVER A PERCENTAGE. A rate is "6 of 40", because a percentage of a
   number nobody can see is the finished-looking wrong number again.
   A step with `n: null` is a hollow and keeps its footprint.

   ⚠⚠ THE WARM STEP'S BAR IS --cheek-edge, NOT --cheek, AND THAT IS NOT
   A TASTE DECISION. audit.js counts orange by computed colour inside
   .main. A funnel bar painted --cheek is a second press-this on every
   screen that draws one, which is exactly how the tracker's `bad` cell
   failed the run on 2026-09-02. The step's GROUND carries the warmth.
   ===================================================================== */

.fun { display: grid; grid-template-columns: repeat(var(--fc, 5), minmax(0, 1fr)); gap: var(--sp-2); min-width: 0; }
.fun-step {
  background: var(--ground-card); border-radius: var(--r-4);
  padding: var(--sp-3) var(--sp-4); box-shadow: var(--lift-1); min-width: 0;
  border: 1px solid transparent;
}
.fun-step > b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.fun-step > span { display: block; font-size: var(--t-small); color: var(--ink-quiet); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fun-step .barx { height: 6px; border-radius: var(--r-pill); background: var(--line); margin-top: var(--sp-2); overflow: hidden; }
.fun-step .barx > i { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); }
.fun-step.warm { background: var(--cheek-ground); border-color: var(--cheek-edge); }
.fun-step.warm > span { color: var(--cheek-ink); }
.fun-step.warm .barx > i { background: var(--cheek-edge); }
.fun-step.crest { background: var(--crest-ground); border-color: var(--crest-edge); }
.fun-step.crest > b { color: var(--crest-ink); }
.fun-step.crest > span { color: var(--crest-ink-2); }
.fun-step.crest .barx > i { background: var(--crest); }
/* the hollow keeps the footprint. The layout must not jump the day the
   first real number lands. */
.fun-step.is-hollow { background: none; box-shadow: none; border: 1.5px dashed var(--line-firm); }
.fun-step.is-hollow > b { font-size: var(--t-ui); font-weight: 600; letter-spacing: -.2px; color: var(--ink-quiet); }


/* =====================================================================
   §12  THE TIMELINE.

   A row per thing, a column per day, a dashed line on today.

   ⚠ IT LIVES IN ITS OWN SCROLLER AND THAT IS LOAD-BEARING. Eighteen
   day columns beside a 260px row header cannot fit a 375px phone, and
   the alternative to scrolling is squeezing every column to nothing.
   `.tlwrap` is `overflow-x: auto` with a `min-width` on the grid, so at
   1440 nothing scrolls and at 375 the content is REACHABLE — which is
   the only thing the overflow walk grants an exemption for.

   ⚠ THE WEEKEND CELL DECLARES A BACKGROUND-COLOUR AS WELL AS ITS HATCH.
   audit.js's contrast walk reads `backgroundColor`; an element painted
   only by a gradient reports `rgba(0,0,0,0)` and the walk keeps going
   up, measuring text against the wrong ground entirely.
   ===================================================================== */

.tlwrap { overflow-x: auto; }
.tl {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-3); align-items: start; min-width: 700px;
}
.tl-corner { font-size: var(--t-small); font-weight: 600; color: var(--ink-quiet); padding: var(--sp-2) var(--sp-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-days { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 6px; position: relative; min-width: 0; }
/* ⚠⚠ THE DAY AND THE CELL CARRY AN EDGE, NOT A LIFT, AND THE EDGE IS NOT
   OPTIONAL. Measured 2026-09-04 on Today: 139 painted timeline cells
   above the fold and 123 box shadows on them — the highest shadow count
   anywhere on the desk, on the desk's home screen. A shadow on every day
   of every lane is 139 tiny independent lifts asking to be looked at
   one at a time, which is exactly what stops the timeline reading as ONE
   instrument. The lift went; the separation stayed.

   ⚠ AND THE CELL IS WHITE ON A WHITE PANEL. `.tl-cell` is
   `--ground-card`, its nearest painted ancestor is `section.panel`, and
   that is `#FFFFFF` too — measured, not assumed. The shadow was the ONLY
   thing drawing an empty cell's edge, so taking it away without putting
   a 1px `--line` back would not have quietened the instrument, it would
   have DELETED every empty day from it. An empty day is a fact: it says
   nothing happened. `bodyOverflow` and `menuNotClipped` read no shadows
   and no borders, so this was verified by looking.

   The one lift that stays is `.tl-day.now`. One landmark on an
   instrument is a landmark; 139 of them are a texture. */
.tl-day {
  background: var(--ground-card); border-radius: var(--r-4);
  border: 1px solid var(--line);
  padding: 7px 0 6px; text-align: center;
  font-size: var(--t-tiny); color: var(--ink-body); line-height: 1.15;
}
.tl-day b { display: block; font-size: var(--t-cell); font-weight: 600; color: var(--ink); letter-spacing: -.2px; }
.tl-day.we { background: var(--gray-20); box-shadow: none; }
.tl-day.now { background: var(--brand); color: var(--ink-on-brand); border-color: var(--brand); box-shadow: var(--lift-2); }
.tl-day.now b { color: var(--ink-on-brand); }

.tl-row { display: flex; align-items: center; gap: var(--sp-3); background: var(--ground-card); border-radius: var(--r-4); padding: var(--sp-2) var(--sp-3); box-shadow: var(--lift-1); min-width: 0; height: 64px; }
.tl-row .t { min-width: 0; }
/* ⚠⚠ THEY WRAP, for the same reason `.rowc .c b` does and found by two
   builders on two screens in one night. The row header is 260px on the
   laptop and 200px on the phone; a 245px sub-line inside a 192px box was
   clipped with nothing able to scroll to it, and `bodyOverflow` counted
   seven of them on Today alone. The row is 64px tall and two lines of
   12px fit; the sub-line is kept short by the SCREEN, not by a clip. */
.tl-row .t b { display: block; font-size: var(--t-cell); font-weight: 700; color: var(--ink); letter-spacing: -.25px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.tl-row .t span { display: block; font-size: var(--t-small); color: var(--ink-quiet); white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }

.tl-lane { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 6px; height: 64px; position: relative; min-width: 0; }
.tl-cell {
  grid-row: 1; background: var(--ground-card); border-radius: var(--r-4);
  border: 1px solid var(--line);
}
.tl-cell.we {
  background-color: var(--ground-panel);
  background-image: repeating-linear-gradient(135deg, var(--gray-20) 0 3px, var(--ground-panel) 3px 9px);
  box-shadow: none;
}

.tl-bar {
  grid-row: 1; z-index: 2; align-self: center; height: 54px;
  border-radius: var(--r-bar); display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-3) 0 var(--sp-2); min-width: 0;
  color: var(--ink-on-st); box-shadow: var(--lift-2);
  /* ⚠⚠ A COLUMN COUNT IS NOT A WIDTH, AND THAT IS WHY THIS IS HERE.
     ui.js drops the chip and the label under four columns and the icon
     under three, which is the doctrine and is right about INTENT: a
     two-day bar is not a place for a sentence. It cannot be right about
     PIXELS, because a column is 52px wide over an 18-day window and 23px
     wide over a 40-day one, so the same four columns are 209px on one
     screen and 94px on another. Measured 2026-09-03 on Today › Sourcing:
     a four-column bar of 201px held a 30px icon, a 102px chip and 95px
     of label in 34px of room, and `bodyOverflow` went red.
     A container query asks the ONE question that actually decides it —
     how wide is this bar, now — and the words are in `title` either way.
     The chip goes first because the label is the fact and the chip is
     the aside. ⚠ If tokens.css ever stops sizing the icon at 30px or the
     gap at --sp-2, re-measure these two numbers; they are the chrome
     around the words, not a taste. */
  container-type: inline-size;
  container-name: tlbar;
}
@container tlbar (max-width: 300px) { .tl-bar > .chip { display: none; } }
@container tlbar (max-width: 170px) { .tl-bar > .lbl  { display: none; } }
.tl-bar .ic { width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--glaze); display: grid; place-items: center; flex: none; color: var(--ink); }
.tl-bar .ic svg { width: 15px; height: 15px; }
.tl-bar .lbl { font-weight: 600; font-size: var(--t-cell); letter-spacing: -.25px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.tl-bar .chip { font-size: var(--t-tiny); font-weight: 700; border-radius: var(--r-pill); padding: 4px var(--sp-2); background: var(--glaze); color: var(--ink); white-space: nowrap; flex: none; }
.tl-bar.s1 { background: var(--st1); }
.tl-bar.s2 { background: var(--st2); }
.tl-bar.s3 { background: var(--st3); }
.tl-bar.s4 { background: var(--st4); }
.tl-bar.s5 { background: var(--st5); }
/* ⚠ WHITE ON --st5 IS 2.98:1 AND FAILS EVEN THE LARGE-TEXT FLOOR. The
   mockup sets it. --ink on --st5 is 4.90:1, so the ink moved and the
   ramp did not — the same fix, for the same reason, as white-on-cheek. */
.tl-bar.s6 { background: var(--st6); color: var(--ink-on-st6); }
.tl-bar.s6 .ic, .tl-bar.s6 .chip { background: var(--glaze); color: var(--ink); }
/* a promise, or a silence: dashed, and it carries no fill because there
   is nothing behind it yet. --ink-body, because a hollow bar sits over
   whatever cell it crosses and one of those is the weekend hatch. */
.tl-bar.hollow { background: none; box-shadow: none; border: 2px dashed var(--brand-hair); color: var(--ink-body); }
.tl-bar.hollow .ic { background: var(--ground-card); color: var(--ink-body); }
.tl-bar.crest { background: var(--crest-ground); border: 1px solid var(--crest-edge); color: var(--crest-ink); box-shadow: var(--lift-1); }
.tl-bar.crest .chip { background: var(--crest); color: var(--ink-on-cheek); }
.tl-bar.yes { background: var(--yes-ground); border: 1px solid var(--yes-edge); color: var(--yes); box-shadow: var(--lift-1); }
.tl-bar.yes .chip { background: var(--ground-card); color: var(--yes); }
/* ★ THE ONE FLOATING THING, AND THERE IS AT MOST ONE PER TIMELINE.
   ⚠ NO ROTATION. The mockup tilts it. A rotated box grows its own
   bounding rectangle, which is the thing the overflow walk measures, so
   a tilt on the rightmost bar is a finding nobody meant to write. It
   lifts instead. */
.tl-bar.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--lift-3);
  transform: translateY(-6px);
  color: var(--ink);
}
.tl-bar.glass .ic, .tl-bar.glass .chip { background: var(--ground-card); color: var(--ink); }

.tl-now {
  position: absolute; top: -10px; bottom: -10px;
  left: calc((var(--now) + .5) * 100% / var(--cols));
  width: 0; border-left: 2px dashed var(--brand); z-index: 3; pointer-events: none;
  transform: translateX(-1px);
}
.tl-legend { grid-column: 1 / -1; display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--t-small); color: var(--ink-body); padding: var(--sp-1) var(--sp-1) 0; }
.tl-legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.tl-legend i { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.tl-legend i.dash { border: 2px dashed var(--brand-hair); }
.tl-legend i.s1 { background: var(--st1); } .tl-legend i.s2 { background: var(--st2); }
.tl-legend i.s3 { background: var(--st3); } .tl-legend i.s4 { background: var(--st4); }
.tl-legend i.s5 { background: var(--st5); } .tl-legend i.s6 { background: var(--st6); }
.tl-legend i.crest { background: var(--crest); } .tl-legend i.yes { background: var(--yes); }

/* ★ A ROW WITH NO BAR IS NOT A ROW WITH A ZERO-LENGTH BAR. A job whose
   first message nobody dated cannot be placed on a day, so the lane
   says so in words and draws nothing. */
.tl-lane .tl-said { grid-row: 1; grid-column: 1 / -1; align-self: center; font-size: var(--t-small); padding-left: var(--sp-2); }
/* the whole instrument, with nothing in it: same footprint, dashed. */
.tl-hollow {
  border: 1.5px dashed var(--line-firm); border-radius: var(--r-panel);
  min-height: 148px; display: grid; place-items: center; padding: var(--sp-5);
  font-size: var(--t-cell); color: var(--ink-quiet); text-align: center;
}

@media (max-width: 900px) {
  .tl { grid-template-columns: 200px minmax(0, 1fr); }
  .fun { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* =====================================================================
   §13  THE COURSE.                                     added 2026-09-04

   Two surfaces and one layer: the page that explains the desk's own
   words, and the single coach mark that offers it once. `course.js`
   holds the reasoning; this section holds every declaration either of
   them uses, because tokens.css is the only file in this folder that
   may name a colour and a layer with a private stylesheet would be a
   second palette nobody checks.

   ★★ NO CONTROL IN THIS SECTION IS EVER `--cheek`, AND FROM
   2026-09-04 EXACTLY ONE PICTURE IS. The rule was "there is no --cheek
   here at all", and the redesign changed it deliberately rather than
   quietly, so the old wording is replaced by the new one and the reason
   is written down.

   Orange means "the one thing worth doing on this screen" and the
   course is never that thing: it is a note on top of the screen that
   is. Its CONTROLS are still `.pillbtn`, never `.act`, and that has not
   moved. What changed is that the page stopped DESCRIBING orange and
   started SHOWING it: the card headed "Orange" holds a real `.act` in
   the real `--cheek`, because a lesson painted in a lookalike token
   goes wrong the first time the token is regraded and the person being
   taught is the one who finds out.

   ⚠ THAT IS SAFE FOR ONE STRUCTURAL REASON AND IT IS NOT A TASTE
   DECISION. `audit.js`'s `oneAction` counts orange by computed colour
   inside `.main`. This layer is a child of `#app` and a SIBLING of
   `.desk`, so it is outside `.main` — a mount decided when the layer
   was written, for four other checks, and written down in course.js §4.
   The desk's own one action, behind the page, is still the only orange
   in `.main`. `course.fixture.html` proves it rather than asserting it:
   one control MOVES the specimen into `.main` and requires
   `__oneAction()` to go red, and another paints a loose `--cheek` in
   the layer and requires the layer's own count to go red. The count is
   now "exactly one cheek and exactly one crest, and both inside a
   `[data-specimen]`", never "none".

   ⚠ A SPECIMEN IS A PICTURE, NOT A CONTROL. `.csspec` is
   `pointer-events: none` and holds no focusable element: the row menu
   is rendered out of spans, the orange is a `<span class="act">`, and
   the rail buttons are `<span class="nav">`. A control that does
   nothing when pressed is the defect §17 names in the top bar.

   ⚠ NO SCRIM, NO BLUR, NO DIMMING, ANYWHERE. Two reasons, and the
   second one is binding. A scrim would make this a modal, and the desk
   underneath has to stay live and pressable: the layer is
   `pointer-events: none` and only its own two boxes take a press.
   And her portrait is never degraded (§4, CONTRACT §9): the page and
   the mark each carry her face at full strength, so a `.course
   { opacity: … }` two levels up is exactly the defect audit.js's
   herIntact walks the whole tree to find.

   ⚠ z-index 50, UNDER the row menu's 60. A menu opened on the desk
   while the page is up belongs on top of it: the menu is the thing
   being pressed and the page is the note about it.
   ===================================================================== */

:root {
  /* ★ DECLARED HERE, WITH ITS DEFAULT, AND OVERRIDDEN PER LAYER BY
     course.js. audit.js's `everyTokenResolves` resolves every var()
     against :root and reports a name nothing declares, which is how
     this one was caught the first time it was used: a token set only
     from JavaScript looks exactly like a typo to that check, and a
     typo'd token resolves to NOTHING rather than to a fallback.
     0 is the honest default: the laptop's rail is a column and takes
     no space off the foot of the screen. */
  --course-foot: 0px;
}

.course {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;                     /* the desk under it stays live */
}
.course > * { pointer-events: auto; }

/* ── the page ─────────────────────────────────────────────────────── */
/* It docks to the right rather than sitting in the middle: centred, it
   would cover the rail it is talking about, and the whole point is that
   the desk is readable behind it. */
.coursepage {
  position: absolute; right: var(--sp-6); top: var(--sp-6); bottom: var(--sp-6);
  /* ⚠ 430px BECAME 520px WITH THE CARDS, AND THE DOCK IS THE LIMIT ON
     IT. Six cards each holding a real component need the room: the row
     menu specimen is the desk's own 232px and the rail specimen is
     three 46px buttons with the badge hanging off the shoulder of one.
     It stops at 520 because the whole argument for docking right is
     that the rail it is talking about stays visible; measured at 1440
     the rail, the tabs and the screen behind are all still readable. */
  width: min(520px, calc(100vw - var(--sp-12)));
  display: flex; flex-direction: column;
  background: var(--ground-card); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--lift-3);
  overflow: hidden;
}
.cshead {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.cshead-t { flex: 1 1 auto; min-width: 0; }
/* ★ THE TITLE IS THE BIGGEST THING ON THE PAGE AND NOTHING TIES IT.
   The type law is label 18, ordinary fact 24, answer 36. This page
   draws no answer — it holds no figure it measured — so its ceiling is
   24, its card headings are the label 18 under it, and her sentences
   are 14.5 under those. `oneThingIsBiggest` cannot see this layer (it
   walks `.main`, and CONTRACT §6 is the reason this layer is outside
   it), so `course.fixture.html` measures the same thing here instead,
   with the same two arms: the title must be biggest, and alone. */
.cshead h2 {
  margin: 0; font-size: var(--t-h2); font-weight: 800; letter-spacing: var(--tr-h2);
  color: var(--ink);
}
.cscap { display: block; font-size: var(--t-small); color: var(--ink-quiet); }
.csbody {
  flex: 1 1 auto; overflow-y: auto;
  /* the cards are white on the plate's ground, so the stack does the
     depth and a hairline round every card does not. §3's four grounds,
     one level down. */
  background: var(--ground-plate);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.cscard {
  background: var(--ground-card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--lift-1);
  padding: var(--sp-4);
}
.cscard h3 {
  margin: 0 0 var(--sp-3); font-size: var(--t-h3); font-weight: 800;
  letter-spacing: var(--tr-h3); color: var(--ink);
}
/* ★ ONE CLASS FOR EVERY SENTENCE OF HERS, ON BOTH SURFACES, and the
   fixture reads it: `.csline` is how a check knows which words on this
   layer are claimed to be hers, and `data-say` says which of the ten. */
.csline {
  margin: 0 0 var(--sp-2); font-size: var(--t-body); line-height: 1.55; color: var(--ink);
}
.csline:last-child { margin-bottom: 0; }

/* ── the specimens ────────────────────────────────────────────────── */
/* ⚠ NOTHING IN HERE IS PRESSABLE AND NOTHING IN HERE IS FOCUSABLE. It
   is a picture of a control drawn by the control's own rules; the
   markup carries no button and no tabindex, and this is the second
   half of that. A specimen that could be pressed would be a control
   that does nothing, which is exactly what §17 keeps out of the top
   bar. */
/* ★ THE WELL IS WHAT MAKES A SPECIMEN READ AS ONE. A component drawn
   straight onto the card ground is indistinguishable from the card's
   own furniture — "Nobody has said" in grey under a heading reading
   "Nobody has said" is a caption, not an exhibit. The sunk ground is
   §3's, one level under the card, and it is the same well on all five
   so the eye learns the frame once. */
.csspec {
  pointer-events: none;
  margin: 0 0 var(--sp-3);
  background: var(--ground-sunk); border-radius: var(--r-3);
  padding: var(--sp-4);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  min-width: 0;
}
.csspec:last-child { margin-bottom: 0; }
/* ⚠ THE WELL HUGS WHAT IS IN IT, except the refusal. A full-width box
   round a 150px button is mostly empty ground, which reads as a panel
   that failed to load rather than as an exhibit. The refusal keeps the
   full width because that is the width a screen draws it at, and its
   own sentence needs the measure. */
.csspec { width: -moz-fit-content; width: fit-content; max-width: 100%; }
/* the rail specimen needs room above it for the badge on the shoulder */
.csspec[data-specimen="rail"] { gap: var(--sp-5); padding-top: var(--sp-5); }
/* the refusal and the row menu are blocks, not chips in a row */
.csspec[data-specimen="yellow"], .csspec[data-specimen="verbs"] { display: block; }
.csspec[data-specimen="yellow"] { width: auto; }
.csspec .refusal { margin: 0; }
/* her sentence keeps reading size inside the panel. `.refusal p` takes
   it to 12px, which is right for a second line under a refusal and
   wrong for the one sentence this card exists to say. The crest ink it
   inherits is --crest-ink-2, 5.8:1 on --crest-ground, measured. */
.csspec .refusal p.csline { font-size: var(--t-body); margin: 0; }
/* ⚠ THE ROW MENU IS THE REAL `.menu` AND IT IS NOT FLOATING HERE. The
   live one is `position: fixed` against the viewport so no ancestor can
   clip it (CONTRACT §10); a specimen has to sit in the card. Everything
   else about it — the width, the ground, the lift, the items — is the
   menu the desk draws. */
.csspec .menu {
  position: static; z-index: auto; max-width: 100%;
}
.csspec .none { font-size: var(--t-body); }
.csfoot:empty { display: none; }
.csfoot { padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--line); }

/* ── the coach mark ───────────────────────────────────────────────── */
/* The ring is drawn AROUND the real control, never over it and never
   instead of it: the thing the person presses is the desk's own. */
.coachring {
  position: fixed; border: 2px solid var(--brand); border-radius: var(--r-panel);
  box-shadow: 0 0 0 4px var(--brand-ring); pointer-events: none;
}
.coachmark {
  position: fixed;
  /* ⚠ THE HIDE IS SET INLINE BY course.js AND CLEARED BY UI.placeNear,
     exactly as ui.js:739 does it for the row menu. It cannot live here:
     `placeNear` clears the INLINE value, and a stylesheet rule saying
     `visibility: hidden` would survive that and leave a correctly
     positioned bubble nobody can see. Measured 2026-09-04. */
  width: min(340px, calc(100vw - var(--sp-6)));
  background: var(--ground-card); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--lift-3);
  padding: var(--sp-4);
}
.cmsay { display: flex; align-items: flex-start; gap: var(--sp-3); }
.cmacts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

@media (max-width: 900px) {
  /* the page becomes a sheet. The rail is the five-tab strip at the
     foot on a phone, so the sheet stops short of it: a note that covers
     the way out of the screen it is annotating is a trap with a close
     button. */
  .coursepage {
    left: var(--sp-2); right: var(--sp-2); top: auto;
    /* ⚠ --course-foot IS MEASURED OFF THE REAL STRIP by course.js. A
       guess would put the sheet ON the tab strip, and the strip is the
       only way off the screen the sheet is annotating. It measured
       74.2px at 375 on 2026-09-04, which is exactly the sort of figure
       that moves the next time a label wraps, so nothing here holds it
       and its only default is the 0 declared at the top of §13. */
    bottom: calc(var(--course-foot) + var(--sp-2));
    /* ⚠ 62vh BECAME 74vh WHEN THE CARDS ARRIVED. Measured at 375x812
       on 2026-09-04: 62vh left 503px, and once the head, the foot and
       one card with its specimen are in it a reader saw a card and a
       third. It still grows UPWARDS only — the foot is measured off the
       real tab strip, so raising this cannot put the sheet on top of
       the only way off the screen it is annotating. */
    width: auto; max-height: 74vh;
  }
  /* ⚠ THE TITLE WRAPS TO TWO LINES HERE AND IT IS NOT ALLOWED TO
     SHRINK. At 24px "How this desk works" needs about 230px and the
     sheet's head has about 180 beside her portrait and the Close pill.
     Taking it to 18 would tie it with the card headings under it, which
     is the flattest possible top-two gap and the exact fault §3b
     records against the screen title. So it wraps, and the row aligns
     to the top so her portrait sits beside the first line rather than
     floating between the two. */
  .cshead { align-items: flex-start; }
  .coachmark { width: calc(100vw - var(--sp-4)); }
  /* ⚠ THE RAIL SPECIMEN CHANGES SHAPE HERE AND THAT IS CORRECT. §3b's
     `.nav` rules are not scoped to `.rail`, so below 900px the specimen
     becomes the phone's tab-strip button: icon over word, `flex: 0 0
     20%`, the badge above the icon rather than on its shoulder. That is
     the button the reader will actually meet on this device, which is
     the whole point of showing one instead of drawing one. The three of
     them are given a floor so they do not collapse in the sheet. */
  .csspec[data-specimen="rail"] .nav { flex: 0 0 auto; min-width: 72px; }
}
