/* YNW tokens as CSS variables, generated 1:1 from the system's tokens.json (dark default, light via data-theme). */
:root {
  --brand-signal: #eb1515;
  --brand-ember: #ee4821;
  --brand-flame: #ed662e;
  --brand-amber: #ec9141;
  --brand-gold: #eab46c;
  --brand-sand: #cd8e4e;
  --brand-teal: #335554;
  --brand-teal-deep: #133337;
  --brand-wine: #6a1a21;
  --brand-maroon: #30151a;
  --brand-ink: #090b0f;
  --orange-50: #fff4ed;
  --orange-100: #ffe5d4;
  --orange-200: #fdc7a6;
  --orange-300: #f8a272;
  --orange-400: #f2834a;
  --orange-500: #ed662e;
  --orange-600: #db4a1c;
  --orange-700: #b5371a;
  --orange-800: #8f2d1c;
  --orange-900: #6a1a21;
  --orange-950: #30151a;
  --neutral-0: #ffffff;
  --neutral-50: #f7f4f2;
  --neutral-100: #ede8e5;
  --neutral-200: #dad3cf;
  --neutral-300: #bdb4b0;
  --neutral-400: #968c88;
  --neutral-500: #756b68;
  --neutral-600: #5a5250;
  --neutral-700: #3f3938;
  --neutral-800: #2a2526;
  --neutral-850: #1e1a1b;
  --neutral-900: #161314;
  --neutral-950: #0b0a0b;
  --font-sans: "Geist", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Sans Thai", ui-monospace, monospace;
  --font-thai: "IBM Plex Sans Thai", "Geist", system-ui, sans-serif;
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --bw-hairline: 1px;
  --bw-focus: 2px;
  --dur-instant: 80ms;
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-pulse: 1200ms;
  --dur-ticker: 40s;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-linear: linear;
  --z-base: 0;
  --z-sticky: 10;
  --z-sidebar: 20;
  --z-dropdown: 30;
  --z-sheet: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;
  --grid-columns: 12;
  --grid-gutter: 24px;
  --grid-margin: 24px;
  --grid-max: 1280px;
  --chat-max: 760px;
  --sidebar-w: 264px;
  --icon-stroke: 1.5px;
  --icon-xs: 12px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 32px;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
  --bg: #0b0a0b;
  --surface: #131112;
  --surface-raised: #1b1819;
  --surface-overlay: #242021;
  --surface-hover: #2c2728;
  --border: #2b2627;
  --border-strong: #3d3637;
  --border-control: #7a706d;
  --text-primary: #f4efec;
  --text-secondary: #b9afab;
  --text-muted: #948a86;
  --accent: #ed662e;
  --accent-hover: #f2834a;
  --accent-pressed: #db4a1c;
  --accent-subtle: #2a1510;
  --accent-text: #f59a68;
  --on-accent: #0b0a0b;
  --focus-ring: #f2834a;
  --scrim: rgba(5, 4, 5, 0.72);
  --success: #4cc38a;
  --success-subtle: #0f2219;
  --warning: #f5c842;
  --warning-subtle: #2a2208;
  --error: #ff5c5c;
  --error-subtle: #2e0d0e;
  --info: #6fc1c4;
  --info-subtle: #0d2224;
  --shadow-overlay: 0 0 0 1px #2b2627, 0 12px 32px -8px #000000;
  --shadow-glow: 0 0 0 1px #ed662e66, 0 0 24px -4px #ed662e59;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #faf8f6;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-overlay: #ffffff;
  --surface-hover: #f2eeeb;
  --border: #e6e0dc;
  --border-strong: #d4ccc7;
  --border-control: #8e8480;
  --text-primary: #161314;
  --text-secondary: #4a4341;
  --text-muted: #6b625f;
  --accent: #b5371a;
  --accent-hover: #9a2e16;
  --accent-pressed: #8f2d1c;
  --accent-subtle: #ffe5d4;
  --accent-text: #9a2e16;
  --on-accent: #ffffff;
  --focus-ring: #b5371a;
  --scrim: rgba(22, 19, 20, 0.40);
  --success: #1e7a52;
  --success-subtle: #e3f4ea;
  --warning: #8a6100;
  --warning-subtle: #fdf3d1;
  --error: #c21414;
  --error-subtle: #fde6e6;
  --info: #1f6b70;
  --info-subtle: #dff1f1;
  --shadow-overlay: 0 0 0 1px #e6e0dc, 0 12px 32px -12px #1613142e;
  --shadow-glow: 0 0 0 1px #b5371a40, 0 0 20px -6px #b5371a40;
  color-scheme: light;
}
