/* The new Harrox: the tokens. The custom properties and the four looks; every shared class is in shell.css.
   Plain CSS, no build. The tokens are the spec's section 1. Colours are named for their job, not their look. */
:root {
  --ink: #0F1116; --slate: #1A1E28; --parchment: #EFE3C8; --ember: #E0915A; --arcane: #8E9BE8; --mist: #A7ABBA; --gold: #D2B36C;
  --ok: #8FB98A; --bad: #E5867A;
  /* Semantic. Every word reads at 4.5:1 on the lightest glass over the brightest painting (web/lookrules.js
     TEXT_GROUND, test/newui/tokens.test.js), the secondary words too (the critique's accessibility item 7): on glass this
     thin that takes all of the label's colour, so in the dark looks --label2 is the label (it was parchment at .62), and
     secondary words stand apart by their size and weight, never by being dimmer (the controller's ruling, 2026-10-25).
     --label3 is for what is decorative only: a dot, a grip, a chevron beside words (tokens.test.js lists each).
     Words in the accent take --accent-text, the accent lifted to 4.5:1 there (homethemes.js keepReadable); its glyphs
     (icons, initials, a starter's mark) take --accent-glyph, lifted only to 3:1 on every ground a glyph lies on, as a
     glyph needs (lookrules.js glyphFor).
     Fields, chips and the accent's tint are wells, a little darker than the glass (they were lighter: white at .08 and
     .12, and the accent at .18), so a word on one reads as it does on the glass. The one tint for every accent and your
     own colour: 18% of the accent in ink. */
  --bg: var(--ink); --label: var(--parchment); --label2: var(--label); --label3: rgba(239, 227, 200, .4);
  --accent: var(--ember); --on-accent: #1E1612; --tint: color-mix(in srgb, var(--accent) 18%, rgba(15, 17, 22, .4)); --accent-text: #F7E4D6; --accent-glyph: #E9B28C;
  --fill: rgba(15, 17, 22, .2); --fill2: rgba(15, 17, 22, .3); --sep: rgba(239, 227, 200, .14);
  /* Refusals and good news (--bad and --ok, for fills: a danger button's, with --on-bad words on it) as the accent is:
     their words lifted to 4.5:1 on TEXT_GROUND (keepReadable), their marks and edges to 3:1, their chips wells like its
     tint. A switch off is a --fill2 track inside an edge in the words' colour: no fill reads against dark glass over a
     dark painting, so the edge is what shows where it is (test/newui/states.test.js). A switch on: its white knob wears
     a dark edge, so it reads at 3:1 against the accent's track whatever the accent (.6 is the least that does, for
     every own colour a person can keep). */
  --bad-text: #F9E1DE; --ok-text: #DDEADC; --bad-glyph: #EEB0A9; --ok-glyph: #A5C7A1; --on-bad: #1D0F0D;
  /* A warning's mark (Server's warn dot, plan 7a): Ember lifted to 3:1 on TEXT_GROUND, as the other marks are. */
  --warn-glyph: #E9B28C;
  --bad-tint: color-mix(in srgb, var(--bad) 18%, rgba(15, 17, 22, .4)); --ok-tint: color-mix(in srgb, var(--ok) 18%, rgba(15, 17, 22, .4));
  --switch-off: var(--fill2); --switch-edge: var(--label2); --knob-edge: rgba(15, 17, 22, .6);
  /* Glass: thinner than before, more blur, a light edge along the top, a soft shadow. */
  --glass: rgba(26, 30, 40, .42); --glass-dense: rgba(26, 30, 40, .72);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-blur: blur(28px) saturate(1.5);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .18);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  /* The painting's veil darkens toward the foot (the walkthrough, 2026-11-16: .5 at the top, .61 at 42%, .86 at the bottom),
     so the words low on a long page read better; look.js VEILS says the same. Day's stays flat. */
  --veil: linear-gradient(180deg, rgba(15, 17, 22, .8) 0%, rgba(15, 17, 22, .85) 42%, rgba(15, 17, 22, .94) 100%);
  /* The veil at night on the calm Home (shell.css .first-slot.calm.night; Payton, 2026-11-20): a wash of the look's own
     page colour (--edge) laid over its veil, so it deepens in each look's own colour: ink in Night, Clear and Tinted,
     parchment in Day (denser, so Day's dark words read better still), Harrox's own brown. Never a colour of its own. */
  --veil-night: color-mix(in srgb, var(--edge) 45%, transparent);
  /* Your own messages (shell.css .bubble.me) and the lines only you see in a story (.prose .only): a breath of the
     accent in ink, dark enough that the words read at 4.5:1 with any accent, the lightest own colours included. */
  --me-bubble: color-mix(in srgb, var(--accent) 24%, rgba(15, 17, 22, .85));
  --only-back: color-mix(in srgb, var(--accent) 14%, rgba(15, 17, 22, .4));
  /* The scroll edges' colour (shell.css: the top scrim, the fade under the box): the page's own, so a look's words read on it. */
  --edge: rgb(15, 17, 22);
  /* Under a label that lies on the bare painting (shell.css .first-slot > .muted, .lrow > .label): dark enough that the words and the
     accent read at 4.5:1 over the brightest painting, in every look (test/newui/tokens.test.js). */
  --label-back: rgba(15, 17, 22, .78);
  /* A field's placeholder: dimmer than the words typed, so it never reads as typed, yet 3:1 or more on a field over any
     painting (shell.css ::placeholder; test/newui/iphone-bugs6.test.js). */
  --placeholder: rgba(239, 227, 200, .6);
  color-scheme: dark;
  /* The hero is tinted glass, not a loud gradient: a breath of Arcane into Ember over the painting. */
  --hero: linear-gradient(140deg, rgba(142, 155, 232, .28), rgba(26, 30, 40, .42) 55%, rgba(224, 145, 90, .22));
  /* Surfaces (the design council's sleek-up, batch A, 2026-11-01): content is opaque, only the chrome is glass. Three
     things blur on a screen, the top, the bar and an open sheet, drawer or menu; every card, row, button and pill lies
     on a surface of its own instead, dense enough that no blur is needed under it. --surface is a card's, --surface2 a
     denser one's (the old dense glass), --raised a control's: a button, a pill, a circle, a step lighter than a card so
     it shows on one with no edge. Each reads at 4.5:1 over any painting in every look (test/newui/contrast.test.js). */
  --surface: rgba(26, 30, 40, .52); --surface2: rgba(26, 30, 40, .72); --raised: rgba(52, 58, 72, .9);
  /* On a surface the secondary words recede (the council: every line shouted equally while --label2 was the label): the
     warm sand (--label2-sand, #D2C4A9; it was the label at .72), which a surface's density lets read at 4.5:1 (it could not on the thinnest glass). shell.css puts it
     on each surface as its --label2; the glass keeps the full label. */
  /* The walkthrough's warm sand: the receding words on a card (--label2-sand) and a row's detail line (--label-detail). */
  --label2-sand: #D2C4A9; --label-detail: #C8B69B; --label2-on: var(--label2-sand);
  /* Depth (Payton, 2026-11-09: "it just looks flat"): batch A took the edge, the inset light and the shadow off every
     card, and each became one slab of slate. A surface has light on it again, with no blur and only a hairline edge (--card-edge): a card
     catches a soft light in its top and falls into shade toward its foot (--card-light, drawn over its surface), has
     a hairline edge, and lifts off the painting on a soft shadow (--card-depth); a control stands
     a step proud of its card (--ctl-depth); a field is a well, shaded inside its top (--well-depth). The light is the
     most a card's words still read through at 4.5:1 over any painting (.04: Tinted with a white own colour reads
     4.55:1 there; test/newui/contrast.test.js); the shade only darkens the ground under light words, so most of the
     depth is its. --top-line (Day's card) and --ctl-line are the two lines, so Outlines off takes them away and keeps the rest. */
  --top-line: rgba(255, 255, 255, .16); --ctl-line: rgba(255, 255, 255, .18);
  /* The walkthrough's shared values (2026-11-16): the gold edge of a search or text box, the glow under a title, a chip's words, fill and edge. */
  --box-edge: rgba(210, 179, 108, .25); --title-glow: 0 2px 20px rgba(22, 11, 9, .6);
  --chip-text: var(--rail-gold-text); --chip-tint: rgba(210, 179, 108, .07); --chip-edge: rgba(210, 179, 108, .2);
  --card-light: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 72px), linear-gradient(rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .18));
  /* The walkthrough's card (2026-11-16): a faint top light and a soft shadow, and a 1px parchment hairline for its edge
     (shell.css draws --card-edge as the card's border; Outlines off takes it away). */
  --card-depth: inset 0 1px 0 rgba(248, 231, 191, .04), 0 12px 30px rgba(13, 7, 7, .2);
  --card-edge: rgba(239, 227, 200, .11);
  --ctl-depth: inset 0 1px 0 var(--ctl-line), 0 1px 2px rgba(0, 0, 0, .4);
  --well-depth: inset 0 1px 3px rgba(0, 0, 0, .35);
  /* One radius scale: a card 20, a row 16, a control 12, a cover 10, an icon's square 16; 999 only for chips, segments,
     the bar, the box, the title pill and Home. */
  --r-card: 20px; --r-row: 16px; --r-ctl: 12px; --r-cover: 10px; --r-icon: 16px;
  /* Corners (Settings › Customize; look.js data-corners) move the whole scale: Bubbly rounder, Soft and Square less. */
  /* One type scale, seven pairs: Large Title 34/700, Title 22/700, Headline 17/600, Body 17/400, Subhead 15/400,
     Caption 13/400 (13/500 on a chip), the bar's label 11/500. */
  --t-large: 34px; --t-title: 22px; --t-head: 17px; --t-body: 17px; --t-sub: 15px; --t-cap: 13px; --t-bar: 11px;
  --gutter: 16px; --pill: 999px; --bubble: 22px;
  --bar-h: 64px; --side: var(--rail-w);
  /* The bar in Harrox's own style, every app's (shell.css .bar from 1100px, .railnav in a phone's drawer; Vincent,
     2026-11-13: "b for everything we want that harrox style everywhere the old vintage style", then "blended fine"):
     its width and the size of its places' names, here and only here. Fine is 300 and 24px; Middle would be 320 and 27px
     (the mockup's b5 weights). The rest of its type is worked out from --rail-type. */
  --rail-w: 300px; --rail-type: 24px;
  /* The painting through a veil of the page's own colour (--edge): lighter by the header, as the mockup's Blended
     header; the phone's drawer carries its own copy of the painting under a denser veil, so the page behind it never
     reads through (bar.js openTabs --rail-painting). Clear's and Day's header veils are a little denser (below), as
     their page veils are lighter. Gold for the words that
     mark (the app's "HARROX", the groups, the place you're at: the front page's soft gold lifted to 4.5:1 there) and the
     front page's own gold for the rule and the star. Each read at 4.5:1 (words) and 3:1 (rule and star) over a white
     painting in every look: test/newui/contrast.test.js. */
  --rail-veil-top: color-mix(in srgb, var(--edge) 48%, transparent); --rail-veil: color-mix(in srgb, var(--edge) 74%, transparent);
  --rail-drawer-top: color-mix(in srgb, var(--edge) 80%, transparent); --rail-drawer: color-mix(in srgb, var(--edge) 92%, transparent);
  --rail-gold-text: #E6CF96; --rail-glyph: #D2B36C; --rail-edge: rgba(210, 179, 108, .18);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --prose: "Cormorant Garamond", Georgia, serif;
  /* The display face: every title and heading (Vincent, 2026-11-06: "the font on the front page for harrox is cool can u
     apply it everywhere"), shell.css's self-hosted Cormorant Garamond, the same as the front page's. Small words, inputs
     and buttons stay on --font: Cormorant draws thin and small under ~15px. */
  --display: "Cormorant Garamond", Georgia, serif;
  --display-fit: ex-height .47;
}
[data-accent="arcane"] { --accent: var(--arcane); --on-accent: #12152A; --accent-text: #E3E6F9; --accent-glyph: #B0B9EF; }
[data-accent="mist"] { --accent: var(--mist); --on-accent: #12141B; --accent-text: #E5E6EA; --accent-glyph: #B9BCC8; }
/* The four looks: Night (default), Day, Clear, Tinted. */
[data-look="day"] { --veil: rgba(239, 227, 200, .62); --card-edge: rgba(26, 23, 16, .12); --label2-sand: var(--label2); --label-detail: var(--label2); --edge: rgb(239, 227, 200); --label: #1A1710; --label2: rgba(26, 23, 16, .71); --label3: rgba(26, 23, 16, .4);
  --glass: rgba(245, 236, 215, .5); --glass-dense: rgba(245, 236, 215, .8); --glass-edge: rgba(255, 255, 255, .6); --fill: rgba(255, 255, 255, .25); --fill2: rgba(255, 255, 255, .4); --sep: rgba(0, 0, 0, .1);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(0, 0, 0, .06);
  --label-back: rgba(245, 236, 215, .85); --placeholder: rgba(26, 23, 16, .58); color-scheme: light;
  /* Day's surfaces: its parchment, nearly solid, and a control a step lighter; its secondary words recede already. */
  --surface: rgba(245, 236, 215, .9); --surface2: rgba(245, 236, 215, .96); --raised: rgba(255, 251, 243, .94); --label2-on: var(--label2);
  /* Day's depth: its light is white on parchment and it has no shade (a shade would dim the ground under Day's dark
     words); its shadows are a warm umber, softer than Night's. */
  --top-line: rgba(255, 255, 255, .85); --ctl-line: rgba(255, 255, 255, .9);
  --box-edge: rgba(124, 55, 18, .3); --title-glow: 0 0 transparent;
  --card-light: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 72px);
  --card-depth: inset 0 1px 0 var(--top-line), 0 1px 1px rgba(60, 45, 20, .1), 0 14px 28px -12px rgba(60, 45, 20, .4);
  --ctl-depth: inset 0 1px 0 var(--ctl-line), 0 1px 2px rgba(60, 45, 20, .2);
  --well-depth: inset 0 1px 2px rgba(60, 45, 20, .16);
  /* Day's colours are deep enough to read at 4.5:1 on its light glass over the darkest painting (the light ones are
     Night's): words in the accent, refusals, good news, and the light words on an accent button. Its secondary words
     went from .62 to .71 for the same. Your message and the only-you line keep Day's light grounds. Its wells are
     light ones: a field white at .25 and the stronger one at .4 (they were black at .06 and .1, and words in the accent
     fell under 4.5:1 on them), and the tint 14% of the accent in its parchment. */
  --accent: #7C3712; --on-accent: #FFF8EE; --tint: color-mix(in srgb, var(--accent) 14%, rgba(245, 236, 215, .4)); --bad: #8A2A22; --ok: #285626; --accent-text: var(--accent); --accent-glyph: var(--accent);
  --me-bubble: color-mix(in srgb, var(--accent) 34%, var(--glass-dense)); --only-back: var(--tint);
  /* Its refusals and good news read already, words and marks alike; light words on a danger button; chips wells in its
     parchment; a switch off a darker track that shows against its glass by itself (it was --fill2, nearly invisible). */
  --bad-text: var(--bad); --ok-text: var(--ok); --bad-glyph: var(--bad); --ok-glyph: var(--ok); --on-bad: #FFF8EE; --warn-glyph: #7C3712;
  --bad-tint: color-mix(in srgb, var(--bad) 14%, rgba(245, 236, 215, .4)); --ok-tint: color-mix(in srgb, var(--ok) 14%, rgba(245, 236, 215, .4));
  --switch-off: rgba(26, 23, 16, .55); --switch-edge: transparent; --knob-edge: transparent;
  /* The bar's gold is too light on Day's parchment veil (under 4.5:1), so Day's bar marks in its own accent, and its
     veils are denser by the header and in the drawer so that accent reads at 4.5:1 over the darkest painting (2026-11-13). */
  --rail-gold-text: var(--accent-text); --rail-glyph: var(--accent-glyph); --rail-edge: var(--sep); --rail-veil-top: color-mix(in srgb, var(--edge) 56%, transparent);
  --rail-drawer-top: color-mix(in srgb, var(--edge) 88%, transparent); }
[data-look="day"][data-accent="arcane"] { --accent: #3A4490; --on-accent: #FFF8EE; }
[data-look="day"][data-accent="mist"] { --accent: #474A58; --on-accent: #FFF8EE; }
/* Clear and Tinted: each glass as thin as keeps every word at 4.5:1 over the brightest painting it can show. Clear
   shows most of the painting round its glass (the thinnest veil, the most blur), and its glass is set for the paintings
   this person is shown (look.js puts lookrules.js clearGlassFor's --clear-glass on the root; .54 is a white painting's).
   It was .26 at first (2.5:1 over white), and its dense glass .55 (now .72, a step denser again). Tinted's glass is the
   accent's tint, so the lightest accent, Mist, needs it a little denser. */
/* The hero in Day (plan 8 item 33, answer 4): Day's own glass, a breath of Arcane into Ember on its parchment, dense
   enough that its words read at 4.5:1 and its dividers at 3:1 over any painting (test/newui/contrast.test.js). The
   dark looks keep theirs. Its stops are named, so the test reads the same colours the gradient draws. */
[data-look="day"] { --hero-a: rgba(234, 229, 242, .9); --hero-b: rgba(245, 236, 215, .9); --hero-c: rgba(247, 228, 208, .9); --hero-rule: var(--label2);
  --hero: linear-gradient(140deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c)); }
[data-look="clear"] { --rail-veil-top: color-mix(in srgb, var(--edge) 64%, transparent); --veil: linear-gradient(180deg, rgba(15, 17, 22, .3) 0%, rgba(15, 17, 22, .37) 42%, rgba(15, 17, 22, .52) 100%); --glass: rgba(26, 30, 40, var(--clear-glass, .54)); --glass-dense: rgba(26, 30, 40, .72); --glass-blur: blur(36px) saturate(1.7);
  --surface: rgba(26, 30, 40, .82); --surface2: rgba(26, 30, 40, .92); } /* Clear's veil is as light as it was, so its cards stay as dense as they were (2026-11-19) */
[data-look="tinted"] { --glass: color-mix(in srgb, var(--accent) 16%, rgba(26, 30, 40, .43)); --glass-dense: color-mix(in srgb, var(--accent) 12%, rgba(26, 30, 40, .72));
  --surface: color-mix(in srgb, var(--accent) 8%, rgba(26, 30, 40, .82)); --surface2: color-mix(in srgb, var(--accent) 8%, rgba(26, 30, 40, .92)); --raised: color-mix(in srgb, var(--accent) 10%, rgba(52, 58, 72, .9)); }
[data-look="tinted"][data-accent="mist"] { --glass: color-mix(in srgb, var(--accent) 16%, rgba(26, 30, 40, .45)); }
/* What Customize keeps beyond the look (web/look.js applyExtras, plan 7a Task 3), after the looks so each wins at the
   same weight. Each is checked in every look in test/newui/tokens.test.js. */
/* Plain (Harrox's own ground, or Motion off): a mark of its own, never a look. No painting, and a ground of the look's
   own under the veil: ink, and parchment for Day, so Day's words stay Day's. */
[data-plain] .look-layer { display: none; }
[data-plain] { --veil: var(--ink); }
[data-plain][data-look="day"] { --veil: var(--parchment); }
/* Glass, as the old app's (core/home/web/home/homeeditor.css:84-85): Soft is the densest, Strong the most see-through.
   Night's and Day's only: Clear's and Tinted's glass is their look, the same at every amount. Night's Strong, .34, is as
   thin as keeps its words at 4.5:1 over the brightest painting (the plan's .3 read 4.37:1; the controller's ruling,
   2026-10-25). Day's Strong lets most of a dark painting through, so Day's coloured words go a shade deeper on it, just
   enough for 4.5:1 over the darkest painting, each accent its own. */
[data-look="night"][data-glass="soft"] { --glass: rgba(26, 30, 40, .6); }
[data-look="night"][data-glass="strong"] { --glass: rgba(26, 30, 40, .34); }
[data-look="day"][data-glass="soft"] { --glass: rgba(245, 236, 215, .7); }
[data-look="day"][data-glass="strong"] { --glass: rgba(245, 236, 215, .38); --accent: #713210; --bad: #7E261F; --ok: #244D22; }
[data-look="day"][data-glass="strong"][data-accent="arcane"] { --accent: #353E83; }
[data-look="day"][data-glass="strong"][data-accent="mist"] { --accent: #414451; }
/* Harrox's own colours, the default theme (Vincent, 2026-11-10: "let the colors be malleable but this is the default color
   scheme"): the logo's near-black brown and deep browns in place of Ink and Slate, under the same parchment words. On
   with Harrox's own wallpaper (look.js data-brand: lookrules.js lookExtras brand), in Night (and on the front page, which
   has no look); the soft gold accent is the default account's own colour (homedefaults.js homeAccent), so Customize
   changes it as any colour. Every alpha is Night's, so its words read as Night's do. */
[data-brand]:is([data-look="night"], :not([data-look])) { --ink: #1A120C; --slate: #2A1D13; --mist: #ADA087;
  --bg: var(--ink); --edge: rgb(26, 18, 12); --veil: linear-gradient(180deg, rgba(26, 18, 12, .8) 0%, rgba(26, 18, 12, .85) 42%, rgba(26, 18, 12, .94) 100%); --label-back: rgba(26, 18, 12, .78);
  --fill: rgba(26, 18, 12, .2); --fill2: rgba(26, 18, 12, .3);
  --glass: rgba(42, 29, 19, .42); --glass-dense: rgba(42, 29, 19, .72);
  --surface: rgba(42, 29, 19, .52); --surface2: rgba(42, 29, 19, .72); --raised: rgba(66, 47, 31, .9);
  --me-bubble: color-mix(in srgb, var(--accent) 24%, rgba(26, 18, 12, .85)); --only-back: color-mix(in srgb, var(--accent) 14%, rgba(26, 18, 12, .4));
  --hero: linear-gradient(140deg, rgba(210, 179, 108, .2), rgba(42, 29, 19, .42) 55%, rgba(26, 18, 12, .5)); }
[data-brand][data-look="night"][data-glass="soft"] { --glass: rgba(42, 29, 19, .6); }
[data-brand][data-look="night"][data-glass="strong"] { --glass: rgba(42, 29, 19, .34); }
[data-brand][data-plain][data-look="night"] { --veil: var(--ink); }
/* Their depth: a near-black ground hides a shadow, so here the light does the work. A warm light, stronger than Night's
   (.09: the receding words still read 4.86:1 on it over a white painting; test/newui/contrast.test.js), a deeper shade
   toward the foot, and the controls' brighter top line (--ctl-line). Outlines off takes that line away here too. */
[data-brand]:is([data-look="night"], :not([data-look])) { --ctl-line: rgba(255, 244, 220, .22);
  --card-light: linear-gradient(rgba(255, 244, 220, .09), rgba(255, 244, 220, 0) 96px), linear-gradient(rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .22)); }
[data-brand][data-outlines="off"]:is([data-look="night"], :not([data-look])) { --ctl-line: transparent; }
/* Outlines off: no edge round the glass, and no line of light along a card's (Day's) or a control's top; the glass and its blur,
   a card's light and its shadow set things apart. The keyboard's ring is its own. */
[data-outlines="off"] { --glass-edge: transparent; --top-line: transparent; --ctl-line: transparent; --card-edge: transparent; }
/* Your own colour, worn where Ember would be (never in Day, whose accent is deepened for its light glass, and never over
   the Office's or Server's own): look.js puts --own-accent, --own-on-accent, --own-accent-text (its words, lifted to
   read on TEXT_GROUND) and --own-accent-glyph (its glyphs, lifted to 3:1 on every ground they lie on) on the root. Its
   tint is :root's, mixed from it. */
[data-own-accent][data-accent="ember"]:not([data-look="day"]) { --accent: var(--own-accent); --on-accent: var(--own-on-accent); --accent-text: var(--own-accent-text, #EFE3C8); --accent-glyph: var(--own-accent-glyph, #EFE3C8); }
/* Tinted is tinted by it, so its glass is as dense as that colour needs (look.js: lookrules.js tintedGlassFor's
   --own-glass; .6 is the lightest colour's, white). */
[data-look="tinted"][data-own-accent][data-accent="ember"] { --glass: color-mix(in srgb, var(--accent) 16%, rgba(26, 30, 40, var(--own-glass, .6))); }
/* The reading font, Dyslexia friendly (the old app's, public/app.css:3328-3336): what you read, the story, Harrox's
   replies and your notes, in a plain, open sans, upright, with a little more room between letters, words and lines, and
   bold rather than italics for emphasis; the titles (--display) take it too. The story's book face draws small for its size, so the story is a touch smaller. */
[data-font="dyslexia"] { --font: Verdana, Tahoma, system-ui, sans-serif; --prose: Verdana, Tahoma, system-ui, sans-serif; --display: Verdana, Tahoma, system-ui, sans-serif; --display-fit: none; }
[data-font="dyslexia"] :is(.prose, .bubble.ai, .note) { font-family: var(--prose); font-style: normal; letter-spacing: .01em; word-spacing: .1em; line-height: 1.65; }
[data-font="dyslexia"] :is(.prose, .bubble.ai, .note) :is(em, i) { font-style: normal; font-weight: 600; }
[data-font="dyslexia"] .prose { font-size: 17px; }
:root[data-corners="bubbly"] { --r-card: 28px; --r-row: 22px; --r-ctl: 16px; --r-cover: 14px; --r-icon: 22px; }
:root[data-corners="soft"] { --r-card: 14px; --r-row: 12px; --r-ctl: 9px; --r-cover: 8px; --r-icon: 12px; }
:root[data-corners="square"] { --r-card: 6px; --r-row: 5px; --r-ctl: 4px; --r-cover: 4px; --r-icon: 6px; }
/* The light paper look (Payton, 2026-11-23: "yes to the designs"; the mocks' look.css, the unified look): plain light
   paper, white cards, brown for the one main action, gold for shapes and a deeper gold for words, no painting. Behind the
   held switch paperlook (public/features.js): look.js applyPaper puts data-paper on the root only once FEATURES_ON names
   it, so with it off nothing here applies and Harrox looks as it did. It maps every token the shell reads onto paper,
   so every screen turns light at once; the parts that are new to the look read the paper's own names (--paper, --card,
   --well, --line, --text, --text2, --brown, --gold-shape, --gold-text, --gold-tint). Its selector outranks every look,
   accent, own colour, glass and Harrox's own colours (html:root and one attribute more than the strongest of them), so
   none of those can reach in. Each pair reads at WCAG AA (test/newui/paper-tokens.test.js works them out): the words
   15:1 and the receding words 6.2:1 on paper, light words on brown 9.6:1, gold words 5.8:1, gold shapes 3:1. --line is a divider's hairline only; a field's, a
   choice chip's and a segmented pick's edge is --field-line, 3:1 on paper, card and well, light and dark (WCAG 1.4.11; the
   a11y review, 2026-11-28). The gold shape is 3:1 on paper and on gold-tint too (#A87C22; the mocks' #B8892B was 2.98:1). */
/* body.front .fp-card: the front page's barber card (held landingnew; front.css) is a paper card over the painting, so it
   takes these same tokens inside it, never copied values. */
html:root[data-paper]:not([data-paper="off"]), body.front .fp-card {
  --paper: #FBF8F2; --card: #FFFFFF; --well: #F3EDE2; --line: #E4DAC8; --field-line: #94806A;
  --text: #2A1D14; --text2: #6A5646;
  --brown: #5B3A24; --brown-press: #472C1A; --on-brown: #FFF8EC;
  --gold-shape: #A87C22; --gold-text: #7F5A0F; --gold-tint: #F6EBCF; --on-gold: #241503;
  --paper-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .06);
  --device: #1E1712; /* the page editor's device frame round a shop's page (site-tab frame) */
  --paper-focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--brown);
  /* The shell's own tokens, onto paper. */
  --bg: var(--paper); --edge: rgb(251, 248, 242); --veil: var(--paper); --veil-night: transparent; --gold: var(--gold-shape);
  --label: var(--text); --label2: var(--text2); --label3: rgba(42, 29, 20, .4);
  --label2-sand: var(--text2); --label-detail: var(--text2); --label2-on: var(--text2);
  --label-back: rgba(251, 248, 242, .92); --placeholder: rgba(42, 29, 20, .58);
  --accent: var(--brown); --on-accent: var(--on-brown); --accent-text: var(--brown); --accent-glyph: var(--gold-text);
  --tint: var(--gold-tint);
  --fill: var(--well); --fill2: #EDE4D5; --sep: var(--line);
  --glass: rgba(255, 255, 255, .88); --glass-dense: rgba(255, 255, 255, .96); --glass-edge: var(--line);
  --glass-blur: blur(14px) saturate(1.2); --spec: inset 0 0 0 transparent; --glass-shadow: var(--paper-shadow);
  --surface: var(--card); --surface2: var(--card); --raised: var(--card);
  --top-line: transparent; --ctl-line: var(--line); --card-edge: var(--line);
  --card-light: linear-gradient(transparent, transparent); --card-depth: var(--paper-shadow);
  --ctl-depth: 0 1px 2px rgba(60, 40, 20, .08); --well-depth: inset 0 1px 2px rgba(60, 40, 20, .08);
  --box-edge: var(--line); --title-glow: 0 0 transparent;
  --chip-text: var(--gold-text); --chip-tint: var(--gold-tint); --chip-edge: rgba(184, 137, 43, .35);
  --ok: #2F6B3A; --bad: #A3362B; --ok-text: var(--ok); --bad-text: var(--bad); --ok-glyph: var(--ok); --bad-glyph: var(--bad);
  --ok-tint: #E4F0E4; --bad-tint: #F8E4E0; --on-bad: var(--on-brown); --warn-glyph: var(--gold-text);
  --switch-off: rgba(42, 29, 20, .45); --switch-edge: transparent; --knob-edge: transparent;
  --me-bubble: var(--gold-tint); --only-back: var(--gold-tint);
  --hero: linear-gradient(var(--card), var(--card)); --hero-rule: var(--line);
  --rail-gold-text: var(--gold-text); --rail-glyph: var(--gold-shape); --rail-edge: var(--line);
  --rail-veil-top: var(--paper); --rail-veil: var(--paper); --rail-drawer-top: var(--paper); --rail-drawer: var(--paper);
  color-scheme: light;
}
/* Its matching dark (kept for Toolbox and as a person's own choice later; nothing sets it yet): the same parts on a
   deep brown, gold doing brown's job. */
html:root[data-paper="dark"]:not([data-paper="off"]) {
  --paper: #17120E; --card: #211A14; --well: #2A2119; --line: #3A2E22; --field-line: #806C56;
  --text: #F5ECDD; --text2: #C2B2A0;
  --brown: #D8B26A; --brown-press: #C39A4E; --on-brown: #1E140B;
  --gold-shape: #D2B36C; --gold-text: #E3C583; --gold-tint: #3A2F18; --on-gold: #1E140B;
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --device: #050403;
  --edge: rgb(23, 18, 14); --label3: rgba(245, 236, 221, .4); --label-back: rgba(23, 18, 14, .92); --placeholder: rgba(245, 236, 221, .58);
  --fill2: #322719; --glass: rgba(33, 26, 20, .88); --glass-dense: rgba(33, 26, 20, .96);
  --ok: #8FD09A; --bad: #F09A8E; --ok-tint: #1E3022; --bad-tint: #3A1E1A; --on-bad: #1E140B;
  --switch-off: rgba(245, 236, 221, .35); --chip-edge: rgba(210, 179, 108, .35);
  color-scheme: dark;
}
/* No painting on paper: plain paper everywhere (the painted photo only on the front hero and the setup welcome). */
[data-paper]:not([data-paper="off"]) .look-layer { display: none; }
