/*
 * Material Design 3, with Kolify's own typeface.
 *
 * The colour roles below are the Material You baseline blue scheme, which
 * sits close to the accent this window already used. Material treats the
 * brand typeface as part of the system rather than a deviation from it, so
 * Seraphtia stays and only the metrics around it - tracking, line height,
 * the 4px spacing grid - follow the spec.
 *
 * Dark and light are the same set of role names with different tones, so
 * every rule below is written once against the roles and never against a
 * literal colour.
 */

/* Bundled with the app, so it renders identically on every machine. */
@font-face {
  font-family: "Seraphtia";
  src: url("../assets/fonts/seraphtia.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* Poppins (SIL OFL 1.1, src/assets/fonts/OFL-poppins.txt): bundled, so picking it works without it installed. */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }


:root {
  /* Tells Chromium to render native widgets - scrollbars, dropdowns,
     number spinners - in the matching shade. */
  color-scheme: dark;

  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, monospace;

  /* ---- colour roles (dark) ---- */
  --primary: #a8c7fa;
  --on-primary: #0a305f;
  --primary-container: #28497a;
  --on-primary-container: #d7e3ff;

  --surface: #111318;
  --surface-container-low: #191c20;
  --surface-container: #1d2024;
  --surface-container-high: #282a2f;
  --surface-container-highest: #33353a;
  --on-surface: #e2e2e9;
  --on-surface-variant: #c4c6d0;

  --outline: #8e9099;
  --outline-variant: #44474e;

  --error: #ffb4ab;
  --success: #7ddc9a;
  --warn: #f5c451;

  /* ---- shape ---- */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-full: 999px;

  /* ---- elevation ---- */
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  --elev-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  --elev-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);

  /* ---- state layers ---- */
  --state-hover: color-mix(in srgb, var(--on-surface) 8%, transparent);
  --state-press: color-mix(in srgb, var(--on-surface) 12%, transparent);

  /* Material's standard easing: quick to leave, slow to settle. */
  --motion: 200ms cubic-bezier(0.2, 0, 0, 1);
}

/* Light theme: settings.js sets data-scheme from the light/dark setting (system follows Windows). */
:root[data-scheme="light"] {
  color-scheme: light;

  --primary: #415f91;
  --on-primary: #ffffff;
  --primary-container: #d6e3ff;
  --on-primary-container: #001b3e;

  --surface: #f9f9ff;
  --surface-container-low: #f3f3fa;
  --surface-container: #ededf4;
  --surface-container-high: #e7e8ee;
  --surface-container-highest: #e2e2e9;
  --on-surface: #191c20;
  --on-surface-variant: #44474e;

  --outline: #74777f;
  --outline-variant: #c4c6d0;

  --error: #ba1a1a;
  --success: #15803d;
  --warn: #a16207;

  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.12), 0 1px 3px 1px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 6px 2px rgba(15, 23, 42, 0.08);
  --elev-3: 0 1px 3px rgba(15, 23, 42, 0.12), 0 4px 8px 3px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

/* Every scrollable surface, not just <main> - Chromium's default light
   scrollbar is jarring against the panel. */
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--shape-full);
}
*::-webkit-scrollbar-thumb:hover { background: var(--outline); background-clip: content-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* Sidebar on the left, the open section on the right, Save along the bottom. */
body {
  margin: 0;
  /* Every typeface at one x-height (0.52 of the size, as UiFont.X_HEIGHT in game), so the font you pick changes the look, not the size. */
  font-size-adjust: 0.52;
  height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 14px;
}

/* ---------------- editions ---------------- */

/* One page serves the desktop app, the mod and the injectable version; each
   only shows what applies to it. */
body:not(.ed-desktop) .only-desktop,
body:not(.ed-mod):not(.ed-inject) .only-game,
body:not(.ed-inject) .only-inject { display: none !important; }

/* ---------------- navigation ---------------- */

.nav {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px;
  background: var(--surface-container-low);
  border-right: 1px solid var(--outline-variant);
  overflow-y: auto;
}
.brand { display: grid; gap: 2px; padding: 4px 8px 0; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.brand-edition { font-size: 11px; color: var(--on-surface-variant); letter-spacing: 0.4px; }

.tabs { display: grid; gap: 2px; }
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  background: none;
  border: none;
  border-radius: var(--shape-full);
  color: var(--on-surface-variant);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1px;
  text-align: left;
  justify-content: flex-start;
  transition: color var(--motion), background var(--motion);
}
.tab:hover { background: var(--state-hover); color: var(--on-surface); }
.tab:active { background: var(--state-press); }
.tab.active,
.tab.active:hover { background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }

/* How many problems a section has, so they can be found without opening it. */
.tab .count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--shape-full);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
}
.tab .count.error { background: var(--error); color: var(--surface); }
.tab .count.warn { background: var(--warn); color: #1c1917; }

.nav .search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--shape-full);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  color: var(--on-surface);
  font: inherit;
  font-size: 13px;
  box-shadow: none;
}
.nav .search:focus { outline: none; border-color: var(--primary); box-shadow: none; }
.search-empty { margin: 24px 0; color: var(--on-surface-variant); }

main { overflow-y: auto; padding: 24px 32px 48px; }
.panel { display: none; max-width: 860px; }
.panel.active { display: block; }

/* A section's settings sit on one surface, so it is clear what belongs together. */
.group {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 16px 20px;
  margin-bottom: 8px;
}
.group.checks { padding: 6px 20px; }
.group .checks:last-child,
.group .field:last-child,
.group .hint-block:last-child { margin-bottom: 0; }
.group > button { margin-top: 4px; }

/* While searching every tab is on one page, filtered to what matches. */
body.searching .panel { display: none; }
body.searching .panel.search-hit { display: block; margin-bottom: 32px; }
body.searching .search-miss { display: none !important; }
body.searching .panel > :not(h1):not(h2):not(h3):not(.checks):not(.cards):not(.group):not(div):not(.search-hit) { display: none; }
body.searching .tab.active { background: none; color: var(--on-surface-variant); font-weight: 400; }

/* Explicit line-heights: the bundled font is taller than a system UI font
   and headings collided with the text under them. */
h1 { font-size: 22px; line-height: 1.35; letter-spacing: 0; margin: 0 0 8px; }
h2 {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.15px;
  margin: 32px 0 8px;
  color: var(--on-surface);
}
h3.subhead {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.1px;
  margin: 24px 0 8px;
  color: var(--on-surface);
}
.lead { color: var(--on-surface-variant); line-height: 1.55; letter-spacing: 0.25px; margin: 0 0 20px; }
code {
  background: var(--surface-container-high);
  border-radius: var(--shape-xs);
  padding: 2px 6px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ---------------- form controls ---------------- */

.field { display: block; margin-bottom: 20px; }
.field > span {
  display: block;
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  line-height: 1.3;
}
.field > span em { color: var(--primary); font-style: normal; }

/* Material filled text field. The focus underline is drawn with an inset
   shadow rather than a thicker border, so gaining focus cannot nudge the
   layout by a pixel. */
input[type="text"], input[type="number"], input[type="password"], select {
  width: 100%;
  height: 48px;
  background: var(--surface-container-highest);
  border: none;
  border-radius: var(--shape-xs) var(--shape-xs) 0 0;
  box-shadow: inset 0 -1px 0 var(--on-surface-variant);
  color: var(--on-surface);
  padding: 0 16px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: background var(--motion), box-shadow var(--motion);
}
input[type="text"]:hover, input[type="number"]:hover, input[type="password"]:hover, select:hover {
  background: color-mix(in srgb, var(--on-surface) 8%, var(--surface-container-highest));
}
input:focus, select:focus { box-shadow: inset 0 -2px 0 var(--primary); }
input::placeholder { color: var(--on-surface-variant); opacity: 0.7; }
input[type="range"] { width: 100%; height: 20px; padding: 0; accent-color: var(--primary); }
/* The accent: the list, with any colour from the picker beside it. */
.color-pick { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.color-pick select { flex: 1; min-width: 0; }
.color-pick input[type="color"] {
  flex: none; width: 44px; min-height: 32px; padding: 0; cursor: pointer;
  background: var(--surface-container-highest);
  border: 1px solid var(--outline-variant); border-radius: var(--shape-sm);
}
.color-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.color-pick input[type="color"]::-webkit-color-swatch { border: none; border-radius: max(0px, calc(var(--shape-sm) - 3px)); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }

/* Option rows: label on the left, switch on the right, the way Material
   lays out a settings list. Grid placement does the ordering, so the
   markup keeps the input inside its own <label>. */
.checks { display: grid; gap: 2px; margin-bottom: 20px; }
.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 12px 16px;
  margin: 0 -16px;
  border-radius: var(--shape-md);
  cursor: pointer;
  transition: background var(--motion);
}
.check:hover { background: var(--state-hover); }
/* Both pinned to the first row: the switch comes first in the markup, and
   left to auto-placement the text dropped to a row of its own below it. */
.check-text { grid-column: 1; grid-row: 1; display: grid; gap: 4px; min-width: 0; }
.check input[type="checkbox"] { grid-row: 1; }
.check-title { font-size: 13px; line-height: 1.35; letter-spacing: 0.1px; }
.check-hint { font-size: 12px; color: var(--on-surface-variant); line-height: 1.5; letter-spacing: 0.25px; }

/* Material switch, drawn from the checkbox itself. */
.check input[type="checkbox"] {
  grid-column: 2;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  margin: 0;
  border: 2px solid var(--outline);
  border-radius: var(--shape-full);
  background: var(--surface-container-highest);
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion);
}
.check input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--outline);
  transition: left var(--motion), width var(--motion), height var(--motion),
    margin-top var(--motion), background var(--motion);
}
.check input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.check input[type="checkbox"]:checked::before {
  left: 21px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: var(--on-primary);
}

.hint-block {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.55;
  letter-spacing: 0.25px;
  margin: 0 0 20px;
  max-width: 62ch;
}
/* Only tuck it up when it explains the control directly above it - after a
   heading the negative margin pulled the text into the heading. */
.field + .hint-block,
.checks + .hint-block { margin-top: -10px; }
.hint-block.err { color: var(--error); }

/* ---------------- dependencies and problems ---------------- */

/* Waiting on another switch: visibly off, with the reason underneath. */
.blocked > :not(.needs) { opacity: 0.45; }
.blocked, .blocked * { cursor: default; }
.check.blocked:hover { background: none; }
/* A single setting that belongs to the switch above it is a sub-option: set
   in under it with a line down its side, and gone while that switch is off.
   A search shows it anyway, greyed, so it can still be found. */
.check[data-requires], .field[data-requires] {
  margin-left: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--outline-variant);
  border-radius: 0 var(--shape-md) var(--shape-md) 0;
}
.check[data-requires] { margin-left: -14px; padding-left: 28px; }
/* Where rows are ruled off, a side line would only meet those rules: the row is
   just set in, its rule with it. */
:root[data-style="midnight"] .check[data-requires], :root[data-style="midnight"] .field[data-requires],
:root[data-style="liquid"] .check[data-requires], :root[data-style="liquid"] .field[data-requires],
:root[data-style="terminal"] .check[data-requires], :root[data-style="terminal"] .field[data-requires],
:root[data-style="daylight"] .check[data-requires], :root[data-style="daylight"] .field[data-requires],
:root[data-style="minimal"] .check[data-requires], :root[data-style="minimal"] .field[data-requires] {
  margin-left: 16px;
  padding-left: 0;
  border-left: none;
}
body:not(.searching) .check.blocked[data-requires],
body:not(.searching) .field.blocked[data-requires] { display: none; }
.needs {
  display: block;
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--primary);
  letter-spacing: 0.25px;
}

