/* 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 {
  color-scheme: dark;

  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;

  --bg: 15, 17, 21;
  --panel-alpha: 0.92;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7e9ee;
  --muted: #8b93a1;
  --accent: #6ea8fe;
  --danger: #ff5555;
  --row-alt: rgba(255, 255, 255, 0.025);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --menu-bg: #14171d;
  --scroll-thumb: rgba(255, 255, 255, 0.16);
  /* Minecraft draws text with a hard one-pixel drop shadow; this mirrors
     that, scaled with the text so it stays proportional. */
  --shadow-color: rgba(0, 0, 0, 0.65);
  --scale: 1;

  /* The look (src/shared/styles.js): Classic's values here, every other
     style's in the generated block at the end. */
  --panel-alpha-scale: 1;
  --radius: 10px;
  --highlight: transparent;
  --ok: #55d17c;
  --flag-row: rgba(255, 85, 85, 0.10);
  --hover-row: rgba(110, 168, 254, 0.08);

  /* One spacing scale for the whole panel. Cell padding is shared by
     <th> and <td> so columns cannot drift out of alignment. */
  --cell-x: calc(8px * var(--scale));
  --cell-y: calc(3px * var(--scale));
  --pad-x: calc(8px * var(--scale));
  --pad-y: calc(5px * var(--scale));
  --gap: calc(8px * var(--scale));
  --control: calc(22px * var(--scale));
}

/* Light theme: overlay.js sets data-scheme from the light/dark setting;
   'system' follows prefers-color-scheme, which nativeTheme keeps on Windows'. */
:root[data-scheme="light"] {
  color-scheme: light;

  --bg: 250, 251, 253;
  --border: rgba(0, 0, 0, 0.12);
  --text: #12161d;
  --muted: #5c6675;
  --accent: #2563eb;
  --danger: #dc2626;
  --row-alt: rgba(0, 0, 0, 0.028);
  --surface-hi: rgba(0, 0, 0, 0.05);
  --surface-hover: rgba(0, 0, 0, 0.08);
  --menu-bg: #ffffff;
  --scroll-thumb: rgba(0, 0, 0, 0.22);
  /* A hard black shadow is far too heavy on a light panel. */
  --shadow-color: rgba(0, 0, 0, 0.22);
}

/* Applied to the panel so every label, stat and badge inherits it. */
body.text-shadow .app {
  text-shadow: calc(1px * var(--scale)) calc(1px * var(--scale)) 0 var(--shadow-color);
}
/* Tag badges sit on their own solid colour - a shadow there just muddies
   the two-character label. */
body.text-shadow .tag { text-shadow: none; }

body[data-density="compact"] { --cell-y: calc(1px * var(--scale)); }
body[data-density="roomy"] { --cell-y: calc(6px * var(--scale)); }

* { box-sizing: border-box; }

html, 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: 100%;
  background: transparent;
  overflow: hidden;
  font-family: var(--font);
  font-size: calc(12px * var(--scale));
  color: var(--text);
  user-select: none;
  cursor: default;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(var(--bg), calc(var(--panel-alpha) * var(--panel-alpha-scale)));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--highlight);
  font-family: var(--font);
  overflow: hidden;
  backdrop-filter: blur(2px);
}

/* When click-through is on, the whole panel dims so it is obvious that
   clicks pass to the game underneath. */
body.click-through .app { opacity: 0.75; }
body.click-through .titlebar .actions { visibility: hidden; }

/* ---------------- title bar ----------------
   Every control shares one height so the row reads as a single band. */

.titlebar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: var(--pad-y) var(--pad-x);
  background: var(--surface-hi);
  border-bottom: 1px solid var(--border);
  -webkit-app-region: drag;
  flex: 0 0 auto;
}

