/* zyx — alternate styles, picked from the Design tab in the lower left (or D).

   A style is a set of token overrides on :root[data-style="…"] — colour, type,
   --round (corner radii), --shadow — plus the few rules tokens cannot carry.
   Layout and behaviour never change. "Reading room", the default, is
   styles.css alone.

   Every style has a light and a dark palette, except Watch floor and
   Almanac, which are always dark. The selector set

       .label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend

   is the small-caption voice of the app; each style restates it. */


/* =====================================================================
   Precision — software as an instrument. Cool neutral zinc, translucent
   hairline borders, specular keycap controls, tight neo-grotesk from
   masthead to prose, and quiet sentence-case labels instead of tracked
   small caps.
   ===================================================================== */

:root[data-style="precision"] {
  --paper: #f9f9fb;
  --surface: #ffffff;
  --sunk: #f1f2f5;
  --ink: #111318;
  --ink-2: #4f5460;
  --ink-3: #868c98;
  --line: rgba(15, 19, 28, .07);
  --line-2: rgba(15, 19, 28, .13);
  --accent: #3657e8;
  --accent-soft: rgba(54, 87, 232, .09);
  --on-accent: #ffffff;
  --pos: #0c7d56;
  --pos-soft: rgba(12, 125, 86, .10);
  --mid: #5b616e;
  --mid-soft: rgba(91, 97, 110, .10);
  --neg: #d13438;
  --neg-soft: rgba(209, 52, 56, .09);
  --add: rgba(12, 125, 86, .13);
  --del: #d13438;
  --shadow: 0 1px 2px rgba(15, 19, 28, .04), 0 6px 20px -6px rgba(15, 19, 28, .07);
  --round: .6;
  --serif: var(--sans);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="precision"] {
    --paper: #090a0d;
    --surface: #111318;
    --sunk: #181b22;
    --ink: #edeef2;
    --ink-2: #9ba0ad;
    --ink-3: #646976;
    --line: rgba(255, 255, 255, .065);
    --line-2: rgba(255, 255, 255, .12);
    --accent: #7391ff;
    --accent-soft: rgba(115, 145, 255, .14);
    --on-accent: #090a0d;
    --pos: #3dd69d;
    --pos-soft: rgba(61, 214, 157, .12);
    --mid: #949aa7;
    --mid-soft: rgba(148, 154, 167, .12);
    --neg: #f26d6d;
    --neg-soft: rgba(242, 109, 109, .13);
    --add: rgba(61, 214, 157, .16);
    --del: #f26d6d;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -8px rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}

[data-style="precision"] body { font-size: 13.75px; line-height: 1.5; font-variant-numeric: tabular-nums; }
[data-style="precision"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 12px/1.35 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink-3);
}
[data-style="precision"] .wordmark { font: 600 16px var(--sans); letter-spacing: -.03em; }
[data-style="precision"] .tagline { font-size: 12.5px; }
[data-style="precision"] .home h1 { font: 600 clamp(24px, 3vw, 29px)/1.18 var(--sans); letter-spacing: -.028em; margin-top: 48px; }
[data-style="precision"] .lede { font-size: 14.25px; max-width: 44em; }
[data-style="precision"] :is(.stage-head h2, .tl-step.open .tl-title, .verdict h2, .modal-head h2) {
  font-family: var(--sans); font-weight: 600; letter-spacing: -.022em;
}
[data-style="precision"] .tl-step.open .tl-title { font-size: 17.5px; }
[data-style="precision"] .verdict h2 { font-size: 20px; }

/* tactile prompt surface & controls */
[data-style="precision"] .composer { border-color: var(--line-2); }
[data-style="precision"] .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
[data-style="precision"] .composer textarea { font: 400 15.5px/1.55 var(--sans); letter-spacing: -.008em; padding: 16px 18px 8px; }
[data-style="precision"] .composer textarea::placeholder { font-style: normal; color: var(--ink-3); }
[data-style="precision"] .btn { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; letter-spacing: -.005em; }
[data-style="precision"] .btn.icon-only { width: 32px; padding: 0; }
[data-style="precision"] .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .18); }
[data-style="precision"] .btn.quiet { box-shadow: 0 1px 1px rgba(15, 19, 28, .03); }
[data-style="precision"] .segmented button { height: 26px; font-size: 12.5px; font-weight: 500; }
[data-style="precision"] :focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--accent); }
@media (prefers-color-scheme: dark) {
  [data-style="precision"] .btn.quiet { background: var(--sunk); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045); }
}

/* clean neo-grotesk claims & reports, serif kept only for math */
[data-style="precision"] .claim-text { font: 500 18.5px/1.44 var(--sans); letter-spacing: -.018em; }
[data-style="precision"] h1.claim-text { font-size: 20px; }
[data-style="precision"] .rail .claim-text { font-size: 14.5px; font-weight: 450; letter-spacing: -.01em; line-height: 1.5; }
[data-style="precision"] :is(.reads-as .claim-text, .claim-edit) { font-size: 15.5px; font-weight: 450; letter-spacing: -.01em; }
[data-style="precision"] .history-claim { font: 500 14px/1.42 var(--sans); letter-spacing: -.008em; }
[data-style="precision"] .prose { font: 400 15px/1.68 var(--sans); letter-spacing: -.004em; }
[data-style="precision"] .prose h2 { font-size: 16.5px; font-weight: 600; letter-spacing: -.016em; }
[data-style="precision"] .prose h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; }
[data-style="precision"] .math { font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif; }
[data-style="precision"] mark.asked-about { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* tabular readouts with crisp inner hairline */
[data-style="precision"] .verdict-score {
  width: 58px; height: 58px; font: 600 24px var(--mono); letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
}
[data-style="precision"] :is(.score-badge, .score-chip):is(.pos, .neg, .mid) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
}


/* =====================================================================
   Atelier — contemporary editorial & brand design studio. Gallery stone,
   international signal vermilion, sharp top-ruled architectural frames
   contrasted against pill controls, tightly-tracked grotesk structure,
   and Newsreader reserved strictly for long-form prose.
   ===================================================================== */

:root[data-style="atelier"] {
  --paper: #f5f5f3;
  --surface: #ffffff;
  --sunk: #ebebea;
  --ink: #0f0f0f;
  --ink-2: #4b4b49;
  --ink-3: #83837f;
  --line: #e3e3e0;
  --line-2: #c9c9c5;
  --accent: #e5391a;
  --accent-soft: #fcebe7;
  --on-accent: #ffffff;
  --pos: #0c6e47;
  --pos-soft: #e2f2eb;
  --mid: #5f5f5b;
  --mid-soft: #ebebea;
  --neg: #c9251d;
  --neg-soft: #fbe6e5;
  --add: #dcf0e6;
  --del: #c9251d;
  --shadow: none;
  --round: .2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="atelier"] {
    --paper: #0d0d0d;
    --surface: #151515;
    --sunk: #1f1f1f;
    --ink: #f2f2f0;
    --ink-2: #a6a6a1;
    --ink-3: #6c6c68;
    --line: #242424;
    --line-2: #363634;
    --accent: #ff5938;
    --accent-soft: rgba(255, 89, 56, .15);
    --on-accent: #0d0d0d;
    --pos: #4cc994;
    --pos-soft: rgba(76, 201, 148, .13);
    --mid: #999994;
    --mid-soft: #222222;
    --neg: #f4665e;
    --neg-soft: rgba(244, 102, 94, .14);
    --add: rgba(76, 201, 148, .17);
    --del: #f4665e;
    color-scheme: dark;
  }
}

