/* Hollow + Ace Staff Portal. Brand values taken from hollowservers.co and acerust.com. */
/* prose.css is loaded separately (with a version number) by render_header(). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Themes ----------
   Themes are classes so a single card (e.g. the Hollow card on the home page) can use its brand
   on a page with a different theme. */
:root, .theme-portal {
  --bg: #0c0d12;
  --surface: rgba(255,255,255,.028);
  --surface-2: rgba(255,255,255,.05);
  --surface-solid: #14161d;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.18);
  --text: #e7e8ec;
  --muted: #9a9caa;
  --link: #a5b4fc;
  --accent: #f4f4f5;
  --accent-hover: #ffffff;
  --on-accent: #0c0d12;
  --accent-text: #c7d2fe;
  --accent-glow: rgba(255,255,255,.12);
  --code-bg: rgba(255,255,255,.06);
  --code-text: #f1f1f4;
  --code-block-bg: #07080b;
  --response-bg: rgba(165,180,252,.07);
  --response-border: rgba(165,180,252,.32);
  --bg-art:
    radial-gradient(ellipse 900px 520px at 0% 0%, rgba(37,99,235,.13), transparent 60%),
    radial-gradient(ellipse 900px 520px at 100% 0%, rgba(225,29,72,.11), transparent 60%);
  color-scheme: dark;
}
.theme-hollow {
  --bg: #090b11;
  --surface: rgba(255,255,255,.025);
  --surface-2: rgba(255,255,255,.045);
  --surface-solid: #10131b;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.18);
  --link: #60a5fa;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --on-accent: #ffffff;
  --accent-text: #93c5fd;
  --accent-glow: rgba(37,99,235,.45);
  --response-bg: rgba(37,99,235,.09);
  --response-border: rgba(59,130,246,.42);
  --bg-art:
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(255,255,255,.028) 95px 96px),
    radial-gradient(ellipse 1100px 600px at 0% 105%, rgba(30,64,175,.20), transparent 60%),
    radial-gradient(ellipse 800px 500px at 100% -10%, rgba(56,130,246,.10), transparent 60%);
}
.theme-acerust {
  --bg: #181418;
  --surface: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.055);
  --surface-solid: #211b21;
  --border: rgba(255,255,255,.085);
  --border-strong: rgba(255,255,255,.2);
  --link: #fb7185;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --on-accent: #1a1008;
  --accent-text: #fda4af;
  --accent-glow: rgba(245,158,11,.35);
  --response-bg: rgba(225,29,72,.08);
  --response-border: rgba(225,29,72,.42);
  --bg-art:
    radial-gradient(ellipse 900px 600px at 50% 20%, rgba(225,29,72,.18), transparent 65%),
    radial-gradient(ellipse 1400px 900px at 50% 30%, rgba(159,18,57,.10), transparent 70%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg-art); pointer-events: none; }
