/* app2/ui/tokens.css — every color, size, radius, space and duration of the interface standard
   (screenplay 3.0; M87), in one file. Nothing else in the CSS or the JS carries a raw value:
   change a token here and every screen follows. The values are Workbook, the default theme;
   ui/themes.js writes the same names on <html> for every other theme, so a theme never reaches
   into a stylesheet. Loaded first, before app.css. */

:root{
  /* ---------- color (3.0, Color): the ground and the ink. Workbook's greys are a cool slate (OKLCH hue 250, chroma under 0.017; palette
     sprint, 2026-10-13: crisper than Excel's green-grey cast, so the lanes read clean and a card stands off the page) ---------- */
  /* the site's greys are the Exercism look's (register UI-35, Wolf 2026-10-28 23:17: "I like exercism"): a cool slate a touch bluer
     and lighter than the palette sprint's; the workspace keeps the greys it was approved in (the block after the light sheet's) */
  --paper:#FBFCFE;        /* the page ground, never pure white; a touch deeper than the sheet */
  --sheet:#FFFFFF;        /* the sheet, panels, tables */
  --chrome:#F1F3F9;       /* the Ribbon's tab row, the toolbar row, the Name Box, the sheet's headers, quiet buttons */
  --line:#D7DBE6;         /* hairlines */
  --grid:#E1E4ED;         /* the sheet's gridlines (the game's sheet keeps its own: html[data-sheet="white"] .gridwrap) */
  --edge:#737A81;         /* a control's edge (3 to 1) */
  --ink:#12181E;          /* text */
  --ink-2:#525E75;        /* secondary text: the Exercism look's slate (#5D6B85) a step deeper, so it holds 3.0's 6.3 on the paper and 5.8 on the chrome and the band (5.8 on the tint plate) */
  --ink-3:color-mix(in srgb, var(--ink-2) 75%, var(--sheet));   /* a disabled control's word (controls review 2d): the secondary ink a quarter of the way to the sheet, so it reads as off beside ink-2 and still holds 3 to 1 on the sheet and the chrome; worked from the theme's own ink-2 and sheet, so every theme has it */
  --red-ink:color-mix(in srgb, var(--red) 80%, var(--ink));   /* an error's words (the kit's field error, the drill forms, the club's): each theme's own red with a fifth of its own ink, so it holds 5 to 1 on paper, sheet, chrome and band in every theme, where the red alone fell to 4.0 on the chrome of nine light themes' cards (A-grade pass 2026-11-18; the kit owner's approval) */
  --rail:#12181E; --rail-hi:#2A3139; --rail-text:#D5DADE; --rail-sub:#B6BBC1;   /* dark grounds: the scrims, the coach marks (named for the retired left rail) */
  --note:#FFF6C7; --note-ink:#12181E; --note-edge:#B9A53C;   /* a note on the sheet: Excel's yellow paper and dark ink, the same in every theme */
  /* the teacher (LW-27, his word 2026-10-31 06:02: "direction 3, yes, different color"; violet since his play of 13:05, "ink plus
     the yellow strip is ugly"): the second cursor that walks the sheet on the teacher's turn, its trail, the lit column letter and
     row number, the strip's edge and its pale tint. The same in every theme, as the note is (the game sheet is never recoloured).
     The colour is his to change: one change, --instr (and --instr-on, the label on it, if the colour is light); the ink, the
     line, the tints and the strip follow it */
  --instr:#6941C6; --instr-on:#FFFFFF;
  --instr-ink:var(--instr); --instr-line:var(--instr);
  --instr-tint:color-mix(in srgb, var(--instr) 6%, var(--sheet)); --instr-band:color-mix(in srgb, var(--instr) 4%, transparent); --instr-trail:color-mix(in srgb, var(--instr) 8%, transparent);
  --instr-glow:color-mix(in srgb, var(--instr) 18%, var(--sheet));   /* the glow round a Ribbon control the teacher's key just worked */
  --instr-strip:color-mix(in srgb, var(--instr) 10%, var(--sheet));   /* the strip's ground on the teacher's turn */
  --spot-fade:.3;   /* Spotlight (his pick 2026-10-31 15:45, and 22:30: the fade must be at least 70 percent): a filled cell, the Ribbon and the tabs outside the goal's area, faded in place; out of play, not for reading, so the text floor does not apply (contrast.test.js holds the number) */
  --red:#C23B2A;          /* the reviewer's pen, a note's corner, errors */
  --red-tint:#FAEFEE;     /* a miss's ground (Rapid-fire's strip): the red faint over the sheet; on a dark theme the chrome (themes.js: no maroon wash) */
  --on-fill:#FFFFFF;      /* text on a deep fill (each fill names its own label: --<mode>-on, --ch<n>-on, --team-<id>-on) */
  --plate-neutral:#EEF1F8;   /* the tint plate: the one box on an app page (Up next), the landing's demo panel */
  --band:#F1F3F9;         /* the page head's band (templates.css .tpl-band): the tint from the top bar to the foot of the page head, edge to edge */
  --keytip:#12181E; --on-keytip:#FFFFFF;   /* a KeyTip (palette sprint, Round 1): the product's keycap drawn dark, so it stands off whatever it sits on: the ink as its face, the sheet as its legend (on a dark theme the inverse), ringed in the mode's line with a 2px lower edge (--kt-bottom); themes.js sets them to ink and sheet */

  /* ---------- the workspace's chrome (palette sprint; IP audit looks 13 and 15 to 17): the Ribbon, the title bar and the sheet's foot take
     the THEME's own tokens, so every theme reaches the Ribbon instead of stopping at the sheet's edge (Newsprint's paper, Phoebe's blush, the dark
     themes' charcoal). The eight hard Windows greys are gone; the --xl names stay as aliases because workspace.css reads them. The green functional
     accents (the selected tab's bar, the active sheet tab's bar, the selected headers, the cell cursor and its handle, a toggle that is on) are the
     brand: --learn, a green of our own at hue 164, not Excel's 152 ---------- */
  --xl-green:var(--learn);          /* the selected tab's bar, the active sheet tab's bar, the cell cursor, the fill handle */
  --xl-green-ink:var(--learn-ink);  /* the selected tab's and the active sheet tab's words */
  --xl-bar:var(--chrome);           /* the tab row and the sheet's foot */
  --xl-body:var(--sheet);           /* the Ribbon's body */
  --xl-line:var(--line);            /* the Ribbon's hairlines and group separators */
  --xl-hover:color-mix(in srgb, var(--ink) 8%, transparent);   /* a Ribbon control under the pointer: the ink at 8%, which works over the tab row and the body in every theme */
  --xl-press:var(--learn-tint);     /* a Ribbon toggle that is on */
  --xl-ink:var(--ink);              /* Ribbon labels */
  --xl-ink-2:var(--ink-2);          /* group names, the dimmed tabs */
  --xl-hdr:var(--learn-tint);       /* the sheet's headers for the selected rows and columns: where you are, in the brand's tint */
  --xl-hdr-ink:var(--learn-ink);    /* their numbers and letters */
  --cell-cursor:var(--learn);       /* the active cell's outline and the selection's edge: one colour, the brand's, in every mode (the ghost's blue is still #1F4FD1) */
  --point-w:2px; --point-dash:6px;   /* point mode's dashed box round a pointed range: its line and each dash (app.css td.pt-range) */
  --xl-font:var(--font);            /* the Ribbon in the site's own face (Hanken Grotesk) on every OS, as screenplay 3.0 says; the sheet keeps --cellfont */

  /* ---------- the mode colors: fill, ink (text on a tint or the ground), tint, the label on the fill (-on) and the fill under the pointer (-hover).
     ONE COLOUR SYSTEM, ONE WEIGHT (palette sprint, final, 2026-10-13, Round 2; themes.js, THE COLOUR SYSTEM). Every lane is bright and carries
     the ink: OKLCH L 0.72, chroma at the gamut's edge (blue capped at 0.13, violet at 0.15); hues teal 211, blue 258, violet 300, tangerine 56.
     The brand green (hue 164) is the one deep fill and carries white (L 0.52), so the primary action leads by weight on every page. Hover moves
     a fill a step away from its label. Each mode's LINE (-line) is the colour where it must be seen on its own (a focus ring, an outline on the
     sheet, a progress bar), 3 to 1 on the page: a deeper step of the hue on a bright lane, the fill itself on the brand. A decorative rule beside
     the words that name the mode (the title bar's foot, a card's top rule, a tab's underline) is the fill. A warm hue never colours text on a
     light ground: the Daily's and the clock's words are the ink. Red is the one saturated dark colour and amber the one bright surface; no mode
     reaches either. tests/contrast.test.js holds every pair ---------- */
  --learn:#0B7C58;     --learn-ink:#04593E;     --learn-tint:#DBF8EA;     --learn-on:#FFFFFF;     --learn-hover:#04593E;     --learn-line:#0B7C58;     /* Learn, lessons, progress, XP, a right answer, the cell cursor, the wordmark: the brand, a green of our own (hue 164), not Excel's */
  --drills:#70A6F5;    --drills-ink:#1B4D95;    --drills-tint:#E9F1FD;    --drills-on:#12181E;    --drills-hover:#7DB1FE;    --drills-line:#578BD9;    /* Drills: a clear cornflower cobalt, bright with an ink label (Round 2: one weight) */
  --daily:#F4820B;     --daily-ink:#12181E;     --daily-tint:#FEEDDD;     --daily-on:#12181E;     --daily-hover:#FE8F2F;     --daily-line:#D36F07;     /* The Daily: tangerine, bright with an ink label (Wolf, 2026-10-13: not brown, not burnt orange); its wash an apricot */
  --rapid:#16B8D0;     --rapid-ink:#095A66;     --rapid-tint:#D6F7FE;     --rapid-on:#12181E;     --rapid-hover:#17C4DD;     --rapid-line:#0F98AB;     /* Rapid-fire: a bright teal (Wolf, 2026-10-12: teal is good; never pink or anything that reads as a wrong answer) */
  --challenges:#FD6C95;--challenges-ink:#8D163C;--challenges-tint:#FDE7EE;--challenges-on:#12181E;--challenges-hover:#FE7C9F;--challenges-line:#D6225C;/* Challenges: rose (Wolf, 2026-10-27 17:25: "shift them now, going to be too close", when the Leaderboards took the purple), bright with an ink label like every lane */
  --boards:#CE77E9;    --boards-ink:#71178C;    --boards-tint:#F8E7FD;    --boards-on:#12181E;    --boards-hover:#D489EC;    --boards-line:#BE4BE2;    /* Leaderboards: an orchid matched to its mark's numerals (Wolf, 2026-10-27 17:22: "make the leaderboard theme purple"; 17:25: "shift the purple to match the icon but still in theme with our color sets"), bright with an ink label like every lane */
  --clock:#F0A81C;      --clock-ink:#12181E;      --clock-tint:#FDF1D3;      --clock-on:#12181E;        --clock-line:#C08616;      /* the clock and the tiers: amber is a surface, never text; its words are the ink (Round 1: the dark gold read brown); --clock-on the label on an amber fill; --clock-line the gold as an edge, 3 to 1 on the page (UI-63: the outlined Upgrade) */
  --right:#0B7C58; --right-ink:#04593E; --right-tint:#DBF8EA; --right-on:#FFFFFF;   /* the verdict's green: a right answer, a hit, a done tick, in every mode and every theme (Round 1: Learn is not green in four themes) */
  /* the chapters' colors (R10): Wolf's approved order (green, blue, purple, teal, red, gold) at the LABEL weight (cool chroma 0.11, deeper and
     quieter than a lane), each turned a little off its mode's hue so a chapter mark never reads as a mode (Data and Lookups at 186, clear of
     Rapid-fire's 211). Finance's red is a claret at half the pen's chroma (a chapter is not an error); Valuation's gold is a bright yellow gold
     (hue 95, 18 degrees off the clock's amber) with the ink as its label and a deeper gold as its 1px edge.
     themes.js fits them to every theme from a light and a dark base */
  --ch1:#3B834E; --ch1-ink:#11602D; --ch1-tint:#E0F7E4; --ch1-on:#FFFFFF; --ch1-line:#3B834E; --ch1-hover:#11602D;   /* Foundations */
  --ch2:#3277AE; --ch2-ink:#055387; --ch2-tint:#E6F2FD; --ch2-on:#FFFFFF; --ch2-line:#3277AE; --ch2-hover:#055387;   /* Formatting */
  --ch3:#895D9E; --ch3-ink:#653B79; --ch3-tint:#F7EBFE; --ch3-on:#FFFFFF; --ch3-line:#895D9E; --ch3-hover:#653B79;   /* Formulas */
  --ch4:#0D837A; --ch4-ink:#0B5C56; --ch4-tint:#D6F9F4; --ch4-on:#FFFFFF; --ch4-line:#0D837A; --ch4-hover:#0B5C56;   /* Data and Lookups */
  --ch5:#9F5A63; --ch5-ink:#793842; --ch5-tint:#FDEBEC; --ch5-on:#FFFFFF; --ch5-line:#9F5A63; --ch5-hover:#793842;   /* Finance and Accounting */
  --ch6:#E6C211; --ch6-ink:#12181E; --ch6-tint:#FAF1CB; --ch6-on:#12181E; --ch6-line:#A1880F; --ch6-hover:#F0CF2E;   /* Valuation */
  /* the team colours (0023): the eight a desk's owner picks from, a fill (the banner's rule, the chip's edge, a swatch), an ink (the tag's letters),
     a tint (the banner's band, the chip's ground), a label (-on) and a line (the chip's edge, the banner's rule) each, at the TAG weight (cool chroma
     0.12; the orange and the gold bright with the ink and a deeper line), so a tag on a board never out-shouts the mode beside it; the team red is a brick, not the verdict's red. themes.js fits them to every
     theme from a light and a dark base (TEAM_COLORS) */
  --team-green:#3B8040; --team-green-ink:#176020; --team-green-tint:#E2F7E2; --team-green-on:#FFFFFF; --team-green-line:#3B8040;
  --team-teal:#097D8D; --team-teal-ink:#095A66; --team-teal-tint:#D6F7FE; --team-teal-on:#FFFFFF; --team-teal-line:#097D8D;
  --team-blue:#406EB3; --team-blue-ink:#204E90; --team-blue-tint:#E9F1FD; --team-blue-on:#FFFFFF; --team-blue-line:#406EB3;
  --team-purple:#7A5DA9; --team-purple-ink:#5B3D86; --team-purple-tint:#F2EDFD; --team-purple-on:#FFFFFF; --team-purple-line:#7A5DA9;
  --team-pink:#A24E76; --team-pink-ink:#7F2E57; --team-pink-tint:#FDEAF2; --team-pink-on:#FFFFFF; --team-pink-line:#A24E76;
  --team-red:#A95046; --team-red-ink:#852F28; --team-red-tint:#FDEBE9; --team-red-on:#FFFFFF; --team-red-line:#A95046;
  --team-orange:#F4820B; --team-orange-ink:#12181E; --team-orange-tint:#FEEDDD; --team-orange-on:#12181E; --team-orange-line:#D36F07;
  --team-gold:#E6C211; --team-gold-ink:#12181E; --team-gold-tint:#FAF1CB; --team-gold-on:#12181E; --team-gold-line:#A1880F;
  --team-navyblue:#1F3A68; --team-navyblue-ink:#1F3A68; --team-navyblue-tint:#EBF0FA; --team-navyblue-on:#FFFFFF; --team-navyblue-line:#1F3A68;
  --team-maroon:#7A2230; --team-maroon-ink:#7A2230; --team-maroon-tint:#FCEDEE; --team-maroon-on:#FFFFFF; --team-maroon-line:#7A2230;
  --team-evergreen:#1F5A35; --team-evergreen-ink:#1F5A35; --team-evergreen-tint:#E3F1E7; --team-evergreen-on:#FFFFFF; --team-evergreen-line:#1F5A35;
  /* the player colours (AT-17; BG-32): the chip a player's initials sit on, on the boards, in the top bar and on their profile; eleven
     free (red, orange, yellow, green, blue, purple, pink, charcoal, navy, maroon, forest) and eight earned (0103), each carrying white initials here (4.5 to 1, with
     a pattern finish over it too) and standing 3 to 1 off every ground a row wears; the guest's a calm gray. themes.js fits them to
     every theme from a light and a dark base (PLAYER_COLORS) */
  --pc-red:#C42F2A; --pc-red-on:#FFFFFF; --pc-orange:#B45200; --pc-orange-on:#FFFFFF; --pc-yellow:#8C6800; --pc-yellow-on:#FFFFFF;
  --pc-green:#2E7B3A; --pc-green-on:#FFFFFF; --pc-blue:#2560C2; --pc-blue-on:#FFFFFF; --pc-purple:#7A42B0; --pc-purple-on:#FFFFFF;
  --pc-pink:#BE2F78; --pc-pink-on:#FFFFFF; --pc-charcoal:#3A4048; --pc-charcoal-on:#FFFFFF;
  --pc-navyblue:#1F3D73; --pc-navyblue-on:#FFFFFF; --pc-maroon:#6E1E1E; --pc-maroon-on:#FFFFFF; --pc-evergreen:#1E5631; --pc-evergreen-on:#FFFFFF;
  --pc-aqua:#007A7B; --pc-aqua-on:#FFFFFF; --pc-azure:#0078AA; --pc-azure-on:#FFFFFF; --pc-iris:#4442B0; --pc-iris-on:#FFFFFF; --pc-magenta:#9D1D9E; --pc-magenta-on:#FFFFFF; --pc-burgundy:#881F38; --pc-burgundy-on:#FFFFFF; --pc-cocoa:#6E492E; --pc-cocoa-on:#FFFFFF; --pc-steel:#376078; --pc-steel-on:#FFFFFF; --pc-lime:#6C7900; --pc-lime-on:#FFFFFF;
  --pc-sub-w:calc(44px * var(--k));   /* the Color and Finish labels at the left of the picker's two rows */
  --pc-lock-bar:6px;   /* a finish still locked: the finish as a bar along the foot of a quiet box that reads "Level n" */
  /* the finishes (BG-32, Fable round 2): a class on the chip (.fin-<id>, components.css) over the player's own colour. The patterns are
     dark lines only (themes.js FIN_PATTERN: a light line would cost the warm colours their 4.5); the foils carry their own tested letter
     colour; the rainbow is a ring. Silver's and gold's light and the ring move only on your own chip (.fin-live) */
  --fin-line:rgba(0,0,0,.32);
  --fin-stripe-gap:3px; --fin-stripe-w:1.5px; --fin-dot-r:1.2px; --fin-dot-soft:1.7px; --fin-dot-step:6px; --fin-check-step:4px;
  --fin-bronze-1:#B07A3E; --fin-bronze-2:#6B4019; --fin-bronze-3:#8A5A2B; --fin-bronze-on:#FFFFFF;
  --fin-silver-1:#F4F6F8; --fin-silver-2:#B9C1C9; --fin-silver-3:#E6EAEE; --fin-silver-on:#12181E;
  --fin-gold-1:#F7DF8A; --fin-gold-2:#D9AE2E; --fin-gold-3:#F3D264; --fin-gold-on:#12181E;
  --fin-sheen:rgba(255,255,255,.55); --fin-sheen-rest:-18%;
  --fin-ring:3px; --fin-ring-lg:4px;
  --fin-rb-1:#FF5A5A; --fin-rb-2:#FFD200; --fin-rb-3:#5AE68C; --fin-rb-4:#5AAAFF; --fin-rb-5:#DC6EFF;
  --d-fin-sheen:5s; --d-fin-ring:6s;
  /* the day and night switch in the top bar and the workspace's title bar (BG-35): a pill with a sun and a moon, as tall as
     the bar's other controls (the menu kit's row, UI-31); the knob moves over --d-switch */
  --dn-w:calc(52px * var(--k)); --dn-h:var(--menu-row-h); --dn-knob-inset:calc(4px * var(--k)); --dn-glyph:calc(12px * var(--k)); --dn-glyph-inset:calc(6px * var(--k));
  --d-switch:160ms;
  /* the theme menu (BG-31, menu A): one row a theme in the Light and Dark lists, the live picture's width */
  /* the menu kit (UI-31, docs/specs/menu-kit.md): two widths and one row for every menu, picker, settings row and dialog.
     A panel drops down from its trigger; a card sits on a page or in the middle of the screen; there is no third width.
     The row, its cap column, the tile and the swatch are the same in every box; the gaps are the --s scale. */
  --menu-panel-w:calc(240px * var(--k)); --menu-card-w:var(--pop-w-md); --menu-row-h:calc(32px * var(--k)); --menu-set-h:calc(44px * var(--k));
  --menu-pad:var(--s3); --menu-pad-y:var(--s2); --menu-gap:var(--s2); --menu-cap-w:calc(22px * var(--k)); --menu-cap-h:calc(22px * var(--k));
  --menu-tile-w:calc(72px * var(--k)); --menu-tile-h:calc(48px * var(--k)); --set-tile-w:calc(120px * var(--k)); --set-tile-h:calc(80px * var(--k));   /* --set-tile-*: the theme tile on Appearance's column, wide enough for every name on one line (rule 2) */ --menu-preview-h:calc(144px * var(--k)); --menu-tile-cols:5; --menu-dot:calc(36px * var(--k)); --menu-dot-cols:8;
  --menu-in-h:calc(36px * var(--k)); --menu-kv-w:calc(78px * var(--k)); --menu-kv-h:calc(40px * var(--k)); --menu-chord-w:calc(176px * var(--k)); --menu-lock:calc(12px * var(--k));
  --pc-guest:#69707A; --pc-guest-on:#FFFFFF;
  /* the page's mode: body[data-mode] below picks, and every page takes its color from here */
  --mode:var(--learn); --mode-ink:var(--learn-ink); --mode-tint:var(--learn-tint); --mode-on:var(--learn-on); --mode-hover:var(--learn-hover); --mode-line:var(--learn-line);
  /* the primary button's one color everywhere (design review 3a): Home's green, the main quest's Continue. A mode's color
     lives on its card's frame and picture, never on the button; a chapter's color tints its own primary (HM-18: Learn and
     the main quest set --primary to their chapter) */
  --primary:var(--ch1); --primary-ink:var(--ch1-ink); --primary-on:var(--ch1-on); --primary-hover:var(--ch1-hover); --primary-line:var(--ch1-line);

  /* ---------- the tiers and rarities (3.0, Achievements): a colored word, never a glow ---------- */
  --tier-pass:var(--ink); --tier-pro:var(--ink); --tier-legendary:var(--ink);   /* the tier words (Round 1): the ink; the marks carry the tier in the clock's amber, the count of filled diamonds (green, blue and gold words read as lanes, and Legendary's gold read brown) */
  --rar-common:var(--learn-ink); --rar-rare:var(--drills-ink); --rar-epic:var(--challenges-ink); --rar-legendary:var(--clock-ink);
  /* the Fluency icons (ui/art.js, AT-15): a thin edge so the colour icons sit cleanly on the ground (a faint dark one on light themes, AT-15; a faint light one on dark themes, Wolf's pick 2026-10-16, so dark icons like the speed gauge read),
     the locked badge's gray, the Full Access gem turned point down (45deg sets it upright, its point at the foot), and the Verified and Keyring numeral chip
     (its box and its numeral a share of the art's size: --art-chip and --art-chip-k, ratios, not sizes) */
  --art-edge:drop-shadow(0 0 .6px color-mix(in srgb, var(--ink) 55%, transparent)); --art-locked:grayscale(1) opacity(.45); --art-row:grayscale(1) opacity(.6);   /* a row's mark: the one grey (UI-37 rule 6) */
  --gem-turn:45deg; --gem-fit:.71; --art-chip:.42; --art-chip-k:.3; --art-chip-bg:var(--ink); --art-chip-ink:var(--sheet); --art-chip-edge:var(--sheet);
  /* a team's tag beside a handle (0022; UI-16, Wolf 2026-10-16 21:16): a solid block, the team's fill under its own label
     (--team-<id>-on on --team-<id>, a tested pair in every theme; components.css), or the page's paper on the ink without
     a colour, so it never reads as a title's outline; and the Start a team form's note field and the width of the seats
     box on For teams */
  --team-tag-ink:var(--paper); --team-tag-bg:var(--ink); --team-tag-edge:var(--ink);
  --medal-1:#A8820A; --medal-2:#7D8691; --medal-3:#A25F2C;   /* last week's top 3 clubs' medals (TC-45): gold, silver, bronze; themes.js fits them per theme */
  /* the trophy finishes on a club's tag (TC-71): each its own fill and letters in every theme, so a finish looks the same
     wherever the tag sits (its letters pass 4.5 to 1 on both stops of its fill: finish-contrast.test.js). Gilt: gold foil,
     a light band across deep gold, in the gold edge's line; Ember: deep red fading to burnt orange; Plum: deep plum fading
     to orchid; those two in white, edged in their deep stop */
  --finish-gilt-a:#F3D774; --finish-gilt-b:#C99A1F; --finish-gilt-ink:#2B1F00; --finish-on:#FFFFFF;
  --finish-ember-a:#7E1F07; --finish-ember-b:#C2410C; --finish-plum-a:#4C1442; --finish-plum-b:#9A3A87;
  --tr-note-h:64px; --tr-seats-w:140px; --check-size:18px; --desk-switch-w:240px;
  /* the weekly goal's ring (BG-22, ui/components/week-goal.js): its size, the track and the filled segment; and the result
     card (BG-12, ui/components/result-card.js): fixed colours, not the theme's, so a saved card looks the same anywhere
     (each text pair is one the contrast test already passes: the ink on white, the white on the brand green) */
  --wg-ring:calc(48px * var(--k)); --wg-ring-sm:calc(32px * var(--k)); --wg-stroke:5; --wg-track:var(--line); --wg-fill:var(--learn); --wg-done:var(--learn);
  --rc-bg:#FFFFFF; --rc-ink:#12181E; --rc-ink-2:#4E565E; --rc-band:#0B7C58; --rc-band-on:#FFFFFF; --rc-mark:#F4820B;
  --ms-min-h:449px;       /* the member sheet's least height: its frozen head (--sp-row) and twelve rows (--row-h), so a member's list shows a dozen before it scrolls */

  /* ---------- type (3.0, Type) ---------- */
  --font:'Hanken Grotesk',system-ui,sans-serif;          /* every label, button, heading and sentence */
  --mono:'JetBrains Mono',ui-monospace,monospace;        /* keys, addresses, formulas, times, the wordmark */
  --cellfont:Arial,'Calibri','Segoe UI',system-ui,sans-serif;   /* the sheet's own face */
  --fx-font:Georgia,'Times New Roman',serif;   /* the formula bar's italic fx */
  /* --k (R10): the site's scale on big windows, so a page that never scrolls fills a big screen with larger type rather
     than blank bands: 1 up to 1800 by 1000, 1.2 on a 1920 by 1080 screen, 1.5 on 2560 by 1440 (the media rules below).
     The type and the site column grow with it. The workspace (html[data-shell="workspace"]) keeps --k at 1 and is drawn
     whole at --ws-z instead (below) */
  --k:1;
  /* the workspace's one scale on big windows (docs/specs/lesson-pane.md, "Big screens"; Wolf, 2026-10-10: 1.3 x a
     laptop on a 27 inch screen, the Ribbon with it): the title row, the Ribbon, the formula bar, the grid, the tabs and every
     surface it mounts on the page draw at --ws-z (CSS zoom), the way display scaling draws Excel. The steps are real window
     sizes: from --ws-n-w by --ws-n-h the workspace draws at --ws-n-z, each z set so the sheet's default 20px row is a whole
     pixel (25, 28, 32px, the spec's row targets; scaling spec 2026-11-18 section 4: the old 1 + (k - 1) x .6 gave 1.12 at the first step, a 22.4px
     row and grid lines between pixels; the spec's 1.1364 and 1.2727 were worked from a 22px row, which measures 20 drawn). ui/ws-scale.js keeps html[data-ws-step] with the window, each line with --ws-hysteresis; index.html's
     boot script sets it before the first paint with the same numbers (a test holds them equal) */
  --ws-hysteresis:24px;
  --ws-1-w:1800px; --ws-1-h:880px; --ws-1-z:1.25;
  --ws-2-w:2200px; --ws-2-h:1100px; --ws-2-z:1.4;
  --ws-3-w:3000px; --ws-3-h:1600px; --ws-3-z:1.6;
  --ws-z:1;
  /* the drill run's pane (spec section 4.3): 320 at a laptop, wider from the first big step (before z), the sheet gives up the width */
  --ws-pane-w:var(--panel-w);   /* 340 at a laptop, as today (the spec's 320 was the window's 25vw share it measured) */
  /* --k-win: the window's step, which the workspace keeps when it sets --k back to 1, for a stage that is not Excel's own
     (Rapid-fire's prompt, keys and result grow on a big screen; its Ribbon and sheet stay Excel's) */
  --k-win:1;
  --fs-landing:calc(54px * var(--k)); --fs-prompt:calc(52px * var(--k)); --fs-time:calc(34px * var(--k)); --fs-hero:calc(34px * var(--k));
  /* the type scale (design review 3c; docs/specs/design-kit.md, "The type scale"): the ramp (--fs-1 to --fs-7), the roles
     and the display steps above (landing, prompt, time, hero) and the clock are the whole scale on site pages; nothing else
     names a size (ui/components/type-scale.js lists them; tests/design-guard.js counts the rest). The roles take a ramp step, apart from
     --fs-panel (17, a card's title) and --fs-key (12.5, a keycap's legend). The workspace keeps its own families for now:
     --wb-fs (the cell text) and --xl-fs (the Ribbon), every workbook size derived from one of those two, the landing demo's
     --dt-*, Rapid-fire's --rf-* and the landing's own scale (--pl-*); the lesson pane's came onto the roles in sprint 1b */
  /* the type floor (UI-58, UI-65): the laptop's .9 step never takes a label under 12px or a sentence under 14px; the four small
     steps and the keycap's legend are floored here, so only the type stops shrinking (space, rows and buttons keep --k; no zoom) */
  --fs-1:max(12px, calc(12px * var(--k))); --fs-2:max(12px, calc(13px * var(--k))); --fs-3:max(14px, calc(14px * var(--k))); --fs-4:max(14px, calc(15px * var(--k)));
  --fs-5:calc(18px * var(--k)); --fs-6:calc(22px * var(--k)); --fs-7:calc(36px * var(--k));
  --fs-title:var(--fs-7); --fs-head:var(--fs-6); --fs-clock:calc(26px * var(--k));
  --fs-item:var(--fs-5); --fs-panel:calc(17px * var(--k)); --fs-body:var(--fs-4); --fs-small:var(--fs-3);
  --fs-label:var(--fs-2); --fs-key:max(12px, calc(12.5px * var(--k))); --fs-min:var(--fs-1);
  /* the page templates' two roles (docs/specs/page-templates.md): a lede under a title, an eyebrow over one (caps) */
  --fs-lede:var(--fs-5); --fs-eyebrow:var(--fs-1); 
  --fw-heavy:800; --fw-bold:700; --fw-semi:600; --fw-key:500; --fw-body:400;
  --lh-tight:1.0; --lh-body:1.5; --lh-print:1.35; --lh-landing:1.1;
  --lh-title:1.2; --lh-head:1.3; --lh-lede:1.55; --fw-title:var(--fw-bold);   /* a template's title, heading and lede (page-templates.md, The rhythm) */
  --print-ink:#12181E; --print-ink-2:#4A5560; --print-line:#C3CAD1; --print-paper:#FFFFFF;   /* the issued certificate on paper (ui/hub.css): dark on white whatever the theme */

  /* the workspace's Excel type: the Ribbon keeps Excel's own sizes (3.0, Type: exempt from the floor) */
  --xl-fs:12px; --xl-btn-h:18px; --xl-big-h:56px; --xl-fs-tab:calc(var(--xl-fs) + .5px); --xl-fs-group:calc(var(--xl-fs) - 1px); --xl-fs-small:calc(var(--xl-fs) - 1px);
  /* the workbook's palette (design review 3d): Excel's cell fills (Alt H H) and font colours, each with its ink; the -dk
     values are the dark theme's sheet-less layer, the light sheet on a dark theme uses the light ones */
  --xl-fill-blue:#9cc3e8; --xl-fill-blue-ink:#153c7a; --xl-fill-gray:#d4d4d4; --xl-fill-gray-ink:#2a2a2a; --xl-fill-yellow:#ffe699; --xl-fill-yellow-ink:#6b5300; --xl-fill-green:#c6e0b4; --xl-fill-green-ink:#274e13; --xl-fill-red:#f2b8b8; --xl-fill-red-ink:#7a1a1a;
  --xl-fill-blue-dk:#1d5080; --xl-fill-blue-ink-dk:#cfe8ff; --xl-fill-gray-dk:#3c4149; --xl-fill-gray-ink-dk:#dfe3e8; --xl-fill-yellow-dk:#5c4a1c; --xl-fill-yellow-ink-dk:#ffe08a; --xl-fill-green-dk:#2c4321; --xl-fill-green-ink-dk:#c9e6b8; --xl-fill-red-dk:#4d2222; --xl-fill-red-ink-dk:#f2bcbc;
  --xl-fc-darkgray:#404040; --xl-fc-blue:#1c62d6; --xl-fc-red:#c00000; --xl-fc-green:#1f8a4d; --xl-fc-purple:#7030a0; --xl-fc-yellow:#8a6300; --xl-fc-orange:#c55a11; --xl-fc-black:#000000; --xl-fc-gray:#7f7f7f; --xl-fc-white:#ffffff;
  --xl-fc-darkgray-dk:#b9bcc2; --xl-fc-blue-dk:#6db1ff; --xl-fc-red-dk:#ff7b66; --xl-fc-green-dk:#5fd68a; --xl-fc-purple-dk:#c08bff; --xl-fc-yellow-dk:#ffd75e; --xl-fc-orange-dk:#ed7d31;
  --wb-fs:13.5px;   /* the workbook's cell text (Excel at 100%); its dialogs, headers and bars derive from it */ --wb-cell-fs:14.67px; --wb-cell-pad:3px;   /* the grid's cell text and padding at 100% (sheet-view.js CELL_FS, CELL_PAD): the sheet thumbnail draws its cells at these times its zoom */ --xl-fs-namebox:14px;
  --fx-tip-shadow:0 2px 6px rgba(18,24,30,.14);   /* the function argument ScreenTip's small shadow (its ground, --fx-tip-bg, is set on .gridwrap below) */

  /* ---------- space (3.0, Layout): one scale ---------- */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px; --s16:64px; --s24:96px;

  /* ---------- radii ---------- */
  --r-btn:8px;    /* buttons, keys, inputs (the Exercism look: 8) */
  --r-card:8px;   /* the task card, menus, dialogs */
  --thumb-w:300px; --thumb-h:140px; --thumb-k:var(--k);   /* the sheet thumbnail (UI-107, the study's A4 big tile): its slot at k 1 and the scale it grows by (the big window holds it at the laptop's .9: the page stops growing there, so the card's longest title keeps its room) */
  --r-plate:12px; /* plates on the landing page */
  --r-plate-mk:16px; /* the marketing template's plate (the product panel on the band; page-templates.md, The look) */

  /* ---------- sizes ---------- */
  --content-side:36px; --side-col:calc(336px * var(--k));   /* a side column grows with the type it holds */
  /* the page shell (R10): the site's centered column, its gutters, the window it fits, a scroll panel's soft fade */

  --page-w:calc(1240px * var(--k)); --page-gutter:clamp(20px, 3vw, 44px); --page-top:calc(24px * var(--k)); --fade-h:calc(32px * var(--k));
  --sp-rail-w:4px; --sp-rail-gap:var(--s2); --sp-fade-top:var(--s4);   /* the scroll list's edge cue (UI-59, UI-65): its rail, the rail's gap from the list, the short fade under its sticky head */
  /* the page frame (register UI-14, Wolf 2026-10-16 02:59 "can we make the sizing and spacing consistent across every page"):
     every page but the landing and the workspace has the same air from the top bar to its first row and from its last row
     to the frame's foot (the footer where one shows, else the window's foot), --frame-v, set once on the shell; and one line
     for the right-hand column (--frame-side-w from the column's right edge): Home's, Learn's and Practice's side cards,
     Contact's and For teams' side cards, and the top bar's Key shortcuts tip all start on it */
  --frame-v:calc(var(--page-top) + var(--fit-v)); --frame-side-w:calc(440px * var(--k));
  --footer-pad:var(--s3);   /* the one footer's air over and under its lines (a short window: --s2, below) */
  /* the top bar (R10): its height, a control's height, the gaps, the player icon and its level tag, a KeyTip badge */
  --top-h:calc(62px * var(--k)); --ctl-h:calc(40px * var(--k)); --ctl-h-sm:calc(38px * var(--k)); --tb-gap:calc(22px * var(--k)); --tb-tab-pad:calc(14px * var(--k));
  /* the top bar's two text sizes (Wolf, 2026-10-15 04:56): the page tabs at one size, every tool on the right (Key shortcuts, Saved, Full Access, the level) at the other */
  --tb-fs-tab:var(--fs-body); --tb-fs-tool:var(--fs-small); --tb-fw-tool:var(--fw-bold);
  --me-size:var(--menu-row-h); 
  /* the Alt tip (option B, Wolf 2026-10-15): docked to the tab row at the tabs' own gap, its words at the tabs' size in the quieter
     weight, its cap in the brand's tint */
  --tb-alt-gap:var(--s1); --tb-alt-fw:var(--fw-semi); --tb-alt-pad:var(--s3); --alt-cap-face:var(--learn-tint); --alt-cap-ink:var(--learn-ink); --alt-cap-rim:var(--learn);
  --kt-size:calc(20px * var(--k)); --kt-r:3px; --kt-ring:1.5px; --kt-shadow:0 2px 6px rgba(18,24,30,.25); --hint-shadow:0 2px 6px rgba(18,24,30,.12);
  --xl-kt-fs:14px; --kt-next-k:1.3; --kt-next-ring:3px;   /* the Ribbon's KeyTips have a 14px legend in every run (UI-98, Wolf 2026-11-15 18:13: "maybe black letters/numbers are too small to see in the top ribbon"; a lesson's teaching run had them first, LW-27); the next key's KeyTip lifts 1.3 times with a 3px ring in the turn's colour (ui/components/ribbon-next.js) */
  --kt-bottom:2px; --kt-rib:20px; --kt-drop:.55; --kt-qat-off:3.5px; --kt-veil:.4;   /* the Ribbon's KeyTips: one 20px cap for the tabs, the commands, the menus and the QAT in every run (UI-98; 16px before, too small to find); a tab letter hangs 55 percent below the tab row so its tab's word stays clear; a QAT number is centred on the title bar's foot (3.5px under its button); the commands step back to 40 percent while only the tab letters are up */
  --tb-art:16px;   /* the top bar's player icon, in whole art pixels (Round 2) */
  --tb-gear-ico:calc(20px * var(--k));   /* the guest's Settings gear, a line icon */
  /* the moments (R10): the celebration pop-out, its art and burst, the banner, the loading card */
  /* THE POP-OUT CARD (PS-41, Wolf 2026-11-06 17:20 "we built a kit ... and you're still showing me fucked up spacings"): every
     card over a scrim takes one of three widths and one air, from menu-kit.css's pop-out card block and nowhere else.
     sm a moment with one number (a level-up, the keep card, a time to beat); md every dialog and the lesson door; lg a moment
     with more to say (the welcome back, the terms gate). A chosen width, never a card's longest string (layout rule 9) */
  --pop-w-sm:calc(320px * var(--k)); --pop-w-md:calc(420px * var(--k)); --pop-w-lg:calc(560px * var(--k));
  --pop-pad:var(--s6); --pop-gap:var(--s2); --r-pop:var(--r-card);
  --pop-art:88px; --pop-art-sprite:64px; --pop-bar:8px;
  --confetti-w:8px; --confetti-h:14px; --confetti-spread:46vw; --confetti-rise:24vh; --confetti-fall:62vh;   /* the new-best confetti (effects.js confetti) */
  --confetti-spread-s:22vw; --confetti-rise-s:14vh; --confetti-fall-s:40vh; --confetti-spread-l:60vw; --confetti-rise-l:34vh;   /* the Daily Race's small sprinkle and big second wave (DY-12) */
  --confetti-rain:110vh; --confetti-sway:3vw;   /* the Daily Race's rain from the top (effects.js confetti from 'top'): how far it falls and how far each piece sways */
  --burst-w:3px; --burst-h:12px; --burst-from:-26px; --burst-to:-52px; --rise:18px;
  --shadow-pop:0 2px 6px rgba(18,24,30,.12), 0 28px 70px rgba(18,24,30,.35); --lift:0 1px 2px rgba(18,24,30,.06), 0 10px 24px rgba(18,24,30,.08);
  --banner-w:calc(372px * var(--k)); --banner-art:calc(56px * var(--k));
  --load-cell-h:16px; --load-key:calc(30px * var(--k)); --load-bar:6px; --load-hop:-4px;
  /* the cell, the mascot (AT-23; ui/components/cell.js): its three sizes (the loading card's; the level pop-out's and the 404's;
     the empty leaderboard's and the phone's), one unit of its 64-unit drawing (its moves are counted in these), its lean
     (counter-clockwise, so the fill handle rises clear of the card's edge), the share of it that shows over a card's top edge,
     and how far the phone's cell sits over the headline's top, in the pocket beside its first line */
  --cell-lg:60px; --cell-md:52px; --cell-sm:48px; --cell-u:1px; --cell-lean:-10deg; --cell-show:.7; --cell-lean-rise:.15; --cell-pocket-up:26px;   /* --cell-lean-rise: how much higher than its showing share the lean lifts its top corner, a share of its size */
  --panel-w:340px; --card-w:330px; --card-gap:16px;
  /* the dock and the lesson pane (docs/specs/lesson-pane.md, "Layout" and "Type scale"; Wolf, 2026-10-10). Sizes at
     the workspace's own scale (its zoom draws them x z on a big window): the dock's width (a quarter of the window, at most a
     panel's), the body's side padding, the tile and its gutter, the goal (20), the teach line (15), the route's caps (17, and
     15 one step smaller or on a long Ribbon leg, 13 for that one smaller), the caption (14.5), the live line (15, its line
     height), a mini cap (13), the tray's and the foot's caps (12.5), the gutter's labels (12), a repeat's corner badge (11)
     and the room it keeps, and how far it sits out past the cap's corner (so it never sits on the legend, even on a cap one step
     smaller), a label (13), Next's line (14), the carried line's room above the tile, a route cap's padding and
     least width, the gap between a leg's keys, the ring around the key to press, a chip's type in the goal; a finished key
     sinks by --key-sunk (its edge flattens, its box keeps its size) */
  --dock-w-vw:25vw; --dock-w-max:var(--panel-w);
  /* the pane polish (docs/specs/pane-polish.md, "The keycap" and "Keycap rule"): a route cap --lpn-cap-h tall, a small
     cap (the tray, the foot, a sentence, the receipt) --lpn-cap-h-sm; the key to press now stands up --lpn-lift on a
     --lpn-due-edge edge with one --lpn-bar-h learn bar --lpn-bar-gap under its chord; a press sinks it --lpn-sink; the chevron
     between keys pressed one after another --lpn-then-w by --lpn-then-h; the tray's fresh dot; the landed line's tick disc; a
     sentence's line height. The pane's type is the scale's (design kit sprint 1b): the goal, the landed line and a pop-up's
     message --fs-item, an address in the goal, the teach line, the live line, a route cap's legend and the + beside
     it --fs-body, a label and the + between small caps --fs-label, a small cap's legend --fs-key */
  --lpn-cap-h:34px; --lpn-cap-h-sm:22px; --lpn-lift:2px; --lpn-sink:2px; --lpn-due-edge:5px; --lpn-bar-h:3px; --lpn-bar-gap:8px;
  --lpn-then-w:calc(13px * .42); --lpn-then-h:calc(13px * .7); --lpn-lab-w:2.6em; --lpn-dot:8px;
  --lpn-ldisc:24px; --lpn-ldisc-top:2px; --lpn-rtick:18px; --lpn-rtick-top:1px; --lh-inline:1.6;
  --lpn-pad:var(--s5); --lpn-tile:28px; --lpn-col:var(--s3); --lpn-slot-top:calc(var(--s6) + var(--s1) / 2);
  --lpn-lh-goal:1.3;
  --ws-tip-bg:var(--ink); --ws-tip-ink:var(--sheet);   /* the workspace's one-line tip (Hold Esc to leave full screen): the light theme's black pill with white words in every theme, over the sheet's light ground (a dark theme sets the same pair) */
  --lpn-cap-pad-y:10px; --lpn-cap-pad-x:var(--s3); --lpn-cap-min:40px; --lpn-cap-min-dense:26px; --lpn-rep-gap:var(--s1); --lpn-rep-pad:var(--s2); --rb-cue-ring:var(--bw-3); --rb-cue-glow:10px; --rb-comet:12px;
 --lpn-caret-h:1.1em;
  --key-sunk:calc(var(--key-edge) - 1px);
  /* the sheet's marks in a lesson (docs/specs/lesson-pane.md, "Marking the target" and "The hit at the target";
     ui/components/sheet-marks.js): the corner brackets (an arm at most --bracket-arm, clamped to --bracket-clamp of its side,
     never under two strokes; their stroke; how far outside the target they sit; their 1px sheet keyline), the target's tint
     inside them, the header bar on the target's column letter and row number (and the row number's notch), the hit's ring
     (it cuts in --ring-from outside the cell and snaps onto the cursor's own line), its burst (four corner ticks travelling
     --burst), the jump trail's stroke, and how far out the brackets start when they lock on. The ring, the burst, the solid, the
     tint and the tray's pop sit a notch up from their first values (register UI-48, his pick 2026-11-01 17:46: "B: a notch up") */
  --bracket-arm:12px; --bracket-clamp:.3; --bracket-w:3px; --bracket-pad:2px; --bracket-key:1px; --bracket-tint:10%;
  /* the from mark (sheet-marks.js paintFromList): a copy goal's source, a dashed outline on the brackets' box: each dash, the gap
     between (stretched so an edge starts and ends on a dash), the stroke */
  --from-dash:6px; --from-gap:4px; --from-w:2px;
  --hd-bar:var(--bw-3);
  --ring-from:7px; --burst:22px; --trail-w:var(--bw-3); --lock-from:24px;
  /* the marks' colors: the brackets, the hit (its ring, its solid with the cell's text in --mark-on, its tint), the burst and
     the trail. On a light theme they are the lesson's own learn colors; on a dark theme the grid stays a light sheet (dark
     chrome, light sheet, as Excel's dark mode draws it: app.css r212), so the marks inside it take the light sheet's values
     (html[data-dark="1"] .gridwrap below). The hit's tint is drawn with --hit-blend over the cells, so their own text stays
     crisp ink: multiply, on the light sheet every theme's grid has */
  --mark:var(--learn); --mark-tint:var(--learn-tint); --mark-on:var(--on-fill); --mark-key:var(--sheet);
  --mark-drills:var(--drills-line); --mark-daily:var(--daily-line);   /* a drill's brackets and the Daily's (the run's own line) */
  --hit-blend:multiply;
  /* a read goal's brackets round the formula in the formula bar (their room across and down); a lesson's dialog stands
     --dlg-gap off the pane and the sheet's data, its top --dlg-lift over the goal's first line */
  --bracket-fbar-x:6px; --bracket-fbar-y:4px; --dlg-gap:24px; --dlg-lift:6px;
  /* their moments (ui/effects.js): the ring snaps on in --d-ring-in and owns the cell for --d-snap; the solid press lasts
     --d-solid, then the tint holds and fades over --d-tint; the burst runs --d-hit-burst from --d-hit-burst-at; the target's
     header bars (or its lit tab) cut at --d-hit-hd; a jump's trail runs --d-jump (out by --d-jump-out, held to --d-jump-hold,
     then its tail retracts); the next target locks on --d-lock-at after a goal lands, its brackets converging over --d-lock,
     its tint in from --d-lock-tint; within a goal the brackets slide to the next stop over --d-bracket-move */
  --d-ring-in:120ms; --d-snap:290ms; --d-solid:150ms; --d-tint:340ms; --d-tint-hold:90ms; --d-hit-burst:260ms; --d-hit-burst-at:90ms; --d-hit-hd:200ms;
  --d-jump:300ms; --d-jump-out:75ms; --d-jump-hold:120ms; --d-lock-at:1000ms; --d-lock:240ms; --d-lock-tint:160ms; --d-lock-tint-in:120ms; --d-bracket-move:160ms;
  --d-cut:1ms;   /* a cut: a state that changes at its moment, with nothing in between */
  /* the goal flow in the pane (docs/specs/lesson-pane.md, "Every key", "A goal lands", "A wrong key"; ui/effects.js
     key-press, stop-reached, landed-line, tick-fly, tray-pop, step-swap, landed-carry, wrong-shake). A key on the route goes
     down --key-press-y and fills solid for --d-key-press, then cuts to sunk; a stop's caption tick draws over --d-cap-tick from
     --d-cap-tick-at. A landing, its times from the key: the live line swaps to the landed sentence at --d-land-live (the old
     line out over --d-live-out, lifting --live-lift; the new in over --d-live-in); the tile squashes to --tile-squash-in and
     springs to --tile-squash-out from --d-land-tile over --d-tile-squash, its number turning to a tick --d-tile-tick in; the
     new keys pop into the tray from --d-land-tray, --d-tray-gap apart, each over --d-tray-pop (from --pop-from, a touch past
     to --pop-over), the count out over --d-count-out and in over --d-count-in; the tick flies into its segment from
     --d-land-fly over --d-tick-fly; the segment fills from --d-land-seg over --d-seg-fill; the old goal and its count leave
     from --d-land-out over --d-step-out, lifting --step-lift; Next swaps from --d-land-next; the next goal arrives from
     --d-land-swap over --d-step-in, rising --step-rise (the count --count-rise, the carried line --carry-rise), starting
     --d-swap-overlap before the old goal has gone so the slot is never empty for a frame. The carried
     line stays max(words x --d-read-word, --d-read-min) + --d-read-pad from --d-land-live, and leaves over --d-carry-out; a
     read goal holds its landing at least --d-read-hold, or its line's reading time and --d-read-wait (the key that ends the
     hold is the read's, never the sheet's, and so is the first key --d-read-grace after it). A wrong key: the ringed chord shakes over --d-shake (--shake-x, then smaller),
     the diagnosis rises --diag-rise over --d-diag-in, the pressed key pops in over --d-wkey-pop. Help's escalation: a nudge
     after --d-nudge (or the goal's reading time and --d-recall-pad), Help rung after --d-help (or --d-help-after the nudge),
     both counted from the goal being playable and again from each key that moves the route on */
  /* a show (LW-27): the instructor presses a key every --d-show-key, holds a tip --d-show-hold, the cap goes down for --d-key-press;
     a show waits --d-show-lead after a landing that has no pause before it starts, so the tick is seen; the strip is --strip-h tall,
     the cap at the cell is the kit's lg cap scaled by --show-cap-k; a tip is at most --show-tip-w wide; the Spotlight card's
     segments narrow to fit its words, their gap going down to --show-seg-gap-min last (Wolf 2026-11-03 19:10) */
  --d-show-key:350ms; --d-show-hold:2000ms; --d-show-move:120ms;
  /* the intro's flow (LW-27, his word 13:13): a landing's tick holds --d-beat-tick (longer when its line needs reading), then the
     next beat starts by itself; the teacher's cursor slides out of the learner's in --d-show-slide and pulses once in
     --d-show-pulse, and the learner's cell pulses --d-show-home as the turn comes back; the lesson's first line holds --d-show-first before the first teacher's turn (asking again every --d-show-retry while the sheet is busy); the strip's edge is --strip-edge; a docked pop
     that re-docks on its sheet (a new goal, the block scrolled away) glides there in --d-pop-glide (Wolf 2026-11-02 16:59: the
     tooltip jumping is jarring), and onto another sheet stands at its place there at once; a learner's cursor under the docked pop turns it see-through, to --pop-under, in --d-pop-fade, and
     back the moment the cursor leaves (round 3 of the steady pop shots: it never moves within a goal, so it lets the cell show);
     a held landed line and a job card never go see-through: the card moves off the cursor's cell instead (module 2 to 4 shots).
     The count drawn under a landed line (.im-rows) brings its caps in one after another, each a --d-menu step, the whole row in
     no more than --d-rows-in whatever its length (a run of 58 presses is one cap with its count; the course lane holds the line
     until the last cap is drawn: inline-marks.js keyRowsMs).
     An untaught part of the screen keeps its place, blurred by --reveal-blur and faded to --reveal-fade, and comes in over
     --reveal-ms */
  --d-pop-glide:180ms; --d-pop-fade:120ms; --pop-under:.15; --d-rows-in:1500ms; --d-beat-tick:1000ms; --d-show-slide:300ms; --d-show-pulse:420ms; --d-show-home:900ms; --d-show-first:2000ms; --d-show-retry:250ms; --strip-edge:4px;
  /* the edge-case rules (Spotlight, 2026-11-02): idle this long with no key, the next cap pulses once (F1 lights at --d-help) */
  --d-edge-nudge:3000ms;
  --reveal-blur:3px; --reveal-fade:.35; --reveal-ms:480ms;
  --strip-h:38px; --show-cap-k:1.6; --show-tip-w:420px; --show-seg-gap-min:1px; --show-gap:var(--s4); --instr-w:3px; --instr-wait-w:2px;
  --d-key-press:60ms; --d-cap-tick:140ms; --d-cap-tick-at:70ms;
  --d-land-live:200ms; --d-land-tick:160ms; --d-tick-pop:260ms; --d-land-keys:260ms; --d-stand:140ms; --d-seg-bump:200ms; --bump:1.6; --d-drum:160ms; --d-drum-gap:30ms; --d-live-in:140ms; --live-lift:3px;
  --d-land-tray:380ms; --d-tray-gap:70ms; --d-tray-pop:260ms; --pop-from:.5; --pop-over:1.22; --d-count-out:80ms; --d-count-in:160ms; --count-rise:4px;
  --d-land-out:1000ms; --d-step-out:120ms; --step-lift:10px; --d-land-swap:1120ms; --d-step-in:220ms; --step-rise:15px;
  --d-read-word:240ms; --d-read-hold:1600ms; --d-read-wait:2000ms; --d-read-grace:1500ms; --d-help-after:12000ms;
  --d-shake:260ms; --shake-x:4px; --d-diag-in:140ms; --diag-rise:4px; --d-wkey-pop:180ms;
  /* the browser's keys and recall (docs/specs/lesson-pane.md, "The keys"): a blur within --d-tab-switch of a Ctrl
     keydown on a Ctrl+PgDn leg means the browser switched tabs; a key asked for from memory shows after max(--d-recall-stall,
     the goal's reading estimate + --d-recall-pad) on its leg, its legend popping in over --d-recall-reveal; the Here and Excel
     labels hang --lpn-lab-gap left of their row's keys in the gutter; the dashed "from memory" cap's border */
  --d-tab-switch:1000ms; --d-recall-stall:5000ms; --d-recall-pad:3000ms; --d-recall-reveal:200ms;
  --d-mirror-hold:900ms;   /* the foot's mirrored leg, landed, keeps its tick this long (or to the next key), then Hide pane is back */
  --lpn-lab-gap:var(--s2); --lpn-blank-bw:var(--bw-1-5);
  /* the pause after a step (LW-12): the gap over its line; a pause's Enter within --d-pause-guard of the landing is the step's own bounce */
  --lpn-pause-gap:var(--s3); --d-pause-guard:350ms; --d-pause-nudge:260ms; --pause-nudge:1.3;   /* a key typed while the pause holds pulses the Enter cap (B8) */
  /* the Here row's Full screen button: the tab row's type (--xl-fs-tab), a slimmer sm button so it sits in the caption column */
  --lpn-fsb-h:28px; --lpn-fsb-px:calc(var(--s1) * 1.5); --lpn-fsb-gap:var(--s1); --lpn-fsb-icon:13px;
  /* the carried line above the next goal's tile: its type, its tick tile's width and the gap after it (a short window's,
     whose slot keeps less room over the tile, one step smaller) */

  /* the five easings of the lesson's moments: out (arrivals), in (exits), snap (a spring), lock (a ring or brackets closing on
     their mark, a touch past it), move (a thing travelling from one place to another) */
  --ease-out:cubic-bezier(.2,.8,.2,1); --ease-in:cubic-bezier(.5,0,.75,0); --ease-snap:cubic-bezier(.3,1.45,.5,1); --ease-lock:cubic-bezier(.2,.9,.25,1.15); --ease-move:cubic-bezier(.5,0,.2,1);
  /* the task card's look (Wolf, 2026-10-09: it must not blend into the sheet): its mode-colored head strip, its edge, the
     lift that sets it off a white grid, and the halo the card and its target share so the eye links them */
  --card-head-pad:6px; --shadow-card:0 1px 2px rgba(18,24,30,.10), 0 6px 14px rgba(18,24,30,.14), 0 22px 48px -10px rgba(18,24,30,.38);
  --card-halo:0 0 0 4px color-mix(in srgb, var(--mode) 22%, transparent);
  /* the spotlight (module 1.1, and any goal flagged spotlight): the sheet dims except the target, the cursor, the card and the
     part of the Ribbon the goal needs; the holes' margin and corner */
  /* the lesson door (the start pop-out, which is also the opening splash for a big workbook): its file line, the bar */
  --door-measure:34em; --door-bar:6px; --door-file-icon:18px;
  --door-cue-gap:var(--s1);   /* the "Starts full screen" cue sits this close under Start: a label of the button, not a line of its own (LW-24) */
  /* the close-out (docs/redesign/specs/close-out.md; ui/components/complete-card.js, close-place.js; lesson-pane.js receipt):
     the card's widths (tall, flat at the band's foot, wide for Details, and Next's width inside the wide card); the medal and
     its flat size, its arcs (lit, and their pop), the outline round the work, the level capsule's tag,
     the lane's widest beside a flat card; the card's rise; the receipt's row padding (short, tall) and lift; XP's ink */
  --run-lost-ink:var(--ink-2); --run-lost-band:var(--line);   /* a tier the clock has run past goes quiet on the run's bar: muted, never the red pen */
  --rail-h:6px; --rail-coin-s:14px; --rail-coin-m:18px; --rail-coin-l:24px; --rail-coin-ring:var(--bw-2); --rail-coin-edge:var(--bw-1-5); --rail-halo:var(--s1); --rail-gap:var(--s2); --d-close-rail:400ms;   /* the result card's medal track: the track, its three medals (Pass, Expert, Legendary), the coin's inner ring and edge, the reached medal's halo, the gap figure's distance under the track */
  --close-gap:var(--s5); --close-gap-in:var(--s2); --close-act-gap:var(--s3); --close-foot-gap:var(--s4);   /* the complete card: one rhythm, --close-gap between its groups (the time or medal, the medal track, the XP line, the actions) and --close-gap-in inside one; Next to its keys; the keys apart in their row */
  --close-odo-h:1em; --close-medal:96px; --close-outline:2.5px; --close-tag:32px; --close-lane-max:340px; 
  --close-rise:18px; --close-from:.96; --close-row-py:var(--s2); --close-row-py-tall:var(--s3); --close-row-lift:6px; --close-xp-ink:var(--ink);   /* the XP count is the ink in every theme (a dark theme's clock ink is gold) */
  /* its clock (ms from the last key; complete-card.js CLOSE_DEFAULTS holds the same numbers): the receipt prints from
     --d-close-receipt (its rows --d-close-row-gap apart, the last stamped over --d-close-last, the clean line at
     --d-close-clean-at); the card rises at --d-close-card over --d-close-rise; the count's steps ease out from --d-close-step-a
     to --d-close-step-b, never past --d-close-count-max (a far card waits --d-close-far for the eye); the stamp; the outline;
     the tabs; the settle; the lane's capsules --d-close-cap-every apart, each held --d-close-cap-hold; a drill's card, count
     and new best; the input rule's repeat; reduced motion's fades. The last goal's landed line is in at once and leaves whole
     at --d-close-leave-at over --d-close-leave, before the receipt prints */
  --d-close-leave-at:400ms; --d-close-leave:80ms;
  --d-close-receipt:480ms; --d-close-head:100ms; --d-close-row:160ms; --d-close-row-at:20ms; --d-close-row-gap:12ms; --d-close-last:220ms; --d-close-clean-at:200ms; --d-close-band:60ms;
  --d-close-card:860ms; --d-close-rise:260ms; --d-close-fade:140ms; --d-close-far:120ms;
  --d-close-step-a:48ms; --d-close-step-b:110ms; --d-close-count-max:560ms; --d-close-step-min:30ms; --d-close-arc:200ms;
  --d-close-stamp:200ms; --d-close-ring:280ms; --d-close-pop:220ms; --d-close-outline-after:60ms; --d-close-outline:260ms; --d-close-outline-hold:240ms; --d-close-outline-out:300ms;
  --d-close-tabs-after:80ms; --d-close-tab-gap:90ms; --d-close-tab:140ms; --d-close-settle:320ms;
  --d-close-ach-beat:1700ms; --d-close-ach-pop:520ms; --d-close-cap-every:1600ms; --d-close-cap-hold:1400ms; --d-close-cap-in:220ms; --d-close-cap-out:160ms;
  --d-close-level-bar:200ms; --d-close-level-fill:1000ms; --d-close-level-roll:600ms; --d-close-level-sub:900ms; --d-close-art-gap:90ms;
  /* the level cell on the finish card (UI-91): the beat runs on the goal landing's own times (--d-ring-in, --d-solid, --d-tint-hold,
     --d-tint, --d-goal); the bar full, the press follows --d-close-level-press later, and the cell cursor lands from --close-level-from */
  --d-close-level-press:60ms; --close-level-from:1.3;
  --d-close-repeat:300ms; --d-close-cut:160ms;
  --d-close-drill-card:240ms; --d-close-drill-rise:280ms; --d-close-drill-count:600ms; --d-close-best-after:160ms; --d-close-best:260ms; --d-close-glow:420ms; --d-close-drill-settle:400ms;
  --ease-spring:cubic-bezier(.3,1.45,.55,1);
  /* the lesson door (and the run panel's cards), crisp on the sheet band beside the pane (ui/components/complete-card.js
     bandBox): the room it keeps from the column letters and the tab row (--cc-gap); how far from the pane it may stand
     (--cc-band, times the workspace's z); a --cc-edge border (the door keeps the hard --cc-drop --line offset; the card on its backdrop takes --shadow-backdrop); a run
     panel card's keys wait --d-card-guard after it appears */
  --cc-gap:var(--s2); --cc-band:1100px; --cc-edge:var(--bw-2); --cc-drop:var(--s1); --d-card-guard:400ms;
  /* the lesson's pop-outs (LW-22: the door, the in-sheet dialogs, the close-out card): each one's centre at this fraction of the
     window's height, the optical centre a little above the middle where the eye rests on a laptop or desktop monitor; the
     pop-outs' own rules (the column letters, the pane, the protected cells) can only move one lower */
  --pop-anchor-y:.42;
  /* Home and Learn (R10, phase 2: the calm pages). The air is set by the window's height (and --k), so a page fills the
     window it has: tight at 657px tall, open at 900 and up. Rows, cells, the hero's art and the tiles are sizes here too */
  --fit-v:clamp(8px, calc(4vh - 18px), calc(56px * var(--k))); 
  --home-hero-pad:clamp(18px, calc(7vh - 26px), calc(56px * var(--k)));
  --go-big-min:calc(210px * var(--k)); 
  /* Home's play cards and course card (app/home-play.js; HM-4): a mode's art box, a card's padding (the window's height, like
     Home's air), the play column's width, the gap between the course card's chapter tiles and a tile's number disc */
  --hp-pad:clamp(14px, calc(3vh - 6px), calc(26px * var(--k)));
  --d-first-pulse:2400ms; --first-ring:calc(14px * var(--k)); --lk-what-min:7em;
  /* the landing as one block (UI-26): app/landing-page.js landingFitter sets --pl-s and --pl-air */
  --pl-s:1; --pl-s-max:1.9; --pl-col-max:.86; --pl-col:1350px; --pl-spare:0px; --pl-air-min:var(--s5); --pl-air:var(--s5); --pl-air-ratio:2;   /* --pl-col: the block's width at --pl-s 1, which the fitter measures (the words 560, the gap 48, the plate 24 each side, the sheet 694) */
  /* its type is the scale's at k 1, grown by --pl-s instead of --k: --pl-lead is --fs-item's 18, --pl-body --fs-body's 15,
     --pl-small --fs-label's 13 (tests/design-system.test.js holds them to the scale; written in px, since the roles carry --k
     and the 1440p rounding, which the landing's own fit replaces), and --pl-h1 the one headline (--fs-landing's 54 at --pl-s 1) */
  /* --pl-fs-tab: the demo's tab words, the landing's body size but never under the small size, the floor for reading text (round 5) */
  --pl-tab-h:44px; --pl-cta-h:52px; --pl-h1:54px; --pl-lead:18px; --pl-body:15px; --pl-small:13px; --pl-small-min:12px;
  --pl-fs-h1:round(calc(var(--pl-h1) * var(--pl-s)), 1px); --pl-fs-lead:round(calc(var(--pl-lead) * var(--pl-s)), 1px);
  --pl-fs-body:round(calc(var(--pl-body) * var(--pl-s)), 1px); --pl-fs-tab:max(var(--fs-small), var(--pl-fs-body)); --pl-fs-small:max(var(--pl-small-min), round(calc(var(--pl-small) * var(--pl-s)), 1px));
  /* Home as a path (UI-26): the two columns, the path's rail and the week's gap */
  --hpa-seg-r:2px;
  /* one gutter between a page's two columns and one gap between the cards stacked in a column, on every hub page (Home, Learn,
     Practice, Leaderboards, Account, the desk, the lock page; Wolf, 2026-10-15: "more space between the left side and right
     side", then "the spacing between left and right sides isn't the same spacing we're using on the other pages") */
  --cols-gap:calc(40px * var(--k)); --stack-gap:calc(20px * var(--k));
  /* Getting started: its padding and rows follow the window's height like Home's air; the tick's box, the segments, a quiet row button */
  --gs-pad:clamp(14px, calc(4vh - 10px), calc(30px * var(--k))); --gs-row:clamp(29px, calc(1.4vh + 17px), calc(36px * var(--k)));
  --gs-box:calc(17px * var(--k)); --gs-btn-h:calc(26px * var(--k)); --gs-btn-pad:calc(11px * var(--k));
  /* the level's bar width (Home, Practice); the progress mark's own sizes are the design system's --prog-* below */
  --lvl-bar-w:calc(160px * var(--k));
  /* the length fan (components/length-fan.js): Rapid-fire's three lengths as keycaps over its button. A key's width (sized to
     "2 min") and height, the gap between keys, the Enter keycap under the filled one and the room it takes, the keys' soft
     lift, the stagger as they come in, the chevron, and how far another Enter keycap on the page steps back while it is open */
  --lf-key-w:calc((var(--s16) + var(--s3)) * var(--k)); --lf-key-h:var(--btn-h-md); --lf-gap:var(--s2);
  --lf-enter-h:var(--btn-key-h-sm); --lf-enter-room:calc(var(--focus-off) + var(--focus-w) + 1px + var(--lf-enter-h));
  --lf-shadow:0 1px 2px rgba(18,24,30,.10), 0 6px 14px rgba(18,24,30,.12); --lf-stagger:calc(var(--d-cursor) / 2);
  --key-dim:.35;
  /* the state marks (ui/components/state-mark.js, AT-26): one drawing for done, now, to do, locked and the challenge on every
     page, smooth strokes on a 16 unit grid. sm a list row (a lock there is the old 10 by 12), md a path node, lg a finish;
     the strokes in the grid's units (the tick, a ring or the diamond, the shackle); the bare chevron (the accordion) */
  --mk-xs:calc(12px * var(--k)); --mk-sm:calc(16px * var(--k)); --mk-md:calc(20px * var(--k)); --mk-lg:calc(44px * var(--k));
  --mk-stroke:2.3; --mk-ring:2; --mk-shackle:1.9; --mk-chev-w:calc(12px * var(--k)); --mk-chev-h:calc(8px * var(--k)); --mk-chev-stroke:1.8;
  --d-xp-fly:700ms;   /* a Getting started row's +30 XP rises into the level bar (the 'xp-fly' moment) */
  /* the welcome's guided tour: a step's picture (a small lesson card, a drill time, the board) */
  --wl-pic-h:calc(150px * var(--k)); --wl-pic-w:calc(340px * var(--k));
  /* the first line (a thing's one explanation, once): its fade */
  --d-first-line:160ms; --d-starter-tick:600ms;
  /* the one tab's height (components.css .lt) */
  --learn-tab-h:calc(44px * var(--k));
  --learn-v-gap:clamp(10px, calc(5vh - 22px), calc(36px * var(--k))); --learn-v-page:clamp(8px, calc(4vh - 18px), calc(40px * var(--k)));
  --go-w:calc(230px * var(--k)); --learn-mod-n:3.2em; --learn-mark-w:calc(20px * var(--k)); --learn-dia:calc(10px * var(--k)); --learn-chip-h:calc(28px * var(--k));
  /* the paywall (static-pages-spec 9): the chapter card and the Full Access panel side by side */
  --pw-panel-w:var(--frame-side-w); --pw-row-h:clamp(28px, calc(2.4vh + 10px), calc(38px * var(--k))); --pw-cell:calc(12px * var(--k)); --pw-badge:calc(20px * var(--k)); --pw-pad:clamp(16px, calc(3vh - 4px), calc(28px * var(--k)));
  /* the welcome on entry and the Home tour's callout */
  --wl-dot-w:26px; --wl-dot-h:4px;
  --tour-gap:14px; --tour-tip:14px; --tour-tip-off:-9px; --tour-ring:3px; --tour-halo:7px;
  --alt-cue-gap:12px;   /* the Alt cue (HM-33; ui/components/alt-cue.js): its gap under the top bar and round any letter it steps past */
  --tabrow-h:34px; --titlebar-h:32px; --xl-tabs-h:28px; --foot-h:30px; --cursor-cell-w:3px; --sel-edge-w:2px; --sbar-h:22px; --ws-foot-h:calc(var(--foot-h) + 1px); --ribbon-h:96px; --ribbon-groups-h:72px; 
  /* the workspace's two shells (C4; controls review 2a): one menu (the Ribbon's drop-downs, the menus at a cell, autocomplete)
     and one dialog (every Excel dialog, the Excel-look alert): a tighter corner than the site kit's, the Ribbon's hairline,
     a shadow each, no motion and no scrim; a menu's air is --s1, a dialog's body and foot --s3. A menu opens --bw-2 under its
     button's own foot, left edges aligned; a submenu at its row's right edge, --bw-2 over it (C18; ribbon-view.js dropShow) */
  --ws-r:6px; --ws-line:var(--xl-line); --ws-shadow-menu:0 4px 14px rgba(0,0,0,.16); --ws-shadow-dlg:0 10px 28px rgba(0,0,0,.25);
  /* step 2a (controls review 2a, 2b; UI-69, UI-70): the workspace row (a Ribbon menu's row and a dialog's button) is 28 tall,
     a dialog's control 24; a dialog is one of three widths, chosen by its content; an access letter's underline is drawn
     1.5px thick and 2px under the baseline, so it reads at 12px (Wolf 2026-11-12: "make sure its clear the underline is the key") */
  --ws-row-h:28px; --ws-cell-row-h:22px; --ws-menu-min:180px; --ws-menu-max:320px; --ws-ctl-h:24px; --ws-dlg-sm:300px; --ws-dlg-md:420px; --ws-dlg-lg:640px; --ws-ul-w:var(--bw-1-5); --ws-ul-off:var(--bw-2);
  --check:16px;   /* the agreement box (components/consent.js): its size; menu-kit.css centres it on its first line */
  --cursor-w:2px; --bw-1-5:1.5px; --bw-2:2px; --bw-3:3px; --tick-check:5px; --cursor-handle:6px; --mode-mark:9px; --mode-rule:3px; --mode-rule-wide:4px; --key-edge:3px; --route-bar:3px;
  /* the Help pop-out's keys (S, M, R, D and Esc): one column of caps the same box, so the keys line up and so do their labels */
  --help-key-w:34px; --help-key-h:24px;
  /* the chord component (components/chord.js; the keycap rule): caps 4px apart, a bold + for keys held together, a thin
     chevron (two thirds the plus's height) for keys pressed one after another, and chords in a row further apart than a
     sequence's own steps so two never read as one. The marks are set at --fs-label, beside big caps at --fs-body (ui/screens.css) */
  --chord-gap:var(--s1); --chord-apart:var(--s4); --chord-plus-lift:-.1em;
  --chord-then-w:.42em; --chord-then-h:.7em;   /* the chevron, a share of the mark's size */
  --rf-join-w:.7em;   /* Rapid-fire's join between two caps: one slot of one width, a share of the mark's size */
  --chord-then-stroke:1.3; --chord-then-nudge:calc(var(--bw-2) / 2);
  --narrow:900px;
  --pub-w:calc(760px * var(--k));   /* the public lesson and shortcut pages' column (tests/public-pages.js) */
  /* the landing (R10, the calm round): one screen at the window's size. app/landing-page.js sets --lp-s on <html> from the
     window (1 at 1440 by 900, never past --k) and --lp-ds for the demo; every size below is the hero's at --lp-s 1 */
  --lp-s:1; --lp-ds:1;
  --lp-demo-w:694px; --lp-demo-h:440px; --lp-demo-h-max:680px; --lp-demo-ratio:1.7778;   /* the demo's frame, wide to tall, at every size (16:9, UI-50) */
  --lp-card-w:264px;
  --lp-cta-h:68px; --lp-cta-px:32px; --lp-cta-key-h:28px; --lp-cta-key-w:58px; --lp-cta-arrow:22px; --lp-cta-lift:4px;
  /* UI-5's mock-up: the modes' strip over the demo */
  --lp-mode-px:14px; --lp-mode-bar:3px;
  /* the tour's own boxes over the demo's sheet (ui/demo-tour.js), at the demo's size: the demo is scaled as one piece */
  --dt-ld-w:320px; --d-dt-count:700ms; --d-dt-fade:320ms; --d-dt-key-step:160ms; --dt-rf-fs:26px; --dt-rf-cap-h:44px; --dt-rf-cap-w:48px; --dt-rf-cap-fs:18px; --dt-rf-h:64px; --dt-rf-seg-w:22px;
  /* the big keycaps under a timed run, and You climbing the result's board (ui/demo-tour.js ECHO_GAP, CLIMB_LEAD, CLIMB_MS) */
  --dt-echo-cap-h:46px; --dt-echo-cap-w:46px; --dt-echo-fs:20px; --dt-echo-pop:1.18; --d-echo-pop:160ms; --d-echo-out:260ms; --d-climb-lead:700ms; --d-climb:1100ms;
  --dt-res-w:300px; --dt-res-time:34px; --dt-res-fs:14px; --dt-res-row:26px; --dt-res-n:28px;
  --dt-scrim:color-mix(in srgb, var(--sheet) 55%, transparent);
  --dt-next-fs:15px; --dt-next-cap-h:30px; --dt-next-cap-w:60px; --dt-next-cap-fs:13px; --d-scene:420ms; --dt-scene-shift:6%;
  /* the reading pages (R10): the measure (about 80 characters), the side column on For teams,
     the course table's narrow columns, the phone's showcase column and its headline, a plan's tick */
  --read-measure:624px; --lh-read:1.6; --tm-step-k:160px;
  --ct-n-w:56px; --ct-fig-w:130px;
  --sc-w:640px; --sc-demo-w:548px; 
  /* the static pages (static-pages-spec 0.1): Home's vertical air, set by the window's height (21, 17, 23, 53 and 37 at
     900 tall; 15, 12.5, 17, 44 and 30 at 657); text never changes size, only the air does. The side cards' width, a tick,
     the gold plate, the contact address column, the not-found card, the section list's chips, the space between sections */
  --st-v-gap:clamp(10px, calc(1.85vh + .35px), 20px); --st-v-card:clamp(14px, calc(2.47vh + .8px), 26px);
  --band-h:clamp(40px, calc(3.7vh + 19.7px), 56px); --st-row-h:clamp(28px, calc(2.88vh + 11px), 40px);
  --st-tick:20px; 
  --st-phone-row:40px;
  /* the accordion's question row (a reading page's: --row-list, templates.css) */
  --acc-q-h:calc(44px * var(--k));
  /* the Account page's identity column at the left of every tab (app/account-layout.js) and its gap to the tab row and cards */
  /* the Account page's Profile and Certificate tabs (app/profile-page.js): a row's least height (and the short-window one), the window
     height the row height is worked from (the certificate paper, the profile card), the badge at the paper's head (and the short-window one),
     a row's number ring, the colour picker's least avatar, a lock link's underline offset */
  --acct-badge-sm:40px;
  --acct-ul-off:2px;
  /* its motion: the paper's colour change; a meter segment's fill and the gap between segments; a row bar's fill; the ready state's ring,
     halo and badge breath after --d-acct-ready-at; the claim: thump at --d-acct-thump-at, badge slam, ring at --d-acct-ring-at, sheen and
     fades at --d-acct-just-at, times rising one after another; the name tick's draw; a title pill's tick pop */
  --d-acct-thump:180ms; 
  --d-acct-rise:200ms; --d-acct-rise-gap:40ms; 
  /* the site pages' parts (M89, M104): goal segments, the level and field bars, tier marks, badge tiles, the sheet preview, a table row */
  --seg-w:24px; --seg-h:5px; --bar-h:6px; --tier-mark:9px; --preview-h:300px; --sp-row:17px; --row-h:36px;
  /* the path (Learn, the drill catalog): a lesson's node, the node where the learner is, the line between them, a module's key, a lesson row's status column */
  --kb-u:34px; --kb-gap:3px; --kb-pad:2px; --theme-card-w:140px; --theme-card-h:96px; --ach-art:48px; --pm-art:36px;
  /* the achievements case (app/progress-tab.js): a tile (never under 48px, so a laptop fits the case), the art in it, the
     New dot, the least gap between tiles (the page widens the row gap to the column gap the case resolves), the tier pips
     in the tip (an empty pip is a 1px --edge outline, so it reads on every theme) and the tip's width */
  --ach-tile:max(48px, calc(48px * var(--k))); --ach-tile-art:max(28px, calc(28px * var(--k))); --ach-cell:calc(112px * var(--k)); --ach-name-lh:1.25; --ach-name-gap:var(--s1); --ach-name-ink:var(--ink); --ach-name-ink-locked:var(--ink-2); --ach-dot:calc(8px * var(--k)); --ach-fa:calc(16px * var(--k)); --ach-gap:var(--s2); --ach-row-gap-max:var(--s5); --ach-pip:calc(8px * var(--k)); --ach-pip-gap:var(--bw-2); --ach-pip-line:var(--edge); --ach-tip-w:calc(240px * var(--k));
  --pn:14px; --pn-now:20px; --pn-gap:14px; --ls-st-w:96px; 
  /* rapid-fire's stage (M100): the stage's width, the fragment's window (columns A to G, rows 1 to 8 at the zoom below), a keycap, a meter segment */
  --rf-max:calc(1200px * var(--k-win)); --rf-top-h:56px; --rf-zoom:160; --rf-seg-w:30px; --rf-seg-h:10px; --rf-target-w:3px;
  /* the stage on the eye line (the Rapid-fire design, 2026-10-13): the sheet's center at --rf-eye of the window's height (the
     one dial), the sheet's box between its least and its most (frame px, the header and whole rows), the least air under the
     top bar; the strip (the Name Box, the command, its keys), the Name Box's width, the seam band of a folded target, the room
     the first round's line needs beside the keys before it goes under the meter */
  --rf-eye:.42; --rf-sheet-min:190px; --rf-sheet-max:280px; --rf-air-min:var(--s2);
  --rf-strip-pad:var(--s2); --rf-strip-h:calc(var(--btn-h-lg) + 2 * var(--rf-strip-pad)); --rf-name-w:calc(var(--s16) + var(--s10));
  --rf-cap-w:calc(var(--btn-h-lg) * 1.375); --rf-cap-w-md:calc(var(--btn-h-md) * 1.375);   /* every cap in the strip: one width (a blank never tells Ctrl from H) */
  --rf-seam-h:calc(var(--rf-target-w) * 3); --rf-hint-min:200px; --rf-sheet-ground:var(--sheet);   /* the box's ground under the grid's last whole row */
  --rf-hdr-ground:var(--chrome);   /* the column header's top line, opaque, so a row scrolled up under it never shows through */

  /* ---------- the hub pages (R10 phase 2): Practice, Leaderboards, Reference, the Account page ---------- */
  --hub-gap:calc(16px * var(--k));          /* between the page's cards; tighter on a short window (below) */
  --hub-pad:calc(22px * var(--k));          /* a card's side padding */
  --list-row:calc(36px * var(--k));         /* a row in a page's list (Home's row height under its own name; --row-h stays the tables') */
  --hub-btn-h:calc(38px * var(--k));        /* a card's button */
  --hub-mark:calc(10px * var(--k));         /* a lock, a group's swatch, a state ring */
  --hub-icon:calc(32px * var(--k));         /* a player icon on a board row: 32, a whole multiple of its 16 px drawing */
  --ref-kb-unit:clamp(18px, min(1.3vw, 2.6vh), 30px);   /* a key of Reference's keyboard panel (the optional, secondary map) */
  /* Reference's list: the columns (keys, what it does, where it is taught, the state chip, the row's Drill it), a row, the search, a chip */
  --ref-key-col:calc(264px * var(--k));   /* wide enough for Ctrl+Shift and the four arrows at the large cap */
  --learn-cols:calc(64px * var(--k)) minmax(0, 1fr) calc(170px * var(--k));   /* Learn's module rows: the number (or a lesson's mark), the name, the count beside its bar */
  --pr-cols:calc(32px * var(--k)) minmax(0, 1fr) calc(170px * var(--k)) calc(170px * var(--k));   /* Practice's drill rows: the mark, the name, what it uses, the best (the day's rows: the button or the XP, then the count) */
  --ref-cols:var(--ref-key-col) minmax(0, 1fr) calc(240px * var(--k)) calc(112px * var(--k)) calc(84px * var(--k));   /* Reference's columns: the keys, the words, Taught in, the state, Drill it */
  --ref-cols-n:var(--ref-key-col) minmax(0, 1fr) calc(64px * var(--k)) calc(112px * var(--k));   /* the same with the keyboard open: the lesson's number only, no Drill it */
  --cert-seal:calc(32px * var(--k));        /* the certificate's seal (profile-marks.js certSeal) in a row: the boards card, a public profile, the certificate card */
  --switch-w:calc(38px * var(--k)); --switch-h:calc(22px * var(--k)); --switch-dot:calc(16px * var(--k));
  /* identity (docs/specs/identity.md): the tile's sizes (a board row, the menu and the welcome card, the picker,
     Your profile, the public page), the claim card, the account menu, the welcome-back card, the You table's label column,
     the drain bar */
  /* a board row's four tracks (the board kit, BG-13): each sized to what it holds at k 1 (a four-digit place, a twenty-letter name with its chip, level,
     team tag and You chip, the medal's marks and Legendary, a time), and the row's spare room shared equally between them (hub.css) */
  --board-c-rank:calc(44px * var(--k)); --board-c-num:calc(76px * var(--k));
  /* the spare room (UI-16, after the Title column went into the player's tag row): three shares to the Player track (room for a long name with
     its level, team and title tags at k 1), one to each number, so Keys and Time sit nearer the name on a wide board instead of across an empty stretch */
  --board-c-who:minmax(0, 3fr); --board-c-numf:minmax(var(--board-c-num), 1fr);
  /* the board kit's row (components.css .ui-board-row; docs/specs/design-kit.md, sprint 3): its height, its head's, its side
     padding and the quiet zebra its rows read in */
  --board-row-h:calc(var(--list-row) * 1.08); --board-head-h:calc(var(--list-row) * 1.05); --board-px:var(--hub-pad);
  --board-zebra:color-mix(in srgb, var(--chrome) 70%, var(--sheet));
  /* Compete (UI-88): the row grid's one unit (a board row and its rule: every heading, row, label and gap on the page is one
     unit tall) and your row's tint, the mode's line let into the theme's own sheet by this share (dark paper below), so it
     holds in any theme with no zebra beside it */
  --row-u:calc(var(--board-row-h) + 1px); --board-me:11%;
  /* a player's title tag (UI-16, components/marks.js titleTagHtml): the club tag's sibling in the nameplate's row, outlined
     on the sheet where a team's tag is filled; the level's title plain (the secondary ink, the quiet edge), an achievement's
     in the brand's ink and line, one weight with every chip (ink-2 and learn-ink on the sheet, learn-line on the sheet: tested pairs). It
     gives way before the name does, down to its least width, and never grows past its widest */
  --title-tag-ink:var(--ink-2); --title-tag-bg:var(--sheet); --title-tag-edge:var(--edge);
  --title-tag-rare-ink:var(--learn-ink); --title-tag-rare-edge:var(--learn-line);
  --title-tag-min:calc(56px * var(--k)); --title-tag-max:calc(168px * var(--k)); --title-tag-max-sm:calc(112px * var(--k));   /* its widest on a phone's team board */
  --av-row:calc(32px * var(--k)); --av-md:calc(48px * var(--k)); --av-pick:calc(56px * var(--k)); --av-lg:calc(80px * var(--k)); --av-xl:calc(96px * var(--k));
  --rm-edge:8px;   /* a menu kit panel's least gap to the page's edge (ui/components/menu-kit.js, row-menu.js) */
  --leader-tint:color-mix(in srgb, var(--learn) 9%, var(--sheet));   /* a desk's owner and admins on the member sheet (TC-13): a row tint a shade apart from the members */
  /* work a team set (TC-18): a due state's ink on the sheet, the Team work panel and Home's line, each a tested text pair
     on the sheet (red, ink, learn-ink, ink-2); the sort arrow; the assign form's select */
  --due-late:var(--red); --due-soon:var(--ink); --due-done:var(--learn-ink); --due-open:var(--ink-2);
  --sort-i:calc(5px * var(--k)); --due-tick:calc(12px * var(--k)); --due-dot:calc(6px * var(--k)); --work-what-w:100%;
  --drain-h:4px;

  /* ---------- the design system (2026-10-09, Wolf: "pick a good style and re-use elements across the platform"):
     ui/components/button.js, chip.js, progress.js and layout.js draw from these and nothing else. The spacing scale is
     --s1 to --s16 above (4, 8, 12, 16, 20, 24, 32, 40, 48, 64); the names below say which step each job takes, grown with --k
     like the type. Change a value here and every button, chip, bar and layout on the site follows. ---------- */
  /* layout: the gaps a page is built from */
  --gap-inline:calc(var(--s2) * var(--k));     /* an icon to its label, a chip's parts */
  --gap-cluster:calc(var(--s3) * var(--k));    /* between buttons or chips in a row */
  --gap-stack-sm:calc(var(--s2) * var(--k));   /* a heading to its line, rows of a tight list */
  --gap-stack:calc(var(--s4) * var(--k));      /* the default rhythm inside a card or a column */
  --gap-stack-lg:calc(var(--s6) * var(--k));   /* between groups inside a page */
  --gap-section:calc(var(--s8) * var(--k));    /* between a page's sections */
  --card-pad-y:calc(var(--s6) * var(--k)); --card-pad-x:calc(var(--s6) * var(--k)); --card-r:var(--r-plate);   /* a card (the redesign's: 12px corners, a hairline) */
  --sg-box-min:calc(240px * var(--k));
  /* the page templates (ui/components/template.js, ui/templates.css; docs/specs/page-templates.md): the row heights, the
     measures and the label column every template draws with. A page names none of these; its template does */
  --row-set:calc(44px * var(--k)); --row-list:calc(52px * var(--k)); --row-read:calc(24px * var(--k));
  --measure-read:calc(720px * var(--k)); --measure-set:calc(720px * var(--k)); --measure-hero:calc(560px * var(--k)); --label-w:calc(200px * var(--k)); --set-k-w:fit-content(var(--label-w)); --set-k-gap:var(--tpl-group);   /* a settings section's label column hugs its longest label (at most --label-w), one gap before the value */
  --tpl-in:calc(var(--s2) * var(--k)); --tpl-group:calc(var(--s6) * var(--k)); --tpl-section:calc(var(--s12) * var(--k)); /* the three gaps: in a group, between groups, between sections (marketing: --s24) */
  --tpl-meter-w:calc(120px * var(--k));   /* the bar beside a count (tplMeterHtml) */
  --tpl-search-w:calc(240px * var(--k)); --tpl-search-min:calc(176px * var(--k));   /* a list's search box on its chip row's line (tplFilterHtml inline) */
  --tpl-read-gap:var(--tpl-section); --tpl-read-pad:var(--tpl-group);   /* a reading page's band: the gap round it and the air under its words, at every window size (one band, UI-30, UI-38 r1) */
  --tpl-crumbs-h:calc(36px * var(--k)); --tpl-read-side-w:calc(256px * var(--k)); --tpl-read-cols:calc(56px * var(--k)) minmax(0, 1fr) calc(168px * var(--k)) calc(128px * var(--k));   /* the breadcrumb strip's height under the top bar (UI-38 rule 5); a reading page's side column (the legal reader's sections); a reading page's list with columns (the number and mark, the name, a figure, a chip) */
  --tpl-side-gap:calc(var(--s10) * var(--k)); --tpl-av:calc(72px * var(--k)); --tpl-stat-k:calc(88px * var(--k));   /* the app page's gap before its side column; the identity block's avatar; a stat row's label */   /* the styleguide's Boxes grid: the least width of one example */
  /* the rail frame (UI-62, UI-76, UI-84: the layout sprint's round 1): the outline rail at the left of Home, Course and a
     module page, the main column beside it, the next step card's one height, the step row's kind column, and the one seat a
     page's block takes on a big window (it drops by a share of the height past a nominal frame, capped) */
  --tpl-rail-w:calc(288px * var(--k));
  /* the page's columns (scaling option A, spec scaling-1118 section 2): how many list columns a page's main area gets (2;
     3 from 2400 wide) and the widest a list column grows, so a row is never wider than 560k (UI-20, UI-21) */
  --tpl-ncols:2; --tpl-col-max:calc(560px * var(--k));
  /* the index template (tpl-index; the Drills page, spec scaling-1118 section 3): the rail, the table and the side card,
     one row height that follows the window's height, and the table's columns (the number, the state, Level, Best, Pass,
     Chapter; the name takes the rest). M's numbers here; the laptop's and the big window's in the media lines below. From
     1800 wide the rail and the side are the shared ones (UI-14) */
  --idx-rail-w:var(--tpl-rail-w); --idx-side-w:calc(530px * var(--k)); --idx-gap:var(--tpl-side-gap);
  /* the floors a narrow window squeezes them to (spec narrow-1119 section C): the side card gives its room back down to the
     kit's small card, the name never under its own floor; the list's floor is its fixed tracks without Best, the name's
     floor, three column gaps and the row's two paddings, so the list never goes under it */
  --idx-side-min:var(--pop-w-sm); --idx-name-min:calc(var(--s24) + var(--s12));
  --idx-row-h:32px; --idx-head-h:28px;
  --idx-cols:90px minmax(var(--idx-name-min), 1fr) 88px 96px 52px;   /* the number and state, the name, Level, Best, Pass (no Chapter column, UI-118: its width went to the side card's picture) */
  --idx-cols-compact:90px minmax(var(--idx-name-min), 1fr) 88px 52px;   /* the same with Best dropped, for a list box under its floor with Best (templates.css, the idx-list container; Best shows on the side card) */
  --idx-list-min:calc(90px + 88px + 52px + var(--idx-name-min) + 5 * var(--tpl-in));
  /* a drill's Level dot (spec section 3, "Level dots, off the mode colours"): a grey ladder that darkens with difficulty, the
     word carrying the meaning, so green on the Drills page means passed and nothing else (UI-37) */
  --lvl-easy:var(--edge); --lvl-medium:var(--ink-2); --lvl-hard:var(--ink);
  --tpl-stage-h:calc(760px * var(--k)); --tpl-drop-max:0px;   /* no drop (Wolf 2026-11-16: "on 2560x1300 theres a huge gap between the header and content area"): the block sits a page-top gap under the bar at every size, its spare height goes to the lists below (UI-17, rules 2 and 6) */
  --tpl-kind-w:calc(92px * var(--k));
  /* the one action's green (UI-88): one for light paper, one for dark (html[data-dark="1"] below); no theme has its own */
  --act:var(--learn); --act-ink:var(--learn-ink); --act-on:var(--learn-on); --act-hover:var(--learn-hover); --act-line:var(--learn-line);
  /* a club's row unit: one height for every heading row, list row and band gap on the Club pages (round 4) */
  --club-u:calc(var(--board-row-h) + 1px);
  /* your row on a club's board once you ran today's race: the Daily Race tint, the same step on dark paper */
  --daily-row:var(--daily-tint); --daily-row-ink:var(--daily-ink);
  --tpl-next-h:calc(147px * var(--k)); --tpl-facts-h:calc(26px * var(--k)); --tpl-mark:calc(24px * var(--k)); --tpl-tab-mark:calc(18px * var(--k));
    /* the site's link green, read at the root: a link keeps it inside a chapter's or a mode's colours */
  --tb-search-w:max(var(--tpl-search-w), 232px);   /* the bar's one search box (UI-84): one width in every state; its words have a type floor --k does not move */
  --veil-find:color-mix(in srgb, var(--sheet) 62%, transparent);   /* behind the search results: the page steps back, the bar stays */
  /* the logo (UI-96): logo D's cell beside the whole word, in the brand's whole pixel cut for each of the bar's type sizes (19.8,
     22 and 24 px; the 26, 29 and 32 unit cuts, each about 1.31 of its type). Whole pixels on purpose, so not grown by --k */
  --logo-a-sm:26px; --logo-a-md:29px; --logo-a-lg:32px;
  --inset-pad-y:calc(var(--s2) * var(--k)); --inset-pad-x:calc(var(--s3) * var(--k)); --inset-row-h:calc(32px * var(--k));   /* an inset (the box inside a card or a column: 8px corners, a hairline) and a row inset's height, the menu kit's row (--row-h stays the tables' 36px) */
  /* buttons: three sizes, each a fixed height, its side padding, the keycap's height inside it (the keycap kit's sizes: md on
     a small button, lg on the others; set here, so a surface that resizes its own caps never resizes a button's) and the label's size */
  --btn-h-sm:calc(34px * var(--k)); --btn-h-md:calc(40px * var(--k)); --btn-h-lg:calc(48px * var(--k));
  --btn-key-h-sm:var(--cap-h-md); --btn-key-h-md:var(--cap-h-lg); --btn-key-h-lg:var(--cap-h-lg);
  --btn-px-sm:calc(var(--s3) * var(--k)); --btn-px-md:calc(var(--s4) * var(--k)); --btn-px-lg:calc(var(--s6) * var(--k));
  --btn-px-key:calc(var(--s2) * var(--k));   /* the end padding when a keycap closes the button */
  --btn-gap-sm:calc(var(--s2) * var(--k)); --btn-gap:calc(var(--s3) * var(--k));   /* label to keycap, icon to label */
  --btn-fs-sm:var(--fs-small); --btn-fs-md:var(--fs-body); --btn-fs-lg:var(--fs-item); --btn-fw:var(--fw-bold);
  --btn-r:var(--r-btn); --btn-edge:1px; --btn-gold-edge:var(--bw-1-5);
  /* the one focus ring (UI-71; controls review 2c): the cell cursor's green and width, 2px outside the control, set once in the kit
     (site.css, components.css .cursor-on) in --cell-cursor; the one exception by shape is the ring inside, calc(-1 * --focus-w), on a
     full-width row in a clipped list, a button in a clipped group or a tab on its hairline, where an outside ring would be cut.
     Menu rows take the row ground instead (focus-ring.test.js) */
  --focus-w:var(--cursor-w); --focus-off:var(--bw-2);
  /* chips and badges: one height, for XP rewards (gold), states and tags */
  --chip-h:calc(22px * var(--k)); --chip-px:calc(var(--s2) * var(--k)); --chip-h-lg:calc(32px * var(--k)); --chip-px-lg:calc(var(--s3) * var(--k)); --chip-fs-lg:var(--fs-small); --chip-fs:var(--fs-label); --chip-fw:var(--fw-bold); --chip-r:999px; --chip-icon:calc(12px * var(--k));
  /* fields (components/field.js): the drop-down's chevron; the height is --ctl-h, or a surface's --field-h */
  --field-chev:calc(5px * var(--k));
  /* progress: a continuous bar or segments, the mode's color for progress and gold for XP */
  --prog-h:calc(8px * var(--k)); --prog-h-sm:calc(6px * var(--k)); --prog-h-lg:calc(10px * var(--k));   /* sm a list row, md the default, lg the level and a page's lead bar */
  --prog-gap:calc(var(--s1) * var(--k)); --prog-r:2px; --prog-track:var(--grid);   /* between segments, their corners, the empty part */
  --prog-ring:calc(40px * var(--k)); --prog-ring-sm:calc(32px * var(--k)); --prog-ring-lg:calc(56px * var(--k)); --prog-ring-w:calc(3px * var(--k));   /* the ring (shape 'ring'): its sizes and the band's width */
  /* XP is Learn's green, not gold (onboarding-rewards-spec: the XP chip on --learn-tint with --learn-ink text; screenplay 3.0
     rule 2: one gold element a screen, Get Full Access): the bar's fill holds 3 to 1 on the page in every theme (design-system.test.js) */
  --xp-fill:var(--learn); --xp-track:var(--learn-tint); --xp-edge:var(--learn-tint); --xp-ink:var(--learn-ink);

  /* ---------- durations (3.0, Motion and moments) ---------- */
  --d-kt-next:700ms; --d-kt-pop:180ms;  --d-ribbon-cue:900ms; --d-ribbon-cue-travel:360ms; --d-cursor:80ms; --d-key:90ms; --d-menu:140ms; --d-beat:140ms; --d-streak-lit:900ms; --d-route:150ms; --d-note:160ms; --d-card:200ms; --d-goal:250ms;
  --d-hit:250ms; --d-strip:12ms; --d-wrong:300ms; --d-open:500ms; --d-quests:600ms; --d-combo:700ms; --d-streak:900ms;
  --d-hint:120ms; --d-pop-in:320ms; --d-badge-pop:300ms; --d-burst:700ms; --d-confetti:1800ms; --d-confetti-rain:2600ms; --d-confetti-wave:450ms; --d-levelup-wait:1500ms; --d-fill:700ms; --d-key-rest:800ms; --d-saved:2000ms; --d-sb-saved:1000ms;   /* --d-sb-saved: the status bar's Saved note after Ctrl+S or the toolbar's Save */
  /* the press feel (UI-52, Wolf 2026-11-06 "all five go"; components.css .ui-btn, menu-kit.css .pop): a button goes down
     --press-y and to --press-scale over --d-press and comes back over --d-release; a pop-out's scrim fades in over --d-scrim-in,
     its card lifts --dlg-rise from --dlg-from over --d-dlg-in and fades out over --d-dlg-out; the lesson pane's caps ease over
     --d-key-pane. Effects Off and reduced motion cut them all */
  --d-press:60ms; --d-release:140ms; --press-y:1px; --press-scale:.97;
  --d-thumb-start:1200ms; --d-thumb-change:600ms; --d-thumb-hold:2500ms;   /* the Drills card's picture loop (UI-118): the start sheet, the change a band at a time, the end with its green edge */
  --d-thumb:120ms;   /* the Drills card waits this long after the arrows stop before it draws a finished sheet it has not drawn lately (UI-107) */
  --d-scrim-in:120ms; --d-dlg-in:160ms; --d-dlg-out:90ms; --dlg-rise:6px; --dlg-from:.98; --d-key-pane:40ms;
  /* the one page change (UI-86, the fade through): the old page fades out over --d-route-out, the new one fades in over
     --d-route-in from --d-route-lap, on the theme's own ground; the site's bar never fades (ui/route-fade.js) */
  --d-route-out:80ms; --d-route-in:140ms; --d-route-lap:60ms;
  /* Start (round 5, M4): the longest the landing's picture holds while the next page draws, before it swaps or fades in */
  --d-start-hold:300ms;
  --d-alt-cue-wait:400ms;   /* the Alt cue waits for Home to settle before its letters are placed (HM-33) */
  --d-pop-calm:600ms;   /* the terms gate: a calm pop-out, the card and its box in place quickly (app/terms.js) */
  --d-pop:2500ms; --d-pop-chapter:3000ms; --d-load-min:800ms;   /* the celebration's length, a chapter's, and the loading card's least time (R10) */
  --d-load-wait:300ms;   /* a lesson or drill that takes longer than this to open shows the loading card (a lesson's opening splash) meanwhile; a quicker one shows none */
  --d-esc-mash:600ms;    /* an Esc this soon after one that cancelled something is part of the same mash: it never asks to leave */
  --d-door-build:1800ms; /* the opening bar's eased run while a big workbook builds (on the compositor, so it moves while the page is busy) */
  --d-door-out:220ms;    /* the door hands off to the first task card: it fades and settles as the card fades in */
  --d-door-row:200ms; --d-door-row-gap:60ms; --d-door-rows:350ms; --door-row-rise:4px;   /* the door's hotkey rows come in at its start: each over --d-door-row, --d-door-row-gap apart, all within --d-door-rows, rising --door-row-rise */
  --d-xp-chip:600ms; --d-clean-run:400ms; --d-rapid-load:1600ms; --d-refit:150ms;   /* the first win's chip, a clean run named, a drill tag's keys after a stall, Rapid-fire's loading card (R10, phase 2), Rapid-fire's sheet re-fitted once a window resize settles */
  --d-perfect:600ms;   /* the perfect-bonus row slides in under the pop-out's XP (onboarding spec B5) */
  --d-cell-blink:4200ms; --d-cell-hop:900ms; --d-cell-puzzled:2600ms; --d-cell-watch:3000ms; --d-cell-think:2400ms; --d-cell-dot:200ms; --d-cell-rise:600ms;   /* the cell's moves (ui/components/cell.js): the lids close for a frame every --d-cell-blink; a hop; a puzzled look about; eyes tracking; the thinking loop, its three dots --d-cell-dot apart; the rise from behind the card */
  /* identity: the claim card comes in by transform only; the chip's wash after Done and the line under the bar; the
     welcome-back card's drain (the account menu is the menu kit's panel, which rises over --d-menu) */
  --d-claim-in:240ms; --d-claim-land:300ms; --d-claim-say:6000ms; --d-welcome-drain:6000ms;
  --d-unlock:600ms; --d-ping:700ms; --d-wrong-wait:1200ms; --d-near-wait:450ms; --d-stall:3000ms; --d-rapid-next:700ms; --d-result:4000ms; --d-banner:4000ms; --d-full-hint:4000ms; --d-nudge:8000ms; --d-help:20000ms;
  /* the result's moments, in order (3.0, the timed run): the time counts up, then the tier, New best, the track, the rows, XP, a level-up, a quest */
  --d-count:900ms; --d-result-tier:1000ms; --d-result-best:1450ms; --d-result-track:1500ms; --d-result-board:1900ms;
  --d-result-xp:2300ms; --d-result-level:3200ms; --d-result-quest:3900ms;

  /* ---------- the keycap (one look everywhere: no skins, Wolf 2026-10-11) and the ghost (one colour: no flair, Wolf 2026-10-16) ---------- */
  --key-face:var(--sheet); --key-ink:var(--ink); --key-rim:var(--edge);   /* a keycap: its face, its legend, its edge */
  --cap-r:6px;   /* a keycap's corner: the keycap kit's, kept when the site's buttons went to 8 (the Exercism look, UI-35; LW-4 keeps the caps) */
  /* the keycap kit (components.css .ui-cap; docs/specs/design-kit.md, sprint 2): sm 16, md 20, lg 24 tall at k 1, each at
     least as wide as it is tall, its side padding and its legend (--fs-key at every size); the mini cap a key named in a
     sentence takes (1.3em, its legend .87em, smaller corners); an arrow legend a size up; the + and / between caps; how far
     a pressed cap sits down. A surface that draws its caps another size (the lesson pane's 34px route caps, Rapid-fire's
     prompt) sets these on its own scope; a button's cap takes the kit's md and lg (--btn-key-h-*), and the menu kit's cap column
     keeps its 22px (--menu-cap-w, --menu-cap-h, the menus thread's) and draws the kit's cap in it */
  --cap-h-sm:calc(16px * var(--k)); --cap-h-md:calc(20px * var(--k)); --cap-h-lg:calc(24px * var(--k));
  --cap-min-w-sm:calc(16px * var(--k)); --cap-min-w-md:calc(20px * var(--k)); --cap-min-w-lg:calc(24px * var(--k));
  --cap-px-sm:calc(var(--s1) * var(--k)); --cap-px-md:calc(var(--s1) * 1.5 * var(--k)); --cap-px-lg:calc(var(--s2) * var(--k));
  --cap-fs-sm:var(--fs-key); --cap-fs-md:var(--fs-key); --cap-fs-lg:var(--fs-key);
  --cap-h-mini:1.3em; --cap-px-mini:calc(var(--s1) * 1.25); --cap-fs-mini:.87em; --cap-r-mini:3px; --cap-fs-arw:1.18em; --cap-fs-join:var(--fs-label);
  --cap-fs-mini-whole:round(.87em, 1px); --cap-fs-arw-whole:round(1.18em, 1px);   /* the same two ratios to the whole px, for a surface whose lines and caps sit on the scale (the dock: 13, 15, 18) */
  --cap-sink:calc(var(--bw-2) - 1px);
  --ghost:var(--accent);   /* the PB ghost's outline */

  /* ---------- the one shadow, for floating things only ---------- */
  --shadow-float:0 14px 36px -14px rgba(0,0,0,.35);
  --shadow-backdrop:0 8px 28px -8px rgba(18,24,30,.22);   /* the one shadow for a card or dialog on the backdrop (the complete cards, the level-up pop-out, the pop-out shell, the leave prompt, the confirm dialog, the welcome card): soft and low, the blur does the separating (Wolf, 2026-10-26: "a weird drop shadow") */
  --scrim:color-mix(in srgb, var(--rail) 55%, transparent);   /* behind a pop-out over the product (the first run) */
  --veil-dim:color-mix(in srgb, var(--rail) 46%, transparent);   /* behind the celebration pop-out: the screen dims (R10) */
  --veil-load:color-mix(in srgb, var(--paper) 94%, transparent);   /* behind the loading card: the page fades back (R10) */
  --backdrop-dim:color-mix(in srgb, var(--rail) 46%, transparent); --scrim-blur:6px; --backdrop-dim-dialog:color-mix(in srgb, var(--rail) 22%, transparent); --d-backdrop:var(--d-pop-in);   /* the one backdrop (components/backdrop.js): everything behind a finish moment dims and is never blurred, so the work stays readable behind the result (UI-86); a dialog or pop-out dims lighter and blurs by --scrim-blur, enough that words behind it cannot be read while their shapes stay (Wolf 2026-11-15 04:42: "not very elegant when we have a dim background alone ... we might need a blur too"); it fades over --d-backdrop (Effects Off cuts the fade, never the blur) */

  /* ---------- the names the older stylesheets read: they resolve to the tokens above ----------
     (app.css, shell.css, site.css, next.css and workbook.css were written against these; a theme
     writes only the token names, so these stay aliases and never values) */
  --bg:var(--paper); --surface:var(--sheet); --surface2:var(--chrome);
  --text:var(--ink); --muted:var(--ink-2); --faint:var(--edge);
  --accent:var(--learn); --accent-dim:var(--learn-ink); --accent-glow:color-mix(in srgb, var(--learn) 14%, transparent);
  --on-accent:var(--on-fill); --warn:var(--clock-ink); --bad:var(--red);
  --note-bg:var(--note); --note-text:var(--note-ink); --sans:var(--font); 
}

