/* Vasa Ops design system: CSS variables generated from vasa-ops-tokens.json */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&display=swap");

:root {
  color-scheme: light;
  /* Colour */
  --ground: #ffffff;
  --surface: #f5f6f8;
  --line: #e3e6eb;
  --control: #8a919c;
  --ink: #15181d;
  --ink-muted: #5c6370;
  --accent: #2747c7;
  --on-accent: #ffffff;
  --accent-tint: #eceffb;
  --on-track: #1f7a52;
  --watch: #8a5a00;
  --needs-help: #b4441a;
  --rag-green: #2e8b57;
  --rag-amber: #c27c0e;
  --rag-red: #b3261e;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-title-size: 24px;
  --text-title-line: 30px;
  --text-title-weight: 600;
  --text-heading-size: 17px;
  --text-heading-line: 24px;
  --text-heading-weight: 600;
  --text-body-size: 15px;
  --text-body-line: 22px;
  --text-body-weight: 400;
  --text-body-strong-size: 15px;
  --text-body-strong-line: 22px;
  --text-body-strong-weight: 600;
  --text-small-size: 13px;
  --text-small-line: 18px;
  --text-small-weight: 400;
  --text-number-size: 24px;
  --text-number-line: 28px;
  --text-number-weight: 600;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #121417;
    --surface: #1a1d22;
    --line: #2a2e35;
    --control: #6b7380;
    --ink: #eceef2;
    --ink-muted: #9aa2ae;
    --accent: #8aa0ff;
    --on-accent: #0d1330;
    --accent-tint: #1f2742;
    --on-track: #4cc38a;
    --watch: #e0b43a;
    --needs-help: #f2875a;
    --rag-green: #4cc38a;
    --rag-amber: #e0b43a;
    --rag-red: #f26b6b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #121417;
  --surface: #1a1d22;
  --line: #2a2e35;
  --control: #6b7380;
  --ink: #eceef2;
  --ink-muted: #9aa2ae;
  --accent: #8aa0ff;
  --on-accent: #0d1330;
  --accent-tint: #1f2742;
  --on-track: #4cc38a;
  --watch: #e0b43a;
  --needs-help: #f2875a;
  --rag-green: #4cc38a;
  --rag-amber: #e0b43a;
  --rag-red: #f26b6b;
}

/* Base */
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: var(--text-body-size); line-height: var(--text-body-line); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Core patterns */
.card { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.btn { min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md); font: inherit; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 600; }
.btn-secondary { background: var(--ground); color: var(--ink); border: 1px solid var(--control); }
.input { min-height: 44px; border: 1px solid var(--control); border-radius: var(--radius-md); padding: 0 12px; font: inherit; background: var(--ground); color: var(--ink); }
.label { font-size: var(--text-small-size); line-height: var(--text-small-line); color: var(--ink-muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-sm { width: 8px; height: 8px; }
.dot-green { background: var(--rag-green); }
.dot-amber { background: var(--rag-amber); }
.dot-red { background: var(--rag-red); }
.notice { background: var(--accent-tint); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); font-size: var(--text-small-size); }
.tracker { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-1); }
.tracker span { height: 8px; border-radius: var(--radius-sm); background: var(--line); }
.tracker .done { background: var(--ink-muted); }
.tracker .current { background: var(--accent); }
.meter { height: 6px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
