/* ==========================================================================
   Kaizen Intelligence · Design System Tokens (Vercel / Geist Aesthetic)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- Typography --- */
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Surfaces (Vercel Carbon / All-Black) --- */
  --bg: #000000;
  --bg-subtle: #050505;
  --sidebar: #050505;
  --surface: #0a0a0a;
  --surface-elevated: #0f0f10;
  --bg-elevated: var(--surface-elevated);
  --surface-strong: #141416;
  --surface-hover: #1c1c1f;
  --field: #09090b;
  --field-hover: #121215;

  /* --- Hairlines & Borders --- */
  --border-subtle: #161618;
  --border: #222225;
  --border-strong: #323236;
  --focus-ring: rgba(237, 237, 237, 0.22);

  /* --- Text Hierarchy --- */
  --text: #ededed;
  --muted: #a1a1aa;
  --subtle: #71717a;

  /* --- Primary Action (Vercel Neutral Inverted) --- */
  --primary: #ededed;
  --primary-hover: #ffffff;
  --primary-ink: #09090b;

  /* --- Semantic & Kaizen Brand Accents --- */
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-ink: #022c22;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-border: rgba(16, 185, 129, 0.28);

  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.32);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(244, 63, 94, 0.32);

  /* --- Chart Palette --- */
  --chart-primary: #10b981;
  --chart-secondary: #3b82f6;
  --chart-tertiary: #a855f7;
  --chart-amber: #f59e0b;
  --chart-bars: #52525b;
  --chart-grid: rgba(255, 255, 255, 0.05);

  /* --- Geometry, Spacing & Elevation --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --control-h: 38px;
  --control-h-sm: 32px;
  --sidebar-width: 248px;
  --tabbar-height: 60px;
  --content-max: 1260px;
  --gutter-left: 36px;
  --gutter-right: 36px;

  --scrim: rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #fafafa;
  --bg-subtle: #f4f4f5;
  --sidebar: #fafafa;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-strong: #f4f4f5;
  --surface-hover: #ececee;
  --field: #ffffff;
  --field-hover: #f8f8fa;

  --border-subtle: #f0f0f2;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --focus-ring: rgba(9, 9, 11, 0.14);

  --text: #09090b;
  --muted: #52525b;
  --subtle: #71717a;

  --primary: #09090b;
  --primary-hover: #27272a;
  --primary-ink: #ffffff;

  --accent: #059669;
  --accent-hover: #047857;
  --accent-ink: #ffffff;
  --accent-soft: rgba(5, 150, 105, 0.09);
  --accent-border: rgba(5, 150, 105, 0.25);

  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.09);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.10);
  --amber-border: rgba(217, 119, 6, 0.28);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.09);
  --danger-border: rgba(225, 29, 72, 0.28);

  --chart-primary: #059669;
  --chart-secondary: #2563eb;
  --chart-tertiary: #7c3aed;
  --chart-amber: #d97706;
  --chart-bars: #a1a1aa;
  --chart-grid: rgba(9, 9, 11, 0.06);

  --scrim: rgba(9, 9, 11, 0.45);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow: 0 20px 48px rgba(9, 9, 11, 0.12), 0 0 0 1px rgba(9, 9, 11, 0.05);
  --card-shadow: 0 1px 2px rgba(9, 9, 11, 0.03);
}
