/* ------------------------------------------------------------------ fonts */
/* Served from this site (no font CDN), so no visitor data goes anywhere else. SIL OFL 1.1, see /fonts. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* More letters: Polish, Czech, Turkish… (Barlow's latin-ext), and Cyrillic for Russian (Roboto, which looks close). Each loads only when a page uses those letters. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/roboto-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/roboto-condensed-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
/* Doorcamper look: near-black panels, one bright rust-orange accent (with dark text on
   orange), Barlow for reading, Barlow Condensed for headings and big numbers, JetBrains
   Mono for addresses and Steam IDs. Light mode is the same idea on warm paper. */
:root {
  color-scheme: light;
  --bg: #efece6;
  --bg-2: #e7e3db;
  --surface: #fbfaf7;
  --surface-2: #f2efe9;
  --line: #e1ddd4;
  --line-strong: #cbc6ba;
  --text: #17150f;
  --muted: #5f5a4f;
  --faint: #8b8579;
  --accent: #f0611f;
  --on-accent: #1d0e05;
  --c2: #2f6db0; /* second chart series, checked for colour-blind contrast against --accent */
  --accent-soft: #fde4d6;
  --accent-text: #b4420e;
  --good: #4f7a2a;
  --good-soft: #e1ebd4;
  --warn: #8f6000;
  --warn-soft: #f6e6bf;
  --bad: #b3261e;
  --bad-strong: #b3261e;
  --bad-soft: #f7dad5;
  --info: #3a6489;
  --info-soft: #dce7f0;
  --shadow: 0 1px 2px rgba(40, 30, 15, .06), 0 2px 10px rgba(40, 30, 15, .04);
  --shadow-lg: 0 16px 44px rgba(40, 30, 15, .22);
  --radius: 10px;
  --radius-sm: 7px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c0b;
    --bg-2: #0f100f;
    --surface: #141513;
    --surface-2: #1b1c19;
    --line: #22231f;
    --line-strong: #34352f;
    --text: #efe9dd;
    --muted: #aaa395;
    --faint: #7d786d;
    --accent: #ff6b2c;
    --on-accent: #1d0e05;
    --c2: #4f9bea;
    --accent-soft: #2a160c;
    --accent-text: #ff8a52;
    --good: #9ed27a;
    --good-soft: #1d2a14;
    --warn: #f0b43c;
    --warn-soft: #33260c;
    --bad: #ff5f4d;
    --bad-strong: #c4372a;
    --bad-soft: #3a1611;
    --info: #86b3dc;
    --info-soft: #14202c;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0b;
  --bg-2: #0f100f;
  --surface: #141513;
  --surface-2: #1b1c19;
  --line: #22231f;
  --line-strong: #34352f;
  --text: #efe9dd;
  --muted: #aaa395;
  --faint: #7d786d;
  --accent: #ff6b2c;
  --on-accent: #1d0e05;
  --c2: #4f9bea;
  --accent-soft: #2a160c;
  --accent-text: #ff8a52;
  --good: #9ed27a;
  --good-soft: #1d2a14;
  --warn: #f0b43c;
  --warn-soft: #33260c;
  --bad: #ff5f4d;
  --bad-strong: #c4372a;
  --bad-soft: #3a1611;
  --info: #86b3dc;
  --info-soft: #14202c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .7);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: 0; }
h1 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: .005em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 16px; }
.stack > * { min-width: 0; }

/* ------------------------------------------------------------------ shell */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 60px auto 1fr auto auto auto;
  grid-template-areas: "top" "side" "main" "seo" "ad" "foot";
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar { /* the menu: a row of tabs under the top bar (a tab bar at the bottom on phones) */
  grid-area: side;
  position: sticky; top: 60px; z-index: 19;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em;
  text-decoration: none; padding: 4px 8px 18px;
}
.brand.big { font-size: 26px; padding: 0 0 8px; justify-content: center; }
.brand-logo { width: 34px; height: 34px; flex: none; display: block; margin: -3px 0; }
.nav { display: flex; justify-content: center; justify-content: safe center; gap: 4px; max-width: 1280px; margin: 0 auto; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
.nav a {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 13px 14px 11px; border-bottom: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
}
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav a.active svg { color: var(--accent); }
.nav a { position: relative; }
.nav-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.nav-count[hidden] { display: none; }
.invites-card { margin-bottom: 16px; border-color: var(--accent); }
.app-foot { grid-area: foot; border-top: 1px solid var(--line); }
.sidebar-foot { display: flex; align-items: center; gap: 8px; max-width: 1280px; margin: 0 auto; padding: 14px 24px; font-size: 12.5px; color: var(--muted); }
.sidebar-foot .spacer { flex: 1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-dot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.live-dot.off { background: var(--bad); }

.topbar {
  grid-area: top;
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 0 28px;
  /* Nearly solid, without a frost of its own: a frosted bar would stop the glass account menu (inside it) from
     seeing the page behind. */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.search { flex: 1; max-width: 460px; position: relative; display: flex; align-items: center; }
.search > svg { position: absolute; left: 11px; color: var(--faint); width: 16px; height: 16px; }
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.topbar .brand { padding: 0 16px 0 0; font-size: 20px; }
.topbar .search { margin: 0 auto; max-width: 520px; }
.main { grid-area: main; padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; overflow-x: clip; } /* a long badge never makes the page scroll sideways */
.mobile-only { display: none; }

/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, filter .12s;
}
.btn:hover { border-color: var(--faint); }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn.primary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad-strong); border-color: var(--bad-strong); color: #fff; }
.btn.danger-solid:hover { background: var(--bad-strong); filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.badge-dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.input, .field input, .field textarea, .field select {
  width: 100%; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.active { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: var(--line-strong); transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px #0003; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head .count { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.card-head h2 { font-family: var(--display); font-size: 18px; font-weight: 650; letter-spacing: .015em; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 14px 16px 12px; text-decoration: none; display: block; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.stat.accent::before { background: var(--accent); }
.stat.good::before { background: var(--good); }
.stat.bad::before { background: var(--bad); }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.stat .value { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: 0; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat.accent .value { color: var(--accent-text); }
.stat.good .value { color: var(--good); }
.stat.bad .value { color: var(--bad); }
a.stat:hover { border-color: var(--line-strong); background: var(--surface-2); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ------------------------------------------------------------------ avatars + badges */
.avatar { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar.sm { width: 30px; height: 30px; border-radius: 7px; }
.avatar.lg { width: 84px; height: 84px; border-radius: 14px; }
.avatar.initials { display: grid; place-items: center; font-weight: 700; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; }
.avatar-wrap { position: relative; flex: none; }
.avatar-wrap .presence {
  position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  border: 2.5px solid var(--surface); background: var(--faint);
}
.presence.online { background: var(--good); }
.presence.rust { background: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--muted);
}
.badge.rust { background: var(--accent-soft); color: var(--accent-text); }
.badge.online { background: var(--good-soft); color: var(--good); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* ------------------------------------------------------------------ player list */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 300px; height: 36px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.player-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-decoration: none; transition: border-color .12s, transform .12s; }
.player-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.player-card .name { font-weight: 650; font-size: 15px; }
.player-card .sub { font-size: 12.5px; color: var(--muted); }
.player-card .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.player-card .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 9px; }

.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }

/* ------------------------------------------------------------------ events */
.event { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event:last-child { border-bottom: 0; }
.event.unread { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.event .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 15px; }
.event .body { flex: 1; min-width: 0; }
.event .who { font-weight: 650; text-decoration: none; }
.event .who:hover { text-decoration: underline; }
.event .what { color: var(--muted); }
.event .detail { margin-top: 3px; overflow-wrap: anywhere; }
.event .time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.event s { color: var(--faint); }
.cat-profile { background: var(--info-soft); color: var(--info); }
.cat-presence { background: var(--good-soft); color: var(--good); }
.cat-rust { background: var(--accent-soft); color: var(--accent-text); }
/* Coming and going look different: stopping or going offline is grey (starting keeps its colour). */
.ico.ev-rust_leave, .ico.ev-offline { background: var(--surface-2); color: var(--muted); }
.cat-bans { background: var(--bad-soft); color: var(--bad); }
.toast.urgent { border-left: 4px solid var(--bad); }
.cat-nearby { background: var(--bad-soft); color: var(--bad); }
.cat-team { background: var(--warn-soft); color: var(--warn); }
.cat-friends { background: var(--surface-2); color: var(--muted); }
.cat-alts { background: var(--warn-soft); color: var(--warn); }
.ev-avatars { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ------------------------------------------------------------------ player detail */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 550; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.profile-head { display: flex; gap: 18px; padding: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile-head .info { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.id-row { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.id-row button { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 2px; display: grid; }
.id-row button:hover { color: var(--text); }
.id-row svg { width: 14px; height: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-names { display: grid; }
.history-names .item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.history-names .item:last-child { border-bottom: 0; }
.history-names .item.current .n { font-weight: 700; }
.avatar-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-strip figure { margin: 0; display: grid; gap: 3px; justify-items: center; font-size: 11px; color: var(--faint); }
.avatar-strip img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }

.alt { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.alt:last-child { border-bottom: 0; }
.alt.dismissed { opacity: .55; }
.alt.confirmed { background: color-mix(in srgb, var(--bad-soft) 50%, transparent); }
.score { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.score-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 3px; }
.score b { font-variant-numeric: tabular-nums; font-size: 13px; width: 34px; text-align: right; }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.reasons li { display: flex; gap: 8px; }
.reasons li b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 30px; }
.notes-form { display: grid; gap: 12px; }

/* ------------------------------------------------------------------ servers + maps */
.server-card { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px; padding: 16px; margin-bottom: 20px; align-items: start; }
.server-card.big { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
/* The server's own banner fills the card, under a wash of the card colour so the text stays readable. */
.server-card.has-banner { position: relative; isolation: isolate; overflow: hidden; }
.server-card.has-banner::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--banner) center / cover no-repeat; }
.server-card.has-banner::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 20%, transparent) 0%, color-mix(in srgb, var(--surface) 70%, transparent) 22%,
    color-mix(in srgb, var(--surface) 70%, transparent) 70%, color-mix(in srgb, var(--surface) 35%, transparent) 100%); }
.server-card.has-banner .server-info { text-shadow: 0 0 6px var(--surface), 0 1px 2px var(--surface); }
.server-card.has-banner .btn:not(.primary) { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(2px); }
.server-card.has-banner .map-thumb { box-shadow: 0 4px 18px rgba(0,0,0,.35); }
@media (max-width: 760px) {
  .server-card.has-banner::after { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent) 0%, color-mix(in srgb, var(--surface) 85%, transparent) 45%, color-mix(in srgb, var(--surface) 92%, transparent) 100%); }
}
.map-link { display: block; border-radius: 10px; }
.map-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-thumb {
  width: 100%; max-width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block;
  background: var(--surface-2); border: 1px solid var(--line);
}
.map-link:hover .map-thumb { border-color: var(--line-strong); filter: brightness(1.05); }
.map-missing { display: grid; place-items: center; color: var(--faint); font-size: 12px; text-align: center; padding: 8px; line-height: 1.35; }
.map-thumb.xs { width: 38px; height: 38px; flex: none; border-radius: 7px; padding: 0; }
.server-info { display: grid; gap: 8px; min-width: 0; }
.server-info h2 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: balance; }
.server-info h2 a { text-decoration: none; }
.server-info h2 a:hover { text-decoration: underline; }
.server-info .hint { margin: 0; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.facts div { display: grid; gap: 1px; }
.facts span { color: var(--muted); font-size: 11.5px; }
.facts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.server-hidden { margin-bottom: 20px; }
.server-about { overflow: hidden; }
.server-banner { width: 100%; max-height: 220px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.server-about summary { cursor: pointer; font-weight: 600; }
.server-desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; color: var(--muted); max-width: 75ch; }
.server-hidden .hint { margin-top: 4px; }
.section-title { font-family: var(--display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 4px 0 10px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 24px; }
.server-tile { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; text-decoration: none; align-items: center; }
.server-tile:hover { border-color: var(--line-strong); }
.server-tile .body { display: grid; gap: 4px; min-width: 0; }
.server-tile .title { font-weight: 650; }
.avatars-row { display: flex; align-items: center; gap: 0; }
.avatars-row .avatar { width: 24px; height: 24px; border-radius: 6px; margin-right: -5px; border: 2px solid var(--surface); }
.avatars-row .small { margin-left: 12px; color: var(--accent-text); font-weight: 600; }
.sub-head { padding: 10px 16px 6px; font-family: var(--display); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); border-top: 1px solid var(--line); }
.session { display: flex; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.session:last-child { border-bottom: 0; }
.session .body { flex: 1; min-width: 0; }
.session a { text-decoration: none; }
.session a:hover { text-decoration: underline; }
.player-card .sub svg { width: 13px; height: 13px; vertical-align: -2px; }

/* ------------------------------------------------------------------ BattleMetrics */
.bm-body { display: grid; gap: 14px; }
.bm-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-label { font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.coplay-row { display: grid; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.coplay-row:last-child { border-bottom: 0; }
.bm-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 13px; }
.bm-link a { text-decoration: none; }
.bm-link a:hover { text-decoration: underline; }
.avatar.xs-av { width: 22px; height: 22px; border-radius: 5px; }
.bm-foot { padding: 8px 16px 14px; margin: 0; border-top: 1px solid var(--line); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); }
.bm-player { display: grid; gap: 5px; padding: 10px 14px; background: var(--surface); min-width: 0; }
.bm-player.tracked { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }

/* ------------------------------------------------------------------ settings */
.settings-table { width: 100%; border-collapse: collapse; }
.settings-table th, .settings-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.settings-table th { font-family: var(--display); font-size: 13.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.settings-table tbody tr:hover td { background: var(--surface-2); }
.settings-table td.c, .settings-table th.c { text-align: center; }
.settings-table tr:last-child td { border-bottom: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.setting-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: 0; }
.setting-row .t { flex: 1; min-width: 200px; }
.setting-row .t p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ overlays */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease-out; cursor: pointer;
}
.toast.out { animation: toast-out .2s ease-in forwards; }
.toast .body { flex: 1; min-width: 0; font-size: 13.5px; }
.toast .body > b { display: block; }
.toast .detail .mono { display: none; }
.toast.error { border-color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: #0005; animation: fade .15s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide .2s ease-out;
}
.drawer-panel header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.drawer-panel header h2 { flex: 1; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.drawer-list { flex: 1; overflow-y: auto; }
.drawer-panel footer { padding: 12px 18px; border-top: 1px solid var(--line); }
.drawer-panel footer a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: #0006; animation: fade .15s; }
.modal-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.modal-card header { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-card header h2 { flex: 1; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.modal-card .content { padding: 18px; display: grid; gap: 14px; }
.modal-card footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.preview { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); min-height: 52px; }
.form-error { color: var(--bad); margin: 0; font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }

.audio-hint {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80;
  padding: 8px 14px; border-radius: 20px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); cursor: pointer;
}

.login { min-height: 100vh; min-height: 100dvh; padding: 36px 24px 28px; background: var(--bg); }
.splash {
  max-width: 1160px; margin: 0 auto; display: grid; gap: 40px 64px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  grid-template-areas: "hero card" "log card" "watch card" "foot foot";
}
.splash-hero { grid-area: hero; display: grid; gap: 22px; justify-items: start; }
.splash-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.splash-brand img { width: 40px; height: 40px; flex: none; }
/* The one loud thing on the left: the promise, set big and tight. */
.splash-title { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 8.2vw, 112px); line-height: .9; letter-spacing: -.01em; margin: 18px 0 0; max-width: 9ch; text-wrap: balance; }
.splash-lead { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 54ch; }

/* The example, as a logbook: times down the left, who, then what happened. */
.door-log { grid-area: log; margin: 0; width: 100%; max-width: 640px; border-top: 2px solid var(--text); }
.door-log figcaption { display: flex; justify-content: space-between; padding: 10px 0 8px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.door-log-eg { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--faint); }
.door-log ol { list-style: none; margin: 0; padding: 0; }
.door-log li { display: grid; grid-template-columns: 52px minmax(110px, auto) 1fr; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.door-log time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.door-log b { font-weight: 700; }
.door-log span { color: var(--muted); }
.door-log s { color: var(--faint); }
.door-log li.bad b, .door-log li.bad span { color: var(--bad); }
.door-log li.quiet span { color: var(--good); }

.splash-watch { grid-area: watch; }
.splash-watch h2 { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.splash-watch dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 32px; }
.splash-watch dt { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.splash-watch dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.splash-foot { grid-area: foot; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 12.5px; color: var(--faint); padding-top: 14px; border-top: 1px solid var(--line); }
.signup-note { text-align: center; margin: 2px 0 0; }

/* The sign-in panel: a frosted-glass pane over the page (and the backdrop video), in the page's own colours. */
.login-card.door {
  grid-area: card; position: sticky; top: 24px; margin-top: 92px; /* lines up with the headline, below the logo */
  display: grid; gap: 14px; padding: 30px; color: var(--text); border-radius: 18px;
  /* Clear glass: a faint tint, a light frost, a bright top edge and a soft sheen across the pane. */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .04) 38%, rgba(255, 255, 255, 0) 60%),
    color-mix(in srgb, var(--surface) 6%, transparent);
  -webkit-backdrop-filter: blur(5px) saturate(1.4); backdrop-filter: blur(5px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .16); border-top-color: rgba(255, 255, 255, .32); border-left-color: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px -24px rgba(0, 0, 0, .5);
}
.door .gate-form { gap: 14px; }
.door .gate-form h2 { font-size: 32px; line-height: 1; margin: 0; }
.door-head { display: grid; gap: 8px; margin-bottom: 4px; }
.door-head .hint { margin: 0; }
.door .btn { height: 46px; border-radius: 9px; font-size: 15.5px; }
.door .field input, .door-invite input { background: color-mix(in srgb, var(--bg) 28%, transparent); border-color: rgba(255, 255, 255, .22); }
.door .field input:focus, .door-invite input:focus { border-color: var(--accent); }
.door .btn:not(.steam-btn):not(.primary) { background: transparent; border-color: color-mix(in srgb, var(--text) 20%, transparent); color: var(--text); }
.door .btn:not(.steam-btn):not(.primary):hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.door-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 2px 0; }
.door-or::before, .door-or::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--text) 13%, transparent); }
.door-invite { display: flex; gap: 8px; }
.door-invite input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: 9px; border: 1px solid; color: var(--text); font: 16px var(--sans); letter-spacing: .06em; }
.door-invite input::placeholder { letter-spacing: 0; color: var(--faint); }
.door-invite .btn { flex: none; padding: 0 18px; }
.door-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.door a { color: var(--accent-text); }
.door .form-error { color: var(--bad); }

