:root {
  color-scheme: dark;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-7:32px; --space-8:40px; --space-9:48px;
  --text-2xs:12px; --text-xs:13px; --text-sm:15px; --text-md:17px; --text-lg:22px; --text-xl:28px;
  /* ===== HURDLE COLOUR SCHEME: THE ONLY PLACE A COLOUR IS DEFINED (framework section 17, Andy TG117041) =====
     One scheme: dark navy. No light version, no ivory, nothing follows the phone's setting.
     Every screen uses these names. A hex colour anywhere else in static/ fails the release
     (check: scripts/check_one_scheme.py). */
  /*HS-SCHEME-START*/
  --hs-page:#0a1324; --hs-card:#101c33; --hs-card-2:#1a2742; --hs-field:#0c1730;
  --hs-edge:#23314e; --hs-rule:#1b2842; --hs-grid:#1d2a45;
  --hs-text:#e9eef7; --hs-text-2:#8b98b0;
  --hs-accent:#2670df; --hs-accent-text:#438bff; --hs-on-accent:#fff;
  --hs-up:#27c779; --hs-down:#ff5a6a;
  --hs-up-soft:rgba(39,199,121,.16); --hs-down-soft:rgba(255,90,106,.16); --hs-accent-soft:rgba(47,125,246,.18);
  --hs-scrim:rgba(3,8,18,.72); --hs-shadow:rgba(0,0,0,.4);
  /* Names older screens already use. Each one points at the scheme; none carries its own colour. */
  --bg:var(--hs-page); --hr-bg:var(--hs-page); --rd-bg:var(--hs-page); --tk-bg:var(--hs-page); --auth-bg:var(--hs-page); --hurdle-workbench-ivory:var(--hs-page); --frost:var(--hs-page); --tabbg:var(--hs-card);
  --surface:var(--hs-card); --hr-surface:var(--hs-card); --tk-card:var(--hs-card); --rd-card:var(--hs-card);
  --surface-2:var(--hs-card-2); --tk-tag:var(--hs-card-2); --bg2:var(--hs-card); --bg3:var(--hs-card-2); --amber-soft:var(--hs-card-2); --warnbg:var(--hs-card-2); --knob:var(--hs-text);
  --auth-field:var(--hs-field); --tk-field:var(--hs-field);
  --ink:var(--hs-text); --hr-ink:var(--hs-text); --rd-ink:var(--hs-text); --tk-ink:var(--hs-text); --auth-ink:var(--hs-text); --hurdle-workbench-ink:var(--hs-text); --amber:var(--hs-text); --warn:var(--hs-text); --warnink:var(--hs-text); --brand:var(--hs-accent);
  --muted:var(--hs-text-2); --hr-muted:var(--hs-text-2); --rd-muted:var(--hs-text-2); --tk-mute:var(--hs-text-2); --auth-muted:var(--hs-text-2); --auth-faint:var(--hs-text-2); --stock-faint:var(--hs-text-2); --hurdle-workbench-muted:var(--hs-text-2); --ink2:var(--hs-text-2); --ink3:var(--hs-text-2); --ink-2:var(--hs-text-2);
  --border:var(--hs-edge); --line:var(--hs-edge); --hr-line:var(--hs-edge); --rd-line:var(--hs-edge); --tk-edge:var(--hs-edge); --auth-line:var(--hs-edge); --hurdle-workbench-rule:var(--hs-edge); --line2:var(--hs-edge);
  --tk-rule:var(--hs-rule); --tk-grid:var(--hs-grid); --grid:var(--hs-grid);
  --accent:var(--hs-accent); --rd-blue:var(--hs-accent); --tk-buy:var(--hs-accent); --auth-brand:var(--hs-accent); --hurdle-workbench-cobalt:var(--hs-accent); --focus:var(--hs-accent); --acc:var(--hs-accent);
  --accent-ink:var(--hs-on-accent); --tk-buy-ink:var(--hs-on-accent); --on-ink:var(--hs-page); --teamink:var(--hs-on-accent); --team:var(--hs-accent); --hot:var(--hs-down); --hotbg:var(--hs-down-soft);
  --green:var(--hs-up); --up:var(--hs-up); --hr-green:var(--hs-up); --tk-up:var(--hs-up); --gain:var(--hs-up);
  --down:var(--hs-down); --danger:var(--hs-down); --hr-red:var(--hs-down); --tk-down:var(--hs-down); --tk-sell:var(--hs-down); --loss:var(--hs-down);
  --soft-green:var(--hs-up-soft); --soft-red:var(--hs-down-soft); --lossbg:var(--hs-down-soft); --accbg:var(--hs-accent-soft); --scrim:var(--hs-scrim);
  --glow:transparent; --glow-amber:transparent; --shadow:none; --e1:none;
  /*HS-SCHEME-END*/
  --radius-sm:12px; --radius:16px; --radius-lg:24px; --radius-pill:999px;
  --font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --dur-tap:120ms; --dur-1:200ms; --dur-2:320ms; --dur-chart:600ms;
  --ease-out:cubic-bezier(.2,.8,.2,1); --ease-io:cubic-bezier(.4,0,.2,1);
  /* Visual system (v3_visual_system_1019, Andy 110072 "The damn spacing!"). Every page uses these, never raw px:
     page top under the header, between sections/cards, between elements inside a card, inside a tight group, card padding. */
  --gap-page-top:var(--space-5); --gap-section:var(--space-6); --gap-card:var(--space-3); --gap-tight:var(--space-2); --pad-card:var(--space-4);
  /* Type roles map onto the size scale: meta 13, body 15, title 17, section 22, hero 28. */
  --type-meta:var(--text-xs); --type-body:var(--text-sm); --type-title:var(--text-md); --type-section:var(--text-lg); --type-hero:var(--text-xl);
  /* Design system (redesign_1110, DESIGN_SYSTEM.md): reference-led scale and flat surfaces. */
  --ds-label:11px; --ds-card-title:17px; --ds-section:20px; --ds-title:28px; --ds-hero:34px;
  --ds-radius:14px; --ds-radius-btn:10px; --ds-gap:var(--space-3);
  /* Shared aliases for independently built modules. */
  --card:var(--hs-card); --card2:var(--hs-card-2); --mut:var(--hs-text-2); --rule:var(--hs-edge); --dn:var(--hs-down); --text:var(--hs-text);
}
@media (min-width:1024px) { :root { --pad-card:var(--space-5); } }
/* shell_visual_1111: ONE type and spacing scale for the shared shell (Andy TG116786 "the whole app looks unacceptable").
   Page title / section / card title / body / caption, and one page gutter and rhythm. Pages use these, never raw px. */