/* a laptop: everything a step smaller, so the page reads at a glance (Wolf, 2026-10-15 04:13: "it still looks a bit big on my screen
   (laptop)") */
@media (min-width:1100px) and (max-width:1700px) and (max-height:1000px){ :root{--k:.9; --k-win:.9} }
/* the index template up to 1700 wide (S): a narrower rail and side than the shared 259 and 396 (a named exception to UI-14, spec
   section 5), or the table gets 389px. By width alone (one axis per decision, UI-116; spec narrow-1119 section C step 4): a
   tall half screen gets these tracks too, while --k above stays with the height. The phone keeps its own */
@media (min-width:761px) and (max-width:1700px){ :root{--idx-rail-w:208px; --idx-side-w:388px; --idx-gap:24px;
  --idx-cols:76px minmax(var(--idx-name-min), 1fr) 80px 52px 44px; --idx-cols-compact:76px minmax(var(--idx-name-min), 1fr) 80px 44px;
  --idx-list-min:calc(76px + 80px + 44px + var(--idx-name-min) + 5 * var(--tpl-in))} }
/* a window under 1100 wide: the index's rail folds to its marks with every other rail frame (templates.css, max-width:1100px) */
@media (min-width:761px) and (max-width:1100px){ :root{--idx-rail-w:auto} }
/* the index's rows follow the window's height (height buys rows): 30 on a short window, 36 from 1800 by 880, 40 at the type step */
@media (max-height:770px){ :root{--idx-row-h:30px} }
@media (min-width:1800px) and (min-height:880px){ :root{--idx-row-h:36px; --idx-head-h:32px} }
@media (min-width:2400px){ :root{--idx-cols:112px minmax(var(--idx-name-min), 1fr) 104px 116px 64px; --idx-cols-compact:112px minmax(var(--idx-name-min), 1fr) 104px 64px;
  --idx-list-min:calc(112px + 104px + 64px + var(--idx-name-min) + 5 * var(--tpl-in))} }
