/* Adapted from @ordo/ui internal-theme, v0.57.4. Plain CSS token snapshot. */
:root {
  /* --- Typography --- */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Core surfaces --- */
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 3.9%);

  --card: hsl(0 0% 100%);
  --card-foreground: hsl(0 0% 3.9%);
  --card-elevated: hsl(0 0% 100%);

  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(0 0% 3.9%);

  /* --- Primary action --- */
  --primary: hsl(230 78% 56%);
  --primary-foreground: hsl(0 0% 100%);

  /* --- Secondary action --- */
  --secondary: hsl(0 0% 96.1%);
  --secondary-foreground: hsl(0 0% 9%);

  /* --- Muted / subdued --- */
  --muted: hsl(0 0% 96.1%);
  --muted-foreground: hsl(0 0% 45.1%);

  /* --- Accent --- */
  --accent: hsl(0 0% 96.1%);
  --accent-foreground: hsl(0 0% 9%);

  /* --- Destructive --- */
  --destructive: hsl(0 84.2% 60.2%);
  --destructive-foreground: hsl(0 0% 98%);

  /* --- Borders & forms --- */
  --border: hsl(0 0% 89.8%);
  --input: hsl(0 0% 89.8%);
  --ring: hsl(230 78% 56%);

  /* --- Radius --- */
  --radius: 0.5rem;

  /* --- Charts (monochrome ramp, light → dark) --- */
  --chart-1: hsl(0 0% 87%);
  --chart-2: hsl(0 0% 55%);
  --chart-3: hsl(0 0% 44%);
  --chart-4: hsl(0 0% 37%);
  --chart-5: hsl(0 0% 27%);

  /* --- Sidebar --- */
  --sidebar: hsl(0 0% 98%);
  --sidebar-foreground: hsl(0 0% 3.9%);
  --sidebar-primary: hsl(230 78% 56%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(0 0% 96.1%);
  --sidebar-accent-foreground: hsl(0 0% 9%);
  --sidebar-border: hsl(0 0% 91%);
  --sidebar-ring: hsl(230 78% 56%);

  /* --- Links --- */
  --link: hsl(230 78% 56%);
  --link-hover: hsl(230 78% 42%);

  /* --- Status: success --- */
  --success: hsl(142 76% 90%);
  --success-foreground: hsl(142 64% 34%);

  /* --- Status: warning --- */
  --warning: hsl(48 96% 95%);
  --warning-foreground: hsl(32 80% 35%);
  --warning-border: hsl(48 96% 78%);
  --surface-sunken: hsl(220 13% 97%);
}

/* Canonical Ordo internal dark theme. */
html[data-ordo-ui='internal'].dark {
  /* --- Core surfaces — verbatim from Tasker's palette --- */
  --background: #202023;
  --foreground: hsl(0 0% 98%);

  --card: #292a2d;
  --card-foreground: hsl(0 0% 98%);
  --card-elevated: hsl(225 5% 24%);

  --popover: hsl(225 5% 19%);
  --popover-foreground: hsl(0 0% 98%);

  /* --- Primary action --- */
  --primary: hsl(217 91% 60%);
  --primary-foreground: hsl(0 0% 100%);

  /* --- Secondary action --- */
  --secondary: hsl(225 5% 20%);
  --secondary-foreground: hsl(0 0% 98%);

  /* --- Muted / subdued --- */
  --muted: hsl(225 5% 20%);
  --muted-foreground: #95979d;

  /* --- Accent --- */
  --accent: hsl(225 5% 22%);
  --accent-foreground: hsl(0 0% 98%);

  /* --- Destructive --- */
  --destructive: hsl(0 80% 68%);
  --destructive-foreground: hsl(0 0% 98%);

  /* --- Borders & forms --- */
  --border: hsl(225 4% 23%);
  --input: hsl(225 5% 24%);
  --ring: hsl(217 91% 60%);

  /* --- Charts --- */
  --chart-1: hsl(225 5% 25%);
  --chart-2: hsl(220 3% 40%);
  --chart-3: hsl(220 3% 50%);
  --chart-4: hsl(220 3% 60%);
  --chart-5: hsl(220 3% 72%);

  /* --- Sidebar --- */
  --sidebar: #1b1b1e;
  --sidebar-foreground: hsl(0 0% 98%);
  --sidebar-primary: hsl(217 91% 60%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(225 5% 18%);
  --sidebar-accent-foreground: hsl(0 0% 98%);
  --sidebar-border: hsl(225 5% 18%);
  --sidebar-ring: hsl(217 91% 60%);

  /* --- Links --- */
  --link: hsl(217 91% 60%);
  --link-hover: hsl(217 91% 72%);

  /* --- Status: success --- */
  --success: hsl(142 35% 18%);
  --success-foreground: hsl(142 70% 65%);

  /* --- Status: warning --- */
  --warning: hsl(48 45% 16%);
  --warning-foreground: hsl(48 96% 70%);
  --warning-border: hsl(48 35% 28%);
  --surface-sunken: #2f3033;
}