:root{
  --rd-h1:28px; --rd-h1-lh:1.15; --rd-h2:20px; --rd-h2-lh:1.25; --rd-h3:17px; --rd-body:16px; --rd-body-lh:1.5; --rd-caption:13px;
  --rd-gutter:20px; --rd-s1:4px; --rd-s2:8px; --rd-s3:12px; --rd-s4:16px; --rd-s5:24px; --rd-s6:32px;
  --rd-card-radius:14px; --rd-card-pad:16px;
}
/* one_scheme_1111: there is no second appearance to switch to. */
#theme-toggle{display:none!important}
/* one_scheme_1111: a form box no page styled takes the scheme, never the browser's grey. Any page rule still wins. */
:root{accent-color:var(--hs-accent)}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=submit],[type=button],[type=image]),select,textarea){background-color:var(--hs-field);color:var(--hs-text);border-color:var(--hs-edge)}
:where(a:any-link){color:var(--hs-accent-text)}
@media(max-width:600px){input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=submit],[type=button],[type=image]),select,textarea{font-size:max(16px,1em)!important}}
:where(.rs-versions summary,.rs-few>summary,.rs-vtoggle,.rs .rs-eyebrow,.rs-howtest>summary){color:var(--hs-accent-text)}

/* Small accent-coloured text uses a separate contrast-safe shade, not the button fill. */
.active>span,button[data-notmeant],.tk-link,.tk-edit,.rs-link,.tb-back,.tb-save,button[data-auth=join-mode],summary:not(.rs-method summary){color:var(--hs-accent-text)!important}

.tb-save.on{color:var(--hs-on-accent)!important}
