/* GetDoneEZ design tokens (Prompt 28 B1): ONE file for the colours, type, spacing, radii and shadows of the new style (the Schedule and the Materials screens of the dashboard).
   docs/DESIGN.md says when to use each one and the reading rules (contrast AA; the field link 7:1). tests/check_p28_tokens.py checks every pair of text and background below.
   Themes: the dashboard switches with html.dark (its theme button); the field link and the public pages follow the phone (prefers-color-scheme) through html.gdz-auto.
   The values are the dashboard's own (static/theme.css --hx-*, static/ds.css --ds-*). The --f-* tokens are the field link's stronger versions: in the sun of a job site its main text needs 7:1. */
:root {
  /* surfaces */
  --t-bg: #f3f6fa; --t-surface: #ffffff; --t-surface-2: #edf2f7; --t-overlay: rgba(11, 22, 38, .55);
  /* text: main (titles, questions, names, values, button labels) and secondary (hints, dates, counts only) */
  --t-text: #0b1626; --t-text-2: #3f4f66; --t-label: #55667c;
  /* lines: a quiet divider, and the border of buttons and fields (3:1 on the surface) */
  --t-line: rgba(11, 22, 38, .09); --t-line-strong: #6b7a8f;
  /* the accent (primary action), and the states */
  --t-accent: #0e7490; --t-on-accent: #ffffff; --t-accent-soft: #e0f7fb;
  --t-ok: #047857; --t-on-ok: #ffffff; --t-ok-bg: #e3f6ee;
  --t-warn: #b45309; --t-warn-bg: #fef3e2;
  --t-bad: #be123c; --t-on-bad: #ffffff; --t-bad-bg: #fde8ec;
  --t-info: #2563d6; --t-info-bg: #e8f0fd;   /* P29 B: "bought, on the way" (Materials); the dashboard's --st-sent */
  --t-disabled-bg: #e4e9f0; --t-disabled-text: #5b6b80;
  /* type: one family, five sizes, weights 400 / 600 / 700 */
  --t-font: 'Figtree', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-fs-12: 12px; --t-fs-14: 14px; --t-fs-16: 16px; --t-fs-24: 24px; --t-fs-32: 32px;
  /* spacing, radii, shadow */
  --t-gap: 16px; --t-pad: 20px; --t-r: 12px; --t-r-btn: 8px; --t-r-pill: 999px; --t-shadow: 0 1px 2px rgba(11, 22, 38, .06);
  /* the field link: the same colours, deeper where its main text needs 7:1; big thumbs */
  --f-accent: #0a5a70; --f-on-accent: #ffffff; --f-text-2: #2f3e54;
  --f-ok: #025a45; --f-on-ok: #ffffff; --f-ok-bg: #e3f6ee;
  --f-warn: #8a3f05; --f-warn-bg: #fff7e6; --f-bad: #9f1239; --f-on-bad: #ffffff; --f-bad-bg: #fdecef;
  --f-line: #6b7a8f; --f-tap: 56px; --f-fs: 17px; --f-fs-q: 22px; --f-r: 14px;
}
html.dark {
  color-scheme: dark;
  --t-bg: #04070D; --t-surface: #0A1322; --t-surface-2: #0F1F33; --t-overlay: rgba(0, 0, 0, .65);
  --t-text: #E3ECF7; --t-text-2: #A9B8CC; --t-label: #8A9BB3;
  --t-line: rgba(227, 236, 247, .08); --t-line-strong: #5d7595;
  --t-accent: #46E3F5; --t-on-accent: #04202a; --t-accent-soft: rgba(70, 227, 245, .12);
  --t-ok: #5BE3A0; --t-on-ok: #04202a; --t-ok-bg: #0c2a1d;
  --t-warn: #FFB547; --t-warn-bg: #2a1d05;
  --t-bad: #FF7A8F; --t-on-bad: #2a0610; --t-bad-bg: #2d0f16;
  --t-info: #5B9DFF; --t-info-bg: #0d1d36;
  --t-disabled-bg: #16253a; --t-disabled-text: #93a3b9;
  --t-shadow: none;
  --f-accent: #46E3F5; --f-on-accent: #04202a; --f-text-2: #C3D0E0;
  --f-ok: #5BE3A0; --f-on-ok: #04202a; --f-ok-bg: #0c2a1d;
  --f-warn: #FFB547; --f-warn-bg: #2a1d05; --f-bad: #FF7A8F; --f-on-bad: #2a0610; --f-bad-bg: #2d0f16;
  --f-line: #5d7595;
}
@media (prefers-color-scheme: dark) {
  html.gdz-auto {
    color-scheme: dark;
    --t-bg: #04070D; --t-surface: #0A1322; --t-surface-2: #0F1F33; --t-overlay: rgba(0, 0, 0, .65);
    --t-text: #E3ECF7; --t-text-2: #A9B8CC; --t-label: #8A9BB3;
    --t-line: rgba(227, 236, 247, .08); --t-line-strong: #5d7595;
    --t-accent: #46E3F5; --t-on-accent: #04202a; --t-accent-soft: rgba(70, 227, 245, .12);
    --t-ok: #5BE3A0; --t-on-ok: #04202a; --t-ok-bg: #0c2a1d;
    --t-warn: #FFB547; --t-warn-bg: #2a1d05;
    --t-bad: #FF7A8F; --t-on-bad: #2a0610; --t-bad-bg: #2d0f16;
  --t-info: #5B9DFF; --t-info-bg: #0d1d36;
    --t-disabled-bg: #16253a; --t-disabled-text: #93a3b9;
    --t-shadow: none;
    --f-accent: #46E3F5; --f-on-accent: #04202a; --f-text-2: #C3D0E0;
    --f-ok: #5BE3A0; --f-on-ok: #04202a; --f-ok-bg: #0c2a1d;
    --f-warn: #FFB547; --f-warn-bg: #2a1d05; --f-bad: #FF7A8F; --f-on-bad: #2a0610; --f-bad-bg: #2d0f16;
    --f-line: #5d7595;
  }
}