.field-msg {
  display: block;
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.field-msg.error { color: var(--error); }
.field-msg.warn { color: var(--warn); }
.has-error input, .has-error select { box-shadow: inset 0 -2px 0 var(--error); }
.colrows.has-error { border-color: var(--error); }
.colrow > .field-msg { grid-column: 1 / -1; margin-top: 0; }

.problems { font-size: 13px; cursor: pointer; letter-spacing: 0.25px; }
.problems.error { color: var(--error); }
.problems.warn { color: var(--warn); }

/* ---------------- buttons ---------------- */

/* Outlined by default; .primary is Material's filled button. */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1px;
  height: 40px;
  padding: 0 24px;
  border-radius: var(--shape-full);
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion), border-color var(--motion), box-shadow var(--motion);
}
button:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
button:active { background: color-mix(in srgb, var(--primary) 12%, transparent); }
button:disabled { opacity: 0.38; cursor: default; background: none; }

button.primary {
  background: var(--primary);
  border-color: transparent;
  color: var(--on-primary);
}
button.primary:hover {
  background: color-mix(in srgb, var(--on-primary) 8%, var(--primary));
  box-shadow: var(--elev-1);
}
button.primary:active { background: color-mix(in srgb, var(--on-primary) 12%, var(--primary)); }

button.ghost { width: 100%; border-color: var(--outline-variant); }
button.danger { border-color: var(--error); color: var(--error); }
button.danger:hover { background: color-mix(in srgb, var(--error) 8%, transparent); }
button.small { height: 32px; padding: 0 16px; font-size: 12px; }

/* Buttons that add, side by side. */
.add-row { display: flex; gap: 8px; }
.add-row > button { flex: 1; }

/* A check with its Tune button beside it. */
.check-with-action { display: flex; align-items: center; gap: 12px; }
.check-with-action > .check { flex: 1; min-width: 0; }
.check-with-action > button.tune { flex: none; }

/* A page's own settings over the page (an anticheat check's Tune): a sheet in the middle, the rest dimmed. */
dialog.sheet {
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px 28px 20px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-lg);
  background: var(--surface-container-high);
  color: var(--on-surface);
  box-shadow: var(--elev-3, 0 12px 40px rgba(0, 0, 0, 0.5));
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); }
dialog.sheet h2 { margin-top: 0; }
dialog.sheet .group { background: transparent; box-shadow: none; padding: 0; border: 0; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------------- list containers ---------------- */

.colrows {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 8px;
  background: var(--surface-container-low);
}
.colrow {
  display: grid;
  grid-template-columns: 18px 1fr auto 32px 32px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--shape-sm);
  transition: background var(--motion);
}
.colrow:hover { background: var(--state-hover); }
.colrow.off { opacity: 0.5; }
.colrow input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.colrow-label { font-size: 13px; letter-spacing: 0.1px; }
.colrow-key { font-family: var(--font-mono); font-size: 11px; color: var(--on-surface-variant); }
.colrow button { height: 32px; font-size: 13px; padding: 0 16px; }
/* Square icon buttons (the up/down arrows). Scoped to a class rather than to
   every button in a .colrow, or a text button like "Remove" gets squashed
   to 32px and spills out of the row. */
.colrow button.iconbtn { width: 32px; padding: 0; }
.iconbtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Explicit tracks: the pattern box absorbs the slack, everything after it
   gets exactly the room it needs. */
.colrow.filterrow {
  /* The action column fits "Show, do not highlight" without clipping; the
     pattern box absorbs the difference. */
  grid-template-columns: 18px minmax(0, 1fr) 120px 196px auto auto;
  column-gap: 12px;
}
.colrow.filterrow input[type="text"],
.colrow.filterrow select { height: 40px; font-size: 12px; min-width: 0; }
.colrow.filterrow select { padding: 0 8px; }

/* Position, picker, the two arrows, remove. */
.colrow.fallbackrow {
  grid-template-columns: 28px minmax(0, 1fr) 32px 32px auto;
  column-gap: 12px;
}
.colrow.fallbackrow select { height: 40px; font-size: 12px; min-width: 0; padding: 0 8px; }

.colrow.nickrow {
  grid-template-columns: 18px minmax(0, 1fr) 20px minmax(0, 1fr) 120px auto;
  column-gap: 12px;
}
.colrow.nickrow input[type="text"] { height: 40px; font-size: 12px; min-width: 0; }

/* The local blacklist: name, reason, then what it does. */
.colrow.localrow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  column-gap: 12px;
}
.colrow.localrow input[type="text"] { height: 40px; font-size: 12px; min-width: 0; }
.colrow.localadd { margin-bottom: 4px; }
.local-search { width: 100%; height: 36px; font-size: 12px; margin: 8px 0; }
.local-list { max-height: 360px; overflow-y: auto; margin-bottom: 12px; }
.local-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.local-who .colrow-key { display: block; overflow: hidden; text-overflow: ellipsis; }

/* The local blacklist: who, the reason, Remove. */
.colrow.localrow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  column-gap: 12px;
}
.colrow.localrow input[type="text"] { height: 40px; font-size: 12px; min-width: 0; }
.colrow.localadd { padding: 0; margin-bottom: 4px; }
.local-search { width: 100%; height: 36px; font-size: 12px; margin: 4px 0 8px; }
.local-list { max-height: 360px; overflow-y: auto; }
.local-who { min-width: 0; font-size: 13px; }
.local-who > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nick-arrow { color: var(--on-surface-variant); text-align: center; font-size: 12px; }

/* AutoGL and AutoGG: a message, its wait in seconds, Remove. */
.colrow.msgrow {
  grid-template-columns: minmax(0, 1fr) 32px 72px 12px auto;
  column-gap: 8px;
}
.colrow.msgrow input { height: 40px; font-size: 12px; min-width: 0; }

/* Whether the real account checked out. Fixed width so the row does not
   jump about while the lookup is in flight. */
.nick-state {
  font-size: 11px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nick-state.ok { color: var(--success); }
.nick-state.err { color: var(--error); }

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  cursor: pointer;
}
.inline-check input { width: 18px; height: 18px; margin: 0; }

/* ---------------- chips ---------------- */

.seen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seen-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--on-surface);
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: var(--shape-sm);
  cursor: pointer;
  transition: background var(--motion);
}
.seen-item:hover { background: var(--state-hover); }
.seen-source { color: var(--primary); font-weight: 600; }
.seen-label { font-family: var(--font-mono); font-size: 11px; }
.seen-count { color: var(--on-surface-variant); font-size: 11px; }

/* ---------------- provider cards ---------------- */

.cards { display: grid; gap: 16px; margin-bottom: 16px; }

.card {
  background: var(--surface-container-low);
  border: none;
  border-radius: var(--shape-md);
  padding: 16px 20px;
  box-shadow: var(--elev-1);
}
/* A ring rather than a border, so the card does not resize when selected. */
.card.active-provider { box-shadow: var(--elev-1), inset 0 0 0 2px var(--primary); }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 16px;
}
/* Title takes the slack; everything after it stays pinned to the right
   so Remove buttons line up down the column of cards. */
.card-head .title { font-weight: 600; margin-right: auto; letter-spacing: 0.15px; }
.card-head .badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--on-primary-container);
  background: var(--primary-container);
  border-radius: var(--shape-sm);
  padding: 5px 10px;
}
.card-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.card-head input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.card-head .badge.muted { background: var(--surface-container-highest); color: var(--on-surface-variant); }
.card-head .badge.off { background: none; border: 1px solid var(--outline-variant); color: var(--on-surface-variant); }
/* A switched-off provider stays editable, just quieter. */
.card-body.card-off { opacity: 0.55; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* The layouts put a dropdown beside its label, which only fits a full-width
   row: in a cell of these grids the label would slide behind the dropdown. */
:root[data-style] .grid2 > .field:has(> select),
:root[data-style] .grid3 > .field:has(> select) { display: block; }
:root[data-style] .grid2 > .field:has(> select) > span,
:root[data-style] .grid3 > .field:has(> select) > span { margin: 0 0 8px; font-size: 12px; color: var(--on-surface-variant); }

/* Test row: fixed-width username box, button, then the result takes the
   rest. Baselines line up because all three are the same height. */
.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 200px) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 4px;
}
.card-actions .field { margin-bottom: 0; }
.result {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.45;
  align-self: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.result.ok { color: var(--success); }
.result.err { color: var(--error); }

.note { font-size: 12px; color: var(--on-surface-variant); line-height: 1.5; margin: -4px 0 16px; }

/* ---------------- help / candidates ---------------- */

.help {
  margin-top: 24px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 12px 20px;
}
.help summary { cursor: pointer; color: var(--primary); font-size: 13px; letter-spacing: 0.1px; }
.help ul { margin: 12px 0; padding-left: 20px; color: var(--on-surface-variant); line-height: 1.7; }
.help p { color: var(--on-surface-variant); line-height: 1.6; font-size: 13px; }

/* ---------------- client picker ---------------- */

.watching {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--surface-container-high);
  border-radius: var(--shape-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.watching-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
  flex: 0 0 auto;
}
.watching-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success);
  word-break: break-all;
}
.watching-path.err { color: var(--error); }

.clients { display: grid; gap: 8px; margin-bottom: 16px; }

.client {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px 12px;
  align-items: start;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion);
}
.client:hover { background: var(--surface-container); }
.client.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-container-low));
}
.client.missing { opacity: 0.55; }
.client input[type="radio"] { margin-top: 2px; width: 18px; height: 18px; }

.client-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.client-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--shape-sm);
  padding: 3px 8px;
  border: 1px solid currentColor;
}
.client-status.found { color: var(--success); }
.client-status.none { color: var(--on-surface-variant); }

.client-detail {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface-variant);
  word-break: break-all;
  margin-top: 4px;
}
.client-note { grid-column: 2; font-size: 12px; color: var(--on-surface-variant); margin-top: 4px; line-height: 1.5; }
.client-extra { grid-column: 2; margin-top: 12px; }
.client-extra .field { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--surface-container);
  box-shadow: var(--elev-2);
  /* Above <main>, or the elevation shadow is drawn behind the scrolling
     content instead of over it. */
  position: relative;
  z-index: 1;
}
/* Shorter than a button out in the page: the bar is a permanent strip and
   every pixel it takes is one the settings themselves do not get. */
.bar button { height: 34px; padding: 0 20px; }
.spacer { flex: 1 1 auto; }
.toast { font-size: 13px; color: var(--on-surface-variant); letter-spacing: 0.25px; }
.toast.ok { color: var(--success); }
.toast.err { color: var(--error); }

/* Hotkey boxes listen for the keys instead of being typed into. */
.field:has(> .hotkey-input) { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.field:has(> .hotkey-input) > span { grid-column: 1 / -1; }
.hotkey-input { cursor: pointer; caret-color: transparent; }
.hotkey-input.listening {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-container-highest));
  box-shadow: inset 0 -2px 0 var(--primary);
}
.hotkey-clear { align-self: center; }

/* Animations off (GUI tab): nothing on the page moves. */
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after {
  transition: none !important;
  animation: none !important;
}

/* Liquid Glass's entrance: up a little, out of a blur, settling with a spring. */
@keyframes kolify-liquid-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* The Liquid Glass lens behind the open tab (settings.js places it; the style shows it). */
.tabs .lens { display: none; }

