/* YCE Recon design tokens — primitive → semantic → component.
   Brand: gold accent + Apple neutrals, Inter. Components use semantic/component tokens only. */
@font-face {
  font-family: "Inter";
  src: url("/static/vendor/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---------- primitive ---------- */
  --gold-50: #FFF8E6; --gold-100: #FDEDC2; --gold-300: #F7CF6B; --gold-400: #F0B429; --gold-600: #C8920F; --gold-700: #A97E11; --gold-800: #7A5A08;
  --gray-0: #FFFFFF; --gray-25: #FAFAFC; --gray-50: #F5F5F7; --gray-100: #EDEDF0; --gray-200: #E5E5EA; --gray-300: #D1D1D6;
  --gray-500: #8E8E93; --gray-600: #6E6E73; --gray-700: #48484A; --gray-800: #2C2C2E; --gray-850: #232325; --gray-900: #1D1D1F; --gray-950: #111113;
  --red-500: #C0362C; --red-50: #FDEEEB; --green-600: #1B7E52; --green-50: #E4F2EA;
  --orange-600: #C65310; --orange-50: #FDF1E7; --blue-500: #5C7CB0; --blue-50: #EAEFF6;

  /* ---------- semantic (light) ---------- */
  --bg: var(--gray-50);
  --surface: var(--gray-0);
  --surface-2: var(--gray-25);
  --surface-sunken: var(--gray-100);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--gray-900);
  --text-2: var(--gray-600);
  --text-3: var(--gray-500);
  --accent: var(--gold-400);
  --accent-text: var(--gold-700);
  --accent-soft: var(--gold-50);
  --on-accent: var(--gray-900);
  --good: var(--green-600);   --good-bg: var(--green-50);
  --warn: var(--orange-600);  --warn-bg: var(--orange-50);
  --bad: var(--red-500);      --bad-bg: var(--red-50);
  --info: var(--blue-500);    --info-bg: var(--blue-50);
  --focus: var(--gold-600);
  --rail-bg: var(--gray-900);
  --rail-text: #C7C7CC;
  --rail-active: var(--gray-800);
  --glass: rgba(245, 245, 247, 0.72);
  --scrim: rgba(17, 17, 19, 0.38);
  --chart-bar: var(--gold-400);
  --chart-bar-2: var(--gray-300);
  --chart-neg: var(--gray-600);
  --chart-track: var(--gray-100);

  /* ---------- type ---------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.75rem; --fs-sm: 0.8125rem; --fs-md: 0.875rem; --fs-base: 0.9375rem; --fs-lg: 1.0625rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem;

  /* ---------- space (dense dashboard scale) ---------- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;

  /* ---------- shape & depth ---------- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(17, 17, 19, 0.04), 0 1px 1px rgba(17, 17, 19, 0.03);
  --shadow-2: 0 8px 24px -12px rgba(17, 17, 19, 0.18), 0 2px 6px rgba(17, 17, 19, 0.04);
  --shadow-3: 0 24px 60px -20px rgba(17, 17, 19, 0.35);

  /* ---------- motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms; --t-med: 220ms;

  /* ---------- component ---------- */
  --btn-h: 38px;
  --btn-primary-bg: var(--accent);
  --btn-primary-bg-hover: var(--gold-300);
  --btn-primary-text: var(--on-accent);
  --card-bg: var(--surface);
  --card-border: var(--border);
  --input-bg: var(--surface);
  --input-border: var(--border-strong);
  --table-head: var(--surface-2);
  --table-row-hover: var(--gold-50);
  --chip-bg: var(--surface-sunken);
  --kpi-hero-bg: radial-gradient(120% 140% at 0% 0%, rgba(240, 180, 41, 0.22) 0%, rgba(240, 180, 41, 0.06) 45%, transparent 70%), var(--surface);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--gray-950);
    --surface: #1A1A1C;
    --surface-2: #202022;
    --surface-sunken: #262628;
    --border: #2E2E31;
    --border-strong: #3A3A3D;
    --text: #F2F2F4;
    --text-2: #A1A1A6;
    --text-3: #7C7C82;
    --accent-text: var(--gold-300);
    --accent-soft: rgba(240, 180, 41, 0.10);
    --good: #4CC38A;  --good-bg: rgba(76, 195, 138, 0.12);
    --warn: #F0884A;  --warn-bg: rgba(240, 136, 74, 0.12);
    --bad: #F2685D;   --bad-bg: rgba(242, 104, 93, 0.12);
    --info: #8AA6D6;  --info-bg: rgba(138, 166, 214, 0.12);
    --focus: var(--gold-300);
    --rail-bg: #0B0B0C;
    --rail-active: #1F1F21;
    --glass: rgba(17, 17, 19, 0.7);
    --chart-bar-2: #4A4A4E;
    --chart-neg: #8E8E93;
    --chart-track: #262628;
    --table-row-hover: rgba(240, 180, 41, 0.06);
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --kpi-hero-bg: radial-gradient(120% 140% at 0% 0%, rgba(240, 180, 41, 0.20) 0%, rgba(240, 180, 41, 0.05) 45%, transparent 70%), var(--surface);
    color-scheme: dark;
  }
}
