/* Brix dashboard
   One look everywhere, taken from how Discord bots' best dashboards are laid out: a page title with one line under it,
   then panels made of rows (what a setting does on the left, its control on the right).
   Black and white. Colour only means something: green is on or fine, orange needs attention, red is critical or
   destructive. Geist (SIL Open Font License, public/fonts/OFL.txt) is served from this site.
   (Seasonal touches were removed in November 2026; keep the look the same all year.) */

@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --bg: #0d0e10; --surface: #16171a; --surface-2: #1b1c20; --surface-3: #25262b;
  --line: #26272c; --line-soft: #1f2024; --line-hover: #3a3b42;
  --text: #f4f4f5; --muted: #a1a1aa; --faint: var(--muted); --body: #d4d4d8;
  --accent: #ff7a1a; --accent-soft: rgba(255, 122, 26, .12); --accent-line: rgba(255, 122, 26, .42);
  --good: #3fb27f; --good-soft: rgba(63, 178, 127, .12); --good-line: rgba(63, 178, 127, .4);
  --warn-ink: #ff9a3c; --warn: #ff9a3c; --warn-soft: rgba(255, 154, 60, .1); --warn-line: rgba(255, 154, 60, .38);
  --bad: #f04a3e; --bad-soft: rgba(240, 74, 62, .1); --bad-line: rgba(240, 74, 62, .4);
  --bad-text: #ff8a80; --good-text: #8fd6b0; --warn-text: #ffc08a; --lava-text: #ff6a45; --lava-hover: #ff7d5c;
  --on-text: #0d0e10; --text-hover: #ffffff; --knob: #d4d4d8; --focus-line: #55565e; --focus-glow: rgba(255, 255, 255, .07);
  --switch-hover: #4a4b52; --header-bg: rgba(13, 14, 16, .92); --select: rgba(255, 255, 255, .22); --select-text: #fff;
  --shadow: rgba(0, 0, 0, .45); --shadow-strong: rgba(0, 0, 0, .75); --backdrop: rgba(0, 0, 0, .6);
  --chart-track: #151518; --chart-1: #ececef; --chart-2: #6b6b73; --chart-3: #8b8b93; --dot: #ffffff;
  --radius: 10px; --radius-sm: 8px;
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --top: 60px;
}

/* Light: the same layout and the same three status colours, darkened enough to read on white. It follows the system
   setting unless someone picks a theme in the top bar (theme.js stores it and sets data-theme before the page paints). */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f6f6f7; --surface: #ffffff; --surface-2: #f1f1f3; --surface-3: #e4e4e8;
  --line: #e2e2e7; --line-soft: #ececef; --line-hover: #c8c8d0;
  --text: #111113; --muted: #55555e; --faint: var(--muted); --body: #2c2c32;
  --accent: #d9580a; --accent-soft: rgba(217, 88, 10, .1); --accent-line: rgba(217, 88, 10, .4);
  --good: #1f8a5b; --good-soft: rgba(31, 138, 91, .1); --good-line: rgba(31, 138, 91, .38);
  --warn-ink: #a85900; --warn: #c76a00; --warn-soft: rgba(199, 106, 0, .09); --warn-line: rgba(199, 106, 0, .38);
  --bad: #d0342a; --bad-soft: rgba(208, 52, 42, .08); --bad-line: rgba(208, 52, 42, .38);
  --bad-text: #b3261e; --good-text: #17663f; --warn-text: #8f4a00; --lava-text: #c2330f; --lava-hover: #a82a0b;
  --on-text: #ffffff; --text-hover: #000000; --knob: #ffffff; --focus-line: #9a9aa4; --focus-glow: rgba(17, 17, 19, .08);
  --switch-hover: #b4b4bd; --header-bg: rgba(246, 246, 247, .9); --select: rgba(217, 88, 10, .2); --select-text: #111113;
  --shadow: rgba(17, 17, 19, .12); --shadow-strong: rgba(17, 17, 19, .2); --backdrop: rgba(17, 17, 19, .35);
  --chart-track: #f0f0f2; --chart-1: #18181b; --chart-2: #a1a1aa; --chart-3: #9a9aa4; --dot: #ffffff;
} }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f7; --surface: #ffffff; --surface-2: #f1f1f3; --surface-3: #e4e4e8;
  --line: #e2e2e7; --line-soft: #ececef; --line-hover: #c8c8d0;
  --text: #111113; --muted: #55555e; --faint: var(--muted); --body: #2c2c32;
  --accent: #d9580a; --accent-soft: rgba(217, 88, 10, .1); --accent-line: rgba(217, 88, 10, .4);
  --good: #1f8a5b; --good-soft: rgba(31, 138, 91, .1); --good-line: rgba(31, 138, 91, .38);
  --warn-ink: #a85900; --warn: #c76a00; --warn-soft: rgba(199, 106, 0, .09); --warn-line: rgba(199, 106, 0, .38);
  --bad: #d0342a; --bad-soft: rgba(208, 52, 42, .08); --bad-line: rgba(208, 52, 42, .38);
  --bad-text: #b3261e; --good-text: #17663f; --warn-text: #8f4a00; --lava-text: #c2330f; --lava-hover: #a82a0b;
  --on-text: #ffffff; --text-hover: #000000; --knob: #ffffff; --focus-line: #9a9aa4; --focus-glow: rgba(17, 17, 19, .08);
  --switch-hover: #b4b4bd; --header-bg: rgba(246, 246, 247, .9); --select: rgba(217, 88, 10, .2); --select-text: #111113;
  --shadow: rgba(17, 17, 19, .12); --shadow-strong: rgba(17, 17, 19, .2); --backdrop: rgba(17, 17, 19, .35);
  --chart-track: #f0f0f2; --chart-1: #18181b; --chart-2: #a1a1aa; --chart-3: #9a9aa4; --dot: #ffffff;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01"; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main, body > .page, body > .app, body > .docs { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--select); color: var(--select-text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
[hidden] { display: none !important; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.mono { font-family: var(--mono); }
.faint { color: var(--faint); font-size: 14px; }
.grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; color: var(--text); }
.label-sm { font: 600 14px/1.4 var(--font); color: var(--muted); margin-bottom: 6px; }

/* ------------------------------------------------------------------ top bar: brand left, pages in the middle, you on the right */
header.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 0 var(--gutter); background: var(--header-bg); border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 18px/1 var(--display); letter-spacing: -.03em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
header.top nav { display: flex; gap: 2px; }
header.top nav a { color: var(--muted); padding: 7px 11px; border-radius: 7px; font-size: 14px; font-weight: 500; transition: color .12s, background .12s; }
header.top nav a:hover { color: var(--text); }
header.top nav a[aria-current=page] { color: var(--text); }
.me { justify-self: end; position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.me .who { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 999px;
  min-width: 0; background: none; cursor: pointer; color: var(--text); font-weight: 500; transition: background .12s, border-color .12s; }
.me .who:hover, .me .who[aria-expanded=true] { background: var(--surface-2); border-color: var(--line); }
.me .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px var(--shadow); transform-origin: top right; display: grid;
  animation: pop .16s cubic-bezier(.23, 1, .32, 1); }
.me-menu a, .me-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px;
  color: var(--body); font-size: 14px; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover { background: var(--surface-2); color: var(--text); }
.me-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 4px; }
.me-menu .danger { color: var(--bad-text); }
.me-menu small { display: block; padding: 6px 10px 4px; color: var(--faint); font-size: 14px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); flex: none; object-fit: cover; }
.avatar.letter { display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.avatar.big { width: 40px; height: 40px; font-size: 15px; }
.avatar.huge { width: 84px; height: 84px; font-size: 30px; border: 3px solid var(--surface-3); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 550 14px/1 var(--font); padding: 9px 14px; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); border-color: var(--line-hover); }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn.primary { background: var(--text); color: var(--on-text); border-color: var(--text); }
.btn.primary:hover { background: var(--text-hover); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #140700; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad-text); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad-line); }
.btn.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { padding: 7px 11px; font-size: 14px; }
.btn.big { padding: 12px 20px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn img { width: 16px; height: 16px; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.pending { position: relative; padding-left: 32px; }
.btn.pending::before { content: ""; position: absolute; left: 11px; top: 50%; width: 13px; height: 13px; margin-top: -7px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.pending::after { content: "…"; }
.menu-btn { display: none; }

/* ------------------------------------------------------------------ fields */
select, input[type=text], input[type=number], input[type=search], input[type=date], textarea {
  width: 100%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px; font: 13.5px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 44px; }
select { appearance: none; -webkit-appearance: none; background: var(--bg) url(/chevron.svg) no-repeat right 11px center / 12px 12px;
  padding-right: 32px; cursor: pointer; text-overflow: ellipsis; }
select[multiple] { background-image: none; padding-right: 10px; }
select option, select optgroup { background: var(--surface-2); color: var(--text); }
input[type=date] { color-scheme: dark; }
::placeholder { color: var(--faint); }
select:hover, input:hover, textarea:hover { border-color: var(--line-hover); }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus-line); box-shadow: 0 0 0 3px var(--focus-glow); }
select:disabled, input:disabled, textarea:disabled { opacity: .55; }
select[aria-busy=true], input[aria-busy=true] { opacity: .6; cursor: progress; }
input[type=checkbox] { cursor: pointer; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { color: var(--body); font-size: 14px; font-weight: 550; }
.field small { color: var(--faint); font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; cursor: pointer; }
label.check input { width: 16px; height: 16px; accent-color: var(--text); }
.check-list { display: grid; gap: 12px; margin-bottom: 14px; }
.check-list label.check { align-items: flex-start; }
.check-list label.check input { margin-top: 2px; flex: none; }
.check-list label.check span { display: grid; gap: 2px; }
.check-list label.check b { color: var(--text); font-weight: 500; }
.check-list label.check small { color: var(--muted); font-size: 14px; }

/* on/off switch: white when on, like the rest of the page */
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line-hover); background: var(--surface-3);
  cursor: pointer; flex: none; padding: 0; transition: background .18s, border-color .18s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--knob); transition: transform .18s cubic-bezier(.23, 1, .32, 1), background .18s; }
.switch:hover:not([disabled]) { border-color: var(--switch-hover); }
.switch[aria-checked=true] { background: var(--text); border-color: var(--text); }
.switch[aria-checked=true]::after { transform: translateX(18px); background: var(--on-text); }
.switch[disabled] { opacity: .5; cursor: not-allowed; }
.switch[disabled][aria-checked=true] { opacity: .7; }
.switch.large, .switch.xl { width: 46px; height: 26px; }
.switch.large::after, .switch.xl::after { width: 20px; height: 20px; }
.switch.large[aria-checked=true]::after, .switch.xl[aria-checked=true]::after { transform: translateX(20px); }
.switch.pending { opacity: 1 !important; cursor: progress; }
.switch.pending::after { animation: pulse .9s ease-in-out infinite; }

/* ------------------------------------------------------------------ small labels and notices */
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 14px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.chip .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.chip.good { color: var(--good-text); border-color: var(--good-line); background: var(--good-soft); }
.chip.good .dot, .dot.on { background: var(--good); }
.chip.warn { color: var(--warn-text); border-color: var(--warn-line); background: var(--warn-soft); }
.chip.warn .dot { background: var(--warn); }
.chip.bad { color: var(--bad-text); border-color: var(--bad-line); background: var(--bad-soft); }
.chip.bad .dot { background: var(--bad); }
.tag { display: inline-block; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
  padding: 0 6px; margin-left: 6px; vertical-align: 1px; font-weight: 550; }
.notice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 12px 14px; font-size: 14px; color: var(--body); }
.notice::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor; opacity: .9;
  -webkit-mask: url(/glyphs/info.svg) center / contain no-repeat; mask: url(/glyphs/info.svg) center / contain no-repeat; }
.notice.warn { color: var(--warn-text); border-color: var(--warn-line); background: var(--warn-soft); }
.notice.bad, #error.notice { color: var(--bad-text); border-color: var(--bad-line); background: var(--bad-soft); }
.notice.warn::before, .notice.bad::before { -webkit-mask-image: url(/glyphs/alert.svg); mask-image: url(/glyphs/alert.svg); }
.notice.good { color: var(--good-text); border-color: var(--good-line); background: var(--good-soft); }
.notice.good::before { -webkit-mask-image: url(/glyphs/check.svg); mask-image: url(/glyphs/check.svg); }
.notice a, .inline-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.inline-link { white-space: nowrap; color: var(--text); }
.notice.slim { padding: 9px 12px; margin: 10px 16px; font-size: 14px; }
.row-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.check-ok, .check-no { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12.5px; font-weight: 800; }
.check-ok { background: var(--good-soft); color: var(--good); }
.check-no { background: var(--warn-soft); color: var(--warn); }
.empty { color: var(--muted); padding: 16px; font-size: 14px; margin: 0; }