/* styles:begin - generated by scripts/styles.js from src/shared/styles.js; edit those, not this */
:root[data-style="midnight"] {
  color-scheme: dark;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #5eead4;
  --on-primary: #04211c;
  --primary-container: #123b37;
  --on-primary-container: #ccfbf1;
  --surface: #0a0c10;
  --surface-container-low: #0f1218;
  --surface-container: #13171e;
  --surface-container-high: #1a1f29;
  --surface-container-highest: #232834;
  --on-surface: #e8eaf0;
  --on-surface-variant: #c9ceda;
  --outline: #8a93a6;
  --outline-variant: #262b36;
  --error: #fb7185;
  --success: #4ade80;
  --warn: #fbbf24;
  --shape-xs: 6px;
  --shape-sm: 10px;
  --shape-md: 14px;
  --shape-lg: 18px;
}
:root[data-style="midnight"][data-scheme="light"] {
  color-scheme: light;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #0d9488;
  --on-primary: #ffffff;
  --primary-container: #ccfbf1;
  --on-primary-container: #134e4a;
  --surface: #f8fafc;
  --surface-container-low: #ffffff;
  --surface-container: #f1f5f9;
  --surface-container-high: #e9eef4;
  --surface-container-highest: #e2e8f0;
  --on-surface: #0f172a;
  --on-surface-variant: #334155;
  --outline: #64748b;
  --outline-variant: #d5dce5;
  --error: #e11d48;
  --success: #16a34a;
  --warn: #b45309;
  --shape-xs: 6px;
  --shape-sm: 10px;
  --shape-md: 14px;
  --shape-lg: 18px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="midnight"] input[type="text"], :root[data-style="midnight"] input[type="number"], :root[data-style="midnight"] input[type="password"], :root[data-style="midnight"] select, :root[data-style="midnight"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="midnight"] input[type="text"]:hover, :root[data-style="midnight"] input[type="number"]:hover, :root[data-style="midnight"] input[type="password"]:hover, :root[data-style="midnight"] select:hover { background: var(--surface-container-high); }
:root[data-style="midnight"] input:focus, :root[data-style="midnight"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="midnight"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="midnight"] .field:has(> select), :root[data-style="midnight"] .field:has(> input[type="range"]), :root[data-style="midnight"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="midnight"] .field:has(> select) > span, :root[data-style="midnight"] .field:has(> input[type="range"]) > span, :root[data-style="midnight"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="midnight"] .field:has(> select) > :not(span):not(select), :root[data-style="midnight"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="midnight"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="midnight"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="midnight"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="midnight"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="midnight"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="midnight"] button:hover { background: var(--surface-container-high); }
:root[data-style="midnight"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="midnight"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="midnight"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="midnight"] .check-hint { font-size: 12.5px; }
:root[data-style="midnight"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="midnight"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="midnight"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="midnight"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: var(--outline); }
:root[data-style="midnight"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="midnight"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: var(--on-primary); }
:root[data-style="midnight"] body { padding: 20px; grid-template-columns: 236px minmax(0, 1fr); }
:root[data-style="midnight"] .nav { grid-row: 1 / span 2; border: 1px solid var(--outline-variant); border-radius: var(--shape-lg) 0 0 var(--shape-lg); padding: 22px 14px; }
:root[data-style="midnight"] main { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-left: none; border-bottom: none; border-radius: 0 var(--shape-lg) 0 0; padding: 28px 36px 40px; }
:root[data-style="midnight"] .bar { grid-column: 2; border: 1px solid var(--outline-variant); border-left: none; border-radius: 0 0 var(--shape-lg) 0; box-shadow: none; padding: 12px 24px; }
:root[data-style="midnight"] .bar::before { content: "Changes are kept when you save"; font-size: 12.5px; color: var(--on-surface-variant); }
:root[data-style="midnight"] h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="midnight"] .tab.active, :root[data-style="midnight"] .tab.active:hover { background: var(--surface-container-high); color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="midnight"] .tab { border-radius: var(--shape-sm); }
:root[data-style="midnight"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); vertical-align: middle; }
:root[data-style="midnight"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--on-surface-variant); margin: 30px 0 10px; }
:root[data-style="midnight"] h2:has(+ .group) { margin: 20px 0 0; padding: 20px 22px 6px; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="midnight"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="midnight"] .group.checks { padding: 2px 22px; }
:root[data-style="midnight"] .check { margin: 0; padding: 16px 0; border-radius: 0; }
:root[data-style="midnight"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="midnight"] .check:hover { background: none; }
:root[data-style="midnight"] .check:hover .check-title { color: var(--primary); }
:root[data-style="glass"] {
  color-scheme: dark;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #a78bfa;
  --on-primary: #12091f;
  --primary-container: #3b2e66;
  --on-primary-container: #ede9fe;
  --surface: #141024;
  --surface-container-low: #1b1630;
  --surface-container: #211b38;
  --surface-container-high: #2a2346;
  --surface-container-highest: #342c55;
  --on-surface: #f1eefb;
  --on-surface-variant: #d9d3ee;
  --outline: #a9a3c2;
  --outline-variant: #3a3358;
  --error: #fda4af;
  --success: #86efac;
  --warn: #fde68a;
  --shape-xs: 8px;
  --shape-sm: 14px;
  --shape-md: 20px;
  --shape-lg: 26px;
}
:root[data-style="glass"][data-scheme="light"] {
  color-scheme: light;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #7c3aed;
  --on-primary: #ffffff;
  --primary-container: #ede9fe;
  --on-primary-container: #3b0764;
  --surface: #f4f1fd;
  --surface-container-low: #fbfaff;
  --surface-container: #ffffff;
  --surface-container-high: #eee9fb;
  --surface-container-highest: #e4dff5;
  --on-surface: #1e1633;
  --on-surface-variant: #4b4466;
  --outline: #7c7697;
  --outline-variant: #d9d1f2;
  --error: #e11d48;
  --success: #16a34a;
  --warn: #b45309;
  --shape-xs: 8px;
  --shape-sm: 14px;
  --shape-md: 20px;
  --shape-lg: 26px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="glass"] .check input[type="checkbox"]:checked, :root[data-style="glass"] button.primary { box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 45%, transparent); }
