/* The colours, fonts and shadows every page of the app uses, moved out of
   web/index.html unchanged (UI-T1). Light values first, then the dark ones:
   dark follows the device unless the page sets data-theme="light", and
   data-theme="dark" forces it. */
:root{
  --bg:#f4f6f8; --surface:#ffffff; --surface-2:#eef1f4; --ink:#14202b; --ink-2:#465361; --muted:#7a8592; --line:#dde3e9; --line-2:#c9d1da;
  --accent:#2a78d6; --accent-ink:#ffffff;
  --s-actual:#2a78d6; --s-plan:#eb6834; --s-sq:#1baf7a;
  --good:#1f9d55; --good-bg:#e6f5ec; --warn:#b97a06; --warn-bg:#fbf1dc; --bad:#c93c3c; --bad-bg:#fbe6e6; --neutral:#6b7683; --neutral-bg:#eceff3; --live:#2a78d6; --live-bg:#e4effb;
  --shadow:0 10px 30px rgba(20,32,43,.12);
  --display:"Bricolage Grotesque","IBM Plex Sans",system-ui,sans-serif; --body:"IBM Plex Sans",system-ui,sans-serif; --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0f1519; --surface:#171e25; --surface-2:#1e2730; --ink:#e8edf2; --ink-2:#b0bac5; --muted:#7f8b97; --line:#273239; --line-2:#354250;
  --accent:#5b9ae6; --accent-ink:#0f1519;
  --s-actual:#5b9ae6; --s-plan:#f0855c; --s-sq:#3fc79a;
  --good:#3fbf76; --good-bg:#15302233; --warn:#e0a63a; --warn-bg:#3a2d1233; --bad:#e26666; --bad-bg:#3a181833; --neutral:#93a0ad; --neutral-bg:#222c35; --live:#5b9ae6; --live-bg:#17263a;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}}
:root[data-theme="dark"]{
  --bg:#0f1519; --surface:#171e25; --surface-2:#1e2730; --ink:#e8edf2; --ink-2:#b0bac5; --muted:#7f8b97; --line:#273239; --line-2:#354250;
  --accent:#5b9ae6; --accent-ink:#0f1519;
  --s-actual:#5b9ae6; --s-plan:#f0855c; --s-sq:#3fc79a;
  --good:#3fbf76; --good-bg:#15302233; --warn:#e0a63a; --warn-bg:#3a2d1233; --bad:#e26666; --bad-bg:#3a181833; --neutral:#93a0ad; --neutral-bg:#222c35; --live:#5b9ae6; --live-bg:#17263a;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}

/* New scale and brand tokens (UI-T1). Nothing uses them yet; the next tickets
   move the pages onto them. Font sizes, spaces and corner rounding: */
:root{
  --fs-1:12px; --fs-2:13px; --fs-3:14px; --fs-4:16px; --fs-5:20px; --fs-6:24px; --fs-7:32px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px;
  --r-1:2px; --r-2:4px;
  --brand-ink:#102C46; --brand-deep:#174567; --brand-blue:#075B96; --brand-gold:#C9A227; --brand-ground:#F5F7F8; --brand-panel:#EDF2F5;
}
/* The brand colours that change in dark mode, in the same two places as above. */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --brand-ground:#0B1B2B; --brand-panel:#182E44; --brand-blue:#4A9BD8;
}}
:root[data-theme="dark"]{
  --brand-ground:#0B1B2B; --brand-panel:#182E44; --brand-blue:#4A9BD8;
}
