/* frap.css — Frappuccino's one stylesheet for the shell: tokens, the material, the components,
   the screens. The drill has its own sheet (frap-drill.css) on these tokens.

   THE MATERIAL IS GLASS WITH A LIGHT ON IT (PLAN.md, 4). Five layers, on .glass:
     frost     backdrop-filter over the moving field, and a thin warm fill
     edge      ::before, a 1px gradient border, bright at the top-left, gone at the bottom-right
     specular  ::after, a spot that follows the finger or the pointer (--px, --py, set by
               frap-glass.js), and on [data-live] a slow band that drifts at rest
     depth     an inner shade at the bottom, a soft cast below
     (no grain: «Graininess is undesirable», 2026-10-02; --grain is never set, and reads as none)
   ::before and ::after of a .glass element belong to the material: draw nothing else with them.

   TWO REGISTERS, ONE SET OF TOKENS. The dark's tokens are :root's. «Milk» is the light one, and the
   default (html[data-look="milk"], set by frap-app.js from the learner's choice: Light, Dark or Auto):
   it redefines the tokens and nothing else, so a rule written on the tokens is written twice.
     --tint   a wash: lighter than the surface on the dark, darker on Milk  rgba(var(--tint), a)
     --shade  what a shadow is made of, and --sk how strong it is            rgba(var(--shade), calc(a * var(--sk)))
   A literal white is a LIGHT (an edge, a sheen, a highlight) and is white in both.

   CONTRAST-CONTRACT (scripts/verify_contrast.py reads these lines and the tokens they name, and
   holds every line in BOTH registers). What a surface is, for the gate:
     field          the field at its worst for the ink: under the dark its brightest colour
                    (--field-max), under Milk its darkest (--field-min). Neither is taken on
                    trust: the shader in frap-glass.js limits its own picture (Ymax, Ymilk), the
                    gate reads those numbers and holds each token to its own.
     glass          --glass-fill over the field: a glass at its worst
     glass-top      glass under --glass-top, the light at a glass's top edge
     glass-strong   --glass-strong-fill over the field
     glass-spot     glass under --spot, the specular at its peak (under the finger, or the pointer)
   Text straight on the field is --ink or --ink-2 only; --ink-3 is for glass.
     --ink       on field          >= 7
     --ink-2     on field          >= 4.5
     --acc-ink   on field          >= 4.5
     --ink       on glass          >= 7
     --ink-2     on glass          >= 7
     --ink-3     on glass          >= 4.5
     --ink-3     on glass-top      >= 4.5
     --ink       on glass-spot     >= 4.5
     --ink-2     on glass-spot     >= 4.5
     --ink       on glass-strong   >= 7
     --ink-3     on glass-strong   >= 4.5
     --acc-ink   on glass          >= 4.5
     --acc-ink   on glass-top      >= 4.5
     --acc-ink   on glass-strong   >= 4.5
     --wrong-ink on glass          >= 4.5
     --wrong-ink on glass-top      >= 4.5
     --on-acc    on --acc-1        >= 4.5
     --on-acc    on --acc-2        >= 7
     --on-acc    on --acc-3        >= 4.5
     --on-acc    on --acc-4        >= 4.5
     --on-rwd    on --rwd-1        >= 4.5
     --on-rwd    on --rwd-2        >= 4.5
     --on-rwd    on --rwd-3        >= 4.5
     --on-rwd    on --rwd-4        >= 4.5
     --on-btn    on --btn-1        >= 4.5
     --on-btn    on --btn-2        >= 4.5
     --gauge-ink on field          >= 3
   And on a fill, the cascade (verify_contrast.py, ON FILL): a text laid on the fill keeps its ink.
     ON-FILL: --acc : --on-acc
     ON-FILL: --btn-fill : --on-btn
*/

/* ── tokens ─────────────────────────────────────────────────────────────────────────── */
/* THREE PALETTES × TWO REGISTERS, ONE SET OF SEMANTIC TOKENS (ROUND3.md, 2.1). Opal is the
   default (:root, and Milk's block); Rose gold and Graphite redefine the same tokens in their own
   blocks. No rule below the tokens names a palette's colour: it names what the colour is FOR.
     accent   state and progress: rings, the progress bar, a switch on, a chosen disc or row,
              the next stop, the badges          --acc-1…4, --acc (the gradient), --acc-ink (its
              text on glass), --on-acc (ink on its fill), --acc-rgb (a wash), --sel-wash, --glow
     reward   success only: a right answer, a clean round        --rwd-1…4, --rwd, --on-rwd, --rwd-glow
     button   the primary capsule (white on the dark and black on Milk, in Opal and Graphite;
              the rose gold in Rose gold)                         --btn-1, --btn-2, --btn-fill, --on-btn
     seg      the segmented control's thumb                       --seg-fill, --on-seg
   «--accent» and «--on-accent» are the engine base's own names (frap-drill.css maps them onto
   these), so the palette's are --acc and --on-acc. */