:root[data-style="glass"] input[type="text"], :root[data-style="glass"] input[type="number"], :root[data-style="glass"] input[type="password"], :root[data-style="glass"] select, :root[data-style="glass"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="glass"] input[type="text"]:hover, :root[data-style="glass"] input[type="number"]:hover, :root[data-style="glass"] input[type="password"]:hover, :root[data-style="glass"] select:hover { background: var(--surface-container-high); }
:root[data-style="glass"] input:focus, :root[data-style="glass"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="glass"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="glass"] .field:has(> select), :root[data-style="glass"] .field:has(> input[type="range"]), :root[data-style="glass"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="glass"] .field:has(> select) > span, :root[data-style="glass"] .field:has(> input[type="range"]) > span, :root[data-style="glass"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="glass"] .field:has(> select) > :not(span):not(select), :root[data-style="glass"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="glass"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="glass"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="glass"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="glass"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="glass"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="glass"] button:hover { background: var(--surface-container-high); }
:root[data-style="glass"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="glass"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="glass"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="glass"] .check-hint { font-size: 12.5px; }
:root[data-style="glass"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="glass"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="glass"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="glass"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
:root[data-style="glass"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="glass"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: #fff; }
:root[data-style="glass"] body { padding: 14px 24px 18px; background: radial-gradient(ellipse 60% 50% at 15% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), radial-gradient(ellipse 50% 40% at 100% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent), var(--surface); }
:root[data-style="glass"] main { padding: 24px 8px 32px; }
:root[data-style="glass"] .panel { margin: 0 auto; }
:root[data-style="glass"] .group { background: color-mix(in srgb, var(--on-surface) 5%, transparent); border-color: color-mix(in srgb, var(--on-surface) 12%, transparent); border-radius: var(--shape-lg); backdrop-filter: blur(16px); }
:root[data-style="glass"] .bar { justify-self: center; width: min(860px, 100%); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-surface) 14%, transparent); background: color-mix(in srgb, var(--surface-container) 82%, transparent); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); backdrop-filter: blur(16px); padding: 8px 10px 8px 22px; }
:root[data-style="glass"] .bar button { border-radius: 999px; }
:root[data-style="glass"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); vertical-align: middle; }
:root[data-style="glass"] h1 { font-size: 26px; font-weight: 700; }
:root[data-style="glass"] .checks { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
:root[data-style="glass"] .group.checks { background: none; border: none; padding: 0; backdrop-filter: none; }
:root[data-style="glass"] .check { margin: 0; padding: 14px 16px; border-radius: var(--shape-lg); background: color-mix(in srgb, var(--on-surface) 5%, transparent); border: 1px solid color-mix(in srgb, var(--on-surface) 10%, transparent); }
:root[data-style="glass"] .check:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
:root[data-style="glass"] .check:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
:root[data-style="glass"] h2 { display: flex; align-items: center; gap: 9px; }
:root[data-style="glass"] h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
:root[data-style="glass"] body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
:root[data-style="glass"] .nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: none; border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--on-surface) 10%, transparent); overflow: visible; padding: 10px 8px 16px; }
:root[data-style="glass"] .brand { grid-auto-flow: column; align-items: baseline; gap: 10px; padding: 0; }
:root[data-style="glass"] .nav .search { width: 260px; margin-left: auto; }
:root[data-style="glass"] .tabs { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
:root[data-style="glass"] .tab { height: 32px; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--on-surface) 12%, transparent); background: color-mix(in srgb, var(--on-surface) 4%, transparent); }
:root[data-style="glass"] .tab.active, :root[data-style="glass"] .tab.active:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="glass"] .tab .count { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
:root[data-style="liquid"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #0a84ff;
  --on-primary: #ffffff;
  --primary-container: #0b3a6e;
  --on-primary-container: #d6e9ff;
  --surface: #0e0e12;
  --surface-container-low: #16161b;
  --surface-container: #1c1c22;
  --surface-container-high: #26262e;
  --surface-container-highest: #303038;
  --on-surface: #f5f5f7;
  --on-surface-variant: #c7c7cc;
  --outline: #8e8e93;
  --outline-variant: #38383f;
  --error: #ff453a;
  --success: #30d158;
  --warn: #ffd60a;
  --shape-xs: 10px;
  --shape-sm: 14px;
  --shape-md: 22px;
  --shape-lg: 28px;
}
:root[data-style="liquid"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #007aff;
  --on-primary: #ffffff;
  --primary-container: #d6e8ff;
  --on-primary-container: #00315f;
  --surface: #f2f2f7;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #ebebf0;
  --surface-container-highest: #e3e3e8;
  --on-surface: #1c1c1e;
  --on-surface-variant: #3c3c43;
  --outline: #8e8e93;
  --outline-variant: #d1d1d6;
  --error: #ff3b30;
  --success: #34c759;
  --warn: #c27c00;
  --shape-xs: 10px;
  --shape-sm: 14px;
  --shape-md: 22px;
  --shape-lg: 28px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="liquid"] input[type="text"], :root[data-style="liquid"] input[type="number"], :root[data-style="liquid"] input[type="password"], :root[data-style="liquid"] select, :root[data-style="liquid"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="liquid"] input[type="text"]:hover, :root[data-style="liquid"] input[type="number"]:hover, :root[data-style="liquid"] input[type="password"]:hover, :root[data-style="liquid"] select:hover { background: var(--surface-container-high); }
:root[data-style="liquid"] input:focus, :root[data-style="liquid"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="liquid"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="liquid"] .field:has(> select), :root[data-style="liquid"] .field:has(> input[type="range"]), :root[data-style="liquid"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="liquid"] .field:has(> select) > span, :root[data-style="liquid"] .field:has(> input[type="range"]) > span, :root[data-style="liquid"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="liquid"] .field:has(> select) > :not(span):not(select), :root[data-style="liquid"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="liquid"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="liquid"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="liquid"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="liquid"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="liquid"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="liquid"] button:hover { background: var(--surface-container-high); }
:root[data-style="liquid"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="liquid"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="liquid"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="liquid"] .check-hint { font-size: 12.5px; }
:root[data-style="liquid"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="liquid"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="liquid"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="liquid"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: var(--outline); }
:root[data-style="liquid"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="liquid"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: var(--on-primary); }
:root[data-style="liquid"] body { padding: 14px 24px 18px; background: radial-gradient(ellipse 60% 50% at 15% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), radial-gradient(ellipse 50% 40% at 100% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent), var(--surface); }
:root[data-style="liquid"] main { padding: 24px 8px 32px; }
:root[data-style="liquid"] .panel { margin: 0 auto; }
:root[data-style="liquid"] .group { background: color-mix(in srgb, var(--on-surface) 5%, transparent); border-color: color-mix(in srgb, var(--on-surface) 12%, transparent); border-radius: var(--shape-lg); backdrop-filter: blur(16px); }
:root[data-style="liquid"] .bar { justify-self: center; width: min(860px, 100%); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-surface) 14%, transparent); background: color-mix(in srgb, var(--surface-container) 82%, transparent); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); backdrop-filter: blur(16px); padding: 8px 10px 8px 22px; }
:root[data-style="liquid"] .bar button { border-radius: 999px; }
:root[data-style="liquid"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); vertical-align: middle; }
:root[data-style="liquid"] h1 { font-size: 26px; font-weight: 700; }
:root[data-style="liquid"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--on-surface-variant); margin: 28px 0 10px 4px; }
:root[data-style="liquid"] h2:has(+ .group) { margin: 18px 0 0; padding: 20px 22px 6px; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="liquid"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="liquid"] .group { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--shape-lg); box-shadow: var(--elev-1); }
:root[data-style="liquid"] .group.checks { padding: 2px 20px; }
:root[data-style="liquid"] .check { margin: 0; padding: 14px 0; border-radius: 0; }
:root[data-style="liquid"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="liquid"] .check:hover { background: none; }
:root[data-style="liquid"] body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
:root[data-style="liquid"] .nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: none; border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--on-surface) 10%, transparent); overflow: visible; padding: 10px 8px 16px; }
:root[data-style="liquid"] .brand { grid-auto-flow: column; align-items: baseline; gap: 10px; padding: 0; }
:root[data-style="liquid"] .nav .search { width: 260px; margin-left: auto; }
:root[data-style="liquid"] .tabs { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
:root[data-style="liquid"] .tab { height: 32px; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--on-surface) 12%, transparent); background: color-mix(in srgb, var(--on-surface) 4%, transparent); }
:root[data-style="liquid"] .tab.active, :root[data-style="liquid"] .tab.active:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="liquid"] .tab .count { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
:root[data-style="liquid"] { --motion: 360ms cubic-bezier(0.32, 0.72, 0, 1); --spring: 620ms cubic-bezier(0.34, 1.45, 0.5, 1); --glass: color-mix(in srgb, var(--surface-container) 56%, transparent); --glass-strong: color-mix(in srgb, var(--surface-container) 78%, transparent); --rim: rgba(255, 255, 255, 0.14); --rim-top: rgba(255, 255, 255, 0.34); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 48%); --lift: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 36px rgba(0, 0, 0, 0.32); --lens: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)); --wall-a: #3a2d8f; --wall-b: #0b5c7a; --wall-c: #7a2d5f; }
:root[data-style="liquid"][data-scheme="light"] { --glass: rgba(255, 255, 255, 0.55); --glass-strong: rgba(255, 255, 255, 0.78); --rim: rgba(255, 255, 255, 0.75); --rim-top: rgba(255, 255, 255, 1); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 52%); --lift: 0 1px 1px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.1); --lens: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82)); --wall-a: #b9c8ff; --wall-b: #a8ecdf; --wall-c: #ffc6dd; }
:root[data-style="liquid"] body { background: radial-gradient(ellipse 55% 45% at 8% 0%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%), radial-gradient(ellipse 50% 50% at 100% 18%, color-mix(in srgb, var(--wall-a) 55%, transparent), transparent 70%), radial-gradient(ellipse 60% 50% at 70% 100%, color-mix(in srgb, var(--wall-b) 50%, transparent), transparent 70%), radial-gradient(ellipse 45% 40% at 0% 85%, color-mix(in srgb, var(--wall-c) 45%, transparent), transparent 70%), var(--surface); background-attachment: fixed; }
:root[data-style="liquid"] .group, :root[data-style="liquid"] .card, :root[data-style="liquid"] details.help { background: var(--sheen), var(--glass); backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--rim); border-radius: var(--shape-lg); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="liquid"] .group.checks { padding: 2px 18px; }
:root[data-style="liquid"] h2, :root[data-style="liquid"] h2:has(+ .group) { margin: 26px 0 8px 6px; padding: 0; background: none; border: none; border-radius: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-surface-variant); }
:root[data-style="liquid"] h2:has(+ .group) + .group { border-top: 1px solid var(--rim); border-radius: var(--shape-lg); padding-top: 2px; }
:root[data-style="liquid"] h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.6px; }
:root[data-style="liquid"] .check { padding: 13px 0; transition: background var(--motion); }
:root[data-style="liquid"] .check + .check { border-top: 1px solid color-mix(in srgb, var(--on-surface) 8%, transparent); }
:root[data-style="liquid"] .nav { border-bottom: none; }
:root[data-style="liquid"] .tabs { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 22px; background: var(--sheen), var(--glass); backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="liquid"] .tab { position: relative; z-index: 1; height: 32px; padding: 0 15px; border: none; border-radius: 999px; background: transparent; box-shadow: none; backdrop-filter: none; transition: color var(--motion), background var(--motion), transform var(--spring); }
:root[data-style="liquid"] .tab:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
:root[data-style="liquid"] .tab:active { transform: scale(0.94); }
:root[data-style="liquid"] .tab.active, :root[data-style="liquid"] .tab.active:hover { background: transparent; border: none; box-shadow: none; color: var(--on-surface); font-weight: 650; }
:root[data-style="liquid"] .tabs .lens { display: block; position: absolute; z-index: 0; border-radius: 999px; background: var(--lens); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 16px rgba(0, 0, 0, 0.22); transition: left var(--spring), top var(--spring), width var(--spring), height var(--spring); pointer-events: none; }
:root[data-style="liquid"] input[type="text"], :root[data-style="liquid"] input[type="number"], :root[data-style="liquid"] input[type="password"], :root[data-style="liquid"] select, :root[data-style="liquid"] .hotkey-input { border-radius: 12px; background-color: color-mix(in srgb, var(--on-surface) 6%, transparent); border: 1px solid var(--rim); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); transition: border-color var(--motion), box-shadow var(--motion), background-color var(--motion); }
:root[data-style="liquid"] .nav .search { border-radius: 999px; }
:root[data-style="liquid"] button { border-radius: 999px; background: var(--sheen), var(--glass); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top); backdrop-filter: blur(20px) saturate(170%); transition: transform var(--spring), background var(--motion), box-shadow var(--motion); }
:root[data-style="liquid"] button:hover { background: var(--sheen), var(--glass-strong); }
:root[data-style="liquid"] button:active { transform: scale(0.95); }
:root[data-style="liquid"] button.primary { background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%), var(--primary); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="liquid"] button.primary:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 60%), var(--primary); }
:root[data-style="liquid"] .check input[type="checkbox"] { width: 50px; height: 30px; border: none; border-radius: 999px; background: color-mix(in srgb, var(--on-surface) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-surface) 6%, transparent); transition: background var(--motion); }
:root[data-style="liquid"] .check input[type="checkbox"]::before { left: 2px; width: 26px; height: 26px; margin-top: -13px; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: left var(--spring), width var(--spring); }
:root[data-style="liquid"] .check input[type="checkbox"]:checked { background: var(--success); box-shadow: none; }
:root[data-style="liquid"] .check input[type="checkbox"]:checked::before { left: 22px; width: 26px; height: 26px; margin-top: -13px; background: #fff; }
:root[data-style="liquid"] .check input[type="checkbox"]:active::before { width: 33px; }
:root[data-style="liquid"] .check input[type="checkbox"]:checked:active::before { left: 15px; }
:root[data-style="liquid"] input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; }
:root[data-style="liquid"] input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08); transition: transform var(--spring); }
:root[data-style="liquid"] input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
:root[data-style="liquid"] .bar { border-radius: 999px; background: var(--sheen), var(--glass-strong); backdrop-filter: blur(32px) saturate(180%); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="liquid"] .brand-name::before { background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--primary) 80%, #fff) 40%, var(--primary)); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 70%, transparent); }
:root[data-style="liquid"] .panel.active { animation: kolify-liquid-in 560ms cubic-bezier(0.22, 1.2, 0.36, 1) both; }
:root[data-style="terminal"] {
  color-scheme: dark;
  --font: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --primary: #a3e635;
  --on-primary: #070707;
  --primary-container: #22300c;
  --on-primary-container: #ecfccb;
  --surface: #050505;
  --surface-container-low: #0a0a0a;
  --surface-container: #0f0f0f;
  --surface-container-high: #171717;
  --surface-container-highest: #1f1f1f;
  --on-surface: #e5e5e5;
  --on-surface-variant: #a3a3a3;
  --outline: #737373;
  --outline-variant: #262626;
  --error: #f87171;
  --success: #a3e635;
  --warn: #facc15;
  --shape-xs: 0px;
  --shape-sm: 2px;
  --shape-md: 3px;
  --shape-lg: 3px;
  --shape-full: 2px;
}
:root[data-style="terminal"][data-scheme="light"] {
  color-scheme: light;
  --font: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --primary: #3f7d0b;
  --on-primary: #fafaf7;
  --primary-container: #e3f2c9;
  --on-primary-container: #1f3d05;
  --surface: #fafaf7;
  --surface-container-low: #f5f5f1;
  --surface-container: #f0f0ec;
  --surface-container-high: #e8e8e3;
  --surface-container-highest: #deded8;
  --on-surface: #1c1c1c;
  --on-surface-variant: #4a4a4a;
  --outline: #7a7a7a;
  --outline-variant: #d4d4d0;
  --error: #c0262d;
  --success: #3f7d0b;
  --warn: #9a6700;
  --shape-xs: 0px;
  --shape-sm: 2px;
  --shape-md: 3px;
  --shape-lg: 3px;
  --shape-full: 2px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="terminal"] .check input[type="checkbox"] { width: 22px; height: 22px; border-radius: 2px; }