@media (max-width: 900px) {
  .login { padding: 20px 16px 24px; }
  .splash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "card" "log" "watch" "foot"; gap: 28px; }
  .login-card.door { position: static; margin-top: 0; width: 100%; max-width: 460px; justify-self: center; }
  .splash-title { margin-top: 8px; }
  .door-log li:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
  .door-log li { grid-template-columns: 44px 1fr; row-gap: 2px; }
  .door-log li span { grid-column: 2; }
}
.gate-form { display: grid; gap: 14px; }
.gate-form h2 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.gate-form .hint code, .hint code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.version-tag { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-decoration: none; margin: 0; text-align: center; }
a.version-tag:hover { color: var(--muted); }
.account-wrap { position: relative; margin-left: 4px; }
.account-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 4px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; max-width: 200px; color: var(--text);
}
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: var(--line-strong); }
.account-btn svg { width: 16px; height: 16px; color: var(--muted); }
.account-btn .chev { width: 14px; height: 14px; transition: transform .15s; }
.account-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; overflow: hidden; }
.account-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.account-menu[hidden] { display: none; }
.account-menu-head { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-menu-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: inherit; font-weight: 550; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left;
}
.account-menu a:hover, .account-menu button:hover, .account-menu a:focus-visible, .account-menu button:focus-visible { background: var(--surface-2); outline: none; }
.account-menu svg { width: 16px; height: 16px; color: var(--muted); }
/* Signed in, sound and notifications live in the account menu. */
.topbar.has-account #mute-btn, .topbar.has-account #bell-btn { display: none; }
.account-btn { position: relative; }
.account-count { top: -5px; right: auto; left: 20px; }
.menu-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.menu-count[hidden] { display: none; }
.menu-notes { display: flex; align-items: center; gap: 4px; }
.menu-notes #account-notes { flex: 1; min-width: 0; }
.account-menu .menu-clear { width: auto; flex: none; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--glass-edge, var(--line)); border-radius: 7px; }
.account-menu .menu-clear:hover { color: var(--text); }
.account-menu .menu-clear[hidden] { display: none; }
.menu-sound { padding: 0 0 6px; }
.menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 8px; }
.menu-theme > span { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.menu-theme > span svg { width: 16px; height: 16px; color: var(--muted); }
.menu-theme .seg button { padding: 3px 9px; font-size: 12.5px; }
.menu-sound input[type=range] { display: block; width: calc(100% - 46px); margin: 0 10px 2px 36px; accent-color: var(--accent); }
.menu-sound input[type=range]:disabled { opacity: .4; }
.mini-switch { margin-left: auto; width: 30px; height: 18px; border-radius: 9px; background: var(--line-strong); position: relative; flex: none; transition: background .15s; }
.mini-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
#account-sound[aria-checked="true"] .mini-switch { background: var(--accent); }
#account-sound[aria-checked="true"] .mini-switch::after { transform: translateX(12px); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
#account-logout { color: var(--bad); }
#account-logout svg { color: var(--bad); }
.role { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.role.admin { background: var(--accent-soft); color: var(--accent-text); }
.role.member { background: var(--surface-2); color: var(--muted); }
.role.superadmin, .role.owner { background: var(--accent); color: var(--on-accent); }
.user-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-row:last-child { border-bottom: 0; }
.user-row .body { flex: 1; min-width: 200px; display: grid; gap: 3px; }
.user-row .name { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-row.disabled .name > span:first-child { color: var(--faint); text-decoration: line-through; }
.user-row .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.user-row select { height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 8px; font-size: 12.5px; }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.secret-box code { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: .03em; flex: 1; user-select: all; overflow-wrap: anywhere; }
.audit-row { display: flex; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.audit-row:last-child { border-bottom: 0; }
.audit-row .time { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }

.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.banner { padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; margin-bottom: 16px; font-weight: 550; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .grid-side, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-rows: auto 1fr auto auto auto; grid-template-areas: "top" "main" "seo" "ad" "foot"; }
  .sidebar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-bottom: 0; border-top: 1px solid var(--line); background: var(--bg-2);
  }
  .app-foot { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .nav { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; padding: 0; gap: 2px; overflow: visible; }
  .nav a { border-bottom: 0; border-radius: var(--radius-sm); }
  #account-name, .account-btn .chev { display: none; }
  .account-btn { padding: 0 3px; }
  .nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 4px; justify-content: center; white-space: normal; }
  .nav a.active { background: var(--accent-soft); color: var(--accent-text); }
  .nav a.active { box-shadow: inset 0 2px 0 var(--accent); }
  .nav a svg { width: 20px; height: 20px; }
  .nav-count { position: absolute; top: 1px; left: calc(50% + 4px); margin: 0; border: 2px solid var(--surface); }
  .topbar { padding: 8px 12px; flex-wrap: wrap; row-gap: 8px; }
  .topbar .brand { padding: 0; margin-right: auto; font-size: 19px; }
  .topbar .search { order: 3; max-width: none; flex-basis: 100%; }
  .mobile-only { display: flex; }
  .main { padding: 16px; }
  h1 { font-size: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .value { font-size: 30px; }
  .player-grid { grid-template-columns: 1fr; }
  .server-card, .server-card.big { grid-template-columns: minmax(0, 1fr); }
  .server-card .map-link, .server-card > .map-thumb { max-width: 280px; }
  .server-grid { grid-template-columns: minmax(0, 1fr); }
  .nav a { font-size: 10.5px; padding: 6px 2px; min-width: 0; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .profile-head { padding: 16px; }
  .avatar.lg { width: 64px; height: 64px; }
  .account-count { left: auto; right: -3px; } /* stays on screen when the button is just the avatar */
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; width: calc(100vw - 24px); }
  .settings-table th, .settings-table td { padding: 8px 6px; }
  .toolbar .input { max-width: none; flex-basis: 100%; }
}
/* ---- teams */
.bm-player[hidden] { display: none; }
.bm-filter { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bm-filter .input { width: 100%; height: 36px; }
.team-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); background: var(--accent-soft); border-color: transparent; text-decoration: none; }
.team-tag svg { width: 12px; height: 12px; }
.team-card .card-head select { width: auto; max-width: 52%; height: 32px; padding: 0 28px 0 10px; font-size: 13px; }
.mates { display: grid; }
.mate { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.mate:hover { background: var(--surface-2); }
.mate.off { cursor: default; }
.mate.off .body { opacity: .75; }
.mate input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.mate .body { flex: 1; min-width: 0; }
.mate .badge { margin-left: 4px; vertical-align: 1px; text-decoration: none; }
.mates-more[hidden], [data-more-body][hidden] { display: none !important; }
.mates-more { border-top: 1px dashed var(--line); }
.mates-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--accent-text); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left; }
.mates-toggle:hover { background: var(--surface-2); }
.mates-toggle .chev { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .15s; }
.mates-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mates-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
.mates-foot .btn[disabled] { opacity: .5; cursor: not-allowed; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.team-tile { display: grid; gap: 10px; padding: 14px 16px; text-decoration: none; color: inherit; }
.team-tile:hover { border-color: var(--accent); }
.team-tile .title { font-weight: 700; font-size: 15.5px; }
.team-faces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.list.bordered { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list-item.cand .btn { flex: none; }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card .card-head select { max-width: 60%; }
}

/* ---- base map */
.map-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-grid path { stroke: rgba(0,0,0,.45); stroke-width: 1; fill: none; }
.map-grid text { fill: rgba(255,255,255,.9); font-family: ui-monospace, monospace; font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: .12em; }
.map-stage.grid-small .map-grid text { display: none; }
.map-align { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.map-align input[type=range] { flex: 1 1 160px; accent-color: var(--accent); }
.map-card { container-type: inline-size; }
.map-card .card-head select { width: auto; max-width: 60%; height: 32px; padding: 0 28px 0 10px; font-size: 13px; }
.map-tools { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.zoom-btns { display: flex; gap: 2px; }
.zoom-btns .icon-btn { width: 32px; height: 32px; font-size: 18px; font-weight: 600; line-height: 1; }
.zoom-btns svg { width: 16px; height: 16px; }
.map-layout { display: grid; }
.map-stage { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #2b4a5c; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.map-stage.zoomed, .map-stage.marking { touch-action: none; }
.map-stage.marking { cursor: crosshair; box-shadow: inset 0 0 0 2px var(--accent); }
.map-pan { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; --inv: 1; }
.map-img { display: block; width: 100%; height: auto; pointer-events: none; }
.map-blank { aspect-ratio: 1; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 6.25% 6.25%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 6.25% 6.25%, var(--surface-2); }
.pin { position: absolute; width: 26px; height: 33px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -100%) scale(var(--inv)); transform-origin: 50% 100%; --c: var(--accent); z-index: 1; }
.pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff;
  font: 700 12px/1 system-ui, sans-serif; border: 2px solid rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.pin::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 0; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 9px solid rgba(255,255,255,.92); border-bottom: 0; }
.pin.focus { z-index: 3; }
.pin.focus span { outline: 3px solid #fff; outline-offset: 1px; }
.pin.other span { background: #6b6a63; }
.pin.enemy span { border-color: #141414; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.45); border-radius: 6px; }
.pin.enemy::after { border-top-color: #141414; }
.pin-dot.enemy { border-radius: 5px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.55); }
.pin.old { opacity: .55; }
.pin.s-raided span, .pin.s-abandoned span { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.35) 4px 6px); }
.k-main { --c: var(--accent); }
.k-external { --c: #c27c12; }
.k-farm { --c: #6c8a33; }
.k-stash { --c: #3f7aa6; }
.k-other { --c: #8a7a64; }
.map-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(20,20,18,.86); color: #fff; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; z-index: 4; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.base-list { min-width: 0; }
.base-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.base-row:hover, .base-row.focus { background: var(--surface-2); }
.base-row .body { flex: 1; min-width: 0; }
.base-row .badge { margin-left: 4px; }
.pin-dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; margin-top: 1px; }
.pin-dot.other { background: #6b6a63; }
.base-notes { color: var(--muted); white-space: pre-wrap; margin-top: 3px; overflow-wrap: anywhere; }
@container (min-width: 860px) {
  .map-layout { grid-template-columns: minmax(0, 600px) minmax(260px, 1fr); }
  .map-layout .base-list { border-left: 1px solid var(--line); max-height: 600px; overflow: auto; }
}

/* ---- Me page */
.nav-short { display: none; }
@media (max-width: 760px) { .nav .nav-long { display: none; } .nav .nav-short { display: inline; } }
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pt-stats span { display: block; font-size: 12px; color: var(--muted); }
.pt-stats b { font-size: 18px; }
.pt-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; }
.pt-day { display: grid; gap: 4px; justify-items: center; }
.pt-day span { font-size: 10.5px; color: var(--faint); }
.pt-bar { width: 100%; height: 90px; display: flex; align-items: flex-end; border-radius: 4px; background: var(--surface-2); }
.pt-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px; background: var(--accent); }
.pt-day:last-child span { color: var(--text); font-weight: 600; }

/* ---- arrangeable player page */
.lay-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lay-col { min-height: 80px; align-content: start; }
.lay-editing .lay-col { border: 1px dashed var(--line); border-radius: 14px; padding: 8px; }
.lay-item { min-width: 0; }
.lay-editing .lay-item { border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.lay-editing .lay-item > .card { pointer-events: none; max-height: 120px; overflow: hidden; border-top-left-radius: 0; border-top-right-radius: 0;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lay-item.is-hidden > .card { opacity: .35; }
.lay-item.is-hidden .lay-tools b { text-decoration: line-through; color: var(--muted); }
.lay-tools { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--surface-2); border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); }
.lay-tools .icon-btn { width: 32px; height: 32px; }
.lay-tools .icon-btn svg { width: 17px; height: 17px; }
.lay-handle { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.lay-handle:hover { background: var(--surface); color: var(--text); }
.lay-handle svg { width: 18px; height: 18px; }
.lay-item.dragging { box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 2px var(--accent); cursor: grabbing; }
.lay-ph { border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }

/* ---- settings: quiet hours, Discord, backups */
.time-in { width: 132px; height: 34px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.list-item.hook { align-items: flex-start; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--surface-2); font: 600 12px/1.5 ui-monospace, monospace; text-align: center; color: var(--text); }
.shortcuts dt { white-space: nowrap; }
.reasons b.neg { color: var(--good); }

/* ---- health */
.meter-row { display: grid; gap: 6px; }
.meter { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--good); min-width: 2px; }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--bad); }
.log-list { max-height: 520px; overflow: auto; }
.log-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log-row.error { background: color-mix(in srgb, var(--bad-soft) 60%, transparent); }

/* ---- base reports, wipe archive */
.map-archive { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; background: var(--info-soft); color: var(--text); border-bottom: 1px solid var(--line); }
.map-archive svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--info); }
.map-card .card-head select, .map-tools select { width: auto; max-width: 100%; height: 32px; padding: 0 28px 0 10px; font-size: 13px; }
.reports { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.report-new { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.report-new textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; }
.report-new select { width: auto; height: 34px; padding: 0 28px 0 10px; font-size: 13px; line-height: 1.2; }
.file-btn { cursor: pointer; }
.rp-preview { display: flex; align-items: center; gap: 10px; }
.rp-preview img { max-height: 90px; max-width: 160px; border-radius: 6px; border: 1px solid var(--line); }
.report-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.report { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.report .icon-btn { width: 26px; height: 26px; }
.report .icon-btn svg { width: 14px; height: 14px; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.report-img { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); }

/* ---- charts */
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hours-card, .pop-card, .dash-tips { position: relative; }
.heat { display: grid; gap: 3px; overflow-x: auto; }
.heat-row, .heat-hours { display: grid; grid-template-columns: 34px repeat(24, minmax(9px, 1fr)); gap: 3px; align-items: center; }
.heat-row > span, .heat-hours > span { font-size: 11px; color: var(--muted); }
.heat-hours > span { text-align: left; }
.heat i, .heat-legend i { display: block; aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--accent) var(--v), var(--surface-2)); }
.heat i:hover { outline: 2px solid var(--text); outline-offset: 0; }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.heat-legend i { width: 13px; }
.seg.sm button { padding: 4px 10px; font-size: 12.5px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw.c1 { background: var(--accent); }
.sw.c2 { background: var(--c2); }

/* ---- dashboard */
.you-card { margin-bottom: 16px; }
.you-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.you-me { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; text-decoration: none; color: inherit; }
.you-me b { display: block; font-size: 17px; }
.you-stat { text-align: center; padding: 6px 14px; border-radius: 10px; background: var(--surface-2); }
.you-stat .value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.you-stat.alert { background: var(--bad-soft); color: var(--bad); }
.you-team { display: grid; gap: 4px; text-decoration: none; color: inherit; padding: 6px 12px; border-radius: 10px; }
.you-team:hover { background: var(--surface-2); }
.empty-you > .card-body > svg { width: 26px; height: 26px; color: var(--accent); }
.near-card { box-shadow: 0 0 0 2px var(--bad); }
.near-card .card-head h2 { color: var(--bad); }

/* ---- read-only share page */
#share-view { min-height: 100vh; background: var(--bg); }
.share-wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; }
.share-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.share-head h1 { margin: 0; font-size: 30px; }
.share-head p { margin: 2px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; }
}
.pick-row { cursor: pointer; }
.pick-row input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.pick-row:has(input:disabled) { cursor: default; opacity: .75; }

/* ------------------------------------------------------------------ dashboard */
.quick-track { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.quick-track .input { flex: 1; min-width: 0; }
.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { color: var(--text); font-weight: 600; }
.delta.flat { color: var(--faint); font-weight: 500; }
.spark { width: 70px; height: 28px; flex: none; overflow: visible; margin-bottom: 4px; }
.spark-bars { display: flex; align-items: flex-end; gap: 1px; width: 70px; height: 28px; flex: none; margin-bottom: 4px; }
.spark-bars i { flex: 1; background: var(--faint); border-radius: 1px 1px 0 0; opacity: .7; }
.spark-bars i.now { background: var(--accent); opacity: 1; }

.since-card { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.since-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.since-list span::before { content: '•'; margin-right: 6px; color: var(--accent); }

.where-list { display: grid; }
.where-sv { padding: 12px 16px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.where-sv:last-child { border-bottom: 0; }
.where-sv.has-banner::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--banner) center / cover no-repeat; opacity: .55; }
.where-sv.has-banner::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, transparent) 55%, color-mix(in srgb, var(--surface) 70%, transparent) 100%); }
.where-sv.mine { box-shadow: inset 3px 0 0 var(--accent); }
.where-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; }
.where-head .badge svg { width: 13px; height: 13px; margin-right: 3px; }
.where-name { font-weight: 700; text-decoration: none; color: var(--text); }
.where-name:hover { text-decoration: underline; }
.where-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 4px; }
.where-team { font-size: 12.5px; font-weight: 650; color: var(--muted); padding-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where-team a { color: inherit; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dash-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 9px 3px 3px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.dash-chip:hover { border-color: var(--line-strong); }
.dash-chip.friendly { background: var(--good-soft); }
.dash-chip .avatar { border-radius: 50%; }
.dash-chip .live-dur { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.timeline-card .card-body { position: relative; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.tl-ticks { position: relative; height: 18px; font-size: 11px; color: var(--faint); }
.tl-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-ticks span.now { transform: translateX(-100%); color: var(--accent-text); font-weight: 700; }
.tl-grid { position: relative; }
.tl-team { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 2px; }
.tl-team:first-child { margin-top: 0; }
.tl-team a { color: inherit; text-decoration: none; }
.tl-row { height: 26px; }
.tl-name { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.tl-name:hover { text-decoration: underline; }
.tl-track { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.tl-track i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; min-width: 3px; cursor: default; }
.tl-track i:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.tl-track i.live { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.attention-card { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.attention-card .list-item > svg { width: 16px; height: 16px; color: var(--faint); transform: rotate(180deg); flex: none; }
.ico-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.ico-dot svg { width: 16px; height: 16px; color: var(--muted); }
.ico-dot.bad svg { color: var(--bad); }

.raid-card { position: relative; }
.raid-team { display: grid; gap: 4px; min-width: 0; }
.raid-team .title { font-weight: 700; color: var(--text); text-decoration: none; }
.raid-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
.raid-strip i { height: 16px; border-radius: 3px; background: color-mix(in oklab, var(--accent) var(--p), var(--surface-2)); }
.raid-strip i.win { box-shadow: inset 0 -3px 0 var(--good); }
.raid-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.raid-team > a.small { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.raid-team > a.small svg { width: 13px; height: 13px; }

.badge.repeat { margin-right: 6px; align-self: center; }
.feed-more { display: block; width: 100%; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.feed-more:hover { background: var(--surface-2); color: var(--text); }
.btn.pinned svg { fill: currentColor; color: var(--warn); }
@media (max-width: 760px) {
  .quick-track { flex-basis: 100%; max-width: none; }

  .where-group { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tl-axis, .tl-row { grid-template-columns: 92px minmax(0, 1fr); }
}
/* One column on narrow screens: the dashboard's cards alternate between the two columns' orders. */
@media (max-width: 1000px) {
  .lay-dash:not(.lay-editing) { display: flex; flex-direction: column; gap: 20px; }
  .lay-dash:not(.lay-editing) > .lay-col { display: contents; }
  .lay-dash:not(.lay-editing) .lay-item { order: var(--order); }
}

/* ------------------------------------------------------------------ ad spot: a banner under the page (computers) */
.side-ad { grid-area: ad; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px 24px; overflow: hidden; display: flex; flex-direction: column; }
.side-ad[hidden] { display: none; }
.side-ad .adsbygoogle { width: 100%; min-height: 90px; max-height: 280px; }
.ad-placeholder { display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; min-height: 90px; height: 100%;
  padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.ad-placeholder b { font-size: 13px; color: var(--text); letter-spacing: .02em; }
.ad-placeholder:hover { border-color: var(--accent); }
@media (max-width: 760px) { .side-ad { display: none !important; } }

/* ------------------------------------------------------------------ cookies & privacy */
.cookie-banner {
  position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(640px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.cookie-banner .cb-text { flex: 1 1 280px; min-width: 0; }
.cookie-banner p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.cookie-banner .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); } .cookie-banner .cb-actions { width: 100%; } .cookie-banner .cb-actions .btn { flex: 1; } }
.cookie-banner .linkish, #cookie-form .linkish { color: var(--accent-text); }
.cookie-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.cookie-opt p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
label.cookie-opt { cursor: pointer; }
.policy-body { max-height: min(62vh, 640px); overflow: auto; font-size: 14.5px; line-height: 1.6; }
.policy-body h2, .policy-body h3 { font-size: 15px; margin: 16px 0 4px; }
.policy-body p { margin: 6px 0; }
.policy-body ul { margin: 6px 0; padding-left: 20px; }
.policy-body li { margin: 3px 0; }
.splash-foot a { color: inherit; }
textarea.mono-ish { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }

/* self-check (Server health) */
#selfcheck-card { margin-bottom: 16px; }
.sc-group { padding: 14px 16px 0; margin: 0; }
.sc-row { align-items: flex-start; }
.sc-row > .badge { min-width: 70px; justify-content: center; margin-top: 1px; flex: none; }
.sc-row .body { min-width: 0; }
.sc-row .small { overflow-wrap: anywhere; }
.sc-fix { margin-top: 3px; color: var(--text); }
.sc-row[data-status="skip"] { opacity: .65; }
@media (max-width: 760px) { .sc-row > .badge { min-width: 0; } }
@media (max-width: 760px) { #selfcheck-card .card-head { flex-wrap: wrap; } #selfcheck-card .sc-sum { order: 3; flex-basis: 100%; } }
/* Copyright and version share one text baseline (the monospace version would otherwise sit higher). */
/* The footer on every page (0.71): copyright line, legal links, version */
.sidebar-foot.site-foot { flex-wrap: wrap; gap: 4px 18px; justify-content: center; text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.6; padding: 16px 24px 20px; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.site-foot a { color: inherit; }
.site-foot a:hover { color: var(--text); }
.site-foot .version-tag { font-size: 12px; }
.site-foot .foot-sub { flex-basis: 100%; font-size: 12px; }
.splash-foot .foot-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; font-size: 12px; }

/* admin area tabs */
.admin-tabs { margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.seg a { display: inline-block; padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* about page */
.about-hero { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 60%); }
.about-hero h1 { margin: 0; font-size: 38px; letter-spacing: .01em; }
.about-logo { flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.about-tag { margin: 2px 0 6px; color: var(--accent-text); font-weight: 650; font-size: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.about-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 14px 16px; display: grid; gap: 2px; }
.about-stat b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.about-stat span { color: var(--muted); font-size: 13px; }
.about-grid { margin-bottom: 16px; align-items: start; }
.about-text p { margin: 0 0 10px; line-height: 1.6; }
.about-text p:last-child { margin-bottom: 0; }
.about-ai { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.about-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.releases { display: grid; }
.release { border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; }
.release summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.release summary::-webkit-details-marker { display: none; }
.release summary::after { content: '+'; margin-left: auto; color: var(--faint); font-weight: 600; }
.release[open] summary::after { content: '–'; }
.release summary .version-tag { min-width: 56px; text-align: left; }
.release-notes { padding: 0 16px 14px 82px; font-size: 13.5px; color: var(--text); }
.release-notes ul { margin: 4px 0; padding-left: 18px; }
.release-notes li { margin: 3px 0; }
.release-notes p { margin: 6px 0; }
.release-notes code, .policy-body code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 760px) { .about-hero { padding: 18px; gap: 14px; } .about-hero h1 { font-size: 30px; } .about-logo { width: 56px; height: 56px; }
  .release-notes { padding-left: 16px; } }

/* players page, by team */
#players-view { flex: none; }
.team-group { margin-bottom: 18px; }
.team-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 6px 2px 10px; cursor: pointer; list-style: none; }
.team-group-head::-webkit-details-marker { display: none; }
.team-group.loose .team-group-head { cursor: default; }
.tg-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; max-width: 60%; }
.tg-where { min-width: 0; flex: 0 1 auto; max-width: 40%; }
.tg-chev { width: 0; height: 0; border-left: 5px solid var(--muted); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .15s; }
.team-group[open] > .team-group-head .tg-chev { transform: rotate(90deg); }
.team-group:not([open]) > .team-group-head { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.team-group .team-tag { display: none; } /* the section already says which team */
.tg-empty { margin: 0 0 6px 16px; }
@media (max-width: 760px) { .tg-name { max-width: 100%; } .tg-where { max-width: 100%; flex-basis: 100%; order: 9; } }

/* servers page: search */
.sv-search { margin-bottom: 20px; }
.sv-search-form { display: flex; gap: 8px; }
.sv-search-form .input { flex: 1; min-width: 0; }
.sv-results-head { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; }
#sv-results .list.bordered { margin: 0 16px 16px; }
#sv-results .empty, #sv-results .form-error { margin: 0 16px 16px; }
.sv-result .body { min-width: 0; }
.sv-result { gap: 8px; }
@media (max-width: 520px) { .sv-result { flex-wrap: wrap; } .sv-result .body { flex-basis: 100%; } .sv-result > .body + .btn { margin-left: auto; } }

/* map viewer (full screen, same page) */
.map-viewer { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: #0c0e0d; animation: fade .15s; color: #eee; }
.mv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: #0b0d0c; border-bottom: 1px solid rgba(255,255,255,.08); }
.mv-title { display: grid; min-width: 0; line-height: 1.3; }
.mv-title b { font-size: 15px; color: #fff; }
.mv-title .muted { color: rgba(255,255,255,.65); }
.map-viewer .check { color: rgba(255,255,255,.85); }
.map-viewer .icon-btn, .map-viewer .btn.ghost { color: #fff; }
.map-viewer .icon-btn:hover, .map-viewer .btn.ghost:hover { background: rgba(255,255,255,.12); }
.map-viewer .zoom-btns .icon-btn { background: rgba(255,255,255,.08); }
.mv-close svg { width: 20px; height: 20px; }
.mv-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.mv-stage.zoomed:active { cursor: grabbing; }
.mv-pan { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mv-img { display: block; width: 100%; height: auto; pointer-events: none; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.mv-stage.grid-small .map-grid text { display: none; }
.mv-status { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 14px; pointer-events: none; }
.mv-status a { color: #fff; pointer-events: auto; }
.mv-square { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font: 700 14px/1.4 ui-monospace, monospace; pointer-events: none; }
.mv-hint { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 5px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: rgba(255,255,255,.8); font-size: 12px; white-space: nowrap; pointer-events: none; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .mv-bar { gap: 6px; padding: 8px 10px; } .mv-title b { font-size: 14px; } .mv-hint { font-size: 11px; } }

/* teammates strip on the Me page: rectangles that turn into squares when there are too many for one row */
.mates { margin: -6px 0 20px; }
.mates-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.mates-head h2 { margin: 0; font-size: 15px; }
.rust-text { color: var(--accent-text); }
.mates-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mate { --c: var(--faint); position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  box-shadow: inset 3px 0 0 var(--c); transition: border-color .15s, transform .15s; }
.mate:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.mate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mate.s-rust { --c: var(--accent); }
.mate.s-online { --c: var(--good); }
.mate .avatar { width: 44px; height: 44px; }
.mate .avatar-wrap { flex: none; }
.mate-body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.mate-name { font-weight: 650; font-size: 14px; }
.mate-ban { color: var(--bad); font-size: 9px; vertical-align: 2px; }
.mate-status, .mate-where { font-size: 12.5px; color: var(--muted); }
.mate.s-rust .st { color: var(--accent-text); }
.mate.s-online .st { color: var(--good); }
.mate-status .st { font-weight: 650; }
.mate-status.short { display: none; }
.here-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 650; }
.mate.here { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
/* compact: small squares */
.mates.compact .mates-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mates.compact .mate { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 6px 5px; aspect-ratio: 1; text-align: center; box-shadow: inset 0 3px 0 var(--c); }
.mates.compact .mate .avatar { width: 38px; height: 38px; }
.mates.compact .mate-body { width: 100%; }
.mates.compact .mate-name { font-size: 12.5px; }
.mates.compact .mate-status.long, .mates.compact .mate-where { display: none; }
.mates.compact .mate-status.short { display: block; font-size: 11.5px; }
.mates.compact .mate.here::after { content: 'Your server'; position: absolute; top: 5px; right: 5px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 9.5px; font-weight: 700; line-height: 15px; }
@media (max-width: 760px) { .mates { margin-top: -8px; } }

/* ------------------------------------------------------------------ player intelligence */
.intel-body { display: grid; gap: 18px; }
.intel-block { display: grid; gap: 5px; min-width: 0; }
.intel-block .sub-label { margin-bottom: 2px; }
.heat-mini { gap: 2px; overflow: visible; }
.heat-mini .heat-row, .heat-mini .heat-hours { grid-template-columns: 14px repeat(24, minmax(0, 1fr)); gap: 2px; }
.heat-mini i { aspect-ratio: auto; height: 11px; border-radius: 2px; }
.heat-mini .heat-hours > span { font-size: 10px; }
.intel-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 16px; }
.intel-facts em { font-style: normal; font-size: 11.5px; color: var(--faint); }

/* Player Activity: the latest three, the rest folded away. */
.more-events { border-top: 1px solid var(--line); }
.more-events > summary { list-style: none; cursor: pointer; padding: 10px 16px; font-weight: 600; font-size: 13.5px; color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.more-events > summary::-webkit-details-marker { display: none; }
.more-events > summary::before { content: "▸"; color: var(--muted); }
.more-events[open] > summary::before { content: "▾"; }
.more-events > summary:hover { background: var(--surface-2); }
.more-events-list { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line); }
.more-events:not([open]) .if-open, .more-events[open] .if-closed { display: none; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ plans */
.plan-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); }
.plan-banner svg { color: var(--accent); }
.plan-banner span { flex: 1; min-width: 200px; }
.plan-now { margin-bottom: 18px; border-top: 3px solid var(--accent); }
.plan-now-name { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; }
.plan-usage { display: grid; gap: 10px; min-width: min(320px, 100%); flex: 1; max-width: 420px; }
.usage-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.usage-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.usage-bar.full i { background: var(--warn); }
.usage-bar.over i { background: var(--bad); }
.warn-text { color: var(--warn); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-card.featured:not(.current) { border-color: var(--line-strong); }
.plan-top { padding: 16px 18px 10px; display: grid; gap: 6px; justify-items: start; }
.plan-top h2 { font-family: var(--display); font-size: 26px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-list { list-style: none; margin: 0; padding: 4px 18px 14px; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.plan-list li { display: flex; gap: 8px; }
.plan-list li::before { content: "✓"; color: var(--good); font-weight: 700; }
.plan-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.plan-foot .btn { width: 100%; }
.plan-small { color: var(--muted); font-size: 13px; text-align: center; margin: 14px auto 22px; max-width: 70ch; }
.plan-lock { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.plan-lock svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent); }
.menu-plan { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--accent-text); }

/* plan badge: account menu, your own page, Settings */
.plan-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plan-badge svg { width: 12px; height: 12px; }
.plan-badge.big { height: 28px; padding: 0 11px; font-size: 13px; }
.plan-badge.big svg { width: 14px; height: 14px; }
.plan-badge.plan-raider { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan-badge.plan-clan { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan-badge.plan-staff { background: var(--info-soft); color: var(--info); border-color: transparent; }
a.plan-badge:hover { filter: brightness(1.08); }
.account-menu-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.plan-card-body { display: grid; gap: 14px; }

/* Settings → My accounts: Steam verified or not */
.steam-verify { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--warn); font-size: 13.5px; }
.steam-verify.ok { border-left-color: var(--good); }
.steam-verify > svg { color: var(--warn); flex: none; }
.steam-verify.ok > svg { color: var(--good); }
.steam-verify > span { flex: 1; min-width: 220px; }
.steam-linked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--good); }
.steam-linked .body { display: grid; gap: 1px; min-width: 0; }

/* Sign in with Steam / Discord */
.steam-btn { background: #171a21; border-color: #2a475e; color: #fff; height: 48px; font-size: 16px; font-weight: 700; width: 100%; }
.steam-btn:hover { background: #1b2838; border-color: #66c0f4; }
.door .steam-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.door .steam-btn:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.door .discord-btn svg { color: #8c96ff; }
.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; height: 44px; font-size: 15px; width: 100%; }
.discord-btn:hover { filter: brightness(1.08); background: #5865f2; }
.gate-small { text-align: center; font-size: 12.5px; margin: 4px 0 0; }
.gate-small .linkish { color: var(--accent-text); }

/* Setup guide (onboarding) */
.modal-card.ob-card { width: min(600px, 100%); }
.ob-head { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ob-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.ob-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 0; padding: 12px 18px 0; }
.ob-steps li { display: grid; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--faint); }
.ob-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line-strong); }
.ob-steps li.done::before { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ob-steps li.now::before { background: var(--accent); }
.ob-steps li.now { color: var(--text); }
.ob-body { min-height: 240px; align-content: start; }
.ob-lead { margin: 0; color: var(--muted); line-height: 1.55; }
.ob-who { display: flex; align-items: center; gap: 12px; }
.ob-who .avatar { width: 48px; height: 48px; border-radius: 10px; }
.ob-who > div { display: grid; gap: 4px; justify-items: start; }
.ob-who b { font-size: 16px; }
.ob-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-points li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ob-points li > svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: 1px; }
.ob-points li div { display: grid; gap: 2px; }
.ob-points li span { color: var(--muted); font-size: 13.5px; }
.ob-track { display: flex; gap: 8px; }
.ob-track .input { flex: 1; min-width: 0; }
.ob-usage { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-chip .avatar { width: 20px; height: 20px; border-radius: 50%; }
.ob-chip em { font-style: normal; font-size: 11px; color: var(--accent-text); font-weight: 700; }
.ob-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.ob-pick { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; cursor: pointer; min-width: 0; }
.ob-pick:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ob-pick .avatar { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.ob-ok { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--good-soft); border-left: 3px solid var(--good); }
.ob-ok > svg { width: 20px; height: 20px; color: var(--good); flex: none; margin-top: 1px; }
.ob-rows .setting-row:first-child { padding-top: 0; }
.ob-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) {
  .ob-steps li span { display: none; }
  .ob-track { flex-direction: column; }
}

/* Internal user page (super admins) */
a.user-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.user-link:hover { text-decoration-color: var(--accent); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.ui-banned { display: flex; gap: 10px; align-items: flex-start; }
.ui-banned svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ui-acct-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.ui-acct-ico svg { width: 16px; height: 16px; color: var(--muted); }
.ui-bans { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { text-align: left; font-weight: 650; color: var(--muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui-table tr:last-child td { border-bottom: 0; }

/* Banned on Steam: a large red banner on the account's page */
.ban-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--bad-strong, #b42318); color: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 60%, transparent), var(--shadow); }
.ban-banner > svg { width: 34px; height: 34px; flex: none; }
.ban-banner > div { display: grid; gap: 2px; min-width: 0; }
.ban-banner b { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.ban-banner span { font-size: 16px; font-weight: 650; }
.ban-banner small { font-size: 12.5px; opacity: .85; }
.ban-pill { background: var(--bad-strong, #b42318); color: #fff; font-weight: 700; }
@media (max-width: 520px) { .ban-banner b { font-size: 22px; } .ban-banner > svg { width: 26px; height: 26px; } }

/* Users page: where people signed up */
.geo-map { position: relative; width: 100%; aspect-ratio: 360 / 142; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.geo-map svg.world { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-map svg.world path { fill: color-mix(in srgb, var(--text) 16%, var(--surface-2)); stroke: var(--surface-2); stroke-width: .25; }
.geo-dot { position: absolute; width: calc(12px * var(--n, 1)); height: calc(12px * var(--n, 1)); transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--accent); border: 2px solid color-mix(in srgb, var(--accent) 40%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  display: grid; place-items: center; color: var(--on-accent); font-size: 10px; font-weight: 800; text-decoration: none; }
.geo-dot.approx { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); }
.geo-dot:hover { z-index: 2; filter: brightness(1.15); }
@media (max-width: 520px) { .geo-dot { width: calc(9px * var(--n, 1)); height: calc(9px * var(--n, 1)); font-size: 8px; } }

/* Admin → Overview */
.overview-grid { columns: 2; column-gap: 16px; } /* cards stack in two columns with no gaps under the short ones */
.overview-grid > * { break-inside: avoid; margin: 0 0 16px; width: 100%; display: block; }
@media (max-width: 900px) { .overview-grid { columns: 1; } }
.daily-bars { width: 100%; height: 140px; display: block; overflow: visible; }
.daily-bars .bar { fill: var(--accent); }
.daily-bars g:hover .bar { fill: var(--accent-text); }
.daily-bars .hit { fill: transparent; }
.daily-bars .base { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.daily-bars text { font-size: 11px; fill: var(--faint); font-family: var(--sans); }
.type-bars { display: grid; gap: 10px; }
.type-row { display: grid; grid-template-columns: 90px 1fr 40px 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.type-row .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.type-row .fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); min-width: 2px; }
.type-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.type-row .pc { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rev-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.rev-table th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rev-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rev-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.rev-table tr.total td { font-weight: 700; border-bottom: 0; }
.rev-table tr.muted td { color: var(--muted); }
.overview-new a.list-item, .overview-banned a.list-item { color: inherit; text-decoration: none; }
.overview-new a.list-item:hover, .overview-banned a.list-item:hover { background: var(--surface-2); }
.overview-banned { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.overview-banned .card-head h2 { color: var(--bad); }

/* Dashboard: link Discord as a second way in */
.discord-nudge { margin-bottom: 16px; border-left: 3px solid #5865f2; }
.discord-nudge > .card-body > svg { width: 22px; height: 22px; color: #8c96ff; }

/* Settings: five sections, a side menu on wide screens and a tab row on phones */
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 125px; /* under the top bar and the tab row */ display: grid; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.settings-nav a svg { width: 17px; height: 17px; flex: none; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.settings-nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.settings-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; } /* all five visible, no hidden sideways scroll */
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav a { flex: none; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); }
  .settings-nav a.active { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
}
/* Alerts: three presets */
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .presets { grid-template-columns: minmax(0, 1fr); } }
.preset { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 14px 14px 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.preset b { font-size: 15px; }
.preset span:not(.preset-dot) { color: var(--muted); font-size: 13px; line-height: 1.45; }
.preset-dot { position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); }
.preset:hover { border-color: var(--line-strong); }
.preset.on { border-color: var(--accent); background: var(--accent-soft); }
.preset.on .preset-dot { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--accent); }
.preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.alert-custom > summary { list-style: none; cursor: pointer; }
details.alert-custom > summary::-webkit-details-marker { display: none; }
details.alert-custom > summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
details.alert-custom[open] > summary svg { transform: rotate(180deg); }
details.alert-custom:not([open]) > summary { border-bottom: 0; }

/* Home: the three things people come for. One even gap between every area; cards in a row share a height. */
.home-stack { display: grid; gap: 16px; margin-bottom: 16px; }
.home-stack > .stats { margin-bottom: 0; }
.home-stack .you-card { margin-bottom: 0; }
.home-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .home-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance-away { grid-column: 1 / -1; } }
@media (max-width: 720px) { .home-glance { grid-template-columns: minmax(0, 1fr); } .glance-away { grid-column: auto; } }
.glance, .home-pair > .card { display: flex; flex-direction: column; margin: 0; }
.glance > .list, .glance > .empty, .home-pair > .card > .list, .home-pair > .card > .where-list { flex: 1 1 auto; }
.glance .card-foot, .home-pair .card-foot { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--line); }
.glance .card-foot a { color: var(--accent-text); }
.glance .empty { padding: 20px 16px; }
.glance-away .event { padding: 9px 16px; }
.glance-note { padding: 12px 16px 4px; color: var(--muted); font-size: 13.5px; }
.glance-sub { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--faint); border-top: 1px solid var(--line); }
.glance-note + .glance-sub { border-top: 0; }
.glance-latest { flex: 1 1 auto; opacity: .85; }
.glance-strip { padding: 12px 16px 4px; }
.home-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .home-pair { grid-template-columns: minmax(0, 1fr); } }
.home-stack > .timeline-card { margin: 0; }
.home-more { display: flex; justify-content: center; margin: 4px 0 20px; }
.glance > .list, .home-pair > .card > .list, .home-pair .where-list { align-content: start; align-self: stretch; }
.glance .list, .home-pair .list { display: block; }
.home-stack > .where-card { margin: 0; }

/* Community tags on player pages */
.ctags { border-top: 1px solid var(--line); padding: 14px 20px 16px; display: grid; gap: 10px; }
.ctags-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: 16px; }
.ctags-head .linkish { margin-left: auto; font-family: var(--sans); }
.ctags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ctag { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ctag:hover { border-color: var(--line-strong); color: var(--text); }
.ctag.has { color: var(--text); }
.ctag-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 12px; background: var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.ctag.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.ctag.mine .ctag-n { background: var(--accent); color: var(--on-accent); }
.ctag.good.has .ctag-n { background: var(--good-soft); color: var(--good); }
.ctag.bad.has { color: var(--bad); }
.ctag.bad.has .ctag-n { background: var(--bad-soft); color: var(--bad); }
.ctag.mine.good .ctag-n, .ctag.mine.bad .ctag-n { background: var(--accent); color: var(--on-accent); }
.ctag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctags-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.ctags-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ctags-note.bad { background: var(--bad-soft); color: var(--bad); border-left: 3px solid var(--bad); }
.ctags-note.good { background: var(--good-soft); color: var(--good); border-left: 3px solid var(--good); }

/* Sign-in page: Doorcamper in numbers */
.pub-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 2px 0 0; }
.pub-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.pub-stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pub-stats dt { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .pub-stats { gap: 8px 20px; } .pub-stats dd { font-size: 26px; } }

/* Risk signals: a tinted banner with a left rule, blue when low, amber when medium, red when high. */
.risk-banner { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--info); background: var(--info-soft); }
.risk-banner.medium { border-left-color: var(--warn); background: var(--warn-soft); }
.risk-banner.high { border-left-color: var(--bad); background: var(--bad-soft); }
.risk-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 17px; }
.risk-title svg { width: 18px; height: 18px; flex: none; color: var(--info); }
.risk-banner.medium .risk-title svg { color: var(--warn); }
.risk-banner.high .risk-title svg { color: var(--bad); }
.risk-title b { font-weight: 700; }
.risk-pct { font-weight: 600; color: var(--info); }
.risk-banner.medium .risk-pct { color: var(--warn); }
.risk-banner.high .risk-pct { color: var(--bad); }
.risk-sigs { font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.risk-sig.bad { color: var(--bad); font-weight: 600; }
.risk-sig.good { color: var(--good); font-weight: 600; }
.risk-dot { color: var(--faint); }
.risk-hint { font-size: 12px; color: var(--muted); }
.profile-risk { padding: 0 20px 14px; }
.profile-risk:empty { display: none; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 0; background: var(--line); border-top: 1px solid var(--line); }
.pstat { background: var(--surface); padding: 12px 20px; margin: 0; }
.pstat dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pstat dd { margin: 2px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; }
.everywhere { margin-top: 20px; }
.everywhere .card-head { gap: 8px; align-items: baseline; }
.everywhere .sub-label { margin-bottom: 6px; }

/* API calls (Server health) */
.api-card { margin-bottom: 20px; }
.api-card > #api-live, .api-card > .api-limits { padding: 0 20px 18px; }
.api-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin: 0 -20px 16px; }
.api-tile { background: var(--surface); padding: 12px 20px; display: grid; gap: 2px; }
.api-tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.api-tile b { font-family: var(--display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.api-tile b em { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 2px; }
.api-tile small { font-size: 12px; color: var(--faint); }
.api-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.api-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.api-panel h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.api-chart { width: 100%; height: auto; display: block; overflow: visible; }
.api-chart .bar { fill: var(--accent); }
.api-chart .has-err .bar { fill: var(--accent); opacity: .75; }
.api-chart .hit { fill: transparent; }
.api-chart g:hover .bar { filter: brightness(1.15); }
.api-chart g:hover .hit { fill: var(--surface-2); }
.api-chart .base { stroke: var(--line-strong, var(--line)); stroke-width: 1; }
.api-chart .lim { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.api-chart .lim-t, .api-chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.api-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.api-facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.bad-ink, .api-facts b.bad-ink { color: var(--bad); }
.api-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.api-table th, .api-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.api-table th:first-child, .api-table td:first-child { text-align: left; }
.api-table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.api-card .table-wrap { overflow-x: auto; }
.api-limits { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px !important; }
.api-limit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.api-limit-grid fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px 14px; margin: 0; display: grid; gap: 10px; }
.api-limit-grid legend { font-weight: 700; padding: 0 4px; }
.ctag.warn.has { color: var(--warn); }
.ctag.warn.has .ctag-n { background: var(--warn-soft); color: var(--warn); }
.ctag.mine.warn .ctag-n { background: var(--accent); color: var(--on-accent); }

/* "Is this their team?" on a player's Team card */
.team-guess { margin: 0 20px 12px; padding: 12px 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--accent); background: var(--accent-soft); display: grid; gap: 8px; }
.team-guess .tg-title { display: flex; gap: 8px; align-items: center; }
.team-guess .tg-title svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.tg-people { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-person { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
.tg-person > span { display: grid; line-height: 1.2; min-width: 0; }
.tg-person b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-person small { font-size: 11.5px; color: var(--muted); }

/* The little "i": why someone counts as a teammate */
.why-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; cursor: help;
  font: italic 700 11px/1 Georgia, serif; color: var(--muted); border: 1px solid var(--line-strong, var(--line)); background: var(--surface); }
.why-i:hover, .why-i:focus-visible { color: var(--text); border-color: var(--accent); outline: none; }
#mates .mate { position: relative; }
#mates .mate .why-i { position: absolute; top: 6px; right: 6px; z-index: 1; }
#mates.compact .mate .why-i { top: 3px; right: 3px; width: 16px; height: 16px; font-size: 10px; }
.list-item .why-i { margin-right: 4px; }
.why-pop { position: fixed; z-index: 1000; max-width: 280px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong, var(--line)); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 13px; line-height: 1.45; display: grid; gap: 2px; pointer-events: none; }
.why-pop b { margin-bottom: 2px; }
.why-pop div:last-child { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mates label.mate { position: relative; }
.mates label.mate .why-i { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; font-size: 10px; }

/* Population chart: a filled area that stretches to the card, HTML labels that stay readable */
.pop-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 28px; margin-bottom: 14px; }
.pop-stats > div:not(.pop-key) { display: grid; gap: 1px; }
.pop-stats span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pop-stats b { font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pop-stats b em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 2px; }
.pop-stats small { font-size: 12px; color: var(--muted); }
.pop-key { margin-left: auto; display: flex; gap: 14px; align-items: center; text-transform: none !important; letter-spacing: 0 !important; }
.pop-key .key, .pop-key .faint { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.pop-chart { position: relative; padding: 0 0 22px 34px; }
.pop-plot { position: relative; height: 190px; touch-action: pan-y; }
.pop-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.pop-plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pop-plot .max { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.pop-plot .wipe { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.pop-plot .area { fill: var(--accent); opacity: .16; }
.pop-plot .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pop-plot .line.c1 { stroke: var(--accent); }
.pop-plot .line.c2 { stroke: var(--c2); }
.pop-y { position: absolute; left: 0; width: 28px; text-align: right; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.pop-max { position: absolute; right: 0; transform: translateY(-120%); font-size: 11px; color: var(--muted); background: var(--surface); padding: 0 4px; }
.pop-wipe { position: absolute; top: 0; transform: translateX(4px); font-size: 11px; color: var(--muted); }
.pop-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); transform: translate(-50%, -50%); }
.pop-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text); opacity: .45; pointer-events: none; }
.server-desc { color: var(--muted); max-width: 75ch; overflow-wrap: anywhere; white-space: normal; margin: 0; }
.server-desc p { margin: 0 0 10px; } .server-desc p:last-child, .server-desc ul:last-child { margin-bottom: 0; }
.server-desc ul { margin: 0 0 10px; padding-left: 20px; } .server-desc li { margin: 2px 0; }
.server-desc.clamp { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 20px; margin: 0 0 14px; }
.sv-facts div { min-width: 0; } .sv-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sv-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
/* The "+" tile on a teammates strip */
#mates .add-mate { border: 1.5px dashed var(--line-strong, var(--line)); background: transparent; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
#mates .add-mate:hover, #mates .add-mate:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
#mates .add-mate::before { display: none; }
#mates .add-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1.5px dashed currentColor; font-size: 24px; line-height: 1; flex: none; }
#mates.compact .add-mate .mate-body { display: none; }
#mates.compact .add-plus { width: 36px; height: 36px; }
#mates .add-mate { box-shadow: none; }
.pop-yaxis { position: absolute; left: 0; top: 0; width: 28px; height: 190px; }
.pop-max { right: auto; left: 6px; }
.pop-chart { margin-top: 10px; }
/* Split button: the main action, plus an arrow with more options */
.split-btn { position: relative; display: inline-flex; }
.split-btn > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-btn > .split-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; padding-left: 8px; padding-right: 8px; }
.split-caret svg { width: 14px; height: 14px; margin: 0; }
.split-menu { right: 0; left: auto; min-width: 190px; }

/* Scout's free trial */
.trial-banner { border-left-color: var(--accent); }
.trial-lock { position: relative; min-height: 70vh; }
.trial-blur { filter: blur(7px) saturate(.7); opacity: .55; pointer-events: none; user-select: none; }
/* (scoped to the blurred stand-in: .tl-grid and .tl-row are also the dashboard's "Last 24 hours" chart) */
.trial-blur .tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.trial-blur .tl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; height: auto; }
.trial-blur .tl-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex: none; }
.trial-blur .tl-line { height: 10px; border-radius: 5px; background: var(--surface-2); }
.trial-panel { position: absolute; top: 12vh; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); display: grid; gap: 10px; }
.trial-panel h2 { margin: 0; font-family: var(--display); font-size: 24px; }
.trial-panel p { margin: 0; color: var(--muted); }
.trial-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--accent-soft); color: var(--accent); }
.trial-icon svg { width: 22px; height: 22px; }
/* Locked nav items while the trial is over: only Plans and Settings stay bright. */
body.trial-over #nav a { opacity: .4; }
/* Notes, at the bottom of the Bases card */
.map-notes { border-top: 1px solid var(--line); padding: 14px 20px 18px; display: grid; gap: 10px; }
.map-notes .sub-head { margin: 0; align-items: center; }
.map-notes .notes-form { display: grid; gap: 12px; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
/* Connection log: the 5 most recent, the rest folded away */
.log-more > summary { list-style: none; cursor: pointer; padding: 10px 20px; color: var(--accent-text, var(--accent)); font-weight: 600; font-size: 13.5px; border-top: 1px solid var(--line); }
.log-more > summary::-webkit-details-marker { display: none; }
.log-more > summary:hover { background: var(--surface-2); }
.log-more .lm-open, .log-more[open] .lm-closed { display: none; }
.log-more[open] .lm-open { display: inline; }
.log-more[open] > summary { border-bottom: 1px solid var(--line); }

/* Player page tabs (0.68) */
.ptabs { display: inline-flex; margin: 0 0 16px; }
.lay.lay-one { grid-template-columns: minmax(0, 1fr); }
.lay-col[hidden] { display: none !important; }
.lay-item[hidden] { display: none !important; }
.srv-unknown { color: var(--muted); font-weight: 500; }
.srv-unknown .mono { font-size: .85em; color: var(--faint); margin-left: 4px; }
.map-missing svg { width: 18px; height: 18px; opacity: .7; }
.map-missing:not(.xs):not(.sm) { gap: 4px; align-content: center; }

/* Settings and Admin live in the account menu (0.70) */
.account-btn.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.account-menu a.active { color: var(--accent-text); background: var(--accent-soft); }
.tg-person .why-i { position: static; flex: none; margin-left: 2px; }

/* ------------------------------------------------------------------ Outpost (0.72): news, videos, FAQ */
.op-jump { gap: 8px; margin: -4px 0 18px; }
.op-jump .chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.op-jump .chip:hover { color: var(--text); border-color: var(--line-strong); }
.op-sec { margin-bottom: 30px; scroll-margin-top: 124px; }
.op-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.op-sec-head h2 { margin: 0; font-size: 20px; }
.op-sec-head > a, .op-sec-head > span { margin-left: auto; }
.op-sec-head a svg { width: 13px; height: 13px; vertical-align: -1px; }
.op-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.op-news { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.op-news:hover { border-color: var(--line-strong); }
.op-news:hover h3 { color: var(--accent-text); }
.op-news .op-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.op-ph { display: grid !important; place-items: center; color: var(--faint); }
.op-ph svg { width: 34px; height: 34px; opacity: .6; }
.op-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.op-body h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.op-body p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.op-meta { font-size: 12px; color: var(--faint); }
.op-news.big { grid-column: span 2; grid-row: span 2; }
.op-news.big h3 { font-size: 21px; }
.op-news.big .op-body p { -webkit-line-clamp: 5; }
.op-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.op-video { text-decoration: none; color: inherit; display: grid; gap: 6px; align-content: start; }
.op-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.op-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.op-play { position: absolute; inset: 0; display: grid; place-items: center; }
.op-play svg { width: 44px; height: 44px; padding: 10px 9px 10px 11px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; transition: background .15s; }
.op-video:hover .op-play svg { background: var(--accent); }
.op-video:hover img { transform: scale(1.03); }
.op-vt { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-video:hover .op-vt { color: var(--accent-text); }
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.faq-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.faq-search svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.faq-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; color: var(--text); font: inherit; outline: none; }
.faq-search:focus-within { border-color: var(--accent); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-chips .chip { text-decoration: none; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq-list { display: grid; gap: 16px; }
.faq-group { scroll-margin-top: 80px; }
.faq-group .card-head { gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.op-faq-grid { align-items: start; }
.faq-group details, .op-faq details { border-top: 1px solid var(--line); }
.faq-group summary, .op-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-weight: 600; font-size: 14.5px; }
.faq-group summary::-webkit-details-marker, .op-faq summary::-webkit-details-marker { display: none; }
.faq-group summary svg, .op-faq summary svg { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--faint); transition: transform .15s; }
.faq-group details[open] summary svg, .op-faq details[open] summary svg { transform: rotate(180deg); }
.faq-group summary:hover, .op-faq summary:hover { background: var(--surface-2); }
.op-a a { color: var(--accent-text); }
.op-a { padding: 0 18px 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.op-a b { color: var(--text); }
body.trial-over #nav a[data-nav="outpost"] { opacity: 1; }
@media (max-width: 1000px) { .op-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .op-news.big { grid-row: auto; } .op-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .op-news-grid { grid-template-columns: minmax(0, 1fr); } .op-news.big { grid-column: auto; grid-row: auto; } .op-news.big h3 { font-size: 18px; } }

/* ------------------------------------------------------------------ Home (0.75): the splash inside the site */
.splash.in-app { max-width: none; margin: 0; }
.splash.in-app .splash-brand, .splash.in-app .splash-foot { display: none; }
/* On Home it sits in the page beside the headline and door log, centred between the menu and "Latest from Rust",
   and scrolls with the page like everything else (it doesn't follow you down). */
.splash.in-app .login-card.door { margin-top: 0; position: static; align-self: center; transform: translateY(8px); } /* +8px: equal space above and below */
.splash.in-app { grid-template-areas: "hero card" "log card" "news news" "watch watch"; }
.splash.in-app.signed-in { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: "hero side" "news news"; gap: 36px 56px; }
.splash.in-app.signed-in .login-card, .splash.in-app.signed-in .door-log, .splash.in-app.signed-in .splash-watch { display: none; }
.splash.in-app.signed-in .splash-title { font-size: clamp(44px, 6vw, 80px); margin-top: 8px; }
.splash.in-app:not(.signed-in) .home-side { display: none; }
@media (max-width: 900px) {
  .splash.in-app { grid-template-areas: "hero" "card" "log" "news" "watch"; }
  .splash.in-app.signed-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "side" "news"; }
}

/* Home: the next forced wipe and quick links (signed in), and the latest Rust news (everyone). */
.home-side { grid-area: side; display: grid; gap: 14px; align-self: start; margin-top: 8px; }
.home-wipe { padding: 18px 20px; border-left: 3px solid var(--accent); }
.home-wipe .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.home-wipe .big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.home-wipe .when { color: var(--muted); font-size: 14px; }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-link { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.home-link:hover { border-color: var(--line-strong); background: var(--surface-2); }
.home-link b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.home-link b svg { width: 16px; height: 16px; color: var(--accent-text); }
.home-link span { font-size: 12.5px; color: var(--muted); }
.home-news { grid-area: news; display: grid; gap: 16px; min-width: 0; }
.home-news-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 2px solid var(--text); padding-top: 12px; }
.home-news-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.home-news-head a { margin-left: auto; font-size: 14px; }
.home-news .op-news-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.home-news .op-news.big { grid-column: auto; grid-row: auto; }
.home-news .op-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-news .op-news-grid { grid-template-columns: minmax(0, 1fr); } .home-news .op-news:not(.big) { display: grid; grid-template-columns: 120px minmax(0, 1fr); } .home-news .op-news:not(.big) .op-img { aspect-ratio: 4 / 3; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); } .home-news .op-news:not(.big) .op-body p { display: none; } .home-news .op-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.signed-out #global-search, body.signed-out #mute-btn, body.signed-out #bell-btn { display: none; }
body.signed-out .topbar { justify-content: space-between; }
#topbar-signin { margin-left: auto; }
.login-card.flash { animation: door-flash 1.2s ease-out; }
@keyframes door-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
@media (max-width: 900px) { .splash.in-app .login-card.door { margin-top: 0; position: static; transform: none; } }
@media (max-width: 760px) { .splash.in-app .login-card.door { position: static; } }
.op-news .op-img.op-fallback { object-fit: cover; filter: saturate(.8) brightness(.85); }

/* Plans (0.75.4): the current plan stands out; other passes are greyed out while one is running */
.plan-card.current { position: relative; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, 0 10px 30px -18px var(--accent); }
.plan-ribbon { display: flex; align-items: center; gap: 6px; margin: -1px -1px 0; padding: 8px 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; border-radius: 11px 11px 0 0; }
.plan-ribbon svg { width: 14px; height: 14px; }
.plan-current-btn { width: 100%; border-color: var(--accent) !important; color: var(--accent-text) !important; background: var(--accent-soft) !important; opacity: 1 !important; cursor: default; }
.plan-current-btn svg { width: 15px; height: 15px; }
.plan-card.locked { opacity: .55; }
.plan-card.locked .btn { filter: grayscale(1); }
.plan-lock-note { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* Account activity tabs (0.78) */
.audit-tabs { flex-wrap: wrap; max-width: 100%; }
.audit-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.audit-tabs .ac { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.audit-tabs button.active .ac { background: rgba(0,0,0,.18); color: inherit; }
.audit-row[hidden] { display: none; }

/* Admin → Revenue (0.78) */
.rev-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rev-warn { margin-bottom: 16px; align-items: flex-start; }
.rev-kv { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
.rev-kv dd { text-align: right; font-variant-numeric: tabular-nums; }
.rev-table-wide td, .rev-table-wide th { white-space: nowrap; }
.ui-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.ui-table tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.ui-table tr.muted td { color: var(--faint); }
.nexus { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.nexus i { display: block; height: 100%; background: var(--accent); }

/* No ad on admin pages. */
body.admin-page #side-ad { display: none !important; }
/* Licence texts in the pop-up. */
.licence-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--mono, ui-monospace, monospace); margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); max-height: 220px; overflow: auto; }

/* Home's "Recently banned". */
.home-bans .list-item { padding-top: 8px; padding-bottom: 8px; }

/* The backdrop video: fixed behind everything, washed toward the page colour so text stays readable. The page's own
   background shows through only where nothing else is drawn. */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg) center / cover no-repeat; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.bg-video.playing video { opacity: 1; }
.bg-video::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, color-mix(in srgb, var(--bg) 90%, transparent) 100%); }
:root[data-theme="light"] .bg-video::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 62%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 92%, transparent) 100%); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bg-video::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 62%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 92%, transparent) 100%); }
}
body.has-bg-video { background: transparent; }
body.has-bg-video .login { background: transparent; }
@media (max-width: 520px) { .login-card.door { padding: 22px 20px; border-radius: 14px; } }

/* The search bar's results fold out of it, like a sheet of paper unfolding downward from the bar's bottom edge. */
.search.open input { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.search-fold {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: -1px;
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line-strong); border-top-color: var(--line);
  border-radius: 0 0 12px 12px; box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .45);
  padding: 6px 0 6px; transform-origin: top center;
}
.search.open input:focus { outline-offset: -1px; }
@media (prefers-reduced-motion: no-preference) {
  .search-fold.unfold { animation: sf-unfold .32s cubic-bezier(.2, .9, .25, 1.05) both; }
  .search-fold.unfold .sf-group, .search-fold.unfold .sf-foot { animation: sf-crease .32s ease-out both; }
  .search-fold.unfold .sf-group:nth-child(2) { animation-delay: .04s; }
  .search-fold.unfold .sf-group:nth-child(3) { animation-delay: .08s; }
  .search-fold.unfold .sf-group:nth-child(n+4), .search-fold.unfold .sf-foot { animation-delay: .12s; }
}
@keyframes sf-unfold { from { transform: perspective(900px) rotateX(-72deg); opacity: 0; } 60% { opacity: 1; } to { transform: perspective(900px) rotateX(0); } }
@keyframes sf-crease { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sf-group { padding: 4px 0; }
.sf-group + .sf-group { border-top: 1px solid var(--line); }
.sf-label { padding: 6px 14px 4px; font-size: 12px; font-weight: 600; color: var(--faint); }
.sf-row { display: flex; align-items: center; gap: 11px; padding: 7px 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.sf-row:hover, .sf-row.active { background: var(--surface-2); }
.sf-row.active { box-shadow: inset 2px 0 0 var(--accent); }
.sf-av .avatar { width: 30px; height: 30px; }
.sf-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.sf-ic svg { width: 16px; height: 16px; }
.sf-body { display: grid; min-width: 0; flex: 1; }
.sf-title, .sf-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-title { font-weight: 600; font-size: 14.5px; }
.sf-sub { font-size: 12.5px; color: var(--muted); }
.sf-row mark { background: none; color: var(--accent-text); }
.sf-side { flex: none; color: var(--faint); font-size: 12px; }
.presence-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.presence-dot.online { background: var(--good); }
.presence-dot.rust { background: var(--accent); }
.sf-foot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.sf-empty, .sf-wait { padding: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .search-fold { position: fixed; top: 104px; left: 8px; right: 8px; border-radius: 12px; max-height: calc(100dvh - 180px); } }

.login-card.door .hint, .door-legal { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .login-card.door .hint, :root[data-theme="light"] .door-legal { text-shadow: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .login-card.door .hint, :root:not([data-theme="dark"]) .door-legal { text-shadow: none; } }

/* ===================================================================== glass, for every menu
   One look, taken from the sign-in panel: clear glass with a bright top edge and a soft sheen. Bars and toggles are
   nearly clear; menus that open over the page (account, search, notifications, pop-ups) are frosted more so their
   items stay readable. Light theme: dark edges where white ones would vanish. */
:root {
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .04) 38%, rgba(255, 255, 255, 0) 60%);
  --glass-edge: rgba(255, 255, 255, .16); --glass-edge-top: rgba(255, 255, 255, .32); --glass-edge-left: rgba(255, 255, 255, .24);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .18);
  --glass-hover: rgba(255, 255, 255, .08); --glass-line: rgba(255, 255, 255, .12);
}
:root[data-theme="light"] { --glass-edge: rgba(0, 0, 0, .12); --glass-edge-top: rgba(255, 255, 255, .9); --glass-edge-left: rgba(0, 0, 0, .1); --glass-hover: rgba(0, 0, 0, .05); --glass-line: rgba(0, 0, 0, .1); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --glass-edge: rgba(0, 0, 0, .12); --glass-edge-top: rgba(255, 255, 255, .9); --glass-edge-left: rgba(0, 0, 0, .1); --glass-hover: rgba(0, 0, 0, .05); --glass-line: rgba(0, 0, 0, .1); } }

/* Clear glass: buttons, toggles and tab menus. */
.account-btn, .seg {
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 8%, transparent);
  -webkit-backdrop-filter: blur(5px) saturate(1.4); backdrop-filter: blur(5px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left);
  box-shadow: var(--glass-hi);
}
.account-btn:hover, .account-btn[aria-expanded="true"] { background: var(--glass-sheen), color-mix(in srgb, var(--surface) 16%, transparent); }
.account-btn.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--glass-hi); }
.seg a.active { background: color-mix(in srgb, var(--surface) 55%, transparent); box-shadow: var(--glass-hi); }
.seg button:hover:not(.active), .seg a:hover:not(.active) { background: var(--glass-hover); }

/* Frosted glass: menus and panels that open over the page. */
.account-menu, .search-fold, .drawer-panel, .why-pop, .settings-nav {
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 58%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left);
  box-shadow: var(--glass-hi), 0 30px 80px -24px rgba(0, 0, 0, .55);
}
.search-fold { border-top-color: var(--glass-edge); }
.drawer-panel { background: var(--glass-sheen), color-mix(in srgb, var(--surface) 70%, transparent); border-top: 0; border-right: 0; border-bottom: 0; }
.drawer-panel header, .drawer-panel footer, .account-menu-head, .account-menu .menu-sep, .sf-group + .sf-group, .sf-foot { border-color: var(--glass-line); }
.account-menu .menu-sep { background: var(--glass-line); }
.account-menu a:hover, .account-menu button:hover, .account-menu a:focus-visible, .account-menu button:focus-visible,
.sf-row:hover, .sf-row.active { background: var(--glass-hover); }
.why-pop { background: var(--glass-sheen), color-mix(in srgb, var(--surface) 78%, transparent); }
.settings-nav { padding: 6px; border-radius: 12px; box-shadow: var(--glass-hi); }
.settings-nav a:hover { background: var(--glass-hover); }

/* The top bar and the tab menu under it: glass bars. The frost sits on a layer behind each bar's contents, so menus
   inside the bar (account, search) can still see the page behind them. */
.topbar, .sidebar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar::before, .sidebar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glass-sheen), color-mix(in srgb, var(--bg) 42%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.topbar { isolation: isolate; border-bottom-color: var(--glass-line); }
.sidebar { isolation: isolate; border-bottom-color: var(--glass-line); }
.topbar::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

/* ===================================================================== Outpost → Tools */
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tk-card { display: grid; gap: 6px; align-content: start; padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s; }
.tk-card:hover { border-color: var(--line-strong); }
.tk-card:hover h3 { color: var(--accent-text); }
.tk-card h3 { margin: 4px 0 0; font-size: 16px; }
.tk-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tk-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.tk-ic svg { width: 19px; height: 19px; }
.tk-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; margin-bottom: 6px; }
.tk-back svg { width: 14px; height: 14px; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tk-layout > .tk-out { position: sticky; top: 124px; }
@media (max-width: 900px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } .tk-layout > .tk-out { position: static; } }
.tk-group { padding: 6px 0; }
.tk-group + .tk-group { border-top: 1px solid var(--line); }
.tk-group h3 { margin: 8px 16px 4px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.tk-row { display: flex; align-items: center; gap: 10px; padding: 6px 16px; }
.tk-row .tk-name { flex: 1; min-width: 0; font-weight: 550; }
.tk-row .tk-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.tk-row.on .tk-name { color: var(--text); }
.tk-row:not(.on) .tk-name { color: var(--muted); }
.tk-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.tk-step button { width: 30px; height: 30px; border: 0; background: none; color: var(--text); font-size: 17px; cursor: pointer; }
.tk-step button:hover { background: var(--glass-hover, var(--surface)); }
.tk-step input { width: 52px; height: 30px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; font: 600 14px var(--sans); -moz-appearance: textfield; }
.tk-step input::-webkit-inner-spin-button, .tk-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tk-big { display: grid; gap: 2px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tk-big .label { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.tk-big .value { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.tk-big .value small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-table th, .tk-table td { padding: 8px 16px; text-align: left; border-top: 1px solid var(--line); }
.tk-table th { font-size: 12px; color: var(--faint); font-weight: 600; border-top: 0; }
.tk-table td.n, .tk-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tk-table tr.best td { background: var(--accent-soft); }
.tk-table tr.best td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tk-table tr.na td { color: var(--faint); }
.tk-note { margin: 12px 0 0; }
.tk-actions { display: flex; gap: 8px; padding: 10px 16px 14px; flex-wrap: wrap; }
.tk-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 14px 16px; }

/* Find & track: what picking an account does. */
.find-mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Servers: "Active now" cards (0.93) */
.sv-live-list { display: grid; gap: 16px; margin-bottom: 8px; }
.sv-live { padding: 0; overflow: hidden; }
.sv-live-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sv-live-thumb { flex: none; display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.sv-live-thumb > * { width: 100%; height: 100%; }
.sv-live-head .body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sv-live-head .title { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.sv-live-head .title:hover { color: var(--accent-text); }
.sv-live-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sv-live-facts b { color: var(--text); }
.sv-pop { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-right: -8px; }
.sv-pop i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sv-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.sv-live-grid > div { padding: 12px 16px 14px; min-width: 0; }
.sv-live-grid > div + div { border-left: 1px solid var(--line); }
.sv-live-h { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sv-live-people { display: grid; gap: 2px; }
.sv-live-p { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.sv-live-p:hover { background: var(--surface-2); }
.sv-live-p .body { flex: 1; min-width: 0; }
.sv-live-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 45%; }
.sv-live-tags .badge svg { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.sv-ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-ops li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.sv-ops li > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--faint); }
.sv-ops li b { color: var(--text); }
.sv-ops li a { color: inherit; }
.sv-ops li a:hover b { color: var(--accent-text); }
.sv-ops li.hot { box-shadow: inset 3px 0 0 var(--accent); }
.sv-ops li.hot > svg { color: var(--accent-text); }
.sv-ops li.dim { background: transparent; border: 1px dashed var(--line); }
@media (max-width: 860px) {
  .sv-live-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-live-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ Server page: monuments (RustMaps, 0.94) */
.mon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.mon { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; min-width: 0; }
.mon span { flex: 1; min-width: 0; }
.mon b { color: var(--accent-text); font-size: 12.5px; }

/* Chips (topic links, jump links, filters): the same clear glass as the menus, readable over the background. */
.chip, .op-jump .chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 14%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left);
  box-shadow: var(--glass-hi); color: var(--text); text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover, .op-jump .chip:hover { background: var(--glass-sheen), color-mix(in srgb, var(--surface) 30%, transparent); color: var(--text); border-color: var(--glass-edge-top); }
.chip.active { background: var(--glass-sheen), color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--glass-hi); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="light"] .chip { text-shadow: none; background: var(--glass-sheen), color-mix(in srgb, var(--surface) 55%, transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chip { text-shadow: none; background: var(--glass-sheen), color-mix(in srgb, var(--surface) 55%, transparent); } }

/* FAQ: a menu of topics beside one topic at a time (Help, and Outpost's Rust FAQ). */
.faq-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-main { display: grid; gap: 14px; min-width: 0; }
.faq-main .faq-search { max-width: none; }
.faq-nav .faq-n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }
.faq-nav a.active .faq-n { color: inherit; opacity: .8; }
.faq-layout.searching .faq-nav a.active { background: transparent; color: var(--muted); }
.faq-group { scroll-margin-top: 130px; }
@media (max-width: 760px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .faq-nav .faq-n { display: none; }
}

/* Loading a page: its rough shape in clear glass with a soft sweep of light, faded in. */
.page-loading { display: grid; gap: 14px; animation: pl-in .35s ease both; }
.page-loading .sk {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 12%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.3); backdrop-filter: blur(6px) saturate(1.3);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left); box-shadow: var(--glass-hi);
}
.page-loading .sk::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: pl-sweep 1.4s ease-in-out infinite;
}
.page-loading .sk-title { height: 30px; width: 220px; border-radius: 8px; }
.page-loading .sk-sub { height: 14px; width: min(460px, 70%); border-radius: 6px; margin-bottom: 8px; }
.page-loading .sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-loading .sk-card { height: 150px; }
.page-loading .sk-wide { height: 220px; }
@keyframes pl-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-sweep { to { transform: translateX(100%); } }
@media (max-width: 760px) { .page-loading .sk-grid { grid-template-columns: minmax(0, 1fr); } .page-loading .sk-card:nth-child(n+2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-loading, .page-loading .sk::after { animation: none; } }
:root[data-theme="light"] .page-loading .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .page-loading .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); } }
.mon-more { border-top: 1px solid var(--line); }
.mon-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 600; font-size: 14px; }
.mon-more summary::-webkit-details-marker { display: none; }
.mon-more summary svg { width: 15px; height: 15px; color: var(--faint); transition: transform .15s; }
.mon-more[open] summary svg { transform: rotate(180deg); }
.mon-more summary:hover { background: var(--surface-2); }
.mon-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; padding: 2px 16px 12px; }
.mon-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mon-kind .mono { flex-basis: 100%; }