@media (min-width:2400px) and (min-height:1150px){ :root{--idx-row-h:40px; --idx-head-h:38px} }
/* a big window (register UI-17, Wolf 2026-10-16 22:09 "I like C"; superseded in part by UI-116, option A, firm 2026-11-18 17:35 UTC): --k-win
   keeps the window's step for the workspace's Rapid-fire stage, which is drawn whole and may grow (R10). The 1440p step asks for
   1150px of height, not 1300: a maximised browser on a 2560 by 1440 screen shows about 1270px under its tabs, address bar and
   the taskbar (Wolf, 2026-10-26 04:32: "text feels a bit small on 1440p") */
@media (min-width:1800px) and (min-height:1000px){ :root{--k-win:1.2} }
/* the scaling rule, option A (spec scaling-1118 section 2; register UI-116, firm: Wolf's pick 2026-11-18 17:35 UTC): three dials,
   each tied to what it follows. Width buys columns: the column's max width and the page's column count step with the
   window's width alone (M 1440px; L 1920px and three columns), and a list column never grows past --tpl-col-max. Height
   buys rows (the row tokens' own height lines). Type moves one step, only when width and height are both big (L 1.2,
   2560 by 1150 and up), through --k and the whole-pixel round() block below. No zoom, no transform */
@media (min-width:1800px){ :root{--page-w:1440px} }
@media (min-width:2400px){ :root{--page-w:1920px; --tpl-ncols:3} }
@media (min-width:2400px) and (min-height:1150px){ :root{--k:1.2; --k-win:1.5; --thumb-k:var(--k)} }
/* crisp type on a big window (Wolf, 2026-10-16 21:21: "on my 1440p monitor the text looks pixelated"): where --k rises above 1 the
   scale gave fractional sizes (22.5, 19.5, 18.75px at 1.5; 16.8, 15.6, 14.4px at 1.2), so glyphs were rasterised off the pixel
   grid; every reading size is rounded to a whole pixel there (a laptop's .9 scale is untouched) */
