/* SCOVR - GLOBAL FORM TOKENS
   Generated by DESIGN-SYSTEM (Claude Design-Space/DESIGN-SYSTEM, GitLab
   design-system/core). Never edit this file or a copy of it by hand. The
   values are in packages/tokens/src there, and the rest of this text is
   packages/tokens/templates/form-tokens.css. Change it there, run
   npm run build, and bring it to SCOVR-APP with
   node scripts/sync-products.mjs. The design system page in SCOVR-APP
   (public/page-settings.html) shows these values.

   Brought into each repo by scripts/sync-products.mjs there, because
   they deploy independently; each repo's tools/design-system.json says
   which version it holds:
     SCOVR-APP   public/tokens/form-tokens.css
     SCOVR-COM   web/tokens/form-tokens.css
     AMVLET-COM  web/tokens/form-tokens.css
     SCANNER     apps/public-site/tokens/form-tokens.css
                 apps/console/public/tokens/form-tokens.css

   Detect drift:  npm run check, in DESIGN-SYSTEM

   Plain ASCII on purpose: a box-drawing rule before the closing marker
   left the parser inside the comment and swallowed the :root block below.
*/

:root {
  /* Shape */
  --field-height: 48px;
  /* Every CTA is a pill (Michael, 2026-09-07): the buttons inside dialogs and
     pop-ups included, not only the inline pills on cards. 8px corners stay
     for fields, cards and rows - never on a call to action. */
  --field-cta-radius: 999px;

  /* Round buttons (Michael, 2026-09-07): every round icon button - the dialog
     close, the ticket withdraw, the row remove, the QR card's eye, the gear,
     the header's search and QR - is a filled DISC: no ring, white at 6% at
     rest and 10% on hover, the glyph muted at rest and full on hover. Only
     the diameter varies: 28px as the rule, 36px in the page header. */
  --round-btn-size: 28px;
  --round-btn-size-header: 36px;
  --round-btn-glyph: 14px;          /* in a 28px disc */
  --round-btn-glyph-header: 18px;   /* in a 36px disc (Michael, 2026-09-07) */
  --round-btn-stroke: 2;            /* the glyph's line weight in a 28px disc */
  --round-btn-stroke-header: 2.4;   /* in a 36px disc: the weight of Messenger's New chat plus (Michael, 2026-09-27) */
  --round-btn-fill: rgba(255,255,255,0.06);
  --round-btn-fill-hover: rgba(255,255,255,0.10);

  /* Receipt disc (Michael, 2026-09-07): the mark on a confirmation that a
     request ARRIVED - "Received by the Royal Court". A solid disc in the
     protocol purple with a white glyph, the header-disc numbers. Never the
     seal: the seal belongs to a title holder; a receipt claims nothing. */
  --receipt-disc-size: 36px;
  --receipt-disc-glyph: 18px;
  --receipt-disc-fill: #B48AE0;
  --receipt-disc-ink: #FFFFFF;

  /* Create-event button (Michael, 2026-09-14). Grey until the event has what a
     guest needs - a name, a picked place and a description (date and time
     arrive filled in, so they count as set) - then signal green. Public and
     closed events look the same; only the words differ. Grey is never a dead
     button: pressing it takes the host to the first empty field, which
     flashes once in the page's text colour. The words never change. */
  --create-btn-idle-fill: #787878;
  --create-btn-idle-ink: #FFFFFF;
  --create-btn-ready-fill: #00BA77;
  --create-btn-ready-ink: #1A1207;
  --field-size: 16px;
  --field-font: 'Aeonik', system-ui, sans-serif;
  --field-gap: 16px;

  /* Floated label. Legend metrics must match these or the notch mis-sizes. */
  --field-lab-size: 11px;
  --field-lab-weight: 500;
  /* Tracking. An 11px uppercase label needs it - caps set at their natural
     spacing read as one block rather than as words - but it had no token, so
     every page picked its own. Counted across the surfaces: .1em on 38 of 49
     labels, with .03 / .04 / .05 / .06 / .07 / .14em making up the rest. This
     is that majority, named so the outliers can be seen as outliers.

     It belongs to the label, not to the notch, but the notch DEPENDS on it:
     the legend and the label must carry identical metrics or the gap cut in
     the border stops matching the text sitting in it. */
  --field-lab-track: .1em;
  /* The notch: how far the border breaks either side of the floated label.
     It was hardcoded (padding: 0 2px) on every legend span, so the gap could
     not be tuned or even tracked globally - which is why it drifts between
     pages. --field-lab-inset is the distance from the field's left edge to
     where the notch starts. */
  --field-lab-gap: 2px;
  /* inset MUST be gap + 10px. The legend is pulled back by calc(inset - gap),
     so the pair together decide where the notch sits AND how wide it is: change
     one alone and the gap goes asymmetric. At 4px/14px it measured 2px left and
     6px right — the notch was correctly sized but sitting 4px too far right, so
     the border ran close on one side of every floated label.
     2px/12px is the only pair that measures a true 2.00 / 2.00; verified across
     all 17 fields on me.html. */
  --field-lab-inset: 12px;
  /* Vertical nudge for the floated label, on top of the true centre (-50%) and
     the cap-height correction the label rule already carries. It was a hardcoded
     "+1px" in every rule, which sat the text visibly low in its own notch.
     -1px is what lands the cap-height ON the border line. Kept as a token because
     the optical centre depends on the label font and size, so a future type change
     may want a different fraction back. */
  --field-lab-nudge: -1px;

  /* Focus colour: what the border turns when you click INTO a field. This is a
     neutral #F0F0F0 everywhere - the same white the interface already uses for
     "this is the active thing". It is deliberately NOT a signal colour: green,
     red and gold are verdicts about the VALUE, and a field you have merely
     clicked into has no verdict yet. Reserving the signals for verdicts is what
     makes them mean something when they do appear. */
  --field-focus: #F0F0F0;

  /* Verdict border. Every state is a 1px line: rest, focus, valid and error all
     share one width, so a field NEVER changes size as its state changes - only its
     colour. The weight-as-signal idea was dropped once the resting border became a
     #2A2A2A hairline: green or red against that is already unmistakable, and
     spending weight on top made an accepted field shout as loudly as a broken one.
     Gold was the last hold-out; it is 1px too now. --field-border-verdict is gone
     with it, because nothing was left that wanted a second width. */
  --field-border: 1px;
  /* The RESTING border colour - a field at rest, before you touch it and before
     it carries any verdict. It had no token at all: every field fell back to the
     generic --border, so the one line every form shows on every page could not be
     set or tracked from here.
     It is a HAIRLINE, deliberately darker than --field-focus. The two were both
     #F0F0F0 while --field-border and --field-border-focus were both 1px, which made
     a focused field pixel-identical to a resting one - clicking into a field fed
     back nothing at all. Focus is now carried entirely by the colour change, and a
     field nobody has touched is the quietest thing on the page. */
  --field-border-colour: #2A2A2A;

  /* The field's FILL, in its two states.

     --field-fill        at rest: the field is its own surface, distinct from
                         the page behind it
     --field-fill-float  once the label has floated - on focus, or whenever
                         the field holds a value

     They differ because of where the label ends up. It rides UP onto the
     border line, so half of it hangs over the page and half over the field.
     While the fill is a different colour from the page, the label reads as a
     chip sitting on a filled box with the border running behind the text.
     Matching the page turns it into what it should be: a gap cut in the
     border, with the label sitting in the gap.

     The flip is keyed to the same two classes that float the label
     (.field--active / .field--filled), so the fill and the label can never
     disagree about which state the field is in.

     A surface that puts its form on a raised card points --field-fill-float
     at the CARD colour, not the page - the label has to match whatever is
     actually behind it. */
  --field-fill: #1E1E1E;
  --field-fill-float: #111111;
  /* Border width while the field is FOCUSED. The preview thickened to a
     hardcoded 1.5px while the real pages only changed colour and stayed at 1px,
     so the same click looked different depending on the page. One token now
     settles it - at 1px, because a fractional border does not exist on screen:
     Chrome floors it, so 1.5px painted exactly the same 1px as the resting state.
     Focus is carried by --field-focus (the colour); the weight stays put. */
  --field-border-focus: 1px;
  --field-error: #FF4D4D;

  /* THE VALIDATION MESSAGE - the line under a field that says what went wrong.
     It had no tokens, so every form invented its own: margin-top ran 7px / 8px /
     10px (and one used margin-bottom), size ran 12px / 12.5px, and the colour was
     sometimes var(--red) and sometimes a raw #FF4D4D. One standard now:
       gap   - distance from the field to the message
       size  - message text size
       lh    - line-height, so a message that wraps to two lines still reads
     The colour is not repeated here: a message inherits the verdict it belongs
     to (--field-error / --field-warn / --field-valid), which is what keeps the
     line and the border saying the same thing. */
  --field-msg-gap: 8px;
  --field-msg-size: 12px;
  --field-msg-lh: 1.4;
  /* Tracking, and it is 0 ON PURPOSE rather than for want of a decision. The
     label is uppercase and needs opening up; a validation message is a
     sentence in mixed case, and Aeonik is already spaced for that - adding
     tracking to a line someone reads under pressure slows it down. Named
     anyway so a surface that wants it has one place to say so, and so the
     value is a choice on the record instead of an absence. */
  --field-msg-track: 0;

  /* Signal colours and their border widths. The three verdicts a field can
     carry, each nameable on its own so a surface can tune one without
     dragging the other two with it:
       valid   - signal green, the "this is accepted" verdict
       error   - signal red, the "fix this" verdict
       warn    - gold, the "attention, not a failure" verdict (a pending
                 check, a soft limit) - it had no token at all before, so
                 gold could only be hardcoded per page
     All three are pinned to 1px - the same width as rest and focus - so a verdict is
     carried entirely by the colour and a field never changes size. */
  --field-valid: #00BA77;
  --field-warn: #C59972;
  --field-border-valid: 1px;
  --field-border-error: 1px;
  --field-border-warn: 1px;

  /* How long a field waits before it is allowed to say "wrong".

     A rejection is the one verdict that must not fire on the keystroke.
     "me@me.co" is a complete, rejectable address on the way to "me@me.com",
     and 8 digits is the wrong length on the way to 9 - reddening either
     mid-word accuses someone for a value they are still writing. So the
     field stays neutral until typing settles, and only then judges.

     Acceptance has no such delay: confirming what someone got right the
     instant they finish is never premature, so the valid verdict lands at
     once. The asymmetry is the point - be quick to agree, slow to accuse.

     Read from JS, not CSS - it is a timer, not a paint:
       const ms = parseInt(getComputedStyle(document.documentElement)
                    .getPropertyValue('--field-settle'), 10) || 900;

     Blur bypasses it: leaving a field IS settling, so the verdict lands
     immediately there rather than waiting out a pause already ended. */
  --field-settle: 900ms;

  /* PERSONAL EMAIL DOMAINS - the set a "Personal email" field accepts.

     Anything not on this list is treated as a work address and rejected, so
     the list is the whole rule: a consumer provider missing from it turns
     away an ordinary personal user. That is not hypothetical - gmx.at and
     gmx.ch were missing while gmx.de was present, so real Austrian and Swiss
     users of the SAME free provider were being told to use a personal
     address while holding one.

     It lives here rather than in a page because it is data, not markup, and
     because every surface with a sign-up form needs the same answer. It is
     changed in DESIGN-SYSTEM, in packages/tokens/templates/form-tokens.css;
     the design system page's Sign-up email writes the block to paste.

     Read from JS, not CSS - it is a list, not a paint:
       const raw = getComputedStyle(document.documentElement)
                     .getPropertyValue('--personal-domains');
       const set = new Set(raw.replace(/"/g, ' ').split(/\s+/).filter(Boolean));

     Written as adjacent quoted strings, which CSS concatenates: it keeps the
     families on their own lines, so a missing country variant is visible in
     the source the way it is in the settings UI. Order is grouping only; the
     parser sorts nothing and cares only about the whitespace.

     DISPOSABLE ADDRESSES ARE DELIBERATELY ABSENT. mailinator.com,
     guerrillamail.com, 10minutemail.com and trashmail.com were on this list
     and are not any more: a throwaway inbox is not a personal one, and
     accepting it lets a signup through that no one can be reached at. */
  --personal-domains:
    /* Google, Apple, Microsoft, Yahoo, AOL */
    "gmail.com googlemail.com "
    "icloud.com me.com mac.com "
    "outlook.com hotmail.com live.com msn.com "
    "yahoo.com yahoo.co.uk yahoo.fr yahoo.de yahoo.es yahoo.it "
    "aol.com "
    /* GMX and web.de run a domain per country - keep the family complete */
    "gmx.com gmx.net gmx.de gmx.at gmx.ch gmx.fr gmx.co.uk gmx.es "
    "web.de web.at t-online.de freenet.de "
    /* Privacy-first and independent mailboxes */
    "proton.me protonmail.com pm.me tutanota.com tutanota.de "
    "fastmail.com zoho.com mail.com "
    /* National ISPs and free providers - the default consumer mailbox in
       their market, so rejecting one turns away ordinary personal users */
    "orange.fr wanadoo.fr free.fr sfr.fr laposte.net "
    "libero.it virgilio.it tiscali.it alice.it "
    "seznam.cz centrum.cz wp.pl o2.pl onet.pl interia.pl "
    "sapo.pt telenet.be skynet.be ziggo.nl kpnmail.nl "
    "telia.com bahnhof.se online.no sol.dk bluewin.ch "
    /* Russia and China */
    "yandex.com yandex.ru mail.ru rambler.ru "
    "qq.com 163.com sina.com";

  /* THE TOGGLE. One switch, taken from the Dev mode control on me.html and
     measured off the live element rather than read from a spec. It had drifted
     into five sizes - 38x22, 40x23, 42x24, 44x26, 46x27 - across 25 rules in 22
     files, under four class names (.toggle .switch .sw .rid-switch), with knobs
     in both #fff and #F0F0F0. Nothing chose those numbers; they accumulated.
     The knob is --field-focus, the same white as the focus ring, the locked
     values and the field text. Pure #fff was the last thing in the interface
     brighter than everything around it. */
  /* 38x22 with a 16px knob (Michael, 2026-09-08) — the smaller of the two sizes
     that were in use, and now the only one. Inset stays 3px, so the knob is
     centred and the travel formula below still holds. */
  --switch-w: 38px;
  --switch-h: 22px;
  --switch-knob: 16px;
  --switch-inset: 3px;
  /* travel = w - knob - 2*inset, stated so a size change cannot forget it */
  --switch-travel: calc(var(--switch-w) - var(--switch-knob) - var(--switch-inset) * 2);
  /* THE SMALL STANDARD (Michael, 2026-09-08). A second, deliberate size — not
     drift. These switches sit INLINE against a field or a link row (a social
     link, the Date of birth share mark, Her Zone and His Zone, every Dev mode
     row) rather than standing alone in a card, and at the full size they
     overpowered the line they belong to. Two sizes, both written down; anything
     else is drift. */
  --switch-sm-w: 32px;
  --switch-sm-h: 18px;
  --switch-sm-knob: 14px;
  --switch-sm-inset: 2px;
  --switch-sm-travel: calc(var(--switch-sm-w) - var(--switch-sm-knob) - var(--switch-sm-inset) * 2);
  --switch-off: #3A3A3A;
  --switch-on: var(--field-valid);
  --switch-knob-colour: var(--field-focus);
  --switch-motion: .18s ease;
}

