/* ─────────────────────────────────────────────────────────────────────────
   Ten Goede design tokens.

   Surfaces: the sidebar sits on the desk; the work is one white sheet.
   Hairlines separate; boxes are rare; shadows only for things that float.

   Colour carries meaning, and only these meanings:
   - ink: primary actions and text
   - accent (cobalt): selection, links, focus
   - ok / warn / bad / info: status, ALWAYS paired with an icon or word
   - evidence: measured (slate) · interview (teal) · ai (violet) · proposal (amber)
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --desk: #f4f3f0;
  --sheet: #ffffff;
  --sunk: #f8f7f5;
  --hover: #f1f0ed;
  --press: #e9e7e3;
  --line: #e7e5e1;
  --line-2: #d6d3cd;
  --ink: #17181b;
  --ink-2: #4a4c52;
  --ink-3: #5c5e64;
  --ink-4: #6e7076;   /* ≥ 4.5:1 on sheet and sunk: also used for small text */

  --accent: #2c56d8;
  --accent-ink: #1f43b5;
  --accent-soft: #ebf0fd;
  --accent-line: #c9d6f8;
  --on-ink: #ffffff;

  --ok: #1d7a4c;      --ok-soft: #e6f4ec;    --ok-line: #bfe2cd;
  --warn: #9a5b00;    --warn-soft: #fdf2dc;  --warn-line: #f1d79d;
  --bad: #c0362c;     --bad-soft: #fcebe8;   --bad-line: #f4c4bd;
  --info: #2c56d8;    --info-soft: #ebf0fd;
  --mute-soft: #efeeeb;

  --ev-measured: #475569;   --ev-measured-soft: #eef1f5;
  --ev-interview: #0f766e;  --ev-interview-soft: #e3f3f1;
  --ev-ai: #6d4fd1;         --ev-ai-soft: #f1edfc;  --ev-ai-line: #d9cff6;
  --ev-proposal: #a35a00;   --ev-proposal-soft: #fcf1e1;

  /* sequential scale for heatmaps (low → high risk); always shown with a label */
  --heat-0: #eef6f1; --heat-1: #f8f1da; --heat-2: #fbe2c6; --heat-3: #f7c9bd;

  --shadow-s: 0 1px 2px rgba(23, 24, 27, .06);
  --shadow: 0 1px 2px rgba(23, 24, 27, .05), 0 8px 24px rgba(23, 24, 27, .08);
  --shadow-lg: 0 24px 64px rgba(23, 24, 27, .18), 0 2px 8px rgba(23, 24, 27, .08);
  --scrim: rgba(23, 24, 27, .28);
  --focus: 0 0 0 2px var(--sheet), 0 0 0 4px var(--accent);

  --f-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 12px; --t-s: 13px; --t-m: 14px; --t-l: 16px; --t-xl: 20px; --t-xxl: 26px;
  --r-s: 6px; --r: 8px; --r-l: 12px;
  --side-w: 232px; --top-h: 52px; --drawer-w: 560px; --gut: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #111214; --sheet: #18191c; --sunk: #1d1e22; --hover: #222327; --press: #2a2b30; --line: #2a2b30; --line-2: #3a3b41;
    --ink: #ececee; --ink-2: #b9bac0; --ink-3: #9a9ba2; --ink-4: #7d7e85;
    --accent: #7c9bf5; --accent-ink: #a3b9f8; --accent-soft: #1b2440; --accent-line: #2d3b66; --on-ink: #111214;
    --ok: #5cc28e; --ok-soft: #13291e; --ok-line: #1f4a33; --warn: #e3a54d; --warn-soft: #2e2311; --warn-line: #4d3a17;
    --bad: #f2867a; --bad-soft: #351816; --bad-line: #5a2622; --info: #7c9bf5; --info-soft: #1b2440; --mute-soft: #24252a;
    --ev-measured: #a5b1c2; --ev-measured-soft: #22262d; --ev-interview: #5ec4b9; --ev-interview-soft: #132a28;
    --ev-ai: #b2a0f5; --ev-ai-soft: #251f3d; --ev-ai-line: #3d3366; --ev-proposal: #e6a75c; --ev-proposal-soft: #2e2213;
    --heat-0: #17291f; --heat-1: #2e2a17; --heat-2: #3a2816; --heat-3: #3d1d19;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px rgba(0,0,0,.6); --scrim: rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #111214; --sheet: #18191c; --sunk: #1d1e22; --hover: #222327; --press: #2a2b30; --line: #2a2b30; --line-2: #3a3b41;
  --ink: #ececee; --ink-2: #b9bac0; --ink-3: #9a9ba2; --ink-4: #7d7e85;
  --accent: #7c9bf5; --accent-ink: #a3b9f8; --accent-soft: #1b2440; --accent-line: #2d3b66; --on-ink: #111214;
  --ok: #5cc28e; --ok-soft: #13291e; --ok-line: #1f4a33; --warn: #e3a54d; --warn-soft: #2e2311; --warn-line: #4d3a17;
  --bad: #f2867a; --bad-soft: #351816; --bad-line: #5a2622; --info: #7c9bf5; --info-soft: #1b2440; --mute-soft: #24252a;
  --ev-measured: #a5b1c2; --ev-measured-soft: #22262d; --ev-interview: #5ec4b9; --ev-interview-soft: #132a28;
  --ev-ai: #b2a0f5; --ev-ai-soft: #251f3d; --ev-ai-line: #3d3366; --ev-proposal: #e6a75c; --ev-proposal-soft: #2e2213;
  --heat-0: #17291f; --heat-1: #2e2a17; --heat-2: #3a2816; --heat-3: #3d1d19;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px rgba(0,0,0,.6); --scrim: rgba(0,0,0,.55);
  color-scheme: dark;
}