@media (min-width:1800px) and (min-height:1000px){ :root{
  --fs-1:round(calc(12px * var(--k)), 1px); --fs-2:round(calc(13px * var(--k)), 1px); --fs-3:round(calc(14px * var(--k)), 1px); --fs-4:round(calc(15px * var(--k)), 1px);
  --fs-5:round(calc(18px * var(--k)), 1px); --fs-6:round(calc(22px * var(--k)), 1px); --fs-7:round(calc(36px * var(--k)), 1px);
  --fs-clock:round(calc(26px * var(--k)), 1px); --fs-panel:round(calc(17px * var(--k)), 1px); --fs-key:round(calc(12.5px * var(--k)), 1px);
  --fs-time:round(calc(34px * var(--k)), 1px); --fs-hero:round(calc(34px * var(--k)), 1px); --fs-prompt:round(calc(52px * var(--k)), 1px); --fs-landing:round(calc(54px * var(--k)), 1px)} }
html[data-shell="workspace"]{--k:1}
/* the workspace's z: its step (html[data-ws-step], ui/ws-scale.js) gives its k, and z applies only in the workspace. Registered
   as a number, so the page reads the z it applies (wsZ()). Rapid-fire's stage keeps its own sizes */
@property --ws-z{syntax:'<number>'; inherits:true; initial-value:1}
html[data-ws-step="1"]{--ws-pane-w:360px}
html[data-ws-step="2"], html[data-ws-step="3"]{--ws-pane-w:400px}
html[data-shell="workspace"][data-ws-step="1"]{--ws-z:var(--ws-1-z)}
html[data-shell="workspace"][data-ws-step="2"]{--ws-z:var(--ws-2-z)}
html[data-shell="workspace"][data-ws-step="3"]{--ws-z:var(--ws-3-z)}
html[data-shell="workspace"] body[data-route="rapid"]{--ws-z:1}
html[data-shell="workspace"][data-ws-zoom="off"]{--ws-z:1}   /* the runtime probe found a legacy zoom (ui/ws-scale.js probeZoom): one scale, 1 */
/* a piece drawn at its own size and scaled as a whole (the landing's and the showcase's demo): the base type, whatever --k is */
.k-base{--k:1; --fs-1:12px; --fs-2:13px; --fs-3:14px; --fs-4:15px; --fs-5:18px; --fs-6:22px; --fs-7:36px;
  --fs-title:36px; --fs-lede:18px; --fs-eyebrow:12px; --fs-head:22px; --fs-clock:26px; --fs-item:18px; --fs-panel:17px; --fs-body:15px; --fs-small:14px;
  --fs-label:13px; --fs-key:12.5px; --fs-min:12px; --fs-time:34px; --ctl-h:40px; --ctl-h-sm:38px;
  --btn-h-sm:34px; --btn-h-md:40px; --btn-h-lg:48px; --btn-key-h-sm:20px; --btn-key-h-md:24px; --btn-key-h-lg:24px; --cap-h-sm:16px; --cap-h-md:20px; --cap-h-lg:24px; --cap-min-w-sm:16px; --cap-min-w-md:20px; --cap-min-w-lg:24px; --cap-px-sm:4px; --cap-px-md:6px; --cap-px-lg:8px; --cap-fs-sm:12.5px; --cap-fs-md:12.5px; --cap-fs-lg:12.5px; --btn-fs-sm:14px; --btn-fs-md:15px; --btn-fs-lg:18px; --chip-h:22px; --chip-fs:13px; --chip-h-lg:32px; --chip-fs-lg:14px}
