/* new-api v1.0.0-rc.41 — cream Eevee console, 2026-10-09.
   Load AFTER upstream CSS, unlayered. Important is restricted to theme
   tokens + color-scheme; no blanket foreground/background overrides. */
:root,
html.dark,
.dark,
[data-theme-preset] {
  color-scheme: only light !important;

  --background: #fff9ef !important;
  --foreground: #493729 !important;
  --card: #fffdf6 !important;
  --card-foreground: var(--foreground) !important;
  --popover: #fffdf6 !important;
  --popover-foreground: var(--foreground) !important;
  --primary: #a74729 !important;
  --primary-foreground: #fff9ef !important;
  --secondary: #f3e6d4 !important;
  --secondary-foreground: var(--foreground) !important;
  --muted: #f5ecdf !important;
  --muted-foreground: #786553 !important;
  --accent: #f4dfcd !important;
  --accent-foreground: #793e27 !important;
  --border: #e9dbca !important;
  --input: #c9b59e !important;
  --ring: #a74729 !important;

  /* Status semantics are independent of the decorative palette. */
  --destructive: #bc3037 !important;
  --destructive-foreground: #fff9ef !important;
  --success: #287344 !important;
  --success-foreground: #fff9ef !important;
  --warning: #946000 !important;
  --warning-foreground: #fff9ef !important;
  --info: #286c96 !important;
  --info-foreground: #fff9ef !important;
  --neutral: #786553 !important;
  --neutral-foreground: #fff9ef !important;

  --sidebar: #fbf1e3 !important;
  --sidebar-foreground: var(--foreground) !important;
  --sidebar-primary: var(--primary) !important;
  --sidebar-primary-foreground: var(--primary-foreground) !important;
  --sidebar-accent: #f2dfcc !important;
  --sidebar-accent-foreground: #793e27 !important;
  --sidebar-border: var(--border) !important;
  --sidebar-ring: var(--ring) !important;

  --table-row: var(--card) !important;
  --table-header: #f3e6d4 !important;
  --table-header-hover: #eddec9 !important;
  --table-disabled: #f0e9df !important;
  --table-disabled-hover: #e9e0d5 !important;
  --table-disabled-border: #cbbbaa !important;
  --skeleton-base: #eadfcc !important;
  --skeleton-highlight: var(--card) !important;

  /* Deeper inks keep the reference's blue/grass/lavender accents legible. */
  --chart-1: #2f6589 !important;
  --chart-2: #596e31 !important;
  --chart-3: #7a528b !important;
  --chart-4: #a74729 !important;
  --chart-5: #367b73 !important;
  --overview-accent-1: var(--chart-1) !important;
  --overview-accent-2: var(--chart-2) !important;
  --overview-accent-3: var(--chart-3) !important;
}

/* Theme-radius is a separate native scope; keep small control geometry. */
:root,
html.dark,
.dark,
[data-theme-preset],
[data-theme-radius] {
  --radius: 1rem !important;
  --radius-sm: .75rem !important;
  --radius-md: .875rem !important;
  --radius-lg: 1rem !important;
}

html,
body,
[data-slot="sidebar-inset"] {
  background-color: var(--background);
}

body {
  color: var(--foreground);
}

/* Keep native dark-mode input utilities from tinting light forms gray. */
input[data-slot],
textarea[data-slot] {
  background-color: var(--card);
  border-color: #a0856d;
}

/* Existing surfaces only: no layout, spacing, shadow, clipping or content. */
[data-slot="card"],
[data-slot="dialog-content"] {
  border-radius: 1rem;
}

[data-slot="alert"],
[data-slot="popover-content"],
[data-slot="dropdown-menu-content"],
[data-slot="combobox-content"] {
  border-radius: .75rem;
}