:root {
  --nesotera-navy: #183b56;
  --nesotera-ocean: #137b9e;
  --nesotera-teal: #12a3a5;
  --nesotera-paper: #f4f7f6;
  --nesotera-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nesotera-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-control: 8px;
  --radius-panel: 16px;
  --duration-fast: 150ms;
}

:root, [data-theme='light'] {
  color-scheme: light;
  --surface: #f4f7f6;
  --surface-elevated: #ffffff;
  --surface-sunken: #e7eeed;
  --text-primary: #183b56;
  --text-secondary: #526977;
  --text-muted: #5d727c;
  --border-subtle: #d4e0df;
  --border-default: #829994;
  --accent: #087a7d;
  --accent-hover: #06656a;
  --accent-active: #064f55;
  --accent-muted: #d5eeea;
  --on-accent: #ffffff;
  --focus-ring: #087a7d;
  --success: #23754b;
  --success-muted: #e2f2e7;
  --warning: #956016;
  --warning-muted: #fff0d3;
  --danger: #b53646;
  --danger-muted: #fde9eb;
  --info: #216795;
  --info-muted: #e3f0f8;
}

[data-theme='dark'] {
  color-scheme: dark;
  --surface: #102735;
  --surface-elevated: #193b4d;
  --surface-sunken: #0d202c;
  --text-primary: #e6f0f3;
  --text-secondary: #b1c7cf;
  --text-muted: #96afb9;
  --border-subtle: #345361;
  --border-default: #718e9a;
  --accent: #42cfc2;
  --accent-hover: #72dfd4;
  --accent-active: #27b7ab;
  --accent-muted: #174e53;
  --on-accent: #102735;
  --focus-ring: #42cfc2;
  --success: #8ad8a2;
  --success-muted: #183f36;
  --warning: #f5cb7a;
  --warning-muted: #493b23;
  --danger: #ffa1ad;
  --danger-muted: #522d3c;
  --info: #96cbed;
  --info-muted: #1b425e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --surface: #102735;
    --surface-elevated: #193b4d;
    --surface-sunken: #0d202c;
    --text-primary: #e6f0f3;
    --text-secondary: #b1c7cf;
    --text-muted: #96afb9;
    --border-subtle: #345361;
    --border-default: #718e9a;
    --accent: #42cfc2;
    --accent-hover: #72dfd4;
    --accent-active: #27b7ab;
    --accent-muted: #174e53;
    --on-accent: #102735;
    --focus-ring: #42cfc2;
    --success: #8ad8a2;
    --success-muted: #183f36;
    --warning: #f5cb7a;
    --warning-muted: #493b23;
    --danger: #ffa1ad;
    --danger-muted: #522d3c;
    --info: #96cbed;
    --info-muted: #1b425e;
  }
}