/* a short window gives the top bar a little less height */
@media (max-height:770px){ :root{--top-h:56px} }
/* the Rapid-fire stage on a short window: 12px of air under the top bar, paid for by a slimmer strip, so the sheet keeps five
   rows; on a 27 inch monitor the band sits a little lower and one row deeper */
@media (max-height:770px){ :root{--rf-air-min:var(--s3); --rf-strip-pad:calc((var(--s1) + var(--s2)) / 2); --rf-strip-h:calc(var(--btn-h-md) + 2 * var(--rf-strip-pad))} }
@media (min-height:1300px){ :root{--rf-eye:.44; --rf-sheet-max:320px} }
/* Learn, when it still runs past its window, takes the least air (its fit adds the class; Home shrinks its air by --home-air) */
/* the hub pages on a short window: the air tightens before anything is cut */
@media (max-height:770px){ :root{--hub-gap:calc(10px * var(--k)); --list-row:calc(32px * var(--k)); --hub-btn-h:calc(34px * var(--k))} }
/* the static pages on a short window (UI-3, 1280x720): the air tightens so Pricing and its footer fit without scrolling */
@media (max-height:770px){ :root{--st-v-card:14px; --st-v-gap:10px; --band-h:36px; --st-row-h:24px; --footer-pad:var(--s2)} }
/* a list row on a window up to 900px tall: the spec's lower bound, 44 (page-templates.md: rows 44 to 52 in lists) */
@media (max-height:900px){ :root{--row-list:calc(44px * var(--k))} }
@media (max-height:770px){ :root{--row-set:calc(40px * var(--k))} }   /* a short window: settings and stat rows give back their air, so a side card fits (1366x657) */
/* the page frame on a phone (UI-14): the air over the first row and under the last is the side gutter's */
@media (max-width:760px){ :root{--frame-v:var(--page-gutter); --label-w:calc(96px * var(--k))} }
/* a touch-only device (the phone rule, app/shell.js PHONE_QUERY: the pages a phone opens, UI-6): every control a thumb presses is at
   least --menu-set-h (44px) tall (UI-81, WCAG 2.2 target size; the A-grade pass of 2026-11-18 holds touch targets to 44px). A mouse
   keeps the kit's sizes */
