:root {
  --bg: var(--bg-page);
  --card: var(--card-bg);
  --muted: var(--text-sec);
  --line: var(--border);
  --green: var(--success);
  --blue: var(--primary);
  --yellow: var(--warning);
  --red: var(--danger);
  --accent: var(--primary);
  --input-bg: var(--bg-sec);
  --chip: #1e293b;
  --chip-text: #cbd5e1;
  --ok-text: #86efac;
  --warn-text: #fde68a;
  --danger-text: #fca5a5;
  --info-text: #7dd3fc;
  --on-primary: #fff;
  --modal-bg: #0f172a;
  --overlay: rgba(2, 6, 23, .78);
  --sidebar-width: 236px;
  --card-pad: 16px;
  --grid-gap: 12px;
  --value-size: 30px;
  --nav-radius: 8px;
  --table-size: 14px;
  --kpi-rail: 3px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

html[data-theme="corporate"],
body[data-theme="corporate"] {
  --bg-page: #0b1329;
  --bg-sec: #070b18;
  --card-bg: #111a36;
  --text-main: #f1f5f9;
  --text-sec: #94a3b8;
  --border: #1e293b;
  --primary: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .28);
  --chip: #172033;
  --chip-text: #cbd5e1;
  --modal-bg: #0d1630;
  --sidebar-width: 236px;
  --card-pad: 16px;
  --grid-gap: 12px;
  --value-size: 30px;
  --nav-radius: 8px;
  --table-size: 14px;
  --kpi-rail: 3px;
  color-scheme: dark;
}

html[data-theme="dark"],
body[data-theme="dark"] {
  --bg-page: #09090b;
  --bg-sec: #050506;
  --card-bg: #141418;
  --text-main: #f4f4f5;
  --text-sec: #a1a1aa;
  --border: #27272a;
  --primary: #059669;
  --success: #10b981;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0, 0, 0, .4);
  --chip: #1c1c22;
  --chip-text: #d4d4d8;
  --modal-bg: #101014;
  --sidebar-width: 208px;
  --card-pad: 10px;
  --grid-gap: 8px;
  --value-size: 22px;
  --nav-radius: 4px;
  --table-size: 12px;
  --kpi-rail: 2px;
  --radius: 4px;
  color-scheme: dark;
}

html[data-theme="clean"],
body[data-theme="clean"] {
  --bg-page: #f4f7fb;
  --bg-sec: #e8eef5;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sec: #475569;
  --border: #cbd5e1;
  --primary: #0369a1;
  --success: #15803d;
  --warning: #a16207;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --chip: #e2e8f0;
  --chip-text: #0f172a;
  --ok-text: #166534;
  --warn-text: #854d0e;
  --danger-text: #991b1b;
  --info-text: #075985;
  --modal-bg: #ffffff;
  --overlay: rgba(15, 23, 42, .45);
  --sidebar-width: 256px;
  --card-pad: 20px;
  --grid-gap: 16px;
  --value-size: 34px;
  --nav-radius: 10px;
  --table-size: 14px;
  --kpi-rail: 3px;
  --font-num: var(--font);
  color-scheme: light;
}

html[data-theme="industrial"],
body[data-theme="industrial"] {
  --bg-page: #111827;
  --bg-sec: #030712;
  --card-bg: #1f2937;
  --text-main: #f9fafb;
  --text-sec: #d1d5db;
  --border: #374151;
  --primary: #d97706;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #f87171;
  --radius: 6px;
  --shadow: none;
  --chip: #111827;
  --chip-text: #e5e7eb;
  --modal-bg: #111827;
  --sidebar-width: 196px;
  --card-pad: 8px;
  --grid-gap: 6px;
  --value-size: 20px;
  --nav-radius: 0px;
  --table-size: 12px;
  --kpi-rail: 4px;
  --radius: 0px;
  color-scheme: dark;
}

html[data-theme="modern"],
body[data-theme="modern"] {
  --bg-page: #0f172a;
  --bg-sec: #090d16;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-sec: #94a3b8;
  --border: #334155;
  --primary: #6366f1;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .25);
  --chip: #0f172a;
  --chip-text: #e2e8f0;
  --modal-bg: #0f172a;
  --sidebar-width: 272px;
  --card-pad: 22px;
  --grid-gap: 20px;
  --value-size: 36px;
  --nav-radius: 999px;
  --table-size: 15px;
  --kpi-rail: 0px;
  --radius: 20px;
  color-scheme: dark;
}

html[data-theme="industrial"] .grid,
html[data-theme="industrial"] .grid-5,
body[data-theme="industrial"] .grid,
body[data-theme="industrial"] .grid-5 { gap: 8px; }

html[data-theme="industrial"] .card,
body[data-theme="industrial"] .card { padding: 12px; }

html[data-theme="industrial"] table,
body[data-theme="industrial"] table { font-size: 13px; }

html[data-theme="modern"] .grid,
body[data-theme="modern"] .grid { gap: 16px; }

@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