/* -- THE TOGGLE ------------------------------------------------------------
   Four class names for one control, because they already exist across 22 files
   and renaming markup on every page is a bigger, riskier change than teaching
   one rule the names it will meet. New work should use .switch.

   Knob structures in the wild: most pages draw it with ::after; .ds-loc-toggle
   uses a child .knob. Both are covered.

   A FIFTH draws the thumb as an <i> child (.ftsw, the audit list; .lmsw, the
   light-mode switch - same shape, same drift). It also
   animated `left` rather than transform and tinted its track rgba(0,186,119,.16)
   with a GREEN thumb - dark-green-on-green, the one switch in the app you could
   not read at a glance. It is covered here so it inherits the solid fill and the
   #F0F0F0 thumb; its `left` is pinned to the inset so transform does the travel.

   A THIRD structure wraps a real <input type=checkbox>: the <label> is the box,
   a child .knob is the TRACK, and .knob::before is the thumb. That is the most
   accessible of the three - it is a real checkbox, so it is focusable and
   announced without role/aria bookkeeping - so it is supported rather than
   converted. It is matched by :has(> input), which cannot collide with the
   .ds-loc-toggle pattern where .knob IS the thumb.

   Deliberately NOT covered:
     .swatch, and .sw at 26-30px  - colour swatches, square, not switches
     .alg-share .rid-switch       - a scoped-down 34x20 variant that is meant to
                                    be smaller than the control it sits inside
     .look-toggle                 - NOT a switch at all: a text button with a
                                    chevron and aria-expanded that discloses the
                                    Simon settings panel. The name misleads; it
                                    was in this rule briefly and painted a white
                                    knob over the word "Settings". */