:root[data-style="terminal"] .check input[type="checkbox"]::before { left: 4px; width: 10px; height: 10px; margin-top: -5px; border-radius: 1px; background: transparent; }
:root[data-style="terminal"] .check input[type="checkbox"]:checked { background: transparent; }
:root[data-style="terminal"] .check input[type="checkbox"]:checked::before { left: 4px; width: 10px; height: 10px; margin-top: -5px; background: var(--primary); }
:root[data-style="terminal"] input[type="text"], :root[data-style="terminal"] input[type="number"], :root[data-style="terminal"] input[type="password"], :root[data-style="terminal"] select, :root[data-style="terminal"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="terminal"] input[type="text"]:hover, :root[data-style="terminal"] input[type="number"]:hover, :root[data-style="terminal"] input[type="password"]:hover, :root[data-style="terminal"] select:hover { background: var(--surface-container-high); }
:root[data-style="terminal"] input:focus, :root[data-style="terminal"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="terminal"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="terminal"] .field:has(> select), :root[data-style="terminal"] .field:has(> input[type="range"]), :root[data-style="terminal"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="terminal"] .field:has(> select) > span, :root[data-style="terminal"] .field:has(> input[type="range"]) > span, :root[data-style="terminal"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="terminal"] .field:has(> select) > :not(span):not(select), :root[data-style="terminal"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="terminal"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="terminal"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="terminal"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="terminal"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="terminal"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="terminal"] button:hover { background: var(--surface-container-high); }
:root[data-style="terminal"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="terminal"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="terminal"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="terminal"] .check-hint { font-size: 12.5px; }
:root[data-style="terminal"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="terminal"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="terminal"] input[type="range"]::-webkit-slider-runnable-track { border-radius: 0; }
:root[data-style="terminal"] input[type="range"]::-webkit-slider-thumb { border-radius: 0; width: 8px; height: 14px; background: var(--primary); box-shadow: none; }
:root[data-style="terminal"] button.primary { box-shadow: none; }
:root[data-style="terminal"] .nav { background: var(--surface); }
:root[data-style="terminal"] .brand-name { font-size: 15px; text-transform: lowercase; color: var(--primary); }
:root[data-style="terminal"] .brand-edition::before { content: "/ "; color: var(--outline); }
:root[data-style="terminal"] h1 { font-size: 16px; font-weight: 700; text-transform: lowercase; }
:root[data-style="terminal"] h1::before { content: "~/settings/"; color: var(--primary); font-weight: 400; }
:root[data-style="terminal"] .lead { font-size: 12.5px; }
:root[data-style="terminal"] .lead::before { content: "# "; color: var(--outline); }
:root[data-style="terminal"] .group { background: none; border-radius: 0; }
:root[data-style="terminal"] .bar { box-shadow: none; border-top: 1px solid var(--outline-variant); background: var(--surface); padding: 4px 16px; font-size: 12px; }
:root[data-style="terminal"] .bar::before { content: "kolify@settings:~$"; color: var(--primary); }
:root[data-style="terminal"] .bar button { height: 26px; padding: 0 4px; border: none; border-radius: 0; background: none; color: var(--on-surface-variant); font-size: 12px; }
:root[data-style="terminal"] .bar button::before { content: "[ "; }
:root[data-style="terminal"] .bar button::after { content: " ]"; }
:root[data-style="terminal"] .bar button.primary { background: none; color: var(--primary); }
:root[data-style="terminal"] .bar button:hover, :root[data-style="terminal"] .bar button.primary:hover { background: none; color: var(--on-surface); }
:root[data-style="terminal"] h2 { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); }
:root[data-style="terminal"] h2::before { content: "//"; color: var(--outline); }
:root[data-style="terminal"] h2::after { content: ""; flex: 1; border-top: 1px dashed var(--outline-variant); }
:root[data-style="terminal"] .group.checks { padding: 0 16px; }
:root[data-style="terminal"] .check { grid-template-columns: auto minmax(0, 1fr); margin: 0; padding: 10px 0; border-radius: 0; }
:root[data-style="terminal"] .check input[type="checkbox"] { grid-column: 1; }
:root[data-style="terminal"] .check-text { grid-column: 2; }
:root[data-style="terminal"] .check + .check { border-top: 1px dashed var(--outline-variant); }
:root[data-style="terminal"] .check:hover { background: none; }
:root[data-style="terminal"] .check:hover .check-title { color: var(--primary); }
:root[data-style="terminal"] .check-title { text-transform: lowercase; }
:root[data-style="terminal"] .tabs { counter-reset: tab; gap: 0; }
:root[data-style="terminal"] .tab { height: 30px; border-radius: 0; font-size: 12.5px; text-transform: lowercase; }
:root[data-style="terminal"] .tab::before { counter-increment: tab; content: "  " counter(tab, decimal-leading-zero); white-space: pre; color: var(--outline); }
:root[data-style="terminal"] .tab.active::before { content: "> " counter(tab, decimal-leading-zero); color: inherit; }
:root[data-style="terminal"] .tab.active, :root[data-style="terminal"] .tab.active:hover { background: var(--primary); color: var(--on-primary); font-weight: 700; }
:root[data-style="terminal"] .tab .count { border-radius: 0; }
:root[data-style="daylight"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #60a5fa;
  --on-primary: #0b1220;
  --primary-container: #1e3a8a;
  --on-primary-container: #dbeafe;
  --surface: #121418;
  --surface-container-low: #1d2027;
  --surface-container: #1d2027;
  --surface-container-high: #262a33;
  --surface-container-highest: #2f343e;
  --on-surface: #eceef2;
  --on-surface-variant: #b7bdc8;
  --outline: #7a8291;
  --outline-variant: #2f343e;
  --error: #fb7185;
  --success: #4ade80;
  --warn: #fbbf24;
  --shape-xs: 8px;
  --shape-sm: 12px;
  --shape-md: 16px;
  --shape-lg: 20px;
}
:root[data-style="daylight"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #2563eb;
  --on-primary: #ffffff;
  --primary-container: #dbeafe;
  --on-primary-container: #1e3a8a;
  --surface: #f3f4f7;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #eef0f4;
  --surface-container-highest: #e3e6ec;
  --on-surface: #12141a;
  --on-surface-variant: #4b5563;
  --outline: #6b7280;
  --outline-variant: #e3e6ec;
  --error: #be123c;
  --success: #15803d;
  --warn: #b45309;
  --shape-xs: 8px;
  --shape-sm: 12px;
  --shape-md: 16px;
  --shape-lg: 20px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="daylight"] input[type="text"], :root[data-style="daylight"] input[type="number"], :root[data-style="daylight"] input[type="password"], :root[data-style="daylight"] select, :root[data-style="daylight"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="daylight"] input[type="text"]:hover, :root[data-style="daylight"] input[type="number"]:hover, :root[data-style="daylight"] input[type="password"]:hover, :root[data-style="daylight"] select:hover { background: var(--surface-container-high); }