/* ------------------------------------------------------------------ simple pages and the server list */
.page { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 80px; }
.page-title { font: 600 30px/1.15 var(--display); margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 26px; }
.servers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 36px; }
.servers-layout .servers { margin-bottom: 0; }
.server-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s; }
.server-card:hover { border-color: var(--line-hover); }
.server-card .cover { height: 56px; background: var(--surface-2) url(/bricks.svg); position: relative; border-bottom: 1px solid var(--line-soft); }
.server-card .icon { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--surface); }
.server-card .body { padding: 30px 14px 14px; display: flex; align-items: center; gap: 10px; }
.server-card .body div { flex: 1; min-width: 0; }
.server-card .name { font: 600 16px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-card .meta { color: var(--muted); font-size: 14px; }
.server-card.add .meta { color: var(--accent); }
.icon { background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: var(--muted); object-fit: cover; }
.side-panel { display: grid; gap: 14px; position: sticky; top: 80px; }
.account { display: flex; align-items: center; gap: 12px; }
.account .avatar { width: 44px; height: 44px; }
.account b { display: block; }
.account span { color: var(--muted); font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  transition: border-color .15s; }
.quick-card:hover { border-color: var(--line-hover); }
.quick-card img { width: 18px; height: 18px; margin-bottom: 6px; }
.quick-card span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ server page shell */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { border-right: 1px solid var(--line-soft); padding: 12px 10px 24px; position: sticky; top: var(--top); height: calc(100vh - var(--top));
  overflow-y: auto; display: flex; flex-direction: column; }
.side input[type=search] { margin: 0 0 10px; padding: 7px 10px; font-size: 14px; background: var(--surface); }
.side h4 { margin: 18px 10px 6px; font: 500 14px/1.4 var(--font); color: var(--faint); }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 14px;
  font-weight: 500; transition: background .12s, color .12s; }
.side a img { width: 16px; height: 16px; opacity: .6; flex: none; filter: grayscale(1); }
.side a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a .count { flex: none; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a[aria-current=page] { background: var(--surface-3); color: var(--text); }
.side a[aria-current=page] img { opacity: 1; }
.side .mod-link { padding-left: 36px; font-size: 14px; }
/* the server switcher at the top of the sidebar */
.switcher { position: relative; margin-bottom: 10px; }
.switcher > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; }
.switcher > button:hover, .switcher > button[aria-expanded=true] { border-color: var(--line-hover); background: var(--surface-2); }
.switcher .icon { width: 28px; height: 28px; border-radius: 7px; font-size: 12.5px; flex: none; }
.switcher > button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher .g { color: var(--faint); }
.switcher-list { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px var(--shadow);
  transform-origin: top center; animation: pop .16s cubic-bezier(.23, 1, .32, 1); }