.rid-switch, .devpro-sw, .ds-loc-toggle,
.switch:not(.switch-btn), .toggle, .sw:not(.swatch), .ftsw, .lmsw {
  width: var(--switch-w); height: var(--switch-h);
  border-radius: 999px; border: none; padding: 0;
  position: relative; flex-shrink: 0; cursor: pointer;
  /* appearance:none is not cosmetic here. Some of these switches are <button>
     (.lmsw, .ftsw) and some are <span> or <div>. A button keeps appearance:auto
     by default, and the native control paints its OWN background over any author
     colour - so the ON state applied, matched, and won the cascade while the
     track stayed grey. Every other toggle worked because it was not a button,
     which is exactly what made this look like a CSS bug rather than a widget
     one: the rule was right, the element was rendering itself. */
  -webkit-appearance: none; appearance: none;
  background: var(--switch-off);
  transition: background var(--switch-motion);
}
.rid-switch::after, .devpro-sw::after,
.switch:not(.switch-btn)::after, .toggle::after, .sw:not(.swatch)::after,
.ds-loc-toggle .knob, .ftsw > i, .lmsw > i {
  content: ''; position: absolute;
  top: var(--switch-inset); left: var(--switch-inset);
  width: var(--switch-knob); height: var(--switch-knob);
  border-radius: 50%;
  background: var(--switch-knob-colour);
  transition: transform var(--switch-motion);
}
/* ON. Both spellings, because the app sets one or the other depending on whether
   the control is a <button role="switch"> or a plain element with a class. */