@media (any-hover:none) and (any-pointer:coarse){ :root{--ctl-h:var(--menu-set-h); --ctl-h-sm:var(--menu-set-h); --btn-h-sm:var(--menu-set-h); --btn-h-md:var(--menu-set-h); --menu-row-h:var(--menu-set-h); --menu-dot:var(--menu-set-h); --row-set:var(--menu-set-h); --row-list:max(var(--menu-set-h), calc(52px * var(--k)))} }

/* the page's mode (3.0, Color: each mode has one; the route sets body[data-mode]) */
body[data-mode="learn"]{--mode:var(--learn); --mode-ink:var(--learn-ink); --mode-tint:var(--learn-tint); --mode-on:var(--learn-on); --mode-hover:var(--learn-hover); --mode-line:var(--learn-line)}
body[data-mode="drills"]{--mode:var(--drills); --mode-ink:var(--drills-ink); --mode-tint:var(--drills-tint); --mode-on:var(--drills-on); --mode-hover:var(--drills-hover); --mode-line:var(--drills-line)}
body[data-mode="daily"]{--mode:var(--daily); --mode-ink:var(--daily-ink); --mode-tint:var(--daily-tint); --mode-on:var(--daily-on); --mode-hover:var(--daily-hover); --mode-line:var(--daily-line)}
body[data-mode="rapid"]{--mode:var(--rapid); --mode-ink:var(--rapid-ink); --mode-tint:var(--rapid-tint); --mode-on:var(--rapid-on); --mode-hover:var(--rapid-hover); --mode-line:var(--rapid-line)}
body[data-mode="challenges"]{--mode:var(--challenges); --mode-ink:var(--challenges-ink); --mode-tint:var(--challenges-tint); --mode-on:var(--challenges-on); --mode-hover:var(--challenges-hover); --mode-line:var(--challenges-line)}
body[data-mode="clock"]{--mode:var(--clock); --mode-ink:var(--clock-ink); --mode-tint:var(--clock-tint); --mode-on:var(--clock-ink); --mode-hover:var(--clock); --mode-line:var(--clock-ink)}