/* Monument labels on the full-screen map. */
.mv-mons { position: absolute; inset: 0; pointer-events: none; }
.mv-mon { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.mv-mon.minor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-width: 1px; background: rgba(255, 255, 255, .75); border-color: rgba(0, 0, 0, .5); }
.mv-mon i { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff;
  padding: 1px 6px; border-radius: 6px; background: rgba(15, 15, 15, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }

/* Map layers panel (full-screen map). */
.mv-layers-wrap { position: relative; }
.mv-layers {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 270px; padding: 10px; border-radius: 12px; display: grid; gap: 2px;
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); box-shadow: var(--glass-hi), 0 20px 50px -18px rgba(0, 0, 0, .6);
}
.mv-layers[hidden] { display: none; }
.mv-layers-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 8px; font-size: 13px; }
.mv-layer-row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.mv-layer-row:hover { background: var(--glass-hover); }
.mv-layer-row > i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.mv-layer-row .mini-switch-wrap { margin-left: auto; display: flex; }
.mv-layer-row input { position: absolute; opacity: 0; pointer-events: none; }
.mv-layer-row input:checked + .mini-switch { background: var(--accent); }
.mv-layer-row input:checked + .mini-switch::after { transform: translateX(12px); }
.mv-layer-row input:focus-visible + .mini-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.mv-layer[hidden] { display: none; }
.mv-layer .mv-mon { background: var(--lc); }
.mv-layer .mv-mon.minor { background: var(--lc); border-color: rgba(255, 255, 255, .85); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

/* Chinese and Japanese: Barlow for Latin letters and numbers, then the device's own CJK font (lang picks the right
   glyph shapes). Uppercase labels and wide letter-spacing don't suit CJK text, so they're relaxed. */
:root[lang="zh-Hans"] { --sans: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif; --display: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
:root[lang="ja"] { --sans: "Barlow", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; --display: "Barlow Condensed", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }
:root.cjk body { line-height: 1.6; }
:root.cjk h1, :root.cjk .card-head h2, :root.cjk .section-title, :root.cjk .eyebrow, :root.cjk .sv-live-h { letter-spacing: 0; }

/* Language menu (top bar). Same clear glass as the account button; the menu frosted like the others. */
.lang-wrap { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border-radius: 999px; cursor: pointer; color: var(--text); font: inherit; font-weight: 600; font-size: 13px;
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 8%, transparent);
  -webkit-backdrop-filter: blur(5px) saturate(1.4); backdrop-filter: blur(5px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left); box-shadow: var(--glass-hi);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--glass-sheen), color-mix(in srgb, var(--surface) 16%, transparent); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); display: block; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; border-radius: 12px; display: grid; gap: 1px;
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) 58%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left);
  box-shadow: var(--glass-hi), 0 30px 80px -24px rgba(0, 0, 0, .55);
}
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--glass-hover); outline: none; }
.lang-menu button[aria-checked="true"] { font-weight: 700; }
.lang-menu .tick { width: 16px; height: 16px; margin-left: auto; color: var(--accent-text); }
.legal-note { margin: 0 0 14px; }
@media (max-width: 640px) { .lang-btn .lang-code, .lang-btn .chev { display: none; } .lang-btn { padding: 0 8px; } }

