/* ── Theme: light (Calm) ───────────────────────────────────────────────────
   Calm replaced the old white Light theme on 2026-10-08 (user decision, docs/
   roadmap-decisions.md): a mid-luminance warm stone page (about 87%
   lightness), surfaces one step lighter or darker, dark slate text and
   pastel fills for the status roles. The selector stays [data-theme="light"]
   so stored preferences, lib/theme.js and the pre-paint script are unchanged;
   the control still reads Light / Dark / System. Pastels sit in the -dim
   fills; the foreground of each pair stays deep enough for 4.5:1 text
   (DESIGN.md §2). Semantic overrides only: every colour token in
   theme-dark.css is redefined here (a test checks the two lists match).
   Design reference: docs/design/calm-theme/. */
html[data-theme="light"] {
    color-scheme: light;
    --bg: var(--p-stone-200);
    --surface: var(--p-stone-100);
    --surface-2: var(--p-stone-150);
    --surface-3: var(--p-stone-300);
    --sunken: var(--p-stone-300);
    --hover: var(--p-stone-300);
    --rail-bg: var(--p-stone-300);
    --border: var(--p-stone-450);
    --border-strong: var(--p-stone-700);
    --border-sub: var(--p-stone-400);
    --text: var(--p-ink-900);
    --text-2: var(--p-ink-750);
    --text-3: var(--p-ink-650);
    --accent: var(--p-calm-teal-650);
    --accent-hover: var(--p-calm-teal-700);
    --accent-text: var(--p-calm-teal-700);
    --accent-dim: var(--p-calm-teal-200);
    --accent-border: color-mix(in srgb, var(--p-calm-teal-650) 40%, transparent);
    --btn-accent-text: var(--p-cream-50);
    --on-accent: var(--p-cream-50);
    --focus: var(--p-calm-teal-600);
    --warn: var(--p-calm-orange-700);
    --warn-dim: var(--p-calm-peach-150);
    --error: var(--p-calm-red-650);
    --error-dim: var(--p-calm-rose-150);
    --success: var(--p-calm-green-700);
    --success-dim: var(--p-calm-mint-200);
    --info: var(--p-calm-blue-650);
    --info-dim: var(--p-calm-sky-150);
    --ghost: var(--p-calm-slate-650);
    --ghost-dim: var(--p-stone-ghost);
    --conflict: var(--p-calm-plum-650);
    --conflict-dim: var(--p-calm-orchid-150);
    --chart-1: var(--p-calm-chart-blue);
    --chart-2: var(--p-calm-chart-violet);
    --chart-3: var(--p-calm-chart-green);
    --chart-4: var(--p-calm-chart-amber);
    --chart-5: var(--p-calm-chart-cyan);
    --chart-6: var(--p-calm-chart-rose);
    --chart-error-2: var(--p-calm-chart-rose);
    --chart-axis: rgba(52,44,32,0.34);
    --chart-grid: rgba(52,44,32,0.12);
    --overlay-bg: rgba(52,44,32,0.42);
    --login-overlay-bg: rgba(52,44,32,0.55);
    --scrim: rgba(52,44,32,0.16);
    --stripe-bg: transparent;
    --shadow-1: 0 1px 2px rgba(52,44,32,0.08);
    --shadow-2: 0 6px 18px rgba(52,44,32,0.12), 0 1px 3px rgba(52,44,32,0.06);
    --shadow-3: 0 24px 60px rgba(52,44,32,0.22), 0 4px 12px rgba(52,44,32,0.08);
    --body-font-size: 14px;
    --body-font-weight: 450;
    --table-font-size: 13.5px;
    --table-font-weight: 450;
    --mono-font-weight: 500;
    --icon-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23515861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23515861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}
