:root {
  --radius: 18px; --blur: 24px; --glass: .58; --gap: 14px; --pad: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
}
:root[data-font="mono"] { --font: var(--mono); }
:root[data-font="tech"] { --font: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Segoe UI", sans-serif; }
:root[data-density="compact"] { --gap: 9px; --pad: 12px; }
:root[data-density="spacious"] { --gap: 22px; --pad: 24px; }

/* Liquid Glass */
:root, :root[data-theme="liquid"] {
  color-scheme: dark;
  --bg: #070a1c; --fg: #eef1ff; --muted: #9aa3c7; --faint: #6a7299;
  --line: rgba(255,255,255,.11); --line-strong: rgba(255,255,255,.24);
  --tint: 140,156,255; --card-base: rgba(18,23,52,var(--glass)); --solid: #131838;
  --sheen: rgba(255,255,255,.16); --track: rgba(255,255,255,.09); --field: rgba(255,255,255,.07);
  --accent: #64c8ff; --accent2: #b78bff; --good: #34e0a1; --warn: #ffc247; --bad: #ff5d73;
  --wp1: #2b5cff; --wp2: #a13bff; --wp3: #00b8d4; --accent-raw: #64c8ff;
  --shadow: 0 18px 50px -22px rgba(0,0,10,.85);
}
:root[data-theme="daylight"] {
  color-scheme: light;
  --bg: #e8edf9; --fg: #14182b; --muted: #5b6385; --faint: #8a91ad;
  --line: rgba(30,40,90,.11); --line-strong: rgba(30,40,90,.24);
  --tint: 10,110,255; --card-base: rgba(255,255,255,var(--glass)); --solid: #ffffff;
  --sheen: rgba(255,255,255,.9); --track: rgba(30,40,90,.09); --field: rgba(30,40,90,.06);
  --accent: #0a7aff; --accent2: #af52de; --good: #12a45e; --warn: #c77800; --bad: #e0293f;
  --wp1: #7fb2ff; --wp2: #ff9fc8; --wp3: #9ee6d8; --accent-raw: #0a7aff;
  --shadow: 0 16px 40px -24px rgba(30,40,90,.45);
}
:root[data-theme="unifi"] {
  color-scheme: dark;
  --bg: #0d0f12; --fg: #e9ebee; --muted: #929aa6; --faint: #666e7a;
  --line: #262b33; --line-strong: #3a414c;
  --tint: 0,111,255; --card-base: #15181d; --solid: #15181d;
  --sheen: transparent; --track: #272c34; --field: #1e2228;
  --accent: #2b86ff; --accent2: #8f6bff; --good: #38cc65; --warn: #f5a524; --bad: #f0444e;
  --wp1: #006fff; --wp2: #0a3d91; --wp3: #38cc65; --accent-raw: #2b86ff;
  --shadow: 0 1px 2px rgba(0,0,0,.5);
  --radius: 10px !important; --blur: 0px !important;
}
:root[data-theme="matrix"] {
  color-scheme: dark;
  --bg: #010502; --fg: #c9ffe0; --muted: #5fbf8c; --faint: #3a7a58;
  --line: rgba(0,255,156,.2); --line-strong: rgba(0,255,156,.55);
  --tint: 0,255,156; --card-base: rgba(0,16,8,calc(var(--glass) + .2)); --solid: #03120a;
  --sheen: rgba(0,255,156,.12); --track: rgba(0,255,156,.1); --field: rgba(0,255,156,.06);
  --accent: #00ff9c; --accent2: #b6ff3b; --good: #00ff9c; --warn: #ffe14d; --bad: #ff4d6a;
  --wp1: #00ff9c; --wp2: #00a86b; --wp3: #b6ff3b; --accent-raw: #00ff9c;
  --shadow: 0 0 0 1px rgba(0,255,156,.04), 0 0 30px -16px rgba(0,255,156,.6);
  --radius: 6px !important; --font: var(--mono) !important;
}
:root[data-theme="cyber"] {
  color-scheme: dark;
  --bg: #0d0418; --fg: #fbeaff; --muted: #b794d6; --faint: #7f5f9e;
  --line: rgba(255,43,214,.22); --line-strong: rgba(34,233,255,.55);
  --tint: 255,43,214; --card-base: rgba(28,8,46,var(--glass)); --solid: #1a0830;
  --sheen: rgba(34,233,255,.18); --track: rgba(255,255,255,.08); --field: rgba(255,43,214,.08);
  --accent: #22e9ff; --accent2: #ff2bd6; --good: #3dffb0; --warn: #ffd23f; --bad: #ff3d7f;
  --wp1: #ff2bd6; --wp2: #7a2bff; --wp3: #22e9ff; --accent-raw: #22e9ff;
  --shadow: 0 0 34px -14px rgba(255,43,214,.55);
}
:root[data-theme="obsidian"] {
  color-scheme: dark;
  --bg: #000000; --fg: #f2f2f5; --muted: #8e8e96; --faint: #5c5c64;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.2);
  --tint: 255,255,255; --card-base: rgba(14,14,16,calc(var(--glass) + .25)); --solid: #0e0e10;
  --sheen: rgba(255,255,255,.07); --track: rgba(255,255,255,.08); --field: rgba(255,255,255,.05);
  --accent: #e8e8ed; --accent2: #8e8e96; --good: #5ee08a; --warn: #f2c14e; --bad: #ff6159;
  --wp1: #3a3a44; --wp2: #22222a; --wp3: #50505c; --accent-raw: #e8e8ed;
  --shadow: none;
}