/* (the workspace chrome reads the theme's own tokens in every theme: the --xl aliases above; the dark mapping that used to live here is now the one mapping) */
/* a dark theme's grid is a light sheet with its own colors (the rule above): the marks inside it read the grid's own, so the
   brackets, the hit and the run's brackets keep their contrast there (lesson-pane.md, "Contrast"; themes.js markPairs) */
html[data-dark="1"] .gridwrap{--mark:var(--learn); --mark-tint:var(--learn-tint); --mark-on:var(--learn-on); --mark-key:var(--sheet); --hit-blend:multiply; --mark-drills:var(--drills-line); --mark-daily:var(--daily-line)}
/* a dark theme keeps the sheet light (the light-sheet block at the end; themes.js SHEET_LIGHT): the Rapid-fire box's ground under its last
   row is that sheet, and its header's top line that sheet's chrome (the box sits outside the light-sheet block's scope) */
/* a dark theme: a dark shadow on a dark page shows nothing, so the pop-out card on its backdrop (menu-kit.css .ui-popcard, .mk-dlg) takes
   a hairline ring in the theme's own line and a deeper shadow, and stands off the page in every dark theme (Wolf 2026-11-18: the level-up
   card "looked the same as the background on dark mode") */
html[data-dark="1"]{--shadow-backdrop:0 0 0 1px var(--line), 0 12px 32px -8px rgba(0,0,0,.6)}
html[data-dark="1"]{--board-me:16%; --daily-row:color-mix(in srgb, var(--daily) 22%, var(--sheet)); --daily-row-ink:var(--ink); --ws-tip-bg:#12181E; --ws-tip-ink:#FFFFFF; --fin-line:rgba(0,0,0,.16); --rf-sheet-ground:#FFFFFF; --rf-hdr-ground:#E4E8EC; --art-edge:drop-shadow(0 0 .6px color-mix(in srgb, var(--ink) 45%, transparent))}   /* dark themes: the same edge in the theme's light ink (--ink is light here) so dark icons read on Graphite */

/* ---------- the light sheet a dark theme draws (r212, as Excel's dark mode does; palette sprint Round 1). A cool off-white on Workbook's slate
   (it was a warm cream in literal colours), and its accents are Workbook's light lanes: the dark theme's bright values were 1.5 to 2.4 to 1 on a
   light sheet, so the cursor, the selected headers, a target (and its seam, where its rows are folded), a hit and the outline bracket take these. themes.js holds them (SHEET_LIGHT) and
   tests/contrast.test.js checks every pair on this ground. The task card and the run panel sit outside the sheet and keep the theme ---------- */
.gridwrap{--fx-tip-bg:color-mix(in srgb, var(--sheet) 96%, var(--ink))}   /* the function argument ScreenTip: a pale box a shade off the sheet (Excel's), resolved on the grid so a dark theme's light sheet keeps it light */
html[data-dark="1"] :is(.gridwrap, .rf-target, .rf-seam, .ui-thumb-frame){--paper:#EEF0F3; --sheet:#FFFFFF; --chrome:#E4E8EC; --line:#CBD0D6; --grid:#DEE2E6; --edge:#737A81; --ink:#12181E; --ink-2:#4E565E; --learn:#0B7C58; --learn-ink:#04593E; --learn-tint:#DBF8EA; --learn-on:#FFFFFF; --learn-hover:#04593E; --learn-line:#0B7C58; --drills:#70A6F5; --drills-ink:#1B4D95; --drills-tint:#E9F1FD; --drills-on:#12181E; --drills-hover:#7DB1FE; --drills-line:#578BD9; --daily:#F4820B; --daily-ink:#12181E; --daily-tint:#FEEDDD; --daily-on:#12181E; --daily-hover:#FE8F2F; --daily-line:#D36F07; --rapid:#16B8D0; --rapid-ink:#095A66; --rapid-tint:#D6F7FE; --rapid-on:#12181E; --rapid-hover:#17C4DD; --rapid-line:#0F98AB; --challenges:#FD6C95; --challenges-ink:#8D163C; --challenges-tint:#FDE7EE; --challenges-on:#12181E; --challenges-hover:#FE7C9F; --challenges-line:#D6225C; --right:#0B7C58; --right-ink:#04593E; --right-tint:#DBF8EA; --right-on:#FFFFFF; --red:#C23B2A;
  --cell-cursor:var(--learn); --xl-green:var(--learn); --xl-green-ink:var(--learn-ink); --xl-hdr:var(--learn-tint); --xl-hdr-ink:var(--learn-ink); --xl-press:var(--learn-tint);
  --xl-bar:var(--chrome); --xl-body:var(--sheet); --xl-line:var(--line); --xl-ink:var(--ink); --xl-ink-2:var(--ink-2); --xl-hover:color-mix(in srgb, var(--ink) 8%, transparent);
  --sel-grey:color-mix(in srgb, var(--ink) 14%, transparent); --sel-cell:color-mix(in srgb, var(--ink) 22%, transparent); --active-fill:color-mix(in srgb, var(--learn) 13%, transparent);
  --on-fill:#FFFFFF; --mode:var(--learn); --mode-ink:var(--learn-ink); --mode-tint:var(--learn-tint); --mode-on:var(--learn-on); --mode-hover:var(--learn-hover); --mode-line:var(--learn-line)}
html[data-dark="1"] body[data-mode="drills"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--drills); --mode-ink:var(--drills-ink); --mode-tint:var(--drills-tint); --mode-on:var(--drills-on); --mode-hover:var(--drills-hover); --mode-line:var(--drills-line)}
html[data-dark="1"] body[data-mode="daily"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--daily); --mode-ink:var(--daily-ink); --mode-tint:var(--daily-tint); --mode-on:var(--daily-on); --mode-hover:var(--daily-hover); --mode-line:var(--daily-line)}
html[data-dark="1"] body[data-mode="rapid"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--rapid); --mode-ink:var(--rapid-ink); --mode-tint:var(--rapid-tint); --mode-on:var(--rapid-on); --mode-hover:var(--rapid-hover); --mode-line:var(--rapid-line)}
html[data-dark="1"] body[data-mode="challenges"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--challenges); --mode-ink:var(--challenges-ink); --mode-tint:var(--challenges-tint); --mode-on:var(--challenges-on); --mode-hover:var(--challenges-hover); --mode-line:var(--challenges-line)}
/* ---------- the white sheet every light theme draws (BG-34, Wolf 2026-10-21: "make sure the theme isn't changing the spreadsheet color (for
   visibility in the actual game)"): Newsprint, Phoebe's Paws, Ledger and Linen draw Workbook's white sheet with Workbook's grid, ink and cursor
   (themes.js SHEET_WHITE, sheetKind; applyTheme sets html[data-sheet]); the theme still colours the page, the cards and the chrome ---------- */