.switcher-list a { padding: 6px 8px; }
.switcher-list a .icon { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.switcher-list hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 2px; }
.g { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.main { padding: 36px clamp(16px, 3vw, 48px) 72px; min-width: 0; }
.main > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* page heading: a big title, one line under it, buttons on the right */
.page-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-top h1 { margin: 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.page-top p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.page-top .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-top .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 14px; }
.page-top .meta .sep { color: var(--line-hover); }
.main > .notice, .page-top + .notice { margin-bottom: 16px; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* older heads still used by a few pages, flattened to the same look */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.head .icon { width: 44px; height: 44px; border-radius: 11px; font-size: 16px; flex: none; }
.head h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.head .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.head .side-note { margin-left: auto; text-align: right; color: var(--faint); font-size: 14px; }
.mod-hero, .member-hero, .status-hero, .quick-cta { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.eyebrow { display: none; }
.mod-hero .glyph { display: none; }
.banner { display: none; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.align-top { align-items: start; }
.grid.align-top > .card > .pad { flex: 0 0 auto; }
.section { margin-top: 20px; }
/* a panel: its title on a darker strip, then rows */
.card { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow: clip; }
.card > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 46px; flex-wrap: wrap; }
.card > header > img:first-child { display: none; }
.card > header h3 { margin: 0; font-size: 14.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.card > header .sub { flex-basis: 100%; margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.card > header .note { margin-left: auto; color: var(--faint); font-size: 14px; }
.card > .pad { padding: 16px; flex: 1 1 auto; }
.card > .list { align-content: start; flex: 1; }
.card p.desc { color: var(--muted); margin: 0; font-size: 14px; }
p.desc.pad { margin: 0; padding: 12px 16px 0; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font: 600 14px/1.4 var(--font); color: var(--muted); }
.group-title .count { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); letter-spacing: 0; }

/* protection score ring and groups */
.score { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 16px; text-align: center; }
.score svg { width: 128px; height: 128px; }
.score svg text { font-family: var(--display); }
.score b { font: 600 16px/1.3 var(--display); }
.score span { color: var(--muted); font-size: 14px; }
.groups { display: grid; gap: 10px; padding: 0 16px 16px; }
.group-bar > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.group-bar b { color: var(--text); font-variant-numeric: tabular-nums; }
.group-bar > i { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.group-bar > i > i { display: block; height: 100%; background: var(--good); }

/* list rows */
.list { display: grid; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); min-width: 0; }
.list .item:first-child { border-top: 0; }
.list .item img { width: 16px; height: 16px; opacity: .8; flex: none; }
.list .item .what { flex: 1; min-width: 0; }
.list .item .what b { display: block; font-size: 14px; font-weight: 550; }
.list .item .what span { color: var(--muted); font-size: 14px; }
.list a.item:hover { background: var(--surface-2); }
.list .item .go { font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.list a.item:hover .go { color: var(--text); border-color: var(--line-hover); }
.item .grow { flex: 1; }
.item.sub-head { font: 600 14px/1.4 var(--font); color: var(--muted); }

/* numbers */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.tile { padding: 16px; border-left: 1px solid var(--line-soft); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile .label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.tile .label img { width: 14px; height: 14px; opacity: .8; }
.tile .value { font: 600 30px/1.2 var(--display); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile .sub { color: var(--faint); font-size: 14px; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.mini-tiles div { padding: 12px 16px; border-left: 1px solid var(--line-soft); }
.mini-tiles div:first-child { border-left: 0; }
.mini-tiles b { display: block; font: 600 24px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.mini-tiles span { color: var(--muted); font-size: 14px; }
.mini-tiles.card { grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-soft); }
.facts div { padding: 12px 16px; border-left: 1px solid var(--line-soft); }
.facts div:first-child { border-left: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 2px 0 0; font-weight: 650; }
.chart { padding: 16px; }
.chart svg { width: 100%; height: 132px; display: block; }
.card .chart svg { height: 96px; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart .legend { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-top: 8px; flex-wrap: wrap; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.segmented button { border: 0; background: none; padding: 7px 13px; border-radius: 6px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.segmented button[aria-selected=true] { background: var(--surface-3); color: var(--text); }
.hbars { display: grid; gap: 10px; padding: 16px; }
.hbar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 14px; }
.hbar > span { color: var(--muted); }
.hbar > i { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar > i > i { display: block; height: 100%; border-radius: 99px; background: var(--text); }
.hbar > b { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ modules */

/* one module */
.mod-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.mod-head .glyph, .glyph.big { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.mod-head .glyph { width: 46px; height: 46px; }
.mod-head .glyph img { width: 22px; height: 22px; }
.mod-head h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.1; }
.mod-head p { margin: 0; color: var(--muted); }
.mod-head .toggle { margin-left: auto; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.mod-head + .notice, .mod-head + .grid { margin-top: 0; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head-row .mod-head { margin-bottom: 0; }
.module-page { display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 56px - 100px); }
.mod-hero { display: flex; align-items: center; gap: 22px; padding: clamp(20px, 2.4vw, 30px); }
.mod-hero > * { position: relative; }
.glyph.big { width: 72px; height: 72px; border-radius: 16px; }
.glyph.big img { width: 32px; height: 32px; }
.mod-hero-text { flex: 1; min-width: 0; }
.mod-hero-text h1 { margin: 0 0 4px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.mod-hero-text p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.mod-hero-text .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-hero-toggle { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.qs-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 500; font-size: 14px; color: var(--muted); }
.qs-summary b { color: var(--text); }
.mod-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(220px, 1fr); gap: 16px; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.points li::before { content: ""; width: 10px; height: 2px; background: var(--accent); margin-top: 10px; flex: none; }
.points.big li { font-size: 15px; color: var(--body); }
.how { margin: 0; padding: 16px 16px 8px 36px; display: grid; gap: 12px; color: var(--body); font-size: 14.5px; }
.how li::marker { color: var(--accent); font: 600 15px var(--display); }
.related { display: flex; align-items: center; gap: 12px; margin: auto 16px 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2); }
.related:hover { border-color: var(--line-hover); }
.related img { width: 18px; height: 18px; }
.related div { flex: 1; min-width: 0; }
.related b { display: block; font-size: 14px; }
.related span { color: var(--muted); font-size: 14px; }
.pad.quiet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); }
.pad.quiet img { width: 26px; height: 26px; opacity: .7; }
.pad.quiet p { margin: 0; }
.mod-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
code.cmd { font: 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  white-space: nowrap; color: var(--text); flex: none; }

/* ------------------------------------------------------------------ settings */
.row { display: flex; align-items: center; gap: 16px; padding: 15px 16px; border-top: 1px solid var(--line); }
.card > header + .row, .card > .row:first-child { border-top: 0; }
.row .what { flex: 1; min-width: 0; }
.row .what b { display: block; font-weight: 550; font-size: 14px; }
.row .what > span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.row .control { width: min(420px, 50%); flex: none; }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.form .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions-row.end { justify-content: flex-end; }
.actions-row select { width: auto; min-width: 170px; }
.settings-card .setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 12px 32px; align-items: center;
  padding: 15px 16px; border-top: 1px solid var(--line); }
.settings-card > header + .setting { border-top: 0; }
.settings-card .setting.block { grid-template-columns: minmax(0, 1fr); }
.setting .what b { display: block; font-size: 14px; font-weight: 550; }
.setting .what > span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; max-width: 620px; }
.setting .inline { display: flex; align-items: center; gap: 10px; }
.setting .inline input[type=number] { width: 110px; }
.setting input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.block-control { display: grid; gap: 8px; }
.lock-note { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 5px; font-size: 14px !important; color: var(--warn) !important; }
.lock-note img { width: 12px; height: 12px; }
.lock-note.faint { color: var(--faint) !important; }
.preview-wrap { grid-column: 1 / -1; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.card > .tiles-grid:last-child { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.tile-field { background: var(--surface); padding: 14px 16px; }
.tile-field > span { display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-size: 14px !important; }
.tile-field.tip { background: var(--surface-2); }
.tile-field.tip small { color: var(--muted); font-size: 14px; }

/* ticket categories */
.cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; border-top: 1px solid var(--line-soft); }
.cat .title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--display); }
.cat .title .chip { margin-left: 4px; font-family: var(--font); }
.cat .actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.cat .field.wide { grid-column: span 2; }
.cat .field.full { grid-column: 1 / -1; }
.cat textarea { min-height: 74px; }

/* exemptions, command access and switches */
.access-row { align-items: flex-start !important; flex-wrap: wrap; }
.list .item.access-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.6fr); gap: 10px 20px; align-items: start; }
.list .item.access-row .what { flex: none; }
.access-control { display: grid; gap: 8px; }
.role-picker { display: grid; gap: 8px; }
.role-pills { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 999px; font-size: 14px;
  font-weight: 600; border: 1px solid var(--accent-line); background: var(--accent-soft); cursor: pointer; }
.role-pill i { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1; }
.role-pill:hover { border-color: var(--accent); }
.role-pill:hover i { color: var(--text); }
.cmd-tools { display: grid; gap: 10px; }
.cmd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmd-list .item.cmd-row { border-top: 1px solid var(--line-soft); }
.cmd-row .what b { font-size: 14px; }
.cmd-row .what span { color: var(--faint); font-size: 14px; }

/* ------------------------------------------------------------------ branding */
.brand-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.brand-grid > .card { align-self: stretch; }
.brand-grid .settings-card .setting { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.brand-grid .setting .control { justify-self: stretch; }
.brand-preview { padding: 4px 0; }
.logo-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line); flex: none; }
img.loading { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; }
.tabs { display: flex; gap: 4px; padding: 10px 16px 0; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }
.banners-card > header .switch { margin-left: 10px; }
.banner-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.banner-controls { padding: 16px; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line-soft); }
.banner-controls > .desc { color: var(--muted); font-size: 14px; margin: 0; }
.banner-preview { padding: 16px; min-width: 0; }
.slot { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.slot-head { display: flex; align-items: center; gap: 12px; }
.slot-head .what { flex: 1; min-width: 0; }
.slot-head .what b { display: block; font-size: 14px; }
.slot-head .what span { color: var(--muted); font-size: 14px; }
.slot-pic { border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-soft); transition: opacity .2s, filter .2s; }
.slot-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slot-pic.top { aspect-ratio: 3 / 1; }
.slot-pic.bottom { aspect-ratio: 15 / 1; }
.slot-pic.off { opacity: .35; filter: grayscale(.8); }
.reset-row { padding-top: 4px; }

/* ------------------------------------------------------------------ quick setup */
.quick-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; padding: 20px 24px; }
.quick-cta b { display: block; font: 600 21px/1.2 var(--display); margin-bottom: 4px; }
.quick-cta span { color: var(--muted); max-width: 720px; display: block; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.quick-grid .item .what span { display: block; }
.quick-grid .card > header .btn { margin-left: 8px; }
.quick-grid .card.wide { grid-column: 1 / -1; }
.qs-card.wide { grid-column: 1 / -1; }
.qs-list { display: grid; }
.qs-card.wide .qs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1px; background: var(--line-soft);
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.qs-card.wide .qs-item { background: var(--surface); }
.qs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 4px 14px 4px 4px;
  border-top: 1px solid var(--line-soft); transition: background .15s; }
.qs-list > .qs-item:first-child, .qs-card.wide .qs-list > .qs-item:nth-child(2) { border-top: 0; }
.qs-item:hover { background: var(--surface-2) !important; }
.qs-item.open { background: var(--surface-2) !important; }
.qs-pick { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0 10px 12px; cursor: pointer; min-width: 0; }
.qs-pick input { width: 18px; height: 18px; accent-color: var(--text); flex: none; margin: 2px 0 0; cursor: pointer; }
.qs-pick .what { min-width: 0; }
.qs-pick .what b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.qs-pick .what > span { display: block; color: var(--muted); font-size: 14px; margin-top: 1px; }
.qs-pick .tag { color: var(--warn); border-color: var(--warn-line); }
.qs-item.off .qs-pick .what { opacity: .45; }
.qs-item.off .qs-pick .what b { text-decoration: line-through; text-decoration-color: var(--faint); }
.qs-opts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  margin: 2px 0 12px 42px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); animation: rise .18s var(--ease-out); }
.qs-opts .field.wide { grid-column: 1 / -1; }
.qs-opts-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.item.pick { cursor: pointer; }
.item.pick:hover { background: var(--surface-2); }
.item.pick input { width: 18px; height: 18px; accent-color: var(--text); flex: none; margin: 0; }
.item.pick:has(input:not(:checked)) .what { opacity: .45; }
.item.pick:has(input:not(:checked)) .what b { text-decoration: line-through; }

/* ------------------------------------------------------------------ data pages: cases, tickets, members, attacks */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.later > .skeleton:first-child { margin-top: 0; }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
.filters .field { flex: 0 1 170px; }
.filters .field.grow { flex: 1 1 260px; }
.rows { display: grid; }
.rows-head, .rows .r { display: grid; gap: 12px; align-items: center; padding: 10px 16px; }
.rows-head { font: 600 14px/1.4 var(--font); color: var(--faint);
  border-bottom: 1px solid var(--line-soft); padding-top: 12px; padding-bottom: 8px; }
.rows .r { border-top: 1px solid var(--line-soft); min-width: 0; transition: background .12s; }
.rows .rows-head + .r { border-top: 0; }
.rows a.r:hover { background: var(--surface-2); }
.rows .r > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .reason { color: var(--muted); }
.cases-rows .rows-head, .cases-rows .r { grid-template-columns: 64px 100px minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 2.4fr) 110px; }
.tickets-rows .rows-head, .tickets-rows .r { grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) 120px 90px 100px; }
.backups-rows .rows-head, .backups-rows .r { grid-template-columns: minmax(0, 1.6fr) 150px 120px minmax(0, 1.2fr) auto; }
.backups-rows .r > :last-child { overflow: visible; }
.member-cases .r { grid-template-columns: 64px 100px minmax(0, 2.4fr) minmax(0, 1.1fr) 110px; }
.mods-rows .rows-head, .mods-rows .r { grid-template-columns: 34px minmax(0, 1.3fr) 80px minmax(0, 3fr); }
.who-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.who-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.who-chip:hover span { text-decoration: underline; text-underline-offset: 3px; }
.who-chip .avatar { width: 22px; height: 22px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0; color: var(--muted); font-size: 14px; }
.case-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.case-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.case-head .chip { font-size: 14px; padding: 3px 11px; }
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line-soft); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.quote { margin: 0; padding: 10px 14px; border: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pad .notice.slim, .pad > .notice { margin: 10px 0 0; }
.evidence { display: grid; gap: 12px; padding: 14px 16px; }
.ev { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.ev-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ev-head img { width: 15px; height: 15px; opacity: .8; }
.ev-head .faint { margin-left: auto; font-size: 14px; }
.ev-note { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ev-text { margin: 0; padding: 12px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; color: var(--body); }
.ev-image { display: block; max-width: 100%; max-height: 420px; margin: 10px auto; border-radius: 8px; }
.ev > p.faint { margin: 0; padding: 10px 12px; font-size: 14px; }
.answers > div { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.answers > div:first-of-type { border-top: 0; }
.answers b { font-size: 14px; color: var(--muted); font-weight: 600; }
.answers p { margin: 2px 0 0; }

/* tickets */
.ticket-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important; }
.ticket-item .what b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Ticket conversations, drawn like Discord: the same look as the transcript file (utils/chatlog.py CHAT_CSS). Keep the two in step. */
.chat { max-height: 70vh; overflow: auto; }
.live-chat { max-height: 62vh; }
.chat.chat-log { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.chat-log { --chat-bg:#1a1a1e; --chat-hover:#1e1e23; --chat-card:#232328; --chat-card-line:#2f2f36; --chat-line:#2c2c32; --chat-text:#dbdee1; --chat-head:#f2f3f5; --chat-muted:#949ba4; --chat-link:#00a8fc; --chat-quote:#4e5058; --chat-code:#2b2b31; background:var(--chat-bg); color:var(--chat-text); font-size:15px; line-height:1.375; padding:4px 0 18px; overflow-wrap:anywhere }
.chat-log a { color:var(--chat-link); text-decoration:none }
.chat-log a:hover { text-decoration:underline }
.chat-day { display:flex; align-items:center; gap:8px; margin:22px 16px 6px; color:var(--chat-muted); font-size:14px; font-weight:600 }
.chat-day:before,.chat-day:after { content:""; flex:1; height:1px; background:var(--chat-line) }
.chat-msg { position:relative; padding:2px 48px 2px 72px; margin-top:16px; min-height:44px }
.chat-msg.cont { margin-top:0; min-height:0 }
.chat-msg:hover { background:var(--chat-hover) }
.chat-av { position:absolute; left:16px; top:4px; width:40px; height:40px; border-radius:50%; object-fit:cover; background:var(--chat-card) }
.chat-av.letter { display:grid; place-items:center; font-weight:600; color:var(--chat-muted) }
.chat-msg.ref .chat-av { top:28px }
.chat-head { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap }
.chat-name { color:var(--chat-head); font-weight:600; font-size:15.5px }
.chat-app { align-self:center; background:#5865f2; color:#fff; font-size:10px; font-weight:600; line-height:15px; padding:0 5px; border-radius:4px }
.chat-time { color:var(--chat-muted); font-size:14px }
.chat-hover { position:absolute; left:0; width:62px; text-align:right; color:var(--chat-muted); font-size:12.5px; line-height:21px; visibility:hidden }
.chat-msg:hover .chat-hover { visibility:visible }
.chat-ref { position:relative; display:flex; align-items:center; gap:5px; font-size:14px; color:var(--chat-muted); margin-bottom:3px; min-width:0 }
.chat-ref:before { content:""; position:absolute; left:-36px; top:50%; width:30px; height:13px; border:2px solid var(--chat-quote); border-right:0; border-bottom:0; border-top-left-radius:6px }
.chat-ref img,.chat-ref .letter { width:16px; height:16px; border-radius:50%; flex:none }
.chat-ref .letter { display:grid; place-items:center; font-size:9px; background:var(--chat-card) }
.chat-ref b { color:var(--chat-head); font-weight:600; white-space:nowrap }
.chat-ref span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.chat-h { color:var(--chat-head); font-weight:700; line-height:1.25; margin:10px 0 4px }
.chat-h.h1 { font-size:24px }
.chat-h.h2 { font-size:20px }
.chat-h.h3 { font-size:16px }
.chat-md>.chat-h:first-child { margin-top:2px }
.chat-md>.chat-h:last-child { margin-bottom:0 }
.chat-sub { color:var(--chat-muted); font-size:14px; line-height:1.35 }
.chat-quote { margin:2px 0; padding:0 8px 0 12px; border-left:4px solid var(--chat-quote); border-radius:4px }
.chat-list { margin:4px 0; padding-left:22px }
.chat-list li { margin:1px 0 }
.chat-list .chat-list { margin:0 }
.chat-code { font:85%/1.3 ui-monospace,"Cascadia Mono",Consolas,Menlo,monospace; background:var(--chat-code); border-radius:4px; padding:1px 4px }
.chat-pre { margin:6px 0; padding:8px 10px; background:var(--chat-code); border:1px solid var(--chat-card-line); border-radius:4px; overflow:auto; white-space:pre-wrap; font:13px/1.45 ui-monospace,"Cascadia Mono",Consolas,Menlo,monospace }
.chat-mention { background:rgba(88,101,242,.3); color:#c9cdfb; border-radius:3px; padding:0 2px; font-weight:500 }
.chat-ts { background:rgba(255,255,255,.07); border-radius:3px; padding:0 2px }
.chat-spoiler { background:#111214; color:transparent; border-radius:3px; cursor:pointer }
.chat-spoiler:hover,.chat-spoiler.open { color:inherit; background:rgba(255,255,255,.08) }
.chat-emoji { width:1.375em; height:1.375em; object-fit:contain; vertical-align:-.3em; margin:0 .05em }
.chat-emoji.big { width:48px; height:48px; vertical-align:-14px }
.chat-edited { color:var(--chat-muted); font-size:10px; margin-left:4px }
.chat-sys { color:var(--chat-muted) }
.chat-box { max-width:600px; margin-top:4px; padding:16px; background:var(--chat-card); border:1px solid var(--chat-card-line); border-radius:8px; display:flex; flex-direction:column; gap:8px }
.chat-box.accent { border-left-width:4px }
.chat-sep.line { height:1px; background:var(--chat-card-line) }
.chat-sep.big { margin:8px 0 }
.chat-sec { display:flex; gap:16px; align-items:flex-start }
.chat-sec>.chat-md { flex:1; min-width:0 }
.chat-sec.button { align-items:center }
.chat-thumb { width:85px; height:85px; border-radius:8px; object-fit:cover; flex:none }
.chat-media { display:grid; gap:4px; border-radius:8px; overflow:hidden }
.chat-media.n2 { grid-template-columns:1fr 1fr }
.chat-media.n3 { grid-template-columns:1fr 1fr 1fr }
.chat-media a,.chat-media span { display:block }
.chat-media img { display:block; width:100%; height:100%; max-height:420px; object-fit:cover }
.chat-media .spoiler img,.chat-img.spoiler img { filter:blur(40px) }
.chat-media .spoiler:hover img,.chat-img.spoiler:hover img { filter:none }
.chat-row { display:flex; flex-wrap:wrap; gap:8px }
.chat-btn { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:2px 16px; border-radius:8px; background:#4e5058; color:#fff; font-size:14px; font-weight:500; line-height:16px }
.chat-btn.primary { background:#5865f2 }
.chat-btn.success { background:#248046 }
.chat-btn.danger { background:#da373c }
.chat-btn.off { opacity:.5 }
.chat-btn .chat-emoji { width:18px; height:18px; vertical-align:middle; margin:0 }
.chat-btn svg { width:14px; height:14px }
.chat-select { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; max-width:400px; min-height:40px; padding:6px 12px; border-radius:8px; background:#121214; border:1px solid var(--chat-card-line); color:var(--chat-muted); font-size:14px }
.chat-select.off { opacity:.5 }
.chat-select svg { width:18px; height:18px; flex:none }
.chat-embed { display:flex; gap:16px; max-width:520px; margin-top:4px; padding:8px 16px 16px 12px; background:var(--chat-card); border:1px solid var(--chat-card-line); border-left:4px solid var(--chat-quote); border-radius:4px; font-size:14px }
.chat-e-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; padding-top:6px }
.chat-e-author { display:flex; align-items:center; gap:8px; font-weight:600; color:var(--chat-head) }
.chat-e-author img { width:24px; height:24px; border-radius:50% }
.chat-e-title { font-weight:600; color:var(--chat-head); font-size:15px }
.chat-e-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 12px }
.chat-e-field { grid-column:1/-1 }
.chat-e-field.inline { grid-column:auto }
.chat-e-field b { display:block; color:var(--chat-head); font-weight:600; margin-bottom:1px }
.chat-e-img { display:block; max-width:100%; border-radius:4px; margin-top:6px }
.chat-e-thumb { width:80px; height:80px; object-fit:contain; border-radius:4px; flex:none; margin-top:8px }
.chat-e-foot { display:flex; align-items:center; gap:8px; color:var(--chat-muted); font-size:14px }
.chat-e-foot img { width:20px; height:20px; border-radius:50% }
.chat-img { display:block; width:fit-content; max-width:min(400px,100%); margin-top:4px; border-radius:8px; overflow:hidden }
.chat-img img { display:block; max-width:100%; max-height:300px }
.chat-file { display:flex; align-items:center; gap:10px; width:fit-content; max-width:min(432px,100%); margin-top:4px; padding:10px 14px 10px 10px; background:var(--chat-card); border:1px solid var(--chat-card-line); border-radius:8px }
.chat-file svg { width:24px; height:30px; flex:none; color:var(--chat-muted) }
.chat-file div { min-width:0 }
.chat-file b { display:block; font-weight:500; color:var(--chat-link); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chat-file span { display:block; font-size:14px; color:var(--chat-muted) }
.chat-sticker { display:block; width:160px; height:160px; object-fit:contain; margin-top:4px }
@media (max-width:640px) {
  .chat-msg { padding:2px 12px 2px 60px }
  .chat-av { left:10px;width:36px;height:36px }
  .chat-hover { width:54px }
  .chat-ref:before { left:-32px;width:26px }
  .chat-box { padding:12px }
  .chat-thumb { width:64px;height:64px }
  .chat-e-fields { grid-template-columns:1fr 1fr }
}

/* attacks */
.attack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.attack { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.attack:hover { border-color: var(--line-hover); }
.attack.live { border-color: var(--accent-line); }
.attack-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attack-top b { font: 600 16px/1.3 var(--display); }
.attack .faint { font-size: 14px; }
.attack-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 4px; }
.attack-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 8px 16px 14px; display: grid; }
.timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.timeline li:first-child { border-top: 0; }
.timeline li b { display: block; font-size: 14px; }
.timeline li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tl-time { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline li.tl-danger b { color: var(--bad-text); }
.timeline li.tl-warn b { color: var(--warn-text); }
.timeline li.tl-success b { color: var(--good-text); }

/* backups */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 14px 16px; }
.pick-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.pick-row:hover { border-color: var(--line-hover); }
.pick-row:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.pick-row input { width: 16px; height: 16px; accent-color: var(--text); margin: 2px 0 0; flex: none; }
.pick-row b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.pick-row span { font-size: 14px; }
.pick-row.off { opacity: .5; cursor: not-allowed; }
.plain-list { margin: 0; padding: 12px 16px 14px 34px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }

/* members */
.member-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.member-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.member-result:hover { border-color: var(--line-hover); }
.member-result > div { flex: 1; min-width: 0; }
.member-result b, .member-result span.faint { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-hero { display: flex; align-items: center; gap: 20px; padding: clamp(18px, 2vw, 26px); flex-wrap: wrap; }
.member-hero > .grow { flex: 1 1 220px; }
.member-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; overflow-wrap: anywhere; }
.member-hero .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.member-risk { width: 80px; height: 80px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 3px solid var(--line); flex: none; }
.member-risk b { font: 600 26px/1 var(--display); }
.member-risk span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.member-risk.good { border-color: var(--good); }
.member-risk.warn { border-color: var(--warn); }
.member-risk.bad { border-color: var(--accent); }
.role-list { display: flex; flex-wrap: wrap; gap: 6px; }
.role-tag { --rc: #8b8b93; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); }
.role-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.history-item .what .pre { color: var(--muted); font-size: 14px; }
.history-item.undone .what > b, .history-item.undone .what .pre { opacity: .55; }
.history-item .avatar { flex: none; }

/* ------------------------------------------------------------------ a Brix message, drawn the way Discord shows it */
.dc { --dc-bg: #313338; --dc-box: #2b2d31; --dc-line: #3f4147; --dc-text: #dbdee1; --dc-muted: #949ba4;
  background: var(--dc-bg); border: 1px solid #1e1f22; border-radius: var(--radius); padding: 16px; color: var(--dc-text);
  font: 15px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; overflow: hidden; }
.dc .skeleton { background: linear-gradient(90deg, #2b2d31 0, #35373c 50%, #2b2d31 100%); background-size: 200% 100%; margin: 0; }
.dc-msg { display: flex; gap: 16px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: #5865f2; }
.dc-av.letter { display: grid; place-items: center; color: #fff; font-weight: 700; }
.dc-main { min-width: 0; flex: 1; }
.dc-who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dc-who b { color: #f2f3f5; font-weight: 500; }
.dc-app { font-size: 10px; font-weight: 600; background: #5865f2; color: #fff; padding: 0 4px; border-radius: 3px; line-height: 15px; }
.dc-time { color: var(--dc-muted); font-size: 14px; }
.dc-box { max-width: 560px; background: var(--dc-box); border: 1px solid var(--dc-line); border-left: 4px solid var(--dc-line); border-radius: 8px;
  padding: 14px 16px; display: grid; gap: 8px; }
.dc-text { min-width: 0; overflow-wrap: anywhere; }
.dc-line { min-height: 1.375em; }
.dc-h1, .dc-h2, .dc-h3 { font-weight: 700; line-height: 1.3; margin: 2px 0; color: #f2f3f5; }
.dc-h1 { font-size: 24px; }
.dc-h2 { font-size: 20px; }
.dc-h3 { font-size: 16px; }
.dc-sub { font-size: 14px; color: var(--dc-muted); }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 12px; margin: 2px 0; }
.dc-code { background: #1e1f22; border: 1px solid #1e1f22; border-radius: 4px; padding: 8px; margin: 4px 0; font: 13px/1.4 var(--mono); white-space: pre-wrap; }
.dc-inline { background: #1e1f22; border-radius: 3px; padding: 0 3px; font: 85% var(--mono); }
.dc-mention { --rc: #c9cdfb; background: color-mix(in srgb, var(--rc) 22%, transparent); color: var(--rc); border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-stamp { background: rgba(255, 255, 255, .06); border-radius: 3px; padding: 0 2px; }
.dc-spoiler { background: #1e1f22; color: transparent; border-radius: 3px; cursor: pointer; }
.dc-spoiler.open { background: rgba(255, 255, 255, .1); color: inherit; }
.dc a { color: #00a8fc; }
.dc a:hover { text-decoration: underline; }
.dc-emoji { width: 1.375em; height: 1.375em; vertical-align: -.3em; object-fit: contain; }
.dc-section { display: flex; gap: 12px; align-items: flex-start; }
.dc-section-text { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dc-thumb { width: 85px; height: 85px; border-radius: 8px; object-fit: cover; flex: none; }
.dc-thumb.blank { background: #1e1f22; }
.dc-gallery { display: flex; gap: 4px; flex-wrap: wrap; }
.dc-gallery img { max-width: 100%; max-height: 300px; border-radius: 8px; }
.dc-gallery > img { width: 100%; max-height: none; }
.dc-sep { height: 1px; background: var(--dc-line); margin: 4px 0; }
.dc-sep.blank { background: none; }
.dc-sep.big { margin: 10px 0; }
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #fff; background: #4e5058; }
.dc-btn.s1 { background: #5865f2; }
.dc-btn.s3 { background: #248046; }
.dc-btn.s4 { background: #da373c; }
.dc-btn.off { opacity: .5; }
.dc-btn .dc-emoji, .dc-btn img { width: 18px; height: 18px; vertical-align: 0; }
.dc-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 400px; height: 40px; padding: 0 12px;
  border-radius: 8px; background: #1e1f22; color: var(--dc-muted); font-size: 14px; }
.dc-select i { width: 10px; height: 10px; border-right: 2px solid var(--dc-muted); border-bottom: 2px solid var(--dc-muted); transform: rotate(45deg) translateY(-3px); }
.dc-select.off { opacity: .5; }

/* ------------------------------------------------------------------ legal pages and changelog */
.legal { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 80px;
  display: grid; grid-template-columns: 220px minmax(0, 820px) minmax(240px, 320px); justify-content: space-between; gap: clamp(24px, 4vw, 64px); align-items: start; }
.legal > .doc-toc { position: sticky; top: 80px; }
.legal > .doc-toc b { display: block; font: 600 14px/1.4 var(--font); color: var(--muted); margin: 0 0 8px 12px; }
.legal > .doc-toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.legal > .doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.legal h1 { font-size: 36px; line-height: 1.1; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; scroll-margin-top: 80px; }
.legal h3 { font-size: 16px; color: var(--muted); margin: 20px 0 6px; }
.legal li { margin: 5px 0; }
.legal p, .legal li { color: var(--body); }
.legal code, .release code { font: 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.in-short { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.in-short b { display: block; font: 600 15px/1.4 var(--display); color: var(--text); margin-bottom: 10px; }
.in-short ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; }
.in-short li { color: var(--body); font-size: 14px; }
.in-short p { margin: 0; color: var(--muted); font-size: 14px; }
/* ------------------------------------------------------------------ docs (built by tools/docs.mjs) */
.docs { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 80px;
  display: grid; grid-template-columns: 220px minmax(0, 760px) 200px; justify-content: space-between; gap: clamp(24px, 4vw, 56px); align-items: start; }
.docs-nav { position: sticky; top: 80px; display: grid; gap: 20px; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-group { display: grid; }
.docs-group b { font: 600 14px/1.4 var(--font); color: var(--faint); margin: 0 0 6px 10px; }
.docs-group a { padding: 5px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.docs-group a:hover { color: var(--text); background: var(--surface); }
.docs-group a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 550; }
.docs > .doc-toc { position: sticky; top: 80px; }
.docs > .doc-toc b { display: block; font: 600 14px/1.4 var(--font); color: var(--faint); margin: 0 0 8px 12px; }
.docs > .doc-toc a { display: block; padding: 5px 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.docs > .doc-toc a:hover { color: var(--text); border-left-color: var(--text); }
.docs article { min-width: 0; }
.docs h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; }
.docs .lede { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.docs h2 { font-size: 20px; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.docs p, .docs li { color: var(--body); line-height: 1.65; }
.docs li { margin: 4px 0; }
.docs article a:not(.docs-pager a) { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.docs article a:hover { text-decoration-color: var(--text); }
.docs code { font: 12.5px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.docs .note { display: flex; gap: 10px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--body); font-size: 14px; }
.docs .note p { margin: 0; }
.docs .note::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: var(--muted); -webkit-mask: url(/glyphs/info.svg) center / contain no-repeat; mask: url(/glyphs/info.svg) center / contain no-repeat; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.docs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs th { text-align: left; font-weight: 600; color: var(--muted); font-size: 14px; background: var(--surface); }
.docs th, .docs td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.docs tbody tr:last-child td { border-bottom: 0; }
.docs td { color: var(--body); }
.docs td:first-child { white-space: nowrap; }
.doc-mods { display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.doc-mod { display: grid; gap: 2px; padding: 11px 14px; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.doc-mod:first-child { border-top: 0; }
.doc-mod b { font-weight: 600; }
.doc-mod span { color: var(--muted); font-size: 14px; }
.doc-mod:target, .docs h2:target { background: var(--surface); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.docs-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 550; }
.docs-pager a:hover { border-color: var(--faint); }
.docs-pager a span { font-size: 14px; font-weight: 400; color: var(--faint); }
.docs-pager a.next { text-align: right; grid-column: 2; }
.docs-pick { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.docs-pick summary { padding: 10px 14px; cursor: pointer; font-weight: 550; }
.docs-pick nav { display: grid; gap: 14px; padding: 4px 4px 12px; }
@media (max-width: 1100px) { .docs { grid-template-columns: 200px minmax(0, 1fr); } .docs > .doc-toc { display: none; } }
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .docs-nav { display: none; }
  .docs-pick { display: block; }
  .docs h1 { font-size: 28px; }
  .docs td:first-child { white-space: normal; }
}
.changelog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.changelog aside { position: sticky; top: 76px; }
.toc { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: grid; padding: 7px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--text); border-left-color: var(--line-hover); }
.toc a b { font-weight: 600; color: inherit; }
.toc a span { font-size: 14px; color: var(--faint); }
.releases { display: grid; gap: 0; }
.release { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.release:first-child { border-top: 0; padding-top: 0; }
.release-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.release-meta code { margin-left: auto; font: 12px var(--mono); color: var(--faint); }
.release-meta .byline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.release-meta .byline:hover { color: var(--text); }
.release-meta .byline img { width: 18px; height: 18px; border-radius: 50%; }
.release h2 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.release .lead { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.release h3.kind { display: block; margin: 20px 0 8px; font: 600 16px/1.3 var(--display); color: var(--text); }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.release li { color: var(--body); }
.release li b { color: var(--text); }
.alias { display: block; position: relative; top: -76px; }

/* ------------------------------------------------------------------ status page */
.status-hero { display: flex; align-items: center; gap: 18px; padding: clamp(20px, 2.6vw, 30px); margin-bottom: 14px; flex-wrap: wrap; }
.status-hero > div { flex: 1; min-width: 200px; }
.status-hero h2 { margin: 0 0 2px; font-size: clamp(24px, 2.4vw, 32px); }
.status-hero p { margin: 0; color: var(--muted); }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(63, 178, 127, .6); animation: beat 2s infinite; flex: none; }
.status-hero.down .pulse { background: var(--accent); animation: none; }
.status-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-tiles > div, .status-tiles > a { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-tiles b { display: block; font: 600 26px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.status-tiles span { color: var(--muted); font-size: 14px; }
.uptime { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; padding: 18px 16px 8px; }
.u { display: block; height: 34px; border-radius: 2px; background: var(--good); }
.u.minor { background: color-mix(in srgb, var(--warn) 45%, var(--surface-3)); }
.u.partial { background: var(--warn); }
.u.down { background: var(--bad); }
.u.none { background: var(--surface-3); }
.uptime .u:hover { filter: brightness(1.25); }
.uptime-legend { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 16px 16px; color: var(--faint); font-size: 14px; }
.uptime-legend .key { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px; }
.uptime-legend .key i { width: 10px; height: 10px; border-radius: 2px; }

/* ------------------------------------------------------------------ messages, loading, footer */
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 50;
  max-width: min(420px, calc(100vw - 32px)); }
.toast { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px 11px 32px; font-size: 14px; box-shadow: 0 12px 30px -10px var(--shadow-strong); animation: rise .2s var(--ease-out); }
.toast::before { content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.toast.ok::before { background: var(--good); }
.toast.bad::before { background: var(--bad); }
.loading { color: var(--muted); padding: 40px 0; }
.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.4s infinite; margin-bottom: 14px; }
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; transition: opacity .2s; }
.loadbar.on { opacity: 1; animation: loadbar 1.1s ease-in-out infinite; }
.cookie-notice { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: min(520px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: 0 18px 40px -14px var(--shadow-strong); animation: rise .25s var(--ease-out) both; }
.cookie-notice img { flex: none; opacity: .85; }
.cookie-notice p { margin: 0; font-size: 14px; color: var(--muted); }
.cookie-notice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .btn { flex: none; }
.soon { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); box-shadow: 0 18px 40px -14px var(--shadow-strong); }
.soon::backdrop { background: var(--backdrop); }
.soon h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; text-wrap: balance; }
.soon p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.soon .btn { display: block; margin-left: auto; }
.area li .chip { display: flex; width: fit-content; margin-top: 6px; padding: 1px 8px; font-size: 12.5px; }
.area li .chip img { width: 11px; height: 11px; }
footer.foot { border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 14px; margin-top: 48px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) 160px 160px; gap: 24px; }
.foot-brand p { margin: 10px 0 0; max-width: 300px; color: var(--faint); }
.foot-brand .brand { font-size: 16px; color: var(--text); }
.foot-brand .brand img { width: 24px; height: 24px; }
footer.foot nav { display: grid; gap: 8px; align-content: start; }
footer.foot nav b { color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
footer.foot nav a { color: var(--muted); }
footer.foot nav a:hover { color: var(--text); }
.foot-copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 14px; }

@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes beat { 70% { box-shadow: 0 0 0 10px rgba(63, 178, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 178, 127, 0); } }
@keyframes loadbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1500px) { .tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1300px) {
  .cmd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) { .legal { grid-template-columns: 220px minmax(0, 1fr); } .in-short { display: none; } }
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile:nth-child(4) { border-left: 0; }
  .tile:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .quick-grid, .qs-card.wide .qs-list { grid-template-columns: 1fr; }
  .qs-card.wide .qs-list > .qs-item:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .banner-edit { grid-template-columns: minmax(0, 1fr); }
  .banner-controls { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .mod-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .module-page { min-height: 0; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .side.open { display: flex; position: fixed; z-index: 30; left: 0; top: var(--top); width: 280px; background: var(--bg); box-shadow: 20px 0 40px var(--shadow); }
  .menu-btn { display: inline-flex; }
  .grid.three, .grid.split { grid-template-columns: 1fr 1fr; }
  .servers-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
@media (max-width: 900px) {
  .rows-head { display: none; }
  .rows .r { grid-template-columns: auto 1fr !important; gap: 4px 12px; }
  .rows .r > * { white-space: normal; }
  .rows .reason { grid-column: 1 / -1; }
  .mini-tiles.card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-tiles.card div:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
  .changelog { grid-template-columns: 1fr; }
  .changelog aside { display: none; }
  .legal { grid-template-columns: 1fr; }
  .legal > .doc-toc { display: none; }
}
@media (max-width: 800px) { .status-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  header.top { padding: 0 12px; gap: 10px; }
  header.top { grid-template-columns: 1fr auto; height: auto; padding-top: 10px; row-gap: 4px; --top: 96px; }
  header.top nav { grid-column: 1 / -1; order: 3; overflow-x: auto; margin: 0 -6px; padding-bottom: 6px; }
  .me .who span { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .me .who { padding: 0; border: 0; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .side.open { left: 0; }
  .main { padding: 18px 16px 56px; }
  .grid.three, .grid.two, .grid.split, .brand-grid, .quick { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .tile:nth-child(-n+2) { border-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .row { flex-wrap: wrap; }
  .row .control { width: 100%; }
  .cat, .form, .tiles-grid, .cmd-list { grid-template-columns: 1fr; }
  .cat .field.wide, .cat .field.full { grid-column: auto; }
  .settings-card .setting { grid-template-columns: minmax(0, 1fr); }
  .list .item.access-row { grid-template-columns: minmax(0, 1fr); }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner .art { display: none; }
  .mod-head { flex-wrap: wrap; }
  .mod-head .toggle { margin-left: 0; }
  .head .side-note { display: none; }
  .mod-hero { flex-direction: column; align-items: stretch; gap: 14px; }
  .mod-hero .glyph.big { width: 52px; height: 52px; border-radius: 12px; }
  .mod-hero .glyph.big img { width: 24px; height: 24px; }
  .mod-hero-toggle { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .qs-summary { align-items: flex-start; }
  .qs-opts { margin-left: 12px; }
  .qs-item { grid-template-columns: minmax(0, 1fr); padding-right: 12px; }
  .qs-item > .btn { justify-self: start; margin: 0 0 10px 42px; }
  .filters .field { flex: 1 1 calc(50% - 10px); }
  .filters .field.grow { flex-basis: 100%; }
  .uptime { gap: 1px; }
  .u { height: 26px; }
  .release { padding: 22px 0; }
}
@media (max-width: 560px) {
  header.top nav a { padding: 7px 8px; }
  .cookie-notice { flex-wrap: wrap; }
  .cookie-notice .btn { margin-left: auto; }
}
.dc-box.edge-support { border-left-color: #f0a030; }


/* the cookie note: one slim line at the bottom, shown once */
.cookie-notice { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: min(640px, calc(100vw - 24px)); width: max-content; padding: 8px 8px 8px 16px; border-radius: 999px; gap: 14px; }
.cookie-notice img { display: none; }
.cookie-notice p { font-size: 14px; }
.cookie-notice .btn { padding: 6px 14px; border-radius: 999px; }
@media (max-width: 560px) { .cookie-notice { border-radius: 14px; width: auto; left: 12px; right: 12px; transform: none; } }

.dc-btn.s2 { background: #4e5058; }
.cookie-notice { animation: cookie-in .3s var(--ease-out) both; }
@keyframes cookie-in { from { opacity: 0; } }
#side .side-foot { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: auto 8px 4px; padding-top: 14px;  padding-top: 14px; border-top: 1px solid var(--line); }
#side .side-foot a { display: inline; padding: 0; font-size: 14px; color: var(--faint); background: none; box-shadow: none; }
#side .side-foot a:hover { color: var(--text); background: none; }

/* applications */
.forms-rows .r { grid-template-columns: minmax(0, 1fr) auto auto; }
.forms-rows .r > div > .faint { display: block; white-space: normal; }
.apps-rows .rows-head, .apps-rows .r { grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1.2fr) 110px 100px; }
.app-facts { display: grid; gap: 10px; padding: 14px 16px; }
.app-answers { padding: 4px 16px 8px; }
.app-facts > div { display: flex; gap: 12px; align-items: center; min-width: 0; }
.app-facts > div > .faint { min-width: 110px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: q; }
.q-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; counter-increment: q; }
.q-row::before { content: counter(q) "."; color: var(--faint); font-size: 14px; text-align: right; }
.q-list .empty { padding: 4px 0; }
.form.stack { grid-template-columns: minmax(0, 1fr); }
.sticky-actions { position: sticky; bottom: 16px; display: flex; gap: 8px; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 700px) { .q-row { grid-template-columns: 22px minmax(0, 1fr) auto auto; } .q-row .btn:last-child { grid-column: 2 / -1; } }
@media (max-width: 860px) {
  .forms-rows .r { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
  .forms-rows .r > span { display: flex; flex-wrap: wrap; gap: 6px; }
  .apps-rows .r { grid-template-columns: 48px minmax(0, 1fr) !important; }
}

/* embed builder */
.eb-head { margin-bottom: 4px; }
.eb-head .mod-hero-toggle { margin-left: auto; }
.eb-tabs { margin: 8px 0 16px; padding: 0; }
.eb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 20px; align-items: start; }
.eb-editor { display: grid; gap: 14px; min-width: 0; }
.eb-side { position: sticky; top: 72px; display: grid; gap: 14px; max-height: calc(100vh - 90px); overflow-y: auto; }
.eb-preview-wrap { background: #313338; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.eb-preview-wrap .label-sm { color: #949ba4; }
.eb-list { display: grid; gap: 12px; }
.eb-wide { grid-column: 1 / -1; }
.eb-color { display: flex; gap: 8px; align-items: center; }
.eb-color input[type=color] { width: 42px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.eb-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eb-block { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; display: grid; gap: 10px; background: var(--surface-2); }
.eb-blockhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.eb-blockbody { display: grid; gap: 8px; }
.eb-fields { display: grid; gap: 8px; margin: 6px 0 8px; }
.eb-fieldrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto auto; gap: 8px; align-items: start; }
.eb-tools .btn { min-width: 30px; }
.segmented.small button { padding: 5px 10px; font-size: 14px; }
.eb-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eb-vars { display: grid; gap: 6px; margin-top: 8px; }
.eb-var { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 7px 10px;
  border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 13px var(--font); cursor: pointer; }
.eb-var:hover { border-color: var(--line-hover); color: var(--text); }
.eb-var code { color: var(--text); font-size: 14px; }
.eb-rows .r { grid-template-columns: minmax(0, 1fr) auto 140px auto; }
.eb-rows .r > div > .faint { display: block; }
.eb-imgph { display: grid; place-items: center; min-height: 90px; padding: 10px; border: 1px dashed #4e5058; border-radius: 6px; color: #949ba4; font-size: 14px; text-align: center; }
.eb-buttons { margin-top: 8px; flex-wrap: wrap; }
.eb-ext { opacity: .7; font-size: 14px; }
.dc-embed { display: flex; gap: 16px; max-width: 520px; margin-top: 6px; background: #2b2d31; border-left: 4px solid #1e1f22; border-radius: 4px; padding: 10px 16px 14px 12px; }
.dc-embed-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.dc-embed-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.dc-embed-aicon, .dc-embed-ficon { width: 22px; height: 22px; min-height: 0; border-radius: 50%; object-fit: cover; padding: 0; font-size: 0; }
.dc-embed-title { font-size: 16px; font-weight: 600; color: #f2f3f5; }
.dc-embed-title.link { color: #00a8fc; }
.dc-embed-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dc-embed-field { flex: 1 0 100%; min-width: 0; font-size: 14px; }
.dc-embed-field.inline { flex: 1 0 150px; }
.dc-embed-field b { display: block; color: #f2f3f5; margin-bottom: 2px; }
.dc-embed-image { width: 100%; max-height: 300px; object-fit: cover; border-radius: 4px; margin-top: 6px; }
.dc-embed-thumb { width: 80px; height: 80px; min-height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.dc-embed-footer { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b5bac1; }
@media (max-width: 1200px) { .eb-grid { grid-template-columns: minmax(0, 1fr); } .eb-side { position: static; max-height: none; } }
@media (max-width: 700px) { .eb-row2, .eb-fieldrow { grid-template-columns: minmax(0, 1fr); } .eb-var { grid-template-columns: 1fr; } .eb-rows .r { grid-template-columns: minmax(0, 1fr) !important; } }
.eb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; } .eb-gallery > * { width: 100%; min-height: 90px; }

/* commands: Discord's commands, run from the website */
.cmd-stack { display: grid; }
.run-cmd { border-top: 1px solid var(--line-soft); }
.run-cmd:first-child { border-top: 0; }
.run-cmd > summary { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; min-width: 0; }
.run-cmd > summary::-webkit-details-marker { display: none; }
.run-cmd > summary:hover { background: var(--surface-2); }
.run-cmd > summary:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -2px; }
.run-cmd > summary code { font-family: var(--mono); font-size: 14px; color: var(--text); flex: none; }
.run-cmd > summary .what { color: var(--muted); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.run-cmd[open] > summary { background: var(--surface-2); }
.run-cmd.blocked > summary code { color: var(--muted); }
.run-cmd > .notice { margin: 0 16px 14px; }
.cmd-line { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.cmd-line:first-child { border-top: 0; }
a.cmd-line:hover { background: var(--surface-2); }
a.cmd-line:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -2px; }
.cmd-line code { font-family: var(--mono); font-size: 14px; color: var(--text); flex: none; }
.cmd-line .what { color: var(--muted); font-size: 14px; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-line .chip { flex: none; }
.cmd-answer { grid-column: 1 / -1; margin: 0; padding: 12px; max-height: 360px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; font-family: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd-form { border-top: 1px solid var(--line-soft); }
.cmd-form .field i { font-style: normal; font-weight: 500; }
.cmd-go { display: flex; justify-content: flex-end; }
.member-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.member-form { border-top: 1px solid var(--line-soft); }
.member-form h4 { margin: 0 0 4px; font-size: 14px; }
.member-form .cmd-form { border-top: 0; padding: 12px 0 0; }
@media (max-width: 720px) {
  .run-cmd > summary { flex-wrap: wrap; gap: 4px 10px; }
  .run-cmd > summary .what { white-space: normal; flex-basis: 100%; }
  .cmd-line { flex-wrap: wrap; gap: 4px 10px; }
  .cmd-line .what { white-space: normal; flex-basis: 100%; }
  .cmd-form { grid-template-columns: minmax(0, 1fr); }
}
.cmd-form .field.wide { grid-column: 1 / -1; }


.dc-controls { display: grid; gap: 8px; }

/* ------------------------------------------------------------------ admin panel (the Brix team only) */
.app.admin-app { grid-template-columns: 252px minmax(0, 1fr); }
.admin-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 14px; font-size: 14px; }
.admin-bar img { width: 16px; height: 16px; flex: none; opacity: .85; }
.admin-bar a { margin-left: auto; white-space: nowrap; }
.srv { width: 28px; height: 28px; border-radius: 8px; flex: none; display: inline-grid; place-items: center; font-size: 12.5px;
  font-weight: 700; background: var(--surface-3); color: var(--muted); object-fit: cover; }
.list .item img.srv, .side a img.srv { width: 28px; height: 28px; opacity: 1; }
.side a .srv { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.side a img.srv { width: 20px; height: 20px; }
.srv-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rows .r > .srv-name { overflow: visible; }
.admin-rows .rows-head, .admin-rows .r { grid-template-columns: minmax(0, 2fr) 100px minmax(0, 1.2fr) 150px 120px; }
.admin-rows .r > :nth-child(4) { display: flex; gap: 6px; }
.audit-rows .rows-head, .audit-rows .r { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 2fr); }
.scam-rows .rows-head, .scam-rows .r { grid-template-columns: 190px minmax(0, 2fr) 120px 100px; }
.scam-rows .r > :last-child { overflow: visible; text-align: right; }
.status-tiles > a { display: block; transition: border-color .12s; }
.status-tiles > a:hover { border-color: var(--line-hover); }
.adopt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 150px) 84px; gap: 12px; align-items: center;
  padding: 9px 16px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.adopt:first-child { border-top: 0; }
.adopt > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adopt .num { text-align: right; color: var(--muted); font-size: 14px; }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.perm-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 16px; }
.perm-state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--faint); }
.perm-state.on { color: var(--text); }
.perm-state img { width: 14px; height: 14px; opacity: .5; }
.perm-state.on img { opacity: 1; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 180px; }
.inline-form .field.grow { flex: 3 1 280px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.team-row { flex-wrap: wrap; }
.team-row .perms { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; padding-left: 38px; }
.perm { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s; }
.perm:hover { border-color: var(--line-hover); }
.perm:has(input:checked) { color: var(--text); border-color: var(--line-hover); background: var(--surface-2); }
.perm input { margin: 0; width: 14px; height: 14px; accent-color: var(--text); }
.card > .notice.row-notice { margin: 0 16px 14px; }
.plain-link { color: var(--text); }
.plain-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail a.admin .icon { background: transparent; border: 1px solid var(--line); }
.rail a.admin .icon img { width: 18px; height: 18px; opacity: .8; }
@media (max-width: 960px) {
  .app.admin-app { grid-template-columns: minmax(0, 1fr); }
  .app.admin-app .side.open { left: 0; }
}
@media (max-width: 700px) {
  .adopt { grid-template-columns: minmax(0, 1fr) 84px; }
  .adopt .meter { grid-column: 1 / -1; grid-row: 2; }
  .team-row .perms { padding-left: 0; }
  .admin-bar { flex-wrap: wrap; }
  .admin-bar a { margin-left: 26px; }
}

/* ------------------------------------------------------------------ exports and saved replies */
.page-head-row.head-gap { margin-bottom: 20px; align-items: center; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 7px;
  vertical-align: 1px; animation: live 2.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.saved-item .what .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.saved-item .what .faint { display: block; margin-top: 2px; }
.saved-form { padding: 0; }
.saved-form .field.wide { grid-column: 2 / -1; }
@media (max-width: 700px) { .saved-form .field.wide { grid-column: auto; } }
.row .control.link-control { width: min(560px, 62%); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.link-control select { flex: 1 1 170px; width: auto; }
.link-control input { flex: 2 1 180px; width: auto; }
@media (max-width: 700px) { .row .control.link-control { width: 100%; justify-content: flex-start; } }
.slim-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 14px; font-size: 14px; }
.slim-bar img { width: 16px; height: 16px; flex: none; opacity: .8; }
.perm-pick { padding-top: 0; }
.perm-pick .perms { display: flex; flex-wrap: wrap; gap: 6px; }
/* ------------------------------------------------------------------ loading */
.sk-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.sk-card + .sk-card { margin-top: 16px; }
.sk-head { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.sk-head + .sk-row { border-top: 0; }
.sk { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2) 0, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-icon { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.sk-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.sk-end { width: 56px; margin-left: auto; flex: none; }
.slow-note { margin: 10px 2px 0; color: var(--faint); font-size: 14px; }
.later.stale { opacity: .72; transition: opacity .2s; }
.later { transition: opacity .2s; }
.signout-all { margin-top: 12px; width: 100%; color: var(--muted); }
.admin-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 28px; padding: 14px 16px; }
.admin-mod-group .label-sm { margin: 6px 0 4px; }
.admin-mod { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.admin-mod-group .admin-mod:nth-child(2) { border-top: 0; }
.admin-app .grid > .card.section { margin-top: 0; }
.reply-box { border-top: 1px solid var(--line-soft); padding: 14px 16px; display: grid; gap: 10px; }
.reply-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.reply-actions select { width: auto; min-width: 200px; }
.close-row .what input { margin-top: 6px; }
.eyebrow .live-dot { margin-right: 6px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ------------------------------------------------------------------ overview: the security score and the to-do list */
.score-card { padding: 16px; gap: 10px; background: var(--surface); }
.score-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.score-line b { color: var(--text); font-size: 14px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--text); transition: width .4s cubic-bezier(.23, 1, .32, 1); }
.meter.good > i { background: var(--good); }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--bad); }
.standing-track.score-track { grid-template-columns: 1fr 1fr 2fr; margin-top: 4px; }
.score-card .standing-ends { margin-top: -2px; }
.score-track.small { gap: 3px; margin-top: 0; }
.score-track.small i { height: 4px; }
.score-track.small .standing-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 2px var(--bg); }
.score-now { display: inline-flex; align-items: baseline; gap: 10px; }
.score-word { font-size: 14px; font-weight: 550; color: var(--muted); }
.score-word.bad { color: var(--bad-text); }
.score-word.warn { color: var(--warn-text); }
.score-word.good { color: var(--good-text); }
.todo > header > div { display: grid; gap: 1px; }
.todo-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 13px 16px;
  border-top: 1px solid var(--line); }
.todo-row:nth-child(even of .todo-row) { background: var(--surface); }
.todo-head { border-top: 0; padding: 11px 16px; font-weight: 600; font-size: 14px; color: var(--text); background: var(--surface-2) !important; }
.todo-head span:last-child, .todo-act { text-align: right; justify-self: end; }
.sev { font-weight: 550; font-size: 14px; padding-top: 3px; }
.sev.bad { color: var(--bad); }
.sev.warn { color: var(--warn-ink); }
.sev.faint { color: var(--faint); }
.todo-issue { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 0; cursor: pointer; text-align: left;
  font-weight: 550; font-size: 14px; color: var(--text); }
.todo-issue .g { width: 13px; height: 13px; color: var(--faint); transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.todo-issue[aria-expanded=true] .g { transform: rotate(90deg); }
.todo-detail { margin: 4px 0 2px 21px; color: var(--muted); font-size: 14px; max-width: 560px; }
.todo-area { color: var(--muted); font-size: 14px; padding-top: 3px; }
.todo-act .faint { font-size: 14px; line-height: 30px; }
.todo-more, .passed-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; }
.todo-more:hover, .passed-head:hover { color: var(--text); }
.todo-more .g { width: 13px; height: 13px; }
.passed .passed-head { border-top: 0; padding: 16px; color: var(--text); font-size: 14px; }
.passed-head > .g:first-child { color: var(--good); width: 17px; height: 17px; }
.passed-head > .g:last-child { margin-left: auto; color: var(--faint); transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.passed-head[aria-expanded=true] > .g:last-child { transform: rotate(90deg); }
.passed-head b { font-weight: 550; }
.passed-list { border-top: 1px solid var(--line); }
.passed-list div { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line-soft); color: var(--body); font-size: 14px; }
.passed-list div:first-child { border-top: 0; }
.passed-list .g { color: var(--good); width: 15px; height: 15px; }
.key-staff { background: var(--chart-1); }
.key-auto { background: var(--chart-2); }

/* ------------------------------------------------------------------ module rows and module pages */
.module-row .module-name { font-weight: 550; font-size: 14px; color: var(--text); }
.module-row .module-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.module-row .what > span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.card > header + .row, .card > .row:first-child { border-top: 0; }
.row.plain { color: var(--body); font-size: 14px; padding: 12px 16px; }
.module-page { display: block; min-height: 0; }
.module-page > .card:not(:first-of-type) { margin-top: 20px; }
.module-page > .notice { margin-bottom: 16px; }
.page-head-row .page-top { margin-bottom: 0; }
.page-head-row { margin-bottom: 24px; }
.chart svg text { font-family: var(--font); }

/* ------------------------------------------------------------------ the server list */
.page > #main { max-width: var(--wrap); margin: 0 auto; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.server-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, background .15s; min-width: 0; }
.server-tile:hover { border-color: var(--line-hover); background: var(--surface-2); }
.server-tile .icon { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; flex: none; }
.server-tile .what { flex: 1; min-width: 0; }
.server-tile b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-tile .what span { color: var(--muted); font-size: 14px; }
.server-tile.add .icon { color: var(--muted); }
.group-title { margin: 32px 0 12px; font: 600 15px/1.4 var(--font); color: var(--text); }

/* ------------------------------------------------------------------ standing */
.standing-card { padding: 20px; gap: 14px; background: var(--surface); }
.standing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.standing-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.standing-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.standing-track i { height: 6px; border-radius: 99px; background: var(--c); opacity: .28; }
.standing-track i.on { opacity: 1; }
.standing-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 3px var(--bg); }
.standing-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; font-weight: 550; color: var(--muted); }
.standing-meaning { margin: 0; color: var(--body); }
.standing-card p { margin: 0; }
.standing-case .what b { font-weight: 550; }
.standing-case .what > span { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body); }
.standing-how { margin: 14px 2px 0; }
.standing-server + .standing-server { margin-top: 36px; }
.standing-server .group-title { display: flex; align-items: center; gap: 10px; }
.standing-server .group-title .icon { width: 28px; height: 28px; border-radius: 7px; font-size: 10px; }

/* quick setup: the apply button and its count sit with the page title */
.qs-apply { display: grid; justify-items: end; gap: 4px; }
.qs-apply > :last-child { color: var(--faint); font-size: 14px; }
.qs-chips { margin: -8px 0 16px; }
@media (max-width: 700px) { .qs-apply { justify-items: start; } }
/* the admin panel's sidebar title, sized like the server switcher */
.side .server-name { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.side .server-name .icon { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; }

/* module settings: group headings and role chips */
.settings-card .setting-group { padding: 14px 16px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.settings-card .setting-group + .setting { border-top: 0; }
.role-picks { display: grid; gap: 8px; }
.role-picks .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { margin-left: 6px; padding: 0 2px; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; line-height: 1; }
.chip-x:hover { color: var(--text); }
.role-picks select { max-width: 300px; }

/* Blackout: the red item at the top of the menu */
.side a.side-blackout { color: var(--lava-text); background: rgba(255, 74, 31, .08); box-shadow: inset 0 0 0 1px rgba(255, 74, 31, .3); }
.side a.side-blackout img { opacity: 1; filter: none; }
.side a.side-blackout .count { color: var(--lava-text); font-weight: 600; }
.side a.side-blackout:hover { background: rgba(255, 74, 31, .14); color: var(--lava-hover); }
.side a.side-blackout[aria-current=page], .side a.side-blackout.on { background: rgba(255, 74, 31, .18); box-shadow: inset 0 0 0 1px rgba(255, 74, 31, .55); color: var(--lava-hover); }
/* Blackout: the red emergency panel at the top of the overview */
.blackout { border-color: rgba(255, 74, 31, .45); background: linear-gradient(0deg, rgba(255, 74, 31, .06), rgba(255, 74, 31, .06)), var(--surface); }
/* the overview's panels get more room between them than cards inside a group */
.overview > .card + .card, .overview .card.section { margin-top: 28px; }
.page-top .desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.blackout.on { border-color: #ff4a1f; background: linear-gradient(0deg, rgba(255, 74, 31, .14), rgba(255, 74, 31, .14)), var(--surface); }
.blackout-top { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 16px; }
.blackout-top .what { min-width: 0; flex: 1 1 320px; }
.blackout-top .what b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--lava-text); }
.blackout-top .what > span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; max-width: 640px; }
.blackout .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4a1f; }
.blackout.on .dot { box-shadow: 0 0 0 4px rgba(255, 74, 31, .25); }
.blackout-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blackout-act input { width: 240px; max-width: 100%; }
.blackout-done { margin: 8px 0 0; padding-left: 18px; color: var(--text); font-size: 14px; }
.blackout-settings { border-top: 1px solid rgba(255, 74, 31, .25); }
.blackout-settings > summary { padding: 13px 16px; cursor: pointer; color: var(--muted); font-size: 14px; }
.blackout-settings > summary:hover { color: var(--text); }
.blackout-settings .settings-card > .setting-group:first-child { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .blackout-act, .blackout-act input { width: 100%; } }

/* ------------------------------------------------------------------ home page
   One centred headline, the dashboard right under it, then a raid as Brix logs it. Pill buttons on this page only. */
.landing { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 96px; }
.landing .btn { border-radius: 999px; }
.landing .btn.big { padding: 13px 22px; font-size: 15px; }
.landing .btn:not(.primary) { background: transparent; }
.landing .btn:not(.primary):hover { background: var(--surface-2); }
.landing h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.hero { text-align: center; padding: clamp(56px, 12vh, 128px) 0 clamp(36px, 6vh, 56px); display: grid; justify-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 650; margin: 0 0 22px; max-width: 13ch; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; margin: 0 0 32px; max-width: 600px; text-wrap: pretty; }
.hero .notice { margin-bottom: 20px; text-align: left; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fine { display: block; margin-top: 18px; color: var(--faint); font-size: 14px; }

.showcase { margin: 0 auto; max-width: 1000px; animation: rise .7s cubic-bezier(.23, 1, .32, 1) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.shot { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden;
  box-shadow: 0 50px 100px -50px var(--shadow-strong); }

/* the raid, as Brix records it */
.landing .split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: center;
  margin-top: clamp(80px, 12vw, 160px); }
.split-text p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 16px 0 0; max-width: 46ch; }
.split-text h2 { max-width: 14ch; }
.log { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 0; font: 13px/1.5 var(--mono); }
.log-row { display: grid; grid-template-columns: 7px 72px minmax(0, 1fr); gap: 12px; padding: 9px 18px; color: var(--body); }
.log-row::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: .55em; background: var(--faint); }
.log-row.bad::before { background: var(--bad); }
.log-row.warn::before { background: var(--warn); }
.log-row.good::before { background: var(--good); }
.log-row.bad span { color: var(--bad-text); }
.log-row time { color: var(--faint); font-variant-numeric: tabular-nums; }

/* what it does: a heading on the left, the list beside it */
.band { margin-top: clamp(80px, 11vw, 144px); }
.band > h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.band-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 420px; }
.area { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; letter-spacing: -.02em; }
.area h3 img { width: 18px; height: 18px; }
.area ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.area li { color: var(--body); font-size: 15px; line-height: 1.5; }
.dash-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.dash-list div { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.dash-list dt { font: 600 15.5px/1.4 var(--display); color: var(--text); margin-bottom: 6px; }
.dash-list dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.banner-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.banner-strip img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.closing { margin-top: clamp(96px, 14vw, 176px); text-align: center; display: grid; justify-items: center; gap: 28px; }
.closing h2 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.04em; max-width: 16ch; }

@media (max-width: 960px) {
  .landing .split { grid-template-columns: minmax(0, 1fr); }
  .area { grid-template-columns: minmax(0, 1fr); }
  .dash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dash-list, .area ul, .banner-strip { grid-template-columns: minmax(0, 1fr); }
  .log { font-size: 14px; } .log-row { grid-template-columns: 7px 62px minmax(0, 1fr); gap: 10px; padding: 8px 14px; }
  .cta .btn { flex: 1 1 100%; }
  .hero { text-align: left; justify-items: start; } .hero .cta { justify-content: flex-start; }
}

/* home page details: focus rings follow the pill, the arrow leans in on hover, the raid log plays once */
.landing .btn:focus-visible { border-radius: 999px; outline-offset: 3px; }
.landing .btn .go { width: 16px; height: 16px; margin-right: -4px; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.landing ::selection { background: var(--accent-soft); color: var(--text); }
.log.ready .log-row { opacity: 0; transform: translateY(6px); transition: opacity .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1); }
.log.ready.seen .log-row { opacity: 1; transform: none; }
.log.seen .log-row:nth-child(2) { transition-delay: .35s; }
.log.seen .log-row:nth-child(3) { transition-delay: .5s; }
.log.seen .log-row:nth-child(4) { transition-delay: .65s; }
.log.seen .log-row:nth-child(5) { transition-delay: .95s; }
.log.seen .log-row:nth-child(6) { transition-delay: 1.5s; }
.area li { position: relative; padding-left: 20px; }
.area li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--line-hover); }
.area h3 { align-self: start; }
@media (hover: hover) and (pointer: fine) {
  .landing .btn:hover .go { transform: translateX(3px); }
  .banner-strip img { transition: transform .25s cubic-bezier(.23, 1, .32, 1), border-color .25s; }
  .banner-strip img:hover { transform: translateY(-3px); border-color: var(--line-hover); }
}
@media (max-width: 640px) { .hero { padding-top: 36px; } .hero h1 { font-size: 44px; } }

/* ------------------------------------------------------------------ motion
   Short and quiet: fades and a few pixels of movement, under 250ms, nothing bounces. Things people do all day
   (hover, typing, switching tabs) barely move; things that appear now and then (menus, toasts) get one short
   entrance and a faster exit. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1); }

/* what loads in fades over the grey placeholder instead of snapping in */
.later.in > * { animation: fade .2s var(--ease-out); }
.later.in > * + * { animation-delay: .04s; animation-fill-mode: backwards; }
.later.in > * + * + * { animation-delay: .08s; }

/* toasts: up from the corner, out a little quicker than they came in */
.toast { animation: rise .2s var(--ease-out); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
.toast.out { opacity: 0; transform: translateY(4px); }

/* the phone menu slides in from the edge it lives on */
@media (max-width: 960px) { .side.open { animation: drawer .24s var(--ease-drawer); } }

/* an opened row or panel settles in */
details[open] > :not(summary) { animation: fade .18s var(--ease-out); }

/* pressing something answers straight away */
.tab, .switcher > button, .me .who, .side a, .pager .btn { transition: background .12s, color .12s, border-color .12s, transform .12s var(--ease-out); }
.switch { transition: background .18s, border-color .18s, transform .12s var(--ease-out); }
.tab:active, .switcher > button:active, .me .who:active, .side a:active, .switch:active:not([disabled]) { transform: scale(.97); }

/* a saved setting row flashes once, quietly */
.setting.saved { animation: saved .9s ease-out; }

@keyframes fade { from { opacity: 0; } }
@keyframes drawer { from { opacity: 0; transform: translateX(-12px); } }
@keyframes saved { from { background: color-mix(in srgb, var(--good) 10%, transparent); } }

/* Reduced motion: nothing moves. Fades stay, because they help show what changed; shimmer and pulses stop. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, background-color, border-color, color !important; scroll-behavior: auto !important; }
  @keyframes rise { from { opacity: 0; } }
  @keyframes pop { from { opacity: 0; } }
  @keyframes drawer { from { opacity: 0; } }
  @keyframes cookie-in { from { opacity: 0; } }
  .sk, .skeleton, img.loading, .loadbar.on, .pulse, .switch.pending::after, .live-dot, .log.ready .log-row { animation: none !important; }
  .log.ready .log-row { opacity: 1; transform: none; }
  .btn:active, .tab:active, .switcher > button:active, .me .who:active, .side a:active, .switch:active { transform: none !important; }
  .showcase { animation-duration: .2s; }
}

/* ------------------------------------------------------------------ phones: rules that must come after the base ones
   (the 700px block above sits before .todo-row is defined, so its overrides never applied) */
@media (max-width: 700px) {
  .todo-head { display: none; }
  .todo-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .todo-row .sev { font-size: 14px; }
  .todo-area { display: none; }
  .todo-act { grid-column: auto; justify-self: start; text-align: left; }
  .todo-detail { margin-left: 0; }
}

/* ------------------------------------------------------------------ light or dark */
.top-right { justify-self: end; display: flex; align-items: center; gap: 6px; min-width: 0; }
.theme-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.theme-btn:active { transform: scale(.96); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-btn .moon { display: block; }
}
/* Brix's line icons are white pictures. On light pages they're shown dark; the coloured ones (status, logo) and anything
   inside a Discord preview keep their colours. */
:root[data-theme="light"] img[src*="/icons/"]:not([src*="/icons/danger"], [src*="/icons/success"], [src*="/icons/warn."], [src*="/icons/brix"], [src*="/icons/logo"], .dc img, .chat-log img, .eb-preview-wrap img) { filter: invert(1) brightness(.35); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) img[src*="/icons/"]:not([src*="/icons/danger"], [src*="/icons/success"], [src*="/icons/warn."], [src*="/icons/brix"], [src*="/icons/logo"], .dc img, .chat-log img, .eb-preview-wrap img) { filter: invert(1) brightness(.35); }
}

/* ------------------------------------------------------------------ server menu: five sections that fold */
.side .side-blackout { margin: 10px 0 4px; }
.side-group { margin-top: 2px; }
.side-group-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none;
  color: var(--text); font: 600 14px/1.3 var(--font); cursor: pointer; text-align: left; transition: background .12s; }
.side-group-head:hover { background: var(--surface-2); }
.side-group-head img { width: 16px; height: 16px; opacity: .85; flex: none; }
.side-group-head span { flex: 1; min-width: 0; }
.side-group-head .g { width: 12px; height: 12px; color: var(--faint); transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.side-group-head[aria-expanded=true] .g { transform: rotate(90deg); }
.side-group-list { display: grid; gap: 1px; padding: 2px 0 8px 14px; margin-left: 17px; border-left: 1px solid var(--line-soft); }
.side-group-list a { padding: 6px 10px; }
.side-group-list a img { display: none; }
.side-mods:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .side-group-head .g { transition: none; } }

/* ------------------------------------------------------------------ the homepage drawing of the dashboard
   Drawn from the same tokens as the real pages, so it follows light and dark and looks like what you get. */
.sd-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sd-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); flex: none; }
.sd-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--faint); font: 11.5px var(--mono); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-bar::after { content: ""; width: 39px; flex: none; }
.sd-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); text-align: left; }
.sd-side { display: grid; align-content: start; gap: 2px; padding: 12px 10px 18px; border-right: 1px solid var(--line-soft); font-size: 12.5px; }
.sd-switch { display: flex; align-items: center; gap: 8px; padding: 7px 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px;
  font-weight: 550; color: var(--text); }
.sd-av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--surface-3);
  font: 700 9.5px var(--font); color: var(--text); }
.sd-black { padding: 7px 10px; margin-bottom: 6px; border-radius: 7px; color: var(--lava-text); background: var(--bad-soft);
  box-shadow: inset 0 0 0 1px var(--bad-line); font-weight: 550; }
.sd-head { display: flex; align-items: center; gap: 9px; padding: 7px 10px; color: var(--text); font-weight: 600; }
.sd-head img { width: 14px; height: 14px; opacity: .85; }
.sd-head::after { content: ""; margin-left: auto; width: 5px; height: 5px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.sd-head.open::after { transform: rotate(45deg); }
.sd-sub { display: grid; gap: 1px; margin: 0 0 6px 17px; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.sd-sub span { padding: 6px 10px; border-radius: 7px; color: var(--muted); }
.sd-sub span.on { background: var(--surface-3); color: var(--text); }
.sd-main { display: grid; align-content: start; gap: 12px; padding: 18px 20px 22px; min-width: 0; }
.sd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sd-top b { display: block; font: 650 19px/1.2 var(--display); letter-spacing: -.02em; }
.sd-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--faint); font-size: 11.5px; }
.sd-meta .chip { font-size: 11px; padding: 1px 8px; }
.sd-btn { padding: 6px 12px; border-radius: 8px; background: var(--text); color: var(--on-text); font-size: 12px; font-weight: 600; flex: none; }
.sd-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.sd-card > header { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px; font-weight: 600; }
.sd-card > header small { color: var(--faint); font-weight: 500; font-size: 11px; }
.sd-score { padding: 12px 14px 13px; }
.sd-score-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sd-score-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.sd-score-top em { font-style: normal; color: var(--good-text); font-weight: 600; margin-right: 8px; }
.sd-track { position: relative; display: grid; grid-template-columns: 25fr 25fr 50fr; gap: 4px; margin-top: 12px; }
.sd-track i { height: 6px; border-radius: 99px; opacity: .3; }
.sd-track i:nth-child(1) { background: var(--good); opacity: 1; }
.sd-track i:nth-child(2) { background: var(--warn); }
.sd-track i:nth-child(3) { background: var(--bad); }
.sd-track b { position: absolute; top: 50%; left: 11%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 3px var(--surface); }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; }
.sd-rows { display: grid; }
.sd-rows > span { display: flex; align-items: center; gap: 9px; padding: 7px 12px; font-size: 12px; border-top: 1px solid var(--line-soft); min-width: 0; }
.sd-rows > span:first-child { border-top: 0; }
.sd-rows img { width: 14px; height: 14px; opacity: .8; flex: none; }
.sd-rows .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.sd-rows .n { font: 600 11.5px var(--mono); color: var(--text); min-width: 32px; }
.sd-rows .chip { font-size: 10.5px; padding: 0 7px; flex: none; }
.sd-sw { width: 24px; height: 14px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; margin-left: auto; }
.sd-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.sd-sw.on { background: var(--text); }
.sd-sw.on::after { left: 12px; background: var(--on-text); }
.sd-chart { display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 10px 12px 12px; }
.sd-chart i { flex: 1; border-radius: 2px 2px 0 0; background: var(--chart-2); min-height: 2px; }
.sd-chart i.s { background: var(--chart-1); }
@media (max-width: 960px) {
  .sd-body { grid-template-columns: minmax(0, 1fr); }
  .sd-side { display: none; }
}
@media (max-width: 640px) {
  .sd-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-main { padding: 14px; }
  .sd-btn { display: none; }
  .sd-bar span { max-width: 80%; }
}

.sd-chart i.h1 { height: 9%; }
.sd-chart i.h2 { height: 18%; }
.sd-chart i.h3 { height: 27%; }
.sd-chart i.h4 { height: 36%; }
.sd-chart i.h5 { height: 45%; }
.sd-chart i.h6 { height: 55%; }
.sd-chart i.h7 { height: 64%; }
.sd-chart i.h8 { height: 73%; }
.sd-chart i.h9 { height: 82%; }
.sd-chart i.h10 { height: 91%; }
.sd-chart i.h11 { height: 100%; }
.sd-rows .chip, .sd-meta .chip { font-style: normal; }

/* ------------------------------------------------------------------ why trust Brix */
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.legal thead th { border-top: 0; background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--text); }
.legal td { color: var(--body); }
.legal td:first-child { width: 38%; }
.legal td b { color: var(--text); font-weight: 550; }
.trust-lead { display: grid; gap: 4px; margin: 6px 0 8px; padding: 16px 18px; border: 1px solid var(--good-line); border-radius: var(--radius);
  background: var(--good-soft); }
.trust-lead b { color: var(--good-text); font-size: 16px; }
.trust-lead span { color: var(--body); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-hover); }
.inline-link:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) { .legal td:first-child { width: auto; } .legal th, .legal td { padding: 9px 10px; } }

/* Live state chips on open tickets and ongoing attacks */
.live-dot.bad { background: var(--bad); }
.case-head h1 .chip .live-dot { margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Menu search: nothing matched */
.side-none { margin: 0 2px 12px; font-size: 14px; color: var(--muted); }
.side-none a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.side.searching .side-group-head .g { transform: rotate(90deg); }
.side-mods:has(a:not([hidden]))::before { content: "Modules"; display: block; margin: 10px 8px 4px; font-size: 14px; color: var(--faint); }

/* ------------------------------------------------------------------ November 15 polish */
/* Phone top bar: the page links scroll sideways without a scrollbar, and the right edge fades while more links are
   hidden (app.js navEdge sets .more), so "Admin" is never cut in half with no hint. */
@media (max-width: 700px) {
  header.top nav { scrollbar-width: none; }
  header.top nav::-webkit-scrollbar { display: none; }
  header.top nav.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  /* a "·" between facts dangled at the end of a line once they wrapped; on a phone the gap does the job */
  .page-top .meta { column-gap: 14px; }
  .page-top .meta .sep { display: none; }
}
/* Tab strips (banner types on Branding) scroll sideways the same way */
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; }
}
/* A table that scrolls sideways can be focused with the keyboard; show where focus is */
.table-wrap:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* Docs tables on a phone: each row becomes a small block with the column name over each value, instead of a table
   wider than the screen with the explanation pushed off the right edge. */
@media (max-width: 640px) {
  .docs .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .docs table, .docs tbody, .docs tr, .docs td { display: block; width: 100%; }
  .docs thead { display: none; }
  .docs tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 0; margin-bottom: 10px; background: var(--surface); }
  .docs td { border: 0; padding: 6px 14px; overflow-wrap: anywhere; }
  .docs td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .docs td code { white-space: normal; overflow-wrap: anywhere; }
}
/* The page users land on when a link is wrong */
.lost { max-width: 560px; margin: 0 auto; padding: clamp(64px, 14vh, 140px) var(--gutter) 96px; text-align: center; }
.lost .code { font: 600 14px/1 var(--mono); color: var(--faint); letter-spacing: .08em; }
.lost h1 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.lost p { margin: 0 auto 28px; color: var(--muted); max-width: 440px; }
.lost .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* All six page links fit across a 360px phone, so nothing has to scroll for most people */
@media (max-width: 560px) { header.top nav { gap: 1px; } header.top nav a { padding: 7px 5px; font-size: 14px; } }

/* ------------------------------------------------------------------ simple style (2026-11-29): fewer boxes and lines */
.card > header { background: none; border-bottom: 0; padding: 16px 16px 4px; }
.card > header h3 { font-size: 16px; }
.tiles { border-bottom: 0; }
.tile { border-left: 0; }

.landing .log { font-family: var(--font); }
.landing .log-row { grid-template-columns: 72px minmax(0, 1fr); }
.landing .log-row::before { display: none; }
@media (min-width: 761px) { .docs { grid-template-columns: 220px minmax(0, 720px); justify-content: start; } }
.docs h2 { border-top: 0; padding-top: 0; margin-top: 36px; }
.docs .lede { color: var(--body); }
.docs-group b { color: var(--text); font-size: 14px; }
.docs-pager a { border: 0; padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hover); text-underline-offset: 3px; }
.anchor { display: block; scroll-margin-top: 80px; }
.card > header .btn:last-child { margin-left: auto; }

/* Headings: Montserrat ExtraBold Italic (SIL OFL, fonts/OFL-montserrat.txt), Henry's pick 2026-11-29, same as the banners.
   Body text stays Geist. */
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-italic.ttf) format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
/* Montserrat for big titles only (style guide Round 3); section headings stay Geist. */
h1, .page-title, .page-top h1, .head h1, .hero h1, .landing h2, .closing h2, .lost h1, .docs h1, .legal h1 {
  font-family: "Montserrat", var(--font); font-style: italic; font-weight: 800; letter-spacing: -.01em; }
.landing h2 { font-weight: 700; }
.hero h1 { letter-spacing: -.02em; line-height: 1.02; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); max-width: 15ch; }
.split-text h2 { max-width: 18ch; }
.todo .passed-head { color: var(--text); }