:root[data-style="daylight"] input:focus, :root[data-style="daylight"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="daylight"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="daylight"] .field:has(> select), :root[data-style="daylight"] .field:has(> input[type="range"]), :root[data-style="daylight"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="daylight"] .field:has(> select) > span, :root[data-style="daylight"] .field:has(> input[type="range"]) > span, :root[data-style="daylight"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="daylight"] .field:has(> select) > :not(span):not(select), :root[data-style="daylight"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="daylight"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="daylight"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="daylight"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="daylight"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="daylight"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="daylight"] button:hover { background: var(--surface-container-high); }
:root[data-style="daylight"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="daylight"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="daylight"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="daylight"] .check-hint { font-size: 12.5px; }
:root[data-style="daylight"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="daylight"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="daylight"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="daylight"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
:root[data-style="daylight"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 0%, transparent); }
:root[data-style="daylight"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: #fff; }
:root[data-style="daylight"] body { padding: 20px; grid-template-columns: 236px minmax(0, 1fr); }
:root[data-style="daylight"] .nav { grid-row: 1 / span 2; border: 1px solid var(--outline-variant); border-radius: var(--shape-lg) 0 0 var(--shape-lg); padding: 22px 14px; }
:root[data-style="daylight"] main { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-left: none; border-bottom: none; border-radius: 0 var(--shape-lg) 0 0; padding: 28px 36px 40px; }
:root[data-style="daylight"] .bar { grid-column: 2; border: 1px solid var(--outline-variant); border-left: none; border-radius: 0 0 var(--shape-lg) 0; box-shadow: none; padding: 12px 24px; }
:root[data-style="daylight"] .bar::before { content: "Changes are kept when you save"; font-size: 12.5px; color: var(--on-surface-variant); }
:root[data-style="daylight"] h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="daylight"] .tab.active, :root[data-style="daylight"] .tab.active:hover { background: var(--surface-container-high); color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="daylight"] .tab { border-radius: var(--shape-sm); }
:root[data-style="daylight"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); vertical-align: middle; }
:root[data-style="daylight"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--on-surface-variant); margin: 28px 0 10px 4px; }
:root[data-style="daylight"] h2:has(+ .group) { margin: 18px 0 0; padding: 20px 22px 6px; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="daylight"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="daylight"] .group { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--shape-lg); box-shadow: var(--elev-1); }
:root[data-style="daylight"] .group.checks { padding: 2px 20px; }
:root[data-style="daylight"] .check { margin: 0; padding: 14px 0; border-radius: 0; }
:root[data-style="daylight"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="daylight"] .check:hover { background: none; }
:root[data-style="daylight"] .tab[data-tab="overlay"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="daylight"] .tab[data-tab="overlay"]::before { content: "Display"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="daylight"] .tab[data-tab="players"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="daylight"] .tab[data-tab="players"]::before { content: "Data"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="daylight"] body:not(.ed-desktop) .tab[data-tab="anticheat"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="daylight"] body:not(.ed-desktop) .tab[data-tab="anticheat"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="daylight"] body.ed-desktop .tab[data-tab="hotkeys"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="daylight"] body.ed-desktop .tab[data-tab="hotkeys"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="daylight"] .tab.active, :root[data-style="daylight"] .tab.active:hover { background: var(--surface-container-low); color: var(--on-surface); box-shadow: var(--elev-1); }
:root[data-style="daylight"] .nav { background: var(--surface); border-right-color: transparent; }
:root[data-style="daylight"] body { padding: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); }
:root[data-style="daylight"] .nav { grid-row: 1; grid-column: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand . search" "tabs tabs tabs"; align-items: center; gap: 10px 18px; padding: 12px 24px; background: var(--surface-container-low); border: none; border-bottom: 1px solid var(--outline-variant); border-radius: 0; overflow: visible; }
:root[data-style="daylight"] .nav > .brand { grid-area: brand; }
:root[data-style="daylight"] .nav > .tabs { grid-area: tabs; }
:root[data-style="daylight"] .brand { grid-auto-flow: column; align-items: center; gap: 10px; padding: 0; }
:root[data-style="daylight"] .brand-name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
:root[data-style="daylight"] .brand-name::before { content: ""; width: 28px; height: 28px; margin: 0; border-radius: 9px; box-shadow: none; background: radial-gradient(circle, #fff 0 4px, transparent 4.5px), var(--primary); }
:root[data-style="daylight"] .brand-edition { display: none; }
:root[data-style="daylight"] .nav .search { grid-area: search; width: 220px; margin: 0; border-radius: var(--shape-sm); }
:root[data-style="daylight"] .tabs { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
:root[data-style="daylight"] .tab { height: 34px; padding: 0 12px; border-radius: var(--shape-sm); margin-top: 0; white-space: nowrap; }
:root[data-style="daylight"] .tabs .tab[data-tab] { margin-top: 0 !important; }
:root[data-style="daylight"] .tabs .tab[data-tab]::before { display: none !important; }
:root[data-style="daylight"] .tab.active, :root[data-style="daylight"] .tab.active:hover { background: var(--primary-container); color: var(--primary); font-weight: 700; box-shadow: none; }
:root[data-style="daylight"] .tab .count { margin-left: 4px; }
:root[data-style="daylight"] main { grid-row: 2; grid-column: 1 / -1; background: var(--surface); border: none; border-radius: 0; padding: 36px 24px 56px; }
:root[data-style="daylight"] .panel { margin: 0 auto; }
:root[data-style="daylight"] .bar { grid-row: 1; grid-column: 2; align-self: stretch; align-items: flex-start; border: none; border-bottom: 1px solid var(--outline-variant); border-radius: 0; box-shadow: none; background: var(--surface-container-low); padding: 12px 24px 0 0; }
:root[data-style="daylight"] .bar::before { content: none; }
:root[data-style="daylight"] .bar > * { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
:root[data-style="daylight"] .bar button.primary { height: 38px; padding: 0 18px; border-radius: var(--shape-sm); box-shadow: var(--elev-1); }
:root[data-style="minimal"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #5b66f0;
  --on-primary: #ffffff;
  --primary-container: #262b6b;
  --on-primary-container: #e0e3ff;
  --surface: #111113;
  --surface-container-low: #18181b;
  --surface-container: #18181b;
  --surface-container-high: #1f1f24;
  --surface-container-highest: #26262b;
  --on-surface: #ededf0;
  --on-surface-variant: #a8a8b1;
  --outline: #6e6e78;
  --outline-variant: #26262b;
  --error: #f25c6e;
  --success: #3dd68c;
  --warn: #f5b544;
  --shape-xs: 8px;
  --shape-sm: 10px;
  --shape-md: 12px;
  --shape-lg: 16px;
}
:root[data-style="minimal"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #4450e6;
  --on-primary: #ffffff;
  --primary-container: #e0e3ff;
  --on-primary-container: #1e2475;
  --surface: #fafafb;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #f0f0f3;
  --surface-container-highest: #e4e4e9;
  --on-surface: #16161a;
  --on-surface-variant: #5e5e68;
  --outline: #8a8a94;
  --outline-variant: #e4e4e9;
  --error: #d9364a;
  --success: #16a34a;
  --warn: #b45309;
  --shape-xs: 8px;
  --shape-sm: 10px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="minimal"] input[type="text"], :root[data-style="minimal"] input[type="number"], :root[data-style="minimal"] input[type="password"], :root[data-style="minimal"] select, :root[data-style="minimal"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="minimal"] input[type="text"]:hover, :root[data-style="minimal"] input[type="number"]:hover, :root[data-style="minimal"] input[type="password"]:hover, :root[data-style="minimal"] select:hover { background: var(--surface-container-high); }
:root[data-style="minimal"] input:focus, :root[data-style="minimal"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="minimal"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="minimal"] .field:has(> select), :root[data-style="minimal"] .field:has(> input[type="range"]), :root[data-style="minimal"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="minimal"] .field:has(> select) > span, :root[data-style="minimal"] .field:has(> input[type="range"]) > span, :root[data-style="minimal"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="minimal"] .field:has(> select) > :not(span):not(select), :root[data-style="minimal"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="minimal"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="minimal"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="minimal"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="minimal"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="minimal"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="minimal"] button:hover { background: var(--surface-container-high); }
:root[data-style="minimal"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="minimal"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="minimal"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="minimal"] .check-hint { font-size: 12.5px; }
:root[data-style="minimal"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="minimal"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="minimal"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="minimal"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: var(--outline); }
:root[data-style="minimal"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="minimal"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: var(--on-primary); }
:root[data-style="minimal"] body { padding: 20px; grid-template-columns: 236px minmax(0, 1fr); }
:root[data-style="minimal"] .nav { grid-row: 1 / span 2; border: 1px solid var(--outline-variant); border-radius: var(--shape-lg) 0 0 var(--shape-lg); padding: 22px 14px; }
:root[data-style="minimal"] main { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-left: none; border-bottom: none; border-radius: 0 var(--shape-lg) 0 0; padding: 28px 36px 40px; }
:root[data-style="minimal"] .bar { grid-column: 2; border: 1px solid var(--outline-variant); border-left: none; border-radius: 0 0 var(--shape-lg) 0; box-shadow: none; padding: 12px 24px; }
:root[data-style="minimal"] .bar::before { content: "Changes are kept when you save"; font-size: 12.5px; color: var(--on-surface-variant); }
:root[data-style="minimal"] h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="minimal"] .tab.active, :root[data-style="minimal"] .tab.active:hover { background: var(--surface-container-high); color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="minimal"] .tab { border-radius: var(--shape-sm); }
:root[data-style="minimal"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); vertical-align: middle; }
:root[data-style="minimal"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--on-surface-variant); margin: 28px 0 10px 4px; }
:root[data-style="minimal"] h2:has(+ .group) { margin: 18px 0 0; padding: 20px 22px 6px; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="minimal"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="minimal"] .group { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--shape-lg); box-shadow: var(--elev-1); }
:root[data-style="minimal"] .group.checks { padding: 2px 20px; }
:root[data-style="minimal"] .check { margin: 0; padding: 14px 0; border-radius: 0; }
:root[data-style="minimal"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="minimal"] .check:hover { background: none; }
:root[data-style="minimal"] .tab[data-tab="overlay"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="minimal"] .tab[data-tab="overlay"]::before { content: "Display"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="minimal"] .tab[data-tab="players"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="minimal"] .tab[data-tab="players"]::before { content: "Data"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="minimal"] body:not(.ed-desktop) .tab[data-tab="anticheat"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="minimal"] body:not(.ed-desktop) .tab[data-tab="anticheat"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="minimal"] body.ed-desktop .tab[data-tab="hotkeys"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="minimal"] body.ed-desktop .tab[data-tab="hotkeys"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="minimal"] .tab.active, :root[data-style="minimal"] .tab.active:hover { background: var(--surface-container-low); color: var(--on-surface); box-shadow: var(--elev-1); }
:root[data-style="minimal"] .nav { background: var(--surface); border-right-color: transparent; }
:root[data-style="obsidian"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #ededef;
  --on-primary: #0b0b0c;
  --primary-container: #2a2b2e;
  --on-primary-container: #ffffff;
  --surface: #0b0b0c;
  --surface-container-low: #111113;
  --surface-container: #141416;
  --surface-container-high: #1b1b1e;
  --surface-container-highest: #232326;
  --on-surface: #ededef;
  --on-surface-variant: #a3a6ad;
  --outline: #6b6e75;
  --outline-variant: #232326;
  --error: #ff8a73;
  --success: #4ade80;
  --warn: #ffb27a;
  --shape-xs: 6px;
  --shape-sm: 8px;
  --shape-md: 10px;
  --shape-lg: 14px;
}
:root[data-style="obsidian"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #111214;
  --on-primary: #ffffff;
  --primary-container: #e6e6e8;
  --on-primary-container: #111214;
  --surface: #fbfbfa;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #f1f1f0;
  --surface-container-highest: #e6e6e5;
  --on-surface: #111214;
  --on-surface-variant: #5e6068;
  --outline: #8e9097;
  --outline-variant: #e6e6e5;
  --error: #d9452b;
  --success: #15803d;
  --warn: #b4530a;
  --shape-xs: 6px;
  --shape-sm: 8px;
  --shape-md: 10px;
  --shape-lg: 14px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="obsidian"] input[type="text"], :root[data-style="obsidian"] input[type="number"], :root[data-style="obsidian"] input[type="password"], :root[data-style="obsidian"] select, :root[data-style="obsidian"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="obsidian"] input[type="text"]:hover, :root[data-style="obsidian"] input[type="number"]:hover, :root[data-style="obsidian"] input[type="password"]:hover, :root[data-style="obsidian"] select:hover { background: var(--surface-container-high); }
:root[data-style="obsidian"] input:focus, :root[data-style="obsidian"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="obsidian"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="obsidian"] .field:has(> select), :root[data-style="obsidian"] .field:has(> input[type="range"]), :root[data-style="obsidian"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="obsidian"] .field:has(> select) > span, :root[data-style="obsidian"] .field:has(> input[type="range"]) > span, :root[data-style="obsidian"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="obsidian"] .field:has(> select) > :not(span):not(select), :root[data-style="obsidian"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="obsidian"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="obsidian"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="obsidian"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="obsidian"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="obsidian"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="obsidian"] button:hover { background: var(--surface-container-high); }
:root[data-style="obsidian"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="obsidian"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="obsidian"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="obsidian"] .check-hint { font-size: 12.5px; }
:root[data-style="obsidian"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="obsidian"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="obsidian"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="obsidian"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: var(--outline); }
:root[data-style="obsidian"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="obsidian"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: var(--on-primary); }
:root[data-style="obsidian"] body { padding: 20px; grid-template-columns: 236px minmax(0, 1fr); }
:root[data-style="obsidian"] .nav { grid-row: 1 / span 2; border: 1px solid var(--outline-variant); border-radius: var(--shape-lg) 0 0 var(--shape-lg); padding: 22px 14px; }
:root[data-style="obsidian"] main { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-left: none; border-bottom: none; border-radius: 0 var(--shape-lg) 0 0; padding: 28px 36px 40px; }
:root[data-style="obsidian"] .bar { grid-column: 2; border: 1px solid var(--outline-variant); border-left: none; border-radius: 0 0 var(--shape-lg) 0; box-shadow: none; padding: 12px 24px; }
:root[data-style="obsidian"] .bar::before { content: "Changes are kept when you save"; font-size: 12.5px; color: var(--on-surface-variant); }
:root[data-style="obsidian"] h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="obsidian"] .tab.active, :root[data-style="obsidian"] .tab.active:hover { background: var(--surface-container-high); color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="obsidian"] .tab { border-radius: var(--shape-sm); }
:root[data-style="obsidian"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); vertical-align: middle; }
:root[data-style="obsidian"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--on-surface-variant); margin: 30px 0 10px; }
:root[data-style="obsidian"] h2:has(+ .group) { margin: 20px 0 0; padding: 20px 22px 6px; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="obsidian"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="obsidian"] .group.checks { padding: 2px 22px; }
:root[data-style="obsidian"] .check { margin: 0; padding: 16px 0; border-radius: 0; }
:root[data-style="obsidian"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="obsidian"] .check:hover { background: none; }
:root[data-style="obsidian"] .check:hover .check-title { color: var(--primary); }
:root[data-style="obsidian"] .tab[data-tab="overlay"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="obsidian"] .tab[data-tab="overlay"]::before { content: "Display"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="obsidian"] .tab[data-tab="players"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="obsidian"] .tab[data-tab="players"]::before { content: "Data"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="obsidian"] body:not(.ed-desktop) .tab[data-tab="anticheat"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="obsidian"] body:not(.ed-desktop) .tab[data-tab="anticheat"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="obsidian"] body.ed-desktop .tab[data-tab="hotkeys"] { position: relative; margin-top: 30px; overflow: visible; }
:root[data-style="obsidian"] body.ed-desktop .tab[data-tab="hotkeys"]::before { content: "Game"; position: absolute; left: 12px; top: -22px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-surface-variant); }
:root[data-style="obsidian"] .tab.active, :root[data-style="obsidian"] .tab.active:hover { background: var(--surface-container-low); color: var(--on-surface); box-shadow: var(--elev-1); }
:root[data-style="obsidian"] .nav { background: var(--surface); border-right-color: transparent; }
:root[data-style="porcelain"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #4d8bff;
  --on-primary: #ffffff;
  --primary-container: #1b3a75;
  --on-primary-container: #dce7ff;
  --surface: #151517;
  --surface-container-low: #1c1c1f;
  --surface-container: #1c1c1f;
  --surface-container-high: #26262a;
  --surface-container-highest: #303035;
  --on-surface: #f2f2f4;
  --on-surface-variant: #c3c5cc;
  --outline: #8a8c94;
  --outline-variant: #303035;
  --error: #ff6b6b;
  --success: #32d74b;
  --warn: #ffb340;
  --shape-xs: 8px;
  --shape-sm: 10px;
  --shape-md: 14px;
  --shape-lg: 18px;
}
:root[data-style="porcelain"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #2f6bef;
  --on-primary: #ffffff;
  --primary-container: #dce7ff;
  --on-primary-container: #0b2a6b;
  --surface: #f5f5f7;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #ececef;
  --surface-container-highest: #e3e3e8;
  --on-surface: #16181d;
  --on-surface-variant: #5b616d;
  --outline: #8a9099;
  --outline-variant: #e3e5e9;
  --error: #d7263d;
  --success: #1f9d55;
  --warn: #b7791f;
  --shape-xs: 8px;
  --shape-sm: 10px;
  --shape-md: 14px;
  --shape-lg: 18px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="porcelain"] input[type="text"], :root[data-style="porcelain"] input[type="number"], :root[data-style="porcelain"] input[type="password"], :root[data-style="porcelain"] select, :root[data-style="porcelain"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="porcelain"] input[type="text"]:hover, :root[data-style="porcelain"] input[type="number"]:hover, :root[data-style="porcelain"] input[type="password"]:hover, :root[data-style="porcelain"] select:hover { background: var(--surface-container-high); }
