/* Generato da replica/design/tokens.json. Cambia i valori lì e qui, mai i nomi. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --border: #e2e5ea;
  --border-input: #7b838e;
  --text: #15181d;
  --text-muted: #5a626d;
  --accent: #0f766e;
  --accent-soft: #e3f3f1;
  --on-accent: #ffffff;
  --on-accent-soft: #0b5a54;
  --danger: #c62828;
  --success: #1f7a4d;
  --warning: #9a5800;
  --now-line: #d42a2a;

  --ev-blue: #2563eb;
  --ev-green: #15803d;
  --ev-red: #d42a2a;
  --ev-orange: #c2410c;
  --ev-yellow: #9a6100;
  --ev-purple: #7c3aed;
  --ev-teal: #0f766e;
  --ev-gray: #646d7a;
  --ev-on: #ffffff;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 12px;   --lh-xs: 16px;
  --fs-sm: 14px;   --lh-sm: 20px;
  --fs-base: 16px; --lh-base: 24px;
  --fs-lg: 20px;   --lh-lg: 28px;
  --fs-xl: 28px;   --lh-xl: 34px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-pop: 0 12px 32px rgba(16,24,40,.18);

  --t-fast: 120ms; --t-base: 200ms; --ease: cubic-bezier(.2,.8,.2,1);

  --sidebar-w: 256px; --header-h: 56px; --tabbar-h: 56px; --hour-h: 48px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315;
    --surface: #1a1d21;
    --surface-2: #24282d;
    --border: #2f343b;
    --border-input: #79818c;
    --text: #e8eaed;
    --text-muted: #a3aab4;
    --accent: #2dd4bf;
    --accent-soft: #123a36;
    --on-accent: #06201d;
    --on-accent-soft: #99f0e3;
    --danger: #f28b82;
    --success: #6fd39b;
    --warning: #f2c063;
    --now-line: #f28b82;
    --shadow-pop: 0 12px 32px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111315;
  --surface: #1a1d21;
  --surface-2: #24282d;
  --border: #2f343b;
  --border-input: #79818c;
  --text: #e8eaed;
  --text-muted: #a3aab4;
  --accent: #2dd4bf;
  --accent-soft: #123a36;
  --on-accent: #06201d;
  --on-accent-soft: #99f0e3;
  --danger: #f28b82;
  --success: #6fd39b;
  --warning: #f2c063;
  --now-line: #f28b82;
  --shadow-pop: 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}