.rid-switch.on, .devpro-sw.on,
.switch:not(.switch-btn).on, .toggle.on, .sw:not(.swatch).on, .ftsw.on,
[aria-checked="true"] > .devpro-sw,
[aria-checked="true"].rid-switch, [aria-checked="true"].toggle,
[aria-checked="true"].switch:not(.switch-btn), [aria-checked="true"].ds-loc-toggle, [aria-checked="true"].lmsw {
  background: var(--switch-on);
}
.rid-switch.on::after, .devpro-sw.on::after,
.switch:not(.switch-btn).on::after, .toggle.on::after, .sw:not(.swatch).on::after,
.ftsw.on > i,
[aria-checked="true"] > .devpro-sw::after,
[aria-checked="true"].rid-switch::after, [aria-checked="true"].toggle::after,
[aria-checked="true"].switch:not(.switch-btn)::after,
[aria-checked="true"].ds-loc-toggle .knob, [aria-checked="true"].lmsw > i {
  transform: translateX(var(--switch-travel));
}
/* -- Checkbox-backed variant: <label class=switch><input><span class=knob> --
   The label itself carries no paint; .knob is the track and ::before the thumb. */
.switch:has(> input[type="checkbox"]) {
  background: none; border: none; padding: 0;
  width: var(--switch-w); height: var(--switch-h);
  display: inline-block; position: relative; flex-shrink: 0; cursor: pointer;
}
.switch:has(> input[type="checkbox"]) > input { position: absolute; opacity: 0; width: 0; height: 0; }
/* KILL THE INHERITED THUMB. .switch also matches the class-driven rule above,
   whose ::after paints a thumb on the element itself. In this variant the thumb
   is .knob::before, so BOTH were painted: two 22px circles, one parked at the
   left inset and one translated right, reading as a single white pill spanning
   the whole track. The variant owns its thumb; the legacy one must not exist. */