/* ------------------------------------------------------------------ public pages: the reference article under a tool */
.seo-slot { grid-area: seo; padding: 0 24px 24px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }
.seo-slot[hidden] { display: none; }
.seo-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; line-height: 1.6; color: var(--text); }
.seo-page .seo-h1 { font-size: 22px; margin: 0 0 6px; }
.seo-page .seo-desc { color: var(--muted); margin: 0 0 18px; }
.seo-page h2 { font-size: 18px; margin: 26px 0 8px; }
.seo-page h3 { font-size: 15px; margin: 18px 0 6px; }
.seo-page p, .seo-page ul { margin: 0 0 10px; max-width: 80ch; }
.seo-table { overflow-x: auto; margin: 0 0 12px; }
.seo-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.seo-table th, .seo-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.seo-table thead th { color: var(--muted); font-weight: 600; }
.seo-more { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.wp-next { padding: 22px; margin-bottom: 16px; }
.wp-next .wp-when { font-size: 22px; font-weight: 700; margin-top: 4px; }
.wp-next .wp-in { color: var(--accent-text); font-weight: 600; margin-top: 2px; }
.wp-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.wp-list li span + span { margin-left: 10px; }
@media (max-width: 760px) { .seo-slot { padding: 0 16px 16px; } .seo-page { padding: 16px; } }

/* ===================================================================== glass boxes and menus
   Every box (cards, pop-ups, notices) and every menu is the same glass: --box-tint is how much of the page colour
   fills it (0% = clear) and --box-blur how much it frosts what's behind. Settings → Account → Glass changes both
   (saved in the browser); these are the defaults. */
:root { --box-tint: 0%; --box-blur: 5px; }
.card, .modal-card, .toast, .seo-page, .trial-panel, .chart-tip,
.account-menu, .search-fold, .drawer-panel, .why-pop, .settings-nav {
  background: var(--glass-sheen), color-mix(in srgb, var(--surface) var(--box-tint), transparent);
  -webkit-backdrop-filter: blur(var(--box-blur)) saturate(1.4); backdrop-filter: blur(var(--box-blur)) saturate(1.4);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top); border-left-color: var(--glass-edge-left);
}
.card { box-shadow: var(--glass-hi), var(--shadow); }
.modal-card, .account-menu, .search-fold, .drawer-panel, .why-pop, .toast { box-shadow: var(--glass-hi), 0 30px 80px -24px rgba(0, 0, 0, .55); }
.drawer-panel { border-top: 0; border-right: 0; border-bottom: 0; }
.search-fold { border-top-color: var(--glass-edge); }
.toast.urgent { border-left: 4px solid var(--bad); }
.toast.error { border-color: var(--bad); }
.card-head, .card-foot, .modal-card header, .modal-card footer { border-color: var(--glass-line); }
/* A box inside a box doesn't frost twice. */
.card .card, .modal-card .card { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Words stay readable over the moving background when a box is nearly clear. */
.card, .modal-card, .toast, .account-menu, .search-fold, .drawer-panel, .why-pop, .settings-nav, .chart-tip { text-shadow: 0 1px 2px color-mix(in srgb, var(--bg) calc(100% - var(--box-tint)), transparent); }
.card input, .card select, .card textarea, .card .btn, .modal-card input, .modal-card select, .modal-card textarea, .modal-card .btn { text-shadow: none; }
/* The setting itself. */
.glass-set { display: grid; gap: 10px; width: min(320px, 100%); }
.glass-set label { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.glass-set output { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.glass-set input[type=range] { width: 100%; accent-color: var(--accent); }
.glass-set .glass-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------------ the Rust site's own pages */
.signin-btn { height: 36px; }
.signin-btn[hidden], .account-btn[hidden] { display: none; }

/* Home: the headline, set big like the sign-in page's. */
.hero { display: grid; gap: 18px; justify-items: start; padding: 28px 0 34px; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7.4vw, 104px); line-height: .9; letter-spacing: -.01em; margin: 0; max-width: 12ch; text-wrap: balance; }
.hero-lead { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.hero-btn { height: 46px; padding: 0 20px; font-size: 15.5px; border-radius: 9px; }
.stat-of { font-size: 20px; color: var(--faint); margin-left: 6px; font-weight: 600; }

/* Servers */
.server-card.srv { grid-template-columns: 200px minmax(0, 1fr); }
.srv-live { display: grid; gap: 10px; align-content: start; padding: 4px 18px 4px 2px; border-right: 1px solid var(--line); min-height: 100%; }
.srv-live .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.pop { display: grid; gap: 8px; }
.pop-n { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pop-n b { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pop-n span { color: var(--muted); font-size: 15px; font-weight: 600; }
.pop-n em { font-style: normal; }
.connect-row { gap: 8px; margin-top: 4px; }
.connect-row .btn.ghost { font-family: var(--mono); font-size: 13px; }
.srv-tile { display: grid; gap: 12px; padding: 16px; align-content: start; }
.srv-tile-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.srv-tile .title { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.15; }
.srv-tile .pop-n b { font-size: 30px; }
.srv-tile .live-dot { margin-top: 8px; flex: none; }
@media (max-width: 900px) {
  .server-card.srv { grid-template-columns: minmax(0, 1fr); }
  .srv-live { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
}

/* Store */
.good-banner svg { color: var(--good); }
.plan-card .plan-top h2 { margin: 0; }
.plan-card .small svg { width: 13px; height: 13px; vertical-align: -2px; }

/* Stats (placeholder) */
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.lb-rank { width: 22px; text-align: right; font-family: var(--display); font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.card-head > svg { width: 18px; height: 18px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; } }

/* Discord */
.discord-hero .card-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px; }
.dh-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #5865f2; color: #fff; }
.dh-icon svg { width: 34px; height: 34px; }
.dh-body { display: grid; gap: 8px; }
.dh-body h2 { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 0; line-height: 1.05; }
.dh-join { height: 46px; padding: 0 20px; font-size: 15.5px; }
.rules { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.rules li::marker { font-family: var(--display); font-weight: 700; color: var(--accent-text); }
@media (max-width: 700px) { .discord-hero .card-body { grid-template-columns: minmax(0, 1fr); } }

/* Support */
.faq-a { padding: 0 18px 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.faq-a p { margin: 0 0 8px; } .faq-a p:last-child { margin: 0; }
.tk-ic.sm { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.tk-ic.sm svg { width: 16px; height: 16px; }
.thread { display: grid; gap: 12px; margin-bottom: 16px; max-width: 860px; }
.msg header { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.msg-body { padding: 10px 16px 14px; line-height: 1.6; overflow-wrap: anywhere; }
.msg-body p { margin: 0 0 8px; } .msg-body p:last-child { margin: 0; }
.msg.staff { border-left: 3px solid var(--accent); }
#tk-reply { max-width: 860px; }

/* Forms (tickets, admin) */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.form-grid.tight { gap: 12px; }
.form-grid > .span-2, .form-grid .span-2 { grid-column: 1 / -1; }
.form-grid .field small.hint { font-weight: 400; }
.form-sec { grid-column: 1 / -1; margin: 6px 0 -4px; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.form-sec:first-child { margin-top: 0; }
.check-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 550; min-height: 38px; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.check-row input:disabled + span { color: var(--faint); }
.modal-card.wide { width: min(760px, 100%); }
.modal-card footer .spacer { flex: 1; }
.field textarea.mono, textarea.mono { font-family: var(--mono); font-size: 13px; }
.faq-row { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.faq-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
a.list-item > svg:last-child { transform: rotate(180deg); color: var(--faint); width: 15px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-card .plan-list { align-content: start; }
.srv-map { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: var(--radius-sm); background: var(--surface-2); transition: transform .2s; }
.srv-map-btn { position: relative; display: block; width: 100%; max-width: 180px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: none; cursor: zoom-in; overflow: hidden; }
.srv-map-btn:hover .srv-map, .srv-map-btn:focus-visible .srv-map { transform: scale(1.04); }
.srv-map-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.srv-map-zoom { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, .55); opacity: .85; transition: opacity .15s; }
.srv-map-btn:hover .srv-map-zoom { opacity: 1; }
.srv-map-zoom svg { width: 13px; height: 13px; }
/* The map viewer */
.modal-card.map-card { width: min(1100px, 100%); }
.map-card header { gap: 10px; flex-wrap: wrap; }
.mz-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mz-level { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.mz-stage { position: relative; height: min(calc(100dvh - 170px), 900px); overflow: hidden; background: #0d2633; cursor: zoom-in; touch-action: none; user-select: none; }
.mz-stage.zoomed { cursor: grab; }
.mz-stage.dragging { cursor: grabbing; }
/* The square canvas (picture + grid + dots) is moved and scaled as one. */
.mz-body { display: flex; min-height: 0; }
.mz-body .mz-stage { flex: 1; min-width: 0; }
.mz-canvas { position: absolute; left: 50%; top: 50%; transform-origin: center; } /* no will-change: it would blur everything when zoomed */
.mz-stage.dragging .mz-canvas { will-change: transform; }
.mz-stage:not(.mid) .mz-grid .gt { display: none; }
.mz-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.mz-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mz-grid .gl line { stroke: rgba(0, 0, 0, .45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mz-grid .gt text { fill: rgba(0, 0, 0, .6); font-family: var(--mono); font-weight: 600; }
.mz-dots { position: absolute; inset: 0; }
.mz-dot { position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1)); display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.mz-dot i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--dot, #e5e5e5); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); flex: none; }
.mz-dot.major i { width: 13px; height: 13px; }
.mz-dot span { position: absolute; left: 16px; font-size: 11.5px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 6px #000; pointer-events: none; display: none; }
.mz-dot.major span, .mz-stage.close .mz-dot span { display: block; }
.l-monuments { --dot: #ff6b2c; } .l-caves { --dot: #8b6b4a; } .l-tunnels { --dot: #9aa3ad; } .l-labs { --dot: #2bb3c0; } .l-wells { --dot: #4f9bea; }
.l-water { --dot: #7cc4f2; } .l-ruins { --dot: #7a9a3a; } .l-terrain { --dot: #b6aa94; } .l-power { --dot: #f2c94c; }
.mz-sw { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); border: 1.5px solid #fff; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.mz-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); padding: 5px 9px; border-radius: 7px; background: rgba(10, 10, 10, .88); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; z-index: 2; }
.mz-tip .mono { color: #ffb08a; margin-left: 4px; }
.mz-side { width: 280px; flex: none; overflow: auto; padding: 12px 14px; border-left: 1px solid var(--line); max-height: min(calc(100dvh - 170px), 900px); display: grid; gap: 2px; align-content: start; }
.mz-side .check-row { min-height: 30px; gap: 8px; font-size: 13.5px; font-weight: 500; }
.mz-side .check-row .small { margin-left: auto; }
.mz-list { display: grid; }
.mz-li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.mz-li:hover, .mz-li:focus-visible { background: var(--surface-2); }
.mz-ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-li b { font-size: 12px; color: var(--accent-text); }
.mz-more { margin-top: 10px; } .mz-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.mz-src { margin-left: 8px; }
@media (max-width: 900px) {
  .mz-body { position: relative; }
  .mz-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; width: min(300px, 85%); background: var(--surface); box-shadow: var(--shadow-lg); max-height: none; }
  .map-card header h2 { flex-basis: 100%; }
  .mz-src { margin-left: 0; }
}
.mz-hint { margin: 0; padding: 8px 18px 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .modal:has(.map-card) { padding: 0; } .modal-card.map-card { border-radius: 0; max-height: 100dvh; } .mz-stage { height: calc(100dvh - 150px); } }

.mgr-card { margin-bottom: 18px; }
.mgr-kv { max-width: 520px; }
.badge svg { width: 12px; height: 12px; }

/* Tickets: players and notes */
.pp { display: grid; gap: 8px; }
.pp .faq-search { max-width: none; }
.pp-results { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pp-item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.pp-item:hover, .pp-item:focus-visible { background: var(--surface-2); }
.tk-me { display: flex; align-items: center; gap: 6px; color: var(--muted); flex-wrap: wrap; }
.tk-me svg { width: 15px; height: 15px; color: var(--good); flex: none; }
.tk-picked { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-picked:empty { display: none; }
.tk-picked .ctag { height: auto; padding: 4px 4px 4px 12px; gap: 8px; }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.warn-text { color: var(--warn); }
.tk-staff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.tk-staff .thread, .tk-staff #tk-reply { max-width: none; }
.tk-side { display: grid; gap: 14px; }
.tk-player .card-head h2 { font-size: 19px; }
.tk-player .kv dd { text-align: right; }
.sub-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.notes { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.note { padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-2) 70%, transparent); border-left: 3px solid var(--info); }
.note-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.note-body { font-size: 13.5px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.note-body p { margin: 0 0 6px; } .note-body p:last-child { margin: 0; }
.note-form { display: grid; gap: 6px; }
.note-form textarea { width: 100%; min-height: 60px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.note-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
@media (max-width: 1000px) { .tk-staff { grid-template-columns: minmax(0, 1fr); } .tk-side { position: static; max-height: none; } }

.field .pp .faq-search input, .pp .faq-search input { border: 0; background: transparent; padding: 10px 0; height: auto; box-shadow: none; outline: none; }
.field .pp .faq-search input:focus { outline: none; }
.tk-me .mono { font-size: 12px; }

/* Server banner: the picture sharp at its own size, over a blurred copy of itself (hides low resolution). */
.server-card.srv.has-art { grid-template-columns: 200px minmax(0, 520px) minmax(0, 1fr); position: relative; isolation: isolate; overflow: hidden; }
.server-card.srv.has-art::before { content: ''; position: absolute; inset: -60px; z-index: -2; background: var(--art) center / cover no-repeat;
  filter: blur(36px) saturate(1.25); opacity: .6; transform: translateZ(0); }
.server-card.srv.has-art::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 92%, transparent) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 55%, color-mix(in srgb, var(--surface) 55%, transparent) 100%); }
.srv-art { margin: 0; display: flex; justify-content: center; align-items: center; align-self: center; padding: 0 8px; opacity: 0; transition: opacity .3s; }
.srv-art.ready { opacity: 1; }
.srv-art img { display: block; width: auto; max-width: min(100%, var(--nat, 100%)); max-height: 260px; height: auto; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .55); }
@media (max-width: 1100px) { .server-card.srv.has-art { grid-template-columns: 200px minmax(0, 1fr); } .srv-art { grid-column: 1 / -1; grid-row: 1; justify-content: center; } .srv-art img { max-height: 220px; width: auto; } }
@media (max-width: 900px) { .server-card.srv.has-art { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .srv-art { transition: none; } }

.srv-rm { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.srv-rm:hover { text-decoration: underline; }
.srv-rm svg { width: 13px; height: 13px; }
/* The Connect / F1 / address bar sits at the bottom of the server card. */
.server-card.srv .server-info { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.server-card.srv .server-info > .connect-row { margin-top: auto; padding-top: 12px; }

/* Stats */
.st-chips { margin: 0 0 16px; }
.st-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.st-row .st-val { font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-row.me { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.st-row a { color: inherit; text-decoration: none; } .st-row a:hover { text-decoration: underline; }
.lb-rank.top { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; text-align: center; color: #1d0e05; }
.lb-rank.top1 { background: #f2c94c; } .lb-rank.top2 { background: #c9ced6; } .lb-rank.top3 { background: #d39a63; }
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-tile { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.st-tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.st-tile b { font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-tile em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent-text); }
@media (max-width: 1000px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* Stats: the animal row under Hunting */
.st-sub { margin-top: -6px; padding-left: 14px; border-left: 2px solid var(--accent); }
.st-sub .chip.sm { padding: 4px 11px; font-size: 12.5px; }

/* Home: a server's name opens it on the Servers page */
.srv-tile .srv-tile-link { color: var(--text); text-decoration: none; display: inline-block; }
.srv-tile .srv-tile-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.srv-tile .srv-tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Servers: the one you came for */
.server-card { scroll-margin-top: 130px; }
.server-card.srv-flash { animation: srv-flash 2.4s ease-out; }
@keyframes srv-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .server-card.srv-flash { animation: none; outline: 2px solid var(--accent); } }

.st-sub .chip em { font-style: normal; margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
/* Signed out: no names */
.st-names { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.st-names svg { width: 16px; height: 16px; flex: none; }
.st-names span { flex: 1; min-width: 180px; }
.st-hidden { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------------ Latest from Rust (Home, 1.17) */
/* Facepunch's three newest posts (the first one wider) and four creator videos, below the servers. */
.rust-news { margin-top: 30px; }
.rust-news .sec-h { padding-top: 14px; border-top: 2px solid var(--text); margin-top: 0; flex-wrap: wrap; row-gap: 4px; }
.rn-news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rn-news-grid.n1 { grid-template-columns: minmax(0, 1fr); }
.rn-news-grid.n2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.rn-news { display: flex; flex-direction: column; overflow: hidden; color: var(--text); text-decoration: none; padding: 0; transition: border-color .15s; }
.rn-news:hover { border-color: var(--line-strong); }
.rn-news:hover h3 { color: var(--accent-text); }
.rn-news:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn-pic { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; flex: none; }
.rn-pic img, .rn-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rn-pic img.rn-fallback { opacity: .55; }
.rn-nopic { width: 100%; height: 100%; background: var(--surface-2); }
.rn-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rn-meta { font-size: 12px; color: var(--faint); }
.rn-news h3 { margin: 0; font: 600 16px/1.25 var(--sans); transition: color .15s; overflow-wrap: anywhere; }
.rn-news.big h3 { font-size: 21px; }
.rn-news p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rn-news.big p { -webkit-line-clamp: 5; }
.rn-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rn-video { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; min-width: 0; }
.rn-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.rn-thumb img { transition: transform .2s; }
.rn-video:hover .rn-thumb img { transform: scale(1.03); }
.rn-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; transition: background .15s; }
.rn-play svg { width: 18px; height: 18px; margin-left: 2px; }
.rn-video:hover .rn-play { background: var(--accent); color: var(--on-accent); }
.rn-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.rn-vtitle { font: 600 14px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rn-video:hover .rn-vtitle { color: var(--accent-text); }
@media (max-width: 900px) {
  .rn-news-grid, .rn-news-grid.n2 { grid-template-columns: minmax(0, 1fr); }
  .rn-news:not(.big) { flex-direction: row; }
  .rn-news:not(.big) .rn-pic { width: 120px; aspect-ratio: 4 / 3; }
  .rn-news:not(.big) .rn-body { padding: 10px 12px; justify-content: center; }
  .rn-news:not(.big) p { display: none; }
  .rn-news.big h3 { font-size: 18px; }
  .rn-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .rn-thumb img, .rn-news, .rn-news h3, .rn-play { transition: none; } .rn-video:hover .rn-thumb img { transform: none; } }

/* ---- Report a player (1.18.0) */
.rp-head { text-align: center; margin: 4px 0 20px; }
.rp-kick { font: 700 11.5px/1 var(--sans, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rp-head h1 { font-family: var(--display); font-size: clamp(28px, 5vw, 38px); margin: 10px 0 8px; }
.rp-head p { color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.55; }
.rp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 0 auto 20px; }
.rp-steps li { display: grid; justify-items: center; gap: 6px; position: relative; font-size: 13px; color: var(--faint); }
.rp-steps li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--line-strong, var(--line)); }
.rp-steps li:first-child::before { display: none; }
.rp-steps li.done::before, .rp-steps li.on::before { background: var(--accent); }
.rp-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong, var(--line)); background: var(--surface); }
.rp-dot svg { width: 16px; height: 16px; }
.rp-steps li.on { color: var(--text); font-weight: 600; }
.rp-steps li.on .rp-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.rp-steps li.done { color: var(--muted); }
.rp-steps li.done .rp-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.rp-wiz { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.rp-wiz .card-head { flex-wrap: wrap; gap: 4px 10px; }
.rp-wiz .card-head h2 { display: flex; align-items: center; gap: 8px; }
.rp-wiz .card-head h2 svg { width: 17px; height: 17px; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.rp-player + .rp-player { margin-top: 8px; }
.rp-player.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rp-player .body { flex: 1; min-width: 0; }
.rp-player .title { font-weight: 700; }
.rp-kv { text-align: right; font-size: 12px; color: var(--faint); } .rp-kv b { display: block; color: var(--text); font-size: 13.5px; }
.rp-empty { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; }
.rp-empty svg { width: 15px; height: 15px; color: var(--good); }
.rp-choices { display: grid; gap: 10px; }
.rp-choice { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.rp-choice:hover { border-color: var(--faint); }
.rp-choice .rp-ic { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.rp-choice .rp-ic svg { width: 18px; height: 18px; }
.rp-choice .body { flex: 1; display: grid; gap: 2px; }
.rp-choice .rp-tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong, var(--line)); display: grid; place-items: center; flex: none; }
.rp-choice .rp-tick svg { width: 14px; height: 14px; opacity: 0; }
.rp-choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.rp-choice.on .rp-ic { color: var(--accent); }
.rp-choice.on .rp-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.rp-choice.on .rp-tick svg { opacity: 1; }
.rp-foot { display: flex; align-items: center; gap: 10px; }
.rp-count { font-weight: 500; margin-left: 6px; }
.rp-kv-row { margin-bottom: 14px; } .rp-kv-row .sub-label { margin-bottom: 6px; }
.rp-kv-row a { display: inline-flex; gap: 6px; align-items: center; word-break: break-all; } .rp-kv-row a svg { width: 14px; height: 14px; flex: none; }
.rp-noclip { max-width: 440px; text-align: center; padding: 24px; }
.modal-card .rp-noclip h2 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
.modal-card .rp-noclip p { margin: 0 0 18px; line-height: 1.55; }
.rp-big { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.rp-big svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .rp-two { grid-template-columns: 1fr; }
  .rp-steps li { font-size: 12px; }
  .rp-player { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ My profile (1.18.0) */
.pf-head { display: flex; gap: 20px; align-items: center; padding: 20px; margin-bottom: 16px; border-left: 3px solid var(--accent); }
.pf-head .avatar.lg { width: 104px; height: 104px; }
.pf-who { min-width: 0; display: grid; gap: 8px; }
.pf-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-name h1 { margin: 0; font-size: 30px; line-height: 1.1; }
.pf-name .badge svg { width: 13px; height: 13px; margin-right: 4px; }
.pf-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.pf-facts > span { display: inline-flex; align-items: center; gap: 6px; }
.pf-facts svg { width: 15px; height: 15px; color: var(--accent); }
.pf-sid .chip { cursor: default; font-size: 12.5px; }
.pf-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-tile .value { font-size: 32px; }
.pf-of { font-size: 18px; color: var(--muted); }
.pf-tile-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.pf-tile.accent .pf-tile-ic { background: var(--accent-soft); color: var(--accent-text); }
.pf-tile.good .pf-tile-ic { background: var(--good-soft); color: var(--good); }
.pf-tile.bad .pf-tile-ic { background: var(--bad-soft); color: var(--bad); }
.pf-tile-ic svg { width: 20px; height: 20px; }
.pf-tools { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-tools .faq-search { flex: 1 1 260px; margin: 0; }
.pf-filter { display: flex; align-items: center; gap: 8px; }
.pf-table { overflow-x: auto; }
.pf-table td.num, .pf-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-clip { display: inline-flex; align-items: center; gap: 5px; }
.pf-clip svg { width: 14px; height: 14px; }
.pf-foot { display: flex; align-items: center; gap: 6px; padding: 12px 18px; }
.pf-next svg { transform: rotate(180deg); }
@media (max-width: 760px) {
  .pf-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .pf-head .avatar.lg { width: 72px; height: 72px; }
  .pf-name h1 { font-size: 24px; }
  .pf-tiles { grid-template-columns: 1fr 1fr; }
  .pf-tile .value { font-size: 26px; }
  .pf-tile-ic { width: 36px; height: 36px; }
  .pf-table .pf-opt { display: none; }
  .pf-tools { padding: 12px; }
}
.pf-plink { color: inherit; text-decoration: none; } .pf-plink:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Sentry (1.19.0) */
.sn-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.sn-top .hero-card .kick { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.sn-top .hero-card h1 { white-space: pre-line; }
.sn-rank { padding: 20px; display: grid; gap: 10px; align-content: start; }
.sn-rank-head { display: flex; gap: 14px; align-items: center; }
.sn-rank-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); color: #fff; flex: none; }
.sn-rank-ic.trainee { background: var(--surface-2); color: var(--warn); border: 1px solid var(--line); }
.sn-rank-ic svg { width: 26px; height: 26px; }
.sn-rank-name { font: 700 26px/1.1 var(--display); }
.sn-prog { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 120px; }
.sn-prog i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sn-prog.good i { background: var(--good); } .sn-prog.warn i { background: var(--warn); }
.banner.sn-trial { display: flex; align-items: center; gap: 12px; } .banner.sn-trial > div:first-of-type { flex: 1; } .banner.sn-trial .sn-prog { width: 260px; flex: none; }
.sn-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.sn-metric { padding: 18px 20px; display: grid; gap: 4px; }
.sn-m-label { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sn-m-val { font: 700 34px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.sn-metric .sn-prog { margin-top: 8px; }
.sn-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.sn-case { gap: 14px; }
.sn-thumb { width: 120px; height: 68px; border-radius: 8px; background: linear-gradient(135deg, #1d2a24, #2a2219); display: grid; place-items: center; flex: none; color: #fff; }
.sn-thumb svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.55); }
.sn-votes { white-space: nowrap; }
.sn-res { gap: 10px; } .sn-xp { font-family: var(--mono); font-size: 13px; width: 44px; text-align: right; color: var(--muted); }
.sn-xp.up { color: var(--good); } .sn-xp.down { color: var(--bad); }
.sn-bought { display: flex; align-items: center; gap: 6px; color: var(--accent); } .sn-bought svg { width: 14px; height: 14px; }
.sn-practice { border-top: 1px solid var(--line); } .sn-practice .card-head { border-bottom: 1px solid var(--line); }
.sn-note { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; } .sn-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-text); } .sn-note p { margin: 4px 0 0; white-space: pre-wrap; }
.sn-adm-note { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 4px; white-space: pre-wrap; }
.sn-perk b { color: var(--accent); }
.sn-n { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; }
.sn-n.big { width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent-text); border-radius: 8px; }
.sn-top-row.me { background: var(--accent-soft); }
.sn-sofar { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.sn-req { display: grid; gap: 4px; }
.sn-r { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .sn-r:last-child { border-bottom: 0; }
.sn-r .grow { flex: 1 0 auto; } .sn-r > .small { flex: 0 1 auto; text-align: right; }
.sn-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); flex: none; }
.sn-ok.no { background: var(--surface-2); color: var(--muted); } .sn-ok svg { width: 14px; height: 14px; }
.sn-rules p { margin: 0 0 10px; padding-left: 14px; position: relative; line-height: 1.5; } .sn-rules p::before { content: "•"; position: absolute; left: 0; }
.sn-how-h { font: 700 24px/1.2 var(--display); margin: 26px 0 12px; }
.sn-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.sn-how .card { padding: 18px; } .sn-how h3 { margin: 12px 0 6px; font-size: 15px; } .sn-how p { margin: 0; line-height: 1.5; }
.sn-case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.sn-video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0f1714; border: 1px solid var(--line); }
.sn-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.sn-video-out { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; color: #eee; text-decoration: none; font-weight: 600; }
.sn-video-out svg { width: 56px; height: 56px; padding: 16px; border-radius: 50%; background: rgba(0,0,0,.6); }
.sn-video-out:hover svg { background: var(--accent); }
.sn-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sn-facts > div:last-child { border-bottom: 0; } .sn-facts > div > span:first-child { color: var(--muted); }
.sn-vote { display: grid; gap: 10px; }
.sn-btn { justify-content: center; height: 46px; font-size: 15px; width: 100%; }
.sn-btn.bad, .sn-tags .btn.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.sn-btn.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); color: var(--good); }
.sn-tags { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sn-tags .btn { justify-self: start; }
.sn-voted { display: flex; gap: 10px; align-items: center; } .sn-voted > svg { width: 22px; height: 22px; color: var(--good); }
.sn-answer { padding: 12px; border-radius: 10px; border: 1px solid var(--line); display: grid; gap: 6px; }
.sn-answer.good { border-color: color-mix(in srgb, var(--good) 50%, transparent); } .sn-answer.good b { color: var(--good); }
.sn-answer.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); } .sn-answer.bad b { color: var(--bad); }
.sn-paused { max-width: 620px; margin: 30px auto; padding: 34px 32px; display: grid; justify-items: center; text-align: center; gap: 14px; border-top: 2px solid var(--warn); }
.sn-paused-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.sn-paused-ic svg { width: 38px; height: 38px; }
.sn-paused h1 { margin: 0; font: 700 44px/1 var(--display); }
.sn-paused > p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 46ch; }
.sn-paused-next { text-align: left; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); width: 100%; }
.sn-paused-next b { display: flex; align-items: center; gap: 8px; } .sn-paused-next b svg { width: 16px; height: 16px; color: var(--accent); }
.sn-paused-next p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sn-num { width: 110px; }
@media (max-width: 980px) {
  .sn-top, .sn-main, .sn-case-grid { grid-template-columns: 1fr; }
  .sn-how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sn-metrics { grid-template-columns: 1fr; }
  .sn-how { grid-template-columns: 1fr; }
  .sn-thumb { width: 64px; height: 44px; } .sn-votes { display: none; }
  .banner.sn-trial { flex-wrap: wrap; } .banner.sn-trial .sn-prog { width: 100%; }
  .sn-top .hero-card h1 { font-size: 34px; }
}
/* Sentry 1.23.0: tabs, tiles, start bar, verdict marks, profile, handbook */
.sn-tabs { margin: -4px 0 16px; }
.sn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.sn-tile { padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.sn-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sn-tile-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.sn-tile-ic svg { width: 17px; height: 17px; }
.sn-tile .sn-m-val { font-size: 30px; }
.sn-tile .sn-prog { margin: 4px 0 2px; }
.sn-start { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; background: linear-gradient(100deg, var(--accent-soft), var(--surface) 70%); }
.sn-start .grow, .sn-prof-head .grow { flex: 1; min-width: 0; }
.sn-start b { font: 700 18px/1.2 var(--display); }
.sn-start-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); flex: none; }
.sn-start-ic svg { width: 22px; height: 22px; }
.sn-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sn-mark { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; font-size: 14px; }
.sn-mark svg { width: 16px; height: 16px; }
.sn-mark.good svg { color: var(--good); } .sn-mark.warn svg { color: var(--warn); } .sn-mark.bad svg { color: var(--bad); }
.sn-mark:hover { border-color: var(--line-strong); }
.sn-mark.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sn-mark.good.active { border-color: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 25%, transparent); }
.sn-mark.warn.active { border-color: var(--warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 25%, transparent); }
.sn-mark.bad.active { border-color: var(--bad); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 25%, transparent); }
.sn-detail { display: grid; gap: 12px; }
.sn-notes textarea { resize: vertical; min-height: 76px; }
.sn-notes .faint { justify-self: end; }
.sn-conf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sn-guide { margin-top: 14px; }
.sn-prof-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; }
.sn-prof-xp { text-align: right; }
.sn-ladder { position: relative; padding-top: 54px; margin-bottom: 14px; }
.sn-step { position: absolute; top: 0; display: grid; gap: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 6px; border-left: 2px solid var(--line); height: 50px; }
.sn-step b { color: var(--text); font-size: 13px; }
.sn-step.on b { color: var(--accent-text); } .sn-step.on { border-left-color: var(--accent); }
.sn-ladder-bar { height: 10px; position: relative; }
.sn-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.sn-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.sn-col i { align-self: end; display: block; min-height: 3px; border-radius: 5px 5px 2px 2px; background: var(--accent); }
.sn-col span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.sn-book { display: grid; gap: 16px; }
.sn-book p { margin: 0 0 10px; line-height: 1.6; } .sn-book p:last-child { margin-bottom: 0; }
.sn-marks-help { display: grid; gap: 10px; }
.sn-mark-help { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.sn-mark-help .sn-mark { cursor: default; justify-content: flex-start; }
.sn-sev { text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; min-width: 62px; justify-content: center; }
.sn-tips p { padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.good-t { color: var(--good); } .bad-t { color: var(--bad); }
@media (max-width: 980px) { .sn-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .sn-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sn-tile .sn-m-val { font-size: 24px; } .sn-tile-ic { display: none; }
  .sn-start { flex-wrap: wrap; } .sn-start .btn { width: 100%; justify-content: center; }
  .sn-mark-help { grid-template-columns: 1fr; gap: 4px; }
  .sn-step span, .sn-step:not(.on) b { display: none; } .sn-step { font-size: 11px; }
  .sn-chart { height: 130px; } .sn-col span { display: none; }
}

/* Report videos (1.24.0) */
.sn-video video { width: 100%; height: 100%; display: block; background: #000; }
.sn-src { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rp-clip-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-clip-pick input[type=url] { flex: 1 1 240px; min-width: 0; }
.rp-file { cursor: pointer; max-width: 100%; }
.rp-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rp-videos { display: grid; gap: 10px; margin-top: 8px; }
.rp-videos video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }

/* ===================================================================== Builds (1.27.0): the build server's saved bases */
.bd-toolbar .bd-find, .toolbar .bd-find { flex: 1 1 240px; max-width: 340px; display: flex; }
.toolbar .bd-find .input { max-width: none; width: 100%; }
.bd-filters-btn { display: none; }
.bd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.bd-filters { padding: 14px 16px; position: sticky; top: calc(var(--top-h, 56px) + 16px); }
.bd-fsec { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.bd-fsec:last-of-type { border-bottom: 0; }
.bd-fsec h3 { margin: 0 0 10px; font: 700 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bd-range { margin-bottom: 10px; }
.bd-range label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.bd-range label svg { width: 15px; height: 15px; color: var(--muted); }
.bd-mm { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; color: var(--faint); }
.bd-mm .input { height: 32px; min-width: 0; padding: 0 8px; font-size: 13px; }
.bd-filters select.input { height: 32px; font-size: 13px; }
.bd-fbtns { display: flex; gap: 8px; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bd-grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bd-grid > .bd-empty { grid-column: 1 / -1; }
.bd-howto p { max-width: 520px; margin: 8px auto 0; }
.bd-more { display: flex; justify-content: center; margin-top: 16px; }
.bd-note { margin-top: 14px; }
.bd-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .12s; }
.bd-card:hover { border-color: var(--faint); }
.bd-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bd-pic { position: relative; aspect-ratio: 2 / 1; background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.bd-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-foot { width: 100%; height: 100%; padding: 10px; fill: color-mix(in srgb, var(--accent) 55%, var(--surface-2)); stroke: var(--surface-2); stroke-width: .08; }
.bd-nopic svg { width: 34px; height: 34px; color: var(--faint); }
.bd-vis { position: absolute; top: 8px; left: 8px; }
/* (1.30.0) the owner's Public/Private switch */
.bd-cw { position: relative; display: flex; min-width: 0; }
.bd-cw > .bd-card { flex: 1; min-width: 0; }
.bd-vistog { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.bd-vistog i { position: relative; width: 26px; height: 15px; border-radius: 999px; background: var(--line-strong); transition: background .15s; flex: none; }
.bd-vistog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bd-vistog.on { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.bd-vistog.on i { background: var(--good); }
.bd-vistog.on i::after { transform: translateX(11px); }
.bd-vistog.busy { color: var(--muted); border-style: dashed; }
.bd-vistog.busy i { opacity: .6; }
.bd-vistog:hover { border-color: var(--text); }
.bd-vistog.card { position: absolute; top: 8px; left: 8px; z-index: 1; box-shadow: var(--shadow); }
.bd-pic .bd-vis + .bd-vis { left: auto; right: 8px; }
.bd-pic .badge:not(.online):not(.warn) { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.bd-body { padding: 12px 14px 14px; display: grid; gap: 7px; min-width: 0; }
.bd-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bd-title b { font: 700 17px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.bd-likes { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-likes svg { width: 13px; height: 13px; }
.bd-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bd-code { padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 20px; }
.tag.accent { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bd-costs { display: flex; flex-wrap: wrap; gap: 5px; }
.bd-res { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text); }
.bd-res svg, .bd-costtile svg { width: 13px; height: 13px; flex: none; }
.bd-res.wood svg, .bd-costtile.wood svg { color: #b07a45; }
.bd-res.stone svg, .bd-costtile.stone svg { color: #9a968c; }
.bd-res.metal svg, .bd-costtile.metal svg { color: #7f93a6; }
.bd-res.hqm svg, .bd-costtile.hqm svg { color: #4fa3a0; }
.bd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.bd-head h1 { overflow-wrap: anywhere; }
.bd-head p a { color: inherit; font-weight: 600; }
.bd-headtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bd-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.bd-view { overflow: hidden; }
.bd-stage { aspect-ratio: 2 / 1; background: var(--surface-2); display: grid; place-items: center; }
.bd-stage .bd-img.big { object-fit: contain; max-width: 768px; margin: 0 auto; }
.bd-stage .bd-foot.big { padding: 24px; }
.bd-stage .bd-nopic.big svg { width: 56px; height: 56px; }
/* (1.28.0) the 3D view of a build */
.bd-stage { position: relative; }
.bd-3d { position: absolute; right: 14px; bottom: 14px; box-shadow: var(--shadow); }
.bd-stage.b3-on { display: block; aspect-ratio: 16 / 10; min-height: 340px; }
.b3-wait { position: relative; height: 100%; display: grid; place-items: center; }
.b3-still { position: absolute; inset: 0; display: grid; place-items: center; }
.b3-still .bd-img { width: 100%; height: 100%; object-fit: contain; filter: blur(1px); opacity: .7; }
.b3-still .bd-foot { opacity: .7; }
.bd-shot { animation: fade .35s ease-out; }
.b3 { position: relative; width: 100%; height: 100%; overflow: hidden; outline: none; background: var(--surface-2); touch-action: none; user-select: none; -webkit-user-select: none; }
.b3:fullscreen { width: 100vw; height: 100vh; }
/* on a build's page, a finger moving up or down still scrolls the page (sideways turns the build) */
.b3.b3-preview:not(.flying):not(.b3-max):not(:fullscreen), .b3.b3-preview:not(.flying):not(.b3-max):not(:fullscreen) canvas { touch-action: pan-y !important; }
.b3.b3-max { position: fixed; inset: 0; z-index: 200; width: auto; height: auto; }
body.b3-noscroll { overflow: hidden; }
.b3-canvas, .b3-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b3.flying .b3-canvas canvas { cursor: crosshair; }
.b3-bar { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-start; pointer-events: none; }
.b3-bar > * { pointer-events: auto; }
.b3-grow { flex: 1; pointer-events: none; }
.b3-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.b3-btn svg { width: 16px; height: 16px; flex: none; }
.b3-btn:hover { background: var(--surface); }
.b3-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.b3-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.b3-seg { display: inline-flex; }
.b3-seg .b3-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.b3-seg .b3-btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; }
.b3-filter { position: relative; }
.b3-menu { position: absolute; top: 40px; left: 0; min-width: 230px; padding: 8px; z-index: 2; }
.b3-menu p { margin: 6px 6px 2px; }
.b3-check { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.b3-check:hover { background: var(--surface-2); }
.b3-check input { accent-color: var(--accent); }
.b3-check span { flex: 1; }
.b3-check em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.b3-help, .b3-slow { position: absolute; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.b3-help { bottom: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); border: 1px solid var(--line); }
.b3-help b { color: var(--text); font-weight: 600; }
.b3-slow { top: 54px; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.b3-pad { position: absolute; right: 12px; bottom: 52px; display: grid; grid-template-columns: repeat(2, 48px); gap: 6px; }
.b3-pad .b3-btn { height: 48px; justify-content: center; padding: 0; }
.b3-pop { position: absolute; padding: 8px 10px; font-size: 13px; pointer-events: none; display: flex; gap: 8px; align-items: center; }
.b3-grade { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.b3-grade::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.b3-status { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 13px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); pointer-events: none; }
.b3-status[hidden] { display: none; }
.b3-status .spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@media (max-width: 640px) {
  .bd-stage.b3-on { aspect-ratio: 1 / 1; min-height: 0; }
  .b3-btn span.b3-hide-sm, .b3-filter .b3-btn span { display: none; }
  .b3-help { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 24px); }
}
.bd-stage-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.bd-foot.mini { width: 120px; height: 60px; padding: 2px; }
.bd-plan { display: flex; min-height: 60px; align-items: center; }
.bd-planimg { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; border: 1px solid var(--line); }
.bd-side { display: grid; gap: 14px; }
.bd-tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bd-tile { position: relative; display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.bd-tile span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bd-tile b { font: 700 19px/1.1 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.bd-tile b .mono { font-size: 15px; letter-spacing: .04em; }
.bd-tile .icon-btn { position: absolute; top: 6px; right: 6px; }
.bd-rate .card-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.like-btn em { font-style: normal; margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .8; }
.like-btn.primary svg { fill: currentColor; }
.bd-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bd-steps .hint { margin-top: 10px; }
.bd-staff { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.bd-costgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.bd-costtile { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.bd-costtile svg { width: 22px; height: 22px; }
/* (1.30.0) Rust's own item icons; the drawn ones only when the picture can't be had */
.bd-ri { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bd-ri img { width: 17px; height: 17px; object-fit: contain; display: block; }
.bd-ri svg { display: none; }
.bd-ri.noimg img { display: none; }
.bd-ri.noimg svg { display: block; }
.bd-costtile .bd-ri img { width: 34px; height: 34px; }
.bd-range label .bd-ri img { width: 19px; height: 19px; }
.bd-costtile b { display: block; font: 700 18px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.bd-costtile span { font-size: 12px; color: var(--muted); }
.bd-costh { margin-top: 8px; }
.bd-costh h2 { margin: 0; }
.bd-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 18px; }
.bd-dep { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.bd-dep .bd-ri img { width: 34px; height: 34px; }
.bd-dep .bd-ri svg { width: 22px; height: 22px; }
.bd-dep .bd-ri { flex: none; }
.bd-dep .bd-depn { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-dep b { font-variant-numeric: tabular-nums; font-size: 13px; }
@media (max-width: 1100px) { .bd-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .bd-layout { grid-template-columns: minmax(0, 1fr); }
  .bd-filters-btn { display: inline-flex; }
  .bd-filters { display: none; position: static; }
  .bd-filters.open { display: block; }
  .bd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .bd-grid, .bd-grid.wide { grid-template-columns: minmax(0, 1fr); } .bd-tiles3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================================================================== circuits (1.31.0) */
.main.cx-wide { max-width: none; padding-bottom: 16px; }
.cx-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cx-title { min-width: 0; flex: 1 1 260px; }
.cx-title h1 { margin: 0; font: 700 26px/1.1 var(--display); overflow-wrap: anywhere; }
.cx-head input.cx-name { width: 100%; max-width: 520px; border: 1px solid transparent; background: none; color: var(--text); font: 700 26px/1.1 var(--display); padding: 2px 6px; margin-left: -7px; border-radius: 8px; }
.cx-head input.cx-name:hover { border-color: var(--line-strong); }
.cx-head input.cx-name:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; background: var(--surface); }
.cx-sub { margin-top: 4px; }
.cx-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-menu-wrap { position: relative; }
.cx-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 30; }
/* (1.37.1) the Flat look opens the account menu upwards from the sidebar: this one drops down under its button */
.cx-menu-wrap .account-menu.cx-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: max-content; min-width: 230px; max-width: calc(100vw - 32px); }
.cx-menu button.danger { color: var(--bad); }
.cx-desc { margin: -4px 0 12px; color: var(--muted); max-width: 900px; white-space: pre-line; }

.cx { user-select: none; -webkit-user-select: none; display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px; height: var(--cx-h, calc(100dvh - 190px)); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; }
.cx-pal { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.cx-pal-head { padding: 10px; border-bottom: 1px solid var(--line); }
.cx-pal-head .input { width: 100%; height: 34px; }
.cx-pal-list { overflow-y: auto; padding: 4px 6px 12px; flex: 1; }
.cx-pal-cat { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 6px 6px; }
.cx-pal-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 6px; border: 0; background: none; color: var(--text); border-radius: 8px; cursor: grab; text-align: left; font: 500 13.5px/1.2 var(--sans); touch-action: none; }
.cx-pal-item:hover { background: var(--surface-2); }
.cx-pal-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pal-draw { font: 600 11.5px/1 var(--mono); color: var(--faint); }
.cx-ico { position: relative; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.cx-ico > svg { width: 16px; height: 16px; }
.cx-ico > img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; }
.cx-ico.big { width: 44px; height: 44px; border-radius: 10px; }
.cx-ico.big > svg { width: 22px; height: 22px; }
.cx-ghost { position: fixed; left: 0; top: 0; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--dg-float, 0 8px 24px rgba(0,0,0,.3)); pointer-events: none; font: 600 13px/1 var(--sans); }
.cx-ghost .cx-pal-draw { display: none; }

.cx-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cx-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--surface); }
.cx-bar .icon-btn { width: 32px; height: 32px; }
.cx-bar .seg button { padding: 0 9px; height: 26px; font-size: 12.5px; }
.cx-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.cx-hour { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 12.5px/1 var(--mono); }
.cx-hour svg { width: 16px; height: 16px; }
.cx-hour input { width: 110px; accent-color: var(--accent); }
.cx-hour span { min-width: 92px; }
.cx-totals { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cx-totals b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.cx-dotsep { margin: 0 6px; color: var(--faint); }
.cx-bad { color: var(--bad); font-weight: 600; }
.cx.paused .cx-bar #cx-run { background: var(--accent-soft); color: var(--accent-text); }

.cx-svg { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; user-select: none; -webkit-user-select: none; background: var(--bg); cursor: grab; outline: none; }
.cx-svg:active { cursor: grabbing; }
.cx-dot { fill: var(--line-strong); }
.cx-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); max-width: 360px; text-align: center; color: var(--muted); font-size: 14px; pointer-events: none; line-height: 1.5; }
.cx-pal-toggle { display: none; }

/* a part */
.cx-part { cursor: move; }
.cx-body { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.cx-part.sel .cx-body { stroke: var(--accent); stroke-width: 2; }
.cx-part.warn .cx-body { stroke: var(--warn); }
.cx-part.sel.warn .cx-body { stroke: var(--accent); }
.cx-strip { fill: transparent; }
.cx-part.on .cx-strip { fill: var(--accent); }
.cx-ico-bg { fill: var(--surface-2); }
.cx-glyph { color: var(--muted); }
.cx-name { fill: var(--text); font: 650 13.5px var(--sans); }
.cx-line { fill: var(--muted); font: 500 11.5px var(--sans); }
.cx-part.warn .cx-line { fill: var(--warn); }
.cx-rule { stroke: var(--line); }
.cx-lamp { fill: var(--line-strong); }
.cx-part.on .cx-lamp { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.cx-part.cat-light.on .cx-lamp { fill: #ffd34d; filter: drop-shadow(0 0 6px #ffd34d); }
.cx-part.cat-light.on .cx-ico-bg { fill: color-mix(in srgb, #ffd34d 30%, var(--surface-2)); }
.cx-pill { cursor: pointer; }
.cx-pill rect { fill: var(--surface-2); stroke: var(--line-strong); }
.cx-pill text { fill: var(--text); font: 700 11.5px var(--sans); pointer-events: none; }
.cx-pill:hover rect { stroke: var(--accent); }
.cx-part.on .cx-pill rect { fill: var(--accent); stroke: var(--accent); }
.cx-part.on .cx-pill text { fill: var(--on-accent); }
.cx-note { width: 100%; height: 100%; overflow: hidden; font: 500 12.5px/1.35 var(--sans); color: var(--text); white-space: pre-wrap; }
.cx-part.cat-note .cx-body { fill: color-mix(in srgb, #ffd34d 12%, var(--surface)); stroke-dasharray: 4 3; }

/* dots and wires */
.cx-port { cursor: crosshair; }
.cx-port .cx-hit { fill: transparent; }
/* dots and wires (like a wiring diagram: hollow rings, thick striped wires with square corners, a label on each wire) */
.cx { --w-off: #5b79b8; --w-on: #46c552; --w-stripe: #eef2f8; --w-edge: #0b0f16; --p-ring: #9cbcea; }
.cx-port circle:not(.cx-hit) { fill: var(--w-edge); stroke: var(--p-ring); stroke-width: 2.6; }
.cx-port:hover circle:not(.cx-hit) { stroke: var(--accent); stroke-width: 3.2; }
.cx-port.hot circle:not(.cx-hit) { fill: var(--w-on); stroke: #d7f6da; }
.cx-plabel { fill: var(--muted); font: 500 11.5px var(--sans); pointer-events: none; }
.cx-wire-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
.cx-wo, .cx-wire, .cx-ws { fill: none; stroke-linejoin: miter; stroke-linecap: butt; pointer-events: none; }
.cx-wo { stroke: var(--w-edge); stroke-width: 8.5; }
.cx-wire { stroke: var(--wc, var(--w-off)); stroke-width: 5.5; }
.cx-ws { stroke: var(--w-stripe); stroke-width: 5.5; stroke-dasharray: 6 6; }
.cx-wg.hot .cx-wire { stroke: var(--wc, var(--w-on)); }
.cx-wg:not(.hot) .cx-wire { opacity: .8; }
.cx-wg:not(.hot) .cx-ws { opacity: .75; }
.cx-wg.hot .cx-ws { animation: cx-flow .9s linear infinite; }
.cx.paused .cx-wg.hot .cx-ws { animation: none; }
@keyframes cx-flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .cx-wg.hot .cx-ws { animation: none; } }
.cx-wg.sel .cx-wo { stroke: var(--accent); stroke-width: 11; }
.cx-wg:hover .cx-wo { stroke: color-mix(in srgb, var(--accent) 60%, var(--w-edge)); }
.cx-wtag { pointer-events: none; }
.cx-wtag rect { fill: #f3f5f9; stroke: #26303f; stroke-width: 1; }
.cx-wtag text { fill: #1b2433; font: 700 11px var(--mono); }
.c-red { --wc: #e5484d; } .c-green { --wc: #46a758; } .c-blue { --wc: #3e8ef7; } .c-yellow { --wc: #e8b931; }
.c-pink { --wc: #e93d82; } .c-purple { --wc: #8e4ec6; } .c-white { --wc: #c9c6bf; }
.cx-wire.temp { fill: none; stroke: var(--p-ring); stroke-width: 4; stroke-dasharray: 6 6; pointer-events: none; }
.cx-wire.temp.ok { stroke: var(--w-on); }
.cx-box { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-dasharray: 4 3; pointer-events: none; }

/* the panel on the right */
.cx-side { user-select: text; -webkit-user-select: text; border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.cx-side-h { display: flex; gap: 10px; align-items: center; }
.cx-side-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-side-h b { font-size: 15px; }
.cx-tip { margin: 0; color: var(--muted); line-height: 1.45; }
.cx-state { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-weight: 600; }
.cx-lampdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.cx-state.on .cx-lampdot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.cx-warn { margin: 0; color: var(--warn); font-weight: 600; }
.cx-batt { display: flex; flex-direction: column; gap: 6px; }
.cx-batt-bar { height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.cx-batt-bar i { display: block; height: 100%; background: var(--good); transition: width .3s; }
.cx-actbtn { align-self: flex-start; }
.cx-ports .cx-plh, .cx-warns > b, .cx-help > b { display: block; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.cx-ports ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-ports li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); }
.cx-ports li > b { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 700 13px var(--mono); color: var(--faint); }
.cx-ports li.hot > b { color: var(--accent-text); }
.cx-fields { display: flex; flex-direction: column; gap: 10px; }
.cx-field { display: flex; flex-direction: column; gap: 5px; }
.cx-field > span:first-child { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.cx-field .input { height: 34px; width: 100%; }
.cx-field textarea.input { height: auto; resize: vertical; }
.cx-num { display: flex; align-items: center; gap: 6px; }
.cx-num i { font-style: normal; color: var(--faint); font: 600 12px var(--mono); }
.cx-check { flex-direction: row; align-items: center; gap: 8px; }
.cx-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.cx-check > span:last-child { font-weight: 600; }
.cx-side-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.cx-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.cx-kv dt { color: var(--muted); }
.cx-kv dd { margin: 0; font-weight: 600; text-align: right; }
.cx-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); outline: 1px solid var(--line-strong); background: var(--wc, var(--accent)); cursor: pointer; padding: 0; }
.cx-sw.active { outline: 2px solid var(--text); }
.cx-warns { display: flex; flex-direction: column; gap: 4px; }
.cx-warn-row { display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); color: var(--text); border-radius: 8px; padding: 7px 9px; cursor: pointer; font: inherit; }
.cx-warn-row svg { width: 16px; height: 16px; color: var(--warn); flex: none; margin-top: 2px; }
.cx-warn-row span { display: flex; flex-direction: column; gap: 2px; }
.cx-help p { margin: 0 0 8px; color: var(--muted); line-height: 1.45; }

/* lists */
.cx-tabs { margin-bottom: 14px; }
/* (1.39.0) tags under a circuit's name */
.cx-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cx-tagrow[hidden] { display: none; }
.cx-tagchip { display: inline-flex; align-items: center; gap: 5px; cursor: default; }
.cx-tagchip > svg { width: 13px; height: 13px; color: var(--accent); }
.cx-tagx { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: -4px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.cx-tagx:hover { background: var(--surface-2); color: var(--text); }
.cx-tagx svg { width: 12px; height: 12px; }
.cx-tagadd { height: 28px; min-width: 180px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: 500 13px var(--sans); }
.cx-tagadd:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-style: solid; }
.cx-tagchips { flex-wrap: wrap; }
.cx-cpic { aspect-ratio: 16 / 9; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; }
.cx-sketch { width: 100%; height: 100%; display: block; }
/* a still picture of a circuit in the Devices look (lists, examples, the build page) */
.cx-cpic > .cx-snap, .cx-expic > .cx-snap { padding: 8px; box-sizing: border-box; min-height: 0; aspect-ratio: auto; }
.cx.cx-snap { display: block; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: none; overflow: visible; pointer-events: none; }
.cx.cx-snap .cx-part:has(.cx-dimg) .cx-glyph { display: none; }
.cx.cx-snap .cx-dtile { fill: none; }
.cx.cx-snap .cx-part:not(:has(.cx-dimg)) .cx-dtile { fill: var(--surface-2); }
.cx.cx-snap.no-tags .cx-wtagw { display: none; }
/* small cards: plain wires a steady width whatever the size, no names (too small to read) */
.cx.cx-snap .cx-ws { display: none; }
/* a picture to download (PNG, GIF): the board as it looks in the editor */
.cx.cx-snap.cx-export .cx-ws { display: inline; }
.cx.cx-snap.cx-export .cx-notetext { fill: var(--text); font: 500 12.5px var(--sans); }
.cx.look-dev.cx-snap.cx-export .cx-wire { vector-effect: none; stroke-width: 4.5px; }
.cx.look-dev.cx-snap .cx-wire { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.cx.look-dev.cx-snap:not(.no-tags) .cx-wire { stroke-width: 3px; }
.cx.cx-snap.no-tags .cx-dname, .cx.cx-snap.no-tags .cx-pill, .cx.cx-snap.no-tags .cx-part.cat-note { display: none; }
.cx.cx-snap .cx-port circle:not(.cx-hit) { filter: none; }
.cx.cx-snap .cx-dname { font-size: 13px; }
.cx-sk-p { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.cx-sk-p.on { stroke: var(--accent); }
.cx-sk-p.k-light.on { fill: color-mix(in srgb, #ffd34d 35%, var(--surface)); }
.cx-sk-p.k-source { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.cx-sk-p.k-battery { fill: color-mix(in srgb, var(--good) 22%, var(--surface)); }
.cx-sk-p.k-note { stroke-dasharray: 8 6; }
.cx-sk-w { fill: none; stroke: var(--line-strong); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.cx-sk-w.on { stroke: var(--accent); }
.cx-sk-empty { fill: var(--faint); font: 600 14px var(--sans); }
.cx-cstats { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-top: 6px; }
.cx-cstats span { display: inline-flex; align-items: center; gap: 4px; }
.cx-cstats svg { width: 14px; height: 14px; }
.cx-exlist { display: flex; flex-direction: column; gap: 8px; }
.cx-exrow { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.cx-exrow:hover { border-color: var(--accent); }
.cx-exrow > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.cx-expic { width: 220px; flex: none; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; padding: 6px; }
@media (max-width: 560px) { .cx-exrow { flex-direction: column; align-items: stretch; } .cx-expic { width: 100%; } }
.cx-vis { display: flex; flex-direction: column; gap: 6px; }
.cx-visopt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.cx-vis .cx-visopt input[type=radio] { width: 16px; height: 16px; min-width: 0; padding: 0; margin: 3px 0 0; flex: none; accent-color: var(--accent); box-shadow: none; }
.cx-visopt > span { text-align: left; }
.cx-visopt > span { display: flex; flex-direction: column; gap: 2px; }
.cx-visopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 1180px) {
  .cx { grid-template-columns: 220px minmax(0, 1fr); }
  .cx-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: 300px; }
  .cx { height: auto; grid-template-rows: calc(100dvh - 200px) auto; }
}
@media (max-width: 760px) {
  .cx { grid-template-columns: minmax(0, 1fr); grid-template-rows: 70dvh auto; }
  .cx-pal { position: absolute; inset: 0 30% 0 0; z-index: 5; transform: translateX(-102%); transition: transform .18s; box-shadow: var(--dg-float, 0 8px 24px rgba(0,0,0,.3)); }
  .cx.pal-open .cx-pal { transform: none; }
  .cx-pal-toggle { display: inline-flex; position: absolute; left: 10px; bottom: 10px; z-index: 4; }
  .cx-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cx-totals, .cx-hour span { display: none; }
  .cx-hour input { width: 80px; }
  .cx-actions .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .cx-head input.cx-name, .cx-title h1 { font-size: 22px; }
}

/* Circuits, Devices look (website 1.31.2): Rust's pictures of the parts on a grid, glowing ring dots, wires with a
   pale core and square blue beads that turn green when powered, big white labels. The board follows the site's theme (1.31.4). */
.cx .cx-gline { display: none; }
.cx.look-dev { --w-off: #d3d8e0; --w-on: #5fe05a; --w-bead: #6a83bd; --p-ring: #8fc4ff; --p-glow: rgba(143, 196, 255, .85); --dev-out: #5fe05a; }
.cx.look-dev .cx-svg { background: var(--bg); }
.cx.look-dev .cx-dot { display: none; }
.cx.look-dev .cx-gline { display: inline; fill: none; stroke: color-mix(in srgb, var(--text) 7%, var(--bg)); stroke-width: 1; }
.cx.look-dev .cx-body { fill: transparent; stroke: none; }
.cx.look-dev .cx-part.sel .cx-body { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.cx.look-dev .cx-glyph { color: var(--muted); }
.cx.look-dev .cx-part.has-img .cx-glyph { display: none; }
.cx.look-dev .cx-dimg { transition: filter .15s; }
.cx.look-dev .cx-part.on .cx-dimg { filter: drop-shadow(2.5px 0 0 var(--dev-out)) drop-shadow(-2.5px 0 0 var(--dev-out)) drop-shadow(0 2.5px 0 var(--dev-out)) drop-shadow(0 -2.5px 0 var(--dev-out)); }
.cx.look-dev .cx-part.warn .cx-dimg { --dev-out: #ff5d52; filter: drop-shadow(2.5px 0 0 var(--dev-out)) drop-shadow(-2.5px 0 0 var(--dev-out)) drop-shadow(0 2.5px 0 var(--dev-out)) drop-shadow(0 -2.5px 0 var(--dev-out)); }
.cx.look-dev .cx-part.on:not(.has-img) .cx-glyph { color: var(--dev-out); }
.cx.look-dev .cx-dname { fill: var(--text); font: 600 11.5px var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.cx.look-dev .cx-pill rect { fill: var(--surface-2); stroke: var(--line-strong); }
.cx.look-dev .cx-pill text { fill: var(--text); font-size: 11px; }
.cx.look-dev .cx-part.on .cx-pill rect { fill: var(--accent); stroke: var(--accent); }
/* ring dots with a soft glow; their names show when you point at the part */
.cx.look-dev .cx-port circle:not(.cx-hit) { fill: var(--surface); stroke: var(--p-ring); stroke-width: 3; filter: drop-shadow(0 0 3px var(--p-glow)); }
.cx.look-dev .cx-port.hot circle:not(.cx-hit) { fill: var(--w-on); stroke: #dff7ff; }
.cx.look-dev .cx-port:hover circle:not(.cx-hit) { stroke: #fff; }
.cx.look-dev .cx-plabel { display: none; fill: var(--text); font: 600 11.5px var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.cx.look-dev .cx-part:hover .cx-plabel, .cx.look-dev .cx-part.sel .cx-plabel { display: inline; }
/* wires: a pale core (green when powered, or the colour you picked) with square beads on it */
.cx.look-dev .cx-wo { display: none; }
.cx.look-dev .cx-wire { stroke: var(--wc, var(--w-off)); stroke-width: 4.5; opacity: 1; }
.cx.look-dev .cx-wg.hot .cx-wire { stroke: var(--wc, var(--w-on)); }
.cx.look-dev .cx-ws { stroke: var(--w-bead); stroke-width: 11; stroke-dasharray: 11 13; opacity: 1; }
.cx.look-dev .cx-wg.hot .cx-ws { animation-name: cx-bead; animation-duration: 1.2s; }
@keyframes cx-bead { to { stroke-dashoffset: -24; } }
.cx.look-dev .cx-wg.sel .cx-ws { stroke: var(--accent); }
.cx.look-dev .cx-wg:hover .cx-ws { stroke: #8aa2d8; }
.cx.look-dev .cx-wtag rect { fill: #fff; stroke: none; }
.cx.look-dev .cx-wtag text { fill: #4a5d8d; font: 700 16px var(--sans); }
.cx.look-dev .cx-wire.temp { stroke: var(--p-ring); stroke-width: 4; stroke-dasharray: 8 6; }
.cx.look-dev .cx-wire.temp.ok { stroke: var(--w-on); }
.c-default { --wc: initial; }
/* (1.53.0) pipes (items) and hoses (water): their dots and lines look different from wires */
.cx { --pipe: #c99a5b; --pipe-on: #f0c27f; --hose: #49aef0; --hose-on: #7fd3ff; }
.cx-port.k-i circle:not(.cx-hit) { stroke: var(--pipe); }
.cx-port.k-f circle:not(.cx-hit) { stroke: var(--hose); }
.cx .cx-port.k-i.hot circle:not(.cx-hit), .cx.look-dev .cx-port.k-i.hot circle:not(.cx-hit) { fill: var(--pipe-on); stroke: #fff2dc; }
.cx .cx-port.k-f.hot circle:not(.cx-hit), .cx.look-dev .cx-port.k-f.hot circle:not(.cx-hit) { fill: var(--hose-on); stroke: #e3f6ff; }
.cx.look-dev .cx-port.k-i circle:not(.cx-hit) { stroke: var(--pipe); filter: drop-shadow(0 0 3px rgba(240, 180, 100, .8)); }
.cx.look-dev .cx-port.k-f circle:not(.cx-hit) { stroke: var(--hose); filter: drop-shadow(0 0 3px rgba(80, 180, 255, .85)); }
.cx-wg.k-i .cx-wire { stroke: var(--wc, #8b7357); stroke-width: 8; }
.cx-wg.k-i.hot .cx-wire, .cx.look-dev .cx-wg.k-i.hot .cx-wire { stroke: var(--wc, var(--pipe-on)); }
.cx-wg.k-i .cx-ws { stroke: #3d3326; stroke-width: 8; stroke-dasharray: 3 11; }
.cx.look-dev .cx-wg.k-i .cx-wire { stroke: var(--wc, #9c8466); stroke-width: 9; }
.cx.look-dev .cx-wg.k-i .cx-ws { stroke: #4b3f2f; stroke-width: 9; stroke-dasharray: 3 13; }
.cx-wg.k-f .cx-wire, .cx.look-dev .cx-wg.k-f .cx-wire { stroke: var(--wc, #2f78b5); stroke-width: 6; }
.cx-wg.k-f.hot .cx-wire, .cx.look-dev .cx-wg.k-f.hot .cx-wire { stroke: var(--wc, var(--hose-on)); }
.cx-wg.k-f .cx-ws, .cx.look-dev .cx-wg.k-f .cx-ws { stroke: #e6f6ff; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.cx.look-dev .cx-wg.k-i .cx-wtag text { fill: #6b4f2a; }
.cx.look-dev .cx-wg.k-f .cx-wtag text { fill: #1f6aa5; }
.cx-kind { font-style: normal; font-size: 11px; color: var(--faint); }
.cx-ports li.k-i > b { color: color-mix(in srgb, var(--pipe) 70%, var(--faint)); }
.cx-ports li.k-f > b { color: color-mix(in srgb, var(--hose) 70%, var(--faint)); }
.cx-inv-empty { grid-template-columns: 1fr !important; }
.cx-tank .cx-batt-bar i { background: var(--hose); }
/* the wire colour button in the toolbar */
.cx-wcol { position: relative; display: inline-flex; }
.cx-wcol .icon-btn .cx-sw { width: 16px; height: 16px; pointer-events: none; }
.cx-wpop { position: fixed; z-index: 60; width: 220px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: grid; gap: 8px; }
.cx-wpop[hidden] { display: none; }
/* (1.39.0) the weather */
.cx-wxpop { width: 260px; }
.cx-wxrow { display: grid; grid-template-columns: 48px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.cx-wxrow input { width: 100%; accent-color: var(--accent); }
.cx-wxrow output { font: 600 12px var(--mono); color: var(--muted); text-align: right; }
.cx-wx .icon-btn.on { color: var(--accent); }
.cx-wpop > span { font-weight: 650; font-size: 13px; }
.cx-wpop small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cx-sw.c-default { background: #d3d8e0; }
.cx .cx-dtile { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.cx.look-dev .cx-part.has-img .cx-dtile { display: none; }
.cx.look-dev .cx-part.on:not(.has-img) .cx-dtile { stroke: var(--dev-out); stroke-width: 3; }
.cx.look-dev .cx-part.warn:not(.has-img) .cx-dtile { stroke: #ff5d52; stroke-width: 3; }
@media (max-width: 1720px) { .cx-totals { display: none; } .cx-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.cx.look-dev .cx-part.cat-note .cx-body { fill: color-mix(in srgb, #ffd34d 10%, var(--surface)); stroke: var(--line-strong); stroke-dasharray: 4 3; }
.cx.look-dev .cx-note { color: var(--text); }
.cx-fit-float { display: none; }
@media (max-width: 760px) { .cx-fit-float { display: inline-flex; position: absolute; right: 10px; bottom: 10px; z-index: 4; } }
/* the Devices look on the light theme: darker wire cores, dots and labels so they stand out on a pale board */
:root[data-theme="light"] .cx.look-dev { --w-off: #9aa3b2; --w-on: #2fae2a; --w-bead: #5570b0; --p-ring: #3f7fd6; --p-glow: rgba(63, 127, 214, .45); --dev-out: #2fae2a; }
:root[data-theme="light"] .cx.look-dev .cx-wtag rect { fill: #fff; stroke: #c9ced8; stroke-width: 1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .cx.look-dev { --w-off: #9aa3b2; --w-on: #2fae2a; --w-bead: #5570b0; --p-ring: #3f7fd6; --p-glow: rgba(63, 127, 214, .45); --dev-out: #2fae2a; }
  :root:not([data-theme="dark"]) .cx.look-dev .cx-wtag rect { fill: #fff; stroke: #c9ced8; stroke-width: 1; }
}
/* (1.32.0) a build's electrics on its page */
.bd-cx .card-head h2 { display: flex; align-items: center; gap: 8px; }
.bd-cx .card-head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.bd-cxpic { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.bd-cxpic:hover { border-color: var(--accent); }
/* (1.38.0) full width under the picture, drawn like the Circuits board */
.bd-cxwide { margin-top: 16px; }
.bd-cxwide .bd-cxpic { aspect-ratio: auto; height: clamp(220px, 32vw, 400px); }
.bd-cxwide .bd-cxpic > .cx-snap { padding: 14px; }
/* (1.35.0) Place it in game: the chat command */
.cx-game { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.cx-game code { flex: 1; padding: 10px 12px; border-radius: 8px; background: var(--surface-2, rgba(127,127,127,.12)); font-size: 15px; user-select: all; }

/* ===================================================================== Plan a base (1.43.0) */
.pl-head .pl-title { min-width: 0; flex: 1 1 280px; }
.pl-name { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: .01em; color: var(--text); background: none; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 6px; margin-left: -7px; width: min(520px, 100%); }
.pl-name:hover:not([readonly]) { border-color: var(--line); }
.pl-name:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.pl-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.pl-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #3fbf6f); flex: none; }
.pl-state i.off { background: var(--faint, #777); }
.pl-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-more { position: relative; }
.pl-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; display: grid; padding: 6px; }
.pl-menu button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.pl-menu button:hover { background: var(--surface-2); }
.pl-menu button.danger { color: var(--bad, #e5484d); }
.pl-menu svg { width: 16px; height: 16px; }
.pl-ed { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.pl-ro .pl-parts { display: none; }
.pl-ro { grid-template-columns: minmax(0, 1fr); }
.pl-parts { display: flex; flex-direction: column; height: var(--pl-h, min(72vh, 720px)); min-height: 460px; overflow: hidden; }
.pl-parts-top { padding: 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.pl-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; cursor: pointer; }
.pl-chip:hover { color: var(--text); }
.pl-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.pl-list { flex: 1; overflow: auto; padding: 0 10px 12px; }
.pl-none { padding: 14px 4px; }
.pl-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 2px 6px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pl-part { display: flex; align-items: center; gap: 7px; padding: 5px 6px; min-width: 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.15; min-height: 44px; text-align: left; cursor: pointer; }
.pl-part:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pl-part img { width: 32px; height: 32px; flex: none; border-radius: 6px; background: var(--surface-2); }
.pl-part img:not([src]) { visibility: hidden; }
.pl-part img.none { visibility: visible; }
.pl-part.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.pl-part kbd { margin-left: auto; font: 600 10.5px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
/* (website 1.50.0) --pl-h is set by planner.js: from the editor's top to the bottom of the window */
.pl-stage { position: relative; height: var(--pl-h, min(72vh, 720px)); min-height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.pl-stage:fullscreen { border-radius: 0; height: 100%; }
.pl-canvas, .pl-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-canvas canvas { touch-action: none; }
.pl-bar { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.pl-bar > * { pointer-events: auto; }
.pl-bar .grow { flex: 1; pointer-events: none; }
.pl-float { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); backdrop-filter: blur(6px); }
.pl-tools { display: inline-flex; padding: 3px; gap: 2px; }
.pl-tools button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pl-tools button:hover { color: var(--text); background: var(--surface-2); }
.pl-tools button svg { width: 16px; height: 16px; }
.pl-tools button.on { background: var(--accent); color: var(--on-accent, #fff); }
.pl-tools .sep { width: 1px; background: var(--line); margin: 4px 3px; }
.pl-cost, .pl-sel { position: absolute; top: 56px; right: 10px; width: 260px; padding: 12px; max-height: calc(100% - 140px); overflow: auto; }
.pl-cost[hidden], .pl-sel[hidden] { display: none; }
.pl-cost h3, .pl-sel h3 { font-size: 13.5px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.pl-cost h3 span, .pl-sel h3 em { margin-left: auto; font-weight: 500; font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pl-cost .seg { margin: 0 0 10px; display: flex; }
.pl-cost .seg button { flex: 1; padding: 4px 6px; font-size: 12px; }
.pl-res { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px 8px; align-items: center; font-size: 13px; }
.pl-res svg { width: 20px; height: 20px; }
.pl-res b { font-variant-numeric: tabular-nums; font-weight: 700; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint, #888); justify-self: center; }
.pl-cost hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.pl-cost p { margin: 8px 0 0; line-height: 1.45; }
.pl-up { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; font-size: 12.5px; align-items: start; }
.pl-up svg { width: 20px; height: 20px; grid-row: span 2; }
.pl-up b { font-weight: 600; }
.pl-up span { color: var(--muted); }
.pl-sel { display: grid; gap: 10px; }
.pl-sel h3 { margin: 0; }
.pl-sel .row { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-sel .lbl, .pl-dock .lbl { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pl-sel .gr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pl-sel .gr button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.pl-sel .gr button i { width: 20px; height: 20px; border-radius: 4px; background: var(--c); }
.pl-sel .gr button.on, .pl-sel .gr button:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.pl-diff { font-size: 12.5px; display: grid; gap: 4px; }
.pl-diff div { display: flex; gap: 8px; align-items: center; }
.pl-diff svg { width: 16px; height: 16px; }
.pl-diff .plus { color: var(--bad, #e5484d); margin-left: auto; font-weight: 700; }
.pl-diff .minus { color: var(--ok, #3fbf6f); margin-left: auto; font-weight: 700; }
.pl-levels { position: absolute; left: 10px; bottom: 66px; display: grid; padding: 3px; gap: 2px; }
.pl-levels button { width: 34px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 700 12.5px var(--display, inherit); cursor: pointer; display: grid; place-items: center; }
.pl-levels button:hover { color: var(--text); background: var(--surface-2); }
.pl-levels button svg { width: 15px; height: 15px; }
.pl-levels button.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.pl-levels small { font-size: 10px; color: var(--muted); text-align: center; padding: 2px 0; text-transform: uppercase; letter-spacing: .06em; }
.pl-dock { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 8px; max-width: calc(100% - 24px); }
.pl-dock .lbl { padding-left: 4px; }
.pl-grades { display: flex; gap: 4px; }
.pl-grade { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: 7px; border: 1px solid var(--line); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; cursor: pointer; }
.pl-grade i { width: 18px; height: 18px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px #0003; }
.pl-grade:hover { color: var(--text); }
.pl-grade.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.pl-dock .vr { width: 1px; height: 24px; background: var(--line); }
.pl-hint { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-hint kbd { font: 600 11px ui-monospace, monospace; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--text); background: var(--surface); }
.pl-tip { position: absolute; padding: 8px 10px; font-size: 12.5px; display: grid; gap: 2px; min-width: 160px; max-width: 260px; pointer-events: none; z-index: 2; }
.pl-tip[hidden] { display: none; }
.pl-tip b { font-size: 13px; }
.pl-tip span { color: var(--muted); }
.pl-status { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 13px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); pointer-events: none; }
.pl-status[hidden] { display: none; }
.pl-code { font: 700 28px ui-monospace, monospace; letter-spacing: .12em; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.pl-code .btn { margin-left: auto; letter-spacing: normal; }
.pl-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.pl-steps code, .pl-or code { font: 600 12.5px ui-monospace, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.pl-or { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 13px; }
.pl-or svg { width: 18px; height: 18px; flex: none; }
.pl-or .btn { margin-left: auto; }
.pl-cpic { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); }
.pl-cpic img { width: 100%; height: 100%; object-fit: cover; }
.pl-cpic svg { width: 32px; height: 32px; }
.pl-sec { margin-top: 18px; }
.pl-promo { margin: 14px 0 4px; }
.pl-promo .card-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pl-promo .card-body > svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.pl-promo .card-body > div { flex: 1 1 240px; }
.pl-promo p { margin: 2px 0 0; }
@media (max-width: 900px) {
  .pl-ed { grid-template-columns: minmax(0, 1fr); }
  .pl-parts { height: auto; min-height: 0; max-height: 300px; order: 2; }
  .pl-stage { height: 68vh; min-height: 380px; }
  .pl-tools button span, .pl-hint, .pl-dock .vr, .pl-dock .lbl, .pl-grade span { display: none; }
  .pl-grade { padding: 0 6px; }
  .pl-cost { width: 170px; font-size: 12px; padding: 8px 10px; top: auto; bottom: 66px; left: auto; right: 10px; max-height: 34%; }
  .pl-cost .seg, .pl-cost p, .pl-cost hr, .pl-cost .pl-up { display: none; }
  .pl-cost h3 { font-size: 12.5px; margin-bottom: 6px; }
  .pl-cost h3 span { display: none; }
  .pl-res { gap: 4px 6px; font-size: 12px; }
  .pl-res svg { width: 16px; height: 16px; }
  .pl-sel { width: auto; left: 54px; right: 10px; top: auto; bottom: 66px; }
  .pl-name { font-size: 24px; }
  /* (website 1.52.0) phones: the part button over the 3D view opens the parts as a sheet; the cost folds to one line */
  .pl-bar .pl-onphone { display: inline-flex; }
  .pl-stage { height: max(380px, calc(100dvh - 340px)); min-height: 380px; }
  .pl-cost { width: auto; max-width: 200px; cursor: pointer; top: 112px; bottom: auto; }
  .pl-cost:not(.open) > :not(h3) { display: none; }
  .pl-cost:not(.open) h3 { margin: 0; }
  .pl-cost h3::after { content: "▾"; margin-left: 4px; color: var(--muted); }
  .pl-cost.open h3::after { content: "▴"; }
  .pl-tools button { height: 36px; padding: 0 10px; }
  .pl-levels button { width: 40px; height: 34px; }
  .pl-grade { height: 36px; }
  .pl-grade i { width: 22px; height: 22px; }
  .pl-dock { bottom: 10px; }
}
.pl-onphone { display: none; }
.pl-partbtn { max-width: 170px; }
.pl-partbtn img { width: 24px; height: 24px; border-radius: 5px; background: var(--surface-2); flex: none; }
.pl-partbtn img:not([src]) { display: none; }
.pl-partbtn span { display: inline !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
/* a tap shows where it goes: Place / Turn / cancel */
.pl-tbar { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; z-index: 3; }
.pl-tbar[hidden] { display: none; }
.pl-tbar button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pl-tbar button svg { width: 18px; height: 18px; }
.pl-tbar .pl-tgo { background: var(--accent); color: var(--on-accent, #fff); }
.pl-tbar .pl-tgo:disabled { opacity: .45; cursor: default; }
/* the parts as a sheet (phones), and the editor filling the screen */
.pl-shade { position: fixed; inset: 0; z-index: 205; background: #0007; }
.pl-shade[hidden] { display: none; }
.pl-ed.pl-sheet .pl-parts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; height: auto; max-height: 64dvh; min-height: 0; margin: 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px #0008; }
.pl-ed.pl-max .pl-stage { position: fixed; inset: 0; z-index: 200; height: auto; min-height: 0; border-radius: 0; border: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
html.pl-noscroll, html.pl-noscroll body { overflow: hidden; }
/* ===================================================================== Art (1.41.0): pictures for signs in game */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ar-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .12s; }
.ar-card:hover { border-color: var(--faint); }
.ar-pic { height: 150px; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.ar-pic img { max-width: 100%; max-height: 122px; width: auto; height: auto; border-radius: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); image-rendering: auto; }
.ar-body { padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.ar-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ar-title b { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-likes, .ar-meta span { display: inline-flex; gap: 4px; align-items: center; }
.ar-likes { color: var(--muted); font-size: 12.5px; }
.ar-likes svg, .ar-meta svg { width: 13px; height: 13px; }
.ar-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; align-items: center; flex-wrap: wrap; }
.ar-code { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.ar-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.ar-tagchips { margin: -4px 0 14px; }
.ar-tabs svg { width: 15px; height: 15px; }
.ar-menu-wrap { position: relative; }
.ar-menu-wrap .account-menu.ar-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: max-content; min-width: 230px; max-width: calc(100vw - 32px); }
.ar-menu a, .ar-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ar-menu a:hover, .ar-menu button:hover { background: var(--surface-2); }
.ar-menu svg { width: 16px; height: 16px; color: var(--muted); }
.ar-menu .danger { color: var(--bad); }
/* the editor */
.ar-edhead { margin-bottom: 14px; }
.ar-edtitle { flex: 1 1 320px; min-width: 0; }
.ar-edtitle p { margin: 2px 0 0; }
.ar-edhead input.cx-name { width: 100%; max-width: 520px; border: 1px solid transparent; background: none; color: var(--text); font: 700 26px/1.1 var(--display); padding: 2px 6px; margin-left: -7px; border-radius: 8px; }
.ar-edhead input.cx-name:hover { border-color: var(--line-strong, var(--line)); }
.ar-edhead input.cx-name:focus { border-color: var(--accent); outline: none; }
.ar-ed { display: grid; grid-template-columns: 52px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.ar-rail { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 76px; }
.ar-rail button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.ar-rail button:hover { color: var(--text); background: var(--surface-2); }
.ar-rail button svg { width: 18px; height: 18px; }
.ar-rail button.on { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.ar-rail hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.ar-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.ar-stage-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ar-stage-head .spacer, .ar-hero-foot .spacer { flex: 1; }
.ar-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ar-check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.ar-board { height: min(560px, calc(100vh - 230px)); min-height: 300px; display: grid; place-items: center; position: relative; overflow: auto;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 22px 22px; }
.ar-board.over { outline: 2px dashed var(--accent); outline-offset: -8px; }
.ar-sign { position: relative; max-width: 100%; }
.ar-canvas { position: relative; background: repeating-conic-gradient(#cfcac0 0 25%, #f3f0ea 0 50%) 0 0 / 12px 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .25); }
.ar-canvas canvas { position: absolute; inset: 0; touch-action: none; }
.ar-canvas .ar-over { cursor: crosshair; }
.ar-canvas .ar-over[data-cur="pick"] { cursor: copy; }
.ar-canvas .ar-over[data-cur="text"] { cursor: text; }
.ar-canvas .ar-over.off { cursor: default; pointer-events: none; }
.ar-canvas.grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(127, 127, 127, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 127, 127, .25) 1px, transparent 1px); background-size: var(--px) var(--px); }
/* how the sign looks around the picture: "On the sign", and the art page */
.ar-sign.looking { padding: 16px; border-radius: 6px; }
.ar-sign.looking .ar-canvas { background: none; box-shadow: none; }
.ar-sign.looking.ar-look-wood, .ar-sign.looking.ar-look-post { background: linear-gradient(180deg, #7a5634, #5a3d22); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .25); }
.ar-sign.looking.ar-look-wood .ar-canvas, .ar-sign.looking.ar-look-post .ar-canvas, .ar-sign.looking.ar-look-wood img, .ar-sign.looking.ar-look-post img { background: repeating-linear-gradient(90deg, #8a6440 0 22px, #7d5a39 22px 46px); }
.ar-sign.looking.ar-look-frame { padding: 14px; background: linear-gradient(135deg, #3b2a1a, #1e150d); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 3px #a0814a; }
.ar-sign.looking.ar-look-frame .ar-canvas, .ar-sign.looking.ar-look-frame img { background: #e9e2d0; }
.ar-sign.looking.ar-look-banner { padding: 0 6px 22px; background: none; }
.ar-sign.looking.ar-look-banner::before { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; height: 10px; border-radius: 5px; background: #4b4b4b; }
.ar-sign.looking.ar-look-banner .ar-canvas, .ar-sign.looking.ar-look-banner img { background: #d9cfb8; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 94%, 0 100%); }
.ar-sign.looking.ar-look-neon { padding: 14px; background: #101418; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px #2a3138; }
.ar-sign.looking.ar-look-neon .ar-canvas, .ar-sign.looking.ar-look-neon img { background: #0b0d10; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.ar-sign.looking.ar-look-other { padding: 14px; border-radius: 50%; background: #5a3d22; }
.ar-sign.looking.ar-look-other .ar-canvas, .ar-sign.looking.ar-look-other img { border-radius: 50%; overflow: hidden; background: #8a6440; }
/* (website 1.44.0) each sign's own look, like the item in game: planks and nails, posts, chains, poles, pegs */
.ar-sign.looking.ar-look-wood { padding: 12px; border-radius: 3px; background:
  radial-gradient(circle at 7px 7px, #c9c2b4 0 2px, #3a2a1a 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 7px) 7px, #c9c2b4 0 2px, #3a2a1a 2.5px, transparent 3.5px),
  radial-gradient(circle at 7px calc(100% - 7px), #c9c2b4 0 2px, #3a2a1a 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #c9c2b4 0 2px, #3a2a1a 2.5px, transparent 3.5px),
  linear-gradient(180deg, #6b4a2b, #4f3520); }
.ar-sign.looking.ar-look-wood .ar-canvas, .ar-sign.looking.ar-look-wood img { background: repeating-linear-gradient(180deg, #94704a 0 calc(25% - 2px), #5c4128 calc(25% - 2px) 25%); }
.ar-sign.looking.ar-item-huge_wood .ar-canvas, .ar-sign.looking.ar-item-huge_wood img, .ar-sign.looking.ar-item-small_wood .ar-canvas, .ar-sign.looking.ar-item-small_wood img { background: repeating-linear-gradient(180deg, #94704a 0 calc(50% - 2px), #5c4128 calc(50% - 2px) 50%); }
.ar-sign.looking.ar-look-post { margin-bottom: 70px; }
.ar-sign.looking.ar-look-post::after { content: ""; position: absolute; top: 100%; left: calc(50% - 8px); width: 16px; height: 70px; background: linear-gradient(90deg, #4a321d, #7a5634 45%, #4a321d); }
.ar-sign.looking.ar-item-post_double::after, .ar-sign.looking.ar-item-post_town::after { left: 14%; width: 72%; background: linear-gradient(90deg, #4a321d, #7a5634 4%, #4a321d 9%, transparent 9% 91%, #4a321d 91%, #7a5634 95.5%, #4a321d); }
.ar-sign.looking.ar-item-post_town { margin-top: 34px; }
.ar-sign.looking.ar-item-post_town::before { content: ""; position: absolute; left: -14px; right: -14px; bottom: 100%; height: 30px; background: linear-gradient(180deg, #5d5f61, #3e4042); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.ar-sign.looking.ar-item-hanging, .ar-sign.looking.ar-item-hanging_ornate { margin: 56px 0 0; margin-bottom: 0; }
.ar-sign.looking.ar-item-hanging::after, .ar-sign.looking.ar-item-hanging_ornate::after { content: none; }
.ar-sign.looking.ar-item-hanging::before, .ar-sign.looking.ar-item-hanging_ornate::before { content: ""; position: absolute; left: -18px; right: -18px; bottom: 100%; height: 56px;
  background: linear-gradient(180deg, #4a321d 0 10px, transparent 10px), repeating-linear-gradient(180deg, #8d8d8d 0 5px, #4c4c4c 5px 7px) 18% 10px / 4px 46px no-repeat, repeating-linear-gradient(180deg, #8d8d8d 0 5px, #4c4c4c 5px 7px) 82% 10px / 4px 46px no-repeat; }
.ar-sign.looking.ar-item-hanging_ornate { border-radius: 18px 18px 6px 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 3px #a0814a; }
.ar-sign.looking.ar-look-banner { margin-top: 18px; }
.ar-sign.looking.ar-item-banner_hanging::before { top: -16px; height: 8px; left: -6px; right: -6px; background: #6b4a2b; }
.ar-sign.looking.ar-item-banner_hanging::after { content: ""; position: absolute; left: 20%; right: 20%; top: -40px; height: 26px; border: 3px solid #8a7a5c; border-bottom: 0; border-radius: 40px 40px 0 0; }
.ar-sign.looking.ar-item-banner_pole { margin-left: 34px; margin-bottom: 60px; }
.ar-sign.looking.ar-item-banner_pole::before { left: -34px; right: -10px; top: -14px; height: 8px; background: #6b4a2b; }
.ar-sign.looking.ar-item-banner_pole::after { content: ""; position: absolute; left: -34px; top: -26px; width: 10px; bottom: -60px; border-radius: 5px 5px 0 0; background: linear-gradient(90deg, #4a321d, #7a5634 45%, #4a321d); }
.ar-sign.looking.ar-item-neon_medium, .ar-sign.looking.ar-item-neon_large, .ar-sign.looking.ar-item-neon_small { border-radius: 8px; background: linear-gradient(180deg, #1c2126, #0d1013); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px #39424b, 0 0 24px rgba(120, 200, 255, .12); }
.ar-sign.looking.ar-item-wheel { padding: 22px; background: radial-gradient(closest-side, transparent calc(100% - 22px), #5a3d22 calc(100% - 22px)), repeating-conic-gradient(#d8c79c 0 1.5deg, #5a3d22 1.5deg 15deg); }
.ar-sign.looking.ar-item-wheel::after { content: ""; position: absolute; left: calc(50% - 14px); top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #ddd 0 4px, #6b6b6b 5px, #3d3d3d); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.ar-sign.looking.ar-item-wheel::before { content: ""; position: absolute; left: calc(50% - 9px); top: -6px; border: 9px solid transparent; border-top: 18px solid #c0392b; z-index: 1; }
.ar-sign img { display: block; max-width: 100%; height: auto; }
.ar-sign img.px { image-rendering: pixelated; }
.ar-size { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.ar-zoom { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 4px; }
.ar-zoom .btn { background: var(--surface); }
.ar-textpop { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 5; }
.ar-textpop .ar-row { margin: 0; }
.ar-textbtns { display: flex; gap: 8px; justify-content: flex-end; }
.ar-side { display: grid; gap: 14px; min-width: 0; }
.ar-typesbody { padding: 6px 8px; }
.ar-types { display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.ar-type { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 13.5px; color: var(--text); background: none; text-align: left; cursor: pointer; }
.ar-type:hover { background: var(--surface-2); }
.ar-type.on { background: var(--accent-soft); border-color: var(--accent); }
.ar-type i { display: block; justify-self: center; border: 2px solid var(--muted); border-radius: 2px; }
/* (website 1.44.0) the game's picture of each sign; its outline only if the picture can't be had */
.ar-ico { width: 34px; height: 30px; display: grid; place-items: center; }
.ar-ico img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.ar-ico i { display: none; }
.ar-ico.none img { display: none; }
.ar-ico.none i { display: block; }
.ar-place { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--accent-soft); font-size: 13px; }
.ar-place > b, .ar-place > span { grid-column: 1 / -1; }
.ar-place > b { margin-bottom: -6px; }
.ar-place[hidden] { display: none; }
.ar-place .ar-row { margin: 0; }
.ar-place .ar-row input[type=range] { flex: 1; min-width: 0; }
.ar-placebtns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ar-board.placing .ar-over { cursor: move; touch-action: none; }
.ar-item { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; color: var(--muted); pointer-events: none; }
.ar-item img { width: 30px; height: 30px; object-fit: contain; }
.ar-item[hidden] { display: none; }
.ar-type.on i { border-color: var(--accent); }
.ar-type small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ar-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 8px 2px; }
.ar-sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ar-sw button { aspect-ratio: 1; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
.ar-sw button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.ar-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ar-row input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; }
.ar-row > span:last-child { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.ar-own { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; flex: 1; }
.ar-own svg { width: 15px; height: 15px; }
.ar-own input[type=color] { width: 1px; height: 1px; opacity: 0; position: absolute; }
.ar-cur { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); }
.ar-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; display: grid; gap: 10px; justify-items: center; }
.ar-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.ar-drop > svg { width: 22px; height: 22px; color: var(--accent); }
.ar-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
/* one piece */
.ar-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.ar-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.ar-hero .ar-board { height: 440px; min-height: 0; padding: 24px; }
.ar-hero-foot { display: flex; gap: 10px 14px; padding: 12px 16px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.ar-hero-foot > span { display: inline-flex; gap: 5px; align-items: center; }
.ar-hero-foot svg { width: 14px; height: 14px; }
.ar-desc { padding: 0 16px 16px; white-space: pre-wrap; color: var(--text); font-size: 14px; }
.ar-bigcode { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ar-bigcode code { flex: 1; font: 700 20px/1 var(--mono); letter-spacing: .06em; color: var(--text); user-select: all; }
.ar-steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.ar-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13.5px; counter-increment: s; }
.ar-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12px; }
.ar-steps kbd { font: 600 12.5px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.ar-srv { display: grid; gap: 8px; }
.ar-srv div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.ar-srv div span:first-of-type { flex: 1; }
.ar-srv > div > svg { width: 15px; height: 15px; color: var(--muted); }
.ar-fits { display: flex; flex-wrap: wrap; gap: 6px; }
.modal .ar-steps { margin-top: 0; }
.modal .ar-srv { margin-top: 16px; }
@media (max-width: 1100px) { .ar-ed { grid-template-columns: 52px minmax(0, 1fr); } .ar-ed .ar-side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 860px) { .ar-page { grid-template-columns: 1fr; } .ar-hero .ar-board { height: 300px; padding: 14px; } }
@media (max-width: 640px) {
  .ar-ed { grid-template-columns: 1fr; }
  .ar-rail { flex-direction: row; flex-wrap: wrap; position: static; }
  .ar-rail hr { display: none; }
  .ar-board { height: 340px; }
  .ar-sign.looking { padding: 8px; }
  .ar-size { display: none; }
}

/* Sentry logo (shield with an eye): orange in the menu, a tile beside the page title */
.nav a svg.sentry-mark { color: var(--accent); }
.sn-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.sn-mark svg { width: 30px; height: 30px; }
.sn-top .hero-card .kick.sn-kick { display: inline-flex; align-items: center; gap: 8px; }
.sn-kick svg { width: 18px; height: 18px; color: var(--accent); }
/* (website 1.50.0) Plan a base: right-click menu on a piece */
.pl-stage .pl-ctx { position: absolute; inset: 0 auto auto 0; width: max-content; min-width: 240px; max-width: 300px; z-index: 40; }
.pl-ctx .account-menu-head span { font-size: 12px; }
.pl-ctx kbd { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-family: inherit; }
.pl-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.pl-ctx button.danger, .pl-ctx button.danger svg { color: var(--bad, #e5484d); }
.pl-ctx .pl-ctx-gr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pl-ctx .pl-ctx-gr button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; width: auto; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.pl-ctx .pl-ctx-gr button i { width: 18px; height: 18px; border-radius: 4px; background: var(--c); }
.pl-ctx .pl-ctx-gr button.on, .pl-ctx .pl-ctx-gr button:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* (1.52.0) Plan a base: a build from the build server being changed, and where a save goes */
.pl-src { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; }
.pl-src svg { flex: none; margin-top: 1px; }
.pl-savewhere { display: grid; gap: 10px; }
.pl-where { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pl-where:hover, .pl-where:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pl-where svg { flex: none; margin-top: 2px; }
.pl-where span { display: grid; gap: 4px; }
.pl-where small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.bd-err { color: var(--danger, #e5484d); }

/* (1.54.1) phones: the tab bar at the bottom slides sideways when there are more tabs than fit (ten, eleven for
   staff), so their names never run into each other; and an account's row in Admin → Users puts its buttons underneath. */
@media (max-width: 760px) {
  .sidebar .nav { grid-auto-columns: minmax(50px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sidebar .nav::-webkit-scrollbar { display: none; }
  .list-item.acct-row { flex-wrap: wrap; }
  .list-item.acct-row .body { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .list-item.acct-row > .badge { margin-left: 44px; }
}

/* (1.55.0) My profile with nothing on it yet: one friendly line each, not tiles of dashes and a table with no rows */
.pf-nostats { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 20px; flex-wrap: wrap; }
.pf-nostats > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.pf-nostats > div { flex: 1; min-width: 220px; }
.pf-nostats p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pf-none { display: grid; justify-items: center; gap: 6px; padding: 36px 20px 40px; text-align: center; }
.pf-none > svg { width: 28px; height: 28px; color: var(--muted); }
.pf-none p { margin: 0 0 10px; color: var(--muted); max-width: 46ch; font-size: 14px; }
.pf-tools[hidden], .pf-table[hidden], .pf-foot[hidden] { display: none; }

/* (1.55.0) the Share dialog's link row */
.sh-linkrow { display: flex; gap: 8px; }
.sh-linkrow .input { flex: 1; min-width: 0; font-size: 13px; }
.sh-link[hidden] { display: none; }

/* (1.55.0) the Art editor's sign is a drop-down, so the brush and picture cards are not pushed down the page */
.ar-signcard { position: relative; z-index: 4; overflow: visible; }
.ar-signcard .ar-typesbody { position: relative; padding: 8px; }
.ar-signbtn { width: 100%; grid-template-columns: 34px 1fr auto 16px; border-color: var(--line-strong); background: var(--surface); }
.ar-signbtn .chev { width: 16px; height: 16px; color: var(--muted); }
.ar-signbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ar-signcard .ar-types { position: absolute; left: 8px; right: 8px; top: calc(100% - 4px); max-height: min(420px, 60vh); padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.ar-signcard .ar-types[hidden] { display: none; }

/* (1.55.0) Admin: the Inbox, Community content, a page per person, and "Set in Server Manager" */
.nav a.nav-tab { display: none; }
.adm-wait .adm-n { flex: none; min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.adm-wait .adm-n.bad { background: var(--bad-soft); color: var(--bad); }
.adm-wait .adm-n.warn { background: var(--warn-soft); color: var(--warn); }
.adm-wait > svg:last-child, .adm-setup .list-item > svg:last-child { transform: rotate(180deg); color: var(--faint); flex: none; }
.adm-clear { display: grid; justify-items: center; gap: 4px; padding: 30px 20px 32px; text-align: center; }
.adm-clear > svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--good-soft, var(--accent-soft)); color: var(--good, var(--accent)); }
.adm-clear p { margin: 0; color: var(--muted); font-size: 14px; max-width: 52ch; }
.adm-setup { margin-top: 16px; }
.adm-setup > summary { list-style: none; cursor: pointer; }
.adm-setup > summary::-webkit-details-marker { display: none; }
.adm-setup > summary > svg { width: 16px; height: 16px; color: var(--muted); }
.adm-setup[open] > summary > svg { transform: rotate(180deg); }
.adm-setup:not([open]) > summary { border-bottom: 0; }
.adm-setup .list-item.done > svg:first-child { color: var(--good, var(--accent)); }
.adm-setup .list-item.done .title { color: var(--muted); font-weight: 500; }
.adm-inmgr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.adm-inmgr > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.adm-inmgr > div { flex: 1; min-width: 220px; }
.adm-inmgr p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.adm-who { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.adm-who:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.adm-find { flex: 1 1 260px; }
.chip-n { opacity: .65; font-variant-numeric: tabular-nums; margin-left: 2px; }
.cm-row .cm-thumb { flex: none; width: 56px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; color: var(--muted); }
.cm-row .cm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cm-row .cm-thumb svg { width: 20px; height: 20px; }
.cm-row .title a { color: inherit; text-decoration: none; }
.cm-row .title a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }
.ps-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; }
.ps-head .avatar.lg { width: 72px; height: 72px; flex: none; }
.ps-who { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.ps-who h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.ps-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-grid { align-items: start; }
@media (max-width: 760px) { .ps-acts { width: 100%; } .ps-acts .btn { flex: 1 1 auto; } .cm-row { flex-wrap: wrap; } .cm-row .body { flex: 1 1 calc(100% - 80px); } .adm-find { max-width: none; } }
/* (1.55.3) A dot or tick box inside a form field got the text boxes' focus outline on every click (.field input:focus),
   which drew a tall box around it. A click now shows nothing extra; the keyboard still gets a clear mark, on the whole
   option card where there is one. */
.field input[type=radio]:focus, .field input[type=checkbox]:focus, .cx-vis .cx-visopt input[type=radio]:focus { outline: none; }
.field input[type=radio]:focus-visible, .field input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-vis .cx-visopt input[type=radio]:focus-visible { outline: none; }
.cx-visopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
