/* =====================================================================
   THE FORGE — THE PALETTE (2026-08-24 theme sweep)

   ONE file, loaded FIRST by every window (`index.html` -> board + badge,
   `settings.html` -> Settings; the loss-moment takeover and the ceremony
   both live inside `index.html`'s document). Nothing else in this app may
   declare a colour token: `overlay.css`, `settings.css` and `ceremony.css`
   each used to carry their own private `:root`/`.ceremony` palette block —
   three parallel, silently-diverging definitions of the same handful of
   colours (the 2026-08-23 Settings retheme had to be done twice for exactly
   that reason, and `electron/settingsWindow.ts`'s pre-paint literal went
   stale in between). Those blocks now live here.

   THE PRECEDENT this file encodes is Jake's own, set live on 2026-08-23
   ("can we make our settings menu be our app colors, not purple and
   yellow" / "we are still using the purple background in settings though,
   dont we typically use black?"): the Forge's chrome is a TRUE near-black
   ground with a CYAN brand accent — the same `--empire-black` and
   `--accent` the Empire HQ web app and propfirmempires.com already use.
   The purple/gold era's `--forge-border: rgba(147,112,219,.45)` and
   `--forge-gold: #d9b45b` are RETIRED; see their tombstones below.

   WHAT IS NOT CHROME AND IS NOT SWEPT:
     - The ceremony's art palette (`--cer-*`). Jake-tuned, pixel-locked;
       ported here VERBATIM, byte for byte, purely so the whole palette is
       readable in one place. Do not retune from this file.
     - The category identity colours (Honor green / Breach dull-yellow /
       Sabotage-vulnerable red). Ruled 2026-08-23 and unchanged.

   ALPHA GRAMMAR — every tinted surface in this app uses one of three steps
   against its own hue, and the steps mean things:
       wash   0.12  an idle, identity-tinted surface
       line   0.45  that surface's own border
       flood  0.28  the moment a press COMMITS (a real state change, which
                    is why it must be visibly more than the idle wash)
   `-line-strong` (0.55) is the utility-button variant of `line`; `-line`
   at 0.50 is the Settings window's divider weight (see `--forge-accent-line`).
   ===================================================================== */

