/* The one source of design tokens for the whole app AND the diagnostic test.
   - The app links this file (templates/base.html).
   - tools/build_diagnostic.py copies it into the test page, so the published copy matches too.
   Change a color or font here and both follow. Tokens only: no selectors other than :root,
   so it's safe to inline anywhere. Dark values are written twice on purpose: once for the OS
   setting, once for an explicit data-theme="dark" (the diagnostic's theme toggle). */
:root {
  color-scheme: light;
  /* surfaces + text */
  --bg: #f6f7f5; --sheet: #ffffff; --ink: #1b2328; --muted: #5d6a70; --line: #dde2df; --chip: #eef1ef;
  /* accent: teal */
  --accent: #1f6a63; --accent-ink: #ffffff; --accent-soft: #e3efec;
  /* status */
  --mark: #b5651d; --bad: #b3372c; --good: #23784a;
  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-h1: 28px; --fs-h2: 19px; --fs-h3: 15px; --fs-body: 15px; --fs-small: 13px; --fs-kicker: 12px;
  --kicker-track: .06em;
  /* layout */
  --page-w: 1060px; --nav-h: 52px; --radius: 12px; --radius-sm: 8px;
  /* app names for the same roles */
  --card: var(--sheet); --row-hover: var(--chip); --focus: var(--accent); --warn: var(--mark);
  --rw: #6a3fb5; --math: var(--good);
  /* form controls */
  --field: var(--sheet); --field-line: #cfd7d3; --field-hover: #a9b5b0; --field-h: 38px;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6a70' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235d6a70' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #121618; --sheet: #1a2023; --ink: #e7ecea; --muted: #9aa8a6; --line: #2c3538; --chip: #232b2e;
  --accent: #5fb3a8; --accent-ink: #0d1a18; --accent-soft: #1f3330;
  --mark: #e0a060; --bad: #ef7a6c; --good: #6cc98f;
  --rw: #b79aff;
  --field: #161c1f; --field-line: #36424a; --field-hover: #4d5b61;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa8a6' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E");
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121618; --sheet: #1a2023; --ink: #e7ecea; --muted: #9aa8a6; --line: #2c3538; --chip: #232b2e;
  --accent: #5fb3a8; --accent-ink: #0d1a18; --accent-soft: #1f3330;
  --mark: #e0a060; --bad: #ef7a6c; --good: #6cc98f;
  --rw: #b79aff;
  --field: #161c1f; --field-line: #36424a; --field-hover: #4d5b61;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa8a6' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E");
}