[data-style="atelier"] ::selection { background: var(--accent); color: var(--on-accent); }
[data-style="atelier"] .masthead { border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
[data-style="atelier"] .wordmark { font: 700 20px var(--sans); letter-spacing: -.045em; }
[data-style="atelier"] .tagline { font: 400 12.5px var(--sans); color: var(--ink-2); }
[data-style="atelier"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 12px/1.35 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink-3);
}
[data-style="atelier"] .home h1 { font: 600 clamp(30px, 4vw, 40px)/1.04 var(--sans); letter-spacing: -.038em; margin: 52px 0 12px; }
[data-style="atelier"] .lede { font-size: 15.5px; line-height: 1.5; letter-spacing: -.008em; }
[data-style="atelier"] :is(.stage-head h2, .tl-step.open .tl-title, .verdict h2, .modal-head h2) {
  font-family: var(--sans); font-weight: 600; letter-spacing: -.026em;
}
[data-style="atelier"] .verdict h2 { font-size: 23px; }

/* grotesk for claims & UI chrome; Newsreader kept strictly for long-form prose */
[data-style="atelier"] .composer textarea { font: 400 18px/1.48 var(--sans); letter-spacing: -.015em; }
[data-style="atelier"] .composer textarea::placeholder { font-style: normal; color: var(--ink-3); }
[data-style="atelier"] :is(.claim-text, .reviewed-wording, .claim-edit) {
  font-family: var(--sans); font-weight: 500; letter-spacing: -.022em; line-height: 1.36;
}
[data-style="atelier"] h1.claim-text { font-size: 24px; }
[data-style="atelier"] .rail .claim-text { font-size: 16px; letter-spacing: -.015em; line-height: 1.42; }
[data-style="atelier"] .reads-as .claim-text { font-size: 17.5px; letter-spacing: -.016em; }
[data-style="atelier"] .history-claim { font: 500 15.5px/1.38 var(--sans); letter-spacing: -.012em; }
[data-style="atelier"] .prose { font: 400 18px/1.65 var(--serif); }
[data-style="atelier"] .prose :is(h2, h3, h4, h5) { font-weight: 600; letter-spacing: -.02em; }
[data-style="atelier"] .prose h2 { padding-top: 14px; border-top: 1px solid var(--line); }

/* sharp top-ruled architectural frames + pill interactive controls */
[data-style="atelier"] :is(.composer, .tl-step, .card, .verdict) {
  border: 1px solid var(--line); border-top: 2px solid var(--ink);
}
[data-style="atelier"] .composer:focus-within { border-color: var(--line-2); border-top-color: var(--accent); }
[data-style="atelier"] .verdict.pos { border-top-color: var(--pos); }
[data-style="atelier"] .verdict.neg { border-top-color: var(--neg); }
[data-style="atelier"] .btn { border-radius: 999px; padding: 0 16px; font-size: 13.5px; font-weight: 500; letter-spacing: -.008em; }
[data-style="atelier"] .btn.icon-only { padding: 0; }
[data-style="atelier"] .btn.primary { background: var(--ink); color: var(--surface); transition: background .14s, color .14s, opacity .12s; }
[data-style="atelier"] .btn.primary:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); opacity: 1; }
[data-style="atelier"] :is(.segmented, .segmented button, .cite, .score-badge, .score-chip) { border-radius: 999px; }
[data-style="atelier"] .cite { padding: 0 6px; }
[data-style="atelier"] .outline li.here button { border-left-color: var(--accent); }
[data-style="atelier"] mark.asked-about { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }

/* typographic display numeral for the verdict */
[data-style="atelier"] .verdict:is(.pos, .neg, .mid) .verdict-score {
  background: none; width: auto; min-width: 56px; height: auto; border-radius: 0;
  font: 600 44px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; justify-content: flex-start;
}
[data-style="atelier"] :is(.score-badge, .score-chip) { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }


/* =====================================================================
   Monograph — a printed page. Serif throughout, hairline rules,
   no boxes, no shadows; colour kept for the verdict and the links.
   ===================================================================== */

:root[data-style="monograph"] {
  --paper: #fffff8;
  --surface: #fffff8;
  --sunk: #f3f1e4;
  --ink: #111111;
  --ink-2: #47463f;
  --ink-3: #85827a;
  --line: #e7e4d4;
  --line-2: #cdc9b4;
  --accent: #1e4d7a;
  --accent-soft: #e9eef3;
  --on-accent: #fffff8;
  --pos: #2b5d41;
  --pos-soft: #e7efe3;
  --mid: #6a675d;
  --mid-soft: #efede1;
  --neg: #93321d;
  --neg-soft: #f6e8df;
  --add: #e3eedb;
  --del: #93321d;
  --shadow: none;
  --round: 0;
  --sans: var(--serif);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="monograph"] {
    --paper: #161613;
    --surface: #161613;
    --sunk: #1f1f1b;
    --ink: #eae7dc;
    --ink-2: #b3afa2;
    --ink-3: #7f7b70;
    --line: #2a2a25;
    --line-2: #3d3c35;
    --accent: #8fb3d9;
    --accent-soft: #1c2733;
    --on-accent: #161613;
    --pos: #7fc29b;
    --pos-soft: #1b2a21;
    --mid: #a5a194;
    --mid-soft: #25241f;
    --neg: #e0896b;
    --neg-soft: #33201a;
    --add: #1f3326;
    --del: #e0896b;
    color-scheme: dark;
  }
}

[data-style="monograph"] body { font-size: 15.5px; }
[data-style="monograph"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: italic 400 15px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2);
}
[data-style="monograph"] .settings .field label { font: italic 400 14px var(--serif); }
[data-style="monograph"] .wordmark { font-style: italic; font-weight: 400; font-size: 24px; }
[data-style="monograph"] .tagline { font-style: italic; font-size: 14px; }
[data-style="monograph"] .home h1 { font-size: 36px; font-weight: 400; letter-spacing: -.01em; }
[data-style="monograph"] :is(.stage-head h2, .verdict h2) { font-weight: 400; }

/* boxes become ruled sections */
[data-style="monograph"] :is(.card, .tl-step, .verdict) {
  background: none; border: 0; border-top: 1px solid var(--ink); padding-left: 0; padding-right: 0;
}
[data-style="monograph"] .sharpen > .settings { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
[data-style="monograph"] .reviewers > ol { background: none; border: 0; border-top: 1px solid var(--ink); }
[data-style="monograph"] .reviewer-row:hover { background: var(--sunk); }
[data-style="monograph"] :is(.reads-as, .thinking-body) { background: none; }
[data-style="monograph"] .asserts li { background: none; border: 1px solid var(--line-2); font-style: italic; }

/* segmented controls read as a row of words, the chosen one underlined */
[data-style="monograph"] .segmented { background: none; padding: 0; gap: 16px; }
[data-style="monograph"] .segmented button { padding: 0 1px; min-width: 0; border-bottom: 1px solid transparent; color: var(--ink-3); }
[data-style="monograph"] .segmented button.on { background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--ink); }