html[data-sheet="white"] .gridwrap{--mark:var(--learn); --mark-tint:var(--learn-tint); --mark-on:var(--learn-on); --mark-key:var(--sheet); --hit-blend:multiply; --mark-drills:var(--drills-line); --mark-daily:var(--daily-line)}
html[data-sheet="white"]{--rf-sheet-ground:#FFFFFF; --rf-hdr-ground:#E4E8EC}
html[data-sheet="white"] :is(.gridwrap, .rf-target, .rf-seam, .ui-thumb-frame){--paper:#EEF0F3; --sheet:#FFFFFF; --chrome:#E4E8EC; --line:#CBD0D6; --grid:#DEE2E6; --edge:#737A81; --ink:#12181E; --ink-2:#4E565E; --learn:#0B7C58; --learn-ink:#04593E; --learn-tint:#DBF8EA; --learn-on:#FFFFFF; --learn-hover:#04593E; --learn-line:#0B7C58; --drills:#70A6F5; --drills-ink:#1B4D95; --drills-tint:#E9F1FD; --drills-on:#12181E; --drills-hover:#7DB1FE; --drills-line:#578BD9; --daily:#F4820B; --daily-ink:#12181E; --daily-tint:#FEEDDD; --daily-on:#12181E; --daily-hover:#FE8F2F; --daily-line:#D36F07; --rapid:#16B8D0; --rapid-ink:#095A66; --rapid-tint:#D6F7FE; --rapid-on:#12181E; --rapid-hover:#17C4DD; --rapid-line:#0F98AB; --challenges:#FD6C95; --challenges-ink:#8D163C; --challenges-tint:#FDE7EE; --challenges-on:#12181E; --challenges-hover:#FE7C9F; --challenges-line:#D6225C; --right:#0B7C58; --right-ink:#04593E; --right-tint:#DBF8EA; --right-on:#FFFFFF; --red:#C23B2A;
  --cell-cursor:var(--learn); --xl-green:var(--learn); --xl-green-ink:var(--learn-ink); --xl-hdr:var(--learn-tint); --xl-hdr-ink:var(--learn-ink); --xl-press:var(--learn-tint);
  --xl-bar:var(--chrome); --xl-body:var(--sheet); --xl-line:var(--line); --xl-ink:var(--ink); --xl-ink-2:var(--ink-2); --xl-hover:color-mix(in srgb, var(--ink) 8%, transparent);
  --sel-grey:color-mix(in srgb, var(--ink) 14%, transparent); --sel-cell:color-mix(in srgb, var(--ink) 22%, transparent); --active-fill:color-mix(in srgb, var(--learn) 13%, transparent);
  --on-fill:#FFFFFF; --mode:var(--learn); --mode-ink:var(--learn-ink); --mode-tint:var(--learn-tint); --mode-on:var(--learn-on); --mode-hover:var(--learn-hover); --mode-line:var(--learn-line)}
html[data-sheet="white"] body[data-mode="drills"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--drills); --mode-ink:var(--drills-ink); --mode-tint:var(--drills-tint); --mode-on:var(--drills-on); --mode-hover:var(--drills-hover); --mode-line:var(--drills-line)}
html[data-sheet="white"] body[data-mode="daily"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--daily); --mode-ink:var(--daily-ink); --mode-tint:var(--daily-tint); --mode-on:var(--daily-on); --mode-hover:var(--daily-hover); --mode-line:var(--daily-line)}
html[data-sheet="white"] body[data-mode="rapid"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--rapid); --mode-ink:var(--rapid-ink); --mode-tint:var(--rapid-tint); --mode-on:var(--rapid-on); --mode-hover:var(--rapid-hover); --mode-line:var(--rapid-line)}
html[data-sheet="white"] body[data-mode="challenges"] :is(.gridwrap, .rf-target, .rf-seam){--mode:var(--challenges); --mode-ink:var(--challenges-ink); --mode-tint:var(--challenges-tint); --mode-on:var(--challenges-on); --mode-hover:var(--challenges-hover); --mode-line:var(--challenges-line)}

/* ---------- the workspace keeps the look it was approved in (Wolf, 2026-10-28 21:38: "i think the game screens are kind of fine
   already"; register UI-35): the Exercism look is the site pages' (the greys, the 8px corners, the taller small button, the 36px
   title); the lesson, drill, Daily Race and Rapid-fire screens keep the palette sprint's Workbook greys and the kit's earlier sizes.
   themes.js applyTheme writes the theme's colours inline on <html> and names it in html[data-ground]; on Workbook these win over
   the inline values, so every alias above (the Ribbon's --xl-bar and --xl-line, the progress track, the legacy names) resolves
   to them. The other themes never changed, so only Workbook is pinned ---------- */
html[data-ground="workbook"][data-shell="workspace"]{--paper:#EEF0F3 !important; --chrome:#E4E8EC !important; --line:#CBD0D6 !important; --grid:#DEE2E6 !important; --ink-2:#4E565E !important; --plate-neutral:#EAEDF1 !important; --band:#E4E8EC !important}
html[data-shell="workspace"]{--r-btn:6px; --chip-r:6px; --btn-h-sm:calc(32px * var(--k)); --chip-h-lg:calc(28px * var(--k)); --fs-7:calc(32px * var(--k)); --lh-title:1.15; --fw-title:var(--fw-semi); --r-plate-mk:20px}

/* The pane's key-press feel (CU-11, settled by UI-52, Wolf 2026-11-06 "all five go"): a cap goes down for --d-key-press (60 ms,
   above) and the pane's caps ease over --d-key-pane, so they keep up with the fingers. The game sheet never animates a key. */
.lpn{--d-key:var(--d-key-pane)}

/* The page's block on a big window (UI-17, option C; Wolf 2026-10-16 21:20: "maybe every page is extending too far down the
   page", 22:09: "we can make the fundamental boxes smaller on the home page - there's so much white space with the module
   box"): where the page used to be scaled up (1800px wide and 1000px tall and up) the block takes its content's height and
   sits under the top bar (top-weighted), the window's spare room below it; a card hugs its content instead of stretching to
   the card beside it, and the shorter column ends where it ends. The block shrinks only when the window is shorter than it,
   so a long list scrolls inside its card and the page itself never does (Wolf 21:23). A laptop keeps today's fill */
@media (min-width:1800px) and (min-height:1000px){
  #root > .page-fit{flex:0 1 auto}
  /* Home sits on the shared top line like every other page (UI-14), the spare room below it (HM-38, Wolf 2026-10-18 "Top";
     it was 40 percent above, 60 below) */
  .pg-home{justify-content:flex-start}
  .h-stack{justify-content:flex-start}
  .h-stack > .hb{flex-grow:0}
  .pg-home .hb{align-items:start}
  .pg-home .hcp{justify-content:flex-start}
  .pg-home .hcp-steps{flex:1 1 auto}
  html .pg-home .hcp-step{justify-content:center}
  html .pg-home .hcp-step .hcp-tb{margin-top:var(--s2)}
  :root{--home-hero-pad:clamp(18px, calc(7vh - 26px), 44px); --hp-pad:clamp(14px, calc(3vh - 6px), 26px)}
}
/* a narrow computer window (761 to 1100, a laptop zoomed in; UI-56): the lists' figure columns step in, so a name never wraps a
   word to a line */
@media (max-width:1100px){ :root{ --learn-cols:calc(56px * var(--k)) minmax(0, 1fr) calc(128px * var(--k)); --pr-cols:calc(28px * var(--k)) minmax(0, 1fr) calc(104px * var(--k)) calc(104px * var(--k)); --ref-cols:var(--ref-key-col) minmax(0, 1fr) calc(160px * var(--k)) calc(96px * var(--k)) calc(72px * var(--k)) } }
/* os-dark:start */
/* a first visit on a computer set to dark (UI-100): Graphite's tokens before the modules load; generated by
   app2/tests/os-theme-css.js from ui/themes.js, do not edit by hand. A pick's inline colours win over these. */
@media (prefers-color-scheme: dark){ :root{ --paper:#1E2228; --sheet:#272B32; --chrome:#31363E; --line:#4A515B; --grid:#393E47; --edge:#8E96A1; --ink:#E2E6EB; --ink-2:#AEB5BF; --rail:#191C21; --rail-hi:#31363E; --rail-text:#E2E6EB; --rail-sub:#AEB5BF; --note:#FFF6C7; --note-ink:#12181E; --note-edge:#B9A53C; --instr:#6941C6; --instr-on:#FFFFFF; --red:#F39185; --on-fill:#1E2228; --plate-neutral:#23272D; --band:#31363E; --learn:#5BBE97; --learn-tint:#2B4440; --learn-line:#5BBE97; --learn-ink:#8FDDBC; --learn-on:#16181C; --learn-hover:#8FDDBC; --drills:#88AEE6; --drills-tint:#203149; --drills-line:#88AEE6; --drills-ink:#B7CDEE; --drills-on:#16181C; --drills-hover:#B7CDEE; --daily:#E39A5A; --daily-tint:#31363E; --daily-line:#E39A5A; --daily-ink:#F0C29C; --daily-on:#16181C; --daily-hover:#F0C29C; --rapid:#5DB7C6; --rapid-tint:#06373F; --rapid-line:#5DB7C6; --rapid-ink:#93D6E1; --rapid-on:#16181C; --rapid-hover:#93D6E1; --challenges:#DE8FAF; --challenges-tint:#2C3037; --challenges-line:#DE8FAF; --challenges-ink:#EEBFD0; --challenges-on:#16181C; --challenges-hover:#EEBFD0; --clock:#F0A81C; --clock-tint:#31363E; --clock-ink:#F7C65E; --clock-on:#1E2228; --clock-line:#F0A81C; --boards:#C696D5; --boards-tint:#3B2841; --boards-line:#C696D5; --boards-ink:#DEC2E7; --boards-on:#16181C; --boards-hover:#DEC2E7; --right:#5BBE97; --right-ink:#8FDDBC; --right-tint:#2B4440; --right-on:#16181C; --red-tint:#31363E; --ch1:#88C694; --ch1-on:#1E2228; --ch1-tint:#354640; --ch1-line:#88C694; --ch1-ink:#A7E7B4; --ch2:#81BBED; --ch2-on:#1E2228; --ch2-tint:#344453; --ch2-line:#81BBED; --ch2-ink:#B3DAFD; --ch3:#CAA2DF; --ch3-on:#1E2228; --ch3-tint:#443E50; --ch3-line:#CAA2DF; --ch3-ink:#EAC3FE; --ch4:#65C8BD; --ch4-on:#1E2228; --ch4-tint:#2E4749; --ch4-line:#65C8BD; --ch4-ink:#86E9DD; --ch5:#EA9BA4; --ch5-on:#1E2228; --ch5-tint:#31363E; --ch5-line:#EA9BA4; --ch5-ink:#FEC3C8; --ch6:#D4B20E; --ch6-on:#1E2228; --ch6-tint:#31363E; --ch6-line:#D4B20E; --ch6-ink:#EFD469; --team-green:#7BC27E; --team-green-on:#1E2228; --team-green-tint:#32453B; --team-green-line:#7BC27E; --team-green-ink:#9EE6A0; --team-teal:#31C2D9; --team-teal-on:#1E2228; --team-teal-tint:#22454F; --team-teal-line:#31C2D9; --team-teal-ink:#60E6FD; --team-blue:#7DAFF9; --team-blue-on:#1E2228; --team-blue-tint:#334156; --team-blue-line:#7DAFF9; --team-blue-ink:#B7D3FD; --team-purple:#BA9CEF; --team-purple-on:#1E2228; --team-purple-tint:#403D54; --team-purple-line:#BA9CEF; --team-purple-ink:#D8C6FD; --team-pink:#E88DB6; --team-pink-on:#1E2228; --team-pink-tint:#31363E; --team-pink-line:#E88DB6; --team-pink-ink:#FDBBD7; --team-red:#F08F83; --team-red-on:#1E2228; --team-red-tint:#31363E; --team-red-line:#F08F83; --team-red-ink:#FDC0B7; --team-orange:#FE8C25; --team-orange-on:#1E2228; --team-orange-tint:#31363E; --team-orange-line:#FE8C25; --team-orange-ink:#FDC39A; --team-gold:#CCAC0D; --team-gold-on:#1E2228; --team-gold-tint:#31363E; --team-gold-line:#CCAC0D; --team-gold-ink:#ECD065; --team-navyblue:#3B5FAE; --team-navyblue-on:#E2E6EB; --team-navyblue-tint:#242F45; --team-navyblue-line:#7B9CE6; --team-navyblue-ink:#A9C0F5; --team-maroon:#A3324A; --team-maroon-on:#E2E6EB; --team-maroon-tint:#31363E; --team-maroon-line:#E8899A; --team-maroon-ink:#F6B3BE; --team-evergreen:#2F8050; --team-evergreen-on:#F6F7F9; --team-evergreen-tint:#223731; --team-evergreen-line:#6CC487; --team-evergreen-ink:#9BE0B0; --pc-red:#F59A8F; --pc-red-on:#1E2228; --pc-orange:#F6AE6B; --pc-orange-on:#1E2228; --pc-yellow:#EDC54F; --pc-yellow-on:#1E2228; --pc-green:#8DCF98; --pc-green-on:#1E2228; --pc-blue:#93BBF2; --pc-blue-on:#1E2228; --pc-purple:#C4A6EE; --pc-purple-on:#1E2228; --pc-pink:#F49FC6; --pc-pink-on:#1E2228; --pc-charcoal:#9EA5AE; --pc-charcoal-on:#1E2228; --pc-navyblue:#40AAF7; --pc-navyblue-on:#1E2228; --pc-maroon:#FE76A0; --pc-maroon-on:#1E2228; --pc-evergreen:#79B286; --pc-evergreen-on:#1E2228; --pc-aqua:#66D2CE; --pc-aqua-on:#1E2228; --pc-azure:#95D4F6; --pc-azure-on:#1E2228; --pc-iris:#8C9CFD; --pc-iris-on:#1E2228; --pc-magenta:#EA93E8; --pc-magenta-on:#1E2228; --pc-burgundy:#CA93AC; --pc-burgundy-on:#1E2228; --pc-cocoa:#CBA182; --pc-cocoa-on:#1E2228; --pc-steel:#68B1C7; --pc-steel-on:#1E2228; --pc-lime:#C8DF4C; --pc-lime-on:#1E2228; --pc-guest:#A3AAB3; --pc-guest-on:#1E2228; --medal-1:#E3BC3C; --medal-2:#C3CAD3; --medal-3:#D99A66; --keytip:#E2E6EB; --on-keytip:#272B32 } }
/* os-dark:end */

/* Course's list (UI-122, UI-132): its compact columns without Level (the card shows it) and its floor, the four fixed tracks
   without Level, the name's floor and five gaps, on the same names as the Drills list's so one container rule serves both */
.cs-page{--idx-cols-compact:calc((var(--s16) + var(--s2)) * var(--k)) minmax(var(--idx-name-min), 1fr) calc(var(--s24) * var(--k)) calc((var(--s10) + var(--s1)) * var(--k));
  --idx-list-min:calc((var(--s16) + var(--s2) + var(--s24) + var(--s10) + var(--s1)) * var(--k) + var(--idx-name-min) + 5 * var(--tpl-in))}
/* the Drills side card's picture (UI-118): the thumbnail's own tokens, set for that card. Its tile is the card's whole inner width
   at the laptop's side column (tests/end-states.js DRILL_TILE, 344 by 181, in the 388px side the Chapter column gave its width to),
   grown to the card's inner width at 1920 (482px) and at 2560 (578px) */
.dx-card{--thumb-w:344px; --thumb-h:181px; --thumb-k:1.4}
@media (min-width:761px) and (max-width:1700px){ .dx-card{--thumb-k:1} }   /* with the 388 side, by width alone (spec narrow-1119 section C step 4) */
@media (min-width:2400px){ .dx-card{--thumb-k:1.68} }
/* This week under the Drills side card (UI-118): a window too short for the card and the band's folded head (the card ends near
   595px on a laptop, the frame 30px above the window's foot) leaves the band out; its board stays on Compete */
@media (max-height:700px){ .dx-two .dx-week{display:none} }
/* the Drills rail on a short window (UI-118, layout rule 2): its nine rows close up a step so the Passed row ends level with the
   table's foot (1366 by 657: 9 rows of 36.3px end at the table's 616px), and the rail never scrolls */
@media (max-height:700px){ .dx-rail{--row-list:calc(121px / 3 * var(--k))} }
