/* Authoritative static preset: macos. */
:root {
  --background: hsl(240 17% 97%);
  --foreground: hsl(0 0% 7%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(0 0% 7%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(0 0% 7%);
  /* Apple system-blue hue, lowered just enough for white small text (4.95:1). */
  --primary: hsl(211 100% 44%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(240 12% 95%);
  --secondary-foreground: hsl(0 0% 7%);
  --muted: hsl(240 8% 91%);
  /* Readable even when muted text sits on the muted fill itself (4.63:1). */
  --muted-foreground: hsl(240 3% 41%);
  --accent: hsl(211 50% 96%);
  --accent-foreground: hsl(211 100% 36%);
  /* Keep white destructive labels AA-readable in the light theme (5.69:1). */
  --destructive: hsl(2 80% 44%);
  --destructive-foreground: hsl(0 0% 100%);
  --on-destructive: hsl(0 0% 100%);
  --border: hsl(240 3% 78%);
  --input: hsl(240 8% 93%);
  --divider: hsl(240 4% 83%);
  --ring: hsl(211 100% 50%);
  --radius: 0.625rem;
  --overlay: hsl(240 6% 10% / 0.32);
  --sidebar-background: hsl(240 12% 94%);
  --sidebar-foreground: hsl(0 0% 7%);
  --sidebar-primary: hsl(211 100% 44%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(211 50% 93%);
  --sidebar-accent-foreground: hsl(211 100% 36%);
  --sidebar-border: hsl(240 3% 82%);
  --sidebar-ring: hsl(211 100% 50%);
  --chart-1: hsl(211 100% 50%);
  --chart-2: hsl(142 52% 40%);
  --chart-3: hsl(262 60% 56%);
  --chart-4: hsl(35 100% 48%);
  --chart-5: hsl(2 100% 59%);
  --warning: hsl(35 100% 48%);
  --warning-background: hsl(35 100% 95%);
  --warning-foreground: hsl(28 80% 30%);
  --warning-border: hsl(35 90% 78%);
  --success: hsl(142 71% 45%);
  --success-background: hsl(142 60% 95%);
  --success-foreground: hsl(142 60% 24%);
  --success-border: hsl(142 55% 76%);
  --destructive-background: hsl(2 100% 96%);
  --destructive-border: hsl(2 90% 80%);
  --info: hsl(211 100% 50%);
  --info-background: hsl(211 100% 96%);
  --info-foreground: hsl(211 80% 30%);
  --info-border: hsl(211 90% 80%);
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, "Courier New", monospace;
  --font-size-base: 0.8125rem;
  --font-size-sm: 0.75rem;
  --font-size-xs: 0.6875rem;
  --font-size-lg: 0.9375rem;
  --font-size-xl: 1.0625rem;
  --line-height-base: 1.47;
  --letter-spacing-base: -0.022em;
  --radius-xs: calc(0.625rem - 6px);
  --radius-sm: calc(0.625rem - 4px);
  --radius-md: calc(0.625rem - 2px);
  --radius-lg: 0.625rem;
  --radius-xl: calc(0.625rem + 4px);
  --radius-2xl: calc(0.625rem + 8px);
  --radius-3xl: calc(0.625rem + 12px);
  --radius-4xl: calc(0.625rem + 16px);
}

.dark {
  --background: hsl(240 5% 8%);
  --foreground: hsl(0 0% 95%);
  --card: hsl(240 3% 15%);
  --card-foreground: hsl(0 0% 95%);
  --popover: hsl(240 3% 20%);
  --popover-foreground: hsl(0 0% 95%);
  --primary: hsl(211 100% 58%);
  /* Bright system blue needs dark ink for compact controls (5.59:1). */
  --primary-foreground: hsl(0 0% 9%);
  --secondary: hsl(240 3% 20%);
  --secondary-foreground: hsl(0 0% 88%);
  --muted: hsl(240 3% 11%);
  /* Clears AA on background, card, popover, muted, and accent surfaces. */
  --muted-foreground: hsl(240 4% 62%);
  --accent: hsl(211 25% 19%);
  --accent-foreground: hsl(211 100% 72%);
  --destructive: hsl(3 100% 62%);
  --destructive-foreground: hsl(0 0% 9%);
  --border: hsl(240 3% 22%);
  --input: hsl(240 3% 22%);
  --divider: hsl(240 4% 46% / 0.18);
  --ring: hsl(211 100% 58%);
  --radius: 0.625rem;
  --overlay: hsl(0 0% 0% / 0.55);
  --sidebar-background: hsl(240 5% 5%);
  --sidebar-foreground: hsl(0 0% 90%);
  --sidebar-primary: hsl(211 100% 58%);
  --sidebar-primary-foreground: hsl(0 0% 9%);
  --sidebar-accent: hsl(211 22% 16%);
  --sidebar-accent-foreground: hsl(211 100% 72%);
  --sidebar-border: hsl(240 3% 22%);
  --sidebar-ring: hsl(211 100% 58%);
  --chart-1: hsl(211 100% 58%);
  --chart-2: hsl(142 52% 50%);
  --chart-3: hsl(262 60% 65%);
  --chart-4: hsl(35 100% 56%);
  --chart-5: hsl(3 100% 62%);
  --warning: hsl(35 100% 56%);
  --warning-background: hsl(35 70% 10%);
  --warning-foreground: hsl(35 95% 70%);
  --warning-border: hsl(35 50% 26%);
  --success: hsl(142 60% 50%);
  --success-background: hsl(142 50% 9%);
  --success-foreground: hsl(142 65% 68%);
  --success-border: hsl(142 40% 24%);
  --destructive-background: hsl(3 70% 11%);
  --destructive-border: hsl(3 55% 30%);
  --info: hsl(211 100% 58%);
  --info-background: hsl(211 70% 11%);
  --info-foreground: hsl(211 90% 72%);
  --info-border: hsl(211 50% 30%);
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, "Courier New", monospace;
  --font-size-base: 0.8125rem;
  --font-size-sm: 0.75rem;
  --font-size-xs: 0.6875rem;
  --font-size-lg: 0.9375rem;
  --font-size-xl: 1.0625rem;
  --line-height-base: 1.47;
  --letter-spacing-base: -0.022em;
  --radius-xs: calc(0.625rem - 6px);
  --radius-sm: calc(0.625rem - 4px);
  --radius-md: calc(0.625rem - 2px);
  --radius-lg: 0.625rem;
  --radius-xl: calc(0.625rem + 4px);
  --radius-2xl: calc(0.625rem + 8px);
  --radius-3xl: calc(0.625rem + 12px);
  --radius-4xl: calc(0.625rem + 16px);
}