/* the verdict: a large numeral, not a tile */
[data-style="monograph"] .verdict { border-top-width: 2px; border-bottom: 1px solid var(--line-2); padding-top: 24px; padding-bottom: 24px; }
[data-style="monograph"] .verdict:is(.pos, .neg, .mid) .verdict-score {
  background: none; width: auto; min-width: 64px; height: auto; font-size: 60px; font-weight: 400; justify-content: flex-start;
}
[data-style="monograph"] .score-badge:is(.pos, .neg, .mid, .working, .idle, .failed) { background: none; font: 400 20px var(--serif); }

/* citations as superscript numerals */
[data-style="monograph"] .cite {
  background: none; color: var(--accent); min-width: 0; height: auto; padding: 0 1px; margin: 0;
  font: 500 10px/1 var(--mono); vertical-align: super;
}
[data-style="monograph"] .cite:is(:hover, :focus-visible) { background: none; color: var(--accent); text-decoration: underline; }
[data-style="monograph"] .src-number { background: none; color: var(--ink-3); padding: 0; text-align: left; }
[data-style="monograph"] .history a:hover { background: none; }
[data-style="monograph"] .history a:hover .history-claim { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }


/* =====================================================================
   Directive — a staff memorandum. Blue-black on cool white, navy for
   action, monospaced captions, a ruled masthead; the verdict carries
   its tone as a margin bar.
   ===================================================================== */

:root[data-style="directive"] {
  --paper: #f3f4f2;
  --surface: #ffffff;
  --sunk: #eceee9;
  --ink: #101820;
  --ink-2: #3d4753;
  --ink-3: #6e7883;
  --line: #dde0e3;
  --line-2: #bfc5cc;
  --accent: #1d3b6a;
  --accent-soft: #e5eaf2;
  --on-accent: #ffffff;
  --pos: #23683f;
  --pos-soft: #e2efe6;
  --mid: #59636e;
  --mid-soft: #e8eaec;
  --neg: #a4261c;
  --neg-soft: #f6e3e0;
  --add: #dcefe2;
  --del: #a4261c;
  --shadow: none;
  --round: .3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="directive"] {
    --paper: #0c1118;
    --surface: #121923;
    --sunk: #18212d;
    --ink: #e3e8ee;
    --ink-2: #a7b1bd;
    --ink-3: #707c89;
    --line: #1f2a36;
    --line-2: #2e3b4a;
    --accent: #8fb0e8;
    --accent-soft: #1a2638;
    --on-accent: #0c1118;
    --pos: #67c08f;
    --pos-soft: #15291f;
    --mid: #95a0ac;
    --mid-soft: #1c2530;
    --neg: #ef7f70;
    --neg-soft: #36191a;
    --add: #173023;
    --del: #ef7f70;
    color-scheme: dark;
  }
}