/* =====================================================================
   FONT SYNC (2026-08-31, owner ruling "should we get the fonts to sync
   with command" -> yes) — Archivo (everything visible) + IBM Plex Mono
   (ledger/record vocabulary), the house split docs/DESIGN-TOKENS.md §1.1
   documents across all three surfaces. Before this the Forge fell through
   to Segoe UI/system-ui + generic monospace everywhere (this file's own
   window list at the top: index.html -> board + badge, settings.html,
   sandbox.html).

   TWO FILES ONLY, bundled locally under `fonts/` (i.e.
   `src/renderer/fonts/`, sitting beside this file) — copied verbatim from
   `Prop Firm Empires Site\assets\fonts\` (the SITE's own self-hosted
   copies, the DESIGN-TOKENS.md-cited "origin language" for these values).
   `scripts/copy-static-assets.js` copies that folder into
   `dist/renderer/fonts/` on every build (same mechanism that already
   mirrors this file's own `html`/`css` siblings there); electron-builder's
   `files:` dist-glob allowlist (`electron-builder.yml`) then ships
   whatever landed in `dist/` with no config change of its own — no new
   entry needed there, this app has no `package.json` "build" block
   (electron-builder's config lives entirely in `electron-builder.yml`).
   `url()` below is relative to THIS file's own runtime location
   (`dist/renderer/tokens.css`, loaded by every window via `file://` —
   `window.ts`/`settingsWindow.ts`/`sandboxWindow.ts`'s own `loadFile`
   calls), so `fonts/<name>.woff2` resolves against `dist/renderer/fonts/`
   in both a dev run and a packaged install without divergence.

   LATIN SUBSET ONLY, deliberately — family/style/weight/font-stretch/
   unicode-range below are copied byte-for-byte from the SITE's own
   `assets/fonts/fonts.css` latin blocks (not invented here); the
   site's separate latin-ext/vietnamese/cyrillic files are NOT bundled —
   this app's own UI text is English-only chrome, the same reasoning
   `public/fonts/README.md` already gives for the OAuth callback page's
   own single-subset Archivo file. A character outside this unicode-range
   simply falls through to the fallback stack below, not to tofu.

   font-display: swap on both, so a flash of the fallback font on first
   paint beats a blocked paint — and the fallback stacks are the ACTUAL
   pre-swap/404 fonts, not a formality: `--forge-font-sans`'s tail is
   exactly what every window rendered before this sync, so a font that
   fails to load (a bad build, a missing file) silently regresses to
   "looked like this yesterday," never to tofu or a broken layout. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block; /* LIVE 7 (Sat 2026-10-31): no fallback paint — the face is preloaded in every head, so the wait is short; was swap */
  src: url("fonts/archivo-normal-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block; /* LIVE 7 (Sat 2026-10-31): no fallback paint — the face is preloaded in every head, so the wait is short; was swap */
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* r272 (hunt fixes 1 / B1; replaces LIVE 7's four per-sheet copies of `.stage { visibility: hidden }`): THE PAINT GATE'S HOLD. The whole page is
   invisible until paint-gate.js has measured it AFTER the one body face loaded (it writes html[data-z]); together with the head's render-blocking
   expect link the first frame with content has the words, in place, once. Opacity, not visibility: a child with its own `visibility: visible`
   (.learn-step.is-current) painted through the old hold. Layout is untouched (the page is measured while held). The safety: 1.5 s after the first
   render the page shows regardless, so a script that never runs cannot leave it blank. */
html:not([data-z]) body { opacity: 0; animation: pfe-paint-safety 0s 1.5s forwards; }
@keyframes pfe-paint-safety { to { opacity: 1; } }

:root {
  /* -------------------------------------------------------------------
     THE TWO FAMILIES — house split (docs/DESIGN-TOKENS.md §1.1): Archivo
     for everything visible (`overlay.css`/`settings.css`/`sandbox.css`'s
     `html, body` rules all resolve here now); IBM Plex Mono ONLY for
     ledger/record vocabulary — apply it surface-by-surface, never as a
     second blanket rule (see each consumer's own doc comment for why that
     surface qualifies: `settings.css`'s `.activity-row-time`/
     `.login-username`, `sandbox.css`'s `.sbx-export textarea`).
     ------------------------------------------------------------------- */
  --forge-font-sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --forge-font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* -------------------------------------------------------------------
     THE FORGE-WIDE FONT-SIZE SETTING (item 126, fully specced 2026-09-01,
     stepped presets ruled 2026-09-02) — one multiplier, stamped live by
     `renderer/board.ts`'s `paint()` (board + badge windows) and
     `renderer/settings.ts`'s `draw()` (the Settings window's own text)
     straight off `ForgeConfig.fontSizePreset`
     (small=0.9 / medium=1 / large=1.15, `shared/config.ts`'s
     `FONT_SIZE_SCALES`). Defaults to 1 here so a window that has not yet
     received its first config-driven stamp (a brief instant before the very
     first paint) renders at today's exact sizing rather than an unstyled
     0/NaN.

     WHERE THIS IS DELIBERATELY NOT READ (the owner's own "text scales,
     structure doesn't" boundary): `overlay.css`'s `button.interactive`
     family (every board/closing/emergency-close press target) and
     `ceremony.css` (the badge/crest, which has its OWN independent
     zoom-based size system, `BADGE_SIZE_SPECS`) never reference this
     variable at all — see `shared/config.ts`'s `FONT_SIZE_SCALES` doc
     comment for the full mechanism and why. Every OTHER descriptive-text
     rule in `overlay.css`/`settings.css` opts in via
     `font-size: calc(<literal>px * var(--forge-font-scale, 1))`.
     ------------------------------------------------------------------- */
  --forge-font-scale: 1;

  /* -------------------------------------------------------------------
     THE WHOLE-BOARD SIZE SETTING (item 195, owner ruling 2026-09-03 —
     "the whole board changes sizes... same sizing" as the badge, "but they
     can be changed separately"). A SECOND, INDEPENDENT multiplier from
     `--forge-font-scale` above — stamped live by `renderer/board.ts`'s
     `paint()`, BOARD-WINDOW-ONLY, straight off `ForgeConfig.boardSizePreset`
     (small=0.75 / medium=1 / large=1.3 / xlarge=1.6 / huge=1.9 — the SAME
     scale numbers `BADGE_SIZE_SPECS` uses, `shared/config.ts`'s
     `BOARD_SIZE_SCALES`). Defaults to 1 here for the same "no unstyled
     0/NaN before the first paint" reason `--forge-font-scale` does.

     CONSUMED AS A CSS `zoom` ON `#board-root` (see `overlay.css`'s own rule,
     scoped to `body[data-window="board"]`), not as a per-rule `calc()`
     multiplier like `--forge-font-scale` — this scales the WHOLE board
     surface (buttons/press-targets included) as one unit rather than
     opting individual rules in one at a time. `ceremony.css` never
     references this variable — the badge has its own independent
     `BADGE_SIZE_SPECS`-driven zoom mechanism, entirely unaffected by this
     one.
     ------------------------------------------------------------------- */
  --forge-board-scale: 1;

  /* -------------------------------------------------------------------
     THE HINT LINE (lane 678, 2026-10-05) — the board's own instructions
     line ("2-CLICK FOR URGE · RIGHT-HOLD FOR COMMIT", `overlay.css`'s
     `.board-legend`) and the MISFIRE card's last line ("CLICK TO DISMISS",
     `misfireCard.css`'s `.misfire-card-dismiss`) are ONE style: the owner
     chose "board-hint caps" for the card, and the Lead ruled the board's
     real line is the contract. The numbers live here, once; both rules
     read them (size × `--forge-font-scale`, uppercase, no weight or colour
     of their own — each inherits its page's Archivo 400 in `--forge-text`).
     The values are the board legend's own, unchanged by this move.
     ------------------------------------------------------------------- */
  --forge-hint-font-size: 9px;
  --forge-hint-letter-spacing: 0.12em;
  --forge-hint-opacity: 0.45;

  /* -------------------------------------------------------------------
     GROUNDS — true near-black, untinted. Not invented here: `--forge-black`
     is `--empire-black: 10 11 14` from `Documents\Empire HQ\app\globals.css`
     (the web app's own darkest surface) and `--forge-surface` is that same
     file's `--empire-panel: 20 22 27`. The ceremony independently arrived
     at both values as `--cer-black`/`--cer-panel` — they are aliased, not
     duplicated, at the bottom of this file.
     ------------------------------------------------------------------- */
  --forge-black: #0a0b0e;
  /* ITEM 155 (2026-09-02, "adopts the ENTIRE probe treatment") — the board
     button's own idle fill. Owner-probed in
     `Desktop/Desk/Probes/category-collapse-probe.html`'s `.btn` rule
     (`background: rgba(10,12,16,.8)`) — that literal is `--forge-black`'s
     own rgb channels (10,11,14 vs the probe's 10,12,16: the same near-black,
     not a second one) at the probe's 0.8 alpha, so this token reuses the
     app's real near-black rather than inventing an adjacent one. REPLACES
     each family's own washed idle background (`--forge-good-wash` etc.,
     0.12 alpha on the family hue) — category identity at rest now lives in
     the BORDER (full-saturation family colour, not the dimmed `-line`
     token) and the text, not the fill. The `-wash` tokens themselves are
     UNRETIRED: `.leave-button`/`.closing-option` and every other accent
     surface on this floor still uses its own family's wash for ITS OWN
     idle fill — only the three board-button family rules
     (`.board-button.good`/`.conduct`/`.sabotage`, overlay.css) point here
     now. */
  --forge-board-button-bg: rgba(10, 11, 14, 0.8);
  /* LANE 680 — THE BOARD BUTTON'S GEOMETRY, once (item 155's probe numbers,
     unchanged: `overlay.css`'s `button.interactive.board-button` and
     `.leave-button` read these). The update card's two buttons wear the same
     (the owner: "make it all consistent"), without a hand-kept copy. */
  --forge-board-button-font-size: 13px;
  --forge-board-button-padding: 6px 13px;
  --forge-board-button-radius: 7px;
  --forge-surface: #14161b;
  --forge-surface-raised: #1b1d23;
  /* An OPAQUE window's ground (Settings). Kept as its own role name rather
     than every rule reaching for `--forge-black` directly, because
     `electron/settingsWindow.ts` has to restate this exact value as the
     window's pre-paint `backgroundColor` and `settingsWindow.test.ts`
     follows the token chain from here to prove the two agree. */
  --forge-panel: var(--forge-black);
  /* A TRANSPARENT, click-through window's one panel (the loss-moment
     takeover) — the same ground at 92%, so the charts still ghost through
     it. `--forge-panel` would be wrong here: the veil is the point. */
  --forge-panel-veiled: rgba(10, 11, 14, 0.92);

  /* Relative white tints — elevation steps that compose on whatever ground
     they sit on rather than hardcoding a second near-black. Composited on
     `--forge-black` these land at ~rgb(20,21,24), i.e. `--forge-surface`. */
  --forge-tint-weak: rgba(255, 255, 255, 0.04);
  --forge-tint: rgba(255, 255, 255, 0.05);
  --forge-tint-mid: rgba(255, 255, 255, 0.06);
  --forge-tint-strong: rgba(255, 255, 255, 0.08);

  /* -------------------------------------------------------------------
     TEXT. One colour, shared verbatim by every window already — 15.6:1
     against `--forge-black`, comfortably AAA.

     THE LOWER TIERS ARE NOT TOKENS, DELIBERATELY. This app expresses
     “quieter than body text” as an `opacity` on the individual rule, and it
     uses a dozen different steps to do it (.45 the legend, .55 a column
     header, .6 a section title, .65 a hint, .7 a closing title, .75 a
     rejection line, .85 a balance cell …). Those are per-element taste
     calls Jake tuned live, not a scale — collapsing them into three named
     tiers would be a REDESIGN wearing a refactor's clothes, and this sweep
     is not that. Left exactly as they are.
     ------------------------------------------------------------------- */
  --forge-text: #e8e3f2;

  /* -------------------------------------------------------------------
     THE BRAND ACCENT — cyan. Sourced from the real brand, not invented:
     propfirmempires.com's own `--accent` (Jake, 2026-08-17: "the blue we
     are looking for is in the app... or on the landing page"). It is ONE
     accent shared by every window: Settings' headings/active tab/focus,
     LEAVE THE CHARTS and its closing menu, the R:R capture channel, the
     ceremony's own `--cer-cyan`. 10.9:1 against `--forge-black`.
     ------------------------------------------------------------------- */
  --forge-accent: #22d3ee;
  --forge-accent-soft: #67e8f9;
  --forge-accent-deep: #0e7490;
  --forge-accent-wash: rgba(34, 211, 238, 0.12);
  /* 0.50 — the Settings window's structural divider/border weight. Non-text
     UI-boundary contrast against `--forge-black`: ~3.4:1, clearing WCAG
     1.4.11's 3:1 minimum for UI component boundaries (computed against the
     alpha-composited colour, not eyeballed). */
  --forge-accent-line: rgba(34, 211, 238, 0.5);
  /* 0.55 — the overlay's utility-button border weight (LEAVE THE CHARTS,
     the closing options). Deliberately kept as its own token rather than
     flattened into `--forge-accent-line`: `board.e2e.test.ts`'s specificity
     regression guard pins this exact computed string. */
  --forge-accent-line-strong: rgba(34, 211, 238, 0.55);
  /* The generic press flood (`button.interactive.pressed`). Same 0.22 the
     retired gold flood used, so press weight is unchanged — only the hue. */
  --forge-accent-flood: rgba(34, 211, 238, 0.22);
  /* THE structural border — every window's controls and panels. No popup
     window draws an outline at all (lane 680, "all boarderless": the update
     card, the MISFIRE card, THE LOSS CARD and the LEAVE THE CHARTS sheet);
     their buttons, fields and the loss card's ✕ box still use this token.
     A ROLE name, not a hue name,
     which is why it survives the sweep while `--forge-gold` does not: what
     changed is what it points AT. Settings has resolved to this value since
     2026-08-23; the overlay windows joined it on 2026-08-24, off the
     purple era's rgba(147, 112, 219, 0.45). */
  --forge-border: var(--forge-accent-line);
  /* TOMBSTONES (lane 680, the owner Mon 2026-10-05: "can we make the forge
     popup not have the cyan boarder ... with windows it gives a double
     boarder"; "all boarderless"): `--forge-card-line` (#175e6b, board 589's
     1 px card outline) and `--forge-card-window-inset` (2px, the ring that
     kept that line clear of Windows' grey edge on an OPAQUE window) are
     RETIRED with `electron/cardWindowInset.ts`. Every popup window is
     transparent and exactly its opaque panel now. A rule that still read
     either name would NOT fail loudly — an undefined `var()` resolves
     silently (the property falls back to its initial value) — so the guard
     is a test: `electron/popupSurface.test.ts` requires that no source,
     test or harness under forge/src reads either name. */

  /* -------------------------------------------------------------------
     THE LOSS CARD'S OWN GOLD (item 536, Jake's live taste-pass ruling,
     2026-09-17 ~16:20-20:45) — the ONE gold in the app's chrome: the loss
     card's hero Honored Stops count, nowhere else. Same hex the retired
     `--forge-gold` carried (see that tombstone below), but this is a NEW,
     single-use token, not a resurrection: `--forge-gold` painted THREE
     things chrome-wide (`button.interactive.pressed`, the old takeover's
     title, its stat values) and all three are `--forge-accent` cyan now —
     that tombstone stands, untouched, and nothing else on the app recolours
     because of this token. This one paints exactly one number, on exactly
     one card, because Jake asked for gold there and only there.
     ------------------------------------------------------------------- */
  --forge-empire-gold: #d9b45b;

  /* -------------------------------------------------------------------
     CATEGORY IDENTITY — the War Room's own palette (Jake, 2026-08-17 and
     the 2026-08-23 family-driven-idle ruling). A board button's idle colour
     says WHICH CATEGORY it is, never which tier a press will land, and
     never anything about door state. UNCHANGED BY THIS SWEEP — these are
     rulings, not chrome.
     ------------------------------------------------------------------- */
  /* Each of the four below was picked and verified against real WCAG
     contrast math (not eyeballed) at the time of Jake's 2026-08-17 ruling —
     "good = green, urges = yellow, breaches = orange, sabotage = red"; see
     that session's log for the exact ratios / hue separations computed. */
  --forge-good: #48c97e;
  --forge-good-wash: rgba(72, 201, 126, 0.12);
  --forge-good-line: rgba(72, 201, 126, 0.45);
  --forge-good-flood: rgba(72, 201, 126, 0.28);

  /* The PRESS-flash yellow (an urge, in the moment it commits).
     Deliberately NOT the retired `--forge-gold`: a near-identical hue would
     have read as the R:R capture button's own colour. */
  --forge-urge: #e0c23f;
  --forge-urge-flood: rgba(224, 194, 63, 0.28);

  /* BREACH ORANGE — the third step of the house tier ladder, and as of PRESS
     DOCTRINE v2.2 (item 271) it is finally PAINTED. Ruled 2026-08-17 (good
     GREEN · urges YELLOW · breaches ORANGE · sabotage RED) and then, for two
     weeks, defined here and read by nothing: every committed press, breach
     and sabotage alike, wore `--forge-vulnerable` red, so the board said the
     two heaviest things an operator can do are the same thing. The 2026-08-23
     tombstone that used to stand here recorded the LAST rule to drop it
     (`.board-button.good .state-vulnerable`, removed because board-button
     colour is CATEGORY identity, not door-state presentation) — that removal
     stands; what changed is that the token now has a live consumer again, on
     the verdict axis rather than the identity one.

     ONE HEAT AXIS ACROSS BOTH APPS: Command's `--empire-tier-breach`
     (item 271's Command half, merged 2026-09-05) is this exact hex, taken
     from this file — "the reference orange", in its own comment. Retune one
     and the other must follow, or the ladder disagrees across the house. */
  --forge-breach: #e8923f;

  /* Bad/conduct IDLE — a deliberately DESATURATED relative of
     `--forge-urge` (the press-flash yellow), dimmer at rest than the moment
     a press actually lands, so the flash reads as a real state change
     rather than "the same colour, slightly darker" (2026-08-23 ruling,
     Jake: "we leave bad / sabotage dull yellow for default"). Distinct from
     `--forge-breach` too: idle is family-driven now, not tier-driven. */
  --forge-dull-yellow: #a89552;
  --forge-dull-yellow-wash: rgba(168, 149, 82, 0.12);
  --forge-dull-yellow-line: rgba(168, 149, 82, 0.45);

  /* Sabotage / "the Empire is exposed" / every committed press — ONE red,
     never a second one. It is the Drawdown red from the web app's palette,
     and it is DELIBERATELY not the door's red (#c2453f): a shut door and an
     exposed Empire are different facts and must never read as the same
     signal. The Sabotage tier reuses it on purpose (Jake, 2026-08-17 live
     taste-pass) — sabotage is an attack on the protection layer itself, so
     tying it to the same red as "the Empire is vulnerable" reads as
     meaningful, not arbitrary. */
  --forge-vulnerable: #e05260;
  --forge-vulnerable-wash: rgba(224, 82, 96, 0.12);
  --forge-vulnerable-line: rgba(224, 82, 96, 0.45);
  --forge-vulnerable-line-strong: rgba(224, 82, 96, 0.55);
  --forge-vulnerable-flood: rgba(224, 82, 96, 0.28);

  /* THE VERDICT GREEN — the deep, saturated green a WIN flashes at the moment
     it commits (PRESS DOCTRINE v2 rule 4, owner ruling 2026-09-01: "the pure
     verdict colour. No white."). Probe-verified by the owner in
     `Desktop/Desk/Probes/double-click-nudge-probe.html`, whose `flashWin`
     keyframe is this exact value.

     WHY NOT `--forge-good` (#48c97e): that is the IDLE identity of the Honor
     family — a light, friendly green a button WEARS. A verdict has to read as
     a distinct event landing ON a button that is already green, and a flash
     one shade off its own resting colour reads as a repaint, not a
     confirmation. This is darker AND more saturated, so it arrives rather
     than brightens. The doctrine forbids the cheap alternative (a white or
     brightness blast) explicitly — brightness says "something happened", a
     saturated hue says WHAT happened.

     THE RED HALF OF THE PAIR IS `--forge-vulnerable` ABOVE, unchanged and
     deliberately not given a "verdict" twin: red already means exactly one
     thing in this app, and a SABOTAGE confession is that thing.

     ── v2.2 (item 271): THE CONFESSION HALF SPLIT IN TWO ────────────────
     A committed BREACH now lands in `--forge-breach` orange and gets the
     third `--forge-verdict-breach-*` triple below; a committed SABOTAGE
     keeps the red `--forge-verdict-loss-*` triple, unchanged. `loss` keeps
     its name rather than becoming `sabotage`: it is the WIN/LOSS pair's own
     half, named on the verdict axis like its twin above, and the tier that
     lands on it is stated by the rule that reads it — not by the token. */
  --forge-verdict-win: #16a34a;
  --forge-verdict-win-ring: rgba(22, 163, 74, 0.95);
  /* ── ONE STEP LOUDER (item 93 follow-up, 2026-09-03) ─────────────────────
     Field report on the built item-93/124 flash: "the flash a touch more
     obvious". Glow +0.08, wash +0.06 on both verdicts — the ring (already
     0.95, effectively opaque) and every duration/timing-function are
     untouched, so this is a loudness step, not a new effect. Still
     `taste-pass: proposed`: the number to retune first if the flash reads
     too loud or too shy on Jake's real screen once he installs this build. */
  --forge-verdict-win-glow: rgba(22, 163, 74, 0.68);
  --forge-verdict-win-wash: rgba(22, 163, 74, 0.34);
  --forge-verdict-loss-ring: rgba(224, 82, 96, 0.95);
  --forge-verdict-loss-glow: rgba(224, 82, 96, 0.66);
  --forge-verdict-loss-wash: rgba(224, 82, 96, 0.3);
  /* THE BREACH TRIPLE (v2.2, item 271) — `--forge-breach` #e8923f = rgb
     232 146 63, at the SAME three alphas the loss triple carries. Alphas
     copied, not re-chosen: the two confessions must arrive with identical
     weight and differ only in hue, or the orange would read as a quieter
     event rather than a different one, and "breach is less serious" is not
     what the ladder says. Retuning the loudness means moving BOTH triples,
     exactly as the 2026-09-03 step did. */
  --forge-verdict-breach-ring: rgba(232, 146, 63, 0.95);
  --forge-verdict-breach-glow: rgba(232, 146, 63, 0.66);
  --forge-verdict-breach-wash: rgba(232, 146, 63, 0.3);

  /* -------------------------------------------------------------------
     STATE — Settings-window feedback only. Distinct from category identity
     on purpose: `--forge-danger` is "this operation FAILED", which is not
     the same fact as `--forge-vulnerable`'s "a rule was broken".
     ------------------------------------------------------------------- */
  --forge-danger: #f0837c;
  --forge-danger-wash: rgba(194, 69, 63, 0.18);
  --forge-danger-flood: rgba(194, 69, 63, 0.22);
  --forge-danger-line: rgba(194, 69, 63, 0.55);
  --forge-ok: #8fdba3;
  --forge-ok-wash: rgba(120, 200, 140, 0.16);

  /* FAILURE READS THE HOUSE VULNERABLE RED — item 459, owner-ruled
     2026-09-10, REVERSING this file's own former "FAILURE IS VIOLET, NOT
     RED" doctrine (kept below as a tombstone, not restated as guidance).
     The owner's ruling, verbatim: "purple is decorated colors" — royal/
     violet belongs to DECORATIONS only (the ceremony, the crest, the
     founding, Command's asset-tier accents), never to a state that tells
     the operator something needs attention. Every failure surface in this
     app — a genuine sync/test failure (`--forge-danger`'s family) AND the
     ordinary, non-rule-breaking misses the retired doctrine used to carve
     out for violet (a declined OAuth consent, a bounced duplicate connect,
     a sweep that will retry on its own) — now reads `--forge-vulnerable`
     above, the house's one red. `settings.css`'s Connections tab "Recent
     activity" list (FORGE "RECENT ACTIVITY", ruled 2026-08-29) is the
     consumer this moved: its failure-shaped entries (sync error, reauth
     required, connect bounced, Fortify push failed, auth failed/penalty, a
     lost goodbye) now share `.activity-row-failure`'s colour with
     `--forge-vulnerable`, never `--forge-violet`. `broker/
     oauthCallbackPage.ts`'s declined-consent page reverted the same way in
     the same rider — see that file's own top-of-file doc comment.

     THE TOMBSTONE — what this token used to mean (2026-08-29 → 2026-09-10):
     "red is reserved for a RULE BREAK; an ordinary miss reads calm, not
     alarming." The owner's 2026-09-10 ruling draws the line differently —
     violet is a DECORATION hue, not a calmer failure register — so that
     reasoning no longer applies to any failure surface, here or elsewhere.

     `--forge-violet`/`--forge-violet-wash` themselves are NOT deleted: the
     hex still exists to BE Command's `--empire-violet` (ROYAL `#7c3aed`,
     item 275/276's .28 follow-through, off the retired lavender `#a78bfa`)
     for whatever legitimate DECORATIVE use needs the house violet next —
     `violetToken.test.ts` still pins the restatement. It currently has no
     consumer in this app; that is expected, not a bug — a tombstone kept
     for a future legitimate (decorative, non-failure) use, same convention
     `--forge-breach` briefly sat in before item 271 gave it one. */
  --forge-violet: #7c3aed;
  --forge-violet-wash: rgba(124, 58, 237, 0.14);

  /* -------------------------------------------------------------------
     THE CEREMONY'S ART PALETTE (`--cer-*`) — VERBATIM. Moved here from
     `ceremony.css`'s `.ceremony` block unchanged, value for value. It was
     scoped to `.ceremony` only to avoid colliding with `overlay.css`'s own
     `:root`; with every palette in ONE file there is nothing left to
     collide with, and the `--cer-*`/`--forge-*` namespaces stay disjoint.
     Every consumer is a `.ceremony` descendant, so :root scope resolves
     identically.

     DO NOT RETUNE THESE. The crest/rings/badge gold is Jake-tuned and
     pixel-locked (`ringCrisp.e2e.test.ts` and the ceremony suites read
     these computed values). Where a value is EXACTLY a brand token it is
     aliased rather than restated — that is a de-duplication, not a change:
     every alias below resolves to the identical bytes it did before.
     ------------------------------------------------------------------- */
  --cer-black: var(--forge-black);            /* was #0a0b0e */
  --cer-panel: var(--forge-surface);          /* was #14161b */
  --cer-card: var(--forge-surface-raised);    /* was #1b1d23 */
  --cer-border: #333740;                      /* art-only; no brand equivalent */
  --cer-gold: #e8c98a;
  --cer-gold-hot: #ffe6ad;
  --cer-gold-dim: #8a7a58;
  --cer-cyan: var(--forge-accent);            /* was #22d3ee */
  --cer-cyan-soft: var(--forge-accent-soft);  /* was #67e8f9 */
  --cer-cyan-deep: var(--forge-accent-deep);  /* was #0e7490 */
  --cer-white-hot: #f0feff;                   /* art-only */
  --cer-ink: #8d92ad;                         /* art-only */

  /* -------------------------------------------------------------------
     TOMBSTONES — retired by this sweep. Named, not defined: a rule that
     references either of these now fails loudly (an invalid `var()` with no
     fallback) instead of quietly repainting the retired theme.

       --forge-gold  (was #d9b45b)   the purple/gold era's accent. Painted
                                    `button.interactive.pressed`, the
                                    loss-moment title and its stat values.
                                    All three are chrome, all three are now
                                    `--forge-accent`. NOT related to
                                    `--cer-gold*` above, which is art and
                                    stays exactly as it is.
       --forge-capture              #22d3ee. Was a second name for the
                                    accent, from before the accent was the
                                    app's; folded into `--forge-accent`.
     ------------------------------------------------------------------- */

  /* =====================================================================
     THE CEREMONY'S TIMING TABLE (ceremony timing sandbox build,
     2026-08-24 session, dispatched by Fable) — every animation duration,
     delay, easing and stagger offset the ceremony/badge system (`ceremony.css`,
     with a handful of JS-side counterparts in `board.ts`'s
     `ceremonyTiming.ts`) uses, consolidated into ONE named table so the new
     dev-only sandbox window (`electron/sandboxWindow.ts`) has something to
     put sliders on.

     VALUE-FAITHFUL: every token below equals, byte for byte, the literal it
     replaced in `ceremony.css` — `ceremony.css`'s own doc comments (the
     "prototype line N" citations, the taste-pass flags) still describe
     where each number came from and are NOT duplicated here. This table
     only names them. `ceremonyTimingTokens.test.ts` pins every value against
     that history so a future edit here cannot silently drift from it.

     NOT reordered, NOT retuned, NOT merged beyond what `ceremony.css`'s own
     comments already treat as the same beat (e.g. the six 400ms "pop"
     animations that its own comments call "the same shape, duration and
     easing... so the two genuinely read as one beat" share ONE token,
     `--cer-t-pop`, on purpose).
     ===================================================================== */

  /* ---- easings — reusable keyword/curve aliases, not per-rule literals ---- */
  --cer-ease-linear: linear;
  --cer-ease-in: ease-in;
  --cer-ease-out: ease-out;
  --cer-ease-in-out: ease-in-out;
  /* the aura/halo/days-cycle "breathe" curve pair — rise then fall, same two
     curves reused across all three `*-cycle` animations. */
  --cer-ease-bloom-rise: cubic-bezier(0.2, 0.4, 0.5, 1);
  --cer-ease-bloom-fall: cubic-bezier(0.5, 0, 0.8, 0.6);

  /* ---- rings — spin (uncaptured, faster/chaotic) ---- */
  --cer-t-ring-spin-fast: 2s;      /* ring-3 / ring-6 */
  --cer-t-ring-spin-mid: 2.8s;     /* ring-1 / ring-4 */
  --cer-t-ring-spin-slow: 4s;      /* ring-2 / ring-5 */

  /* ---- rings — spin (captured, slow/governed) ---- */
  --cer-t-ring-spin-captured-a: 163.6s;  /* ring-1 / ring-4 */
  --cer-t-ring-spin-captured-b: 240s;    /* ring-2 / ring-5 */
  --cer-t-ring-spin-captured-c: 400s;    /* ring-3 / ring-6 */

  /* ---- rings — stroke/fill color transition ---- */
  --cer-t-ring-color: 0.6s;

  /* ---- the shared "pop" beat — ring entrance/exit, socket glow, glyph
     detail, badge-orb entrance/exit; all 400ms by design (see banner). ---- */
  --cer-t-pop: 400ms;

  /* ---- stagger steps — 80ms apart, ring-6 (innermost) fires first ---- */
  --cer-t-stagger-0: 0ms;
  --cer-t-stagger-1: 80ms;
  --cer-t-stagger-2: 160ms;
  --cer-t-stagger-3: 240ms;
  --cer-t-stagger-4: 320ms;
  --cer-t-stagger-5: 400ms;

  /* ---- badge pressure tiers ---- */
  --cer-t-badge-glow: 0.55s;   /* idle filter/box-shadow transition (tiers 1-3) */
  --cer-t-breathe: 2.4s;       /* tier-2 breathe */
  --cer-t-strain: 1.9s;        /* tier-3 strain/flicker/swell (5 rules share this) */

  /* ---- settled "bloom" — badge filter/box-shadow transition into settled ---- */
  --cer-t-bloom-filter: 1.2s;
  --cer-t-bloom-shadow: 1.4s;

  /* ---- settled ambient cycle — aura / halo / days-glow, phase-locked ---- */
  --cer-t-cycle: 5s;
  --cer-t-cycle-delay: -4.4s;

  /* ---- settled radiate waves ---- */
  --cer-t-radiate: 15s;
  --cer-t-radiate-delay-1: 0.6s;
  --cer-t-radiate-delay-2: 5.6s;
  --cer-t-radiate-delay-3: 10.6s;

  /* ---- crest/days/label tier-color transitions (4 rules share this) ---- */
  --cer-t-tier-color: 0.9s;

  /* ---- glyph sockets ---- */
  --cer-t-socket-fill: 0.45s;
  --cer-t-glyph-reveal: 0.26s;
  --cer-t-glyph-reveal-delay: 0.18s;

  /* ---- item 539 — the break-seal ✕'s hover/hold caption fade. Matches
     overlay.css's own `.board-unlock-caption` transition duration exactly
     (a plain 0.15s literal there — `overlay.css` carries no matching
     timing-token consolidation), so the board and badge halves of the same
     caption fade identically. ---- */
  --cer-t-caption-fade: 0.15s;

  /* ---- lane 690 — the launch ceremony's three-mark trail (probe 59 round
     3's own values, sealed): one mark lit at a time, a 1.2s cycle, each mark
     0.4s after the last, a hard step (no fade between marks). ---- */
  --cer-t-trail-cycle: 1.2s;
  --cer-t-trail-step-1: 0.4s;
  --cer-t-trail-step-2: 0.8s;
  --cer-ease-step: steps(1, end);
}
