/* Kigumi design tokens, Heimdall-style: warm off-white, white cards, one orange accent, Inter. The only place colors live. */
:root, [data-theme="light"] {
  color-scheme: light;
  --accent-500: #E8892B; --accent-600: #C96F17; --accent-100: #FCEBD9;
  --bg-page: #F5F0E9; --bg-sunken: #EEE8DF; --bg-card: #FFFFFF; --bg-raised: #FFFFFF;
  --bg-timber: #F2EDE6; --bg-timber-hover: #E9E2D8; --bg-brand-subtle: var(--accent-100); --bg-human: #EDE6DB; --bg-inverse: #242229;
  --text-primary: #24211F; --text-secondary: #4B4A4E; --text-muted: #7A746C; --text-on-brand: #FFFFFF; --text-inverse: #F7F3EE;
  --text-link: #B8661A; --text-brand-ink: #4B4A4E;
  --line-hairline: #E6DDD0; --line-strong: #B9B0A3; --line-focus: var(--accent-500);
  --brand: var(--accent-500); --brand-hover: var(--accent-600);
  --good: #16A34A; --okay: #D99A06; --bad: #DC2626; --nodata: #A8A29A;
  --status-doing: #0E7490; --status-doing-bg: #DDF0F3; --status-waiting: #A16207; --status-waiting-bg: #FBEFD2;
  --status-blocked: #B91C1C; --status-blocked-bg: #FBE3E1; --status-done: #15803D; --status-done-bg: #DFF1E4;
  --action-approve: var(--brand); --action-approve-hover: var(--brand-hover); --action-danger: #DC2626; --action-danger-hover: #B91C1C;
  --chart-1: #E8892B; --chart-2: #6B7280; --chart-3: #16A34A; --chart-4: #8B5CF6; --chart-5: #0EA5B7; --chart-6: #D99A06; --chart-7: #A16A3E; --chart-8: #9CA3AF;
  --chart-cur: #E8892B; --chart-ly: #CFCBC5;
  --shadow-none: none; --shadow-lift: 0 1px 2px rgba(36,33,31,0.06); --shadow-overlay: 0 2px 4px rgba(36,33,31,0.06), 0 18px 40px -16px rgba(36,33,31,0.30);
}
[data-theme="dark"] {
  color-scheme: dark;
  --accent-500: #EF9644; --accent-600: #F5AC66; --accent-100: #3A2918;
  --bg-page: #1A1C1F; --bg-sunken: #141517; --bg-card: #26292D; --bg-raised: #2E3236;
  --bg-timber: #141210; --bg-timber-hover: #24201C; --bg-brand-subtle: var(--accent-100); --bg-human: #3A3128; --bg-inverse: #F5F0E9;
  --text-primary: #F0EAE1; --text-secondary: #D0C8BC; --text-muted: #9C958B; --text-on-brand: #1A1C1F; --text-inverse: #24211F;
  --text-link: #F5AC66; --text-brand-ink: #D0C8BC;
  --line-hairline: #34373B; --line-strong: #6B6A66; --line-focus: var(--accent-500);
  --brand: var(--accent-500); --brand-hover: var(--accent-600);
  --good: #4ADE80; --okay: #FACC15; --bad: #F87171; --nodata: #6B6A66;
  --status-doing: #67C8D6; --status-doing-bg: #173238; --status-waiting: #FACC15; --status-waiting-bg: #3A2E10;
  --status-blocked: #F87171; --status-blocked-bg: #3E1F19; --status-done: #4ADE80; --status-done-bg: #1E3324;
  --action-approve: var(--brand); --action-approve-hover: var(--brand-hover); --action-danger: #F87171; --action-danger-hover: #FCA5A5;
  --chart-1: #EF9644; --chart-2: #A1A1AA; --chart-3: #4ADE80; --chart-4: #C4B5FD; --chart-5: #67E8F9; --chart-6: #FACC15; --chart-7: #D6A27A; --chart-8: #9CA3AF;
  --chart-cur: #EF9644; --chart-ly: #4A4E53;
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.4); --shadow-overlay: 0 2px 4px rgba(0,0,0,0.5), 0 22px 44px -16px rgba(0,0,0,0.9);
}
/* Follow the OS when no theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  color-scheme: dark;
  --accent-500: #EF9644; --accent-600: #F5AC66; --accent-100: #3A2918;
  --bg-page: #1A1C1F; --bg-sunken: #141517; --bg-card: #26292D; --bg-raised: #2E3236;
  --bg-timber: #141210; --bg-timber-hover: #24201C; --bg-brand-subtle: var(--accent-100); --bg-human: #3A3128; --bg-inverse: #F5F0E9;
  --text-primary: #F0EAE1; --text-secondary: #D0C8BC; --text-muted: #9C958B; --text-on-brand: #1A1C1F; --text-inverse: #24211F;
  --text-link: #F5AC66; --text-brand-ink: #D0C8BC;
  --line-hairline: #34373B; --line-strong: #6B6A66; --line-focus: var(--accent-500);
  --brand: var(--accent-500); --brand-hover: var(--accent-600);
  --good: #4ADE80; --okay: #FACC15; --bad: #F87171; --nodata: #6B6A66;
  --status-doing: #67C8D6; --status-doing-bg: #173238; --status-waiting: #FACC15; --status-waiting-bg: #3A2E10;
  --status-blocked: #F87171; --status-blocked-bg: #3E1F19; --status-done: #4ADE80; --status-done-bg: #1E3324;
  --action-approve: var(--brand); --action-approve-hover: var(--brand-hover); --action-danger: #F87171; --action-danger-hover: #FCA5A5;
  --chart-1: #EF9644; --chart-2: #A1A1AA; --chart-3: #4ADE80; --chart-4: #C4B5FD; --chart-5: #67E8F9; --chart-6: #FACC15; --chart-7: #D6A27A; --chart-8: #9CA3AF;
  --chart-cur: #EF9644; --chart-ly: #4A4E53;
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.4); --shadow-overlay: 0 2px 4px rgba(0,0,0,0.5), 0 22px 44px -16px rgba(0,0,0,0.9);
  }
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-round: 999px;
  --stroke-hair: 1px; --stroke-focus: 2px; --stroke-tenon: 3px;
  --size-control: 34px; --size-control-sm: 28px; --size-row: 36px; --size-rail: 236px; --size-column: 296px;
  --font-display: Inter, sans-serif;
  --font-ui: Inter, sans-serif;
  --font-mono: Menlo, monospace;
}