[data-style="directive"] body { border-top: 3px solid var(--accent); }
[data-style="directive"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
[data-style="directive"] .masthead { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
[data-style="directive"] .wordmark { font: 500 15px var(--mono); letter-spacing: .32em; text-transform: uppercase; }
[data-style="directive"] .tagline { font: 400 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
[data-style="directive"] :is(.home h1, .stage-head h2, .verdict h2, .modal-head h2) {
  font-family: var(--sans); font-weight: 650; letter-spacing: -.015em;
}
[data-style="directive"] .home h1 { font-size: 28px; }
[data-style="directive"] :is(.card, .tl-step, .verdict, .reviewers > ol, .composer) { border-color: var(--line-2); }
[data-style="directive"] .btn.primary { background: var(--accent); color: var(--on-accent); }
[data-style="directive"] :is(.score-badge, .score-chip, .reviewer-id, .src-number) { font-family: var(--mono); }

[data-style="directive"] .verdict { border-left: 4px solid var(--mid); }
[data-style="directive"] .verdict.pos { border-left-color: var(--pos); }
[data-style="directive"] .verdict.neg { border-left-color: var(--neg); }
[data-style="directive"] .verdict-score { font: 500 30px var(--mono); letter-spacing: -.04em; }

/* report headings as numbered-memo captions */
[data-style="directive"] .prose :is(h2, h3, h4, h5) {
  font: 500 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
[data-style="directive"] .prose h2 { padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }


/* =====================================================================
   Field manual — the Swiss grid in olive drab. Grotesk throughout,
   black rules, tight heavy headings, verdicts as solid blocks.
   ===================================================================== */

:root[data-style="field"] {
  --paper: #efeee6;
  --surface: #f7f6f0;
  --sunk: #e5e4d9;
  --ink: #15160f;
  --ink-2: #44463a;
  --ink-3: #777a6a;
  --line: #d4d3c4;
  --line-2: #b5b4a2;
  --accent: #4a5a1f;
  --accent-soft: #e2e6d0;
  --on-accent: #f7f6f0;
  --pos: #2d6a4f;
  --pos-soft: #dcebe2;
  --mid: #6b6c5e;
  --mid-soft: #e3e2d6;
  --neg: #b23a1d;
  --neg-soft: #f3e0d8;
  --add: #d9e8d6;
  --del: #b23a1d;
  --shadow: none;
  --round: 0;
  --serif: var(--sans);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="field"] {
    --paper: #12130e;
    --surface: #1a1b15;
    --sunk: #22231c;
    --ink: #e8e7dc;
    --ink-2: #b1b0a1;
    --ink-3: #7d7d6f;
    --line: #2a2b22;
    --line-2: #3c3d31;
    --accent: #b4c27a;
    --accent-soft: #262b18;
    --on-accent: #12130e;
    --pos: #7cc49d;
    --pos-soft: #17291f;
    --mid: #a3a394;
    --mid-soft: #25261e;
    --neg: #ec8466;
    --neg-soft: #351d15;
    --add: #1b3125;
    --del: #ec8466;
    color-scheme: dark;
  }
}

[data-style="field"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
[data-style="field"] .masthead { border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
[data-style="field"] .wordmark { font: 700 24px var(--sans); letter-spacing: -.04em; }
[data-style="field"] :is(.home h1, .stage-head h2, .verdict h2, .modal-head h2) { font-weight: 700; letter-spacing: -.025em; }
[data-style="field"] .home h1 { font-size: 36px; line-height: 1.08; }
[data-style="field"] .claim-text { font-weight: 500; letter-spacing: -.012em; }
[data-style="field"] .composer textarea::placeholder { font-style: normal; }
[data-style="field"] .prose { font-size: 16px; line-height: 1.6; }
[data-style="field"] .prose :is(h2, h3) { font-weight: 700; letter-spacing: -.01em; }
[data-style="field"] :is(.card, .tl-step, .verdict, .reviewers > ol, .composer) { border: 1px solid var(--ink); }
[data-style="field"] .btn.primary { background: var(--accent); color: var(--on-accent); }

/* verdicts and scores as solid blocks of their tone */
[data-style="field"] .verdict.pos .verdict-score, [data-style="field"] .score-badge.pos { background: var(--pos); color: var(--surface); }
[data-style="field"] .verdict.neg .verdict-score, [data-style="field"] .score-badge.neg { background: var(--neg); color: var(--surface); }
[data-style="field"] .verdict.mid .verdict-score, [data-style="field"] .score-badge.mid { background: var(--mid); color: var(--surface); }
[data-style="field"] .verdict-score { font: 700 34px var(--sans); letter-spacing: -.04em; }
[data-style="field"] .score-badge { font-weight: 700; }


/* =====================================================================
   Watch floor — an operations console. Graphite, one amber signal
   colour, monospaced captions and figures, a faint plotting grid.
   Always dark.
   ===================================================================== */

:root[data-style="watch"] {
  --paper: #0a0d10;
  --surface: #10151a;
  --sunk: #161c22;
  --ink: #dde3e8;
  --ink-2: #9ba6b1;
  --ink-3: #66717c;
  --line: #1c232a;
  --line-2: #2a333c;
  --accent: #e3a83b;
  --accent-soft: #2a2213;
  --on-accent: #0a0d10;
  --pos: #52c08e;
  --pos-soft: #12281f;
  --mid: #8e99a4;
  --mid-soft: #1a2027;
  --neg: #ef6a4f;
  --neg-soft: #301712;
  --add: #153025;
  --del: #ef6a4f;
  --shadow: none;
  --round: .35;
  --serif: var(--sans);
  color-scheme: dark;
}

[data-style="watch"] body {
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}
[data-style="watch"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
[data-style="watch"] .wordmark { font: 500 15px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
[data-style="watch"] .tagline { font: 400 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
[data-style="watch"] :is(.home h1, .stage-head h2, .verdict h2, .modal-head h2) { font-weight: 600; letter-spacing: -.015em; }
[data-style="watch"] .claim-text { font-weight: 500; }
[data-style="watch"] .composer textarea::placeholder { font-style: normal; }
[data-style="watch"] .prose { font-size: 15.5px; line-height: 1.65; }
[data-style="watch"] :is(.card, .tl-step, .verdict, .reviewers > ol, .composer) { border-color: var(--line-2); }
[data-style="watch"] .btn.primary { background: var(--accent); color: var(--on-accent); }
[data-style="watch"] :is(.score-badge, .score-chip, .reviewer-id, .src-number, .stop-label) { font-family: var(--mono); }

/* scores as outlined readouts rather than filled tiles */
[data-style="watch"] .verdict:is(.pos, .neg, .mid) .verdict-score,
[data-style="watch"] .score-badge:is(.pos, .neg, .mid) { background: none; box-shadow: inset 0 0 0 1px currentColor; }
[data-style="watch"] .verdict-score { font: 500 30px var(--mono); letter-spacing: -.04em; }
[data-style="watch"] mark.asked-about { background: rgba(227, 168, 59, .22); box-shadow: 0 0 0 2px rgba(227, 168, 59, .22); }


/* =====================================================================
   Cyanotype — one ink. Everything is printed in Prussian blue on warm
   white; the only second colour is a vermilion spot for a negative
   verdict. The verdict is a ringed seal. In the dark it becomes the
   print itself: white line on Prussian blue.
   ===================================================================== */

:root[data-style="cyanotype"] {
  --paper: #f6f4ee;
  --surface: #fbfaf6;
  --sunk: #eaeef3;
  --ink: #102a4c;
  --ink-2: #3c5a80;
  --ink-3: #7d93ad;
  --line: #dae1e9;
  --line-2: #b6c3d3;
  --accent: #1b4a86;
  --accent-soft: #e2e9f2;
  --on-accent: #fbfaf6;
  --pos: #102a4c;
  --pos-soft: #dde6f0;
  --mid: #7d93ad;
  --mid-soft: #e9edf2;
  --neg: #d2452b;
  --neg-soft: #f8e4dc;
  --add: #dde8f3;
  --del: #d2452b;
  --shadow: none;
  --round: .25;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="cyanotype"] {
    --paper: #0e2a4f;
    --surface: #11305a;
    --sunk: #163864;
    --ink: #eef3f9;
    --ink-2: #b9c9dd;
    --ink-3: #8098b8;
    --line: #1f4473;
    --line-2: #335a8b;
    --accent: #d6e5f7;
    --accent-soft: #1d416f;
    --on-accent: #0e2a4f;
    --pos: #ffffff;
    --pos-soft: #1d416f;
    --mid: #8fa7c4;
    --mid-soft: #173b68;
    --neg: #ff9b7d;
    --neg-soft: #3a2f4f;
    --add: #1e4b72;
    --del: #ff9b7d;
    color-scheme: dark;
  }
}

[data-style="cyanotype"] ::selection { background: var(--ink); color: var(--paper); }
[data-style="cyanotype"] .masthead { border-bottom: 3px double var(--ink); padding-bottom: 12px; }
[data-style="cyanotype"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
[data-style="cyanotype"] :is(.home h1, .stage-head h2, .verdict h2) { font-weight: 400; }
[data-style="cyanotype"] :is(.card, .tl-step, .verdict, .reviewers > ol, .composer) { border-color: var(--line-2); }
[data-style="cyanotype"] .btn.primary { background: var(--ink); color: var(--paper); }
[data-style="cyanotype"] a:not(.cite):not(.btn) { text-decoration-color: var(--line-2); }

/* the seal: a ring inside a ring, in the verdict's ink */
[data-style="cyanotype"] .verdict:is(.pos, .neg, .mid) .verdict-score,
[data-style="cyanotype"] .score-badge:is(.pos, .neg, .mid) {
  background: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor, 0 0 0 3px var(--surface), 0 0 0 4px currentColor;
}
[data-style="cyanotype"] .score-badge:is(.pos, .neg, .mid) { box-shadow: inset 0 0 0 1px currentColor; }
[data-style="cyanotype"] .verdict-score { font-weight: 400; margin: 4px; }


/* =====================================================================
   Dossier — an onionskin file on a manila folder. Typewritten chrome,
   a typeset report, bracketed footnotes, and the verdict struck as a
   rubber stamp. Cards are a small stack of sheets.
   ===================================================================== */

:root[data-style="dossier"] {
  --paper: #e3d6b6;
  --surface: #f8f3e6;
  --sunk: #efe7d3;
  --ink: #1f1c16;
  --ink-2: #4c4537;
  --ink-3: #85795f;
  --line: #e2d8c0;
  --line-2: #c4b593;
  --accent: #26365a;
  --accent-soft: #e4e4dc;
  --on-accent: #f8f3e6;
  --pos: #2f5a35;
  --pos-soft: #e1e9d6;
  --mid: #6e6450;
  --mid-soft: #ebe3cf;
  --neg: #a3221b;
  --neg-soft: #f3dccf;
  --add: #dfe8cf;
  --del: #a3221b;
  --shadow: 0 1px 0 rgba(60, 45, 20, .06), 3px 3px 0 -1px var(--surface), 3px 3px 0 0 var(--line-2), 6px 6px 0 -1px var(--surface), 6px 6px 0 0 var(--line-2);
  --round: 0;
  --sans: var(--mono);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="dossier"] {
    --paper: #17150f;
    --surface: #221f18;
    --sunk: #2a261d;
    --ink: #ece4d1;
    --ink-2: #b9ae95;
    --ink-3: #847a64;
    --line: #2f2a20;
    --line-2: #4a4232;
    --accent: #a9bbe0;
    --accent-soft: #262a33;
    --on-accent: #17150f;
    --pos: #8fc28f;
    --pos-soft: #1f2a1c;
    --mid: #a69c86;
    --mid-soft: #2b271f;
    --neg: #ec7a68;
    --neg-soft: #3a1f19;
    --add: #253221;
    --del: #ec7a68;
    color-scheme: dark;
  }
}

[data-style="dossier"] body { font-size: 13px; }
[data-style="dossier"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
[data-style="dossier"] .wordmark { font: 500 16px var(--mono); letter-spacing: .4em; text-transform: uppercase; }
[data-style="dossier"] .tagline { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
[data-style="dossier"] .masthead { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
[data-style="dossier"] .home h1 { font-weight: 400; font-style: italic; }
[data-style="dossier"] :is(.stage-head h2, .verdict h2) { font-weight: 400; }
[data-style="dossier"] .prose :is(h2, h3, h4, h5) { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
[data-style="dossier"] :is(.card, .tl-step, .verdict, .composer) { border-color: var(--line-2); }
[data-style="dossier"] .btn.primary { background: var(--ink); color: var(--surface); }

/* footnotes in brackets, as typed */
[data-style="dossier"] .cite { background: none; min-width: 0; padding: 0; margin: 0 1px; color: var(--accent); font-size: 11.5px; }
[data-style="dossier"] .cite::before { content: '['; }
[data-style="dossier"] .cite::after { content: ']'; }
[data-style="dossier"] .cite:is(:hover, :focus-visible) { background: none; color: var(--neg); }
[data-style="dossier"] .src-number { background: none; border: 1px solid var(--line-2); }

/* the stamp */
[data-style="dossier"] .verdict:is(.pos, .neg, .mid) .verdict-score {
  background: none; width: 84px; height: 84px; border: 3px double currentColor; transform: rotate(-5deg);
  font: 500 32px var(--mono); letter-spacing: -.04em; opacity: .9;
}
[data-style="dossier"] .score-badge:is(.pos, .neg, .mid) { background: none; border: 1.5px solid currentColor; transform: rotate(-4deg); }


/* =====================================================================
   Survey — a map sheet. Contour lines behind the page, neatlines
   around every panel, titles in wide-set capitals, water-blue links,
   and the verdict scale drawn as a map's scale bar.
   ===================================================================== */

:root[data-style="survey"] {
  --paper: #f3f0e4;
  --surface: #fbf9f1;
  --sunk: #ece7d6;
  --ink: #23201a;
  --ink-2: #57503f;
  --ink-3: #8e8670;
  --line: #e1dbc9;
  --line-2: #c7bfa6;
  --accent: #1f5f8b;
  --accent-soft: #e2ecf2;
  --on-accent: #fbf9f1;
  --pos: #3b6e3a;
  --pos-soft: #e3ecd9;
  --mid: #8a6a3c;
  --mid-soft: #efe6d4;
  --neg: #b4462b;
  --neg-soft: #f5e1d8;
  --add: #e0ebd6;
  --del: #b4462b;
  --shadow: none;
  --round: 0;
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cdefs%3E%3Cpath id='h' d='M0,-60 C42,-63 78,-28 72,8 C66,44 28,64 -8,58 C-46,52 -74,22 -67,-12 C-60,-44 -36,-58 0,-60Z' vector-effect='non-scaling-stroke'/%3E%3C/defs%3E%3Cg fill='none' stroke='rgba(138,106,60,.16)' stroke-width='1' vector-effect='non-scaling-stroke'%3E%3Cg transform='translate(1010 150) rotate(10)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.55)'/%3E%3Cuse href='%23h' transform='rotate(4) scale(1.10)'/%3E%3Cuse href='%23h' transform='rotate(8) scale(1.65)'/%3E%3Cuse href='%23h' transform='rotate(12) scale(2.20)'/%3E%3Cuse href='%23h' transform='rotate(16) scale(2.75)'/%3E%3Cuse href='%23h' transform='rotate(20) scale(3.30)'/%3E%3Cuse href='%23h' transform='rotate(24) scale(3.85)'/%3E%3Cuse href='%23h' transform='rotate(28) scale(4.40)'/%3E%3Cuse href='%23h' transform='rotate(32) scale(4.95)'/%3E%3Cuse href='%23h' transform='rotate(36) scale(5.50)'/%3E%3Cuse href='%23h' transform='rotate(40) scale(6.05)'/%3E%3C/g%3E%3Cg transform='translate(140 760) rotate(70)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.60)'/%3E%3Cuse href='%23h' transform='rotate(-3) scale(1.20)'/%3E%3Cuse href='%23h' transform='rotate(-6) scale(1.80)'/%3E%3Cuse href='%23h' transform='rotate(-9) scale(2.40)'/%3E%3Cuse href='%23h' transform='rotate(-12) scale(3.00)'/%3E%3Cuse href='%23h' transform='rotate(-15) scale(3.60)'/%3E%3Cuse href='%23h' transform='rotate(-18) scale(4.20)'/%3E%3Cuse href='%23h' transform='rotate(-21) scale(4.80)'/%3E%3Cuse href='%23h' transform='rotate(-24) scale(5.40)'/%3E%3Cuse href='%23h' transform='rotate(-27) scale(6.00)'/%3E%3Cuse href='%23h' transform='rotate(-30) scale(6.60)'/%3E%3Cuse href='%23h' transform='rotate(-33) scale(7.20)'/%3E%3Cuse href='%23h' transform='rotate(-36) scale(7.80)'/%3E%3C/g%3E%3Cg transform='translate(620 980) rotate(-20)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.90)'/%3E%3Cuse href='%23h' transform='rotate(5) scale(1.80)'/%3E%3Cuse href='%23h' transform='rotate(10) scale(2.70)'/%3E%3Cuse href='%23h' transform='rotate(15) scale(3.60)'/%3E%3Cuse href='%23h' transform='rotate(20) scale(4.50)'/%3E%3Cuse href='%23h' transform='rotate(25) scale(5.40)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="survey"] {
    --paper: #12140f;
    --surface: #191b15;
    --sunk: #20231b;
    --ink: #e7e3d4;
    --ink-2: #b2ac98;
    --ink-3: #7f7a69;
    --line: #2a2c23;
    --line-2: #3d3f33;
    --accent: #7fb6dc;
    --accent-soft: #1a2a33;
    --on-accent: #12140f;
    --pos: #97c48a;
    --pos-soft: #1d2a19;
    --mid: #c9a874;
    --mid-soft: #2a2519;
    --neg: #e8866b;
    --neg-soft: #351d16;
    --add: #1f2f1c;
    --del: #e8866b;
    --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cdefs%3E%3Cpath id='h' d='M0,-60 C42,-63 78,-28 72,8 C66,44 28,64 -8,58 C-46,52 -74,22 -67,-12 C-60,-44 -36,-58 0,-60Z' vector-effect='non-scaling-stroke'/%3E%3C/defs%3E%3Cg fill='none' stroke='rgba(201,180,138,.10)' stroke-width='1' vector-effect='non-scaling-stroke'%3E%3Cg transform='translate(1010 150) rotate(10)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.55)'/%3E%3Cuse href='%23h' transform='rotate(4) scale(1.10)'/%3E%3Cuse href='%23h' transform='rotate(8) scale(1.65)'/%3E%3Cuse href='%23h' transform='rotate(12) scale(2.20)'/%3E%3Cuse href='%23h' transform='rotate(16) scale(2.75)'/%3E%3Cuse href='%23h' transform='rotate(20) scale(3.30)'/%3E%3Cuse href='%23h' transform='rotate(24) scale(3.85)'/%3E%3Cuse href='%23h' transform='rotate(28) scale(4.40)'/%3E%3Cuse href='%23h' transform='rotate(32) scale(4.95)'/%3E%3Cuse href='%23h' transform='rotate(36) scale(5.50)'/%3E%3Cuse href='%23h' transform='rotate(40) scale(6.05)'/%3E%3C/g%3E%3Cg transform='translate(140 760) rotate(70)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.60)'/%3E%3Cuse href='%23h' transform='rotate(-3) scale(1.20)'/%3E%3Cuse href='%23h' transform='rotate(-6) scale(1.80)'/%3E%3Cuse href='%23h' transform='rotate(-9) scale(2.40)'/%3E%3Cuse href='%23h' transform='rotate(-12) scale(3.00)'/%3E%3Cuse href='%23h' transform='rotate(-15) scale(3.60)'/%3E%3Cuse href='%23h' transform='rotate(-18) scale(4.20)'/%3E%3Cuse href='%23h' transform='rotate(-21) scale(4.80)'/%3E%3Cuse href='%23h' transform='rotate(-24) scale(5.40)'/%3E%3Cuse href='%23h' transform='rotate(-27) scale(6.00)'/%3E%3Cuse href='%23h' transform='rotate(-30) scale(6.60)'/%3E%3Cuse href='%23h' transform='rotate(-33) scale(7.20)'/%3E%3Cuse href='%23h' transform='rotate(-36) scale(7.80)'/%3E%3C/g%3E%3Cg transform='translate(620 980) rotate(-20)'%3E%3Cuse href='%23h' transform='rotate(0) scale(0.90)'/%3E%3Cuse href='%23h' transform='rotate(5) scale(1.80)'/%3E%3Cuse href='%23h' transform='rotate(10) scale(2.70)'/%3E%3Cuse href='%23h' transform='rotate(15) scale(3.60)'/%3E%3Cuse href='%23h' transform='rotate(20) scale(4.50)'/%3E%3Cuse href='%23h' transform='rotate(25) scale(5.40)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

[data-style="survey"] body { background-image: var(--contours); background-size: cover; background-position: center top; background-attachment: fixed; }
[data-style="survey"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 600 10.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mid);
}
[data-style="survey"] .wordmark { font: 600 15px var(--sans); letter-spacing: .5em; text-transform: uppercase; }
[data-style="survey"] .tagline { font-style: italic; font-family: var(--serif); font-size: 14px; color: var(--accent); }
[data-style="survey"] .home h1 { font: 600 21px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; margin-top: 64px; }
[data-style="survey"] :is(.stage-head h2, .verdict h2) { font-style: italic; font-weight: 400; }

/* neatlines: a hairline frame, a gap, a second frame */
[data-style="survey"] :is(.card, .tl-step, .verdict, .composer, .reviewers > ol) {
  border: 1px solid var(--ink-2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2);
}
[data-style="survey"] .reviewers > ol { margin: 0 4px; }
[data-style="survey"] .btn.primary { background: var(--ink); color: var(--surface); }

/* the scale bar: alternate segments filled, pip to pip */
[data-style="survey"] .scale::before {
  height: 6px; bottom: 24px; background: repeating-linear-gradient(90deg, var(--ink) 0 34px, var(--surface) 34px 68px);
  border: 1px solid var(--ink);
}
[data-style="survey"] .pip { border-color: var(--ink); background: var(--surface); }
[data-style="survey"] .verdict:is(.pos, .neg, .mid) .verdict-score { background: none; box-shadow: inset 0 0 0 1px currentColor; font-style: italic; }


/* =====================================================================
   Almanac — a star atlas read at night. Midnight indigo, brass
   hairlines, serif throughout, a faint field of stars and two arcs of
   celestial circles; the verdict sits in an astrolabe ring.
   Always dark.
   ===================================================================== */

:root[data-style="almanac"] {
  --paper: #0c0f1e;
  --surface: #10142a;
  --sunk: #161b36;
  --ink: #ebe5d3;
  --ink-2: #b4ad99;
  --ink-3: #7c7868;
  --line: #1e2442;
  --line-2: #2d3459;
  --accent: #c9a55a;
  --accent-soft: rgba(201, 165, 90, .13);
  --on-accent: #0c0f1e;
  --pos: #93c9a8;
  --pos-soft: rgba(147, 201, 168, .1);
  --mid: #a9a495;
  --mid-soft: rgba(169, 164, 149, .1);
  --neg: #e6907b;
  --neg-soft: rgba(230, 144, 123, .1);
  --add: rgba(147, 201, 168, .16);
  --del: #e6907b;
  --brass: rgba(201, 165, 90, .28);
  --shadow: none;
  --round: 0;
  --sans: var(--serif);
  color-scheme: dark;
}

[data-style="almanac"] body {
  font-size: 15px;
  background-image:
    radial-gradient(circle at 115% -12%, transparent 0 560px, rgba(201, 165, 90, .12) 560px 561px, transparent 562px),
    radial-gradient(circle at -20% 120%, transparent 0 640px, rgba(201, 165, 90, .08) 640px 641px, transparent 642px),
    radial-gradient(circle at 8% 14%, rgba(235, 229, 211, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 23% 71%, rgba(235, 229, 211, .35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 37% 9%, rgba(235, 229, 211, .3) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 52% 88%, rgba(235, 229, 211, .4) 0 1px, transparent 1.6px),
    radial-gradient(circle at 66% 33%, rgba(235, 229, 211, .25) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 79% 61%, rgba(235, 229, 211, .45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 91% 22%, rgba(235, 229, 211, .35) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 95% 83%, rgba(235, 229, 211, .3) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 4% 52%, rgba(235, 229, 211, .3) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 86% 46%, rgba(201, 165, 90, .5) 0 1px, transparent 1.6px);
  background-attachment: fixed;
}
[data-style="almanac"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 11px/1.4 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
[data-style="almanac"] .wordmark { font-style: italic; font-size: 26px; color: var(--accent); }
[data-style="almanac"] .tagline { font-style: italic; font-size: 14px; }
[data-style="almanac"] :is(.home h1, .stage-head h2, .verdict h2) { font-weight: 400; letter-spacing: 0; }
[data-style="almanac"] .home h1 { font-size: 36px; }
[data-style="almanac"] :is(.card, .tl-step, .verdict, .composer, .reviewers > ol) { background: rgba(16, 20, 42, .72); border: 1px solid var(--brass); }
[data-style="almanac"] .history li { border-color: var(--line-2); }
[data-style="almanac"] .btn.primary { background: var(--accent); color: var(--on-accent); }
[data-style="almanac"] .btn.quiet { background: none; border-color: var(--brass); }
[data-style="almanac"] ::selection { background: var(--accent); color: var(--paper); }
[data-style="almanac"] mark.asked-about { background: rgba(201, 165, 90, .24); box-shadow: 0 0 0 2px rgba(201, 165, 90, .24); }

/* the astrolabe ring */
[data-style="almanac"] .verdict:is(.pos, .neg, .mid) .verdict-score {
  background: none; border-radius: 50%; margin: 6px; font-weight: 400;
  box-shadow: inset 0 0 0 1px currentColor, 0 0 0 5px var(--surface), 0 0 0 6px var(--brass);
}
[data-style="almanac"] .score-badge:is(.pos, .neg, .mid) { background: none; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }


/* =====================================================================
   Halftone — no colour at all. Tone is carried by pattern, as in a
   printed figure: solid for feasible, hatched for not, stippled for
   undecided. Black on white, white on black.
   ===================================================================== */

:root[data-style="halftone"] {
  --paper: #f7f7f5;
  --surface: #ffffff;
  --sunk: #efefed;
  --ink: #0b0b0b;
  --ink-2: #474747;
  --ink-3: #8c8c8c;
  --line: #e4e4e2;
  --line-2: #c6c6c4;
  --accent: #0b0b0b;
  --accent-soft: #ececea;
  --on-accent: #ffffff;
  --pos: #0b0b0b;
  --pos-soft: #ececea;
  --mid: #6b6b6b;
  --mid-soft: #f0f0ee;
  --neg: #0b0b0b;
  --neg-soft: #ececea;
  --add: #e6e6e4;
  --del: #0b0b0b;
  --shadow: none;
  --round: 0;
  --hatch: repeating-linear-gradient(-45deg, var(--ink) 0 1.2px, transparent 1.2px 5px);
  --stipple: radial-gradient(circle, var(--ink-3) 0 1px, transparent 1.4px) 0 0 / 5px 5px;
  --plate: linear-gradient(var(--surface), var(--surface)) center / 66% 56% no-repeat;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="halftone"] {
    --paper: #0b0b0b;
    --surface: #111111;
    --sunk: #1a1a1a;
    --ink: #f2f2f0;
    --ink-2: #b4b4b2;
    --ink-3: #777777;
    --line: #232323;
    --line-2: #3a3a3a;
    --accent: #f2f2f0;
    --accent-soft: #222222;
    --on-accent: #0b0b0b;
    --pos: #f2f2f0;
    --pos-soft: #222222;
    --mid: #9a9a98;
    --mid-soft: #1c1c1c;
    --neg: #f2f2f0;
    --neg-soft: #222222;
    --add: #262626;
    --del: #f2f2f0;
    color-scheme: dark;
  }
}

[data-style="halftone"] ::selection { background: var(--ink); color: var(--surface); }
[data-style="halftone"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 700 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
[data-style="halftone"] .wordmark { font: 700 23px var(--sans); letter-spacing: -.05em; }
[data-style="halftone"] :is(.home h1, .stage-head h2, .verdict h2) { font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
[data-style="halftone"] .home h1 { font-size: 38px; line-height: 1.05; }
[data-style="halftone"] :is(.card, .tl-step, .verdict, .composer, .reviewers > ol) { border: 1px solid var(--ink); }
[data-style="halftone"] .history li { border-color: var(--ink); }
[data-style="halftone"] .diff del { text-decoration-thickness: 2px; }
[data-style="halftone"] mark.asked-about { background: none; box-shadow: none; text-decoration: underline 3px var(--ink); text-underline-offset: 4px; }

/* tone by pattern */
[data-style="halftone"] :is(.verdict.pos .verdict-score, .score-badge.pos, .score-chip.pos) { background: var(--ink); color: var(--surface); }
/* the numeral sits on a plain plate inside the pattern, as a printer would set it */
[data-style="halftone"] :is(.verdict.neg .verdict-score, .score-badge.neg, .score-chip.neg) {
  background: var(--plate), var(--hatch); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
[data-style="halftone"] :is(.verdict.mid .verdict-score, .score-badge.mid, .score-chip.mid) {
  background: var(--plate), var(--stipple); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
[data-style="halftone"] :is(.score-badge, .score-chip):is(.neg, .mid) { --plate: linear-gradient(var(--surface), var(--surface)) center / 74% 60% no-repeat; }
[data-style="halftone"] .verdict-score { font: 700 34px var(--sans); letter-spacing: -.04em; }
[data-style="halftone"] .stop.chosen.neg :is(.votes i, .pip) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
[data-style="halftone"] .stop.chosen.mid :is(.votes i, .pip) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }


/* Corners written in styles.css without the --round token (the run
   page's timeline and rail): keep them in step with whichever style is on. */
:root[data-style] :is(.tl-step, .tl-head) { border-radius: calc(14px * var(--round)); }
:root[data-style] .reviewer-model { border-radius: calc(5px * var(--round)); }


/* The highlighted phrase in a question is pale yellow; on a dark page it
   needs a dark wash instead. */
@media (prefers-color-scheme: dark) {
  [data-style]:not([data-style="watch"], [data-style="almanac"], [data-style="halftone"], [data-style="precision"], [data-style^="phosphor"]) mark.asked-about { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
}


/* =====================================================================
   Phosphor — a quiet CRT terminal, after swarmchat's skin. Dark:
   green-black glass, pale green text, blue captions, amber for what is
   picked or acted on, turquoise and yellow as the other neons, a soft
   glow on headings and the faintest scanlines. Light: the same scheme
   printed on green-bar paper, no glow, no scanlines. Nothing moves.
   Monospace for the chrome; what you read stays proportional.

   Three entries share one palette: "phosphor" follows the system,
   "phosphor-light" and "phosphor-dark" pin it. Every colour is
   light-dark(paper, glass), picked by the root's color-scheme.
   ===================================================================== */

:root[data-style^="phosphor"] {
  --paper: light-dark(#f5f7f1, #090e0a);
  --surface: light-dark(#fbfcf8, #0d140f);
  --sunk: light-dark(#e6eadf, #122016);
  --ink: light-dark(#121a14, #d6efd2);
  --ink-2: light-dark(#3a483d, #9dbf98);
  --ink-3: light-dark(#5b6c5f, #73917a);
  --line: light-dark(#d9dfcf, #17271b);
  --line-2: light-dark(#c2cab5, #244029);
  --accent: light-dark(#a35d00, #f2ae38);
  --brand: light-dark(#0b8276, #4fd6c9);
  --accent-soft: light-dark(rgba(176, 104, 0, .11), rgba(242, 174, 56, .10));
  --on-accent: light-dark(#ffffff, #120c02);
  --pos: light-dark(#1d8a3b, #5fdc7d);
  --pos-soft: light-dark(rgba(29, 138, 59, .11), rgba(95, 220, 125, .10));
  --mid: light-dark(#7a6000, #ecd55a);
  --mid-soft: light-dark(rgba(176, 138, 0, .13), rgba(236, 213, 90, .09));
  --neg: light-dark(#c42d2d, #ff6b6b);
  --neg-soft: light-dark(rgba(196, 45, 45, .10), rgba(255, 107, 107, .11));
  --add: light-dark(#e1f3dc, rgba(95, 220, 125, .12));
  --del: light-dark(#c42d2d, #ff6b6b);
  --warn: light-dark(#8f7200, #ecd55a);
  --warn-soft: light-dark(rgba(214, 180, 20, .16), rgba(236, 213, 90, .10));
  --shadow: none;
  --round: .22;
  --serif: var(--sans);
  /* phosphor-only tokens */
  --ph-hi: light-dark(#0a110c, #effff0);
  --ph-label: light-dark(#3a58a6, #7d9bdf);
  --ph-link: light-dark(#2448a8, #9db8ff);
  --ph-head: light-dark(#8f7200, #ecd55a);
  --ph-code: light-dark(#edf0e7, #050906);
  --ph-glow: light-dark(transparent, color-mix(in srgb, currentColor 30%, transparent));
  --ph-scan: light-dark(transparent, rgba(0, 0, 0, .07));
  color-scheme: light dark;
}
:root[data-style="phosphor-light"] { color-scheme: light; }
:root[data-style="phosphor-dark"] { color-scheme: dark; }

/* scanlines: a whisper, dark only (--ph-scan is transparent in light) */
[data-style^="phosphor"] body::after {
  content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: repeating-linear-gradient(0deg, var(--ph-scan) 0 1px, transparent 1px 3px);
}
[data-style^="phosphor"] ::selection { background: var(--accent); color: var(--on-accent); }
[data-style^="phosphor"] a:not(.cite):not(.btn) { color: var(--ph-link); }
[data-style^="phosphor"] code { background: var(--ph-code); border: 1px solid var(--line); }
[data-style^="phosphor"] :focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* the chrome speaks monospace */
[data-style^="phosphor"] :is(.label, .history h2, .reviewers > h3, .sources > h3, .keys-group legend) {
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ph-label);
}
[data-style^="phosphor"] .wordmark { font: 600 20px/1 var(--mono); letter-spacing: -.02em; color: var(--ph-hi); text-shadow: 0 0 6px var(--ph-glow); }
[data-style^="phosphor"] .wordmark::before { content: '>'; color: var(--accent); margin-right: .4em; }
[data-style^="phosphor"] .wordmark::after { border-radius: 0; }
[data-style^="phosphor"] .tagline { font: 400 12px var(--mono); color: var(--ph-label); }
[data-style^="phosphor"] :is(.home h1, .stage-head h2, .tl-step.open .tl-title, .verdict h2, .modal-head h2) {
  color: var(--ph-hi); font-weight: 600; letter-spacing: -.015em; text-shadow: 0 0 8px var(--ph-glow);
}
[data-style^="phosphor"] .claim-text { font-weight: 500; color: var(--ph-hi); }
[data-style^="phosphor"] .composer textarea::placeholder { font-style: normal; color: var(--ink-3); }
[data-style^="phosphor"] .composer textarea { caret-color: var(--accent); }
[data-style^="phosphor"] .prose { font-size: 15.5px; line-height: 1.65; }
[data-style^="phosphor"] .prose :is(h2, h3, h4) { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; }
[data-style^="phosphor"] .prose h2 { color: var(--ph-head); font-size: 15.5px; }
[data-style^="phosphor"] .prose :is(h3, h4) { color: var(--ph-hi); font-size: 14px; }

/* panels: hairline phosphor edges, no drop shadows */
[data-style^="phosphor"] :is(.card, .tl-step, .verdict, .reviewers > ol, .composer) { border-color: var(--line-2); }
[data-style^="phosphor"] .composer:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }

/* controls: outlined, amber when they act */
[data-style^="phosphor"] .btn { font: 500 12px var(--mono); letter-spacing: .02em; }
[data-style^="phosphor"] .btn.primary { background: transparent; border-color: var(--accent); color: var(--accent); font-weight: 600; }
[data-style^="phosphor"] .btn.primary:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); opacity: 1; }
[data-style^="phosphor"] .btn.quiet { background: var(--surface); }
[data-style^="phosphor"] .btn.quiet:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ph-hi); }
[data-style^="phosphor"] .segmented { background: var(--sunk); border: 1px solid var(--line); }
[data-style^="phosphor"] .segmented button { font: 500 12px var(--mono); }
[data-style^="phosphor"] .segmented button.on { background: var(--surface); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* scores as lit readouts: outlined, monospaced, glowing in the dark */
[data-style^="phosphor"] :is(.score-badge, .score-chip, .reviewer-id, .src-number, .stop-label) { font-family: var(--mono); }
[data-style^="phosphor"] .verdict:is(.pos, .neg, .mid) .verdict-score,
[data-style^="phosphor"] .score-badge:is(.pos, .neg, .mid) {
  box-shadow: inset 0 0 0 1px currentColor; text-shadow: 0 0 8px var(--ph-glow);
}
[data-style^="phosphor"] .verdict-score { font: 600 28px var(--mono); letter-spacing: -.04em; }
[data-style^="phosphor"] mark.asked-about { background: var(--warn-soft); color: inherit; box-shadow: 0 0 0 2px var(--warn-soft); }


/* =====================================================================
   The Design tab itself: a prototype switch, deliberately outside every
   style (fixed colours, its own type).
   ===================================================================== */

.design { position: fixed; z-index: 80; left: 12px; bottom: 12px; font: 12px/1.4 'JetBrains Mono', ui-monospace, Menlo, monospace; color: #222; }
.d-gear {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 7px;
  background: #ffe45c; border: 1px solid #222; border-radius: 0; box-shadow: 2px 2px 0 #222;
  font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; color: #222;
}
.d-gear:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #222; }
/* On an experiment's page the walkthrough fills the window, and its Back button is where this tab sits: there the
   tab is only its mark, up in the page's left gutter. */
:root:has(main.xw) .design { left: 5px; bottom: 96px; }
:root:has(main.xw) .d-gear { padding: 0 5px; }
:root:has(main.xw) .d-gear > span { display: none; }
.d-panel {
  position: absolute; bottom: 36px; left: 0; width: min(380px, calc(100vw - 24px)); padding: 10px 12px;
  background: #fffdf0; border: 1px solid #222; box-shadow: 3px 3px 0 #222;
}
.d-panel h3 { margin: 0 0 6px; font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.d-row { display: grid; grid-template-columns: 52px 1fr; gap: 4px 8px; padding: 6px 0; border-top: 1px dashed #bbb; }
.d-row .k { font-weight: 500; padding-top: 3px; }
.d-opts { display: flex; flex-wrap: wrap; gap: 3px; }
.d-opts button {
  padding: 2px 7px; border: 1px solid #999; border-radius: 0; background: #fff;
  font: 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; color: #222;
}
.d-opts button[aria-pressed="true"] { background: #222; color: #ffe45c; border-color: #222; }
.d-foot { margin: 6px 0 0; padding-top: 6px; border-top: 1px dashed #bbb; color: #555; }
.design :focus-visible { outline: 2px solid #222; outline-offset: 2px; }
