/* Design tokens — parity with accounting_standalone/src/index.css */
:root,
.dark {
  --background: 0 0% 10%;
  --foreground: 0 0% 98%;
  --card: 0 0% 14%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 14%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 10%;
  --secondary: 0 0% 20%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 25%;
  --muted-foreground: 0 0% 60%;
  --accent: 0 0% 100%;
  --accent-foreground: 0 0% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  /* Dark: --border matches card so hsl(var(--border)) never renders white */
  --border: 0 0% 14%;
  --input: 0 0% 100%;
  --border-color: transparent;
  --input-color: hsl(0 0% 100% / 0.05);
  --ring: 0 0% 100%;
  --radius: 0.75rem;
  --status-restocked: 0 0% 40%;
  --status-in-stock: 0 0% 100%;
  --status-low-stock: 0 0% 35%;
  --status-picked-up: 0 0% 40%;
  --chart-low: 0 0% 25%;
  --chart-medium: 0 0% 35%;
  --chart-high: 0 0% 100%;
  --auth-panel-bg: 220 40% 6%;
  --auth-panel-foreground: 0 0% 95%;
  --auth-tagline: 45 60% 60%;
}

.light {
  --background: 0 0% 100%;
  --foreground: 217 60% 28%;
  --card: 0 0% 100%;
  --card-foreground: 217 60% 28%;
  --popover: 0 0% 100%;
  --popover-foreground: 217 60% 28%;
  --primary: 217 60% 28%;
  --primary-foreground: 0 0% 100%;
  --secondary: 217 60% 95%;
  --secondary-foreground: 217 60% 28%;
  --muted: 217 60% 95%;
  --muted-foreground: 217 30% 45%;
  --accent: 217 60% 28%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 217 30% 85%;
  --input: 217 30% 85%;
  --border-color: hsl(var(--border));
  --input-color: hsl(var(--input));
  --ring: 217 60% 28%;
  --status-restocked: 217 30% 45%;
  --status-in-stock: 217 60% 28%;
  --status-low-stock: 217 30% 45%;
  --status-picked-up: 217 30% 45%;
  --chart-low: 217 30% 45%;
  --chart-medium: 217 45% 55%;
  --chart-high: 217 60% 28%;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-border: 217 30% 90%;
  --auth-panel-bg: 220 40% 6%;
  --auth-panel-foreground: 0 0% 95%;
  --auth-tagline: 45 60% 60%;
}

html,
body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, system-ui, sans-serif;
  /* clip (not hidden) avoids creating a scrollport that fights nested overflow-x:auto strips */
  overflow-x: clip;
  min-height: 100%;
  min-height: 100dvh;
}

/* Only animate theme changes on intentional toggle — not navigation FOUC */
html.theme-transition,
html.theme-transition body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-enhanced {
  border-radius: 1rem;
}
