/* Colour tokens: the one place the site's colours are chosen (owner, 30 Nov 2026: "get it locked in early").
   Roles, not hues: pages and new components use these names, and each theme sets their values.
     Surfaces    --bg (page), --surface (panels such as the postbox), --surface-2 and --surface-3 (raised, hover,
                 table headings), --field (inputs)
     Lines       --border (panel edges), --border-strong (table cells, field edges)
     Text        --text (body), --text-muted (secondary text), --link
     Brand       --primary (interactive: active filters, buttons), --secondary (information panels: the postbox's
                 edge), --accent (highlights on dark surfaces)
     Status      --success, --warning, --danger, --caution; text in these colours meets WCAG AA (4.5:1) on --bg
   Proportion: roughly 60% surfaces, 30% text and lines, 10% brand and status colour.
   The live table's status fills (red, orange, green, transition, yellow, pinks) are the monitor's own language and
   stay as they are in both themes; they are not tokens.
   Type: one family everywhere (--font, Lato bundled; its digits are tabular, so times and counts line up without a
   monospace font) and four sizes: --text-small (footer, labels, chips), --text-body (tables, events: kept dense),
   --text-ui (menu, buttons, filters), --text-heading (page titles); bold marks what matters.
   Light is the classic look: its values are the old stylesheets' own colours. Dark is a deep teal after the owner's
   Solarized Dark terminal. Contrast is checked by ops/theme-contrast.mjs (every text token on every surface). */
:root {
    --font: "Lato", Helvetica, Arial, sans-serif;
    --text-small: 12px;
    --text-body: 13px;
    --text-ui: 14px;
    --text-heading: 20px;
    --bg: #ffffff;
    --surface: #f7faff;
    --surface-2: #eef3fb;
    --surface-3: #d6d6d6;
    --field: #ffffff;
    --border: #d6e4ff;
    --border-strong: #999966;
    --text: #4f5155;
    --text-muted: #5b6777;
    --link: #003399;
    --primary: #0b5ed7;
    --secondary: #1b7f78;
    --accent: #0b3d62;
    --success: #0f7a3b;
    --warning: #a65c00;
    --danger: #b91c1c;
    --caution: #664400;
}
html[data-theme="dark"] {
    --bg: #002b36;
    --surface: #073642;
    --surface-2: #0b4250;
    --surface-3: #0f4e5e;
    --field: #00212a;
    --border: #2a5f6c;
    --border-strong: #3d6b75;
    --text: #c5d1d1;
    --text-muted: #9db0b3;
    --link: #6fc1ee;
    --primary: #2179bb;
    --secondary: #2aa198;
    --accent: #9ed6f0;
    --success: #a6d25c;
    --warning: #f2a65a;
    --danger: #ff8a82;
    --caution: #e3b06b;
}