:root[data-style="porcelain"] input:focus, :root[data-style="porcelain"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="porcelain"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="porcelain"] .field:has(> select), :root[data-style="porcelain"] .field:has(> input[type="range"]), :root[data-style="porcelain"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="porcelain"] .field:has(> select) > span, :root[data-style="porcelain"] .field:has(> input[type="range"]) > span, :root[data-style="porcelain"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="porcelain"] .field:has(> select) > :not(span):not(select), :root[data-style="porcelain"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="porcelain"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="porcelain"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="porcelain"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="porcelain"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="porcelain"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="porcelain"] button:hover { background: var(--surface-container-high); }
:root[data-style="porcelain"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="porcelain"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="porcelain"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="porcelain"] .check-hint { font-size: 12.5px; }
:root[data-style="porcelain"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="porcelain"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="porcelain"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="porcelain"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
:root[data-style="porcelain"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 0%, transparent); }
:root[data-style="porcelain"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: #fff; }
:root[data-style="porcelain"] body { padding: 20px; grid-template-columns: 236px minmax(0, 1fr); }
:root[data-style="porcelain"] .nav { grid-row: 1 / span 2; border: 1px solid var(--outline-variant); border-radius: var(--shape-lg) 0 0 var(--shape-lg); padding: 22px 14px; }
:root[data-style="porcelain"] main { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-left: none; border-bottom: none; border-radius: 0 var(--shape-lg) 0 0; padding: 28px 36px 40px; }
:root[data-style="porcelain"] .bar { grid-column: 2; border: 1px solid var(--outline-variant); border-left: none; border-radius: 0 0 var(--shape-lg) 0; box-shadow: none; padding: 12px 24px; }
:root[data-style="porcelain"] .bar::before { content: "Changes are kept when you save"; font-size: 12.5px; color: var(--on-surface-variant); }
:root[data-style="porcelain"] h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="porcelain"] .tab.active, :root[data-style="porcelain"] .tab.active:hover { background: var(--surface-container-high); color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="porcelain"] .tab { border-radius: var(--shape-sm); }
:root[data-style="porcelain"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); vertical-align: middle; }
:root[data-style="porcelain"] h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--on-surface-variant); margin: 28px 0 10px 4px; }
:root[data-style="porcelain"] h2:has(+ .group) { margin: 18px 0 0; padding: 20px 22px 6px; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-bottom: none; border-radius: var(--shape-lg) var(--shape-lg) 0 0; }
:root[data-style="porcelain"] h2:has(+ .group) + .group { border-top: none; border-radius: 0 0 var(--shape-lg) var(--shape-lg); padding-top: 4px; }
:root[data-style="porcelain"] .group { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--shape-lg); box-shadow: var(--elev-1); }
:root[data-style="porcelain"] .group.checks { padding: 2px 20px; }
:root[data-style="porcelain"] .check { margin: 0; padding: 14px 0; border-radius: 0; }
:root[data-style="porcelain"] .check + .check { border-top: 1px solid var(--outline-variant); }
:root[data-style="porcelain"] .check:hover { background: none; }
:root[data-style="porcelain"] body { padding: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); }
:root[data-style="porcelain"] .nav { grid-row: 1; grid-column: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand . search" "tabs tabs tabs"; align-items: center; gap: 10px 18px; padding: 12px 24px; background: var(--surface-container-low); border: none; border-bottom: 1px solid var(--outline-variant); border-radius: 0; overflow: visible; }
:root[data-style="porcelain"] .nav > .brand { grid-area: brand; }
:root[data-style="porcelain"] .nav > .tabs { grid-area: tabs; }
:root[data-style="porcelain"] .brand { grid-auto-flow: column; align-items: center; gap: 10px; padding: 0; }
:root[data-style="porcelain"] .brand-name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
:root[data-style="porcelain"] .brand-name::before { content: ""; width: 28px; height: 28px; margin: 0; border-radius: 9px; box-shadow: none; background: radial-gradient(circle, #fff 0 4px, transparent 4.5px), var(--primary); }
:root[data-style="porcelain"] .brand-edition { display: none; }
:root[data-style="porcelain"] .nav .search { grid-area: search; width: 220px; margin: 0; border-radius: var(--shape-sm); }
:root[data-style="porcelain"] .tabs { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
:root[data-style="porcelain"] .tab { height: 34px; padding: 0 12px; border-radius: var(--shape-sm); margin-top: 0; white-space: nowrap; }
:root[data-style="porcelain"] .tabs .tab[data-tab] { margin-top: 0 !important; }
:root[data-style="porcelain"] .tabs .tab[data-tab]::before { display: none !important; }
:root[data-style="porcelain"] .tab.active, :root[data-style="porcelain"] .tab.active:hover { background: var(--primary-container); color: var(--primary); font-weight: 700; box-shadow: none; }
:root[data-style="porcelain"] .tab .count { margin-left: 4px; }
:root[data-style="porcelain"] main { grid-row: 2; grid-column: 1 / -1; background: var(--surface); border: none; border-radius: 0; padding: 36px 24px 56px; }
:root[data-style="porcelain"] .panel { margin: 0 auto; }
:root[data-style="porcelain"] .bar { grid-row: 1; grid-column: 2; align-self: stretch; align-items: flex-start; border: none; border-bottom: 1px solid var(--outline-variant); border-radius: 0; box-shadow: none; background: var(--surface-container-low); padding: 12px 24px 0 0; }
:root[data-style="porcelain"] .bar::before { content: none; }
:root[data-style="porcelain"] .bar > * { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
:root[data-style="porcelain"] .bar button.primary { height: 38px; padding: 0 18px; border-radius: var(--shape-sm); box-shadow: var(--elev-1); }
:root[data-style="halo"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #f2f3f5;
  --on-primary: #15171b;
  --primary-container: #3a3d44;
  --on-primary-container: #ffffff;
  --surface: #111216;
  --surface-container-low: #18191e;
  --surface-container: #1e2026;
  --surface-container-high: #272930;
  --surface-container-highest: #30323a;
  --on-surface: #f2f3f5;
  --on-surface-variant: #c4c6cc;
  --outline: #8d9097;
  --outline-variant: #33353c;
  --error: #ff8a8a;
  --success: #5bd38a;
  --warn: #f7d774;
  --shape-xs: 12px;
  --shape-sm: 16px;
  --shape-md: 24px;
  --shape-lg: 30px;
}
:root[data-style="halo"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --primary: #15171b;
  --on-primary: #ffffff;
  --primary-container: #e2e3e8;
  --on-primary-container: #15171b;
  --surface: #f4f5f7;
  --surface-container-low: #ffffff;
  --surface-container: #ffffff;
  --surface-container-high: #ecedf0;
  --surface-container-highest: #e2e3e8;
  --on-surface: #15171b;
  --on-surface-variant: #3f4248;
  --outline: #8d9097;
  --outline-variant: #d5d7dc;
  --error: #e5484d;
  --success: #2db36b;
  --warn: #b7791f;
  --shape-xs: 12px;
  --shape-sm: 16px;
  --shape-md: 24px;
  --shape-lg: 30px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --elev-2: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 32px rgba(15, 23, 42, 0.1);
}
:root[data-style="halo"] input[type="text"], :root[data-style="halo"] input[type="number"], :root[data-style="halo"] input[type="password"], :root[data-style="halo"] select, :root[data-style="halo"] .hotkey-input { height: 38px; background: var(--surface-container); border: 1px solid var(--outline-variant); border-radius: var(--shape-sm); box-shadow: none; padding: 0 12px; }
:root[data-style="halo"] input[type="text"]:hover, :root[data-style="halo"] input[type="number"]:hover, :root[data-style="halo"] input[type="password"]:hover, :root[data-style="halo"] select:hover { background: var(--surface-container-high); }
:root[data-style="halo"] input:focus, :root[data-style="halo"] select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
:root[data-style="halo"] select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
:root[data-style="halo"] .field:has(> select), :root[data-style="halo"] .field:has(> input[type="range"]), :root[data-style="halo"] .field:has(> .color-pick) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; column-gap: 24px; }
:root[data-style="halo"] .field:has(> select) > span, :root[data-style="halo"] .field:has(> input[type="range"]) > span, :root[data-style="halo"] .field:has(> .color-pick) > span { margin: 0; font-size: 13px; color: var(--on-surface); letter-spacing: 0.1px; }
:root[data-style="halo"] .field:has(> select) > :not(span):not(select), :root[data-style="halo"] .field:has(> input[type="range"]) > :not(span):not(input) { grid-column: 1 / -1; }
:root[data-style="halo"] .color-pick input[type="color"] { width: 38px; height: 38px; min-height: 0; background: var(--surface-container); border-color: var(--outline-variant); }
:root[data-style="halo"] input[type="range"] { appearance: none; height: 18px; background: transparent; cursor: pointer; }
:root[data-style="halo"] input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 0%) 100% no-repeat, var(--surface-container-highest); }
:root[data-style="halo"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="halo"] button { border-radius: var(--shape-sm); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 600; }
:root[data-style="halo"] button:hover { background: var(--surface-container-high); }
:root[data-style="halo"] button.primary { color: var(--on-primary); font-weight: 700; box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-style="halo"] button.primary:hover { background: color-mix(in srgb, #fff 10%, var(--primary)); }
:root[data-style="halo"] .check-title { font-size: 14px; font-weight: 600; }
:root[data-style="halo"] .check-hint { font-size: 12.5px; }
:root[data-style="halo"] h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
:root[data-style="halo"] .lead { font-size: 14px; max-width: 640px; }
:root[data-style="halo"] .check input[type="checkbox"] { width: 44px; height: 24px; border: none; background: var(--surface-container-highest); box-shadow: inset 0 0 0 1px var(--outline-variant); }
:root[data-style="halo"] .check input[type="checkbox"]::before { left: 3px; width: 18px; height: 18px; margin-top: -9px; background: var(--outline); }
:root[data-style="halo"] .check input[type="checkbox"]:checked { background: var(--primary); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="halo"] .check input[type="checkbox"]:checked::before { left: 23px; width: 18px; height: 18px; margin-top: -9px; background: var(--on-primary); }
:root[data-style="halo"] body { padding: 14px 24px 18px; background: radial-gradient(ellipse 60% 50% at 15% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), radial-gradient(ellipse 50% 40% at 100% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent), var(--surface); }
:root[data-style="halo"] main { padding: 24px 8px 32px; }
:root[data-style="halo"] .panel { margin: 0 auto; }
:root[data-style="halo"] .group { background: color-mix(in srgb, var(--on-surface) 5%, transparent); border-color: color-mix(in srgb, var(--on-surface) 12%, transparent); border-radius: var(--shape-lg); backdrop-filter: blur(16px); }
:root[data-style="halo"] .bar { justify-self: center; width: min(860px, 100%); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-surface) 14%, transparent); background: color-mix(in srgb, var(--surface-container) 82%, transparent); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); backdrop-filter: blur(16px); padding: 8px 10px 8px 22px; }
:root[data-style="halo"] .bar button { border-radius: 999px; }
:root[data-style="halo"] .brand-name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); vertical-align: middle; }
:root[data-style="halo"] h1 { font-size: 26px; font-weight: 700; }
:root[data-style="halo"] .checks { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
:root[data-style="halo"] .group.checks { background: none; border: none; padding: 0; backdrop-filter: none; }
:root[data-style="halo"] .check { margin: 0; padding: 14px 16px; border-radius: var(--shape-lg); background: color-mix(in srgb, var(--on-surface) 5%, transparent); border: 1px solid color-mix(in srgb, var(--on-surface) 10%, transparent); }
:root[data-style="halo"] .check:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
:root[data-style="halo"] .check:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
:root[data-style="halo"] h2 { display: flex; align-items: center; gap: 9px; }
:root[data-style="halo"] h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
:root[data-style="halo"] body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
:root[data-style="halo"] .nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: none; border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--on-surface) 10%, transparent); overflow: visible; padding: 10px 8px 16px; }
:root[data-style="halo"] .brand { grid-auto-flow: column; align-items: baseline; gap: 10px; padding: 0; }
:root[data-style="halo"] .nav .search { width: 260px; margin-left: auto; }
:root[data-style="halo"] .tabs { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
:root[data-style="halo"] .tab { height: 32px; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--on-surface) 12%, transparent); background: color-mix(in srgb, var(--on-surface) 4%, transparent); }
:root[data-style="halo"] .tab.active, :root[data-style="halo"] .tab.active:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="halo"] .tab .count { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
:root[data-style="halo"] { --motion: 360ms cubic-bezier(0.32, 0.72, 0, 1); --spring: 620ms cubic-bezier(0.34, 1.45, 0.5, 1); --glass: color-mix(in srgb, var(--surface-container) 56%, transparent); --glass-strong: color-mix(in srgb, var(--surface-container) 78%, transparent); --rim: rgba(255, 255, 255, 0.14); --rim-top: rgba(255, 255, 255, 0.34); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 48%); --lift: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 36px rgba(0, 0, 0, 0.32); --lens: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)); --wall-a: #3a2d8f; --wall-b: #0b5c7a; --wall-c: #7a2d5f; }
:root[data-style="halo"][data-scheme="light"] { --glass: rgba(255, 255, 255, 0.55); --glass-strong: rgba(255, 255, 255, 0.78); --rim: rgba(255, 255, 255, 0.75); --rim-top: rgba(255, 255, 255, 1); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 52%); --lift: 0 1px 1px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.1); --lens: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82)); --wall-a: #b9c8ff; --wall-b: #a8ecdf; --wall-c: #ffc6dd; }
:root[data-style="halo"] body { background: radial-gradient(ellipse 55% 45% at 8% 0%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%), radial-gradient(ellipse 50% 50% at 100% 18%, color-mix(in srgb, var(--wall-a) 55%, transparent), transparent 70%), radial-gradient(ellipse 60% 50% at 70% 100%, color-mix(in srgb, var(--wall-b) 50%, transparent), transparent 70%), radial-gradient(ellipse 45% 40% at 0% 85%, color-mix(in srgb, var(--wall-c) 45%, transparent), transparent 70%), var(--surface); background-attachment: fixed; }
:root[data-style="halo"] .group, :root[data-style="halo"] .card, :root[data-style="halo"] details.help { background: var(--sheen), var(--glass); backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--rim); border-radius: var(--shape-lg); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="halo"] .group.checks { padding: 2px 18px; }
:root[data-style="halo"] h2, :root[data-style="halo"] h2:has(+ .group) { margin: 26px 0 8px 6px; padding: 0; background: none; border: none; border-radius: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-surface-variant); }
:root[data-style="halo"] h2:has(+ .group) + .group { border-top: 1px solid var(--rim); border-radius: var(--shape-lg); padding-top: 2px; }
:root[data-style="halo"] h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.6px; }
:root[data-style="halo"] .check { padding: 13px 0; transition: background var(--motion); }
:root[data-style="halo"] .check + .check { border-top: 1px solid color-mix(in srgb, var(--on-surface) 8%, transparent); }
:root[data-style="halo"] .nav { border-bottom: none; }
:root[data-style="halo"] .tabs { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 22px; background: var(--sheen), var(--glass); backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="halo"] .tab { position: relative; z-index: 1; height: 32px; padding: 0 15px; border: none; border-radius: 999px; background: transparent; box-shadow: none; backdrop-filter: none; transition: color var(--motion), background var(--motion), transform var(--spring); }
:root[data-style="halo"] .tab:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
:root[data-style="halo"] .tab:active { transform: scale(0.94); }
:root[data-style="halo"] .tab.active, :root[data-style="halo"] .tab.active:hover { background: transparent; border: none; box-shadow: none; color: var(--on-surface); font-weight: 650; }
:root[data-style="halo"] .tabs .lens { display: block; position: absolute; z-index: 0; border-radius: 999px; background: var(--lens); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 16px rgba(0, 0, 0, 0.22); transition: left var(--spring), top var(--spring), width var(--spring), height var(--spring); pointer-events: none; }
:root[data-style="halo"] input[type="text"], :root[data-style="halo"] input[type="number"], :root[data-style="halo"] input[type="password"], :root[data-style="halo"] select, :root[data-style="halo"] .hotkey-input { border-radius: 12px; background-color: color-mix(in srgb, var(--on-surface) 6%, transparent); border: 1px solid var(--rim); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); transition: border-color var(--motion), box-shadow var(--motion), background-color var(--motion); }
:root[data-style="halo"] .nav .search { border-radius: 999px; }
:root[data-style="halo"] button { border-radius: 999px; background: var(--sheen), var(--glass); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top); backdrop-filter: blur(20px) saturate(170%); transition: transform var(--spring), background var(--motion), box-shadow var(--motion); }
:root[data-style="halo"] button:hover { background: var(--sheen), var(--glass-strong); }
:root[data-style="halo"] button:active { transform: scale(0.95); }
:root[data-style="halo"] button.primary { background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%), var(--primary); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
:root[data-style="halo"] button.primary:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 60%), var(--primary); }
:root[data-style="halo"] .check input[type="checkbox"] { width: 50px; height: 30px; border: none; border-radius: 999px; background: color-mix(in srgb, var(--on-surface) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-surface) 6%, transparent); transition: background var(--motion); }
:root[data-style="halo"] .check input[type="checkbox"]::before { left: 2px; width: 26px; height: 26px; margin-top: -13px; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: left var(--spring), width var(--spring); }
:root[data-style="halo"] .check input[type="checkbox"]:checked { background: var(--success); box-shadow: none; }
:root[data-style="halo"] .check input[type="checkbox"]:checked::before { left: 22px; width: 26px; height: 26px; margin-top: -13px; background: #fff; }
:root[data-style="halo"] .check input[type="checkbox"]:active::before { width: 33px; }
:root[data-style="halo"] .check input[type="checkbox"]:checked:active::before { left: 15px; }
:root[data-style="halo"] input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; }
:root[data-style="halo"] input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08); transition: transform var(--spring); }
:root[data-style="halo"] input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
:root[data-style="halo"] .bar { border-radius: 999px; background: var(--sheen), var(--glass-strong); backdrop-filter: blur(32px) saturate(180%); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), var(--lift); }
:root[data-style="halo"] .brand-name::before { background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--primary) 80%, #fff) 40%, var(--primary)); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 70%, transparent); }
:root[data-style="halo"] .panel.active { animation: kolify-liquid-in 560ms cubic-bezier(0.22, 1.2, 0.36, 1) both; }
:root[data-palette="dark"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --primary: #605dff;
  --on-primary: #edf1fe;
  --primary-container: #31346a;
  --on-primary-container: #ecf9ff;
  --surface: #1d232a;
  --surface-container-low: #232930;
  --surface-container: #293037;
  --surface-container-high: #32383f;
  --surface-container-highest: #3a4148;
  --on-surface: #ecf9ff;
  --on-surface-variant: #b8c4ca;
  --outline: #858e95;
  --outline-variant: #464e55;
  --error: #ff627d;
  --success: #00d390;
  --warn: #fcb700;
}
:root[data-palette="night"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --primary: #3abdf7;
  --on-primary: #010d15;
  --primary-container: #1c4968;
  --on-primary-container: #c9cbd0;
  --surface: #0f172a;
  --surface-container-low: #151c2f;
  --surface-container: #1a2234;
  --surface-container-high: #22293b;
  --surface-container-highest: #293041;
  --on-surface: #c9cbd0;
  --on-surface-variant: #9b9ea7;
  --outline: #6c717d;
  --outline-variant: #343b4b;
  --error: #fb7085;
  --success: #2fd4bf;
  --warn: #f4bf51;
}
:root[data-palette="dracula"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --primary: #ff79c6;
  --on-primary: #16050e;
  --primary-container: #694261;
  --on-primary-container: #f8f8f3;
  --surface: #282a36;
  --surface-container-low: #2e303c;
  --surface-container: #343641;
  --surface-container-high: #3d3f49;
  --surface-container-highest: #454750;
  --on-surface: #f8f8f3;
  --on-surface-variant: #c4c5c4;
  --outline: #909195;
  --outline-variant: #52535c;
  --error: #ff5555;
  --success: #51fa7b;
  --warn: #f1fa8c;
}
:root[data-palette="coffee"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --primary: #db924c;
  --on-primary: #110802;
  --primary-container: #5c3f31;
  --on-primary-container: #c59f61;
  --surface: #261b25;
  --surface-container-low: #2b1f27;
  --surface-container: #302329;
  --surface-container-high: #36282b;
  --surface-container-highest: #3c2d2d;
  --on-surface: #c59f61;
  --on-surface-variant: #9d7e52;
  --outline: #765d43;
  --outline-variant: #463531;
  --error: #fc9581;
  --success: #9db787;
  --warn: #ffd260;
}
:root[data-palette="black"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --primary: #d6d6d6;
  --on-primary: #0b0f14;
  --primary-container: #404040;
  --on-primary-container: #d6d6d6;
  --surface: #000000;
  --surface-container-low: #060606;
  --surface-container: #0d0d0d;
  --surface-container-high: #151515;
  --surface-container-highest: #1e1e1e;
  --on-surface: #d6d6d6;
  --on-surface-variant: #a1a1a1;
  --outline: #6b6b6b;
  --outline-variant: #2b2b2b;
  --error: #ff0301;
  --success: #028002;
  --warn: #ffff00;
}
:root[data-palette="light"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --primary: #422ad5;
  --on-primary: #e0e7ff;
  --primary-container: #c6bff2;
  --on-primary-container: #18181b;
  --surface: #ffffff;
  --surface-container-low: #f8f8f8;
  --surface-container: #f1f1f1;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #dfdfdf;
  --on-surface: #18181b;
  --on-surface-variant: #525254;
  --outline: #8c8c8d;
  --outline-variant: #d1d1d1;
  --error: #ff627d;
  --success: #00d390;
  --warn: #fcb700;
}
:root[data-palette="nord"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --primary: #5e81ac;
  --on-primary: #03060b;
  --primary-container: #c1cede;
  --on-primary-container: #2e3440;
  --surface: #eceff4;
  --surface-container-low: #e6e9ef;
  --surface-container: #e1e4e9;
  --surface-container-high: #d9dce2;
  --surface-container-highest: #d1d5db;
  --on-surface: #2e3440;
  --on-surface-variant: #5e636d;
  --outline: #8d929a;
  --outline-variant: #c6cad0;
  --error: #bf616a;
  --success: #a3be8d;
  --warn: #ebcb8b;
}
:root[data-palette="cupcake"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --primary: #291334;
  --on-primary: #ffffff;
  --primary-container: #bbb3bb;
  --on-primary-container: #291334;
  --surface: #faf7f5;
  --surface-container-low: #f4f0ef;
  --surface-container: #ede9e9;
  --surface-container-high: #e5e0e2;
  --surface-container-highest: #ddd7da;
  --on-surface: #291334;
  --on-surface-variant: #5d4c64;
  --outline: #928595;
  --outline-variant: #d0c9ce;
  --error: #fe1c55;
  --success: #00ba7b;
  --warn: #eeaf00;
}
/* styles:end */