.no-drag, .titlebar select, .titlebar input, .titlebar button { -webkit-app-region: no-drag; }

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  height: var(--control);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding-right: 2px;
}
.brand .name { color: var(--text); line-height: 1; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 6px currentColor;
  flex: 0 0 auto;
}
.dot.ok { background: #55d17c; }
.dot.warn { background: #e5c454; }
.dot.err { background: var(--danger); }

.spacer { flex: 1 1 auto; }

select.gamemode,
.add input {
  height: var(--control);
  background: var(--surface-hi);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 8px;
  font-family: inherit;
  font-size: calc(11px * var(--scale));
  line-height: var(--control);
  outline: none;
}
select.gamemode {
  max-width: calc(190px * var(--scale));
  /* Room for the native dropdown arrow so the label never touches it. */
  padding-right: 4px;
}
select.gamemode option { background: var(--menu-bg); color: var(--text); }

.clock {
  margin-left: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.add { display: flex; align-items: center; }
.add input { width: calc(112px * var(--scale)); }
.add input:focus, select.gamemode:focus { border-color: var(--accent); }
.add input::placeholder { color: var(--muted); }

.actions { display: flex; align-items: center; gap: 2px; }
.actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  width: var(--control);
  height: var(--control);
  padding: 0;
  font-family: inherit;
  font-size: calc(13px * var(--scale));
  line-height: 1;
  cursor: pointer;
}
.actions button:hover { background: var(--surface-hover); color: var(--text); }
/* A toggle that is currently changing what the table shows. */
.actions button.on { color: var(--accent); }
#btnHide:hover { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }

.actions svg {
  width: calc(14px * var(--scale));
  height: calc(14px * var(--scale));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Solid icons opt out of the shared stroke styling. */
.actions svg.icon-fill { fill: currentColor; stroke: none; }

/* The collapse button swaps its icon for the current state. */
.icon-expand { display: none; }
body.collapsed .icon-collapse { display: none; }
body.collapsed .icon-expand { display: block; }
body.collapsed .tablewrap,
body.collapsed .statusbar,
body.collapsed .grip { display: none; }
body.collapsed .app { border-radius: var(--radius); }

/* ---------------- table ---------------- */

.tablewrap { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; position: relative; }
.tablewrap::-webkit-scrollbar { width: 8px; }
.tablewrap::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }

table.stats { width: 100%; border-collapse: collapse; table-layout: fixed; }

/* Shared box model for header and body cells - this is what keeps the
   "PLAYER" heading sitting exactly above the names beneath it. */
table.stats th,
table.stats td {
  padding: var(--cell-y) var(--cell-x);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.stats th.col-num,
table.stats td.col-num { text-align: right; }
table.stats th.col-player,
table.stats td.col-player,
table.stats th.col-tags,
table.stats td.col-tags { text-align: left; }

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* The panel itself shows through, so the heading is one sheet with the
     rows at any opacity. Only once rows scroll under it does it take the
     panel's colour at the panel's opacity, and blur what passes beneath. */
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: calc(10px * var(--scale));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: calc(14px * var(--scale));
  border-bottom: 1px solid var(--border);
}
.tablewrap.scrolled thead th {
  background: rgba(var(--bg), calc(var(--panel-alpha) * var(--panel-alpha-scale)));
  backdrop-filter: blur(8px);
}
table.no-head thead { display: none; }
table.bold-head thead th { font-weight: 700; }

/* Sorting. The arrow is drawn with borders rather than a glyph: the
   bundled pixel font has no triangle, and a fallback one sits at a
   different baseline to the uppercase headings. */
thead th[data-key] { cursor: pointer; user-select: none; }
thead th[data-key]:hover { color: var(--text); }
thead th.sorted { color: var(--accent); }
thead th.sorted::after {
  content: "";
  display: inline-block;
  margin-left: calc(4px * var(--scale));
  vertical-align: middle;
  border-left: calc(3px * var(--scale)) solid transparent;
  border-right: calc(3px * var(--scale)) solid transparent;
}
thead th.sorted.desc::after { border-top: calc(4px * var(--scale)) solid currentColor; }
thead th.sorted.asc::after { border-bottom: calc(4px * var(--scale)) solid currentColor; }

tbody tr { border-bottom: 1px solid var(--row-alt); }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:hover { background: var(--hover-row); }
tbody tr.self { box-shadow: inset 3px 0 0 var(--accent); }
tbody tr.party { box-shadow: inset 3px 0 0 var(--ok); }
tbody tr.flagged { background: var(--flag-row); }
tbody tr.flagged:nth-child(even) { background: color-mix(in srgb, var(--flag-row), var(--danger) 4%); }
/* A nick's row: its own colour, above every style's stripes (two classes beat the styles' one). */
tbody tr.nickrow.nickrow, tbody tr.nickrow.nickrow:nth-child(even),
:root[data-style] tbody tr.nickrow, :root[data-style] tbody tr.nickrow:nth-child(even) {
  background: color-mix(in srgb, var(--nick-row) 24%, transparent);
  box-shadow: inset 3px 0 0 var(--nick-row);
}
tbody tr.flag-new { animation: kolify-flag-in 700ms ease-out; }
@keyframes kolify-flag-in {
  from { background: color-mix(in srgb, var(--danger) 38%, transparent); }
}
tbody tr.eliminated td { opacity: 0.45; text-decoration: line-through; }
/* Disconnected from the game: still in it until the end, so only faded. */
tbody tr.ghost td { opacity: 0.38; filter: grayscale(0.6); }

tbody td {
  font-variant-numeric: tabular-nums;
  font-size: calc(12px * var(--scale));
  line-height: calc(17px * var(--scale));
}

.pname { font-weight: 600; cursor: pointer; }
/* A team mark in front of the name; the styles that have one show it. The styles that draw it as a coloured
   square hide its letter with font-size 0, which a browser with a minimum font size ignores: the letter is
   kept out of sight anyway (transparent, clipped), and the styles that show it set a colour of their own. */
.lead { display: none; overflow: hidden; color: transparent; text-shadow: none; }
.pname .prefix { margin-right: 4px; font-weight: 700; }
.pname.err { color: var(--danger); font-weight: 500; }
/* Uses Kolify too: a small K after the name, in Kolify's own blue. */
.pname .kmark {
  display: inline-block; margin-left: 5px; padding: 0 calc(3px * var(--scale));
  border-radius: calc(3px * var(--scale)); background: #6ea8fe; color: #0b0c0f;
  font-size: calc(9px * var(--scale)); font-weight: 800; line-height: 1.35; vertical-align: 1px;
}
.note { color: var(--muted); font-size: calc(10px * var(--scale)); margin-left: 6px; font-weight: 400; }

/* Someone who said your name. Loud enough to catch the eye in a moving list,
   small enough not to compete with the name it sits beside. */
.mention {
  display: inline-block;
  margin-left: 5px;
  padding: 0 calc(3px * var(--scale));
  border-radius: 3px;
  background: #facc15;
  color: #1c1917;
  font-size: calc(9px * var(--scale));
  font-weight: 700;
  line-height: calc(13px * var(--scale));
  vertical-align: middle;
}

.tags { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; overflow: hidden; }
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* flex-shrink defaults to 1, which squeezes a three-letter badge like
     "SSL" until its text is clipped. Badges size to their content only. */
  flex: 0 0 auto;
  min-width: calc(18px * var(--scale));
  height: calc(15px * var(--scale));
  padding: 0 calc(4px * var(--scale));
  border-radius: min(3px, var(--radius));
  font-size: calc(9px * var(--scale));
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: help;
  text-shadow: none;
}
.tag.more { background: var(--surface-hover); color: var(--muted); }
/* A verified report: a tick after its label, drawn in the label's colour so every badge style keeps it. */
.tag .tick, .tip-chip .tick {
  width: calc(8px * var(--scale));
  height: calc(8px * var(--scale));
  margin-left: calc(2px * var(--scale));
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tip-chip .tick { vertical-align: -1px; }
body.all-tags .tags { flex-wrap: wrap; }

/* ---------------- empty state & status bar ---------------- */

.empty {
  position: absolute;
  inset: 30px 0 auto 0;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.empty p { margin: 3px 0; font-size: calc(12px * var(--scale)); }
.empty .hint { font-size: calc(11px * var(--scale)); opacity: 0.8; }
.empty code { background: var(--surface-hover); padding: 1px 4px; border-radius: 3px; }
.empty.hidden { display: none; }

.statusbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: calc(3px * var(--scale)) var(--pad-x);
  font-size: calc(10px * var(--scale));
  line-height: calc(14px * var(--scale));
  color: var(--muted);
  background: var(--surface-hi);
  border-top: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}
.statusbar span { overflow: hidden; text-overflow: ellipsis; }
#statusText { display: flex; align-items: center; min-width: 0; }
/* A newer build: at the far end of the bar, in the accent colour. */
.update-chip {
  flex: none;
  margin-left: auto;
  padding: 0 calc(6px * var(--scale));
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  -webkit-app-region: no-drag;
}
.update-chip:hover:not(:disabled) { background: var(--accent); color: var(--bg, #fff); }
.update-chip:disabled { opacity: 0.7; cursor: default; }
.update-chip.err { border-color: var(--danger); color: var(--danger); }
.update-chip[hidden] { display: none; }
/* A drawn divider rather than a character, so no font can mangle it. */
.sep {
  flex: 0 0 auto;
  width: 1px;
  height: calc(9px * var(--scale));
  margin: 0 calc(7px * var(--scale));
  background: currentColor;
  opacity: 0.35;
}
body.no-statusbar .statusbar { display: none; }

.grip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  -webkit-app-region: no-drag;
  background:
    linear-gradient(135deg, transparent 50%, var(--scroll-thumb) 50%, var(--scroll-thumb) 60%, transparent 60%),
    linear-gradient(135deg, transparent 70%, var(--scroll-thumb) 70%, var(--scroll-thumb) 80%, transparent 80%);
}

/* ---------------- tooltip ---------------- */

.tip {
  position: absolute;
  z-index: 30;
  max-width: min(460px, 92%);
  padding: 8px 10px;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  /* The panel is translucent; the tooltip must not be, or the reasons
     become unreadable over a bright map. */
  backdrop-filter: none;
}
.tip.hidden { display: none; }

/* A player's card: hovered, or pinned open with buttons. */
.tip.card { min-width: calc(230px * var(--scale)); border-left-color: var(--border); }
.tip.pinned { pointer-events: auto; border-color: var(--accent); border-left-color: var(--accent); }
.card-head { display: flex; align-items: baseline; gap: 5px; }
.card-head .card-x {
  margin-left: auto;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.card-head .card-x:hover { color: var(--text); }
.card-stats {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 2px 10px;
  margin: 6px 0 2px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
  font-size: calc(11px * var(--scale));
}
.card-k { color: var(--dim, var(--muted)); }
.card-v { text-align: right; font-variant-numeric: tabular-nums; }
.card-reports { margin-top: 5px; padding-top: 3px; border-top: 1px solid var(--border); }
.card-hint { margin-top: 5px; opacity: 0.8; }
.card-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.card-btn {
  padding: 2px 7px;
  background: var(--surface-hi, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: calc(10.5px * var(--scale));
  cursor: pointer;
}
.card-btn:hover { border-color: var(--accent); }
.card-btn.danger { color: var(--danger); }
.card-reason { display: flex; gap: 4px; margin-top: 7px; }
.card-reason input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: calc(10.5px * var(--scale));
  padding: 2px 6px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}
.card-reason input:focus { border-color: var(--accent); }
.card-btn.danger:hover { border-color: var(--danger); }

.tip-head {
  font-size: calc(11px * var(--scale));
  font-weight: 700;
  color: var(--text);
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.tip-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 3px 0;
}
.tip-chip {
  flex: 0 0 auto;
  min-width: calc(20px * var(--scale));
  padding: 1px 4px;
  border-radius: 3px;
  font-size: calc(9px * var(--scale));
  font-weight: 800;
  line-height: calc(14px * var(--scale));
  text-align: center;
  text-shadow: none;
}
.tip-text {
  font-size: calc(11px * var(--scale));
  line-height: 1.45;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}
.tip-source {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}
.tip-note {
  font-size: calc(11px * var(--scale));
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
}

/* ---------------- column reordering & menu ---------------- */

thead th.col-move { cursor: grab; user-select: none; }
thead th.col-move.dragging { opacity: 0.45; cursor: grabbing; }
thead th.col-move.drop-target { box-shadow: inset 2px 0 0 var(--accent); }
thead th.col-move.drop-after { box-shadow: inset -2px 0 0 var(--accent); }

.colmenu {
  position: absolute;
  z-index: 20;
  min-width: 160px;
  max-height: 70%;
  overflow-y: auto;
  padding: 4px;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.colmenu.hidden { display: none; }
.colmenu::-webkit-scrollbar { width: 8px; }
.colmenu::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }

.colmenu-head {
  padding: 5px 8px 6px;
  font-size: calc(9px * var(--scale));
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.colmenu-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: calc(11px * var(--scale));
  text-align: left;
  cursor: pointer;
}
.colmenu-item:hover { background: var(--surface-hover); }
.colmenu-item:disabled { opacity: 0.45; cursor: default; background: none; }
/* Section labels inside one menu, after the first. */
.colmenu-item + .colmenu-head { margin-top: 4px; border-top: 1px solid var(--border); }
.colmenu-item .colmenu-tick { width: 12px; color: var(--accent); flex: 0 0 auto; }
.colmenu-item.on { font-weight: 600; }
.colmenu-item.reset {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 5px 5px;
  color: var(--muted);
  padding-left: 27px;
}

/* 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; }
}

/* 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;
  --bg: 10, 12, 16;
  --panel-alpha-scale: 1;
  --border: rgba(255, 255, 255, 0.078);
  --text: #e8eaf0;
  --muted: #8a93a6;
  --accent: #5eead4;
  --danger: #fb7185;
  --row-alt: rgba(255, 255, 255, 0.02);
  --surface-hi: rgba(255, 255, 255, 0.051);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --menu-bg: #11141a;
  --flag-row: rgba(251, 113, 133, 0.086);
  --hover-row: rgba(94, 234, 212, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #4ade80;
  --radius: 8px;
  --shadow-color: transparent;
}
:root[data-style="midnight"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="midnight"][data-scheme="light"] {
  color-scheme: light;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 246, 248, 250;
  --panel-alpha-scale: 1;
  --border: rgba(11, 18, 32, 0.102);
  --text: #0f172a;
  --muted: #516072;
  --accent: #0d9488;
  --danger: #e11d48;
  --row-alt: rgba(0, 0, 0, 0.02);
  --surface-hi: rgba(15, 23, 42, 0.039);
  --surface-hover: rgba(15, 23, 42, 0.071);
  --menu-bg: #ffffff;
  --flag-row: rgba(225, 29, 72, 0.078);
  --hover-row: rgba(13, 148, 136, 0.071);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #16a34a;
  --radius: 8px;
  --shadow-color: transparent;
}
:root[data-style="midnight"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="midnight"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 15px; }
:root[data-style="midnight"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="midnight"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="midnight"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="midnight"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="midnight"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="midnight"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="midnight"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="midnight"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="midnight"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="midnight"] .titlebar { background: transparent; }
:root[data-style="midnight"] thead th { text-transform: uppercase; letter-spacing: 0.6px; font-size: calc(10px * var(--scale)); }
:root[data-style="midnight"] tbody tr, :root[data-style="midnight"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="midnight"] tbody tr.flagged, :root[data-style="midnight"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="midnight"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="midnight"] tbody tr.team-start { border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
:root[data-style="midnight"] .lead { display: inline-block; width: calc(7px * var(--scale)); height: calc(7px * var(--scale)); margin-right: calc(7px * var(--scale)); border-radius: 2px; background: var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="glass"] {
  color-scheme: dark;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 24, 20, 40;
  --panel-alpha-scale: 0.7;
  --border: rgba(255, 255, 255, 0.102);
  --text: #f1eefb;
  --muted: #a9a3c2;
  --accent: #a78bfa;
  --danger: #fda4af;
  --row-alt: rgba(255, 255, 255, 0.031);
  --surface-hi: rgba(255, 255, 255, 0.071);
  --surface-hover: rgba(255, 255, 255, 0.063);
  --menu-bg: #1e1933;
  --flag-row: rgba(253, 164, 175, 0.122);
  --hover-row: rgba(167, 139, 250, 0.078);
  --highlight: rgba(255, 255, 255, 0.141);
  --ok: #86efac;
  --radius: 13px;
  --shadow-color: transparent;
}
:root[data-style="glass"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="glass"][data-scheme="light"] {
  color-scheme: light;
  --font: "Seraphtia", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 244, 241, 253;
  --panel-alpha-scale: 0.75;
  --border: rgba(76, 29, 149, 0.122);
  --text: #1e1633;
  --muted: #5e5878;
  --accent: #7c3aed;
  --danger: #e11d48;
  --row-alt: rgba(0, 0, 0, 0.024);
  --surface-hi: rgba(76, 29, 149, 0.059);
  --surface-hover: rgba(76, 29, 149, 0.059);
  --menu-bg: #fbfaff;
  --flag-row: rgba(225, 29, 72, 0.102);
  --hover-row: rgba(124, 58, 237, 0.078);
  --highlight: rgba(255, 255, 255, 1);
  --ok: #16a34a;
  --radius: 13px;
  --shadow-color: transparent;
}
:root[data-style="glass"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="glass"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 24px; }
:root[data-style="glass"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="glass"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="glass"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="glass"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="glass"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="glass"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="glass"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="glass"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="glass"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="glass"] .titlebar { background: transparent; border-bottom: none; }
:root[data-style="glass"] .tablewrap { padding: 0 calc(6px * var(--scale)); }
:root[data-style="glass"] table.stats { border-collapse: separate; border-spacing: 0 calc(4px * var(--scale)); }
:root[data-style="glass"] thead th { text-transform: uppercase; letter-spacing: 0.6px; font-size: calc(10px * var(--scale)); border-bottom: none; }
:root[data-style="glass"] tbody tr, :root[data-style="glass"] tbody tr:nth-child(even) { border-bottom: none; background: color-mix(in srgb, var(--text) 6%, transparent); }
:root[data-style="glass"] tbody td:first-child { border-radius: calc(12px * var(--scale)) 0 0 calc(12px * var(--scale)); }
:root[data-style="glass"] tbody td:last-child { border-radius: 0 calc(12px * var(--scale)) calc(12px * var(--scale)) 0; }
:root[data-style="glass"] tbody tr.self { box-shadow: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
:root[data-style="glass"] tbody tr.party { box-shadow: none; background: color-mix(in srgb, var(--ok) 12%, transparent); }
:root[data-style="glass"] tbody tr.flagged, :root[data-style="glass"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="glass"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="glass"] .lead { display: inline-block; width: calc(8px * var(--scale)); height: calc(8px * var(--scale)); margin-right: calc(8px * var(--scale)); border-radius: 50%; background: var(--team); box-shadow: 0 0 8px var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="liquid"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 28, 28, 34;
  --panel-alpha-scale: 0.72;
  --border: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #0a84ff;
  --danger: #ff453a;
  --row-alt: rgba(255, 255, 255, 0.024);
  --surface-hi: rgba(255, 255, 255, 0.078);
  --surface-hover: rgba(255, 255, 255, 0.122);
  --menu-bg: #26262e;
  --flag-row: rgba(255, 69, 58, 0.122);
  --hover-row: rgba(10, 132, 255, 0.078);
  --highlight: rgba(255, 255, 255, 0.349);
  --ok: #30d158;
  --radius: 16px;
  --shadow-color: transparent;
}
:root[data-style="liquid"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="liquid"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 242, 242, 247;
  --panel-alpha-scale: 0.86;
  --border: rgba(0, 0, 0, 0.078);
  --text: #1c1c1e;
  --muted: #6c6c72;
  --accent: #007aff;
  --danger: #ff3b30;
  --row-alt: rgba(0, 0, 0, 0.02);
  --surface-hi: rgba(0, 0, 0, 0.039);
  --surface-hover: rgba(0, 0, 0, 0.071);
  --menu-bg: #fafafc;
  --flag-row: rgba(255, 59, 48, 0.102);
  --hover-row: rgba(0, 122, 255, 0.071);
  --highlight: rgba(255, 255, 255, 1);
  --ok: #34c759;
  --radius: 16px;
  --shadow-color: transparent;
}
:root[data-style="liquid"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="liquid"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 30px; }
:root[data-style="liquid"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="liquid"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="liquid"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="liquid"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="liquid"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="liquid"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="liquid"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="liquid"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="liquid"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="liquid"] .titlebar { background: transparent; }
:root[data-style="liquid"] thead th { text-transform: uppercase; letter-spacing: 0.6px; font-size: calc(10px * var(--scale)); }
:root[data-style="liquid"] tbody tr, :root[data-style="liquid"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="liquid"] tbody tr.flagged, :root[data-style="liquid"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="liquid"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="liquid"] tbody tr.team-start { border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
:root[data-style="liquid"] .lead { display: inline-block; width: calc(7px * var(--scale)); height: calc(7px * var(--scale)); margin-right: calc(7px * var(--scale)); border-radius: 2px; background: var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="liquid"] { --rim: rgba(255, 255, 255, 0.16); --rim-top: rgba(255, 255, 255, 0.4); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%); --motion: 320ms cubic-bezier(0.32, 0.72, 0, 1); }
:root[data-style="liquid"][data-scheme="light"] { --rim: rgba(255, 255, 255, 0.8); --rim-top: #fff; --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 50%); }
:root[data-style="liquid"] .app { background-image: var(--sheen); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px rgba(255, 255, 255, 0.04); backdrop-filter: blur(24px) saturate(180%); }
:root[data-style="liquid"] .titlebar { border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
:root[data-style="liquid"] select.gamemode, :root[data-style="liquid"] .add input, :root[data-style="liquid"] .actions button { border-radius: 999px; border: 1px solid var(--rim); background-color: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rim-top) 60%, transparent); transition: background-color var(--motion), transform 480ms cubic-bezier(0.34, 1.45, 0.5, 1); }
:root[data-style="liquid"] .actions button:active { transform: scale(0.92); }
:root[data-style="liquid"] tbody tr { transition: background var(--motion); }
:root[data-style="liquid"] tbody td:first-child { border-radius: calc(10px * var(--scale)) 0 0 calc(10px * var(--scale)); }
:root[data-style="liquid"] tbody td:last-child { border-radius: 0 calc(10px * var(--scale)) calc(10px * var(--scale)) 0; }
:root[data-style="liquid"] .app { 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;
  --bg: 7, 9, 7;
  --panel-alpha-scale: 1;
  --border: #1f261e;
  --text: #d3dbd0;
  --muted: #6f7a6b;
  --accent: #a3e635;
  --danger: #f87171;
  --row-alt: rgba(0, 0, 0, 0);
  --surface-hi: #141414;
  --surface-hover: #1f1f1f;
  --menu-bg: #0b0b0b;
  --flag-row: rgba(248, 113, 113, 0.078);
  --hover-row: rgba(163, 230, 53, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #a3e635;
  --radius: 0px;
  --shadow-color: transparent;
}
:root[data-style="terminal"] .tag:not(.more) { background: transparent !important; color: var(--tag) !important; padding: 0 1px; }
:root[data-style="terminal"][data-scheme="light"] {
  color-scheme: light;
  --font: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --bg: 250, 250, 247;
  --panel-alpha-scale: 1;
  --border: #d4d4d0;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --accent: #3f7d0b;
  --danger: #c0262d;
  --row-alt: rgba(0, 0, 0, 0);
  --surface-hi: #f0f0ec;
  --surface-hover: #e8e8e3;
  --menu-bg: #ffffff;
  --flag-row: rgba(192, 38, 45, 0.078);
  --hover-row: rgba(63, 125, 11, 0.078);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #3f7d0b;
  --radius: 0px;
  --shadow-color: transparent;
}
:root[data-style="terminal"][data-scheme="light"] .tag:not(.more) { background: transparent !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; padding: 0 1px; }
:root[data-style="terminal"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 0px; }
:root[data-style="terminal"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="terminal"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="terminal"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="terminal"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="terminal"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="terminal"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="terminal"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="terminal"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="terminal"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="terminal"] select.gamemode, :root[data-style="terminal"] .add input, :root[data-style="terminal"] .actions button { border-radius: 0; }
:root[data-style="terminal"] .titlebar { background: transparent; }
:root[data-style="terminal"] .brand .name { text-transform: uppercase; color: var(--accent); font-weight: 700; }
:root[data-style="terminal"] .dot { border-radius: 0; width: calc(3px * var(--scale)); }
:root[data-style="terminal"] select.gamemode { text-transform: uppercase; }
:root[data-style="terminal"] thead th { text-transform: uppercase; letter-spacing: 1px; font-size: calc(10px * var(--scale)); }
:root[data-style="terminal"] tbody tr, :root[data-style="terminal"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="terminal"] tbody tr.flagged, :root[data-style="terminal"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="terminal"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="terminal"] .lead { display: inline; margin-right: calc(6px * var(--scale)); color: var(--team); font-weight: 700; }
:root[data-style="terminal"] .lead::before { content: "["; color: var(--muted); font-weight: 400; }
:root[data-style="terminal"] .lead::after { content: "]"; color: var(--muted); font-weight: 400; }
:root[data-style="daylight"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 22, 24, 29;
  --panel-alpha-scale: 1;
  --border: #2a2e37;
  --text: #eceef2;
  --muted: #a0a7b4;
  --accent: #60a5fa;
  --danger: #fb7185;
  --row-alt: rgba(255, 255, 255, 0.024);
  --surface-hi: #1d2027;
  --surface-hover: #23262e;
  --menu-bg: #1d2027;
  --flag-row: rgba(251, 113, 133, 0.122);
  --hover-row: rgba(96, 165, 250, 0.078);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #4ade80;
  --radius: 11px;
  --shadow-color: transparent;
}
:root[data-style="daylight"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="daylight"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 255, 255, 255;
  --panel-alpha-scale: 1;
  --border: #e3e6ec;
  --text: #12141a;
  --muted: #4b5563;
  --accent: #2563eb;
  --danger: #be123c;
  --row-alt: rgba(0, 0, 0, 0.02);
  --surface-hi: #f3f4f7;
  --surface-hover: #eef0f4;
  --menu-bg: #ffffff;
  --flag-row: rgba(225, 29, 72, 0.078);
  --hover-row: rgba(37, 99, 235, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #15803d;
  --radius: 11px;
  --shadow-color: transparent;
}
:root[data-style="daylight"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="daylight"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 21px; }
:root[data-style="daylight"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="daylight"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="daylight"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="daylight"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="daylight"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="daylight"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="daylight"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="daylight"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="daylight"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="daylight"] .titlebar { background: transparent; }
:root[data-style="daylight"] thead th { text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; font-size: calc(10px * var(--scale)); }
:root[data-style="daylight"] tbody tr, :root[data-style="daylight"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="daylight"] tbody tr.team-start { border-top: 1px solid var(--border); }
:root[data-style="daylight"] tbody tr.self { box-shadow: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
:root[data-style="daylight"] tbody tr.flagged, :root[data-style="daylight"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="daylight"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="daylight"] .lead { display: inline-grid; place-items: center; width: calc(16px * var(--scale)); height: calc(16px * var(--scale)); margin-right: calc(7px * var(--scale)); border-radius: calc(5px * var(--scale)); background: color-mix(in srgb, var(--team) 20%, transparent); color: color-mix(in srgb, var(--team) 60%, var(--text)); font-size: calc(10px * var(--scale)); font-weight: 800; text-shadow: none; vertical-align: middle; }
:root[data-style="minimal"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 17, 17, 19;
  --panel-alpha-scale: 1;
  --border: rgba(255, 255, 255, 0.09);
  --text: #ededf0;
  --muted: #9a9aa3;
  --accent: #8b93ff;
  --danger: #f25c6e;
  --row-alt: rgba(255, 255, 255, 0.02);
  --surface-hi: rgba(255, 255, 255, 0.039);
  --surface-hover: rgba(255, 255, 255, 0.071);
  --menu-bg: #1b1b1f;
  --flag-row: rgba(242, 92, 110, 0.122);
  --hover-row: rgba(139, 147, 255, 0.078);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #3dd68c;
  --radius: 11px;
  --shadow-color: transparent;
}
:root[data-style="minimal"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="minimal"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 255, 255, 255;
  --panel-alpha-scale: 1;
  --border: rgba(0, 0, 0, 0.102);
  --text: #16161a;
  --muted: #5e5e68;
  --accent: #4450e6;
  --danger: #d9364a;
  --row-alt: rgba(0, 0, 0, 0.02);
  --surface-hi: rgba(0, 0, 0, 0.031);
  --surface-hover: rgba(0, 0, 0, 0.059);
  --menu-bg: #ffffff;
  --flag-row: rgba(217, 54, 74, 0.122);
  --hover-row: rgba(68, 80, 230, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #16a34a;
  --radius: 11px;
  --shadow-color: transparent;
}
:root[data-style="minimal"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="minimal"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 21px; }
:root[data-style="minimal"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="minimal"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="minimal"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="minimal"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="minimal"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="minimal"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="minimal"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="minimal"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="minimal"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="minimal"] .titlebar { background: transparent; }
:root[data-style="minimal"] thead th { text-transform: uppercase; letter-spacing: 0.6px; font-size: calc(10px * var(--scale)); }
:root[data-style="minimal"] tbody tr, :root[data-style="minimal"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="minimal"] tbody tr.flagged, :root[data-style="minimal"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="minimal"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="minimal"] tbody tr.team-start { border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
:root[data-style="minimal"] .lead { display: inline-block; width: calc(7px * var(--scale)); height: calc(7px * var(--scale)); margin-right: calc(7px * var(--scale)); border-radius: 2px; background: var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="obsidian"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 11, 11, 12;
  --panel-alpha-scale: 0.9;
  --border: rgba(255, 255, 255, 0.059);
  --text: #ededef;
  --muted: #8a8d94;
  --accent: #e8e8ea;
  --danger: #ff8a73;
  --row-alt: rgba(255, 255, 255, 0.016);
  --surface-hi: rgba(255, 255, 255, 0.039);
  --surface-hover: rgba(255, 255, 255, 0.071);
  --menu-bg: #141416;
  --flag-row: rgba(255, 138, 115, 0.102);
  --hover-row: rgba(255, 255, 255, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #4ade80;
  --radius: 13px;
  --shadow-color: transparent;
}
:root[data-style="obsidian"] .tag:not(.more) { background: transparent !important; color: var(--tag) !important; padding: 0 1px; }
:root[data-style="obsidian"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 251, 251, 250;
  --panel-alpha-scale: 0.94;
  --border: rgba(0, 0, 0, 0.078);
  --text: #111214;
  --muted: #5e6068;
  --accent: #111214;
  --danger: #d9452b;
  --row-alt: rgba(0, 0, 0, 0.016);
  --surface-hi: rgba(0, 0, 0, 0.031);
  --surface-hover: rgba(0, 0, 0, 0.059);
  --menu-bg: #ffffff;
  --flag-row: rgba(217, 69, 43, 0.102);
  --hover-row: rgba(0, 0, 0, 0.039);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #15803d;
  --radius: 13px;
  --shadow-color: transparent;
}
:root[data-style="obsidian"][data-scheme="light"] .tag:not(.more) { background: transparent !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; padding: 0 1px; }
:root[data-style="obsidian"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 24px; }
:root[data-style="obsidian"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="obsidian"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="obsidian"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="obsidian"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="obsidian"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="obsidian"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="obsidian"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="obsidian"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="obsidian"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="obsidian"] .titlebar { background: transparent; }
:root[data-style="obsidian"] thead th { text-transform: uppercase; letter-spacing: 1.2px; font-size: calc(9.5px * var(--scale)); font-weight: 500; border-bottom: none; }
:root[data-style="obsidian"] tbody tr, :root[data-style="obsidian"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="obsidian"] tbody tr.team-start { border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
:root[data-style="obsidian"] tbody tr.self { box-shadow: none; background: color-mix(in srgb, var(--text) 5%, transparent); }
:root[data-style="obsidian"] tbody tr.flagged, :root[data-style="obsidian"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="obsidian"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="obsidian"] .lead { display: inline-block; width: calc(2px * var(--scale)); height: calc(11px * var(--scale)); margin-right: calc(8px * var(--scale)); border-radius: 1px; background: var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="porcelain"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 28, 28, 31;
  --panel-alpha-scale: 0.96;
  --border: rgba(255, 255, 255, 0.078);
  --text: #f2f2f4;
  --muted: #a1a3ab;
  --accent: #4d8bff;
  --danger: #ff6b6b;
  --row-alt: rgba(255, 255, 255, 0.02);
  --surface-hi: #26262a;
  --surface-hover: #2c2c31;
  --menu-bg: #26262a;
  --flag-row: rgba(255, 107, 107, 0.102);
  --hover-row: rgba(77, 139, 255, 0.078);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #32d74b;
  --radius: 16px;
  --shadow-color: transparent;
}
:root[data-style="porcelain"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="porcelain"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 255, 255, 255;
  --panel-alpha-scale: 0.96;
  --border: rgba(0, 0, 0, 0.059);
  --text: #16181d;
  --muted: #5b616d;
  --accent: #2f6bef;
  --danger: #d7263d;
  --row-alt: rgba(0, 0, 0, 0.016);
  --surface-hi: #f3f4f6;
  --surface-hover: #ecedf0;
  --menu-bg: #ffffff;
  --flag-row: rgba(215, 38, 61, 0.078);
  --hover-row: rgba(47, 107, 239, 0.059);
  --highlight: rgba(0, 0, 0, 0);
  --ok: #1f9d55;
  --radius: 16px;
  --shadow-color: transparent;
}
:root[data-style="porcelain"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="porcelain"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 30px; }
:root[data-style="porcelain"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="porcelain"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="porcelain"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="porcelain"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="porcelain"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="porcelain"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="porcelain"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="porcelain"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="porcelain"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="porcelain"] .titlebar { background: transparent; }
:root[data-style="porcelain"] thead th { text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; font-size: calc(10px * var(--scale)); }
:root[data-style="porcelain"] tbody tr, :root[data-style="porcelain"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="porcelain"] tbody tr.team-start { border-top: 1px solid var(--border); }
:root[data-style="porcelain"] tbody tr.self { box-shadow: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
:root[data-style="porcelain"] tbody tr.flagged, :root[data-style="porcelain"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="porcelain"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="porcelain"] .lead { display: inline-grid; place-items: center; width: calc(16px * var(--scale)); height: calc(16px * var(--scale)); margin-right: calc(7px * var(--scale)); border-radius: calc(5px * var(--scale)); background: color-mix(in srgb, var(--team) 20%, transparent); color: color-mix(in srgb, var(--team) 60%, var(--text)); font-size: calc(10px * var(--scale)); font-weight: 800; text-shadow: none; vertical-align: middle; }
:root[data-style="halo"] {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 26, 28, 33;
  --panel-alpha-scale: 0.72;
  --border: rgba(255, 255, 255, 0.141);
  --text: #f2f3f5;
  --muted: #a4a7ae;
  --accent: #ffffff;
  --danger: #ff8a8a;
  --row-alt: rgba(255, 255, 255, 0.02);
  --surface-hi: rgba(255, 255, 255, 0.071);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --menu-bg: #24262c;
  --flag-row: rgba(255, 138, 138, 0.122);
  --hover-row: rgba(255, 255, 255, 0.078);
  --highlight: rgba(255, 255, 255, 0.2);
  --ok: #5bd38a;
  --radius: 22px;
  --shadow-color: transparent;
}
:root[data-style="halo"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: var(--tag) !important; }
:root[data-style="halo"][data-scheme="light"] {
  color-scheme: light;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: 244, 245, 247;
  --panel-alpha-scale: 0.86;
  --border: rgba(0, 0, 0, 0.071);
  --text: #15171b;
  --muted: #62656d;
  --accent: #15171b;
  --danger: #e5484d;
  --row-alt: rgba(0, 0, 0, 0.02);
  --surface-hi: rgba(0, 0, 0, 0.039);
  --surface-hover: rgba(0, 0, 0, 0.071);
  --menu-bg: #fbfbfc;
  --flag-row: rgba(229, 72, 77, 0.102);
  --hover-row: rgba(0, 0, 0, 0.059);
  --highlight: rgba(255, 255, 255, 0.902);
  --ok: #2db36b;
  --radius: 22px;
  --shadow-color: transparent;
}
:root[data-style="halo"][data-scheme="light"] .tag:not(.more) { background: color-mix(in srgb, var(--tag) 24%, transparent) !important; color: color-mix(in srgb, var(--tag) 55%, #000) !important; }
:root[data-style="halo"] { --control: calc(26px * var(--scale)); --pad-x: calc(12px * var(--scale)); --pad-y: calc(9px * var(--scale)); --cell-x: calc(9px * var(--scale)); --cell-y: calc(5px * var(--scale)); --radius: 42px; }
:root[data-style="halo"] .titlebar { background: transparent; padding-left: calc(14px * var(--scale)); }
:root[data-style="halo"] .brand { font-weight: 700; font-size: calc(13.5px * var(--scale)); gap: calc(9px * var(--scale)); }
:root[data-style="halo"] select.gamemode { appearance: none; padding: 0 calc(24px * var(--scale)) 0 calc(10px * var(--scale)); border-radius: calc(8px * var(--scale)); background-color: color-mix(in srgb, var(--text) 3%, transparent); 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 calc(8px * var(--scale)) center; font-weight: 600; font-size: calc(12px * var(--scale)); }
:root[data-style="halo"] .add input { border-radius: calc(8px * var(--scale)); font-size: calc(12px * var(--scale)); }
:root[data-style="halo"] .actions button { border-radius: calc(8px * var(--scale)); width: calc(28px * var(--scale)); }
:root[data-style="halo"] thead th { font-size: calc(10.5px * var(--scale)); letter-spacing: 0.6px; padding-top: calc(9px * var(--scale)); padding-bottom: calc(6px * var(--scale)); }
:root[data-style="halo"] tbody td { font-size: calc(13px * var(--scale)); line-height: calc(20px * var(--scale)); }
:root[data-style="halo"] table.stats td.col-num { font-family: "Cascadia Mono", Consolas, monospace; font-size: calc(12.5px * var(--scale)); font-weight: 500; }
:root[data-style="halo"] .statusbar { background: transparent; padding: calc(8px * var(--scale)) calc(14px * var(--scale)); font-size: calc(11.5px * var(--scale)); }
:root[data-style="halo"] .titlebar { background: transparent; border-bottom: none; }
:root[data-style="halo"] thead th { font-size: calc(10px * var(--scale)); font-weight: 700; border-bottom: none; }
:root[data-style="halo"] tbody tr, :root[data-style="halo"] tbody tr:nth-child(even) { border-bottom: none; background: transparent; }
:root[data-style="halo"] tbody tr.self { box-shadow: none; background: color-mix(in srgb, var(--text) 8%, transparent); }
:root[data-style="halo"] tbody tr.self td:first-child { border-radius: 999px 0 0 999px; }
:root[data-style="halo"] tbody tr.self td:last-child { border-radius: 0 999px 999px 0; }
:root[data-style="halo"] tbody tr.flagged, :root[data-style="halo"] tbody tr.flagged:nth-child(even) { background: var(--flag-row); }
:root[data-style="halo"] tbody tr:hover { background: var(--hover-row); }
:root[data-style="halo"] .lead { display: inline-block; width: calc(6px * var(--scale)); height: calc(6px * var(--scale)); margin-right: calc(8px * var(--scale)); border-radius: 50%; background: var(--team); font-size: 0; vertical-align: middle; }
:root[data-style="halo"] { --rim: rgba(255, 255, 255, 0.16); --rim-top: rgba(255, 255, 255, 0.4); --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%); --motion: 320ms cubic-bezier(0.32, 0.72, 0, 1); }
:root[data-style="halo"][data-scheme="light"] { --rim: rgba(255, 255, 255, 0.8); --rim-top: #fff; --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 50%); }
:root[data-style="halo"] .app { background-image: var(--sheen); border: 1px solid var(--rim); box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px rgba(255, 255, 255, 0.04); backdrop-filter: blur(24px) saturate(180%); }
:root[data-style="halo"] .titlebar { border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
:root[data-style="halo"] select.gamemode, :root[data-style="halo"] .add input, :root[data-style="halo"] .actions button { border-radius: 999px; border: 1px solid var(--rim); background-color: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rim-top) 60%, transparent); transition: background-color var(--motion), transform 480ms cubic-bezier(0.34, 1.45, 0.5, 1); }
:root[data-style="halo"] .actions button:active { transform: scale(0.92); }
:root[data-style="halo"] tbody tr { transition: background var(--motion); }
:root[data-style="halo"] tbody td:first-child { border-radius: calc(10px * var(--scale)) 0 0 calc(10px * var(--scale)); }
:root[data-style="halo"] tbody td:last-child { border-radius: 0 calc(10px * var(--scale)) calc(10px * var(--scale)) 0; }
:root[data-style="halo"] .app { 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;
  --bg: 29, 35, 42;
  --border: rgba(236, 249, 255, 0.078);
  --text: #ecf9ff;
  --muted: #aeb9bf;
  --accent: #605dff;
  --danger: #ff627d;
  --row-alt: rgba(236, 249, 255, 0.09);
  --surface-hi: rgba(236, 249, 255, 0.059);
  --surface-hover: rgba(236, 249, 255, 0.09);
  --menu-bg: #272e35;
  --flag-row: rgba(255, 98, 125, 0.102);
  --hover-row: rgba(96, 93, 255, 0.078);
  --ok: #00d390;
}
:root[data-palette="night"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --bg: 15, 23, 42;
  --border: rgba(201, 203, 208, 0.078);
  --text: #c9cbd0;
  --muted: #91959e;
  --accent: #3abdf7;
  --danger: #fb7085;
  --row-alt: rgba(201, 203, 208, 0.09);
  --surface-hi: rgba(201, 203, 208, 0.059);
  --surface-hover: rgba(201, 203, 208, 0.09);
  --menu-bg: #182032;
  --flag-row: rgba(251, 112, 133, 0.102);
  --hover-row: rgba(58, 189, 247, 0.078);
  --ok: #2fd4bf;
}
:root[data-palette="dracula"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --bg: 40, 42, 54;
  --border: rgba(248, 248, 243, 0.078);
  --text: #f8f8f3;
  --muted: #bababa;
  --accent: #ff79c6;
  --danger: #ff5555;
  --row-alt: rgba(248, 248, 243, 0.09);
  --surface-hi: rgba(248, 248, 243, 0.059);
  --surface-hover: rgba(248, 248, 243, 0.09);
  --menu-bg: #32343f;
  --flag-row: rgba(255, 85, 85, 0.102);
  --hover-row: rgba(255, 121, 198, 0.078);
  --ok: #51fa7b;
}
:root[data-palette="coffee"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --bg: 38, 27, 37;
  --border: rgba(197, 159, 97, 0.078);
  --text: #c59f61;
  --muted: #95774f;
  --accent: #db924c;
  --danger: #fc9581;
  --row-alt: rgba(197, 159, 97, 0.09);
  --surface-hi: rgba(197, 159, 97, 0.059);
  --surface-hover: rgba(197, 159, 97, 0.09);
  --menu-bg: #2e2228;
  --flag-row: rgba(252, 149, 129, 0.102);
  --hover-row: rgba(219, 146, 76, 0.078);
  --ok: #9db787;
}
:root[data-palette="black"][data-palette][data-palette] {
  color-scheme: dark;
  --palette-scheme: dark;
  --bg: 0, 0, 0;
  --border: rgba(214, 214, 214, 0.078);
  --text: #d6d6d6;
  --muted: #969696;
  --accent: #d6d6d6;
  --danger: #ff0301;
  --row-alt: rgba(214, 214, 214, 0.09);
  --surface-hi: rgba(214, 214, 214, 0.059);
  --surface-hover: rgba(214, 214, 214, 0.09);
  --menu-bg: #0b0b0b;
  --flag-row: rgba(255, 3, 1, 0.102);
  --hover-row: rgba(214, 214, 214, 0.078);
  --ok: #028002;
}
:root[data-palette="light"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --bg: 255, 255, 255;
  --border: rgba(24, 24, 27, 0.122);
  --text: #18181b;
  --muted: #5d5d5f;
  --accent: #422ad5;
  --danger: #ff627d;
  --row-alt: rgba(24, 24, 27, 0.051);
  --surface-hi: rgba(24, 24, 27, 0.051);
  --surface-hover: rgba(24, 24, 27, 0.078);
  --menu-bg: #f3f3f4;
  --flag-row: rgba(255, 98, 125, 0.102);
  --hover-row: rgba(66, 42, 213, 0.078);
  --ok: #00d390;
}
:root[data-palette="nord"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --bg: 236, 239, 244;
  --border: rgba(46, 52, 64, 0.122);
  --text: #2e3440;
  --muted: #676c76;
  --accent: #5e81ac;
  --danger: #bf616a;
  --row-alt: rgba(46, 52, 64, 0.051);
  --surface-hi: rgba(46, 52, 64, 0.051);
  --surface-hover: rgba(46, 52, 64, 0.078);
  --menu-bg: #e3e6eb;
  --flag-row: rgba(191, 97, 106, 0.102);
  --hover-row: rgba(94, 129, 172, 0.078);
  --ok: #a3be8d;
}
:root[data-palette="cupcake"][data-palette][data-palette] {
  color-scheme: light;
  --palette-scheme: light;
  --bg: 250, 247, 245;
  --border: rgba(41, 19, 52, 0.122);
  --text: #291334;
  --muted: #68576e;
  --accent: #291334;
  --danger: #fe1c55;
  --row-alt: rgba(41, 19, 52, 0.051);
  --surface-hi: rgba(41, 19, 52, 0.051);
  --surface-hover: rgba(41, 19, 52, 0.078);
  --menu-bg: #f0eceb;
  --flag-row: rgba(254, 28, 85, 0.102);
  --hover-row: rgba(41, 19, 52, 0.078);
  --ok: #00ba7b;
}
/* styles:end */

/* 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;
}

/* A custom rank's pixel icon in front of the name (overlay.js rankIcon()): crisp squares, on the baseline. */
.rank-icon {
  height: 1em;
  margin-right: 0.3em;
  vertical-align: -0.12em;
  shape-rendering: crispEdges;
  flex: none;
}

/* A custom rank's gradient, moving along the letters (overlay.js flow()). */
.kgrad {
  color: transparent !important;
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none !important;
  animation: kgrad 2.5s linear infinite;
}
@keyframes kgrad {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) { .kgrad { animation: none; } }
