/* The design's values: the only file with raw colours and sizes. Same values as
   docs/design/ds/invoice-extractor/tokens.css (checked by tests/test_page.py).
   The theme follows the system setting; change a colour in both the light and the dark block. */
:root {
  color-scheme: light;
  --bg: #f7f7f5; --panel: #fff; --text: #1d1d1b; --muted: #6b6b66; --border: #e2e1dc;
  --accent: #2f6fdb; --on-accent: #fff; --accent-text: #2a62c9;
  --warn-bg: #fff4d6; --warn-text: #8a5a00; --ok: #1f8a4c; --ok-text: #17703d; --ok-bg: #e6f4ec; --err: #c0392b;
  --field-border: #85847e; --field-bg: #fcfcfb; --editable-bg: #f2f6fd;
  --focus-ring: 0 0 0 3px color-mix(in srgb, #2f6fdb 30%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171716; --panel: #212120; --text: #ecebe6; --muted: #9b9a94; --border: #34332f;
    --accent: #6ea0ff; --on-accent: #171716; --accent-text: #6ea0ff;
    --warn-bg: #3d3115; --warn-text: #f3c56b; --ok: #4cc27f; --ok-text: #4cc27f; --ok-bg: #16301f; --err: #ff7a6b;
    --field-border: #75746e; --field-bg: #1a1a19; --editable-bg: #1c2433;
    --focus-ring: 0 0 0 3px color-mix(in srgb, #6ea0ff 35%, transparent);
  }
}
/* The same in both themes: the document's paper and highlight, the dialog's backdrop. */
:root {
  --page: #fff; --highlight-bg: rgba(255, 196, 0, .30); --highlight-line: #e0a000; --backdrop: rgba(0, 0, 0, .35);
  --shadow-page: 0 1px 3px rgba(0,0,0,.18);
}
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif; --font: var(--font-sans); --leading: 1.45;
  --text-xs: 11px; --text-sm: 12px; --text-md: 13px; --text-base: 14px; --text-lg: 15px; --text-xl: 16px; --text-2xl: 20px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px; --radius-pill: 99px;
  --control-h: 32px; --control-h-sm: 24px; --cell-pad: 6px 10px;
}