:root {
  color-scheme: dark;
  /* ground and ink: Opal is a cool near-black */
  --ground: #060708;
  --ground-rgb: 6, 7, 8;
  --field-max: #405068;
  --ink: #f4f6f7;
  --ink-2: #d3d9dd;
  --ink-3: #aeb6bc;
  --line: rgba(var(--tint), .10);
  /* the accent: mint, sky, lilac */
  --acc-1: #c9fbea;
  --acc-2: #93ebd3;
  --acc-3: #92b8ff;
  --acc-4: #c6a6ff;
  --acc: linear-gradient(135deg, var(--acc-1) 0%, var(--acc-2) 34%, var(--acc-3) 66%, var(--acc-4) 100%);
  --acc-ink: #9debd5;
  --on-acc: #07130f;
  --acc-rgb: 147, 235, 211;
  --acc-deep: rgba(30, 70, 90, .35);
  --sel-wash: color-mix(in srgb, var(--acc-2) 12%, transparent);
  --glow: rgba(147, 235, 211, .42);
  --ring-1: var(--acc-1);
  --ring-2: var(--acc-2);
  --ring-3: var(--acc-3);
  --ring-4: var(--acc-4);
  --gauge-num: linear-gradient(135deg, var(--acc-1), var(--acc-2) 40%, var(--acc-3));
  --gauge-ink: #92b8ff;
  /* the reward: the accent's iridescence, with a blush of rose */
  --rwd-1: #cffbea;
  --rwd-2: #9edcff;
  --rwd-3: #c9b2ff;
  --rwd-4: #f6c3b5;
  --rwd: linear-gradient(135deg, var(--rwd-1) 0%, var(--rwd-2) 34%, var(--rwd-3) 66%, var(--rwd-4) 100%);
  --on-rwd: #0b0e12;
  --rwd-glow: rgba(158, 220, 255, .5);
  /* the primary button: a white capsule */
  --btn-1: #ffffff;
  --btn-2: #e6ebee;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #0b0e12;
  --btn-rim: rgba(255, 255, 255, .9);
  --btn-deep: rgba(60, 80, 96, .22);
  --btn-sheen: rgba(255, 255, 255, .55);
  /* the segmented control's thumb: a bright neutral */
  --seg-fill: rgba(255, 255, 255, .9);
  --on-seg: #0b0e12;
  --seg-glow: rgba(0, 0, 0, .35);
  /* a settings row's icon: neutral */
  --ic-ink: var(--ink-2);
  --ic-rgb: var(--tint);
  --wrong-ink: #ff9d8f;
  --wrong: #e5604e;
  /* the glass: cooler, and barely there */
  --glass-fill: rgba(20, 22, 25, .50);
  --glass-top: rgba(255, 255, 255, .085);
  --glass-strong-fill: rgba(14, 16, 18, .76);
  --glass-blur: 28px;
  --glass-sat: 170%;
  --rim: rgba(255, 255, 255, .50);
  --rim-soft: rgba(255, 255, 255, .09);
  --glass-thin-fill: rgba(24, 27, 30, .40);
  --glass-ghost: rgba(20, 22, 25, .22);
  --hi: rgba(255, 255, 255, .16);
  --rim-far: rgba(255, 255, 255, .14);
  --cast: 0 18px 44px -14px rgba(0, 0, 0, .62), 0 2px 6px rgba(0, 0, 0, .28);
  --cast-answer: 0 12px 28px -14px rgba(0, 0, 0, .6);
  --cast-sheet: 0 22px 50px -16px rgba(0, 0, 0, .75);
  --spot: rgba(255, 255, 255, .14);
  --sheen: rgba(255, 255, 255, .075);
  --scrim: rgba(2, 3, 4, .5);
  --thumb: rgba(255, 255, 255, .13);
  --thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .05);
  /* a wash (lighter on the dark, darker on Milk) and a shade, each register's own */
  --tint: 255, 255, 255;
  --shade: 0, 0, 0;
  --sk: 1;
  /* where the browser cannot frost: what a glass is made of instead */
  --frost-off: #14171a;
  --frost-off-strong: #0f1113;
  --frost-off-thin: #191c1f;
  /* Settings' pictures of each register, in this palette (they show THEIR register, whatever the page wears) */
  --pv-d1: #1d5a4e; --pv-d2: #2b3a7a; --pv-dg: #060708; --pv-db: #ffffff;
  --pv-l1: #c8efe3; --pv-l2: #ddd5fb; --pv-lg: #f2f5f6; --pv-lb: #111418;
  /* where there is no WebGL, or the field is still: the same lights, standing, in CSS (html.no-field) */
  --fld-1: rgba(60, 180, 150, .30); --fld-2: rgba(80, 130, 255, .18); --fld-3: rgba(130, 90, 230, .18); --fld-4: rgba(10, 80, 80, .32);
  /* shape */
  --r-sheet: 34px;
  --r-card: 28px;
  --r-tile: 22px;
  --r-answer: 20px;
  --r-row: 18px;
  --gutter: 20px;
  /* type: the platform's face for the chrome */
  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Inter", sans-serif;
  /* type: the card's «Default» (TYPE.md call T2), the face that holds a stress accent over its vowel in this engine:
     Inter (already loaded as the skins' text face) where the platform face is unmeasured or sets it beside; the
     platform face in WebKit (html.wk, frap-app.js), where it holds */
  --card-face: "Inter DEF", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* motion: a spring, where the browser can say one; an overshooting curve where it cannot */
  --spring: cubic-bezier(.2, .9, .25, 1.18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .36s;
  --t-slow: .62s;
  /* safe areas */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --tabbar-h: 62px;
}
html.wk { --card-face: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
/* EMBER (THUD DEF, 2026-10-03): grace under fire. A blue-black ground; Ukraine's blue as cold light
   for state and progress (the accent), its yellow as molten gold for a right answer and for the one
   primary (the reward, the button). The field burns low and warm under it (frap-glass.js). Tokens
   only; the brighter P3 gold and blue are LIGHTS in thud-def.css (sparks, glows, strokes), never a
   ground for text. */
html[data-palette="ember"] {
  --ground: #05070d;
  --ground-rgb: 5, 7, 13;
  --field-max: #5d4c35;
  --ink: #f3f5f8;
  --ink-2: #d7dce4;
  --ink-3: #b6bec9;
  --acc-1: #d6e4ff;
  --acc-2: #a3c0ff;
  --acc-3: #6f9bff;
  --acc-4: #4a7ff2;
  --acc-ink: #a9c5ff;
  --on-acc: #040a1c;
  --acc-rgb: 120, 160, 255;
  --acc-deep: rgba(20, 50, 140, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(111, 155, 255, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f3f5f8;
  --rwd-1: #fff1c4;
  --rwd-2: #ffd66e;
  --rwd-3: #f5b13a;
  --rwd-4: #e08f23;
  --on-rwd: #1a1003;
  --rwd-glow: rgba(255, 190, 70, .6);
  --btn-1: #ffe39a;
  --btn-2: #f0a93a;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1a1003;
  --btn-rim: rgba(255, 245, 210, .85);
  --btn-deep: rgba(140, 80, 10, .55);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #040a1c;
  --seg-glow: rgba(111, 155, 255, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 120, 160, 255;
  --glass-fill: rgba(9, 13, 24, .52);
  --glass-strong-fill: rgba(7, 10, 19, .78);
  --glass-thin-fill: rgba(12, 17, 30, .42);
  --glass-ghost: rgba(9, 13, 24, .24);
  --scrim: rgba(1, 2, 6, .6);
  --frost-off: #0c111d;
  --frost-off-strong: #090d17;
  --frost-off-thin: #101624;
  --pv-d1: #1f3f9a; --pv-d2: #e08f23; --pv-dg: #05070d; --pv-db: linear-gradient(135deg, #ffe39a, #f0a93a);
  --pv-l1: #d3ddf3; --pv-l2: #f5d68e; --pv-lg: #eef1f5; --pv-lb: linear-gradient(135deg, #ffd979, #f0a93a);
  --fld-1: rgba(30, 70, 190, .26); --fld-2: rgba(240, 150, 40, .16); --fld-3: rgba(20, 40, 110, .32); --fld-4: rgba(240, 190, 80, .10);
}
/* THUD PUNK's two skins beside Ember (Dieselpunk), ported from Matcha Edition's Steampunk and Cyberpunk
   (app/tokens.css there, from its Figma file) onto THUD's roles: the accent is state and progress, the reward a
   right answer and the one primary. Ukraine's blue and yellow stay LIGHT in both: Steampunk's accent is blued
   steel (a watch hand's tempered blue) and its reward brass; Cyberpunk's accent is cyan neon and its reward
   sodium-yellow neon, its magenta only a lit edge (punk-cyber.css). Tokens only; the material is in punk-*.css. */
/* STEAMPUNK by night: lamplight on brass, walnut and leather in the shadows. */
html[data-palette="steam"] {
  --ground: #0d0907;
  --ground-rgb: 13, 9, 7;
  --field-max: #604a33;
  --ink: #f8f1e2;
  --ink-2: #dccdb1;
  --ink-3: #bfae8f;
  --acc-1: #dce8fb;
  --acc-2: #a9c4ee;
  --acc-3: #7ea4de;
  --acc-4: #5c86cc;
  --acc-ink: #a6c2ec;
  --on-acc: #08111f;
  --acc-rgb: 126, 164, 222;
  --acc-deep: rgba(30, 55, 110, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(126, 164, 222, .42);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f8f1e2;
  --rwd-1: #fff0c9;
  --rwd-2: #f2d07c;
  --rwd-3: #ddb158;
  --rwd-4: #c4943c;
  --on-rwd: #1b1106;
  --rwd-glow: rgba(240, 190, 90, .55);
  --btn-1: #f4d98f;
  --btn-2: #c99a45;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1b1106;
  --btn-rim: rgba(255, 240, 200, .8);
  --btn-deep: rgba(110, 70, 20, .55);
  --btn-sheen: rgba(255, 250, 230, .5);
  --seg-fill: var(--acc);
  --on-seg: #08111f;
  --seg-glow: rgba(126, 164, 222, .45);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 126, 164, 222;
  --glass-fill: rgba(28, 20, 13, .55);
  --glass-strong-fill: rgba(22, 16, 10, .80);
  --glass-thin-fill: rgba(32, 23, 15, .45);
  --glass-ghost: rgba(28, 20, 13, .24);
  --scrim: rgba(6, 4, 2, .6);
  --frost-off: #1a130d;
  --frost-off-strong: #140f0a;
  --frost-off-thin: #1f1710;
  --pv-d1: #5c86cc; --pv-d2: #c4943c; --pv-dg: #0d0907; --pv-db: linear-gradient(135deg, #f4d98f, #c99a45);
  --pv-l1: #c2d4f0; --pv-l2: #f2d58a; --pv-lg: #f3ead8; --pv-lb: linear-gradient(135deg, #f2d58a, #c99a45);
  --fld-1: rgba(225, 150, 60, .22); --fld-2: rgba(150, 85, 40, .18); --fld-3: rgba(40, 65, 115, .26); --fld-4: rgba(240, 200, 120, .10);
}
/* CYBERPUNK by night: smoked glass over a neon city in the rain. */
html[data-palette="cyber"] {
  --ground: #04060c;
  --ground-rgb: 4, 6, 12;
  --field-max: #404d72;
  --ink: #eef2fa;
  --ink-2: #c3cbdd;
  --ink-3: #a3adc4;
  --acc-1: #d2f7ff;
  --acc-2: #8deeff;
  --acc-3: #45e3ff;
  --acc-4: #14bde6;
  --acc-ink: #7ee9ff;
  --on-acc: #01131a;
  --acc-rgb: 69, 227, 255;
  --acc-deep: rgba(0, 110, 150, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(69, 227, 255, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #eef2fa;
  --rwd-1: #fffbd0;
  --rwd-2: #fff27e;
  --rwd-3: #ffe24d;
  --rwd-4: #f2c200;
  --on-rwd: #151100;
  --rwd-glow: rgba(255, 226, 77, .55);
  --btn-1: #fff27e;
  --btn-2: #ffc928;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #151100;
  --btn-rim: rgba(255, 255, 220, .85);
  --btn-deep: rgba(140, 100, 0, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #01131a;
  --seg-glow: rgba(69, 227, 255, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 69, 227, 255;
  --glass-fill: rgba(8, 11, 22, .55);
  --glass-strong-fill: rgba(6, 8, 17, .80);
  --glass-thin-fill: rgba(10, 14, 27, .45);
  --glass-ghost: rgba(8, 11, 22, .24);
  --scrim: rgba(1, 2, 6, .62);
  --frost-off: #0b0f1c;
  --frost-off-strong: #080b15;
  --frost-off-thin: #0e1322;
  --pv-d1: #14bde6; --pv-d2: #ff5ad9; --pv-dg: #04060c; --pv-db: linear-gradient(135deg, #fff27e, #ffc928);
  --pv-l1: #a8ecfa; --pv-l2: #ffd6f4; --pv-lg: #e8ecf4; --pv-lb: linear-gradient(135deg, #ffe866, #f5c518);
  --fld-1: rgba(30, 200, 255, .20); --fld-2: rgba(255, 60, 200, .16); --fld-3: rgba(30, 40, 150, .30); --fld-4: rgba(255, 220, 60, .07);
}
/* RAYPUNK by night (run 2, 2026-10-15): the atomic age's starfield from a chrome cockpit. Its accent atomic teal (state and
   progress), its reward an amber dial-light (a right answer, the one primary): Ukraine's blue and yellow kept LIGHT, as in
   the other skins. Cherry red is enamel trim only (punk-ray.css), never a state: red stays the wrong answer's. */
html[data-palette="ray"] {
  --ground: #050a0e;
  --ground-rgb: 5, 10, 14;
  --field-max: #375454;
  --ink: #f7f1e3;
  --ink-2: #d9d3c4;
  --ink-3: #bab4a4;
  --acc-1: #d2fbf3;
  --acc-2: #96f0e0;
  --acc-3: #52dcc6;
  --acc-4: #23bfa9;
  --acc-ink: #86ecda;
  --on-acc: #02150f;
  --acc-rgb: 82, 220, 198;
  --acc-deep: rgba(0, 110, 96, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(82, 220, 198, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #f7f1e3;
  --rwd-1: #fff1cc;
  --rwd-2: #ffd27c;
  --rwd-3: #ffb14a;
  --rwd-4: #f28f2c;
  --on-rwd: #1c0f02;
  --rwd-glow: rgba(255, 176, 74, .55);
  --btn-1: #ffe6ad;
  --btn-2: #f6a845;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1c0f02;
  --btn-rim: rgba(255, 248, 225, .85);
  --btn-deep: rgba(150, 80, 10, .5);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #02150f;
  --seg-glow: rgba(82, 220, 198, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 82, 220, 198;
  --glass-fill: rgba(8, 16, 20, .55);
  --glass-strong-fill: rgba(6, 12, 16, .80);
  --glass-thin-fill: rgba(10, 19, 24, .45);
  --glass-ghost: rgba(8, 16, 20, .24);
  --scrim: rgba(1, 4, 6, .6);
  --frost-off: #0c171c;
  --frost-off-strong: #09131a;
  --frost-off-thin: #101c22;
  --pv-d1: #23bfa9; --pv-d2: #f28f2c; --pv-dg: #050a0e; --pv-db: linear-gradient(135deg, #ffe6ad, #f6a845);
  --pv-l1: #b5ece2; --pv-l2: #ffd9a0; --pv-lg: #f4eee0; --pv-lb: linear-gradient(135deg, #ffd78a, #f0a040);
  --fld-1: rgba(40, 200, 180, .20); --fld-2: rgba(230, 60, 70, .12); --fld-3: rgba(20, 50, 80, .30); --fld-4: rgba(255, 180, 80, .08);
}
/* WEIRD WEST by night (run 4, 2026-10-19; the owner: «one with steampunk and wild west»): brass on the frontier under the
   Milky Way. Its accent desert turquoise (state and progress), its reward lamplit brass (a right answer, the one primary):
   Ukraine's blue and yellow kept LIGHT, as in the other skins. Copper and red rock are trim only (punk-west.css), never a
   state: red stays the wrong answer's. */
html[data-palette="west"] {
  --ground: #0b0806;
  --ground-rgb: 11, 8, 6;
  --field-max: #5c4c3e;
  --ink: #fdf6ea;
  --ink-2: #e2d6c3;
  --ink-3: #bfae97;
  --acc-1: #d4f7f0;
  --acc-2: #9ee6d8;
  --acc-3: #4fcab6;
  --acc-4: #23a892;
  --acc-ink: #8ee3d3;
  --on-acc: #02140f;
  --acc-rgb: 79, 202, 182;
  --acc-deep: rgba(0, 105, 90, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(79, 202, 182, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #fdf6ea;
  --rwd-1: #fff0c8;
  --rwd-2: #f6cf7c;
  --rwd-3: #e6a948;
  --rwd-4: #c9822c;
  --on-rwd: #1d1003;
  --rwd-glow: rgba(230, 169, 72, .55);
  --btn-1: #ffe3a6;
  --btn-2: #e9a24a;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1d1003;
  --btn-rim: rgba(255, 246, 222, .85);
  --btn-deep: rgba(140, 70, 15, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #02140f;
  --seg-glow: rgba(79, 202, 182, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 79, 202, 182;
  --glass-fill: rgba(22, 14, 9, .55);
  --glass-strong-fill: rgba(16, 10, 7, .80);
  --glass-thin-fill: rgba(26, 17, 11, .45);
  --glass-ghost: rgba(22, 14, 9, .24);
  --scrim: rgba(5, 3, 2, .6);
  --frost-off: #1a120c;
  --frost-off-strong: #140e09;
  --frost-off-thin: #20160f;
  --pv-d1: #23a892; --pv-d2: #c9822c; --pv-dg: #0b0806; --pv-db: linear-gradient(135deg, #ffe3a6, #e9a24a);
  --pv-l1: #b8ebe2; --pv-l2: #f7d3a0; --pv-lg: #f4e8d6; --pv-lb: linear-gradient(135deg, #ffd88f, #e6983e);
  --fld-1: rgba(60, 190, 170, .18); --fld-2: rgba(210, 110, 50, .16); --fld-3: rgba(45, 26, 16, .32); --fld-4: rgba(255, 190, 90, .08);
}
/* SILKPUNK by night (run 4, 2026-10-19; the owner: «and one with silkpunk»): bamboo, silk and bronze among karst peaks
   under the moon. Its accent jade (state and progress), its reward gold leaf (a right answer, the one primary): Ukraine's
   blue and yellow kept LIGHT. Vermilion lacquer and lapis are trim only (punk-silk.css), never a state. */
html[data-palette="silk"] {
  --ground: #07080b;
  --ground-rgb: 7, 8, 11;
  --field-max: #3c535d;
  --ink: #fcf8ee;
  --ink-2: #e3dccc;
  --ink-3: #bfb6a2;
  --acc-1: #d6f6e6;
  --acc-2: #9fe6c4;
  --acc-3: #55c99a;
  --acc-4: #2ea67a;
  --acc-ink: #8fe0bb;
  --on-acc: #02140c;
  --acc-rgb: 85, 201, 154;
  --acc-deep: rgba(0, 100, 70, .45);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(85, 201, 154, .45);
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #fcf8ee;
  --rwd-1: #fff2c6;
  --rwd-2: #f7d77e;
  --rwd-3: #e9b64a;
  --rwd-4: #cf9530;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(233, 182, 74, .55);
  --btn-1: #ffe9b0;
  --btn-2: #e8b24c;
  --btn-fill: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  --on-btn: #1c1203;
  --btn-rim: rgba(255, 248, 226, .85);
  --btn-deep: rgba(140, 90, 15, .5);
  --btn-sheen: rgba(255, 255, 255, .5);
  --seg-fill: var(--acc);
  --on-seg: #02140c;
  --seg-glow: rgba(85, 201, 154, .5);
  --ic-ink: var(--acc-ink);
  --ic-rgb: 85, 201, 154;
  --glass-fill: rgba(10, 13, 19, .55);
  --glass-strong-fill: rgba(8, 10, 15, .80);
  --glass-thin-fill: rgba(12, 15, 22, .45);
  --glass-ghost: rgba(10, 13, 19, .24);
  --scrim: rgba(2, 3, 5, .6);
  --frost-off: #10141c;
  --frost-off-strong: #0c1017;
  --frost-off-thin: #141a23;
  --pv-d1: #2ea67a; --pv-d2: #cf9530; --pv-dg: #07080b; --pv-db: linear-gradient(135deg, #ffe9b0, #e8b24c);
  --pv-l1: #bfeedb; --pv-l2: #f8dc9c; --pv-lg: #f5efe1; --pv-lb: linear-gradient(135deg, #ffe08f, #e3a83c);
  --fld-1: rgba(70, 200, 150, .18); --fld-2: rgba(220, 70, 40, .12); --fld-3: rgba(30, 48, 110, .30); --fld-4: rgba(255, 200, 90, .08);
}
/* MILK: the light register. The same shapes, the same light; a cool white for the ground in Opal
   (cream in Rose gold), near-black ink, and the accent a shade deeper so it holds its edge on a
   pale field. */
html[data-look="milk"] {
  color-scheme: light;
  --ground: #f2f5f6;
  --ground-rgb: 242, 245, 246;
  --field-min: #bac4c9;
  --ink: #11161a;
  --ink-2: #2e373d;
  --ink-3: #4c565e;
  --acc-1: #7fe0c6;
  --acc-2: #6fa8f5;
  --acc-3: #a58cf0;
  --acc-4: #c6a6ff;
  --acc-ink: #065444;
  --gauge-num: linear-gradient(var(--acc-ink), var(--acc-ink));
  --gauge-ink: #065444;
  --on-acc: #03140f;
  --acc-rgb: 30, 150, 125;
  --acc-deep: rgba(40, 70, 120, .25);
  --sel-wash: color-mix(in srgb, var(--acc-2) 14%, transparent);
  --glow: rgba(63, 140, 232, .28);
  --rwd-glow: rgba(111, 168, 245, .42);
  --btn-1: #1a1e22;
  --btn-2: #050607;
  --on-btn: #ffffff;
  --btn-rim: rgba(255, 255, 255, .22);
  --btn-deep: rgba(0, 0, 0, .4);
  --btn-sheen: rgba(255, 255, 255, .2);
  --seg-fill: #ffffff;
  --on-seg: #11161a;
  --seg-glow: rgba(40, 56, 70, .22);
  --wrong-ink: #a52c1c;
  --wrong: #c8452f;
  --glass-fill: rgba(252, 253, 254, .80);
  --glass-top: rgba(255, 255, 255, 0);
  --glass-strong-fill: rgba(252, 253, 254, .92);
  --glass-thin-fill: rgba(252, 253, 254, .66);
  --glass-ghost: rgba(250, 252, 253, .22);
  --glass-sat: 150%;
  --rim: rgba(255, 255, 255, .75);
  --rim-soft: rgba(255, 255, 255, .25);
  --rim-far: rgba(70, 90, 110, .12);
  --hi: rgba(255, 255, 255, .7);
  --cast: 0 10px 30px -18px rgba(40, 56, 70, .22), 0 1px 2px rgba(40, 56, 70, .06);
  --cast-answer: 0 8px 20px -14px rgba(40, 56, 70, .20);
  --cast-sheet: 0 18px 44px -20px rgba(40, 56, 70, .30);
  --spot: rgba(255, 255, 255, .35);
  --sheen: rgba(255, 255, 255, .30);
  --scrim: rgba(24, 32, 40, .28);
  --thumb: rgba(255, 255, 255, .82);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(40, 56, 70, .16);
  --tint: 30, 44, 56;
  --shade: 40, 56, 70;
  --sk: .24;   /* matte: the shades under and inside a surface, quieter (round four) */
  --frost-off: #f5f7f8;
  --frost-off-strong: #fbfcfc;
  --frost-off-thin: #eef1f3;
  --fld-1: rgba(200, 240, 228, .85); --fld-2: rgba(214, 228, 252, .70); --fld-3: rgba(228, 220, 252, .80); --fld-4: rgba(250, 232, 230, .80);
}
/* EMBER UNDER MILK: Dawn. A cool steel-white ground, near-black ink; the accent's blues lifted so
   their dark ink holds on every stop; the gold primary as it is in the dark. */
html[data-look="milk"][data-palette="ember"] {
  --ground: #eef1f5;
  --ground-rgb: 238, 241, 245;
  --field-min: #b9c3d3;
  --ink: #0b1220;
  --ink-2: #263046;
  --ink-3: #414c63;
  --acc-1: #b9cfff;
  --acc-2: #8aa9f8;
  --acc-3: #6e93f0;
  --acc-4: #5a82ea;
  --acc-ink: #163c9e;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #0b1220;
  --on-acc: #04102e;
  --acc-rgb: 61, 107, 224;
  --acc-deep: rgba(20, 50, 140, .35);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(61, 107, 224, .40);
  --ring-1: #6e93f0;
  --ring-2: #5a82ea;
  --ring-3: #3d6be0;
  --ring-4: #2350c2;
  --rwd-1: #ffe7a6;
  --rwd-2: #ffd06a;
  --rwd-3: #f4b544;
  --rwd-4: #e39e2c;
  --on-rwd: #1a1003;
  --rwd-glow: rgba(240, 160, 40, .5);
  --btn-1: #ffd979;
  --btn-2: #f0a93a;
  --on-btn: #1a1003;
  --btn-rim: rgba(255, 255, 255, .85);
  --btn-deep: rgba(140, 80, 10, .45);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #04102e;
  --seg-glow: rgba(61, 107, 224, .45);
  --glass-fill: rgba(255, 255, 255, .80);
  --glass-strong-fill: rgba(255, 255, 255, .92);
  --glass-thin-fill: rgba(255, 255, 255, .66);
  --glass-ghost: rgba(255, 255, 255, .22);
  --rim-far: rgba(20, 32, 64, .12);
  --cast: 0 10px 30px -18px rgba(20, 32, 64, .26), 0 1px 2px rgba(20, 32, 64, .06);
  --cast-answer: 0 8px 20px -14px rgba(20, 32, 64, .22);
  --cast-sheet: 0 18px 44px -20px rgba(20, 32, 64, .32);
  --scrim: rgba(10, 16, 32, .32);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(20, 32, 64, .16);
  --tint: 20, 32, 64;
  --shade: 20, 32, 64;
  --frost-off: #f4f6f9;
  --frost-off-strong: #fafbfd;
  --frost-off-thin: #e8ecf2;
  --fld-1: rgba(200, 214, 240, .85); --fld-2: rgba(245, 214, 142, .50); --fld-3: rgba(186, 202, 232, .80); --fld-4: rgba(250, 236, 205, .80);
}
/* Steampunk by day: the workshop in morning sun, parchment and walnut ink, blued steel a shade deeper. */
html[data-look="milk"][data-palette="steam"] {
  --ground: #f3ead8;
  --ground-rgb: 243, 234, 216;
  --field-min: #c8b693;
  --ink: #23180f;
  --ink-2: #47372a;
  --ink-3: #5e4b39;
  --acc-1: #c2d4f0;
  --acc-2: #93b2e3;
  --acc-3: #6f95d6;
  --acc-4: #5781c9;
  --acc-ink: #24467f;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #23180f;
  --on-acc: #08111f;
  --acc-rgb: 60, 100, 170;
  --acc-deep: rgba(30, 55, 110, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(60, 100, 170, .35);
  --ring-1: #6f95d6;
  --ring-2: #5781c9;
  --ring-3: #3f6bb7;
  --ring-4: #2b549c;
  --rwd-1: #ffe8b0;
  --rwd-2: #f3cd78;
  --rwd-3: #ddae55;
  --rwd-4: #c4943c;
  --on-rwd: #1b1106;
  --rwd-glow: rgba(200, 140, 40, .45);
  --btn-1: #f2d58a;
  --btn-2: #c99a45;
  --on-btn: #1b1106;
  --btn-rim: rgba(255, 250, 235, .85);
  --btn-deep: rgba(110, 70, 20, .45);
  --btn-sheen: rgba(255, 255, 255, .55);
  --seg-fill: var(--acc);
  --on-seg: #08111f;
  --seg-glow: rgba(60, 100, 170, .40);
  --glass-fill: rgba(253, 248, 238, .80);
  --glass-strong-fill: rgba(253, 248, 238, .93);
  --glass-thin-fill: rgba(253, 248, 238, .66);
  --glass-ghost: rgba(253, 248, 238, .22);
  --rim-far: rgba(70, 45, 20, .14);
  --cast: 0 10px 30px -18px rgba(60, 38, 16, .30), 0 1px 2px rgba(60, 38, 16, .08);
  --cast-answer: 0 8px 20px -14px rgba(60, 38, 16, .24);
  --cast-sheet: 0 18px 44px -20px rgba(60, 38, 16, .34);
  --scrim: rgba(40, 26, 12, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(60, 38, 16, .18);
  --tint: 60, 38, 16;
  --shade: 60, 38, 16;
  --frost-off: #f8f1e3;
  --frost-off-strong: #fcf8ef;
  --frost-off-thin: #f1e8d6;
  --fld-1: rgba(250, 225, 170, .85); --fld-2: rgba(235, 215, 185, .70); --fld-3: rgba(205, 220, 240, .70); --fld-4: rgba(245, 230, 205, .80);
}
/* Cyberpunk by day: the same city on an overcast morning, frosted glass, the neon a shade deeper. */
html[data-look="milk"][data-palette="cyber"] {
  --ground: #e8ecf4;
  --ground-rgb: 232, 236, 244;
  --field-min: #b6bfd0;
  --ink: #0b0f1c;
  --ink-2: #283048;
  --ink-3: #414a64;
  --acc-1: #a8ecfa;
  --acc-2: #62d6f0;
  --acc-3: #1fb7da;
  --acc-4: #0e9cc0;
  --acc-ink: #00495a;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #0b0f1c;
  --on-acc: #01131a;
  --acc-rgb: 0, 140, 175;
  --acc-deep: rgba(0, 90, 120, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 190, .35);
  --ring-1: #1fb7da;
  --ring-2: #0e9cc0;
  --ring-3: #007f9f;
  --ring-4: #006580;
  --rwd-1: #fff3a8;
  --rwd-2: #ffe066;
  --rwd-3: #f5c518;
  --rwd-4: #e0aa00;
  --on-rwd: #151100;
  --rwd-glow: rgba(230, 180, 0, .45);
  --btn-1: #ffe866;
  --btn-2: #f5c518;
  --on-btn: #151100;
  --btn-rim: rgba(255, 255, 240, .85);
  --btn-deep: rgba(140, 100, 0, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #01131a;
  --seg-glow: rgba(0, 150, 190, .40);
  --glass-fill: rgba(250, 252, 255, .80);
  --glass-strong-fill: rgba(250, 252, 255, .92);
  --glass-thin-fill: rgba(250, 252, 255, .66);
  --glass-ghost: rgba(250, 252, 255, .22);
  --rim-far: rgba(14, 20, 40, .12);
  --cast: 0 10px 30px -18px rgba(14, 20, 40, .26), 0 1px 2px rgba(14, 20, 40, .06);
  --cast-answer: 0 8px 20px -14px rgba(14, 20, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(14, 20, 40, .32);
  --scrim: rgba(8, 12, 26, .32);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(14, 20, 40, .16);
  --tint: 14, 20, 40;
  --shade: 14, 20, 40;
  --frost-off: #f3f5fa;
  --frost-off-strong: #fafbfd;
  --frost-off-thin: #e6eaf2;
  --fld-1: rgba(190, 236, 248, .85); --fld-2: rgba(250, 214, 242, .55); --fld-3: rgba(200, 210, 240, .80); --fld-4: rgba(250, 244, 205, .70);
}
/* Raypunk by day: the World's Fair in sunshine, cream enamel and a sky of pale teal, the teal a shade deeper. */
html[data-look="milk"][data-palette="ray"] {
  --ground: #f4eee0;
  --ground-rgb: 244, 238, 224;
  --field-min: #c0bca8;
  --ink: #13191c;
  --ink-2: #2f3a3e;
  --ink-3: #46535a;
  --acc-1: #b5ece2;
  --acc-2: #74d8c8;
  --acc-3: #2fbca8;
  --acc-4: #1ba08e;
  --acc-ink: #005248;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #13191c;
  --on-acc: #02150f;
  --acc-rgb: 0, 140, 124;
  --acc-deep: rgba(0, 95, 85, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 132, .35);
  --ring-1: #2fbca8;
  --ring-2: #1ba08e;
  --ring-3: #068573;
  --ring-4: #006a5c;
  --rwd-1: #ffe9b8;
  --rwd-2: #ffcf7a;
  --rwd-3: #f6ab45;
  --rwd-4: #e48a22;
  --on-rwd: #1c0f02;
  --rwd-glow: rgba(220, 130, 30, .45);
  --btn-1: #ffd78a;
  --btn-2: #f0a040;
  --on-btn: #1c0f02;
  --btn-rim: rgba(255, 252, 240, .85);
  --btn-deep: rgba(150, 80, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02150f;
  --seg-glow: rgba(0, 150, 132, .40);
  --glass-fill: rgba(255, 252, 244, .80);
  --glass-strong-fill: rgba(255, 252, 244, .93);
  --glass-thin-fill: rgba(255, 252, 244, .66);
  --glass-ghost: rgba(255, 252, 244, .22);
  --rim-far: rgba(20, 40, 44, .12);
  --cast: 0 10px 30px -18px rgba(16, 36, 40, .28), 0 1px 2px rgba(16, 36, 40, .07);
  --cast-answer: 0 8px 20px -14px rgba(16, 36, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(16, 36, 40, .32);
  --scrim: rgba(10, 24, 28, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(16, 36, 40, .16);
  --tint: 16, 36, 40;
  --shade: 16, 36, 40;
  --frost-off: #f8f3e8;
  --frost-off-strong: #fcf9f2;
  --frost-off-thin: #efe8d8;
  --fld-1: rgba(190, 240, 230, .85); --fld-2: rgba(250, 205, 200, .45); --fld-3: rgba(205, 225, 230, .80); --fld-4: rgba(255, 232, 196, .80);
}
/* Weird West by day: a golden morning in the canyon, sand and adobe, the turquoise a shade deeper. */
html[data-look="milk"][data-palette="west"] {
  --ground: #f6ecdc;
  --ground-rgb: 246, 236, 220;
  --field-min: #c8b9a0;
  --ink: #1c140d;
  --ink-2: #3a2c20;
  --ink-3: #54432f;
  --acc-1: #bfeee5;
  --acc-2: #7dd9c8;
  --acc-3: #2fb4a0;
  --acc-4: #179683;
  --acc-ink: #004c42;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #1c140d;
  --on-acc: #02140f;
  --acc-rgb: 0, 138, 120;
  --acc-deep: rgba(0, 95, 82, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 146, 128, .35);
  --ring-1: #2fb4a0;
  --ring-2: #179683;
  --ring-3: #077e6c;
  --ring-4: #00675a;
  --rwd-1: #ffe9b8;
  --rwd-2: #f8cc7a;
  --rwd-3: #eaa645;
  --rwd-4: #d28426;
  --on-rwd: #1d1003;
  --rwd-glow: rgba(210, 130, 40, .45);
  --btn-1: #ffd68a;
  --btn-2: #ea9c40;
  --on-btn: #1d1003;
  --btn-rim: rgba(255, 251, 238, .85);
  --btn-deep: rgba(150, 75, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02140f;
  --seg-glow: rgba(0, 146, 128, .40);
  --glass-fill: rgba(255, 250, 241, .80);
  --glass-strong-fill: rgba(255, 250, 241, .93);
  --glass-thin-fill: rgba(255, 250, 241, .66);
  --glass-ghost: rgba(255, 250, 241, .22);
  --rim-far: rgba(48, 30, 16, .12);
  --cast: 0 10px 30px -18px rgba(48, 30, 16, .28), 0 1px 2px rgba(48, 30, 16, .07);
  --cast-answer: 0 8px 20px -14px rgba(48, 30, 16, .22);
  --cast-sheet: 0 18px 44px -20px rgba(48, 30, 16, .32);
  --scrim: rgba(30, 18, 8, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(48, 30, 16, .16);
  --tint: 48, 30, 16;
  --shade: 48, 30, 16;
  --frost-off: #f9f1e5;
  --frost-off-strong: #fcf8f1;
  --frost-off-thin: #f0e5d3;
  --fld-1: rgba(190, 238, 228, .85); --fld-2: rgba(248, 210, 180, .50); --fld-3: rgba(230, 215, 195, .80); --fld-4: rgba(255, 230, 190, .80);
}
/* Silkpunk by day: a misty morning among the peaks, silk cream and celadon, the jade a shade deeper. */
html[data-look="milk"][data-palette="silk"] {
  --ground: #f5efe1;
  --ground-rgb: 245, 239, 225;
  --field-min: #bdbcae;
  --ink: #16161a;
  --ink-2: #2f3036;
  --ink-3: #474a52;
  --acc-1: #bfeedb;
  --acc-2: #7fd8b2;
  --acc-3: #34b585;
  --acc-4: #1e9668;
  --acc-ink: #004c32;
  --gauge-num: linear-gradient(var(--ink), var(--ink));
  --gauge-ink: #16161a;
  --on-acc: #02140c;
  --acc-rgb: 0, 140, 96;
  --acc-deep: rgba(0, 95, 66, .30);
  --sel-wash: color-mix(in srgb, var(--acc-3) 14%, transparent);
  --glow: rgba(0, 150, 104, .35);
  --ring-1: #34b585;
  --ring-2: #1e9668;
  --ring-3: #0a7e54;
  --ring-4: #006843;
  --rwd-1: #ffeebb;
  --rwd-2: #f8d47e;
  --rwd-3: #ebb447;
  --rwd-4: #d4932a;
  --on-rwd: #1c1203;
  --rwd-glow: rgba(212, 147, 42, .45);
  --btn-1: #ffdf92;
  --btn-2: #e8aa42;
  --on-btn: #1c1203;
  --btn-rim: rgba(255, 252, 240, .85);
  --btn-deep: rgba(150, 95, 10, .40);
  --btn-sheen: rgba(255, 255, 255, .6);
  --seg-fill: var(--acc);
  --on-seg: #02140c;
  --seg-glow: rgba(0, 150, 104, .40);
  --glass-fill: rgba(255, 252, 245, .80);
  --glass-strong-fill: rgba(255, 252, 245, .93);
  --glass-thin-fill: rgba(255, 252, 245, .66);
  --glass-ghost: rgba(255, 252, 245, .22);
  --rim-far: rgba(20, 26, 40, .12);
  --cast: 0 10px 30px -18px rgba(20, 26, 40, .28), 0 1px 2px rgba(20, 26, 40, .07);
  --cast-answer: 0 8px 20px -14px rgba(20, 26, 40, .22);
  --cast-sheet: 0 18px 44px -20px rgba(20, 26, 40, .32);
  --scrim: rgba(10, 14, 26, .30);
  --thumb-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(20, 26, 40, .16);
  --tint: 20, 26, 40;
  --shade: 20, 26, 40;
  --frost-off: #f8f4ea;
  --frost-off-strong: #fcfaf4;
  --frost-off-thin: #eee8d9;
  --fld-1: rgba(190, 236, 214, .85); --fld-2: rgba(248, 200, 190, .45); --fld-3: rgba(200, 212, 236, .80); --fld-4: rgba(255, 236, 196, .80);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

/* ── the page ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 10px; }
/* a heading that takes focus so a screen reader starts there is not a control: no ring */
[data-focus]:focus-visible, #h1:focus-visible, #view:focus-visible { outline: none; }

/* THE FIELD: a canvas frap-glass.js paints (WebGL), behind everything. Without WebGL, or with
   background motion off, the same lights stand still, in CSS, on <html>. */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
#field.on { opacity: 1; }
html.no-field {
  background:
    radial-gradient(90% 60% at 12% 0%, var(--fld-1), transparent 62%),
    radial-gradient(80% 55% at 100% 22%, var(--fld-2), transparent 60%),
    radial-gradient(90% 60% at 80% 100%, var(--fld-3), transparent 62%),
    radial-gradient(70% 50% at 0% 100%, var(--fld-4), transparent 60%),
    var(--ground);
  background-attachment: fixed;
}
/* THE LIGHT AT THE TOP (Opal, RESEARCH.md round three): a faint wash of the accent's light over
   the top of every page, above the field and under everything on it */
body::after {
  content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: 0; height: 70vh; pointer-events: none;
  background: radial-gradient(80% 60% at 50% -12%, var(--glow), transparent 72%); opacity: .42;
}

/* ── type ───────────────────────────────────────────────────────────────────────────── */
.t-large { font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }
.t-title { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.024em; }
.t-head { font-size: 20px; line-height: 1.22; font-weight: 600; letter-spacing: -.016em; }
.t-body { font-size: 17px; line-height: 1.4; }
.t-call { font-size: 15px; line-height: 1.35; }
.t-foot { font-size: 13px; line-height: 1.35; }
.t-cap { font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.accent-ink { color: var(--acc-ink); }
/* a label above a title: small capitals, tracked (Farm Minerals, Taste Labs: RESEARCH.md «Round four») */
.eyebrow { font-size: 11.5px; line-height: 1.2; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--acc-ink); }

/* ── the material ───────────────────────────────────────────────────────────────────── */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--r, var(--r-tile));
  background-color: var(--glass-fill);
  background-image:
    var(--grain, none),
    linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .025) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 160px 160px, 100% 100%;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 var(--hi),
    inset 0 -14px 22px -18px rgba(var(--shade), calc(.55 * var(--sk))),
    var(--cast);
}
/* the edge: a gradient border, masked to a 1px ring */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--rim) 0%, var(--rim-soft) 28%, rgba(255, 255, 255, 0) 58%, var(--rim-far) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* the specular: a spot under the finger or the pointer; a band that drifts on [data-live] */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--px, 50%) var(--py, 0%), var(--spot), rgba(255, 255, 255, 0) 62%);
  opacity: 0; transition: opacity .5s ease;
  mix-blend-mode: screen;
}
.glass.is-lit::after { opacity: 1; transition-duration: .15s; }
.glass[data-live]::after {
  opacity: 1;
  background:
    radial-gradient(220px circle at var(--px, 50%) var(--py, -40%), var(--spot), rgba(255, 255, 255, 0) 62%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 42%, var(--sheen) 50%, rgba(255, 255, 255, 0) 58%);
  background-size: 100% 100%, 320% 100%;
  background-position: 0 0, 130% 0;
  animation: sheen-drift 9s ease-in-out infinite;
}
@keyframes sheen-drift {
  0%, 12% { background-position: 0 0, 130% 0; }
  62%, 100% { background-position: 0 0, -40% 0; }
}
.glass > * { position: relative; z-index: 2; }
.glass--strong { background-color: var(--glass-strong-fill); --glass-blur: 36px; }
.glass--thin { background-color: var(--glass-thin-fill); --glass-blur: 22px; }
/* NO FROST (html.no-frost, set by frap-app.js where the browser has no backdrop-filter): an
   opaque warm fill, the same edge and light. Nothing behind a glass shows through, so nothing
   behind it may be needed to read it. */
html.no-frost .glass, html.no-frost .opt-btn, html.no-frost #card .prompt-box { background-color: var(--frost-off) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.no-frost .glass--strong, html.no-frost #grammar-note.revealed { background-color: var(--frost-off-strong) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.no-frost .glass--thin { background-color: var(--frost-off-thin) !important; }


/* THE PAINTED ICONS SIT UNDER GLASS: a bezel with the material's edge, and a sheen that crosses
   once as the icon comes on screen (.in is added when it does). */
.art {
  position: relative; flex: none; display: block; overflow: hidden;
  width: var(--s, 88px); height: var(--s, 88px);
  border-radius: 23.5%;
  box-shadow: 0 10px 24px -8px rgba(var(--shade), calc(.65 * var(--sk))), 0 0 0 1px rgba(var(--tint), .08);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.art::after {
  content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 56%);
  transform: translateX(-70%);
}
.art.in::after { animation: art-sheen 1.15s var(--ease-out) .12s both; }
@keyframes art-sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }

/* ── icons: one language, a 24-box, a 1.7 stroke ───────────────────────────────────── */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i--s { width: 18px; height: 18px; }

/* ── the button set ─────────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform var(--t-slow) var(--spring), filter var(--t) ease, opacity var(--t) ease;
}
.btn:active { transform: scale(.965); transition-duration: .09s; transition-timing-function: ease-out; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.btn--block { display: flex; width: 100%; }
/* PRIMARY: the palette's capsule (Opal and Graphite: white on the dark, black on Milk; Rose gold:
   the rose gold), its own ink, a specular top rim, a halo of the accent's light. One per screen. */
.btn--primary {
  min-height: 56px; color: var(--on-btn);
  background: var(--btn-fill);
  box-shadow:
    inset 0 1px 0 var(--btn-rim),
    inset 0 -10px 16px -10px var(--btn-deep),
    0 14px 30px -12px var(--glow),
    0 2px 5px rgba(var(--shade), calc(.3 * var(--sk)));
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0 -60%; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 44%, var(--btn-sheen) 50%, rgba(255, 255, 255, 0) 56%);
  transform: translateX(-75%); animation: btn-sheen 5.2s var(--ease-out) 1.2s infinite;
}
@keyframes btn-sheen { 0% { transform: translateX(-75%); } 26%, 100% { transform: translateX(75%); } }
.btn--primary > * { position: relative; z-index: 1; }
/* GLASS: secondary */
.btn--glass { color: var(--ink); --r: 999px; }
/* QUIET: text only, a 44px target */
.btn--quiet { min-height: 44px; padding: 0 14px; font-weight: 600; color: var(--ink-2); background: none; }
/* ROUND: a 44px glass circle, one icon */
.btn--round { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; --r: 50%; color: var(--ink); }
.btn--s { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.06) saturate(1.05); }
  .btn--quiet:hover { color: var(--ink); }
}

/* ── segmented control ──────────────────────────────────────────────────────────────── */
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  padding: 3px; border-radius: 999px; --r: 999px;
}
.seg__opt {
  position: relative; z-index: 3; min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: color var(--t) ease;
}
.seg__opt[aria-checked="true"], .seg__opt[aria-pressed="true"] { color: var(--on-seg); }
.seg__thumb {
  position: absolute !important; z-index: 2 !important; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2));
  border-radius: 999px; background: var(--seg-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 12px -4px var(--seg-glow);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform var(--t-slow) var(--spring);
}

/* ── switch ─────────────────────────────────────────────────────────────────────────── */
.switch {
  position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(var(--tint), .16);
  box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.45 * var(--sk))), inset 0 0 0 1px rgba(var(--tint), .08);
  transition: background var(--t) ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #e9e1db);
  box-shadow: 0 2px 6px rgba(var(--shade), calc(.45 * var(--sk))), inset 0 1px 0 #fff;
  transition: transform var(--t-slow) var(--spring), width var(--t-fast) ease;
}
.switch:active::after { width: 31px; }
/* targets of 44px where the drawing is smaller (a switch, a segment, the level chip): the hit area
   reaches past the shape, the shape stays as drawn */
.switch::before { content: ""; position: absolute; inset: -6px -4px; }
.seg__opt::before { content: ""; position: absolute; inset: -4px 0; }
.top .chip { min-height: 44px; padding: 0 15px; font-size: 14px; }
.switch[aria-checked="true"] { background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 10px -6px var(--acc-deep); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch[aria-checked="true"]:active::after { transform: translateX(15px); }

/* ── slider ─────────────────────────────────────────────────────────────────────────── */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc-2) 0, var(--acc-3) var(--fill, 50%), rgba(255, 255, 255, .16) var(--fill, 50%));
  box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.4 * var(--sk)));
}
.slider::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(var(--tint), .16); }
.slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--acc-3); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #fff, #e9e1db); box-shadow: 0 3px 8px rgba(var(--shade), calc(.5 * var(--sk))), inset 0 1px 0 #fff;
}
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #fff, #e9e1db); box-shadow: 0 3px 8px rgba(var(--shade), calc(.5 * var(--sk))); }

/* ── the ring ───────────────────────────────────────────────────────────────────────── */
.ring { position: relative; flex: none; display: grid; place-items: center; width: var(--s, 44px); height: var(--s, 44px); }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: rgba(var(--tint), .13); }
.ring__bar { fill: none; stroke: url(#acc-stroke); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease-out); }
.ring__in { position: relative; z-index: 1; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring--done .ring__track { stroke: rgba(var(--acc-rgb), .28); }
/* the ring's gradient is the sprite's #acc-stroke (frap-app.js); its stops are painted here, on the tokens */
#acc-stroke .s1 { stop-color: var(--ring-1); } #acc-stroke .s2 { stop-color: var(--ring-2); } #acc-stroke .s3 { stop-color: var(--ring-3); } #acc-stroke .s4 { stop-color: var(--ring-4); }
#rwd-stroke .s1 { stop-color: var(--rwd-1); } #rwd-stroke .s2 { stop-color: var(--rwd-2); } #rwd-stroke .s3 { stop-color: var(--rwd-3); } #rwd-stroke .s4 { stop-color: var(--rwd-4); }
/* a ring completed is the reward's (a section met, a perfect round) */
.ring--done .ring__bar { stroke: url(#rwd-stroke); }
/* A GAUGE (Opal): the open arc of a score (frap-drill.css, .fr-arc) or a count (.rv) glows in the
   accent's light, and its number is the accent's gradient where the dark lets it read
   (--gauge-num; its darkest stop is --gauge-ink, which the contract prices on the field), a
   solid ink on Milk and in Rose gold */
.ring--now { animation: ring-breathe 2.4s ease-in-out 1; }
@keyframes ring-breathe { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.09); } }
/* an open arc, for a score (270 degrees, the gap at the bottom) */
.ring--arc > svg { transform: rotate(135deg); }

/* ── chips, rows, groups ────────────────────────────────────────────────────────────── */
/* AN OUTLINED PILL (Opal): glass inside, its edge a 1px line in the accent's gradient. The edge is
   the material's own ::before, recoloured. */
.glass.chip--line::before { background: var(--acc); opacity: .9; }
.chip--line .i { color: var(--acc-ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; --r: 999px;
  font-size: 13px; font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.group { --r: var(--r-tile); overflow: hidden; }
.row {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px;
  border: 0; background: none; text-align: left; text-decoration: none; color: inherit; cursor: pointer;
}
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.row__sub { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
.row__val { flex: none; font-size: 15px; color: var(--ink-3); }
.row .i--chev { width: 16px; height: 16px; color: var(--ink-3); }
@media (hover: hover) { .row:hover { background: rgba(var(--tint), .04); } }
.row:active { background: rgba(var(--tint), .07); }

/* ── sheets ─────────────────────────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: var(--scrim);
  opacity: 0; transition: opacity var(--t) ease; pointer-events: none;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0 auto; max-width: 560px;
  max-height: calc(100dvh - var(--sat) - 28px); display: flex; flex-direction: column;
  --r: var(--r-sheet); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding-bottom: var(--sab);
  transform: translateY(105%); transition: transform var(--t-slow) var(--spring);
  will-change: transform;
}
.sheet.on { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet__grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__grab::after { content: ""; width: 38px; height: 5px; border-radius: 999px; background: rgba(var(--tint), .28); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px var(--gutter) 18px; }
.sheet__foot { flex: none; padding: 12px var(--gutter) 14px; }
/* a group of rows inside a sheet (both documents' sheets: the round's options, Find, Restore) */
.group--in { margin-top: 16px; border-radius: var(--r-row); background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); overflow: hidden; }
.group--in + .group--in { margin-top: 12px; }

/* ── the tab bar ────────────────────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(max(var(--sab), 10px) + 6px);
  transform: translateX(-50%);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: min(380px, calc(100% - 32px)); height: var(--tabbar-h);
  padding: 5px; --r: 999px; border-radius: 999px;
  transition: transform var(--t-slow) var(--spring), opacity var(--t) ease;
}
.tabbar.away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
/* the bar floats over text that scrolls under it: strong glass, so a row's words never read through */
.tabbar.glass { background-color: var(--glass-strong-fill); --glass-blur: 36px; }
.tab {
  position: relative; z-index: 3; display: grid; place-items: center; align-content: center; gap: 2px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-3); text-decoration: none; cursor: pointer;
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
  transition: color var(--t) ease, transform var(--t-slow) var(--spring);
}
.tab:active { transform: scale(.93); }
.tab[aria-current="page"] { color: var(--ink); }
.tab .i { width: 23px; height: 23px; }
.tab__badge {
  position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--on-acc); background: var(--acc);
  box-shadow: 0 2px 6px rgba(var(--shade), calc(.4 * var(--sk))), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.tabbar__thumb {
  position: absolute !important; z-index: 2 !important; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n, 4));
  border-radius: 999px; background: var(--thumb);
  box-shadow: var(--thumb-shadow);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform var(--t-slow) var(--spring);
}
/* the selection slides, and stretches as it goes */
.tabbar__thumb.go { animation: thumb-stretch .52s var(--ease-out); }
@keyframes thumb-stretch { 32% { scale: 1.24 .86; } 70% { scale: .97 1.03; } }

/* ── arrivals: children come in one after another ──────────────────────────────────── */
.rise > * { animation: rise .7s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 50ms + 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ══ THE SHELL'S SCREENS ══════════════════════════════════════════════════════════════════ */
#view {
  max-width: 560px; margin: 0 auto; min-height: 100dvh;
  padding: calc(var(--sat) + 14px) calc(var(--gutter) + var(--sar)) calc(var(--tabbar-h) + max(var(--sab), 10px) + 44px) calc(var(--gutter) + var(--sal));
}
#view:focus { outline: none; }

/* the top line: the painted mark and the name, and what is on the right */
.top { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 18px; }
.top__name { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.top__back { margin-left: -6px; }
.top__title { flex: 1; min-width: 0; text-align: center; font-size: 17px; font-weight: 650; opacity: 0; transform: translateY(6px); transition: opacity var(--t) ease, transform var(--t) var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top--stuck .top__title { opacity: 1; transform: none; }
.top--bar { position: sticky; top: 0; z-index: 20; margin: calc(-1 * (var(--sat) + 14px)) calc(-1 * var(--gutter)) 6px; padding: calc(var(--sat) + 10px) var(--gutter) 10px; }
/* THE BAR IS THE GROUND ITSELF once the title has gone under it: a solid colour on the bar (which
   Safari carries on up under the clock) and a short fade below it. No blur: a blur behind a
   mask is not drawn in Safari, and what scrolled under the clock stayed readable there. */
.top--bar { background-color: rgba(var(--ground-rgb), 0); transition: background-color var(--t) ease; }
.top--stuck.top--bar { background-color: var(--ground); }
.top--bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; opacity: 0; transition: opacity var(--t) ease;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), 1), rgba(var(--ground-rgb), 0));
}
.top--stuck.top--bar::before { opacity: 1; }
.top__spacer { width: 44px; flex: none; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 2px 12px; }
.sec-head .t-foot { color: var(--ink-2); }

/* ── Learn: the hero ─────────────────────────────────────────────────────────────────── */
.hero {
  --r: var(--r-card); display: block; padding: 18px; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.hero:active { transform: scale(.985); transition-duration: .1s; transition-timing-function: ease-out; }
.hero__meta { margin-top: 5px; font-size: 14px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .btn { margin-top: 16px; }
.hero .ring__in { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.hero .ring__in small { font-size: 10px; margin-left: 1px; }


@media (hover: hover) { .hero:hover { transform: translateY(-2px); } }

/* ── Find (frap.js): a capsule on Learn, and a sheet of a fixed height that does not jump as
   the results change. The field is the sheet's own; 17px, so a phone does not zoom into it. ── */
.find-cap {
  --r: 999px; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 14px; padding: 0 18px;
  border: 0; border-radius: 999px; text-align: left; font: inherit; font-size: 16px; color: var(--ink-3); cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.find-cap .i { width: 19px; height: 19px; color: var(--ink-2); }
.find-cap:active { transform: scale(.985); transition-duration: .1s; }
.sheet--find { height: min(86dvh, 720px); }
.find { padding-top: 4px; }
.find__field {
  --r: 999px; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 16px;
  border-radius: 999px; margin-bottom: 4px;
  /* inside the sheet's own glass: a wash, as the sheet's groups are (a frost in a frost does not see through) */
  background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px rgba(var(--tint), .1);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.find__field > .i { flex: none; width: 19px; height: 19px; color: var(--ink-2); }
.find__field input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.find__field input::placeholder { color: var(--ink-3); }
.find__field input::-webkit-search-cancel-button, .find__field input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.find__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc-3), var(--cast); }
.find__clear { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(var(--tint), .1); color: var(--ink-2); cursor: pointer; }
.find__clear .i { width: 15px; height: 15px; }
.find__clear[hidden] { display: none; }
.find__hint { margin: 18px 4px 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.find__hint b { color: var(--ink); font-weight: 650; }
.find__group .row { min-height: 60px; }
.find__rh { display: flex; align-items: center; justify-content: space-between; }
.find__clr { min-height: 32px; padding: 0 4px; font-size: 13px; font-weight: 650; color: var(--acc-ink); }
.find__rrow { position: relative; display: flex; align-items: center; }
.find__rrow + .find__rrow::before { content: ""; position: absolute; left: 46px; right: 0; top: 0; height: 1px; background: var(--line); }
.find__rrow .row { min-height: 48px; padding-right: 4px; }
.find__rrow .row .i { color: var(--ink-3); }
.find__rrow .row__title { font-size: 16px; }
.find__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-3); }
.find__x .i { width: 15px; height: 15px; }
.find__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.find__chips .chip { min-height: 38px; padding: 0 14px; color: var(--ink); font-size: 14px; }
@media (hover: hover) { .find__chips .chip:hover, .find__x:hover { filter: brightness(1.15); } }
.find__row .art { flex: none; }
.find__row .row__title b { font-weight: 750; color: var(--acc-ink); }
.find__row .row__sub .accent-ink { color: var(--acc-ink); }

/* ── THE DICTIONARY (2026-10-06, frap-dict.js): a word in Find. Its rows stand in the sheet's own
   glass, as Find's do: --ink for the word, --ink-2 for what it means, --ink-3 nowhere a learner
   must read. The level is a tag, not a light: a wash and the second ink. ───────────────────── */
.find__word .row__title { font-size: 18px; font-weight: 650; }
.find__word .row__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.32; color: var(--ink-2); }
.find__lv { flex: none; min-width: 34px; padding: 4px 9px; border-radius: 999px; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .03em; text-align: center; color: var(--ink-2); background: rgba(var(--tint), .09); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.find__lv--in { font-weight: 650; letter-spacing: 0; }
.find__all { display: block; min-height: 44px; margin-top: 2px; padding: 0 6px; font-size: 14px; font-weight: 650; color: var(--acc-ink); }
.find__all[hidden] { display: none; }
.find__wait { margin: 12px 4px 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word { padding-top: 8px; }
.word__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -4px; padding: 0 12px 0 2px; font-size: 15px; font-weight: 650; color: var(--acc-ink); }
.word__back .i { width: 18px; height: 18px; }
.word__head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.word__uk { flex: 1; min-width: 0; font-size: 34px; line-height: 1.14; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; outline: 0; }
.word__en { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.word__meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.word__card { margin-top: 16px; padding: 14px 16px 16px; border-radius: var(--r-row); background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
/* no capitals here: a topic's name may hold a Ukrainian word («I · я · 1–40»), and «я» is not «Я» */
.word__at { font-size: 13px; line-height: 1.3; font-weight: 650; color: var(--ink-2); }
.word__own { margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.word__lemma { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word__col { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.word__col span { padding: 4px 10px; border-radius: 999px; font-size: 14px; color: var(--ink); background: rgba(var(--tint), .07); }
.word__ex { margin-top: 12px; font-size: 18px; line-height: 1.4; font-weight: 550; color: var(--ink); }
.word__exen { margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.word__note { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.word__note em { font-style: normal; font-weight: 650; color: var(--ink); }
.word__lv { margin-top: 12px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--ink-2); }
.word__wait { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.word__card > :first-child { margin-top: 0; }
.word__go { margin-top: 16px; }
.word__places .topic { min-height: 58px; }
.word__places .topic[hidden] { display: none; }
.word__places .topic + .topic::before { left: 56px; }
/* the speaker, where the shell says a word aloud (Your words, the dictionary): the drill's own button */
.wrow .fr-q__say, .word .fr-q__say { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--acc-ink); background: rgba(var(--tint), .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform var(--t-slow) var(--spring); }
.wrow .fr-q__say:active, .word .fr-q__say:active { transform: scale(.88); }
.wrow .fr-q__say .i, .word .fr-q__say .i { width: 18px; height: 18px; }

/* ── install (frap-screens.js installSheet): a Home Screen, the painted icon on it, three steps ── */
.inst__pic { display: grid; place-items: center; margin: 8px 0 0; }
.inst__grid {
  display: grid; grid-template-columns: repeat(4, 54px); gap: 14px 16px; padding: 18px 20px 16px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--acc-rgb), .28), rgba(var(--tint), .05) 60%), rgba(var(--tint), .06);
  box-shadow: inset 0 0 0 1px rgba(var(--tint), .1);
}
.inst__grid i { width: 54px; height: 54px; border-radius: 13px; background: rgba(var(--tint), .12); }
.inst__app { display: grid; justify-items: center; gap: 4px; margin-bottom: -16px; animation: inst-pop 1s var(--spring) .3s both; }
.inst__app img { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 6px 16px -6px rgba(var(--shade), calc(.6 * var(--sk))); }
.inst__app span { font-size: 10px; font-weight: 600; color: var(--ink-2); }
@keyframes inst-pop { from { transform: scale(.4); opacity: 0; } }
.inst__steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: inst; display: grid; gap: 10px; }
.inst__steps li { counter-increment: inst; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.inst__steps li b { color: var(--ink); font-weight: 650; }
.inst__steps li::before {
  content: counter(inst); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 700; color: var(--ink); background: rgba(var(--tint), .1); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12);
}
.inst__glyph { display: inline-grid; vertical-align: -4px; }
.inst__glyph .i { width: 18px; height: 18px; color: var(--acc-ink); }

/* ── the keys sheet (frap-app.js keysSheet) ── */
.keyrow { min-height: 48px; cursor: default; }
.keyrow .row__title { font-size: 15px; }
.keyrow__k { flex: none; display: flex; align-items: center; gap: 6px; }
.keyrow__or { font-size: 12px; color: var(--ink-3); }
.key {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap;
  background: rgba(var(--tint), .09); box-shadow: inset 0 -1.5px 0 rgba(var(--shade), calc(.35 * var(--sk))), inset 0 0 0 1px rgba(var(--tint), .12);
}

/* ── the level picker (the briefing and the level sheet) ─────────────────────────────────────────────────────────────────────── */
.levels { display: grid; gap: 10px; margin-top: 22px; }
.lv__same { margin-top: 8px; }                                   /* the strategies the level never touches (LEVELS.md box 6) */
.lv {
  --r: var(--r-row); display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  transition: transform var(--t-slow) var(--spring);
}
.lv:active { transform: scale(.98); transition-duration: .1s; }
.lv__bars { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.lv__bars i { width: 4px; border-radius: 2px; background: rgba(var(--tint), .2); }
.lv__bars i.on { background: var(--acc-2); }
.lv__main { flex: 1; min-width: 0; }
.lv b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.lv span.h { display: block; font-size: 13px; color: var(--ink-3); }
.lv__code { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-3); }
/* the level chosen reads at a glance (2026-10-02; Vibecode's and Nibble's onboarding, RESEARCH.md):
   the accent's wash and edge, and the same disc the section sheet's topics fill with a check */
.lv[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--acc-3), inset 0 0 0 999px var(--sel-wash), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
.lv[aria-checked="true"] .lv__code { color: var(--acc-ink); }
.lv .topic__pick { margin-left: -4px; }

/* ── a strategy's page ───────────────────────────────────────────────────────────────── */
.phead { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.phead .art { --s: 92px; }
.phead__main { flex: 1; min-width: 0; }
.phead h1 { font-size: 30px; line-height: 1.08; font-weight: 700; letter-spacing: -.022em; overflow-wrap: anywhere; }
.phead__prog { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lede { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.lede.open { -webkit-line-clamp: unset; }
.lede--why { margin-top: 8px; font-size: 14px; }
.lvnote { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.lvnote button { min-height: 44px; padding: 0 6px; border: 0; background: none; font-weight: 650; color: var(--acc-ink); cursor: pointer; }
.jump { display: flex; gap: 8px; margin: 16px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump::-webkit-scrollbar { display: none; }
.jump .chip { min-height: 38px; padding: 0 15px; flex: none; border: 0; cursor: pointer; color: var(--ink); }
.gh { margin: 28px 2px 12px; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; scroll-margin-top: calc(var(--sat) + 72px); }

/* a route: a rail of ringed stops, a glass card beside each */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.stop__rail { position: relative; display: grid; justify-items: center; align-content: center; }
.stop__rail::before { content: ""; position: absolute; left: 50%; top: -10px; bottom: 0; width: 2px; margin-left: -1px; background: rgba(var(--tint), .12); z-index: 0; }
.stop:first-child .stop__rail::before { top: 50%; }
.stop:last-child .stop__rail::before { bottom: 50%; }
.stop--done .stop__rail::before, .stop--going .stop__rail::before { background: linear-gradient(180deg, var(--acc-3), var(--acc-4)); }
.stop--going .stop__rail::before { background: linear-gradient(180deg, var(--acc-3) 0, var(--acc-3) 50%, rgba(var(--tint), .12) 50%); }
.stop .ring { z-index: 1; background: var(--ground); border-radius: 50%; }
.stop .ring__in { font-size: 15px; color: var(--ink-2); }
.stop--next .ring__in, .stop--going .ring__in { color: var(--ink); }
.stop--done .ring__in { color: var(--acc-ink); }
.stop__card {
  --r: var(--r-row); display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 12px 14px; border: 0; text-align: left; color: inherit; cursor: pointer;
  transition: transform var(--t-slow) var(--spring);
}
.stop__card:active { transform: scale(.98); transition-duration: .1s; }
.stop__main { flex: 1; min-width: 0; }
.stop__title { display: block; font-size: 16px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.stop__blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.stop__st { flex: none; font-size: 13px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.stop__st--n { font-weight: 550; font-variant-numeric: tabular-nums; }
.stop--next .stop__card { box-shadow: inset 0 0 0 1.5px var(--acc-3), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
.stop--going .stop__st { color: var(--acc-ink); }
/* after --going: the stop in hand can be both (the next stop, started), and its pill keeps the ink
   the accent is priced for; rose ink on rose was unreadable (seen 2026-10-02 after a first round) */
.stop--next .stop__st { color: var(--on-acc); background: var(--acc); padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.stop--above .stop__card { background-color: var(--glass-ghost); box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.stop--above .stop__card::before { background: none; border: 1px dashed rgba(var(--tint), .22); padding: 0; -webkit-mask: none; mask: none; }
.stop--above .stop__title { color: var(--ink-2); }
.stop__up { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
/* a grid: lists to pick from in any order; rows in a glass group, a ring before each */
.pick .row { min-height: 64px; padding: 10px 14px; }
.pick .row__title { font-size: 16px; font-weight: 650; }
.pick .row__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.pick .ring .i { width: 14px; height: 14px; stroke-width: 2.4; color: var(--acc-ink); }
.pick .row--above .row__title { color: var(--ink-2); }

/* ── the section sheet ───────────────────────────────────────────────────────────────── */
.ss__head { margin-bottom: 14px; }
.ss__head h2 { margin: 4px 0 6px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.ss__note { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: var(--ink-2); background: rgba(var(--tint), .06); }
.ss__label { margin: 18px 2px 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.topics { --r: var(--r-row); border-radius: var(--r-row); overflow: hidden; background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.topic { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.topic + .topic::before { content: ""; position: absolute; left: 58px; right: 0; top: 0; height: 1px; background: var(--line); }
.topic__main { flex: 1; min-width: 0; }
.topic__label { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.topic__n { display: block; font-size: 13px; color: var(--ink-3); }
.topic__pick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(var(--tint), .28); color: transparent; transition: background var(--t) ease, color var(--t) ease, box-shadow var(--t) ease, transform var(--t-slow) var(--spring); }
.topic__pick .i { width: 14px; height: 14px; stroke-width: 2.6; }
.topic[aria-checked="true"] .topic__pick, .lv[aria-checked="true"] .topic__pick { background: var(--acc); color: var(--on-acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); transform: scale(1.06); }
.topic .ring .i { width: 12px; height: 12px; stroke-width: 2.6; color: var(--acc-ink); }
.topic:active { background: rgba(var(--tint), .06); }
.seg--5 .seg__opt { font-size: 12.5px; letter-spacing: -.015em; padding: 0 1px; }
.seg--in { background: rgba(var(--tint), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07), inset 0 1px 2px rgba(var(--shade), calc(.3 * var(--sk))); }
.ss__mode { margin-top: 6px; font-size: 13px; color: var(--ink-3); min-height: 18px; }

/* ── placeholders and empty states ───────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 10px; padding: 46px 18px; text-align: center; --r: var(--r-card); }
.empty .t-head { margin-top: 4px; }

/* ── Review, Record, Settings (frap-screens.js) ──────────────────────────────────────── */
/* Review's hero: the count in a ring, one button */
.rv { display: grid; place-items: center; margin: 4px 0 2px; }
.hero .rv { margin: 6px 0 12px; }
.rv .ring__in { display: grid; justify-items: center; gap: 0; }
.rv__n { font-size: 40px; line-height: 1; font-weight: 750; letter-spacing: -.03em; color: var(--ink); }
.rv__c { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rv__say { display: grid; gap: 2px; }
.rv__min { color: var(--ink); font-weight: 650; }
.rv .ring .i { width: 34px; height: 34px; color: var(--acc-ink); }
.rv .ring--arc .ring__bar { stroke: url(#acc-stroke); filter: drop-shadow(0 0 7px var(--glow)); }
.rv .rv__n { background: var(--gauge-num); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* a week of bars: Review's days to come, Record's days gone */
.bars { --r: var(--r-tile); display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 12px 12px; }
.bar { display: grid; grid-template-rows: 16px 84px auto; justify-items: center; gap: 5px; min-width: 0; }
.bar__n { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar__col { position: relative; width: min(100%, 26px); height: 84px; border-radius: 9px; background: rgba(var(--tint), .07); box-shadow: inset 0 1px 2px rgba(var(--shade), calc(.3 * var(--sk))); }
.bar__col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 9px; background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -6px var(--glow); transform-origin: 50% 100%; animation: bar-up .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes bar-up { from { transform: scaleY(0); } }
.bar:nth-child(2) { --i: 1; } .bar:nth-child(3) { --i: 2; } .bar:nth-child(4) { --i: 3; }
.bar:nth-child(5) { --i: 4; } .bar:nth-child(6) { --i: 5; } .bar:nth-child(7) { --i: 6; }
.bar__d { font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.bar--now .bar__d { color: var(--acc-ink); }
/* Record's four numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { --r: var(--r-row); display: grid; justify-items: center; gap: 2px; padding: 14px 4px 12px; text-align: center; min-width: 0; }
.stat b { font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: 12px; font-weight: 650; margin-left: 1px; color: var(--ink-2); }
.stat > span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.row .ring .ring__track { stroke: rgba(var(--tint), .16); }
.row b.ink { color: var(--ink); font-weight: 650; }
/* Record: «Your words», three stages in rings */
.words3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w3 { --r: var(--r-row); display: grid; justify-items: center; align-content: start; gap: 2px; padding: 14px 6px 12px; text-align: center; min-width: 0; }
.w3 .ring { margin-bottom: 6px; }
.w3 .ring__in { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.w3__t { font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.w3__s { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
/* Your words (#/words) */
.sec-link { color: var(--acc-ink); font-weight: 650; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.words__q { position: static; margin-bottom: 10px; }
.words__chips { margin-top: 0; margin-bottom: 12px; }
.words__chips .chip[aria-checked="true"] { color: var(--on-seg); background: var(--seg-fill); }
.words__n { font-weight: 550; opacity: .7; font-variant-numeric: tabular-nums; }
.wrow { cursor: default; min-height: 60px; gap: 12px; }
.wrow .row__title { font-size: 18px; font-weight: 650; }
.wrow__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--tint), .25); }
.wrow__dot--1 { background: var(--acc-3); }
.wrow__dot--2 { background: var(--acc); box-shadow: 0 0 8px -1px var(--glow); }
.wrow__st { flex: none; display: grid; justify-items: end; gap: 1px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.wrow__st b { font-weight: 650; color: var(--ink-2); }
.wrow__st .is-due { color: var(--wrong-ink); font-weight: 650; }
/* Record: a month of study days */
.cal__head { align-items: center; }
.cal__nav { display: flex; align-items: center; gap: 2px; }
.cal__nav .t-foot { margin-right: 6px; color: var(--ink-2); }
.cal__b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.cal__b .i { width: 18px; height: 18px; }
.cal__b[disabled] { opacity: .3; cursor: default; }
.cal { --r: var(--r-tile); padding: 12px 12px 14px; }
.cal__w, .cal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal__w span { font-size: 11px; font-weight: 650; color: var(--ink-3); padding-bottom: 6px; }
.cal__d { display: grid; place-items: center; aspect-ratio: 1; max-width: 40px; width: 100%; margin: 0 auto; border-radius: 50%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.cal__d.is-now { outline: 2px solid var(--ink-2); outline-offset: 1px; color: var(--ink); }
/* after .is-now: today, studied, keeps the ink its fill is priced for */
.cal__d.is-on { color: var(--on-acc); background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 10px -3px var(--glow); }
/* Settings */
.set-h { margin: 26px 4px 8px; font-size: 13px; font-weight: 650; letter-spacing: .01em; color: var(--ink-2); }
.set-foot { margin: 10px 6px 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.row__ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ic-ink); background: rgba(var(--ic-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--ic-rgb), .16); }
.row__ic .i { width: 18px; height: 18px; }
.row .slider { display: block; margin-top: 4px; }
.seg--row { flex: none; min-width: 190px; }
.seg--row .seg__opt { min-height: 32px; font-size: 13px; padding: 0 10px; }
/* Appearance: each register as a small picture of itself; Auto is both, split corner to corner.
   A picture shows ITS register whatever the page wears, so its colours are its own, not tokens. */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 12px 14px; }
.look { display: grid; justify-items: center; gap: 9px; padding: 4px 0; border-radius: 18px; }
.look__pv {
  position: relative; display: block; width: 68px; height: 102px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--tint), .2), 0 10px 20px -10px rgba(var(--shade), calc(.7 * var(--sk)));
  transition: box-shadow var(--t) ease, transform var(--t-slow) var(--spring);
}
.look__pv--dark, .look__pv--auto { background: radial-gradient(90% 60% at 8% 0%, var(--pv-d1), transparent 72%), radial-gradient(90% 60% at 100% 100%, var(--pv-d2), transparent 72%), var(--pv-dg); }
.look__pv--light, .look__pv--auto::after { background: radial-gradient(90% 60% at 8% 0%, var(--pv-l1), transparent 72%), radial-gradient(90% 60% at 100% 100%, var(--pv-l2), transparent 72%), var(--pv-lg); }
.look__pv--auto::after { content: ""; position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.look__pv i { position: absolute; z-index: 1; left: 8px; right: 8px; height: 23px; border-radius: 7px; background: rgba(255, 255, 255, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.look__pv i:nth-child(1) { top: 12px; }
.look__pv i:nth-child(2) { top: 41px; }
.look__pv--light i { background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(112, 68, 48, .16); }
.look__pv--auto i { background: rgba(255, 255, 255, .34); }
.look__pv b { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 10px; height: 13px; border-radius: 999px; background: var(--pv-db); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.look__pv--light b { background: var(--pv-lb); }
.look__name { font-size: 13px; font-weight: 650; color: var(--ink-2); transition: color var(--t) ease; }
.look[aria-checked="true"] .look__pv { transform: scale(1.05); box-shadow: 0 0 0 2.5px var(--acc-3), 0 0 0 5px rgba(var(--acc-rgb), .22), 0 12px 22px -10px rgba(var(--shade), calc(.7 * var(--sk))); }
.look[aria-checked="true"] .look__name { color: var(--ink); }
.look:active .look__pv { transform: scale(.96); transition-duration: .1s; }
.looks + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }

/* the type specimen: one card's own word, in the learner's face and size */
.spec { --r: var(--r-card); display: grid; justify-items: center; gap: 4px; padding: 20px 16px 22px; text-align: center; min-height: 148px; align-content: center; }
.spec__say { font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--acc-ink); }
.spec__uk { line-height: 1.12; font-weight: 600; letter-spacing: -.01em; color: var(--ink); transition: font-size var(--t-slow) var(--spring); }
.spec__en { line-height: 1.3; color: var(--ink-2); transition: font-size var(--t-slow) var(--spring); }
.faces { margin-top: 6px; }
.faces .ss__label { margin-top: 16px; }
.topic--card { border-radius: 14px; margin-bottom: 4px; background: rgba(var(--tint), .055); box-shadow: inset 0 0 0 1px rgba(var(--tint), .07); }
.topic--card + .topic--card::before { display: none; }
.topic--card .topic__label { font-size: 19px; font-weight: 500; }
/* a sheet of reading: the voice help, About */
.prose p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.prose p b { color: var(--ink); font-weight: 650; }
.prose .ss__note { margin: 4px 0 12px; }

/* ── screens change: the old one leaves, the new one arrives (View Transitions) ─────── */
#field { view-transition-name: field; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(field), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(field) { display: none; }
::view-transition-new(field) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .44s; animation-timing-function: var(--ease-out); }
html[data-nav="push"]::view-transition-old(root) { animation-name: vt-out-back; }
html[data-nav="push"]::view-transition-new(root) { animation-name: vt-in-fwd; }
html[data-nav="pop"]::view-transition-old(root) { animation-name: vt-out-fwd; }
html[data-nav="pop"]::view-transition-new(root) { animation-name: vt-in-back; }
html[data-nav="tab"]::view-transition-old(root) { animation-name: vt-fade-out; animation-duration: .2s; }
html[data-nav="tab"]::view-transition-new(root) { animation-name: vt-fade-up; animation-duration: .4s; }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(-14%) scale(.96); } }
@keyframes vt-in-fwd { from { opacity: 0; transform: translateX(22%) scale(.98); } }
@keyframes vt-out-fwd { to { opacity: 0; transform: translateX(22%) scale(.98); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-14%) scale(.96); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-up { from { opacity: 0; transform: translateY(14px); } }
html[data-nav="look"]::view-transition-old(root), html[data-nav="look"]::view-transition-new(root) { animation-duration: .5s; animation-timing-function: ease; }
html[data-nav="look"]::view-transition-old(field) { display: block; }
::view-transition-group(art) { animation-duration: .5s; animation-timing-function: var(--spring); }
/* one document to the other. Arriving here from the drill, the round is put away: it sinks
   and the shell comes forward. (The rules are the arriving page's; the drill has its own.) */
@view-transition { navigation: auto; }
html.arriving::view-transition-old(root) { animation: vt-put-away .34s var(--ease-out) both; }
html.arriving::view-transition-new(root) { animation: vt-come-forward .5s var(--ease-out) both; }
@keyframes vt-put-away { to { opacity: 0; transform: translateY(6%) scale(.985); } }
@keyframes vt-come-forward { from { opacity: 0; transform: scale(.955); } }

/* ══ MOTION THAT FOLLOWS THE PAGE ══════════════════════════════════════════════════════════
   A tab's large title goes up into a bar as the page scrolls; the hero's painting drifts
   against its card. Both are tied to the scroll itself where the browser can (scroll-driven
   animations); elsewhere the title simply scrolls away and the bar's name comes in. */
.stickybar {
  /* (In Safari on an iPhone the page is drawn on up under the clock, above anything a page can
     fix in place: tried on 2026-10-02 with a solid bar and with one reaching 120px above the
     window, and neither covers it. That strip is Safari's own. Installed, or in the native
     shell, the window is the whole screen and this bar covers the clock's row: --sat.) */
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(var(--sat) + 48px); margin: 0; pointer-events: none;
  background-color: rgba(var(--ground-rgb), 0); transition: background-color var(--t) ease;
}
.stickybar.top--stuck { background-color: var(--ground); }
.stickybar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; opacity: 0; transition: opacity var(--t) ease;
  background: linear-gradient(180deg, rgba(var(--ground-rgb), 1), rgba(var(--ground-rgb), 0));
}
.stickybar .top__title { position: absolute; left: 60px; right: 60px; top: calc(var(--sat) + 12px); line-height: 24px; }
.stickybar.top--stuck::before { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .top > #h1, .phead h1 { transform-origin: 0 70%; animation: title-away linear both; animation-timeline: scroll(root block); animation-range: 10px 92px; }
  @keyframes title-away { to { opacity: 0; transform: scale(.86) translateY(-8px); } }
}

/* ══ HALF A MACBOOK'S SCREEN (720 × 810, docked; ROUND3.md 2.4): the phone's layout, made for the
   width. A wider column, centred. ═══════════════════════════════ */
@media (min-width: 600px) and (max-width: 959px) {
  #view { max-width: 640px; }
}

/* ══ A DESK: from 960px the tab bar is a slim rail at the left, the page a centred column,
   and a sheet is a dialog in the middle of the screen ══════════════════════════════════════ */
@media (min-width: 960px) {
  #view { max-width: 760px; padding: calc(var(--sat) + 40px) 40px 72px; }
  .tabbar {
    left: max(var(--sal), 22px); top: 50%; bottom: auto; transform: translateY(-50%);
    grid-auto-flow: row; grid-auto-rows: 70px; grid-auto-columns: unset; width: 84px; height: auto; padding: 6px; --r: 30px; border-radius: 30px;
  }
  .tabbar.away { transform: translate(-160%, -50%); }
  .tabbar__thumb { top: 6px; left: 6px; right: 6px; bottom: auto; width: auto; height: 70px; border-radius: 24px; transform: translateY(calc(var(--at, 0) * 100%)); }
  @keyframes thumb-stretch { 32% { scale: .88 1.2; } 70% { scale: 1.02 .98; } }
  .tab { border-radius: 24px; font-size: 11px; gap: 4px; }
  .tab .i { width: 24px; height: 24px; }
  .tab__badge { top: 8px; left: calc(50% + 7px); }
  .hero { padding: 22px; }
  .stats { gap: 12px; }
  .stat b { font-size: 28px; }
  /* a sheet is a dialog */
  .sheet {
    top: 50%; bottom: auto; max-height: min(780px, calc(100dvh - 72px)); border-radius: var(--r-sheet); padding-bottom: 0;
    transform: translateY(-46%) scale(.955); opacity: 0;
    transition: transform var(--t-slow) var(--spring), opacity var(--t-fast) ease;
  }
  .sheet.on { transform: translateY(-50%) scale(1); opacity: 1; }
  .sheet__grab { height: 18px; cursor: default; pointer-events: none; }
  .sheet__grab::after { display: none; }
  .sheet__foot { padding-bottom: 20px; }
}
@media (min-width: 1240px) {
  #view { max-width: 820px; }
}

/* ══ THE MACBOOK (ROUND3.md 2.3): from 1100px the rail is a labeled sidebar, 248px of glass on the
   field, inset 16px, full height (Linear, MasterClass, Coinbase Learn: RESEARCH.md round three);
   the page is a column of at most 1080px, centred in what is left. 960–1099 keeps the rail. ═══ */
.side { display: none; }
@media (min-width: 1100px) {
  .tabbar {
    left: calc(16px + var(--sal)); top: 16px; bottom: 16px; transform: none; width: 248px; height: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 12px 12px; --r: 28px; border-radius: 28px;
  }
  /* a sheet is a dialog here, over a scrim: the sidebar stays; only the first visit has none */
  .tabbar.away { transform: none; opacity: 1; pointer-events: auto; }
  .tabbar.away.off { transform: translateX(-120%); opacity: 0; pointer-events: none; }
  .tabbar__thumb { display: none; }
  .side { display: flex; }
  .side__brand { align-items: center; gap: 10px; padding: 2px 8px 14px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
  .side__find {
    align-items: center; gap: 10px; min-height: 44px; margin: 0 0 12px; padding: 0 10px 0 12px; border-radius: 14px; text-align: left;
    background: rgba(var(--tint), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); color: var(--ink-3); font-size: 15px;
    transition: background var(--t) ease;
  }
  .side__find .i { width: 18px; height: 18px; color: var(--ink-2); }
  .side__find kbd { margin-left: auto; padding: 2px 7px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); background: rgba(var(--tint), .08); }
  .side__find:hover { background: rgba(var(--tint), .1); }
  .tab {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px;
    font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2);
  }
  .tab .i { width: 20px; height: 20px; }
  .tab[aria-current="page"] { color: var(--ink); background: var(--thumb); box-shadow: var(--thumb-shadow); }
  .tab:hover:not([aria-current]) { background: rgba(var(--tint), .05); color: var(--ink); }
  .tab:active { transform: scale(.98); }
  .tab__badge { position: static; margin-left: auto; min-width: 22px; height: 22px; font-size: 12px; }
  .side__foot { margin-top: auto; padding: 10px 2px 0; }
  .side__foot .chip { min-height: 36px; padding: 0 14px; }
  /* the page beside the sidebar (--side-r, folded 104px; frap-desk.js, below), centred in the rest */
  #view {
    max-width: none; margin: 0 0 0 calc(var(--side-r, 280px) + var(--sal));
    padding: calc(var(--sat) + 36px) max(40px, calc((100vw - var(--side-r, 280px) - 1080px) / 2)) 72px;
  }
  .stickybar { left: calc(var(--side-r, 280px) + var(--sal)); }
  /* scrollbars that belong to the glass (Chrome draws grey ones on a Mac with a mouse) */
  html { scrollbar-color: rgba(var(--tint), .22) transparent; }
  .strat__panel *, .sheet * { scrollbar-width: thin; scrollbar-color: rgba(var(--tint), .22) transparent; }
  /* Learn: the sidebar carries the name, the level and Find; the page has no visible title (owner,
     2026-10-02: the word «Learn» above Continue «serves no purpose»; the h1 stays for a screen reader) */
  .top--learn, .find-cap { display: none; }
}
/* ══ THE DESK IN THREE GROUPS (frap-desk.js; THUD CORE's DK1, OPUS.md E12). From 1100px the sidebar is Study (the three
   doors, which are Learn: Learn's row goes), Places (Find, Review, Record, Certificates) and its foot (the level, the
   skin and Settings: Settings' row goes); [ folds it to its icons. Nothing at the right (THUD CORE's owner, 2026-11-20:
   a panel there «adds to clutter»). The page beside it, centred. Under 1100px none of it is seen: a phone's bar keeps
   its four. ═════════════════════════════════════════════════════════════════════════════════════════════════════ */
.side__fold { display: none; }
@media (min-width: 1100px) {
  html { --side-r: 280px; }
  html.side-fold { --side-r: 104px; }
  .tab[data-tab="learn"], .tab[data-tab="settings"] { display: none; }
  .modes.modes--learn { display: none; }                            /* the doors are the switch (punk.css lays .modes after) */
  /* the Grammar's and Reading's titles leave the page, as Learn's did (kept for a screen reader); the bar keeps none */
  .top--place { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top--place > :not(h1) { display: none; }
  .stickybar--place .top__title { visibility: hidden; }

  .side__fold { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-3); cursor: pointer; }
  .side__fold .i { width: 18px; height: 18px; }
  .side__fold:hover { background: rgba(var(--tint), .08); color: var(--ink); }
  /* a group's name, in small caps; Study's carries How it works */
  .side__k { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin: 12px 0 4px; padding: 0 4px 0 12px; color: var(--ink-3); font-size: 11px; }
  .side__how { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
  .side__how .i { width: 16px; height: 16px; }
  .side__how:hover { background: rgba(var(--tint), .08); color: var(--ink); }
  /* Study: the doors */
  .side__study { flex-direction: column; gap: 2px; }
  .side__study > .side__k { margin-top: 0; }
  .side__door { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 6px 10px 6px 8px; border-radius: 15px; color: var(--ink-2); text-decoration: none; transition: background var(--t) ease; }
  .side__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--tint), .08); box-shadow: inset 0 0 0 1px rgba(var(--tint), .1); color: var(--acc-ink); }
  .side__ic .i { width: 20px; height: 20px; }
  .side__main { display: grid; gap: 1px; min-width: 0; flex: 1; }
  .side__main b { color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.2; letter-spacing: -.005em; }
  .side__line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }
  .side__line .bk-n { color: var(--acc-ink); font-variant-numeric: tabular-nums; }
  .side__done { display: grid; place-items: center; flex: none; color: var(--acc-ink); }
  .side__done[hidden] { display: none; }
  .side__done .i { width: 16px; height: 16px; }
  .side__door[aria-current="page"] { background: var(--thumb); box-shadow: var(--thumb-shadow); }
  .side__door[aria-current="page"] .side__line { color: var(--ink-2); }
  .side__door:hover:not([aria-current]) { background: rgba(var(--tint), .05); }
  .side__door:active, .side__row:active { transform: scale(.98); }
  /* Places: the certificates' row, as a tab's */
  .side__row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px; color: var(--ink-2); font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; }
  .side__row .i { width: 20px; height: 20px; }
  .side__row[aria-current="page"] { color: var(--ink); background: var(--thumb); box-shadow: var(--thumb-shadow); }
  .side__row:hover:not([aria-current]) { background: rgba(var(--tint), .05); color: var(--ink); }
  /* the foot: the level at the left, the skin and Settings at the right */
  .side__foot { display: flex; align-items: center; gap: 6px; }
  .side__foot .side__lv { flex: 0 1 auto; min-width: 0; margin-right: auto; }
  .side__lv b { font-weight: 700; }                                 /* the code alone: its name is the chip's label and title */
  .side__foot .side__gear { flex: none; min-width: 36px; padding: 0; justify-content: center; }
  .side__gear[aria-current="page"] { color: var(--ink); background: var(--thumb); box-shadow: var(--thumb-shadow); }

  /* [ : the sidebar folded to its icons, each named for a screen reader and on hover */
  html.side-fold .tabbar { width: 72px; padding: 14px 10px 12px; }
  html.side-fold .side__brand { justify-content: center; padding: 2px 0 10px; }
  html.side-fold .side__brand > :not(.side__fold) { display: none; }
  html.side-fold .side__fold { margin: 0; }
  html.side-fold .side__k { min-height: 0; height: 1px; margin: 8px 8px; padding: 0; overflow: hidden; background: rgba(var(--tint), .12); }
  html.side-fold .side__k > *, html.side-fold .side__find kbd, html.side-fold .side__lv .i { display: none; }
  html.side-fold .side__main, html.side-fold .tab > span:not(.tab__badge), html.side-fold .side__row > span,
  html.side-fold .side__find > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.side-fold .side__door, html.side-fold .tab, html.side-fold .side__row, html.side-fold .side__find { position: relative; justify-content: center; padding: 0; }
  html.side-fold .side__door { min-height: 50px; }
  html.side-fold .side__done { position: absolute; top: 3px; right: 2px; }
  html.side-fold .tab__badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; margin: 0; font-size: 11px; }
  html.side-fold .side__foot { flex-direction: column; padding: 10px 0 0; }
  html.side-fold .side__foot .side__lv { width: 100%; margin: 0; padding: 0; justify-content: center; }
}
/* ══ THE SITTING CLOCK (frap-clock.js; OPUS.md E13, THUD CORE's DK2 of 2026-11-20). A ring that fills as a turn passes, a Petrykivka bud
   opening petal by petal in its centre in the skin's own colours; numbers alone in Field mode and Low power. No dot:
   every petal and leaf a stroke longer than wide, no arc drawn under 4 units (verify_clock.py DOTS) ══ */
.clk { --clk-a: var(--acc-1); --clk-b: var(--acc-3); --clk-c: var(--acc-2); --clk-l: var(--acc-4); display: block; width: 100%; height: auto; overflow: visible; }
html[data-look="milk"] .clk { --clk-a: var(--acc-4); --clk-b: var(--acc-1); --clk-c: var(--acc-3); --clk-l: var(--acc-3); }   /* by day the ramp turned: the palest petal was lost on the paper */
.clk__track { fill: none; stroke: rgba(var(--tint), .14); stroke-width: 3; }
.clk__arc { fill: none; stroke: var(--acc-ink); stroke-width: 3.5; stroke-linecap: butt; }
:is(.clk, .clk-mini).is-rest .clk__arc { stroke: var(--ink-3); }
:is(.clk, .clk-mini).is-over .clk__arc { stroke: rgba(var(--tint), .4); }
.clk__stem { fill: none; stroke: var(--clk-l); stroke-width: 2.4; stroke-linecap: butt; }
.clk__leaf { fill: var(--clk-l); }
.clk__pet { fill: var(--clk-a); }
.clk__core { fill: var(--clk-c); }
.clk__hi { fill: var(--clk-b); opacity: .8; }
.clk-mini { position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; }
.clk-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clk-mini .clk__track, .clk-mini .clk__arc { stroke-width: 3.6; }
.clk-mini b, .clk-n { position: relative; color: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clk-face { display: grid; justify-items: center; gap: 10px; text-align: center; }
.clk-face .clk { width: 112px; }
.clk-face__t { display: grid; gap: 2px; margin: 0; }
.clk-face__t b { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.clk-face__t span { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.clk-face__t .clk-face__at { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.clk-face--low .clk-face__t b { font-size: 34px; }
.clk-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* the sheet: the dial (dragged for one's own minutes, 5 to 90; its keys, a slider's), the four plans, Start */
.clk-sheet { display: grid; gap: 14px; text-align: center; }
.clk-sheet__h { margin: 0; }
.clk-sheet__p, .clk-next { margin: -6px 0 0; }
.clk-sheet__p, .clk-next, .clk-say, .clk-bell__t span { text-wrap: balance; }   /* no word alone on a line */
.clk-sheet .clk-face .clk { width: 160px; }
.clk-dial { display: grid; justify-items: center; gap: 4px; width: 176px; margin: 0 auto; border-radius: 24px; touch-action: none; cursor: grab; }
.clk-dial:active { cursor: grabbing; }
.clk-dial[aria-disabled="true"] { cursor: default; }
.clk-dial:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 4px; }
.clk-dial__n { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.clk-dial--low { padding: 18px 0; }
.clk-plans { width: 100%; max-width: 380px; margin: 0 auto; }
.clk-say, .clk-today { margin: 0; }
.clk-say { display: grid; align-content: center; min-height: 2.7em; min-height: 2lh; }   /* two lines held: a drag to 5 never moves the sheet under the finger */
.clk-rest__art { height: 148px; overflow: hidden; border-radius: 20px; }
.clk-rest__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
/* the bell at a round's end, under its score */
.clk-bell { display: grid; gap: 12px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 20px; --r: 20px; text-align: left; }
.clk-bell__t { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.clk-bell__t b { color: var(--ink); }
.clk-bell .clk-b { justify-content: flex-start; }
/* a phone's narrow column: the bell's three on one line (at 360px «Stop here» stood alone) */
@media (max-width: 419.98px) {
  .clk-b { gap: 6px; }
  .clk-b .btn--s { padding-left: 11px; padding-right: 11px; font-size: 14px; }
}
/* Learn's offer, beside its Start (THUD CORE's DK2): level with the button at the hero's foot, as tall; under 960px Start
   gives it its room and it says itself in its ring alone (its words kept for a screen reader) */
.def-hero__clock { position: absolute; z-index: 3; right: calc(var(--gutter) + var(--sar)); bottom: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 56px; height: 56px; padding: 0 20px 0 14px; border: 0; border-radius: 28px; --r: 28px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.def-hero__clock > .i { width: 20px; height: 20px; }
@media (max-width: 959.98px) {
  .def-hero:has(> .def-hero__clock) .def-hero__btn { width: calc(100% - 68px); }
  .def-hero__clock { width: 56px; padding: 0; }
  .def-hero__clock .clk-chip__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 960px) {
  .def-hero__clock { right: 40px; bottom: 36px; }
  .def-hero__clock .clk-mini b, .def-hero__clock .clk-n { display: none; }   /* its time said beside the ring: the ring's minutes not twice */
}
/* a light change for the bell, in every skin. Never in Field mode, under Low power or with less motion */
.clk-glow { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, var(--acc-2), transparent 72%); opacity: 0; animation: clk-glow 3.2s ease-out both; }
@keyframes clk-glow { 0% { opacity: 0; } 25% { opacity: .2; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .clk-glow { display: none; } }
html[data-watch="on"] .clk-glow, html[data-low="on"] .clk-glow { display: none; }
/* The sidebar's foot on a desk: the clock's chip (its ring and time) while a sitting runs, its icon when none does;
   under 1100px, while one runs, a chip at the right of the page's own header (at the window's top right on a page
   drawn without one: frap-desk.js chip()), its ring alone, empty and unseen when none runs */
.side__clkbox:empty { display: none; }
.side__clk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 10px 2px 3px; font-variant-numeric: tabular-nums; }
.side__foot .side__clk--idle { flex: none; min-width: 36px; padding: 0; justify-content: center; color: var(--ink-2); }
/* while a sitting runs the clock takes a row of its own above the level, the skin and Settings, its ring at its left:
   its words («Rest 4:59», «Rest over») never squeeze the level's code under the skin's chip (2026-11-21, the sweep) */
html:not(.side-fold) .side__foot { flex-wrap: wrap; }
html:not(.side-fold) .side__foot .side__clkbox:not([data-k="foot:idle"]) { display: flex; flex: 1 0 100%; }
html:not(.side-fold) .side__foot .side__clk:not(.side__clk--idle) { flex: 1; justify-content: flex-start; padding: 2px 12px 2px 3px; }
html.side-fold .side__clk { padding: 2px; }
html.side-fold .side__clk [data-t="s"] { display: none; }
html:not(.side-fold) .side__clk .clk-mini b, html:not(.side-fold) .side__clk .clk-n { display: none; }
.clk-btn { display: none; }
@media (max-width: 1099.98px) {
  .clk-btn:not(:empty) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 7px !important; color: var(--ink-2); cursor: pointer; }
  body > .clk-btn:not(:empty) { position: fixed; z-index: 30; top: calc(var(--sat) + 12px); right: calc(var(--sar) + 14px); }
}
/* ══ THE WAYS, FANNED OUT (frap-ways.js; OPUS.md E14, THUD CORE's DK3 of 2026-11-20). «Ways» at the head of Learn's
   rail of ways, on a strategy's bar and at the Grammar's and Reading's orders opens them in a sheet: «For you» (one
   large, three more, each with why it is offered and about how long it takes), «Not quite?», then every way; the
   course's two lists on a second tab. The cards come up one after another, a rise and a fade 30 ms apart, never a
   figure scaled; still under reduced motion, Low power and Field mode (verify_picks.py MOTION). From 960px the sheet
   is wide and its cards stand in threes. ══════════════════════════════════════════════════════════════════════════ */
.ways-chip { min-height: 40px; padding: 0 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.def-rail__head .ways-chip { grid-row: 1; grid-column: 2; align-self: center; margin: -8px 0; }
.ways-head { display: flex; align-items: baseline; gap: 10px; }
.ways-head > .gh { flex: 1; min-width: 0; }
.ways-head > .ways-chip { flex: none; }
.ways { padding-bottom: 26px; }
.ways__h { margin: 4px 2px 14px; }
.ways__sub { margin: -6px 2px 4px; }
.ways__tabs { margin: 0 0 14px; }
.ways__tabs .seg__opt[aria-selected="true"] { color: var(--on-seg); }
.ways__k { margin: 22px 2px 10px; color: var(--ink-2); font-size: 11px; letter-spacing: .22em; }
.ways__course { display: flex; align-items: center; gap: 12px; padding: 14px 16px; --r: 18px; border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.ways__course-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ways__course-main .caps { color: var(--acc-ink); font-size: 10px; letter-spacing: .22em; }
.ways__course-main b { font-size: 17px; line-height: 1.25; }
.ways__course-main > span:not(.caps) { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.waypick { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 12px 14px; --r: 18px; border-radius: 18px; color: var(--ink); text-decoration: none; }
.waypick__fig { flex: none; width: 128px; }
.waypick__fig .ofig { max-width: none; margin: 0; }
.waypick__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.waypick__by { color: var(--acc-ink); font-size: 10px; letter-spacing: .22em; }
.waypick__name { font-size: 16.5px; font-weight: 700; line-height: 1.22; }
.waypick__why { align-self: flex-start; margin: 2px 0 1px; padding: 3px 9px; border-radius: 999px; background: rgba(var(--tint), .09); color: var(--ink); font-size: 12.5px; font-weight: 650; }
.waypick__line { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.waypick__days { margin-top: 3px; color: var(--acc-ink); font-size: 13px; font-weight: 650; }
.waypick--top { flex-direction: column; gap: 10px; height: auto; padding: 16px; box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.waypick--top .waypick__fig { width: 100%; max-width: 320px; }
.waypick--top .waypick__name { font-size: 22px; letter-spacing: -.01em; }
.waypick--top .waypick__line { color: var(--ink); font-size: 15px; }
.waypicks, .ways__all, .ways__orders, .ways__months { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.waypick--all { padding: 10px 12px; }
.waypick--all .waypick__fig { width: 104px; }
.waypick--all .waypick__name { font-size: 15.5px; }
.waypick--all .waypick__line { font-size: 13.5px; }
.waypick.is-here { box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.ways__none, .ways__off { margin: 0 2px 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.ways__ask { margin: 16px 0 0; padding: 14px 14px 4px; border-radius: 18px; background: rgba(var(--tint), .05); }
.ways__ask-h { margin: 0 0 10px; color: var(--ink-2); font-size: 11px; letter-spacing: .22em; }
.ways__q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.ways__qq { flex: 1 0 100%; color: var(--ink); font-size: 15px; font-weight: 600; }
.ways__qa { display: flex; flex-wrap: wrap; gap: 8px; }
.ways__qa .chip { min-height: 38px; padding: 0 14px; color: var(--ink); font-size: 14px; cursor: pointer; }
.ways__qa .chip[aria-pressed="true"] { background: var(--seg-fill); color: var(--on-seg); }
.ways__month { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; --r: 18px; border-radius: 18px; }
.ways__month .caps { color: var(--acc-ink); font-size: 10px; letter-spacing: .22em; }
.ways__month b { font-size: 16.5px; }
.ways__month-say { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.ways__month-n { margin-top: auto; padding-top: 4px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.ways__month[data-st="now"] { box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.ways__month[data-st="now"] .ways__month-n { color: var(--acc-ink); }
.ways__how { margin: 12px 0 0; padding: 14px; --r: 18px; border-radius: 18px; }
@keyframes way-fan { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-low="on"]):not([data-watch="on"]) .ways .fan { animation: way-fan .44s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 30ms + 80ms); }
}
@media (min-width: 960px) {
  .sheet.sheet--ways { max-width: 880px; }
  .waypick--top { flex-direction: row; align-items: center; gap: 22px; padding: 18px 20px; }
  .waypick--top .waypick__fig { width: 300px; }
  .waypicks, .ways__all, .ways__orders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways__months { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* the course's two lists side by side */
  .waypicks .waypick, .ways__all .waypick, .ways__orders .waypick { flex-direction: column; gap: 8px; }
  .waypicks .waypick__fig, .ways__all .waypick__fig, .ways__orders .waypick__fig { width: 100%; }
  .ways__q { flex-wrap: nowrap; }
  .ways__qq { flex: 0 0 14em; }
}
.ways__note { margin: 0 2px 10px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* a short desk (a 768px-high laptop and less): the doors give up their lines before anything scrolls */
@media (min-width: 1100px) and (max-height: 700px) {
  .side__door { min-height: 46px; }
  .side__ic { width: 32px; height: 32px; }
  .side__line { display: none; }
}
/* A STRATEGY ON A DESK: two panes; the route or the lists, and the section in hand in a sticky
   panel at the right (frap.js fillPanel), its body the section sheet's own */
.strat__panel { display: none; }
@media (min-width: 1100px) {
  .strat { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .strat__main { min-width: 0; }
  .strat__panel {
    display: flex; flex-direction: column; position: sticky; top: calc(var(--sat) + 24px); max-height: calc(100dvh - 48px);
    --r: var(--r-card); border-radius: var(--r-card); margin-top: 6px;
  }
  .strat__panel.in > * { animation: rise .5s var(--ease-out) both; }
  .strat__panel .sheet__body { padding: 22px 20px 14px; }
  .strat__panel .sheet__foot { padding: 10px 20px 20px; }
  .strat__panel .ss__head h2 { font-size: 26px; }
  .stop__card.is-sel { box-shadow: inset 0 0 0 2px rgba(var(--tint), .55), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); background-color: var(--glass-strong-fill); }
  .stop--next .stop__card.is-sel { box-shadow: inset 0 0 0 2px var(--acc-3), inset 0 1px 0 rgba(255, 255, 255, .2), var(--cast); }
  .pick .row.is-sel { background: rgba(var(--tint), .08); }
  .pick .row.is-sel .row__title { color: var(--ink); }
  @media (hover: hover) { .stop__card:hover:not(.is-sel) { background-color: var(--glass-strong-fill); } }
}
/* REVIEW AND RECORD ON A DESK: side by side (Review: the count and what comes; Record: the week
   and the record grouped, beside the latest rounds) */
@media (min-width: 1100px) {
  .rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .rv-grid > .glass.empty, .rv-grid > .hero { margin: 0; }
  .rv-more > .sec-head:first-child, .rec-a > .sec-head:first-child, .rec-b > .sec-head:first-child { margin-top: 0; }
  .rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 30px; }
}
@media (min-width: 1280px) {
  /* Settings in two columns of groups: the level, the card and a round; sound, the look, your data */
  .set-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .set-col:last-child > .set-h:first-child { margin-top: 0; }
}
.rv__way { text-align: center; color: var(--ink-2); }   /* Review asked the other way round, said (ENG.md call 77) */
