/* Semantic design foundation. Legacy aliases keep existing modules compatible. */
:root {
 --background:#f7fafc;--sidebar-surface:#f4f8fb;--surface:#fff;--surface-secondary:#f0f5f9;--surface-hover:#e8f0f6;
 --text-primary:#0d1b38;--text-secondary:#596b83;--text-muted:#63758c;--border:#dce5ee;
 --brand-500:#18c998;--brand-600:#087d61;--blue-500:#368bff;--violet-500:#7956f5;--orange-500:#b56d05;--red-500:#bd303b;
 --background-hero:linear-gradient(115deg,#e9fbf5 0%,#f4fbfe 50%,#e8f2ff 100%);
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;
 --radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:20px;
 --bg:var(--background);--surface-2:var(--surface-secondary);--ink:var(--text-primary);--muted:var(--text-secondary);--line:var(--border);
 --teal:var(--brand-600);--danger:var(--red-500);--accent:#a5e8cf;--ui-soft:color-mix(in srgb,var(--teal) 10%,var(--surface));
 --ui-radius:var(--radius-lg);--ui-gap:var(--space-3);--sidebar-width:232px;--control-height:40px;--row-height:50px;
 --shadow:0 10px 30px rgb(13 27 56 / .08);--primary-foreground:#fff;
 color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
html[data-theme="dark"] {
 --background:#071823;--sidebar-surface:#091d29;--surface:#0d2230;--surface-secondary:#102a3a;--surface-hover:#163448;
 --text-primary:#f4f7fa;--text-secondary:#afbdca;--text-muted:#95a8ba;--border:#294252;
 --brand-600:#62debb;--orange-500:#ffc36b;--red-500:#ff929c;--accent:#80dac0;--primary-foreground:#071823;
 --background-hero:linear-gradient(115deg,#103531 0%,#0d283a 55%,#123653 100%);--shadow:0 12px 36px rgb(0 0 0 / .22);color-scheme:dark;
}
html[data-density="compact"] {--control-height:36px;--row-height:40px}
html[data-contrast="high"] {--text-secondary:#334661;--text-muted:#334661;--border:#75879d;--brand-600:#075d49}
html[data-theme="dark"][data-contrast="high"] {--text-secondary:#e2ecf4;--text-muted:#e2ecf4;--border:#8ca9bd;--brand-600:#a2f8df}