/* ---- News: announcements and the changelog ---- */
.news-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--primary);
}
.news-dot[hidden] { display: none; }
.news-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.news-item {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 14px 18px;
}
.news-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.news-head strong { color: var(--on-surface); font-size: 14px; }
.news-tag {
  padding: 1px 8px;
  border-radius: var(--shape-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 600;
}
.news-date { margin-left: auto; color: var(--on-surface-variant); font-size: 12px; }
.news-body { margin-top: 8px; color: var(--on-surface-variant); font-size: 13px; line-height: 1.55; }
.news-body p { margin: 0 0 6px; }
.news-body ul { margin: 0 0 6px; padding-left: 18px; }
.news-body li { margin: 2px 0; }
.news-body > :last-child { margin-bottom: 0; }

/* A narrow window has no room for a control beside its label on any row. */
@media (max-width: 860px) {
  :root[data-style] .field:has(> select),
  :root[data-style] .field:has(> input[type="range"]),
  :root[data-style] .field:has(> .color-pick) { display: block; }
  :root[data-style] .field:has(> select) > span,
  :root[data-style] .field:has(> input[type="range"]) > span,
  :root[data-style] .field:has(> .color-pick) > span { margin: 0 0 8px; }
}

/* Performance mode (GUI tab): nothing a slow graphics card has to blur or shade. */
:root[data-perf="lite"] *, :root[data-perf="lite"] *::before, :root[data-perf="lite"] *::after {
  backdrop-filter: none !important;
  box-shadow: none !important;
  filter: none !important;
}