a { color: var(--link); }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; font-weight: 750; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 .6rem; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: .75rem clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.brand span { margin-left: .3rem; }
.brand:hover { color: #fff; }
.nav-search { flex: 0 1 320px; }
.nav-search input { padding: .45rem .8rem; font-size: .9rem; margin: 0; background: var(--surface-2); }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; }
.mainnav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 500; font-size: .93rem; }
.mainnav a:hover, .mainnav a.active { color: #fff; }
.mainnav a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.count { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #e11d48; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.3rem; }
.subnav {
  display: flex; flex-wrap: wrap; gap: .25rem;
  padding: .5rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.subnav a { padding: .35rem .75rem; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }

main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.75rem clamp(1rem, 3vw, 2rem) 3rem; flex: 1; }
main.wide { max-width: 1400px; }
.footer { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); }

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 440px; margin: 2rem auto; }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.card.disabled { opacity: .6; }
.card.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.section { margin: 2rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .9rem; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.section-head a { font-size: .9rem; }

/* ---------- Forms & buttons ---------- */
label { display: block; margin-bottom: .95rem; font-weight: 500; font-size: .93rem; }
label small { color: var(--muted); font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1rem .6rem 0; font-weight: 400; }
label.switch { display: flex; align-items: center; gap: .5rem; }
fieldset { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 1rem; padding: .7rem 1rem .2rem; }
legend { padding: 0 .35rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
input[type=email], input[type=password], input[type=text], input[type=search], input[type=number], input[type=date],
input:not([type]), select, textarea, input.copy {
  display: block; width: 100%; margin-top: .35rem;
  padding: .6rem .75rem;
  background: rgba(0,0,0,.35); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  font: inherit; font-weight: 400;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
input.copy { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--accent); }
.narrow-input { max-width: 6rem; }
.muted-input { color: var(--muted) !important; font-size: .88rem !important; }

button, .button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.15rem;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent; border-radius: 7px;
  font: inherit; font-weight: 600; font-size: .93rem; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 16px var(--accent-glow);
  transition: background .15s, box-shadow .15s, transform .15s;
}
button:hover, .button:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
button.secondary, .button.secondary {
  background: rgba(255,255,255,.04); color: var(--text);
  border-color: var(--border-strong); box-shadow: none;
}
button.secondary:hover, .button.secondary:hover { background: rgba(255,255,255,.09); color: #fff; }
button.danger { background: transparent; color: #fb7185; border-color: rgba(225,29,72,.55); box-shadow: none; }
button.danger:hover { background: #e11d48; color: #fff; }
button.small, .button.small { padding: .38rem .8rem; font-size: .85rem; }
button.link { background: none; box-shadow: none; color: var(--link); padding: 0; font-weight: 500; border: 0; }
button.link:hover { color: var(--text); background: none; transform: none; }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; }
.row-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row-form input { margin: 0; flex: 1 1 12rem; }
.row-form .narrow-input { flex: 0 0 6rem; }
@media (prefers-reduced-motion: reduce) { button:hover, .button:hover { transform: none; } }

/* ---------- Messages ---------- */
.flash { padding: .75rem 1rem; border-radius: 9px; margin-bottom: 1rem; border: 1px solid; }
.flash-success { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
.flash-error { border-color: rgba(225,29,72,.55); background: rgba(225,29,72,.12); }
#toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  padding: .55rem 1rem; border-radius: 8px;
  background: #f4f4f5; color: #111; font-weight: 600; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Small tags ---------- */
.tag-draft, .tag-review, .tag-current {
  display: inline-block; padding: .05rem .45rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap; text-decoration: none; border: 1px solid;
}
.tag-draft { color: #e4e4e7; border-color: rgba(228,228,231,.35); border-style: dashed; }
.tag-draft.big { font-size: .72rem; padding: .2rem .6rem; }
.tag-review { color: #fbbf24; border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.08); }
.tag-current { color: #4ade80; border-color: rgba(74,222,128,.4); }
.dot-review { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #fbbf24; margin-left: .3rem; vertical-align: middle; }

/* Section colours from the owner's mockup: Mod = yellow, Admin = blue, General info = orange. */
.section-mod     { --sec: #facc15; --sec-soft: rgba(250,204,21,.12); --sec-line: rgba(250,204,21,.45); }
.section-admin   { --sec: #38bdf8; --sec-soft: rgba(56,189,248,.12); --sec-line: rgba(56,189,248,.45); }
.section-general, .section-info { --sec: #fb923c; --sec-soft: rgba(251,146,60,.12); --sec-line: rgba(251,146,60,.45); }

/* ---------- Brand marks ---------- */
.mark { display: flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.mark img { height: 64px; width: auto; flex: none; }
.mark-name { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: #fff; }
.mark-hollow .mark-name, .mark-hollow-name { font-weight: 900; letter-spacing: -.02em; }
.mark-acerust .mark-name, .mark-acerust-name { font-weight: 800; letter-spacing: .1em; }
.mark-acerust img, .server-tile.theme-acerust img { filter: drop-shadow(0 0 22px rgba(225,29,72,.45)); }

/* ---------- Pickers (choose server / choose handbook) ---------- */
.picker { text-align: center; padding: 1.5rem 0 1rem; }
.picker h1 { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 1.5rem; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 1.5rem; }
.server-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  min-height: 280px; padding: 2rem 1.5rem;
  border-radius: 18px; border: 1px solid var(--border-strong);
  background: var(--bg-art), var(--bg);
  text-decoration: none; color: #fff;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.server-tile img { height: 110px; width: auto; }
.server-tile .mark-name { font-size: 2.2rem; }
.server-tile.theme-hollow:hover { border-color: #3b82f6; box-shadow: 0 10px 40px rgba(37,99,235,.35); transform: translateY(-3px); }
.server-tile.theme-acerust:hover { border-color: #e11d48; box-shadow: 0 10px 40px rgba(225,29,72,.35); transform: translateY(-3px); }
/* Same stacked layout and logo height for every server, so the buttons below never shift. */
.picker-brand { flex-direction: column; justify-content: flex-end; gap: 1rem; height: 170px; margin-bottom: 1.75rem; }
.picker-brand img { height: 92px; }
.picker-brand .mark-name { font-size: clamp(2.2rem, 5vw, 3rem); }
.picker-title { font-size: 1.1rem; }
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: 1rem; }
.section-tile {
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; text-align: left;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: 14px; border: 1px solid var(--border-strong); border-top: 4px solid var(--sec);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.section-tile:hover { background: var(--sec-soft); border-color: var(--sec-line); border-top-color: var(--sec); color: var(--text); transform: translateY(-2px); }
.section-name { font-size: 1.35rem; font-weight: 750; }
.section-name::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; background: var(--sec); margin-right: .55rem; vertical-align: .08em; }
.section-blurb { color: var(--muted); font-size: .9rem; }
.picker-back { margin-top: 2rem; font-size: .9rem; }
.picker-back a { color: var(--muted); }

/* ---------- Handbook: menu + page ---------- */
main:has(.handbook) { max-width: 1320px; }
.handbook { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.hb-menu {
  position: sticky; top: 4.75rem;
  max-height: calc(100vh - 6rem); overflow-y: auto;
  padding: 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.hb-menu-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.hb-server { display: flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; font-weight: 700; }
.hb-server img { height: 22px; width: auto; }
.hb-section-pill {
  display: inline-block; padding: .18rem .6rem; border-radius: 6px;
  font-size: .75rem; font-weight: 700; text-decoration: none;
  color: var(--sec); background: var(--sec-soft); border: 1px solid var(--sec-line);
}
a.hb-section-pill:hover { background: var(--sec); color: #111; }
.hb-search input { margin: 0 0 .9rem; padding: .45rem .7rem; font-size: .88rem; }
.hb-chapters { display: flex; flex-direction: column; gap: .15rem; }
.hb-chapter summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .5rem; border-radius: 7px;
  font-weight: 650; font-size: .93rem;
}
.hb-chapter summary::-webkit-details-marker { display: none; }
.hb-chapter summary::before { content: "▸"; color: var(--muted); font-size: .75rem; width: .7rem; transition: transform .15s; }
.hb-chapter[open] summary::before { transform: rotate(90deg); }
.hb-chapter summary:hover { background: var(--surface-2); }
.hb-chapter a {
  display: block; margin: 0 0 .05rem 1.15rem; padding: .32rem .6rem;
  border-left: 2px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: .9rem;
}
.hb-chapter a:hover { color: var(--text); border-left-color: var(--border-strong); }
.hb-chapter a.active { color: var(--text); font-weight: 600; border-left-color: var(--sec); background: var(--sec-soft); border-radius: 0 6px 6px 0; }
.hb-empty { display: block; margin: 0 0 .4rem 1.8rem; }
.hb-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.hb-switch .muted { width: 100%; }
.hb-menu-toggle { display: none; margin-bottom: 1rem; }

.hb-page { min-width: 0; max-width: 820px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.hb-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.hb-page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.hb-page-head .actions { margin-top: .35rem; }
.under-review {
  padding: .75rem 1rem; margin-bottom: 1.25rem; border-radius: 9px;
  border: 1px solid rgba(251,191,36,.5); background: rgba(251,191,36,.08); font-size: .93rem;
}
.under-review strong { color: #fbbf24; }
.review-note { margin: .5rem 0; }
.hb-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.hb-toc a {
  padding: .25rem .65rem; border-radius: 999px; font-size: .82rem; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border-strong);
}
.hb-toc a:hover { color: var(--text); border-color: var(--sec); }
.hb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 1.5rem; }
.hb-pager a {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.hb-pager a span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hb-pager a:hover { border-color: var(--sec); }
.hb-pager .next { text-align: right; align-items: flex-end; grid-column: 2; }
.needs-review { padding: .8rem 1rem; border: 1px dashed var(--border-strong); border-radius: 10px; }
.needs-review summary { cursor: pointer; font-weight: 600; color: #fbbf24; }
.needs-review form { margin-top: .75rem; }
.needs-review p { margin-top: 0; }

.copy-btn {
  position: absolute; top: .5rem; right: .5rem;
  padding: .28rem .65rem; font-size: .76rem; font-weight: 600;
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: none;
}
.copy-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: none; }
.prose pre .copy-btn { top: .45rem; right: .45rem; }

/* ---------- Search ---------- */
.big-search { display: flex; gap: .5rem; }
.big-search input { margin: 0; padding: .85rem 1rem; font-size: 1.02rem; background: rgba(0,0,0,.45); }
.big-search select { margin: 0; width: auto; }
.big-search button { flex: none; }
.search-page .big-search { margin-bottom: 1.25rem; }
.results { display: grid; gap: .6rem; }
.result {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .9rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none;
}
.result:hover { border-color: var(--accent); color: var(--text); }
.result-path { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.result-path img { height: 16px; width: auto; }
.result-title { font-weight: 650; font-size: 1.02rem; }
.result-excerpt { color: var(--muted); font-size: .9rem; }
.result-excerpt mark { background: rgba(250,204,21,.25); color: #fff; border-radius: 3px; padding: 0 .1em; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.small-tabs a { padding: .45rem .85rem; font-size: .9rem; }
.small-tabs a[class*="section-"].active { border-bottom-color: var(--sec); }
.tab-icon { height: 18px; width: auto; }
.with-sidebar.history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }

/* ---------- Changelog ---------- */
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog-day { margin: 1.6rem 0 .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.changelog-item { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .7rem 1rem; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; margin-bottom: .4rem; }
.changelog-item a { font-weight: 600; text-decoration: none; color: var(--text); }
.changelog-item a:hover { color: var(--link); }
.changelog-kind { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 5px; }
.changelog-kind.new { background: rgba(74,222,128,.12); color: #4ade80; }
.changelog-kind.edit { background: rgba(96,165,250,.12); color: #60a5fa; }
.changelog-note { color: var(--muted); font-style: italic; font-size: .9rem; }
.changelog-when { margin-left: auto; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table tr.selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.admin-table td a { text-decoration: none; }
.admin-table td input { margin: 0 0 .3rem; padding: .4rem .6rem; }
.review-item.resolved { opacity: .75; }
.resolve-form { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.resolve-form label { margin-bottom: .5rem; }
.review-reply { margin: .8rem 0 .2rem; padding: .7rem .9rem; border-radius: 9px; background: rgba(74,222,128,.07); border-left: 3px solid #4ade80; }
.review-reply p { margin: .3rem 0 0; }
.review-reply-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4ade80; }
.list-heading { margin: 1.75rem 0 .75rem; font-size: 1rem; }
.my-review .section-head { margin-bottom: .3rem; }
.my-review .muted.small { margin: 0 0 .4rem; }
.my-review.is-new { border-color: rgba(74,222,128,.55); box-shadow: 0 0 0 3px rgba(74,222,128,.12); }
.tag-new { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #4ade80; color: #06260f; margin-right: .3rem; }
.chapter-card { padding: 1rem 1.2rem; }
.chapter-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.chapter-head .rename { display: flex; gap: .5rem; flex: 1 1 320px; }
.chapter-head .rename input { margin: 0; font-weight: 650; font-size: 1.02rem; }
.order-buttons { display: inline-flex; gap: .3rem; }
.order-buttons button { padding: .25rem .55rem; }
.order-buttons button[disabled] { opacity: .3; cursor: default; transform: none; }
.page-rows { list-style: none; margin: 0 0 .8rem; padding: 0; }
.page-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 7px; }
.page-rows li:hover { background: var(--surface-2); }
.page-row-title { font-weight: 600; text-decoration: none; color: var(--text); }
.page-row-when { margin-left: auto; }
.danger-zone { border-color: rgba(225,29,72,.35); }
.danger-zone summary { cursor: pointer; color: #fb7185; font-weight: 600; }
.danger-zone form { margin-top: 1rem; }

/* Editor page */
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.editor-side { position: sticky; top: 4.5rem; max-height: calc(100vh - 5.5rem); overflow-y: auto; padding-right: .2rem; }
.editor-side .card { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.editor-side h3 { margin-bottom: .75rem; }
.title-field input { font-size: 1.3rem; font-weight: 650; padding: .7rem .85rem; }
.editor-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); }
.editor-wrap .tox-tinymce { border: 0 !important; border-radius: 0 !important; }
.editor-wrap textarea { min-height: 560px; }
.editor-tips { margin-top: .6rem; }

/* Users page */
.card.user h2 { display: flex; align-items: center; gap: .5rem; }
.tag { font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: #e11d48; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .editor-form, .with-sidebar.history { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; max-height: none; }
  .handbook { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hb-menu { display: none; position: static; max-height: none; margin-bottom: 1.25rem; }
  .hb-menu.open { display: block; }
  .hb-menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .topbar { gap: .6rem; }
  .brand span { font-size: .92rem; }
  .nav-search { order: 3; flex: 1 1 100%; }
  .mainnav { order: 2; gap: .3rem .9rem; }
  .big-search { flex-wrap: wrap; }
  .big-search button { width: 100%; justify-content: center; }
  .server-tile { min-height: 200px; }
  .server-tile img { height: 80px; }
  .hb-pager { grid-template-columns: 1fr; }
  .hb-pager .next { grid-column: 1; }
  .changelog-when { margin-left: 0 !important; width: 100%; }
}

/* ======================================================================
   2026-09-27: merged Hollow + AceRust, staff directory, server list
   ====================================================================== */

/* Home: both brands side by side */
.dual-brand { display: flex; flex-direction: row !important; justify-content: center; align-items: flex-end; gap: 1.75rem; height: auto; }
.dual-brand .mark { flex-direction: column; gap: .8rem; }
.dual-brand .mark img { height: 84px; }
.dual-brand .mark-name { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.brand-plus { font-size: 2rem; font-weight: 300; color: var(--muted); padding-bottom: .9rem; }

/* Server tags (page-level "Hollow only" / "AceRust only", server group chips) */
.server-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .1rem .5rem; border-radius: 999px; vertical-align: middle;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid;
}
.server-tag img { height: 13px; width: auto; }
.server-tag.net-hollow  { color: #93c5fd; border-color: rgba(59,130,246,.45); background: rgba(37,99,235,.12); }
.server-tag.net-acerust { color: #fda4af; border-color: rgba(225,29,72,.45);  background: rgba(225,29,72,.12); }
.hb-page-head h1 .server-tag { font-size: .8rem; margin-left: .3rem; }
.menu-net { height: 13px; width: auto; margin-left: .3rem; vertical-align: -1px; opacity: .9; }
.hb-server img { height: 20px; }
.hb-server { gap: .3rem; }

/* Server info: pinned "Server list" menu entry */
.hb-special {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .35rem; padding: .5rem .6rem; border-radius: 8px;
  font-weight: 650; font-size: .93rem; color: var(--text); text-decoration: none;
  border: 1px solid var(--border);
}
.hb-special:hover { background: var(--surface-2); color: var(--text); }
.hb-special.active { background: var(--sec-soft); border-color: var(--sec-line); }
.hb-special-icon { color: var(--sec); }
.hb-page.hb-wide { max-width: none; }

/* Small status tones (note statuses and counts) */
.note-status, .note-count {
  display: inline-block; padding: .08rem .5rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; border: 1px solid;
}
.note-count { margin-right: .25rem; }
.tone-amber { color: #fbbf24; border-color: rgba(251,191,36,.5);  background: rgba(251,191,36,.08); }
.tone-red   { color: #fb7185; border-color: rgba(251,113,133,.5); background: rgba(251,113,133,.09); }
.tone-blue  { color: #7dd3fc; border-color: rgba(125,211,252,.45); background: rgba(56,189,248,.08); }
.tone-green { color: #4ade80; border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); }
.tone-grey  { color: #a1a1aa; border-color: rgba(161,161,170,.4); background: rgba(161,161,170,.08); }

/* Server list */
.server-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 1rem; }
.server-filters select { margin: 0; width: auto; flex: 1 1 150px; padding: .45rem .65rem; font-size: .88rem; }
.server-filters label.check { margin: 0 .5rem; }
.server-table td { vertical-align: top; }
.server-table tr.net-hollow td:first-child  { box-shadow: inset 3px 0 0 rgba(59,130,246,.7); }
.server-table tr.net-acerust td:first-child { box-shadow: inset 3px 0 0 rgba(225,29,72,.7); }
.server-name { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); text-decoration: none; }
.server-name img { height: 22px; width: auto; margin-top: .1rem; flex: none; }
.server-name:hover strong { color: var(--sec); }
.server-fullname { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }
.server-table .server-name span { display: block; }
.server-table td { padding-top: .7rem; padding-bottom: .7rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.feature-tag, .region-tag, .wipe-tag {
  display: inline-block; padding: .08rem .45rem; border-radius: 5px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.feature-tag.has-desc { color: var(--sec); border-color: var(--sec-line); }
.region-tag { font-weight: 700; letter-spacing: .04em; }
.wipe-tag.wipe-monthly { color: #c4b5fd; border-color: rgba(196,181,253,.4); }
.wipe-tag.wipe-biweekly { color: #fdba74; border-color: rgba(253,186,116,.35); }
.inline-icon { height: 18px; width: auto; vertical-align: -3px; }
.inline-icon.big { height: 28px; vertical-align: -5px; }

/* Server detail */
.server-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.server-head > img { height: 72px; width: auto; flex: none; }
.server-head.net-acerust > img { filter: drop-shadow(0 0 18px rgba(225,29,72,.45)); }
.server-head h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.server-head .server-fullname { font-size: .85rem; margin: .2rem 0 0; }
.server-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.server-facts > div { display: flex; flex-direction: column; padding: .75rem .9rem; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.server-facts span { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.server-facts strong { font-size: 1.2rem; }
.server-facts small { color: var(--muted); font-size: .76rem; }
.server-desc { margin-bottom: .5rem; }
.server-note { padding: .75rem .9rem; margin-bottom: .6rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.server-note p { margin: .4rem 0 0; }
.server-note.status-to_fix { border-color: rgba(251,113,133,.35); }
.server-note.status-pending { border-color: rgba(251,191,36,.35); }
.server-note.status-not_issue { opacity: .65; }
.fixed-notes summary { cursor: pointer; color: var(--muted); margin: .5rem 0; }
#notes .needs-review { margin-top: 1rem; }

/* Staff directory */
.staff-group { margin-bottom: 1.5rem; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.staff-card { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 5rem; }
.staff-card:target { border-color: var(--accent); }
.staff-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.staff-card h3 { margin: 0; font-size: 1.05rem; }
.staff-card.is-away { opacity: .8; border-style: dashed; }
.role-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 .6rem; }
.role-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .1rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.role-tag img { height: 13px; width: auto; }
.role-tag.role-head { color: #fde68a; border-color: rgba(253,230,138,.45); background: rgba(253,230,138,.08); }
.role-tag.role-admin { border-color: rgba(56,189,248,.45); }
.role-tag.role-mod { border-color: rgba(250,204,21,.4); }
.staff-time { margin: 0; font-size: .9rem; }
.staff-clock { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.staff-focus, .staff-away { margin: .4rem 0 0; font-size: .88rem; }
.staff-away { color: #fbbf24; }
.away-badge { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #fbbf24; color: #1a1008; }
.staff-edit { margin-top: .7rem; }
.staff-edit summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.my-status summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.staff-form { margin-top: 1rem; }
.staff-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.staff-form-grid .span-2 { grid-column: 1 / -1; }
.away-set legend label { margin: 0; font-weight: 700; }
.away-group .list-heading { color: #fbbf24; }
.chapter-card.archived { opacity: .65; }

@media (max-width: 720px) {
  .dual-brand { gap: 1rem; }
  .dual-brand .mark img { height: 56px; }
  .brand-plus { font-size: 1.4rem; padding-bottom: .5rem; }
  .server-head > img { height: 48px; }
}

/* 2026-09-28: Staff page as a Discord-style list */
.staff-page { max-width: 760px; margin: 0 auto; }
.staff-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; font-size: .85rem; color: var(--muted); }
.staff-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.status-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.status-dot.available { background: #22c55e; }
.status-dot.away { background: #ef4444; }
.my-status summary { list-style: none; }
.my-status summary::-webkit-details-marker { display: none; }
.my-status-edit { margin-left: auto; font-size: .85rem; color: var(--link); }
.my-status[open] .my-status-edit { visibility: hidden; }
.staff-list { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: .4rem .5rem .7rem; }
.staff-heading {
  margin: 1rem .6rem .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.staff-heading:first-child { margin-top: .6rem; }
.staff-row { border-radius: 8px; scroll-margin-top: 5rem; }
.staff-row > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .6rem; border-radius: 8px;
}
.staff-row > summary::-webkit-details-marker { display: none; }
.staff-row > summary:hover { background: var(--surface-2); }
.staff-row[open] { background: var(--surface-2); }
.staff-row[open] > summary { background: transparent; }
.staff-name { font-weight: 600; font-size: .98rem; }
.staff-row.is-away .staff-name { color: var(--muted); }
.staff-net { height: 15px; width: auto; }
.staff-away-hint { margin-left: auto; font-size: .76rem; color: #fca5a5; }
.staff-details { padding: .2rem .8rem .8rem 2rem; }
.staff-details dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.staff-details dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .15rem; }
.staff-details dd { margin: 0; }
.staff-details .staff-away { color: #fca5a5; }
.staff-edit { margin-top: .8rem; }
.staff-edit > summary { cursor: pointer; color: var(--link); font-size: .85rem; }
/* 2026-09-28: no presence dots on the Staff list; a caret shows rows expand */
.staff-caret { color: var(--muted); font-size: .7rem; width: .7rem; transition: transform .15s; }
.staff-row[open] .staff-caret { transform: rotate(90deg); }

/* 2026-09-28: home page styled after Jake's portal: logos only, gradient tiles, page count + arrow */
.picker-logos { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin-bottom: 1.75rem; }
.picker-logos img { height: 84px; width: auto; }
.picker-logos .logo-acerust { filter: drop-shadow(0 0 18px rgba(225,29,72,.45)); }
.section-tile {
  background: linear-gradient(155deg, color-mix(in srgb, var(--sec) 22%, transparent) 0%, color-mix(in srgb, var(--sec) 7%, transparent) 45%, rgba(255,255,255,.015) 100%), var(--surface);
  min-height: 190px;
}
.section-tile:hover { background: linear-gradient(155deg, color-mix(in srgb, var(--sec) 32%, transparent) 0%, color-mix(in srgb, var(--sec) 12%, transparent) 50%, rgba(255,255,255,.02) 100%), var(--surface); }
.section-foot {
  display: flex; justify-content: space-between; align-items: center; align-self: stretch;
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
.section-arrow { color: var(--sec); font-size: 1.15rem; transition: transform .15s; }
.section-tile:hover .section-arrow { transform: translateX(3px); }
@media (max-width: 720px) { .picker-logos img { height: 60px; } }
/* "STAFF PORTAL" under the logos, as on Jake's portal */
.picker-logos { margin-bottom: 1rem; }
.picker .portal-title {
  margin: 0 0 .9rem; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -.01em; line-height: 1;
  color: #e5e7eb; background: linear-gradient(180deg, #ffffff 0%, #c7cbd4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.picker .picker-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }

/* 2026-09-28: top bar is now ☰ menu + user + Log out */
.topnav { display: flex; align-items: center; gap: 1rem; }
.site-menu { position: relative; }
.site-menu > summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; place-items: center; width: 40px; height: 38px;
  border-radius: 8px; border: 1px solid var(--border-strong); color: var(--text);
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover, .site-menu[open] > summary { background: var(--surface-2); }
.menu-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #e11d48; box-shadow: 0 0 0 2px var(--bg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40;
  min-width: 220px; padding: .4rem;
  display: flex; flex-direction: column;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.menu-panel a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .7rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem;
}
.menu-panel a:hover { background: var(--surface-2); color: #fff; }
.menu-panel a.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.menu-panel .count { margin-left: auto; }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: .35rem .3rem; }
.menu-swatch { width: .6rem; height: .6rem; border-radius: 3px; background: var(--sec); }
.user-chip { color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; }
.user-chip:hover, .user-chip.active { color: #fff; }
@media (max-width: 720px) {
  .topnav { order: 2; margin-left: auto; }
  .menu-panel { right: -4.5rem; }
}

/* 2026-09-28: Steam sign-in */
.signin h1 { margin-bottom: 1.1rem; }
.steam-button {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  padding: .8rem 1rem; border-radius: 9px; border: 1px solid #3d5a80;
  background: linear-gradient(180deg, #1b2838, #171a21); color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: none;
}
.steam-button:hover { background: linear-gradient(180deg, #2a475e, #1b2838); color: #fff; }
.legacy-signin { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.legacy-signin summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.legacy-signin form { margin-top: .8rem; }
.steam-linked { display: flex; gap: .9rem; align-items: flex-start; }
.steam-linked img, .user-chip img, .steam-status img { border-radius: 6px; }
.steam-linked strong { display: block; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; }
.user-chip img { width: 28px; height: 28px; }
.steam-status { display: flex; align-items: center; gap: .4rem; margin: -.4rem 0 .8rem; }
.picker .welcome { margin: -.2rem 0 1.4rem; color: var(--muted); font-size: 1rem; }
.picker .welcome strong { color: var(--text); }

/* 2026-09-28: make "where am I" obvious in the handbook menu */
.hb-chapter.is-current > summary { color: var(--sec); }
.hb-chapter.is-current > summary::before { color: var(--sec); }
.hb-chapter a.active {
  color: #fff; font-weight: 650;
  background: color-mix(in srgb, var(--sec) 16%, transparent);
  border-left: 3px solid var(--sec); border-radius: 0 7px 7px 0;
  padding-left: calc(.6rem - 1px);
}

/* 2026-09-28: Staff page polish: avatars, role-coloured headings, profile card */
.staff-sub { margin: .2rem 0 0; }
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-initials {
  display: inline-grid; place-items: center;
  font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #52525b, #27272a);
}
.avatar-sm.avatar-initials { font-size: .78rem; }
.avatar-lg.avatar-initials { font-size: 1.4rem; }
.avatar-initials.tone-hollow  { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.avatar-initials.tone-acerust { background: linear-gradient(135deg, #f43f5e, #881337); }
.avatar-initials.tone-both    { background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 50%, #e11d48 100%); }

.staff-list { padding: .5rem .6rem .9rem; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
.staff-heading { display: flex; align-items: center; gap: .5rem; margin: 1.1rem .6rem .45rem; }
.staff-count { font-size: .68rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); letter-spacing: 0; }
.staff-row > summary { padding: .5rem .6rem; gap: .65rem; }
.staff-row > summary .staff-caret { margin-left: auto; }
.staff-name { font-size: 1rem; }
.you-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .05rem .4rem; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.staff-row[open] { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); box-shadow: inset 0 0 0 1px var(--border); }
.staff-details { padding: .3rem 1rem 1rem 1rem; }
.staff-card-top { display: flex; align-items: center; gap: 1rem; padding: .6rem 0 .9rem; margin-bottom: .7rem; border-bottom: 1px solid var(--border); }
.staff-card-top > div:nth-child(2) { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.staff-card-name { font-size: 1.15rem; }
.staff-card-pos { font-size: .82rem; font-weight: 600; color: var(--muted); }
.staff-card-clock { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.staff-card-clock strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.staff-card-clock span { font-size: .76rem; color: var(--muted); }
.staff-details dl { padding-left: .2rem; }
@media (max-width: 560px) {
  .staff-card-top { flex-wrap: wrap; }
  .staff-card-clock { margin-left: 0; text-align: left; width: 100%; }
}

/* Access requests */
.access-request .steam-linked { margin-bottom: .6rem; }
.access-request .steam-linked .small { color: var(--muted); }
.deny-box { margin-top: .6rem; }
.deny-box > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.deny-box form { margin-top: .5rem; }
.request-who { margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.request-who .small { display: block; }
fieldset > p.small { margin: 0 0 .4rem; }

/* Log out lives in the footer (bottom right) */
.footer { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.footer-logout { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); margin: 0; }
.footer-logout button { font-size: .85rem; }
@media (max-width: 720px) {
  .footer { flex-direction: column; gap: .6rem; }
  .footer-logout { position: static; transform: none; }
}

/* Temporary reviewers (Manage → Users) */
.tag-reviewer { background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.45); color: #d8b4fe; }
.reviewer-create > summary { cursor: pointer; }
.reviewer-create form { margin-top: .9rem; }

/* Review info bar at the top of a handbook page */
.page-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: -.3rem 0 1.2rem; font-size: .82rem; color: var(--muted); }
.page-meta strong { color: var(--text); font-weight: 600; }
.page-meta .not-reviewed { color: #fbbf24; }

/* Portal suggestions */
.suggest-form > summary { cursor: pointer; }
.suggest-form form { margin-top: .9rem; }
.suggestion { display: flex; gap: 1rem; align-items: flex-start; scroll-margin-top: 5rem; }
.suggestion.is-fresh { border-color: rgba(59,130,246,.6); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.suggestion .vote { margin: 0; flex: none; }
.vote-btn {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 3.2rem; padding: .45rem .5rem;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 10px; box-shadow: none;
}
.vote-btn:hover { border-color: var(--accent); color: var(--text); }
.vote-btn.voted { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.6); color: #93c5fd; }
.vote-arrow { font-size: .75rem; line-height: 1; }
.vote-count { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.suggestion-body { flex: 1; min-width: 0; }
.suggestion-body h2 { margin: 0 0 .2rem; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sug-details { margin: .5rem 0; white-space: normal; overflow-wrap: anywhere; }
.sug-status { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; border: 1px solid; }
.sug-new { color: #d4d4d8; border-color: rgba(255,255,255,.25); }
.sug-planned { color: #93c5fd; border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.1); }
.sug-done { color: #86efac; border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
.sug-declined { color: #fda4af; border-color: rgba(225,29,72,.45); background: rgba(225,29,72,.08); }
.sug-reply { margin: .6rem 0; padding: .6rem .8rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 6px; font-size: .93rem; }
.sug-manage { margin-top: .6rem; }
.sug-manage > summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.sug-manage form { margin-top: .5rem; }
button.link.danger-link { color: #fb7185; }
.images-needed > summary { cursor: pointer; }
.images-needed ul { margin: .7rem 0 .4rem; columns: 2 18rem; }

/* Review digest */
.digest-since { display: flex; align-items: flex-end; gap: .6rem; margin: -.5rem 0 1rem; }
.digest-since label { margin: 0; }
.digest-counts { color: var(--muted); }
.digest-counts strong { color: var(--text); }
.digest-section { margin: 1.6rem 0 .7rem; }
.digest-page h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.digest-items { margin: 0; padding-left: 1.1rem; }
.digest-items li { margin: .35rem 0; overflow-wrap: anywhere; }
.digest-edit { color: var(--muted); }
.review-code-button { display: block; text-align: center; margin: .7rem 0 .2rem; }
.review-code-value code { font-size: 1.3rem; padding: .35rem .8rem; user-select: all; }

/* Bugs (server pages + Open bugs) */
.bugs { margin-bottom: 1.5rem; scroll-margin-top: 5rem; }
.bug { border: 1px solid var(--border); border-left: 3px solid #e11d48; border-radius: 10px; padding: .8rem 1rem; margin: 0 0 .8rem; background: var(--surface); scroll-margin-top: 5rem; }
.bug.status-fixed { border-left-color: #22c55e; }
.bug.status-not_bug { border-left-color: var(--border-strong); }
.bug-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bug-title { font-size: 1.02rem; }
.bug-meta { margin: .25rem 0 .4rem; color: var(--muted); font-size: .88rem; }
.bug-meta strong { color: var(--text); }
.bug-count { display: inline-block; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(225,29,72,.15); color: #fda4af; font-weight: 700; font-size: .8rem; text-align: center; }
.bug-status { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .5rem; border-radius: 999px; border: 1px solid; }
.bug-fixed { color: #86efac; border-color: rgba(34,197,94,.5); }
.bug-not_bug { color: var(--muted); border-color: var(--border-strong); }
.bug-reports > summary, .bug-actions summary { cursor: pointer; }
.bug-reports > summary { color: var(--muted); font-size: .88rem; }
.bug-reports ul { margin: .4rem 0 .2rem; padding-left: 1.1rem; }
.bug-reports li { margin: .3rem 0; overflow-wrap: anywhere; }
.bug-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: flex-start; }
.bug-actions > details > summary { list-style: none; display: inline-block; }
.bug-actions > details > summary::-webkit-details-marker { display: none; }
.bug-actions > details[open] { flex-basis: 100%; }
.bug-actions form { margin-top: .5rem; }
.bug-table td { vertical-align: middle; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.active-link { color: var(--text); font-weight: 700; text-decoration: none; }
.webhook-settings { margin-top: 1.5rem; }
.webhook-settings > summary { cursor: pointer; }
.bug-exploit { color: #fcd34d; border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.1); }
.hb-alert-dot { display: inline-block; width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,.18); flex: none; }
