:root {
  color-scheme: light;
  --token-version: "2026.10.3";
  /* Current public and authenticated app palette. */
  --color-sea-glass: #3e6f6b;
  --color-sage: #78938a;
  --color-mint: #7dc9bc;
  --color-ink: #193d3b;
  --color-ink-muted: #526c66;
  --color-white-sand: #fffdfa;
  --color-white: #ffffff;
  --color-sea-pale: #e8f1ed;
  --color-unread: #e85d86;
  --color-sunset-fill: #fff2ec;
  --color-sunset-ink: #85441f;
  --color-lagoon-fill: #ebf7ff;
  --color-lagoon-ink: #115f86;
  --color-gold-fill: #fff3e4;
  --color-gold-ink: #764f0f;
  --color-event-fill: #e9faf4;
  --color-event-ink: #316354;
  --color-hibiscus-fill: #fff1f4;
  --color-hibiscus-ink: #90314e;
  --color-orchid-fill: #f5effb;
  --color-orchid-ink: #634184;
  /* Preserve the existing decorative hero background independently of UI tokens. */
  --hero-base: #fff9f2;
  --shadow-ink: 25 61 59;
  --color-bg: var(--color-white-sand);
  --color-surface: var(--color-white);
  --color-surface-raised: var(--color-white);
  --color-surface-elevated: var(--color-white);
  --color-surface-muted: #f4f8f6;
  --color-surface-selected: var(--color-sea-pale);
  --color-surface-tint: var(--color-sea-pale);
  --color-text: var(--color-ink);
  --color-text-strong: var(--color-ink);
  --color-heading: var(--color-ink);
  --color-text-muted: var(--color-ink-muted);
  --color-text-subtle: var(--color-ink-muted);
  --color-border: #d5e3dd;
  --color-border-strong: #b7cec3;
  --color-accent: var(--color-sea-glass);
  --color-accent-strong: #315b57;
  --color-accent-contrast: var(--color-white);
  --color-action: var(--color-sea-glass);
  --color-action-contrast: var(--color-white);
  --color-focus: var(--color-sea-glass);
  --color-neutral-surface: var(--color-sea-pale);
  --color-positive: #2f6c5a;
  --color-positive-surface: #e8f5ef;
  --color-warning: #805b24;
  --color-warning-surface: #fff2d9;
  --color-danger: #b64763;
  --color-danger-surface: #fdecef;
  --color-avatar-surface: var(--color-sea-pale);
  --color-avatar-foreground: var(--color-ink);
  --color-avatar-border: var(--color-border);
  --color-event-date-accent: var(--color-event-fill);
  --color-event-date-surface: var(--color-event-fill);
  --color-event-date-contrast: var(--color-event-ink);
  --color-photo-add-border: var(--color-border);
  --color-photo-add-surface: var(--color-white);
  --color-overlay: rgb(25 61 59 / .26);
  --color-skeleton: var(--color-sea-pale);
  --color-disabled: #b7cec3;
  /* Typography */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --text-xs: .72rem;
  --text-sm: .82rem;
  --text-md: 1rem;
  --text-lg: 1.18rem;
  --text-xl: 1.55rem;
  --text-2xl: 2.35rem;
  --text-display: clamp(3.2rem, 7vw, 6.4rem);
  --leading-tight: 1.04;
  --leading-body: 1.6;
  --tracking-tight: -.045em;
  --tracking-label: .1em;

  /* Spacing and geometry */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --control-height: 48px;
  --control-height-compact: 44px;
  --target-min: 44px;
  --safe-area-inline: max(16px, env(safe-area-inset-left));
  --safe-area-inline-end: max(16px, env(safe-area-inset-right));
  --safe-area-bottom: env(safe-area-inset-bottom);
  --shell-sidebar-width: 248px;
  --shell-mobile-nav-height: 64px;
  --layer-header: 10;
  --layer-popover: 30;
  --layer-sheet: 40;
  --layer-modal: 50;
  --layer-toast: 60;
  --focus-width: 2px;
  --focus-offset: 2px;
  --max-content: 1240px;
  --shadow-sm: 0 6px 20px rgb(var(--shadow-ink) / .07);
  --shadow-md: 0 18px 50px rgb(var(--shadow-ink) / .12);
  --shadow-focus: 0 0 0 3px var(--color-focus);
  --motion-fast: 140ms;
  --motion-standard: 200ms;
  --ease-standard: cubic-bezier(.2, .75, .25, 1);
  --motion-reduced: 1ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --hero-base: #1f1a1e;
  --shadow-ink: 0 0 0;
  --color-bg: #142320;
  --color-surface: #20332e;
  --color-surface-raised: #20332e;
  --color-surface-elevated: #294039;
  --color-surface-muted: #1a2c26;
  --color-surface-selected: #2e4941;
  --color-surface-tint: #2e4941;
  --color-text: #e5f0eb;
  --color-text-strong: #e5f0eb;
  --color-heading: #e5f0eb;
  --color-text-muted: #adbfba;
  --color-text-subtle: #adbfba;
  --color-border: #3a504a;
  --color-border-strong: #607b70;
  --color-accent: var(--color-mint);
  --color-accent-strong: #a2decf;
  --color-accent-contrast: #142320;
  --color-action: var(--color-mint);
  --color-action-contrast: #142320;
  --color-focus: var(--color-mint);
  --color-neutral-surface: #2e4941;
  --color-positive: #9bd9bf;
  --color-positive-surface: #23463c;
  --color-warning: #ffd992;
  --color-warning-surface: #4b3519;
  --color-danger: #ff9fb2;
  --color-danger-surface: #512f39;
  --color-avatar-surface: #2e4941;
  --color-avatar-foreground: #e5f0eb;
  --color-avatar-border: #3a504a;
  --color-event-date-accent: #23352f;
  --color-event-date-surface: #23352f;
  --color-event-date-contrast: #a4cfc0;
  --color-photo-add-border: #3a504a;
  --color-photo-add-surface: #20332e;
  --color-overlay: rgb(0 0 0 / .52);
  --color-skeleton: #2e4941;
  --color-disabled: #607b70;
  --color-sunset-fill: #42291d;
  --color-sunset-ink: #e8b8a1;
  --color-lagoon-fill: #1c3342;
  --color-lagoon-ink: #a0cbe6;
  --color-gold-fill: #3c2d1a;
  --color-gold-ink: #dbbf9c;
  --color-event-fill: #23352f;
  --color-event-ink: #a4cfc0;
  --color-hibiscus-fill: #45252d;
  --color-hibiscus-ink: #f7acbc;
  --color-orchid-fill: #342841;
  --color-orchid-ink: #ceb8ea;
}

[data-contrast="more"] {
  --color-border: var(--color-border-strong);
  --color-text-muted: var(--color-text);
  --shadow-focus: 0 0 0 4px var(--color-focus);
  --color-border-strong: var(--color-text);
  --color-disabled: var(--color-text-muted);
}

/* Component tokens inherit semantic roles; product surfaces should not invent new hex values. */
[data-component="button"] { --component-control-height: var(--control-height); --component-radius: var(--radius-md); --component-action: var(--color-action); }
[data-component="field"] { --component-control-height: var(--control-height); --component-radius: var(--radius-md); --component-focus: var(--color-focus); }
[data-component="overlay"] { --component-overlay: var(--color-overlay); --component-layer: var(--layer-modal); --component-radius: var(--radius-lg); }
[data-component="navigation"] { --component-nav-height: var(--shell-mobile-nav-height); --component-sidebar-width: var(--shell-sidebar-width); }

@media (prefers-contrast: more) {
  :root:not([data-contrast="less"]) {
    --color-border: var(--color-border-strong);
    --color-text-muted: var(--color-text);
  }
}