.switch:has(> input[type="checkbox"])::after { content: none; }
.switch > input[type="checkbox"] + .knob {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--switch-off);
  transition: background var(--switch-motion);
}
.switch > input[type="checkbox"] + .knob::before {
  content: ""; position: absolute;
  top: var(--switch-inset); left: var(--switch-inset);
  width: var(--switch-knob); height: var(--switch-knob);
  border-radius: 50%;
  background: var(--switch-knob-colour);
  transition: transform var(--switch-motion);
}
.switch > input[type="checkbox"]:checked + .knob { background: var(--switch-on); }
.switch > input[type="checkbox"]:checked + .knob::before { transform: translateX(var(--switch-travel)); }
.switch > input[type="checkbox"]:focus-visible + .knob {
  outline: 2px solid var(--switch-on); outline-offset: 2px;
}

/* SIGNAL VARIANTS. The on-colour carries meaning in three places, so it is the
   one thing a page may still set: amber says the app is in a non-production
   state, and the Her Zone / His Zone accents say WHICH entrance a staff toggle
   opens. Geometry is still the standard's; only the fill differs. */
.rid-switch.devmode.on, .devmode .rid-switch.on { background: #FFB800; }
/* the same amber for the checkbox-backed variant, where .knob is the track —
   dev mode reads amber wherever it appears, not green */
.switch.devmode > input[type="checkbox"]:checked + .knob { background: #FFB800; }
.switch.on:not(.men) { background: var(--switch-on); }
.switch.women.on, .switch.on.women { background: #C77DA6; }
.switch.men.on, .switch.on.men { background: #6E9BD6; }

/* The marketing surfaces used to focus gold (--field-focus: #C59972) while the
   app focused green. Focus is now one neutral #F0F0F0 EVERYWHERE, so that
   override is gone on purpose: a brand accent on focus made the same gesture
   mean two different things depending on which site you were on, and it spent
   gold - now the "attention" verdict (--field-warn) - on a state that carries
   no verdict at all. Brand still shows through the CTA and the accents; it no
   longer shows through the caret. */

/* -- LIGHT MODE ------------------------------------------------------------
   Only the two fill tokens flip. Everything above is either a measurement
   (sizes, widths, timings) or a signal colour that keeps its brand value in
   both themes - green stays green on white.

   Values match the [data-theme="light"] blocks the pages already carry, so a
   field paints the same whether the colour reaches it from here or from the
   page's own override. Without this block the fills would stay dark on a
   light page, which is what makes them safe to hardcode nowhere else. */
:root[data-theme="light"] {
  --field-fill: #F0F0EE;
  --field-fill-float: #FFFFFF;
}

/* MENU PILLS - the map header's control row (Upcoming events / Moments /
   Kids and the world switch). Decided in Design -> Menu pills, option
   A "Quiet": 36px tall, medium weight, a breath of tracking at 13px. The
   row is centred over the map; map.html reads these, nothing hard-codes. */
:root {
  --pill-height: 36px;
  --pill-size: 13px;
  --pill-weight: 500;
  --pill-track: 0.01em;
  --pill-pad-x: 15px;
  --pill-gap: 12px;
}

/* TYPE SCALE - the ladder every surface sets its words on.

   Three of these seven are not chosen here at all: --t-foot, --t-body and
   --t-head ARE the design system's roles and read whatever the editor publishes
   onto :root as --type-{foot,body,head}-size. The four between them are stated
   as offsets from the anchor they sit beside, so moving one role in the editor
   carries the whole ladder rather than leaving four orphan numbers behind.

   The fallbacks are the SCOVR.APP/HTML row of the design system, so a page that
   links this file and has no reader still lands on the canon; a page that does
   read scovr.typeRoles.v1 follows the editor live.

   It lives here rather than in a page because two pages had already solved the
   same problem two different ways: chats.html grew a seven-step ladder of
   its own while media.html consumed the three roles directly and kept
   twenty-six literal sizes, nineteen of them on values that were rungs of that
   ladder, written as numbers. One answer, in the file the design system already owns
   and twenty pages already link.

   A glyph fitted to a fixed box is NOT on this ladder: the initials in a 26px
   disc, the letters in a file badge, the sublabel under a keypad digit. Those
   are sized to the thing that holds them, and a scale meant for words has no
   business setting them. They stay in px, and the page that keeps them says so.

   WEIGHT. The design system names two for the app surface, 600 and 400. --w-medium
   is the third step the pages actually use, the label that is more than
   running copy and less than a heading; the editor has no row for it, so it is
   stated here as a constant and can be seen to be one.

   TRACKING. An 11px uppercase label needs it or the caps set at their natural
   spacing read as one block rather than as words. Same number, and the same
   reasoning, as --field-lab-track above. */
:root {
  --t-foot:  var(--type-foot-size, 12px);
  --t-micro: calc(var(--t-foot) - 1px);
  --t-small: calc(var(--t-foot) + 1px);
  --t-body:  var(--type-body-size, 15px);
  --t-large: calc(var(--t-body) + 2px);
  --t-title: calc(var(--t-body) + 5px);
  --t-head:  var(--type-head-size, 26px);

  --t-label-track: 0.1em;

  --w-body:   var(--type-body-weight, 400);
  --w-medium: 500;
  --w-head:   var(--type-head-weight, 600);

  /* COLOUR, the fourth thing the design system states about a role and the one the
     pages were not reading. It publishes --type-{role}-colour beside the size,
     the weight and the tracking, and the readers took three of the four: a
     colour changed in the editor moved nothing, while a size changed in the
     same row moved the whole app. The three literals below are that editor's
     SCOVR.APP/HTML row, which is what the pages had hard-coded anyway, so
     nothing moves today and the row is live from now on.

     Named for the ROLE, not for the job a page gives it. A page still calls
     its own --fg and --muted whatever it calls them and points them here; what
     it must not do is state the hex a second time. */
  --c-head: var(--type-head-colour, #F0F0F0);
  --c-body: var(--type-body-colour, #A8A8A8);
  --c-foot: var(--type-foot-colour, #707070);
}

/* ===== THE CLOSE (X): top right of every dialog, sheet, pop-up and overlay =====
   Michael, 2026-09-19: "make sure that future developments will have the
   matching (X) button top right." One object everywhere: a 36px disc, an 18px
   SVG X at line weight 2.4 (2026-09-27; 2 in the 28px row size) on
   currentColor, no ring, 6% white lifting to 10% on hover, the glyph
   --muted rising to --fg, never a green hover (green means verified).

   It sits top right. By default its centre is 32px down, the middle of the
   64px title band the app's windows use; a window with a different band sets
   only `top` to its title line's centre and keeps the translateY(-50%).
     .scovr-close--inline  in a flex header row instead (margin-left: auto)
     .scovr-close--row     the 28px disc with a 14px X, for a row's remove
   tools/check-close-buttons.mjs holds every close to this at build time.

   <button type="button" class="scovr-close" aria-label="Close">
     <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"
          stroke-linecap="round" aria-hidden="true"><path d="M18 6 6 18M6 6l12 12"/></svg>
   </button>
   The weight comes from the rule below (--round-btn-stroke-header), so an
   older close whose markup still says 2 draws at 2.4 all the same. */
.scovr-close {
  position: absolute; top: 32px; right: 14px; transform: translateY(-50%); z-index: 2;
  width: var(--round-btn-size-header, 36px); height: var(--round-btn-size-header, 36px);
  border-radius: 50%; border: none; padding: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--round-btn-fill, rgba(255,255,255,0.06)); color: var(--muted, #8A8A8A);
  font: inherit; appearance: none;
  transition: background .15s ease, color .15s ease;
}
.scovr-close:hover { background: var(--round-btn-fill-hover, rgba(255,255,255,0.10)); color: var(--fg, #F0F0F0); }
.scovr-close:focus-visible { outline: 2px solid var(--green, #00BA77); outline-offset: 2px; }
.scovr-close svg { width: var(--round-btn-glyph-header, 18px); height: var(--round-btn-glyph-header, 18px); display: block; stroke-width: var(--round-btn-stroke-header, 2.4); }
.scovr-close--inline { position: static; transform: none; margin-left: auto; }
.scovr-close--row { width: var(--round-btn-size, 28px); height: var(--round-btn-size, 28px); }
.scovr-close--row svg { width: var(--round-btn-glyph, 14px); height: var(--round-btn-glyph, 14px); stroke-width: var(--round-btn-stroke, 2); }

/* ═══════════════════════════════════════════════════════════════════════
   AUTOFILL NEVER CHANGES A FIELD (Michael, 2026-09-30: "Autofilled fields
   now keep the same colour as the other fields, including Postal code.
   Make the default for all developments in all repos.")

   When the browser or a password manager fills a field, it paints its own
   colours onto it: Chrome a blue-tinted ground and its own text colour,
   1Password its highlight. They arrive as !important, from the browser's
   style sheet or an extension's, which no page rule can outrank. A running
   TRANSITION can, because transitions sit above every origin in the
   cascade. So while a field is filled, its ground, text colour and text
   fill are held where they were: step-end over 99999999s (about three
   years). step-end keeps the starting value exactly. Any other easing
   creeps: 9999s with the default easing turned Michael's filled billing
   fields faintly blue within minutes.

   !important because a page's own `transition` on its inputs would
   otherwise replace this one at the moment the fill lands. One selector per
   rule, because a browser that does not know one of them drops a whole
   list. The full standard, with the traps, is
   docs/handovers/HANDOVER-autofill-colour.md in SCOVR-APP; this file is
   copied into the other repos by tools/sync-form-tokens.mjs.
   ═══════════════════════════════════════════════════════════════════════ */
:where(input, textarea, select):-webkit-autofill {
  transition: background-color 99999999s step-end 0s, color 99999999s step-end 0s,
              -webkit-text-fill-color 99999999s step-end 0s !important;
}
:where(input, textarea, select):autofill {
  transition: background-color 99999999s step-end 0s, color 99999999s step-end 0s,
              -webkit-text-fill-color 99999999s step-end 0s !important;
}
/* 1Password marks what it filled with this attribute and paints it */
:where(input, textarea, select)[data-com-onepassword-filled] {
  transition: background-color 99999999s step-end 0s, color 99999999s step-end 0s,
              -webkit-text-fill-color 99999999s step-end 0s !important;
}
