/* Mystian Fields design system — shared by www.mystianfields.net and the admin dashboard.
   Round 12 ("Night Meadow"): warm cream / green-black neutrals, leaf green for links, nav and meters, gold for votes,
   tulip red only on the main button. Barlow Condensed for titles, Barlow for text, IBM Plex Mono for numbers and
   addresses; Pixelify Sans only for in-game text (rank prefixes). All fonts self-hosted.
   Theme follows the device; the toggle stores an override (theme.js sets [data-theme] before paint). */

@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-400-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-500-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-600-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-700-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-500-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-600-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-700-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-400-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-500-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-600-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/static/fonts/pixelify-sans-latin.woff2?v=6a3aac0d05") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- tokens */
:root {
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mc: "Pixelify Sans", var(--font-body);

  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #f9f8f4;
  --surface-3: #efede6;
  --line: #e5e2d9;
  --line-strong: #d3cfc3;
  --text: #1c2420;
  --text-2: #3c4741;
  --muted: #626c65;
  --link: #22743a;

  --tulip: #d6334a;
  --tulip-ink: #b4243a;
  --tulip-soft: #fbe7e9;
  --leaf: #2f8f45;
  --leaf-ink: #22743a;
  --leaf-soft: #e4f2e5;
  --gold: #e3a21a;
  --gold-soft: #fbf1d9;
  --sky: #2f7bc4;
  --sky-ink: #23629f;
  --sky-soft: #e5eff9;
  --silver: #8d99a6;
  --bronze: #b8743a;

  --ok: #22743a; --ok-bg: #e4f2e5;
  --warn: #965800; --warn-bg: #fcefd6;
  --bad: #b4243a; --bad-bg: #fbe7e9;

  --chart: #2f7bc4;
  --chart-wash: rgba(47, 123, 196, 0.1);
  --grid: #ebe8e0;

  --shadow-sm: 0 1px 2px rgba(40, 36, 20, 0.05);
  --shadow: 0 1px 2px rgba(40, 36, 20, 0.05), 0 4px 14px rgba(40, 36, 20, 0.05);
  --shadow-lg: 0 2px 6px rgba(40, 36, 20, 0.06), 0 18px 44px rgba(40, 36, 20, 0.12);
  --ring: 0 0 0 3px rgba(47, 143, 69, 0.3);
  --header-bg: rgba(255, 255, 255, 0.82);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  --sun: none;
  --moon: inline-block;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c110f; --surface: #131a17; --surface-2: #17201c; --surface-3: #1e2823; --line: #26322c; --line-strong: #34433b;
    --text: #ecf1ec; --text-2: #c6d1c9; --muted: #93a299; --link: #7fd894;
    --tulip: #ef6276; --tulip-ink: #ff8b9a; --tulip-soft: #3a1d23; --leaf: #3fae5a; --leaf-ink: #7fd894; --leaf-soft: #17301f;
    --gold: #f2bf4a; --gold-soft: #33290f; --sky: #5aa2e8; --sky-ink: #8cc0f2; --sky-soft: #172739; --silver: #a9b5c2; --bronze: #d08b4f;
    --ok: #7fd894; --ok-bg: #17301f; --warn: #f2bf4a; --warn-bg: #33290f; --bad: #ff8b9a; --bad-bg: #3a1d23;
    --chart: #4f93e0; --chart-wash: rgba(79, 147, 224, 0.12); --grid: #202b26;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.28); --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 20px 48px rgba(0, 0, 0, 0.45);
    --ring: 0 0 0 3px rgba(63, 174, 90, 0.4); --header-bg: rgba(19, 26, 23, 0.8);
    --sun: inline-block; --moon: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c110f; --surface: #131a17; --surface-2: #17201c; --surface-3: #1e2823; --line: #26322c; --line-strong: #34433b;
  --text: #ecf1ec; --text-2: #c6d1c9; --muted: #93a299; --link: #7fd894;
  --tulip: #ef6276; --tulip-ink: #ff8b9a; --tulip-soft: #3a1d23; --leaf: #3fae5a; --leaf-ink: #7fd894; --leaf-soft: #17301f;
  --gold: #f2bf4a; --gold-soft: #33290f; --sky: #5aa2e8; --sky-ink: #8cc0f2; --sky-soft: #172739; --silver: #a9b5c2; --bronze: #d08b4f;
  --ok: #7fd894; --ok-bg: #17301f; --warn: #f2bf4a; --warn-bg: #33290f; --bad: #ff8b9a; --bad-bg: #3a1d23;
  --chart: #4f93e0; --chart-wash: rgba(79, 147, 224, 0.12); --grid: #202b26;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.28); --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 20px 48px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 3px rgba(63, 174, 90, 0.4); --header-bg: rgba(19, 26, 23, 0.8);
  --sun: inline-block; --moon: none; color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
.px, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 10px; letter-spacing: 0; color: var(--text); }
h1 { font-size: clamp(32px, 3.6vw, 42px); }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num, td.num, .tab { font-variant-numeric: tabular-nums; }
code, pre, kbd { font-family: var(--font-mono); font-size: 13px; }
code { background: var(--surface-3); color: var(--text); padding: 1px 6px; border-radius: 6px; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
::selection { background: var(--leaf); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 24px; padding-bottom: 64px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- buttons */
.btn, button, input[type="submit"] {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px;
  font: 600 15px/1 var(--font-body); color: var(--b-fg); background: var(--b-bg);
  border: 1px solid var(--b-bd); border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover, button:hover { text-decoration: none; border-color: var(--text-2); }
.btn:active, button:active { transform: scale(0.98); }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .ico, button .ico { width: 18px; height: 18px; }
.btn-primary, button.primary { --b-bg: #d6334a; --b-fg: #fff; --b-bd: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(214, 51, 74, 0.25); }
.btn-primary:hover, button.primary:hover { --b-bg: #c22a40; border-color: transparent; }
.btn-ghost { --b-bg: transparent; }
.btn-danger, button.danger { --b-bg: transparent; --b-fg: var(--bad); --b-bd: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-danger:hover, button.danger:hover { --b-bg: var(--bad-bg); border-color: var(--bad); }
.btn-discord { --b-bg: #5865f2; --b-fg: #fff; --b-bd: transparent; }
.btn-discord:hover { --b-bg: #4752c4; border-color: transparent; }
.btn.lg { min-height: 50px; padding: 12px 24px; font-size: 16px; }
.btn.sm, button.sm { min-height: 34px; padding: 6px 13px; font-size: 14px; }
.btn.icon-only { width: 36px; padding: 0; }
button.link { --b-bg: transparent; --b-bd: transparent; min-height: 0; padding: 0; font: inherit; color: var(--link); border-radius: 4px; }
button.link:hover { text-decoration: underline; }
.icon-btn, .theme-toggle { --b-bg: transparent; --b-bd: transparent; min-height: 36px; width: 36px; padding: 0; border-radius: 50%; color: var(--muted); }
.icon-btn:hover, .theme-toggle:hover { --b-bg: var(--surface-3); color: var(--text); border-color: transparent; }
.theme-toggle .i-sun { display: var(--sun); }
.theme-toggle .i-moon { display: var(--moon); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 4px; }

/* ---------- status pills, badges, chips */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font: 600 13px/1.3 var(--font-body); background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.status .dot, .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.status.ok .dot { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--font-body); letter-spacing: 0.02em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.new { background: var(--gold-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; color: var(--muted); }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-nav a { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 500; }
.pill-nav a:hover { text-decoration: none; border-color: var(--line-strong); }
.pill-nav a[aria-current] { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ---------- cards + layout helpers */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; color: inherit; display: block; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head .ico { color: var(--muted); }
.card-head > a { font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 18px; }
.grid > .card { margin: 0; }
.cols-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-2 > .card { margin: 0; }
.cols-main { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 960px) { .cols-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section { margin: 52px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tulip-ink); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.note { display: flex; align-items: center; gap: 6px; background: var(--sky-soft); color: var(--sky-ink); border-radius: 12px; padding: 9px 13px; font-size: 14px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.callout .ico { margin-top: 2px; }
.callout.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.callout.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.callout.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.callout a { color: inherit; text-decoration: underline; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.msg { font-size: 14px; }
.msg:empty { display: none; }
.msg.ok, .msg.bad { display: block; padding: 8px 12px; border-radius: 10px; margin-top: 10px; }
.msg.ok { background: var(--ok-bg); }
.msg.bad { background: var(--bad-bg); }

/* ---------- stats */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.stat-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.stat-ico .ico { width: 20px; height: 20px; }
.stat-v { font: 600 26px/1.1 var(--font-mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-l { color: var(--muted); font-size: 14px; }
.stat-s { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- meters + ring gauge */
.meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--leaf); transition: width 0.4s ease; }
.meter.sky > i { background: var(--chart); }
.meter.tulip > i { background: var(--tulip); }
.meter.gold > i { background: var(--gold); }
.meter.lg { height: 12px; }

/* ---------- copy address */
.copy-addr { --b-bg: var(--surface-2); --b-bd: var(--line); min-height: 38px; padding: 6px 12px 6px 14px; gap: 10px; border-radius: 9px; font: 500 14px/1 var(--font-mono); color: var(--text); max-width: 100%; justify-content: space-between; }
.copy-addr { overflow: hidden; }
.copy-addr span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-addr:hover { border-color: var(--line-strong); }
.copy-addr:active { transform: none; }
.copy-addr .ico { color: var(--muted); width: 16px; height: 16px; }
.copy-addr .i-done { display: none; color: var(--ok); }
.copy-addr.copied { border-color: var(--leaf); }
.copy-addr.copied .i-copy { display: none; }
.copy-addr.copied .i-done { display: inline-block; }
.copy-addr.lg { min-height: 48px; font-size: 15.5px; padding: 8px 16px 8px 18px; border-radius: 10px; }

/* ---------- avatars + skins */
.avatar { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-3); flex: none; display: inline-block; vertical-align: middle; }
.body-render { display: block; height: 180px; width: auto; aspect-ratio: 258 / 420; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.18)); }
.bust-render { display: block; width: 96px; height: 96px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15)); }

/* ---------- forms */
label { display: block; font-weight: 500; font-size: 14px; color: var(--text-2); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 400 15px/1.4 var(--font-body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 13px; }
textarea { line-height: 1.5; resize: vertical; }
.edit-file textarea, #status-form textarea { font-family: var(--font-mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { display: inline-block; flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--leaf); vertical-align: -3px; }
input[type="color"] { padding: 3px; height: 42px; width: 64px; }
input[type="file"] { padding: 8px; background: var(--surface); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--text); }
.form-grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid .span-all { grid-column: 1 / -1; }
.vote-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 640px) { .vote-row { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 14px; }
.stack .check { margin-top: 12px; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.inline input, .inline select { width: auto; flex: 1 1 180px; margin: 0; min-width: 0; max-width: 100%; }
.inline .search { min-width: 0; max-width: 100%; }
.inline .check { flex: none; }
.help { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 16px; margin: 0 0 14px; min-width: 0; }
legend { padding: 0 6px; font: 650 16px/1 var(--font-display); color: var(--text-2); }
fieldset .check + .check { margin-top: 8px; }
.inline-fields { justify-content: flex-start; gap: 18px; }
.search { position: relative; }
.search input { padding-left: 40px; margin: 0; background: var(--surface); border-radius: 999px; }
.search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; list-style: none; margin: 0; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text); }
.suggest a:hover, .suggest a.on { background: var(--surface-3); text-decoration: none; }
.suggest .avatar { width: 24px; height: 24px; border-radius: 6px; }

/* switches (control page) */
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
fieldset .switch:first-of-type { border-top: 0; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; margin: 1px 0 0; border-radius: 99px; background: var(--line-strong); border: 0; position: relative; cursor: pointer; transition: background 0.15s ease; padding: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease; }
.switch input:checked { background: var(--leaf); }
.switch input:checked::after { transform: translateX(20px); }
.switch span { display: flex; flex-direction: column; gap: 2px; }
.switch b { font-weight: 600; color: var(--text); }
.switch small { color: var(--muted); font-weight: 400; }
fieldset.master { border-color: var(--tulip); background: var(--tulip-soft); }
fieldset.master legend { color: var(--tulip-ink); }

/* ---------- tables + lists */
.table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.err { color: var(--bad); font-size: 13px; margin-top: 4px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv > span { color: var(--muted); }
.kv > b { font-weight: 500; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv.wide { grid-template-columns: max-content 1fr max-content 1fr; }
@media (max-width: 760px) { .kv.wide { grid-template-columns: max-content 1fr; } }

/* ---------- console */
pre.console { background: #0c110f; color: #d2e2d8; padding: 14px; border-radius: var(--r); max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; border: 1px solid #1e2823; font-size: 12.5px; line-height: 1.5; }
.joblog span { display: block; }
.lv-step { color: #8cc0f2; font-weight: 600; }
.lv-warn { color: #f2bf4a; }
.lv-error { color: #ff8b9a; }

/* ---------- discord preview */
.discord-preview { background: #313338; color: #dbdee1; border-radius: var(--r); padding: 16px; font: 15px/1.4 "gg sans", "Noto Sans", var(--font-body); }
.dp-name { font-weight: 600; color: #fff; margin-bottom: 6px; }
.dp-embed { border-left: 4px solid #5b4bdb; background: #2b2d31; border-radius: 4px; padding: 10px 14px; max-width: 520px; }
.dp-title { font-weight: 700; color: #fff; margin-bottom: 6px; }
.dp-text code { background: #1e1f22; color: #dbdee1; }
.dp-footer { color: #949ba4; font-size: 12px; margin-top: 8px; }
.discord-preview .muted { color: #949ba4; }

/* ---------- in-game text (rank prefixes) */
.mc { font-family: var(--font-mc); font-weight: 500; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }
.mc-plate { display: inline-block; background: #1d2a25; padding: 3px 10px 4px; border-radius: 8px; color: #fff; }
.mc-plate.light { background: #ebeef0; box-shadow: inset 0 0 0 1px #d6dbe0; }
.mc-plate.light .mc { text-shadow: none; }

/* =====================================================================================
   PUBLIC SITE (round 12: the live palette with leaf green leading, gold for votes and the top spots, tulip red only
   on the main button; Barlow Condensed titles at modest sizes; flat panels; a faint dot grid and soft glows behind
   the top of each page; small purposeful motion in app.js)
   ===================================================================================== */
.public { --edge: #d3cfc3; --cta-edge: #9e1f33; --dot: #e1ded3; --glow-sun: rgba(255, 214, 150, 0.45); --glow-leaf: rgba(47, 143, 69, 0.08); --scrim: 246, 245, 240; }
:root[data-theme="dark"] .public { --edge: #070a09; --cta-edge: #7d1a29; --dot: #1b2420; --glow-sun: rgba(255, 214, 150, 0.06); --glow-leaf: rgba(63, 174, 90, 0.08); --scrim: 12, 17, 15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .public { --edge: #070a09; --cta-edge: #7d1a29; --dot: #1b2420; --glow-sun: rgba(255, 214, 150, 0.06); --glow-leaf: rgba(63, 174, 90, 0.08); --scrim: 12, 17, 15; } }

/* background: a dot grid and two soft glows behind the top of the page, fading out */
.bgfx { position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 65% at 12% 0%, var(--glow-sun), transparent 70%), radial-gradient(45% 55% at 92% 8%, var(--glow-leaf), transparent 70%), radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.public main, .public .site-footer, .public .site-notice { position: relative; z-index: 1; }

/* buttons: chunky, with a pressed edge like an in-game button */
.public .btn, .public button { box-shadow: 0 3px 0 var(--edge); transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s, box-shadow 0.1s; }
.public .btn:active, .public button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.public .btn-primary, .public button.primary { box-shadow: 0 3px 0 var(--cta-edge); }
.public .btn-primary:active, .public button.primary:active { box-shadow: 0 1px 0 var(--cta-edge); }
.public .btn-discord { box-shadow: 0 3px 0 #3a43a8; }
.public .btn-discord:active { box-shadow: 0 1px 0 #3a43a8; }
.public .btn-ghost { --b-bg: var(--surface); }
.public .icon-btn, .public .theme-toggle, .public button.link, .public .copy-addr, .public .vote-btn, .public .ins-tabs button, .public .filters button { box-shadow: none; }
.public .copy-addr:active, .public .icon-btn:active, .public button.link:active { transform: none; }
.public .header-tools .btn { box-shadow: none; }
.public .staff-box { border-color: var(--line-strong); }
.public .staff-box .card-head h3 .ico { color: var(--leaf-ink); }
.public .btn .arrow { transition: transform 0.2s ease; }
.public .btn:hover .arrow { transform: translateX(3px); }

/* header: a full-width bar; the current page gets a green underline */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.header-row { display: flex; align-items: center; gap: 10px 22px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-ico { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font: 700 22px/1 var(--font-display); }
.site-nav { display: flex; gap: 2px; flex: 1; }
.site-nav a { position: relative; font: 600 15.5px/1 var(--font-body); color: var(--text-2); padding: 11px 12px; border-radius: 8px; transition: color 0.15s, background-color 0.15s; }
.site-nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--leaf); transform: scaleX(0); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.header-tools .btn.sm { min-height: 38px; }
.discord-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; color: var(--text-2); border: 1px solid var(--line-strong); background: var(--surface); transition: color 0.15s, border-color 0.15s; }
.discord-link span { display: none; }
.discord-link:hover { color: #5865f2; border-color: #5865f2; text-decoration: none; }
.discord-link .ico { width: 20px; height: 20px; }
.user-menu { display: flex; align-items: center; gap: 2px; }
.user-menu form { margin: 0; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px 4px 4px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 14.5px; max-width: 190px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 6px; }
.user-chip > .ico { margin-left: 6px; }
.user-chip:hover { text-decoration: none; border-color: var(--text-2); }
.user-chip[aria-current] { border-color: var(--leaf); }
@media (max-width: 980px) {
  .header-row { flex-wrap: wrap; gap: 0 8px; padding-bottom: 0; min-height: 0; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 2px -12px 0; padding-bottom: 2px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .header-tools { margin-left: auto; }
  html { scroll-padding-top: 124px; }
}
@media (max-width: 520px) {
  .user-chip span { display: none; } .user-chip { padding: 4px; }
  .brand { gap: 8px; } .brand-ico { width: 30px; height: 30px; } .brand-name { font-size: 20px; }
  .header-tools { gap: 4px; }
  .site-nav { justify-content: space-between; gap: 0; }
  .site-nav a { font-size: 14.5px; padding: 11px 7px; }
  .site-nav a::after { left: 7px; right: 7px; }
}
@media (max-width: 400px) { .site-nav a { font-size: 14px; padding: 11px 5px; } .site-nav a::after { left: 5px; right: 5px; } }
@media (max-width: 370px) { .brand-name { display: none; } }

/* footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand img { border-radius: 7px; }
.footer-brand span { font: 700 20px/1 var(--font-display); color: var(--text); }
.footer-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-2); font-weight: 500; }

/* small shared pieces */
.live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: ping 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.public .card { box-shadow: none; }
.public .stat { box-shadow: none; }
.public .stat-v { font: 600 25px/1.1 var(--font-mono); letter-spacing: -0.01em; }
.public .stat-ico { border-radius: 10px; background: var(--leaf-soft); color: var(--leaf-ink); }
.public .chip { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); }
.public .copy-addr { --b-bg: var(--surface); border-style: dashed; }
.public .copy-addr:hover { border-style: solid; }
.public .copy-addr.copied { --b-bg: var(--leaf-soft); border-style: solid; }

/* who's playing: count, a meter, and their heads (names on hover) */
.players { display: grid; gap: 6px; min-width: 0; color: var(--text-2); font-size: 14px; }
.players-n { font: 500 13.5px/1.25 var(--font-mono); color: var(--text-2); }
.players-n b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.players .meter { height: 6px; }
.players.is-off .players-n { font-family: var(--font-body); color: var(--muted); }
.heads { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.head { position: relative; display: inline-flex; border-radius: 5px; }
.head img { display: block; width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; background: var(--surface-3); transition: transform 0.15s ease; }
.head:hover img, .head:focus-visible img { transform: translateY(-2px); }
.head::after { content: attr(data-name); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); background: var(--text); color: var(--bg); font: 500 12px/1 var(--font-body); padding: 5px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 6; }
.head:hover::after, .head:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.heads .more { font: 500 12.5px/22px var(--font-mono); color: var(--muted); padding: 0 4px; }

/* home: the packs' own banners slowly crossfading behind the hero, under a scrim that keeps the text calm */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.hero-art img.on { opacity: 1; transform: scale(1); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim), 0.96) 0%, rgba(var(--scrim), 0.9) 42%, rgba(var(--scrim), 0.55) 75%, rgba(var(--scrim), 0.4) 100%), linear-gradient(180deg, transparent 55%, rgb(var(--scrim)) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 600px; margin: 0 0 22px; }
.hero .actions { gap: 12px; margin: 0 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--text-2); font-size: 15px; }
.now { margin: 0; display: grid; gap: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.now-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.now-head .muted { font: 500 12.5px/1 var(--font-mono); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fig { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-width: 0; }
.fig b { display: block; font: 600 26px/1.05 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.fig span { font-size: 13.5px; color: var(--muted); }
.busy { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; color: var(--text); transition: background-color 0.15s; }
.busy:hover { background: var(--surface-3); text-decoration: none; }
.busy img, .busy .pack-art { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.busy b { display: block; font-size: 16px; font-weight: 600; }
.busy span { color: var(--muted); font-size: 14px; }
.party-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--text-2); margin-bottom: 6px; }
.party-line b { color: var(--text); font-family: var(--font-mono); }
.stats.home-stats { margin-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 30px; padding-bottom: 30px; }
  .hero-art::after { background: linear-gradient(180deg, rgba(var(--scrim), 0.9), rgba(var(--scrim), 0.82) 50%, rgb(var(--scrim)) 100%); }
}
@media (max-width: 520px) { .hero .actions .btn, .hero-meta .copy-addr { flex: 1 1 100%; } }
@media (max-width: 640px) { .stats.home-stats { grid-template-columns: minmax(0, 1fr); } .home-stats .stat { flex-direction: row; align-items: center; } }

/* server list: one row per server (home and the Servers page); the whole row opens the server page */
.board { padding: 0; overflow: visible; }
.board-head, .srow { display: grid; grid-template-columns: 52px minmax(0, 1.55fr) minmax(0, 0.7fr) minmax(0, 0.95fr) minmax(0, 1.5fr) 18px; gap: 16px; align-items: center; padding: 14px 18px; }
.board-head { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-block: 12px; border-bottom: 1px solid var(--line); }
.srow { position: relative; color: var(--text); transition: background-color 0.15s; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow:hover { background: var(--surface-2); }
.srow:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.srow .logo { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; transition: transform 0.2s ease; align-self: start; }
.srow .logo img, .srow .logo .pack-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.srow:hover .logo { transform: scale(1.05); }
.srow .sid { min-width: 0; }
.srow .nm { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.srow .nm h3 { margin: 0; font-size: 21px; }
.srow .nm a { color: var(--text); }
.srow .nm a:hover { text-decoration: none; }
.srow .nm a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.srow .nm .status { padding: 2px 9px 2px 7px; font-size: 12px; }
.srow .pk { color: var(--muted); font-size: 14px; margin-top: 1px; }
.srow .sum { color: var(--text-2); font-size: 14.5px; margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srow .ver { display: grid; gap: 1px; font: 500 13px/1.45 var(--font-mono); color: var(--text-2); }
.srow .ver span:first-child { color: var(--text); }
.srow .pl { min-width: 0; position: relative; z-index: 2; }
.srow .ac { display: flex; gap: 6px; align-items: center; min-width: 0; position: relative; z-index: 2; }
.srow .ac .copy-addr { flex: 0 1 auto; min-width: 0; }
.srow .ac .btn { flex: none; }
.srow .go { color: var(--muted); width: 18px; height: 18px; transition: transform 0.2s ease, color 0.15s; }
.srow:hover .go { color: var(--leaf-ink); transform: translateX(3px); }
.srow .sc-down, .srow .note { grid-column: 2 / -1; position: relative; z-index: 2; margin-top: -4px; }
.sc-down { display: flex; align-items: center; gap: 8px; color: var(--bad); background: var(--bad-bg); padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.sc-down a { color: inherit; text-decoration: underline; margin-left: auto; white-space: nowrap; }
.pack-art-empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--leaf-soft), var(--gold-soft)); width: 100%; height: 100%; }
.pack-art-empty img { width: 52%; max-width: 72px; height: auto; border-radius: 8px; }
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { --b-bg: var(--surface); --b-fg: var(--text-2); min-height: 34px; padding: 6px 14px; font-size: 14px; border-radius: 999px; }
.filters button[aria-pressed="true"] { --b-bg: var(--text); --b-fg: var(--bg); --b-bd: var(--text); }
.srow[hidden] { display: none; }
.board .empty { margin: 14px; }
@media (max-width: 960px) {
  .board-head { display: none; }
  .srow { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 10px 14px; padding: 14px; }
  .srow:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .srow .logo { width: 48px; height: 48px; }
  .srow .go { grid-column: 3; grid-row: 1; align-self: start; margin-top: 4px; }
  .srow .ver { grid-column: 2 / -1; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12.5px; margin-top: -4px; }
  .srow .pl { grid-column: 1 / -1; }
  .srow .ac { grid-column: 1 / -1; }
  .srow .ac .copy-addr { flex: 1 1 auto; }
  .srow .sc-down, .srow .note { grid-column: 1 / -1; margin-top: 0; }
}

/* server page: the pack's banner with its name over it, and a side panel with the essentials */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 14.5px; color: var(--muted); margin: 4px 0 14px; min-width: 0; }
.crumbs a { color: var(--text-2); font-weight: 600; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs .ico { width: 14px; height: 14px; }
.sv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 370px); gap: 20px; align-items: stretch; margin-bottom: 22px; }
.sv-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 260px; border: 1px solid var(--line); background: var(--surface-3) center / cover no-repeat; display: flex; align-items: flex-end; isolation: isolate; }
.sv-banner.plain { background-image: radial-gradient(60% 80% at 20% 10%, var(--leaf-soft), transparent), radial-gradient(50% 70% at 90% 30%, var(--gold-soft), transparent); }
.sv-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(12, 17, 15, 0.85)); }
.sv-banner.plain::after { background: linear-gradient(180deg, transparent 20%, rgba(12, 17, 15, 0.6)); }
.sv-id { display: flex; align-items: flex-end; gap: 16px; padding: 20px; color: #ecf1ec; min-width: 0; }
.sv-logo { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex: none; border: 2px solid rgba(255, 255, 255, 0.85); background: var(--surface); }
.sv-logo img, .sv-logo .pack-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-id > div { min-width: 0; }
.sv-id h1 { color: #fff; margin: 8px 0 2px; font-size: clamp(30px, 3.6vw, 42px); overflow-wrap: anywhere; }
.sv-id .by { color: #c6d1c9; font-size: 15px; }
.sh-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-side { margin: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.sv-side .actions { margin: 0; }
.sv-side .copy-addr { width: 100%; }
.sv-side .follow-wrap { justify-items: start; }
@media (max-width: 900px) { .sv-head { grid-template-columns: minmax(0, 1fr); } .sv-banner { min-height: 200px; } .sv-logo { width: 68px; height: 68px; } .sv-id { padding: 16px; gap: 12px; } }
.side-list { display: grid; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 9px; color: var(--text); transition: background-color 0.15s; }
.side-list a:hover { background: var(--surface-2); text-decoration: none; }
.side-list img, .side-list .pack-art { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; }
.side-list .sl-name { font-weight: 600; flex: 1; min-width: 0; }
.side-list small { color: var(--muted); font-weight: 400; font-family: var(--font-mono); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 600 15px/1 var(--font-mono); background: var(--leaf-soft); color: var(--leaf-ink); }

/* charts */
.chart { position: relative; margin: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart svg:focus-visible { box-shadow: var(--ring); }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font: 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--chart-wash); stroke: none; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .end { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart .end-label { fill: var(--text); font: 600 13px var(--font-mono); }
.chart .xhair { stroke: var(--line-strong); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.chart .xdot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.chart.hover .xhair, .chart.hover .xdot { opacity: 1; }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 7px 11px; font-size: 13px; white-space: nowrap; transform: translateX(-50%); z-index: 5; }
.chart .tip b { display: block; font: 600 16px/1.3 var(--font-mono); }
.chart .tip span { color: var(--muted); }
.chart-empty { padding: 50px 10px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.chart-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.chart-meta b { color: var(--text); font: 600 18px/1.25 var(--font-mono); display: block; font-variant-numeric: tabular-nums; }
.table-view { margin-top: 12px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.table-view .table { max-height: 260px; margin-top: 8px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; }
.seg a { padding: 5px 13px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* horizontal bars (per-server playtime) */
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 14.5px; }
.hbar .hb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hbar .hb-name small { color: var(--muted); margin-left: 6px; }
.hbar .hb-v { font: 500 13.5px/1 var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.hbar .hb-track { grid-column: 1 / -1; height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar .hb-track i { display: block; height: 100%; background: var(--leaf); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar.retired .hb-track i { background: var(--silver); }

/* page heads, section heads, leaderboards */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 22px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: clamp(32px, 3.6vw, 42px); }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 720px; font-size: 17.5px; }
.page-head .search { flex: 0 1 320px; }
.public .section { margin-top: 48px; }
.public .section-head h2 { font-size: clamp(26px, 2.8vw, 30px); }
.public .section-head p { color: var(--text-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.link-arrow .ico { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .ico { transform: translateX(3px); }
.card-head > a .ico { transition: transform 0.2s ease; }
.card-head > a:hover { text-decoration: none; }
.card-head > a:hover .ico { transform: translateX(3px); }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cat-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .cat-tabs { flex-wrap: wrap; } }
.cat-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 600; white-space: nowrap; flex: none; transition: background-color 0.15s, color 0.15s; }
.cat-tabs a .ico { width: 16px; height: 16px; color: var(--muted); }
.cat-tabs a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.cat-tabs a[aria-current] { background: var(--text); color: var(--surface); }
.cat-tabs a[aria-current] .ico { color: var(--surface); }
.scope { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.scope label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text-2); }
.scope select { width: auto; margin: 0; min-width: 200px; background: var(--surface); border-radius: 9px; padding: 8px 14px; }

.leaders { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.leader { position: relative; display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); overflow: hidden; isolation: isolate; transition: border-color 0.15s, transform 0.2s ease; }
.leader:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); }
.leader.l1 { padding: 18px 26px 0; align-items: flex-end; background: linear-gradient(135deg, var(--gold-soft), var(--surface) 70%); }
.leader.l1 .body-render { height: 210px; flex: none; }
.leader.l1 .ld-text { padding-bottom: 26px; min-width: 0; }
.leaders-side { display: grid; gap: 16px; }
.leader.l2, .leader.l3 { padding: 14px 18px; }
.leader.l2 { background: linear-gradient(135deg, color-mix(in srgb, var(--silver) 18%, var(--surface)), var(--surface) 70%); }
.leader.l3 { background: linear-gradient(135deg, color-mix(in srgb, var(--bronze) 16%, var(--surface)), var(--surface) 70%); }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font: 700 15px/1 var(--font-mono); color: #3a2a05; background: var(--gold); margin-bottom: 8px; }
.l2 .medal { background: var(--silver); color: #1b2128; width: 24px; height: 24px; font-size: 13px; margin-bottom: 4px; }
.l3 .medal { background: var(--bronze); color: #2a1606; width: 24px; height: 24px; font-size: 13px; margin-bottom: 4px; }
.ld-text { min-width: 0; }
.ld-name { font: 600 clamp(22px, 2.6vw, 28px)/1.1 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2 .ld-name, .l3 .ld-name { font-size: 20px; }
.ld-v { font: 600 clamp(24px, 3vw, 34px)/1.1 var(--font-mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.l2 .ld-v, .l3 .ld-v { font-size: 19px; margin-top: 2px; }
.ld-lead { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) {
  .leaders { grid-template-columns: minmax(0, 1fr); }
  .leader.l1 { padding: 14px 18px 0; }
  .leader.l1 .body-render { height: 150px; }
  .leader.l1 .ld-text { padding-bottom: 18px; }
  .bust-render { width: 72px; height: 72px; }
}

.lb-list { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lb-row { display: grid; grid-template-columns: 40px 36px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 12px; border-radius: 9px; transition: background-color 0.15s; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row:hover { background: var(--surface-2); }
.lb-row .rk { font: 600 14px/1 var(--font-mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.lb-row .avatar { width: 36px; height: 36px; transition: transform 0.15s ease; }
.lb-row:hover .avatar { transform: translateY(-2px); }
.lb-row .nm { font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .v { font: 500 14.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
.lb-row.me { background: var(--leaf-soft); }
.lb-row.r1 .rk, .lb-row.r2 .rk, .lb-row.r3 .rk { display: grid; place-items: center; justify-self: end; width: 24px; height: 24px; border-radius: 6px; font-size: 12.5px; }
.lb-row.r1 .rk { background: var(--gold); color: #3a2a05; }
.lb-row.r2 .rk { background: var(--silver); color: #1b2128; }
.lb-row.r3 .rk { background: var(--bronze); color: #2a1606; }
.card > .lb-list { border: 0; padding: 0; background: none; }
.lb-mini .lb-row { grid-template-columns: 26px 30px minmax(0, 1fr) auto; padding: 8px 4px; gap: 4px 10px; }
.lb-mini .lb-row .avatar { width: 30px; height: 30px; }
.lb-mini { padding: 0; border: 0; background: none; }
.lb-bar { grid-column: 3 / -1; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: 2px; background: var(--leaf); }
.lb-bar.gold i { background: var(--gold); }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }

/* player profile */
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.profile-skin { position: relative; background: radial-gradient(70% 70% at 50% 100%, var(--leaf-soft), transparent 75%), radial-gradient(var(--line-strong) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 28px 0; display: flex; align-items: flex-end; justify-content: center; min-width: 180px; overflow: hidden; }
.profile-skin .body-render { height: 220px; }
.profile-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-name h1 { margin: 0; font-size: clamp(32px, 4vw, 42px); overflow-wrap: anywhere; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.profile-facts span { display: inline-flex; gap: 6px; align-items: center; }
.profile-facts b { color: var(--text); font-weight: 600; }
.profile .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.profile .stat { padding: 12px 14px; background: var(--surface-2); }
.profile .stat-ico { width: 38px; height: 38px; }
.rank-progress { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.rank-progress .row { margin-bottom: 8px; font-size: 14.5px; }
.mstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ms > .ico { width: 22px; height: 22px; color: var(--leaf-ink); flex: none; }
.ms b { display: block; font: 600 18px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.ms span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) {
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .profile-skin .body-render { height: 180px; }
}
@media (max-width: 420px) { .mstats { grid-template-columns: minmax(0, 1fr); } }

/* ranks */
.rank-ladder { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rank-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s, transform 0.2s ease; }
.rank-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rank-card.mine { border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.rank-card .rc-step { position: absolute; top: 16px; right: 16px; font: 600 13px/1 var(--font-mono); color: var(--muted); }
.rank-card .rc-hours { font: 600 28px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.rank-card .rc-hours small { font: 500 15px/1 var(--font-body); color: var(--muted); margin-left: 4px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-2); }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .ico { width: 16px; height: 16px; color: var(--leaf-ink); }
.rank-card .rc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; }

/* vote */
.vote-sites { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); counter-reset: vs; }
.vote-site { counter-increment: vs; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; color: var(--text); box-shadow: 0 3px 0 var(--edge); transition: border-color 0.15s, transform 0.2s ease; }
.vote-site::before { content: counter(vs); flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font: 600 15px/1 var(--font-mono); color: var(--warn); background: var(--gold-soft); }
.vote-site:hover { border-color: var(--line-strong); text-decoration: none; transform: translateY(-2px); }
.vote-site:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--edge); }
.vote-site > div { min-width: 0; }
.vote-site b { font: 600 16.5px/1.25 var(--font-body); display: block; overflow-wrap: break-word; }
.vote-site small { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.vote-site .ico { margin-left: auto; color: var(--muted); transition: transform 0.2s ease, color 0.15s; }
.vote-site:hover .ico { color: var(--leaf-ink); transform: translate(2px, -2px); }
.party { display: grid; gap: 10px; }
.party-n { font: 600 40px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.party-n small { font-size: 20px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border: 0; }
.feed .avatar { width: 26px; height: 26px; border-radius: 6px; }
.feed .when { margin-left: auto; color: var(--muted); white-space: nowrap; font: 400 12.5px/1 var(--font-mono); }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; text-align: center; padding: 36px 30px; }
.auth-card .brand-ico { width: 72px; height: 72px; margin: 0 auto 16px; display: block; border-radius: 16px; }
.auth-card h1 { font-size: 34px; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-card .callout { text-align: left; }
.public .auth-wrap { min-height: 60vh; }

/* copying an address: a toast in the style of Minecraft's advancement pop-up */
.mc-toast { position: fixed; top: 78px; right: 16px; z-index: 70; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: center; width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 10px; background: #1f2421; color: #eceeed; border: 2px solid #3a403d; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transform: translateX(calc(100% + 40px)); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.mc-toast.show { transform: translateX(0); }
@media (max-width: 980px) { .mc-toast { top: 112px; } }
.mc-toast img { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 6px; }
.mc-toast b { font: 600 13px/1.2 var(--font-mono); color: #f2bf4a; }
.mc-toast span { font-size: 15px; overflow-wrap: anywhere; }

/* page changes cross-fade (same-origin navigations, where the browser supports it); the header holds still */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }

/* small screens */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .stat-ico { width: 34px; height: 34px; }
  .stat-ico .ico { width: 17px; height: 17px; }
  .stat-v { font-size: 22px; }
  .page-head .search { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .status.ok .dot, .live::before { animation: none; }
  .hero-art img { transition: none; transform: none; }
  .srow:hover .logo, .leader:hover, .rank-card:hover, .vote-site:hover, .lb-row:hover .avatar, .head:hover img { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =====================================================================================
   ADMIN DASHBOARD
   ===================================================================================== */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 901px) { .shell { background: linear-gradient(90deg, var(--surface) 247px, var(--line) 247px, var(--line) 248px, transparent 248px); } }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; overflow-y: auto; }
.sidebar .brand { padding: 4px 8px 20px; }
.sidebar .brand-ico { width: 34px; height: 34px; }
.sidebar .brand-name { display: flex; flex-direction: column; font-size: 20px; line-height: 1; }
.sidebar .brand-name small { font: 600 11px/1.4 var(--font-body); color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.side-nav { display: grid; gap: 18px; flex: 1; align-content: start; }
.side-label { font: 600 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.side-group { display: grid; gap: 2px; }
.side-group a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.side-group a .ico { color: var(--muted); }
.side-group a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.side-group a[aria-current] { background: var(--tulip-soft); color: var(--tulip-ink); }
.side-group a[aria-current] .ico { color: var(--tulip-ink); }
.side-foot { display: flex; align-items: center; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.side-foot form { margin: 0; }
.side-user { flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 14px; color: var(--text-2); }
.side-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .ico { color: var(--muted); }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 28px; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-height: 70px; }
.page-title { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-main { padding: 24px 28px 56px; max-width: 1320px; width: 100%; }
.as-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); color: var(--text); min-width: 0; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.as-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.as-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.as-top .pack-art { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; flex: none; }
.as-top .as-name { flex: 1; min-width: 0; }
.as-top h3 { margin: 0; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-top small { color: var(--muted); }
.as-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.as-meta div { background: var(--surface-2); border-radius: 11px; padding: 7px 10px; min-width: 0; }
.as-meta span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.as-meta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.as-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.ram-bar { display: grid; gap: 8px; }
.ram-bar .row { font-size: 14px; }
.server-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.server-head .pack-art { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; }
.server-head .sh-main { flex: 1; min-width: 220px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.admin .card h2 { font-size: 21px; }

/* =====================================================================================
   ROUND 4: defaults, MOTD, Discord, suggestions
   ===================================================================================== */
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.motd-preview { display: flex; gap: 12px; align-items: center; background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23262626'/%3E%3Crect width='4' height='4' fill='%23222'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23222'/%3E%3C/svg%3E") repeat; border: 1px solid #000; border-radius: 6px; padding: 8px 10px; color: #fff; max-width: 560px; margin: 12px 0 4px; }
.motd-preview img { border-radius: 3px; flex: none; }
.motd-preview .mp-text { min-width: 0; font: 15px/1.35 var(--font-mc); }
.motd-preview .mp-name { color: #fff; }
.motd-preview .mp-line { color: #aaa; white-space: pre; overflow: hidden; text-overflow: ellipsis; min-height: 1.35em; }
.motd-preview .mc { font-family: var(--font-mc); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.motd-preview.off { color: #bbb; font-size: 14px; }
.set-card .set-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf-ink); flex: none; }
.set-card .set-ico .ico { width: 22px; height: 22px; }
.set-card .as-top > .ico { color: var(--muted); }
.srv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 500; }
.srv-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.srv-chip:hover { text-decoration: none; color: var(--text); }
.as-card .srv-chip { pointer-events: none; }
details.inline-menu { display: inline-block; position: relative; vertical-align: middle; }
details.inline-menu > summary { list-style: none; cursor: pointer; }
details.inline-menu > summary::-webkit-details-marker { display: none; }
details.inline-menu[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 14px; text-align: left; }
.rules { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.rules textarea { font-family: var(--font-mono); font-size: 13px; }
.rule-form .actions { margin-top: 6px; }
.df-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.df-row { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.df-row:last-child { border-bottom: 0; }
.df-row .check { align-items: flex-start; }
.df-row .check input { margin-top: 3px; }
.cfg-edit { margin: 8px 0 0 28px; }
.cfg-edit summary { cursor: pointer; color: var(--link); font-size: 14px; }
.cfg-edit textarea { font-family: var(--font-mono); font-size: 12.5px; margin-top: 8px; }
.role-pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: #5865f2; color: #fff; font-size: 13px; font-weight: 600; }
.dp-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dp-embed { position: relative; }
.dp-thumb { float: right; width: 72px; height: 72px; border-radius: 4px; object-fit: cover; margin: 0 0 8px 12px; }
.dp-image { display: block; max-width: 100%; border-radius: 4px; margin-top: 10px; }
.discord-preview .dp-title { color: #00a8fc; }

/* suggestions */
.sg-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin: 0 0 18px; }
.sg-list { display: grid; gap: 12px; }
.sg-card { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.sg-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.sg-main { display: flex; gap: 14px; flex: 1; min-width: 0; color: var(--text); }
.sg-main:hover { text-decoration: none; }
.sg-main:hover h3 { color: var(--tulip-ink); }
.sg-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.sg-logo.lg { width: 64px; height: 64px; float: right; margin: 0 0 8px 12px; }
.sg-text { min-width: 0; flex: 1; }
.sg-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-title h3 { margin: 0; font-size: 19px; }
.sg-snippet { color: var(--text-2); font-size: 14.5px; margin: 6px 0 8px; overflow-wrap: anywhere; }
.sg-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sg-meta .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.vote-form { margin: 0; }
.vote-btn { --b-bg: var(--surface-2); --b-bd: var(--line); flex-direction: column; gap: 0; width: 58px; min-height: 64px; padding: 6px 0; border-radius: 16px; color: var(--text-2); }
.vote-btn .i-up { transform: rotate(-90deg); width: 20px; height: 20px; }
.vote-btn b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text); }
.vote-btn.on { --b-bg: var(--tulip-soft); --b-bd: var(--tulip); color: var(--tulip-ink); }
.vote-btn.on b { color: var(--tulip-ink); }
a.vote-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; }
.sg-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.sg-head h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); }
.sg-body { color: var(--text); overflow-wrap: anywhere; }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comments li { display: flex; gap: 12px; align-items: flex-start; }
.comments li > div { min-width: 0; flex: 1; }
.comments .cm-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.comments .cm-body { color: var(--text-2); overflow-wrap: anywhere; }
.comments li.staff .cm-body { color: var(--text); }
.comments li.is-hidden { opacity: 0.5; }
.comments .cm-head .link { margin-left: auto; }
.avatar-blank { display: inline-grid; place-items: center; color: var(--muted); }
@media (max-width: 640px) {
  .sg-card { padding: 12px; gap: 10px; }
  .sg-logo { width: 44px; height: 44px; }
  .vote-btn { width: 50px; min-height: 56px; }
}

/* ---------- round 5: staff tools, CurseForge picker */
.staff-box { border-color: color-mix(in srgb, var(--tulip) 35%, var(--line)); }
.staff-box .card-head h3 .ico { color: var(--tulip-ink); }
.dash-link { --b-bg: var(--leaf-soft); --b-fg: var(--leaf-ink); --b-bd: transparent; }
.dash-link:hover { border-color: transparent; filter: brightness(0.97); }
@media (max-width: 520px) { .dash-link span { display: none; } .dash-link { width: 36px; padding: 0; } }
form.inline-btn { display: inline; margin: 0 0 0 auto; }
.src-seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.src-seg label { display: inline-flex; margin: 0; cursor: pointer; }
.src-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.src-seg span { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.src-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.src-seg input:focus-visible + span { box-shadow: var(--ring); }
.cf-search { display: flex; gap: 8px; align-items: center; }
.cf-search .search { flex: 1; }
.cf-results { display: grid; gap: 8px; }
.cf-pick { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; font-weight: 400; }
.cf-pick:hover { border-color: var(--line-strong); }
.cf-pick:has(input:checked) { border-color: var(--tulip); background: var(--tulip-soft); }
.cf-pick input { flex: none; }
.cf-pick img, .cf-pick .cf-noimg { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; background: var(--surface-3); }
.cf-text { display: grid; gap: 1px; min-width: 0; }
.cf-text b { color: var(--text); }
.cf-text small { color: var(--muted); }
.cf-sum { color: var(--text-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================================
   ROUND 6: one site (account + linking, access page, site-wide notice)
   ===================================================================================== */
.site-notice { padding-top: 12px; }
.site-notice .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-notice .wrap > span { flex: 1 1 260px; }
.site-notice .wrap { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 12px 10px 16px; width: calc(100% - 32px); max-width: 1168px; }
.site-notice .btn { flex: none; }
.side-site { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; margin-top: 14px; }
.side-site .ico { color: var(--muted); }
.side-site:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
a.side-user { color: var(--text-2); border-radius: 999px; padding: 6px 8px; }
a.side-user:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

.account .account-mc p { margin-top: 0; }
.account .unlocks { display: grid; gap: 10px; margin: 0 0 24px; }
.unlocks li { display: flex; gap: 10px; align-items: flex-start; }
.unlocks .ico { color: var(--leaf-ink); margin-top: 2px; flex: none; }
.account .steps { margin-bottom: 20px; }
.link-form { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.link-form label { font-weight: 600; }
.link-form .inline, .id-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-form .inline input, .id-add input { flex: 1 1 200px; width: auto; margin: 0; }
.code-input { font: 600 20px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.18em; text-transform: uppercase; }
.code-input::placeholder { letter-spacing: 0.04em; text-transform: none; font-weight: 400; font-size: 16px; }
.acct-id { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.acct-id .bust-render { width: 72px; height: 72px; flex: none; }
.acct-name { font: 600 22px/1.2 var(--font-display); }
.relink summary { cursor: pointer; color: var(--link); font-weight: 500; margin-bottom: 10px; }

.role-pick { display: grid; gap: 8px; }
.role-pick .search input { min-height: 38px; }
.role-list { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.role-opt { padding: 5px 8px; border-radius: 10px; font-weight: 500; }
.role-opt:hover { background: var(--surface-3); }
.role-opt:has(input:checked) { background: var(--tulip-soft); }
.role-opt[hidden] { display: none; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.id-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.id-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 4px 4px 12px; border-radius: 18px; background: var(--surface-3); font-size: 14px; max-width: 100%; min-width: 0; }
.id-chip code { overflow-wrap: anywhere; }
.id-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-chip code { color: var(--muted); }
.id-chip.owner { padding-right: 12px; background: var(--tulip-soft); color: var(--tulip-ink); }
.id-chip.new { outline: 2px dashed var(--line-strong); outline-offset: -2px; }
.icon-btn.sm { min-height: 28px; width: 28px; }
.icon-btn.sm .ico { width: 15px; height: 15px; }
.rank-pick { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.rank-pick .check { gap: 10px; }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); width: fit-content; max-width: 100%; }

/* round 7: unfinished servers (creation stopped at a step, progress kept) */
.creation-card { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 12%, transparent), var(--shadow); }
.creation-card .card-head h2 { display: flex; align-items: center; gap: 10px; }
.creation-card .card-head h2 .ico { color: var(--warn); }
.creation-card .console { max-height: 320px; }

/* round 8: address prefix field (input + fixed domain) */
.addr-field { display: flex; align-items: stretch; margin-top: 6px; }
.addr-field input { margin: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; flex: 1 1 auto; }
.addr-field > span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 12px 12px 0; background: var(--surface-3); color: var(--text-2); font-size: 14px; white-space: nowrap; }
.push-list .df-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.push-list .df-row .num { white-space: nowrap; }

/* round 9: console command line */
.console-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #0d1210; border: 1px solid #26322c; }
.console-form .console-prompt { color: #7fd894; font: 600 14px/1 var(--font-mono); }
.console-form input { flex: 1; min-width: 0; margin: 0; background: transparent; border: 0; color: #e6ede8; font: 14px/1.4 var(--font-mono); padding: 6px 2px; }
.console-form input:focus { outline: none; }
.console-form:focus-within { border-color: #3fae5a; }

/* round 9: rank commands */
.perks .perk-cmds { align-items: flex-start; }
.perks .perk-cmds span { display: flex; flex-wrap: wrap; gap: 4px; }
.perks .perk-cmds code { font-size: 12px; padding: 1px 6px; }

/* round 9: in-place leaderboard swaps */
#lb-view { transition: opacity 0.15s ease; }
#lb-view.is-loading, #pop-chart.is-loading { opacity: 0.55; pointer-events: none; }
#pop-chart { transition: opacity 0.15s ease; }

/* round 9: Microsoft sign-in */
.auth-buttons { display: grid; gap: 10px; justify-items: center; }
.btn-microsoft { --b-bg: #ffffff; --b-fg: #1f1f1f; --b-bd: #c8c8c8; }
.btn-microsoft:hover { --b-bg: #f3f3f3; }
:root[data-theme="dark"] .btn-microsoft { --b-bg: #2b2b2b; --b-fg: #ffffff; --b-bd: #4a4a4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-microsoft { --b-bg: #2b2b2b; --b-fg: #ffffff; --b-bd: #4a4a4a; } }
.link-ms { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.or-line { text-align: center; margin: 4px 0 14px; }

/* round 9: narrow-screen fixes (long addresses, server card footers) */
.steps li > div { min-width: 0; flex: 1; }
.steps .copy-addr, aside .copy-addr { height: auto; text-align: left; }
.steps .copy-addr span, aside .copy-addr span { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.sc-foot { grid-template-columns: minmax(0, 1fr); }
.sc-foot > * { min-width: 0; }
@media (max-width: 1180px) { .dash-link span { display: none; } .dash-link { width: 38px; padding: 0; } .user-chip { max-width: 150px; } }
.card p a, .sg-body a, .cm-body a { overflow-wrap: anywhere; }

/* round 10: charts with units, limit lines, small multiples */
.chart .limit { stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart.mini .tick { font-size: 11px; }
.chart.mini .tip { padding: 5px 9px; font-size: 12px; }
.chart.mini .tip b { font-size: 14px; }
.chart-empty.mini { padding: 30px 8px; font-size: 13px; }
[data-swap] { transition: opacity 0.15s ease; }
[data-swap].is-loading { opacity: 0.55; pointer-events: none; }

/* round 10: performance (dashboard front page and server pages) */
.perf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 16px; }
.perf-facts > div { background: var(--surface-2); border-radius: var(--r); padding: 10px 14px; min-width: 0; }
.perf-facts span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.perf-facts b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.perf-facts small { color: var(--muted); }
.perf-host { gap: 18px 22px; margin-bottom: 6px; }
.perf-chart { min-width: 0; }
.perf-title { margin: 0 0 6px; font: 650 15px/1.3 var(--font-body); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.perf-servers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.perf-servers-head h3 { margin: 0; }
.perf-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.perf-cell { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 8px; background: var(--surface); min-width: 0; }
.pc-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 4px; }
.pc-head .pack-art { width: 24px; height: 24px; border-radius: 7px; flex: none; object-fit: cover; }
.pc-head a { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-now { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.pc-now .muted { font-weight: 400; }
.as-meta b .muted { font-weight: 400; }

/* round 10: uptime (one bar per day) */
.uptime .up-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.up-pct { font-size: 26px; font-variant-numeric: tabular-nums; }
.up-head span { color: var(--muted); font-size: 14px; }
.up-bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.up-b { flex: 1 1 0; min-width: 3px; border-radius: 3px; background: var(--line-strong); position: relative; }
.up-b.ok { background: var(--leaf); }
.up-b.warn { background: var(--gold); }
.up-b.bad { background: var(--tulip); }
.up-b.none { background: var(--surface-3); }
.up-bars .up-b:hover, .up-bars .up-b:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.up-bars .up-b[data-tip]:hover::after, .up-bars .up-b[data-tip]:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; z-index: 5; pointer-events: none; }
.up-bars .up-b:nth-child(-n + 6):hover::after, .up-bars .up-b:nth-child(-n + 6):focus::after { left: 0; transform: none; }
.up-bars .up-b:nth-last-child(-n + 6):hover::after, .up-bars .up-b:nth-last-child(-n + 6):focus::after { left: auto; right: 0; transform: none; }
.up-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 6px 0 8px; }
.up-legend { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.up-legend span { display: inline-flex; align-items: center; gap: 5px; }
.up-legend .up-b { display: inline-block; width: 10px; height: 10px; flex: none; }

/* round 10: crash reports, maintenance, schedules */
.nowrap { white-space: nowrap; }
.crash-ex { overflow-wrap: anywhere; margin-top: 2px; }
pre.crash-text { max-height: 70vh; font-size: 12px; }
pre.crash-ex-full { max-height: 220px; }
.maint.is-on { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface)); }
.maint.is-on h2 .ico { color: var(--warn); }
.badge .ico { width: 13px; height: 13px; }
.callout.small { font-size: 14px; padding: 10px 14px; }
.sched .card-head { margin-bottom: 10px; }
.sched-name { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.sched-name .pack-art { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; }
.sched-name h2 { margin: 0; }
.sched-cols { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sched-cols fieldset { margin: 0; display: grid; gap: 10px; align-content: start; }
.sched-cols legend { display: inline-flex; align-items: center; gap: 6px; }
.sched-cols legend .ico { width: 16px; height: 16px; color: var(--muted); }
.sched-cols .switch { border-top: 0; padding-top: 0; }
.sched .actions { margin-top: 12px; }
@media (max-width: 860px) { .sched-cols { grid-template-columns: minmax(0, 1fr); } }
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.days-pick .day { position: relative; cursor: pointer; }
.days-pick .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days-pick .day span { display: inline-block; min-width: 44px; text-align: center; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; }
.days-pick .day input:checked + span { background: var(--text); color: var(--surface); border-color: var(--text); }
.days-pick .day input:focus-visible + span { box-shadow: var(--ring); }

/* round 10: Access page permissions */
.grant-list { display: grid; gap: 8px; margin-bottom: 12px; }
.grant { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.grant[open] { border-color: var(--line-strong); }
.grant > summary { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.grant > summary::-webkit-details-marker { display: none; }
.g-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.g-name .ico { width: 16px; height: 16px; color: var(--muted); }
.g-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-body { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.g-perms { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 10px; }
.g-perms fieldset { margin: 0; }
.g-perms .check { align-items: flex-start; }
.g-perms .check input { margin-top: 3px; }
.g-perms .check > span { display: flex; flex-direction: column; }
.g-perms .check small { color: var(--muted); font-weight: 400; font-size: 12px; }
.g-quick { margin: 10px 0 0; }
.g-quick .link { font-size: 13px; }
.grant-add { margin-top: 4px; }
.grant-add select, .grant-add input { flex: 1 1 220px; }
.perm-legend { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.perm-legend h3 { font-size: 15px; margin: 0 0 4px; }
.perm-legend li { margin-bottom: 4px; }
@media (max-width: 640px) { .grant > summary { grid-template-columns: minmax(0, 1fr) auto; } .g-sum { grid-column: 1 / -1; grid-row: 2; white-space: normal; } }

/* round 10: Follow this pack */
.follow-wrap { display: grid; gap: 4px; justify-items: end; }
.follow .i-on { display: none; }
.follow.is-on { --b-bg: var(--ok-bg); --b-fg: var(--ok); --b-bd: transparent; }
.follow.is-on .i-on { display: inline-block; }
.follow.is-on .i-off { display: none; }
.follow-msg:empty { display: none; }
.follow-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.follow-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.follow-list li:first-child { border-top: 0; }
.follow-list .pack-art { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.follow-list a { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toggle { position: relative; flex: none; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; margin: 0; border-radius: 99px; background: var(--line-strong); border: 0; position: relative; cursor: pointer; transition: background 0.15s ease; padding: 0; display: block; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease; }
.toggle input:checked { background: var(--leaf); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:focus-visible { box-shadow: var(--ring); }
.toggle input:disabled { opacity: 0.6; }
@media (max-width: 760px) { .follow-wrap { justify-items: start; } }
@media (max-width: 420px) { .perf-servers-head .seg a, .card-head .seg a { padding: 5px 9px; font-size: 13px; } }
.seg { max-width: 100%; flex-wrap: wrap; }
.up-b.none { background: var(--line); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 560px) { .perf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .perf-facts > div { padding: 8px 10px; } .perf-facts b { font-size: 18px; } .perf-facts span { font-size: 10.5px; letter-spacing: 0.04em; } .perf-facts small { font-size: 11px; display: block; line-height: 1.3; } }

/* round 10: server pages with tabs (Console · Updates · Settings · History) */
.srv-bar { padding-bottom: 0; }
.sb-top { display: flex; gap: 16px; align-items: center; min-width: 0; }
.sb-top > .pack-art { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; }
.sb-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.sb-facts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.sb-facts .copy-addr { max-width: 100%; }
.sb-details { margin-top: 12px; }
.sb-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; width: fit-content; }
.sb-details[open] > summary { margin-bottom: 10px; }
.srv-tabs { display: flex; gap: 2px; margin: 14px -22px 0; padding: 0 14px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.srv-tabs::-webkit-scrollbar { display: none; }
.srv-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 13px 14px 11px; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.srv-tabs a:hover { color: var(--text); text-decoration: none; }
.srv-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--tulip); }
.srv-tabs .ico { width: 17px; height: 17px; }

/* console: formatted lines on the dark panel */
.console-card .card-head { margin-bottom: 12px; }
.console-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.console-tools .search input { padding-top: 7px; padding-bottom: 7px; font-size: 14px; width: 220px; max-width: 100%; }
.console-tools .check { font-weight: 500; color: var(--text-2); }
.console-wrap { position: relative; }
div.console { background: #0c110f; color: #d2e2d8; padding: 12px 10px; border-radius: var(--r); height: min(62vh, 620px); min-height: 280px; overflow: auto; border: 1px solid #1e2823; font: 12.5px/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
div.console:focus-visible { box-shadow: var(--ring); outline: none; }
.console .cl { padding: 0 4px; border-radius: 4px; }
.console .cl:hover { background: rgba(255, 255, 255, 0.045); }
.console .cl[hidden], .console.hide-relay .cl-relay { display: none; }
.console .mc { font-family: inherit; font-weight: inherit; text-shadow: none; }
.console .c-time { color: #66756d; }
.console .c-lv { color: #6f7f77; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.console .c-src { color: #5fb39f; }
.console .cl-warn .c-lv { color: #f2bf4a; }
.console .cl-warn .c-msg { color: #f4d58a; }
.console .cl-error .c-lv, .console .cl-fatal .c-lv { color: #ff8b9a; }
.console .cl-error .c-msg, .console .cl-fatal .c-msg { color: #ffb7c0; }
.console .cl-debug, .console .cl-trace { opacity: 0.75; }
.console .cl-trace { color: #e8a5ae; padding-left: 3ch; }
.console .cl-chat .c-msg { color: #f3f7f4; }
.console .cl-chat .c-src { color: #8cc0f2; }
.console .cl-join .c-msg { color: #7fd894; }
.console .cl-leave .c-msg { color: #a3b1a9; }
.console .cl-done .c-msg { color: #7fd894; font-weight: 700; }
.console .cl-daemon { color: #f2bf4a; }
.console .cl-cmd { color: #b5ecc3; background: rgba(127, 216, 148, 0.07); }
.console .c-prompt { color: #7fd894; font-weight: 700; }
.console .c-by { color: #66756d; font-size: 11px; }
.console-jump { position: absolute; right: 16px; bottom: 14px; --b-bg: #1e2823; --b-fg: #d2e2d8; --b-bd: #34433b; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.console-jump .ico { width: 15px; height: 15px; }

/* power row, then the live numbers */
.power-card { padding: 14px 18px; }
.power-row { display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.power-card .msg:empty { display: none; }
.power-card details.inline-menu > summary.btn { display: inline-flex; }
.maint-menu[open] > form { width: 320px; }
details.inline-menu[open] > form { max-width: calc(100vw - 40px); }
.live-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 18px; }
.live-stats .stat { min-height: 92px; }
.live-stats .stat-v { font-size: 22px; white-space: nowrap; }
.live-stats .stat-v .muted { font-size: 15px; font-weight: 500; }
.live-stats .meter { margin-top: 7px; width: 100%; }
.live-stats .stat > div { min-width: 0; flex: 1; }
.live-stats[data-state="online"] .ls-state .stat-ico { background: var(--ok-bg); color: var(--ok); }
.live-stats[data-state="down"] .ls-state .stat-ico, .live-stats[data-state="offline"] .ls-state .stat-ico { background: var(--bad-bg); color: var(--bad); }
.live-stats[data-state="maintenance"] .ls-state .stat-ico, .live-stats[data-state="starting"] .ls-state .stat-ico { background: var(--warn-bg); color: var(--warn); }

/* Updates tab */
.tool-groups { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 16px; }
.tool-groups h3 { margin: 0; font-size: 16px; }
.tool-groups .help { margin: 2px 0 10px; }

/* Settings tab: section menu beside the sections */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.settings-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.settings-nav a:hover { background: var(--surface-3); text-decoration: none; }
.settings-section { scroll-margin-top: 90px; }
.settings-section > .card, .settings-section > section { margin-bottom: 18px; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; }
}
@media (max-width: 560px) {
  .sb-top > .pack-art { width: 46px; height: 46px; border-radius: 13px; }
  .srv-tabs a { padding: 12px 10px 10px; font-size: 14px; }
  .srv-tabs a .ico { display: none; }
  div.console { height: 60vh; font-size: 11.5px; }
  .console-tools .search input { width: 100%; }
  .console-tools .search { flex: 1 1 100%; }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stats .stat-v { font-size: 18px; }
}
.more-rows { margin-top: 10px; }
.more-rows > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.live-stats .stat-v, .live-stats .stat-s { overflow: hidden; text-overflow: ellipsis; }
div.console { overflow-anchor: none; }
.live-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.power-row .maint-menu[open] { flex-basis: 100%; }
.power-row .maint-menu[open] > form { position: static; width: auto; max-width: 560px; margin-top: 10px; box-shadow: none; background: var(--surface-2); }
.power-row details.inline-menu:not(.maint-menu)[open] > form { right: auto; left: 0; }
.console-jump[hidden] { display: none; }
.live-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* round 10: profile install window (launcher tabs, Download Profile at the bottom) */
.install-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.install-dialog::backdrop { background: rgba(12, 17, 15, 0.55); backdrop-filter: blur(3px); }
.install-dialog[open] { animation: ins-in 0.16s ease-out; }
@keyframes ins-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.ins-close { position: absolute; top: 14px; right: 14px; }
.ins-head { display: flex; gap: 14px; align-items: center; margin: 0 36px 16px 0; }
.ins-head .pack-art { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.ins-head h2 { margin: 0; font-size: 24px; }
.ins-head p { margin: 2px 0 0; }
.ins-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 999px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ins-tabs::-webkit-scrollbar { display: none; }
.ins-tabs [role="tab"] { flex: 1 0 auto; border: 0; background: transparent; color: var(--text-2); font: 600 14px/1 var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: none; }
.ins-tabs [role="tab"]:hover { color: var(--text); }
.ins-tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.ins-tabs [role="tab"]:focus-visible { box-shadow: var(--ring); outline: none; }
.ins-steps { margin: 0 0 10px; }
.ins-mem { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.ins-mem .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ins-join { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ins-join .copy-addr { max-width: 100%; }
.ins-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ins-download { width: 100%; justify-content: center; }
.ins-size { font-weight: 500; opacity: 0.8; font-size: 14px; }
.install-page { max-width: 720px; margin: 0 auto; }
@media (max-width: 560px) {
  .install-dialog { padding: 20px 16px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .ins-head h2 { font-size: 20px; }
  .ins-tabs [role="tab"] { padding: 8px 11px; font-size: 13px; }
}

/* round 11: power buttons follow their job in place; job page tabs; Alerts page */
.msg.job-track { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-radius: 10px; margin-top: 10px; background: var(--surface-2); }
.msg.job-track.ok { background: var(--ok-bg); }
.msg.job-track.bad { background: var(--bad-bg); }
.msg.job-track [data-jt-step] { color: var(--text-2); overflow-wrap: anywhere; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--leaf); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.ico-back { transform: rotate(180deg); }
.btn[hidden] { display: none; }
[data-job-tabs] a { cursor: pointer; }
[data-pane][hidden] { display: none; }
pre.joblog { max-height: min(62vh, 620px); }
.dest-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-top: 12px; }
.dest-opts > label:not(.check) { flex: 0 1 230px; }
.dest-opts > .check { padding-bottom: 10px; }
.dest-test { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; flex-wrap: wrap; }
.dest-test .msg.ok, .dest-test .msg.bad { margin-top: 0; padding: 4px 10px; }
.dest-add h3 { margin: 0 0 10px; font-size: 16px; }
.dest-add-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.dest-add-row > label { flex: 1 1 220px; }
.dest-add-row > label[hidden] { display: none; }
.ev-name .badge { margin-left: 4px; padding: 1px 8px; font-size: 11px; }

/* round 11: Rules & Policies page (taken over from the old site) */
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.rules-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.rules-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 4px 4px 0; }
.rules-toc summary { font: 600 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer; padding: 8px 0 10px; list-style: none; }
.rules-toc summary::-webkit-details-marker { display: none; }
.rules-toc nav { display: grid; gap: 1px; }
.rules-toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.rules-toc a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.rules-toc a.toc-part { font-weight: 650; color: var(--text); margin-top: 10px; }
.rules-toc a.toc-part:first-child { margin-top: 0; }
.rules-text { padding: 30px 34px; line-height: 1.65; color: var(--text-2); }
.rules-text > p:first-child { font-size: 17px; color: var(--text); margin-top: 0; }
.rules-text h2 { font: 650 26px/1.2 var(--font-display); color: var(--text); margin: 34px 0 6px; }
.rules-text .rule { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.rules-text .rule h3 { font-size: 17px; color: var(--text); margin: 0 0 6px; }
.rules-text .rule p { margin: 0 0 8px; }
.rules-text hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
textarea.mono-text { font: 13.5px/1.55 var(--font-mono); }
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rules-toc { position: static; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .rules-toc summary { padding: 14px 16px; }
  .rules-toc nav { padding: 0 8px 10px; }
  .rules-text { padding: 20px 18px; }
  .rules-text h2 { font-size: 22px; }
}

/* round 11: the light/dark switch floats in a corner (the header was getting cramped) */
.theme-toggle.theme-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; width: 46px; min-height: 46px; --b-bg: var(--surface); --b-bd: var(--line); color: var(--text-2); box-shadow: var(--shadow-lg); }
.theme-toggle.theme-fab:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle.theme-fab .ico { width: 20px; height: 20px; }
@media print { .theme-fab { display: none; } }

/* round 11: vote rewards (vote party rolls, the vote crate per server) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rewards-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.rewards-layout > :only-child { grid-column: 1 / -1; }
.party-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.party-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.pr-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.pr-ico .ico { width: 20px; height: 20px; }
.pr-what { font-weight: 600; color: var(--text); }
.pr-chance { font-size: 13px; color: var(--muted); }
.pr-chance.always { color: var(--leaf); font-weight: 600; }
.crate-head { align-items: center; }
.crate-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crate-tools select { width: auto; margin: 0; padding: 7px 12px; font-size: 14px; border-radius: 999px; max-width: 100%; }
.crate-tools .search input { padding-top: 7px; padding-bottom: 7px; font-size: 14px; width: 190px; max-width: 100%; }
.crate-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: -4px 0 14px; }
.crate-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.crate-legend .lg i { width: 10px; height: 10px; border-radius: 3px; background: var(--tier); }
.t-common { --tier: var(--silver, #8a968f); }
.t-uncommon { --tier: var(--leaf); }
.t-rare { --tier: var(--sky); }
.t-epic { --tier: #a066e8; }
.reward-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.reward { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-left: 3px solid var(--tier); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.reward[hidden] { display: none; }
.ri-wrap { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--tier) 14%, var(--surface)); overflow: hidden; }
.ri { width: 32px; height: 32px; object-fit: cover; object-position: top; image-rendering: pixelated; }
.ri-none { display: grid; place-items: center; font: 700 18px/1 var(--font-display); color: var(--tier); }
.reward.ench .ri-wrap { box-shadow: inset 0 0 0 1px color-mix(in srgb, #a066e8 50%, transparent), 0 0 12px color-mix(in srgb, #a066e8 35%, transparent); }
.rn { grid-column: 2; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.rn small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.rq { grid-column: 2; grid-row: 2; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc { grid-column: 3; grid-row: 1 / 3; font: 700 14px/1 var(--font-body); color: var(--tier); font-variant-numeric: tabular-nums; }
.t-common .rc { color: var(--text-2); }
.crate-count { margin: 12px 0 0; }
@media (max-width: 900px) { .rewards-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .reward { grid-template-columns: 36px minmax(0, 1fr); padding: 8px; } .ri-wrap { width: 36px; height: 36px; } .ri { width: 28px; height: 28px; } .rc { grid-column: 2; grid-row: auto; font-size: 13px; margin-top: 4px; } .crate-tools, .crate-tools select, .crate-tools .search { width: 100%; } .crate-tools .search input { width: 100%; } }

/* round 13: the store, thank-you page, Menace title designer */
.btn-buy { --b-bg: var(--leaf); --b-fg: #fff; --b-bd: transparent; }
.btn-buy:hover { --b-bg: var(--leaf-ink); border-color: transparent; }
.public .btn-buy { box-shadow: 0 3px 0 color-mix(in srgb, var(--leaf) 55%, #000); }
.public .btn-buy:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--leaf) 55%, #000); }
/* storefront (round 13b): hero with the month's goal, a sticky bar (who it's for, how long, auto-renew, cart), one row
   of rank cards, the perk comparison, crate keys, chip in, recent supporters, questions, and the cart */
.store-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 28px; align-items: center; margin: 26px 0 6px; }
.store-hero h1 { font-size: clamp(34px, 4vw, 48px); margin: 0 0 10px; }
.store-hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; margin: 0 0 18px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: 14.5px; }
.trust li { display: inline-flex; gap: 7px; align-items: center; }
.trust .ico { color: var(--leaf-ink); width: 17px; height: 17px; }
.goal { margin: 0; display: grid; gap: 12px; padding: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface) 62%); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.goal-top { display: flex; justify-content: space-between; align-items: center; }
.goal-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.goal-n b { font: 600 46px/1 var(--font-mono); color: var(--warn); }
.goal-n span { color: var(--text-2); }
.goal p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.goal .meter { height: 14px; }
.goal .meter > i { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--gold), #ffd770); }
.goal .meter > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 3.2s ease-in-out 1.2s infinite; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
@media (max-width: 900px) { .store-hero { grid-template-columns: minmax(0, 1fr); } }
.sale-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); color: var(--warn); margin: 18px 0 0; }
.sale-bar span { color: var(--text-2); }
.sale-bar .sale-ends { margin-left: auto; font: 600 13px/1 var(--font-mono); color: var(--warn); background: var(--surface); padding: 6px 10px; border-radius: 99px; }

.store-bar { position: sticky; top: 72px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 12px 10px 16px; margin: 0 0 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow 0.2s; }
.store-bar.stuck { box-shadow: var(--shadow-lg); }
.store-bar > .callout { margin: 0; flex: 1; }
.sb-label { font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.sb-who, .sb-terms { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.seg2, .term-pick { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 10px; }
.public .seg2 button, .public .term-pick button { box-shadow: none; min-height: 34px; padding: 6px 12px; font-size: 14px; border: 0; --b-bg: transparent; color: var(--text-2); border-radius: 8px; gap: 6px; }
.public .seg2 button[aria-pressed="true"], .public .term-pick button[aria-pressed="true"] { --b-bg: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg2 .avatar { width: 18px; height: 18px; border-radius: 4px; }
.gift-name { display: flex; align-items: center; gap: 6px; margin: 0; }
.gift-name[hidden] { display: none; }
.gift-name input { margin: 0; width: 200px; min-height: 36px; padding: 6px 10px; background: var(--surface); }
.gift-name input.ok { border-color: var(--leaf); }
.gift-name input.bad { border-color: var(--bad); }
.gift-head { border-radius: 4px; image-rendering: pixelated; }
.renew-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-weight: 500; color: var(--text); text-align: left; }
.renew-switch[hidden] { display: none; }
.renew-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); transition: background-color 0.18s; }
.rs-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.renew-switch input:checked + .rs-track, .renew-switch.on .rs-track { background: var(--leaf); }
.renew-switch input:checked + .rs-track i, .renew-switch.on .rs-track i { transform: translateX(18px); }
.renew-switch input:focus-visible + .rs-track, button.renew-switch:focus-visible .rs-track { box-shadow: var(--ring); }
.rs-text { display: grid; line-height: 1.25; }
.rs-text b { font-size: 14px; font-weight: 600; }
.rs-text small { color: var(--muted); font-size: 12.5px; }
.public button.renew-switch { --b-bg: transparent; --b-bd: transparent; min-height: 0; padding: 0; box-shadow: none; font: inherit; }
.public button.renew-switch:active { transform: none; }
.cart-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; }
.cart-btn:hover { text-decoration: none; opacity: 0.9; }
.cart-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--tulip); color: #fff; font: 600 12px/1 var(--font-mono); }
.cart-n[hidden] { display: none; }
@media (max-width: 980px) { .store-bar { top: 104px; } }
@media (max-width: 640px) { .store-bar { position: static; } .gift-name input { width: 100%; } .gift-name { flex: 1 1 100%; } }

.store-ranks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
@media (max-width: 1120px) {
  .store-ranks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 12px 16px 14px; scrollbar-width: thin; }
  .store-rank { scroll-snap-align: start; }
}
.store-rank { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform 0.2s ease, border-color 0.15s, box-shadow 0.2s; min-width: 0; }
.store-rank:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.store-rank h3 { margin: 0; font-size: 27px; }
.sr-plate { min-height: 28px; }
.sr-prices { min-height: 64px; }
.sr-price { display: none; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.store-ranks[data-term="monthly"] .sr-price[data-term="monthly"], .store-ranks[data-term="quarterly"] .sr-price[data-term="quarterly"], .store-ranks[data-term="biannual"] .sr-price[data-term="biannual"], .store-ranks[data-term="annual"] .sr-price[data-term="annual"], .store-ranks[data-term="lifetime"] .sr-price[data-term="lifetime"], .store-rank.is-menace .sr-price[data-term="lifetime"], .store-rank.no-term .sr-na { display: flex; }
.sr-price b { font: 600 32px/1.05 var(--font-mono); }
.sr-price span { color: var(--muted); font-size: 14px; }
.sr-price s { width: 100%; color: var(--muted); font: 500 15px/1.2 var(--font-mono); }
.sr-na b { color: var(--muted); }
.save { font: 600 11.5px/1 var(--font-mono); font-style: normal; color: var(--ok); background: var(--ok-bg); padding: 5px 8px; border-radius: 99px; }
.sr-hi { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); flex: 1; align-content: start; }
.sr-hi li { display: flex; gap: 8px; align-items: flex-start; }
.sr-hi .ico { color: var(--leaf-ink); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.sr-hi code { font-size: 12px; }
.add-form { margin: 0; }
.store-rank .btn, .add-form .btn { width: 100%; }
.public .btn.added { --b-bg: var(--leaf-ink); }
.ribbon { position: absolute; top: -11px; left: 14px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--leaf); color: #fff; white-space: nowrap; }
.ribbon.gold { background: var(--gold); color: #3a2a05; }
.ribbon.mine { background: var(--text); color: var(--bg); }
.store-rank.is-mine { border-color: var(--leaf); }
.store-rank.is-menace { background: radial-gradient(120% 70% at 50% 0%, rgba(242, 191, 74, 0.16), transparent 60%), linear-gradient(170deg, #1d1611, #110d0b); border-color: rgba(242, 191, 74, 0.55); color: #f3e9d8; box-shadow: 0 12px 34px -14px rgba(242, 191, 74, 0.45); }
.store-rank.is-menace h3 { color: #fff; }
.is-menace .sr-price b { color: #ffd770; }
.is-menace .sr-price span, .is-menace .sr-price s { color: #b9a98f; }
.is-menace .sr-hi { color: #e7dcc8; }
.is-menace .sr-hi .ico { color: #f2bf4a; }
.is-menace .sr-hi code { background: rgba(255, 255, 255, 0.08); color: #f3e9d8; }
.store-rank.no-term .btn { opacity: 0.5; }
.sr-below { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.store-rank.is-below .sr-below { display: block; }
.store-rank.is-below .btn { opacity: 0.5; }
.is-menace .sr-below { color: #b9a98f; }
.store-rank.is-below:not(.is-menace):not(.is-mine) { opacity: 0.85; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; min-width: 820px; }
.compare thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 600; }
.compare thead th:first-child { left: 0; z-index: 3; }
.compare th, .compare td { border-bottom: 0; vertical-align: middle; }
.compare th { text-transform: none; letter-spacing: 0; white-space: normal; font: inherit; color: var(--text); }
.compare th[scope="row"] { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 500; color: var(--text); padding: 10px 14px; background: var(--surface); min-width: 250px; border-top: 1px solid var(--line); }
.compare th[scope="row"] code { font-size: 12px; margin-right: 2px; }
.compare th[scope="row"] small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.compare td { text-align: center; padding: 10px; border-top: 1px solid var(--line); font: 500 14px/1.2 var(--font-mono); color: var(--text); }
.compare td.yes .ico { color: var(--leaf-ink); width: 18px; height: 18px; vertical-align: middle; }
.compare td.no { color: var(--line-strong); }
.compare td.up { background: color-mix(in srgb, var(--leaf-soft) 75%, transparent); font-weight: 600; }
.compare tr.cg th { position: static; text-align: left; padding: 16px 14px 9px; font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }
.compare tr.cg .ico { width: 15px; height: 15px; margin-right: 8px; vertical-align: -3px; }
.compare tbody tr:not(.cg):hover > * { background-color: var(--surface-2); }
.compare tbody tr:not(.cg):hover > td.up { background-color: color-mix(in srgb, var(--leaf-soft) 100%, transparent); }

.key-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 10px; }
@media (max-width: 900px) { .key-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.key-pack { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 24px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform 0.2s ease, border-color 0.15s; }
.key-pack:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.key-pack.best { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%); }
.key-pack .ribbon { left: 50%; transform: translateX(-50%); }
.kp-art { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--warn); margin-bottom: 4px; }
.kp-art .ico { width: 28px; height: 28px; }
.kp-n b { font: 600 34px/1 var(--font-mono); }
.kp-n span { color: var(--muted); margin-left: 4px; }
.kp-price b { font: 600 18px/1.2 var(--font-mono); }
.kp-price s { color: var(--muted); margin-right: 6px; font: 500 14px var(--font-mono); }
.kp-each { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.key-pack form { width: 100%; }

.chip-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; background: linear-gradient(120deg, color-mix(in srgb, var(--tulip-soft) 70%, var(--surface)), var(--surface) 60%); }
.chip-in-text { display: flex; gap: 16px; align-items: flex-start; }
.chip-in-text > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tulip-soft); color: var(--tulip-ink); flex: none; }
.chip-in h2 { margin: 0 0 4px; }
.chip-in p { margin: 0; color: var(--text-2); }
.chip-in-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.amounts { display: flex; flex-wrap: wrap; gap: 6px; }
.amounts label { margin: 0; cursor: pointer; }
.amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amounts span { display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-strong); font: 600 14px/1 var(--font-mono); background: var(--surface); transition: background-color 0.15s, color 0.15s; }
.amounts input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.amounts input:focus-visible + span { box-shadow: var(--ring); }
.chip-in-form .btn { width: auto; }
@media (max-width: 760px) { .chip-in { grid-template-columns: minmax(0, 1fr); } }

.supporters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.supporters li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.supporters img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; flex: none; background: var(--surface-3); }
.supporters li > div { display: grid; min-width: 0; flex: 1; }
.supporters b, .supporters span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supporters span { color: var(--muted); font-size: 13.5px; }
.supporters time { color: var(--muted); font: 400 12px/1 var(--font-mono); white-space: nowrap; }
.faq { display: grid; gap: 8px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 18px/1 var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--text-2); }
.store-fine { margin-top: 26px; }

.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 0 max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); animation: cartbar-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.cart-bar[hidden] { display: none; }
@keyframes cartbar-in { from { transform: translateY(100%); } }
.cart-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 78px; }
.cart-bar span { display: inline-flex; align-items: center; gap: 8px; }
.cart-bar b { font-family: var(--font-mono); }
body:has(.cart-bar:not([hidden])) .site-footer { padding-bottom: 72px; }
body:has(.cart-bar:not([hidden])) .theme-fab { bottom: 84px; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
.cart-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line form { margin: 0; }
.cl-what { display: grid; gap: 4px; min-width: 0; }
.cl-what b { font-size: 16.5px; }
.for { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.for img, .for .avatar { width: 16px; height: 16px; border-radius: 3px; image-rendering: pixelated; }
.for.gift { color: var(--leaf-ink); font-weight: 600; }
.cl-opts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-price { text-align: right; font-family: var(--font-mono); }
.cl-price s { display: block; color: var(--muted); font-size: 13px; }
.cl-price b { font-size: 17px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty b { font-family: var(--font-mono); min-width: 18px; text-align: center; }
@media (max-width: 640px) { .cart-line { grid-template-columns: minmax(0, 1fr) auto auto; } .cl-opts { grid-column: 1 / -1; order: 3; } }
.cart-sum { position: sticky; top: 88px; margin: 0; }
.cart-sum h2 { font-size: 22px; }
.cart-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 16px; }
.cart-sum dt { color: var(--text-2); }
.cart-sum dd { margin: 0; text-align: right; font-family: var(--font-mono); }
.cart-sum .total { font-size: 20px; font-weight: 600; color: var(--text); padding-top: 10px; border-top: 1px solid var(--line); }
.checkout-btn { width: 100%; min-height: 52px; font-size: 17px; }
.codes summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; }
.codes[open] summary { margin-bottom: 8px; }
.codes label { margin-bottom: 8px; }
.cart-empty { text-align: center; padding: 44px 20px; display: grid; justify-items: center; gap: 8px; }
.cart-empty > .ico { width: 44px; height: 44px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .goal .meter > i::after, .cart-bar { animation: none; } .store-rank:hover, .key-pack:hover { transform: none; } }
.thanks-wait { display: flex; gap: 14px; align-items: center; padding: 6px 0 12px; }
.thanks-wait .spin { width: 22px; height: 22px; }
.thanks-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.thanks-list li { display: flex; gap: 10px; align-items: center; }
.thanks-list .ico { color: var(--ok); }
.tp-warning { font-size: 15.5px; }
.title-form { display: grid; gap: 16px; }
.tp-fields { display: grid; gap: 14px 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-color { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.tp-color input[type="color"] { width: 54px; height: 44px; margin: 0; padding: 3px; flex: none; cursor: pointer; }
.tp-color input[name="color"] { margin: 0; font-family: var(--font-mono); }
.tp-previews { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-previews figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.tp-previews figcaption { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); font-size: 14px; }
.mc-chat { background: rgba(0, 0, 0, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' fill='%23314a2b'/%3E%3Crect width='8' height='8' fill='%233a5733'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23294024'/%3E%3C/svg%3E"); background-blend-mode: multiply; border-radius: 8px; padding: 12px 14px; min-height: 92px; display: grid; align-content: end; gap: 4px; }
.mc-chat p { margin: 0; color: #fff; font-size: 17px; line-height: 1.3; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); overflow-wrap: anywhere; }
.mc-chat .mc-dim { color: #ffff55; font-size: 15px; }
.tp-map { margin: 0; color: var(--muted); }
.tp-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.discord-preview.dp-member { display: grid; gap: 12px; min-height: 92px; }
.dp-msg { display: flex; gap: 12px; align-items: flex-start; }
.dp-avatar { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.dp-user { font-weight: 600; margin-right: 8px; }
.dp-time { color: #949ba4; font-size: 12px; }
.dp-line { color: #dbdee1; }
.dp-roles { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-role { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; background: #232428; color: #dbdee1; font-size: 13px; font-weight: 500; }
.dp-role i { width: 12px; height: 12px; border-radius: 50%; }
.tp-understand { font-weight: 600; }
@media (max-width: 760px) { .tp-fields, .tp-previews { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================================
   ROUND 14: the dashboard brought in line with the public site (leaf green leads, pressed-edge buttons, a solid
   top bar, servers as rows, one save bar per page, a drawer menu on phones)
   ===================================================================================== */
.admin { --edge: #d3cfc3; --pri: #2b8541; --pri-hover: #22743a; --pri-edge: #1a5a2b; }
:root[data-theme="dark"] .admin { --edge: #070a09; --pri: #2f8f45; --pri-hover: #287a3c; --pri-edge: #10331b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admin { --edge: #070a09; --pri: #2f8f45; --pri-hover: #287a3c; --pri-edge: #10331b; } }

/* buttons: the public site's pressed edge; green for the page's main action; red only means danger here */
.admin .btn, .admin button { box-shadow: 0 2px 0 var(--edge); transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s, box-shadow 0.1s; }
.admin .btn:active, .admin button:active { transform: translateY(2px); box-shadow: 0 0 0 var(--edge); }
.admin .btn-primary, .admin button.primary { --b-bg: var(--pri); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 2px 0 var(--pri-edge); }
.admin .btn-primary:hover, .admin button.primary:hover { --b-bg: var(--pri-hover); border-color: transparent; }
.admin .btn-primary:active, .admin button.primary:active { box-shadow: 0 0 0 var(--pri-edge); }
.admin .btn-danger, .admin button.danger { box-shadow: 0 2px 0 color-mix(in srgb, var(--bad) 35%, var(--edge)); }
.admin .btn-ghost { --b-bg: var(--surface); }
.admin :is(.icon-btn, .theme-toggle, button.link, .copy-addr, .console-jump, [role="tab"], .seg button, .ins-tabs button) { box-shadow: none; }
.admin :is(.icon-btn, .theme-toggle, button.link, .copy-addr, [role="tab"]):active { transform: none; }
.admin button:disabled, .admin .btn[aria-disabled="true"] { box-shadow: none; transform: none; }
.top-actions .btn, .top-actions button:not(.icon-btn) { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.top-actions { align-items: center; }

/* sidebar: the current page in leaf green */
.admin .side-group a[aria-current] { background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 600; }
.admin .side-group a[aria-current] .ico { color: var(--leaf-ink); }
.admin .stat-ico { border-radius: 10px; background: var(--leaf-soft); color: var(--leaf-ink); }

/* top bar: solid, so page content never shows through it */
.admin .topbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-toggle { display: none; }
.nav-scrim { display: none; }

/* stat tiles: five fit on one line */
.admin .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.g3 { grid-template-columns: minmax(0, 1fr); } }

/* overview: servers as rows, like the public server board */
.srv-list { padding: 6px; }
.srv-head, .srv-row { display: grid; grid-template-columns: minmax(190px, 1.7fr) minmax(130px, 1fr) 70px 62px 124px minmax(250px, 1.7fr) 18px; gap: 6px 16px; align-items: center; }
.srv-head { padding: 8px 14px 6px; font: 600 11px/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.srv-row { padding: 12px 14px; border-radius: 12px; color: var(--text); transition: background-color 0.15s; }
.srv-row + .srv-row { box-shadow: 0 -1px 0 var(--line); }
.srv-row:hover { background: var(--surface-2); text-decoration: none; }
.srv-row:hover + .srv-row, .srv-row:hover { box-shadow: none; }
.sr-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sr-id .pack-art { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none; }
.sr-id > span { display: grid; min-width: 0; }
.sr-id b { font: 600 18px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-id small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-state, .sr-flags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; min-width: 0; }
.sr-num { display: grid; gap: 4px; min-width: 0; }
.sr-num small { display: none; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.sr-num b { font: 600 15px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-num .meter { height: 5px; }
.srv-row > .go { width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s ease, color 0.15s; }
.srv-row:hover > .go { color: var(--leaf-ink); transform: translateX(3px); }
.sr-note { grid-column: 1 / -1; margin-left: 54px; width: fit-content; }
@media (max-width: 1180px) {
  .srv-head { display: none; }
  .srv-row { grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.6fr) 18px; gap: 10px 10px; }
  .sr-num b { font-size: 14px; }
  .sr-id { grid-column: 1 / 4; }
  .srv-row > .go { grid-column: 4; grid-row: 1; }
  .sr-state, .sr-flags { grid-column: 1 / -1; }
  .sr-state { grid-row: 2; }
  .sr-num { grid-row: 3; background: var(--surface-2); border-radius: 10px; padding: 7px 10px; }
  .sr-num small { display: block; }
  .sr-flags { grid-row: 4; }
  .sr-note { margin-left: 0; }
}

/* jobs: filters, plain names, failed rows marked at the edge */
.job-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.job-filters label { margin: 0; }
.job-filters select { margin: 0; width: auto; min-width: 150px; background: var(--surface); }
.jobs-table td { vertical-align: middle; }
.jobs-table a.job-name { color: var(--text); font-weight: 600; }
.jobs-table tr.job-failed > td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.jobs-table tr.job-running > td:first-child { box-shadow: inset 3px 0 0 var(--leaf); }
.jobs-table .err { max-width: 520px; }
#jobs-live .pager { margin-top: 14px; }
details.raw { display: inline-block; margin-left: 8px; vertical-align: baseline; }
details.raw > summary { display: inline; cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; text-decoration: underline dotted; }
details.raw > summary::-webkit-details-marker { display: none; }
details.raw[open] { display: block; margin: 6px 0 0; }
details.raw[open] code { display: block; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* new server: the search box with its button beside it */
.search-row { display: flex; gap: 10px; align-items: center; max-width: 720px; margin-bottom: 18px; }
.search-row .search { flex: 1; min-width: 0; }
.search-row .search input { min-height: 44px; }

/* defaults: paths wrap at their slashes; file pickers that look like the rest */
code.path { word-break: normal; overflow-wrap: normal; }
.admin input[type="file"] { border-style: dashed; padding: 6px; cursor: pointer; color: var(--muted); font-size: 14px; }
.admin input[type="file"]:hover { border-color: var(--leaf); }
.admin input[type="file"]::file-selector-button { font: 600 14px/1 var(--font-body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 13px; margin-right: 12px; cursor: pointer; box-shadow: 0 2px 0 var(--edge); }
.admin input[type="file"]::file-selector-button:hover { border-color: var(--text-2); }
.inline input[type="file"] { width: auto; flex: 1 1 240px; }

/* one save bar: Save buttons inside forms give way to it while scripts run */
.has-savebar form[data-savable] .save-btn { display: none; }
.has-savebar form[data-savable] .actions:not(:has(> :not(.save-btn):not(.msg:empty))) { display: none; }
.save-bar { position: sticky; bottom: 16px; z-index: 25; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 22px auto 0; padding: 9px 10px 9px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); animation: sb-in 0.22s ease; }
.save-bar[hidden] { display: none; }
.save-bar .sb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.save-bar.has-error .sb-dot { background: var(--tulip); }
.save-bar.is-saved .sb-dot { background: var(--leaf); }
.save-bar.is-saved :is(.sb-discard, .sb-save, .sb-keys) { display: none; }
.save-bar .sb-text { font-weight: 600; font-size: 14.5px; min-width: 0; }
.save-bar .sb-keys { font: 500 11.5px/1 var(--font-mono); opacity: 0.6; border: 1px solid currentColor; border-radius: 5px; padding: 3px 5px; }
.admin .save-bar .sb-discard { --b-bg: transparent; --b-fg: var(--bg); --b-bd: color-mix(in srgb, var(--bg) 35%, transparent); box-shadow: none; }
.admin .save-bar .sb-discard:hover { border-color: var(--bg); }
.admin .save-bar .sb-save { box-shadow: none; }
@keyframes sb-in { from { transform: translateY(12px); opacity: 0; } }
.admin .is-dirty { box-shadow: inset 3px 0 0 var(--gold), var(--shadow); }
form.is-dirty:not(.card) { box-shadow: none; }
@media (pointer: coarse), (max-width: 640px) { .save-bar .sb-keys { display: none; } }
@media (prefers-reduced-motion: reduce) { .save-bar { animation: none; } }

/* status message page: the channel picker uses the full width */
#status-form > label > select { width: 100%; }

/* phones: a drawer menu instead of a scrolling chip row */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); height: 100vh; height: 100dvh; transform: translateX(-102%); transition: transform 0.24s ease, box-shadow 0.24s ease; border-right: 1px solid var(--line); }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.42); }
  .nav-scrim[hidden] { display: none; }
  .nav-open { overflow: hidden; }
  .nav-toggle { display: inline-flex; margin-left: -6px; }
  .side-group a { padding: 11px 12px; }
  .topbar { position: sticky; top: 0; padding: 10px 16px; min-height: 0; gap: 8px 10px; justify-content: flex-start; }
  .page-title { font-size: 23px; flex: 1; min-width: 0; }
  .top-actions { flex-basis: 100%; }
  .top-actions:empty { display: none; }
  .admin-main { padding: 16px 16px 48px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* bigger tap targets on touch screens */
@media (pointer: coarse), (max-width: 640px) {
  .admin .btn.sm, .admin button.sm { min-height: 40px; }
  .admin .icon-btn, .admin .theme-toggle { min-height: 40px; width: 40px; }
  .admin button.link { padding: 8px 2px; }
  .admin .pill-nav a { padding: 9px 14px; }
}
.sr-ver { max-width: 100%; min-width: 0; }
.sr-ver > span { overflow: hidden; text-overflow: ellipsis; }
td.audit-d { min-width: 340px; width: 46%; }
@media (min-width: 1101px) { #access-form .perm-legend { display: block; columns: 2; column-gap: 24px; } #access-form .perm-legend > div + div { margin-top: 10px; } #access-form .perm-legend > div { break-inside: avoid; } }
@media (max-width: 640px) {
  .admin .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .job-filters select { flex: 1 1 140px; min-width: 0; }
  .job-filters label { flex: 1 1 140px; }
}

/* =====================================================================================
   ROUND 15: the dashboard uses the whole width; foldable cards; drop-to-upload; alert messages as Discord shows them
   ===================================================================================== */
.admin-main { max-width: none; }

/* spacing: rows of a field and its button line up with a gap; ids and sizes stay on one line */
.inline > label { margin: 0; }
.inline > label.grow { flex: 1 1 280px; }
.inline > label.grow select { width: 100%; margin-top: 6px; }
.grant-add { margin-top: 10px; }
.admin td code:not(.path) { white-space: nowrap; word-break: normal; }
.admin td.audit-d code { white-space: normal; word-break: break-word; }
.admin .card > .help:last-child, .admin .card > p.help { margin-bottom: 0; }
.admin .actions:empty { display: none; }
.admin .card-head .btn, .admin .card-head button:not(.card-fold) { margin-left: auto; }
.admin .card-head .btn + .btn, .admin .card-head button:not(.card-fold) + button:not(.card-fold) { margin-left: 0; }

/* cards fold up from their title */
.card-head.foldable { flex-wrap: nowrap; }
.card-head.foldable h2 { cursor: pointer; user-select: none; min-width: 0; }
.card-head.foldable > :not(h2):not(.card-fold) { flex: none; }
.card-fold { margin-left: auto; flex: none; }
.card-head.foldable > .card-fold:not(:first-child) { margin-left: 4px; }
.card-head.foldable > h2 + .card-fold { margin-left: auto; }
.card-fold .ico { transition: transform 0.2s ease; }
.card.is-folded > :not(.card-head):not([id="copy"]) { display: none !important; }
.card.is-folded > .card-head { margin-bottom: 0; }
.card.is-folded .card-fold .ico { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .card-fold .ico { transition: none; } }

/* uploads: drop a file anywhere on the form */
.drop-zone { position: relative; transition: background-color 0.15s, box-shadow 0.15s; border-radius: var(--r); }
.drop-zone.is-dragover { background: var(--leaf-soft); box-shadow: 0 0 0 2px var(--leaf) inset; }
.drop-zone.is-dragover input[type="file"] { border-color: var(--leaf); }
.drop-zone.has-dropped input[type="file"] { border-color: var(--leaf); background: var(--leaf-soft); }
.admin input[type="file"]::after { content: none; }

/* schedules: "Revert to default" sits bottom right */
.sched-actions { justify-content: flex-start; }
.sched-actions .sched-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.sched-actions .sched-reset:hover { color: var(--text); }
.sched-actions .sched-reset .ico { width: 15px; height: 15px; }

/* defaults: copy files from another set */
.copy-pick { margin-top: 0; }
.copy-form fieldset { margin-bottom: 10px; }
.copy-file { align-items: flex-start; }
.copy-file input { margin-top: 3px; }
.copy-form .badge { margin-left: 4px; }

/* audit log */
.audit-filters .search { flex: 1 1 280px; min-width: 0; }
.audit-filters .search input { margin: 0; min-height: 42px; }
.audit-table td { vertical-align: top; }
.audit-table td.audit-d { line-height: 1.5; }

/* recent alerts: one row each; opening one shows the exact message and closes the others */
.alert-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.alert-head, .alert-item > summary { display: grid; grid-template-columns: 110px minmax(0, 1.6fr) minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 10px 14px; }
.alert-head { font: 600 12px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.alert-item + .alert-item { border-top: 1px solid var(--line); }
.alert-item > summary { list-style: none; cursor: pointer; transition: background-color 0.15s; }
.alert-item > summary::-webkit-details-marker { display: none; }
.alert-item > summary:hover { background: var(--surface-2); }
.alert-item[open] > summary { background: var(--surface-2); }
.alert-item .ai-chev { color: var(--muted); transition: transform 0.2s ease; transform: rotate(90deg); }
.alert-item[open] .ai-chev { transform: rotate(-90deg); }
.alert-item .ai-title { min-width: 0; }
.alert-item .ai-body { padding: 4px 14px 16px; background: var(--surface-2); }
@media (max-width: 760px) {
  .alert-head { display: none; }
  .alert-item > summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 10px; }
  .alert-item .ai-when { grid-column: 1; grid-row: 2; font-size: 13px; }
  .alert-item .ai-to { grid-column: 1; grid-row: 3; }
  .alert-item .ai-chev { grid-column: 2; grid-row: 1 / 4; }
}

/* a Discord message (alerts) */
.dp-alert { padding: 14px 16px; }
.dp-alert .dp-msg { display: flex; gap: 14px; align-items: flex-start; }
.dp-alert img.dp-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; object-fit: cover; flex: none; image-rendering: pixelated; }
.dp-main { min-width: 0; flex: 1; }
.dp-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.dp-meta .dp-user { color: #fff; font-weight: 600; margin: 0; }
.dp-app { background: #5865f2; color: #fff; font: 600 10px/1 var(--font-body); padding: 3px 5px; border-radius: 4px; letter-spacing: 0.02em; }
.dp-note { color: #949ba4; font-size: 13px; }
.dp-alert .dp-embed { max-width: 560px; margin-top: 4px; }
.dp-alert a.dp-title { display: block; color: #00a8fc; font-weight: 700; margin-bottom: 6px; }
.dp-alert a.dp-title:hover { text-decoration: underline; }
.dp-alert .dp-text { color: #dbdee1; font-size: 14.5px; overflow-wrap: anywhere; }
.dp-alert .dp-text a { color: #00a8fc; }
.dp-code { background: #1e1f22; color: #dbdee1; border: 1px solid #1a1b1e; border-radius: 4px; padding: 7px 9px; margin: 6px 0; font: 12.5px/1.45 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.dp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 8px; }
.dp-field { grid-column: 1 / -1; min-width: 0; }
.dp-field.in { grid-column: auto; }
.dp-fname { color: #fff; font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.dp-fval { color: #dbdee1; font-size: 14px; overflow-wrap: anywhere; }
.dp-alert .dp-footer { margin-top: 10px; }
.dp-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; background: #4e5058; color: #fff; font: 500 14px/1.2 var(--font-body); }
.dp-btn:hover { background: #6d6f78; text-decoration: none; color: #fff; }
.dp-btn .ico { width: 14px; height: 14px; }
@media (max-width: 560px) { .dp-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dp-alert img.dp-avatar { width: 32px; height: 32px; } }

/* =====================================================================================
   ROUND 16: "on this page" menu for long public pages (Vote, Store)
   ===================================================================================== */
.sec-target { scroll-margin-top: 92px; }
.sec-nav, .sec-pop { display: none; }
.sec-rail { display: grid; gap: 3px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--edge, var(--line-strong)), var(--shadow); }
.sec-rail a { position: relative; display: flex; align-items: center; gap: 10px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background-color 0.15s, color 0.15s; }
.sec-rail a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.sec-rail a.is-current { background: var(--leaf-soft); color: var(--leaf-ink); }
.sec-rail a .ico { width: 18px; height: 18px; flex: none; }
/* roomy screens: the rail with its labels, in the space left of the page */
@media (min-width: 1600px) {
  .sec-nav { display: block; position: fixed; z-index: 30; top: 50%; transform: translateY(-50%); left: max(8px, calc((100vw - 1200px) / 2 - 196px)); }
  .sec-rail a { width: 172px; height: 38px; padding: 0 12px; }
  .sec-rail a.is-current { font-weight: 600; }
}
/* a bit less room: icons only, the label shows beside the one you point at */
@media (min-width: 1340px) and (max-width: 1599px) {
  .sec-nav { display: block; position: fixed; z-index: 30; top: 50%; transform: translateY(-50%); left: max(8px, calc((100vw - 1200px) / 2 - 62px)); }
  .sec-rail a { width: 40px; height: 40px; justify-content: center; }
  .sec-rail a span { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--text); color: var(--bg); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.15s; box-shadow: var(--shadow); }
  .sec-rail a:hover span, .sec-rail a:focus-visible span { opacity: 1; }
}
/* phones and narrower windows: a "Jump to" button bottom left */
@media (max-width: 1339px) {
  .sec-pop { display: block; position: fixed; z-index: 35; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
  body:has(.cart-bar:not([hidden])) .sec-pop { bottom: 86px; }
  .public .sec-btn { --b-bg: var(--surface); min-height: 46px; padding: 0 16px 0 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--edge), var(--shadow-lg); font-size: 15px; }
  .sec-btn .ico { width: 18px; height: 18px; }
  .sec-pop-list { position: absolute; left: 0; bottom: calc(100% + 10px); display: grid; gap: 2px; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); animation: sec-in 0.16s ease; }
  .sec-pop-list[hidden] { display: none; }
  .sec-pop-h { font: 600 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
  .sec-pop-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
  .sec-pop-list a:hover { background: var(--surface-3); text-decoration: none; }
  .sec-pop-list a.is-current { background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 600; }
  .sec-pop-list a .ico { width: 18px; height: 18px; color: inherit; }
}
@keyframes sec-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sec-pop-list { animation: none; } }
@media print { .sec-nav, .sec-pop { display: none !important; } }
/* scrolling tables hold their screen-reader-only labels, so those can't widen the page on phones */
.compare-wrap, .table { position: relative; }
