/* LifeOS — l'unico file di token: colori, spazi, raggi, tipografia. Tutto il resto li usa. */
:root {
  --bg: #f4f2ec; --surface: #ffffff; --surface-2: #ebe8e0; --text: #17181c; --muted: #6a6c78; --line: #e2dfd6;
  --accent: #1d6b5a; --accent-ink: #ffffff; --accent-soft: #d9ece5; --amber: #c98a2b; --amber-soft: #f6e8cf; --danger: #b8402f;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 8px 24px -12px rgba(20, 20, 30, .18);
  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --tap: 48px; --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fs-xs: .75rem; --fs-s: .875rem; --fs-m: 1rem; --fs-l: 1.25rem; --fs-xl: 1.75rem; --fs-xxl: 2.5rem;
  --dur: 160ms;
  color-scheme: light;
}
/* Scuro: esplicito (data-theme) o di sistema (classe auto-dark messa dallo script in head). */
:root[data-theme="dark"], :root.auto-dark:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0f1013; --surface: #191a20; --surface-2: #23242c; --text: #ecedf1; --muted: #9a9ca9; --line: #2b2c35;
  --accent: #4fcfa3; --accent-ink: #062018; --accent-soft: #163229; --amber: #f0b458; --amber-soft: #3a2c15; --danger: #ef7a6a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
}
