
@font-face { font-family: "Plex Sans"; src: url(/static/fonts/ibm-plex-sans.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Sans"; src: url(/static/fonts/ibm-plex-sans-latin-ext.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; src: url(/static/fonts/ibm-plex-sans-cyrillic.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; src: url(/static/fonts/ibm-plex-sans-cyrillic-ext.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Plex Sans"; src: url(/static/fonts/ibm-plex-sans-vietnamese.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --stone: #0e1013; --stone-raised: #15181c; --stone-sunk: #0b0d0f;
  --slate: #e7e9ec; --slate-2: #b2b8c0; --slate-3: #858c96; --slate-4: #5c636d;
  --mortar: rgba(231, 233, 236, 0.09); --mortar-soft: rgba(231, 233, 236, 0.05); --mortar-firm: rgba(231, 233, 236, 0.16);
  --brass: #d9aa52; --brass-wash: rgba(217, 170, 82, 0.12); --brass-ink: #1a1407;
  --moss: #6cbd88; --rust: #e2985a; --brick: #ec7c6e;
  --moss-wash: rgba(108, 189, 136, 0.12); --rust-wash: rgba(226, 152, 90, 0.12); --brick-wash: rgba(236, 124, 110, 0.12);
  --tower: #0a0c0e; --tower-line: rgba(255, 255, 255, 0.07); --toast: #22262c;
  --tower-ink: #e8eaed; --tower-ink-2: #8f96a0; --tower-brass: #d9aa52; --tower-ok: #6cbd88; --tower-bad: #ec7c6e;
  --r-sm: 5px; --r-md: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--slate); font: 400 14px/1.5 "Plex Sans", system-ui, sans-serif; }
/* Scripts Plex doesn't cover use each platform's own fonts: web fonts for them run to megabytes. */
:lang(ja) body, body:lang(ja) { font-family: "Plex Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: "Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(zh) body, body:lang(zh) { font-family: "Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ar) body, body:lang(ar) { font-family: "Plex Sans", "Geeza Pro", "SF Arabic", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
:lang(hi) body, body:lang(hi) { font-family: "Plex Sans", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", Mangal, system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: var(--r-sm); }
.mono, time, .num { font-family: "Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; }

.bar { background: var(--tower); color: var(--tower-ink); border-bottom: 1px solid var(--tower-line); }
.bar-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 12px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mark svg { width: 20px; height: 20px; color: var(--tower-brass); }
.spacer { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: none; color: var(--tower-ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--tower-line); color: var(--tower-ink); }
.bar .btn { color: var(--tower-ink); border-color: rgba(255, 255, 255, 0.16); }
.bar .btn:hover { background: var(--tower-line); }

/* The footer, shared by the public site and the dashboard. */
.foot { border-top: 1px solid var(--mortar); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; }
.foot-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--slate); text-decoration: none; }
.foot-mark svg { width: 18px; height: 18px; color: var(--brass); }
.foot-brand p { margin: 10px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.5; color: var(--slate-3); }
.foot-left { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-status { display: inline-flex; align-items: center; gap: 7px; }
.foot-base .foot-status:hover { color: var(--slate); }
.foot-status .piece { display: inline-grid; place-items: center; width: 14px; height: 14px; color: var(--slate-4); transform-origin: 50% 90%; transition: transform 200ms ease-out; }
.foot-status .piece svg { width: 13px; height: 13px; }
.foot-status.ok .piece { color: var(--moss); }
.foot-status.warn .piece, .foot-status.maintenance .piece { color: var(--rust); transform: rotate(-18deg); }
.foot-status.bad .piece { color: var(--brick); transform-origin: 50% 50%; transform: rotate(-90deg); }
.foot-status.ok:hover .piece { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .foot-status .piece { transition: none; } }
.foot-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.lang-menu { position: relative; margin-top: 16px; width: fit-content; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--mortar); border-radius: var(--r-sm); color: var(--slate-2); font-size: 14px; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .i { width: 16px; height: 16px; }
.lang-menu summary:hover { color: var(--slate); border-color: var(--mortar-firm); }
.lang-menu ul { position: absolute; inset-block-end: calc(100% + 6px); inset-inline-start: 0; z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 220px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-raised); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); columns: 2; column-gap: 4px; }
.lang-menu li { break-inside: avoid; }
.lang-menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--slate-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lang-menu a:hover { background: var(--mortar-soft); color: var(--slate); }
.lang-menu a[aria-current] { color: var(--brass); }
.foot-en { color: var(--slate-4); font-size: 12px; }
.foot-cols div { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.foot-head { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
.foot-cols a { font-size: 14px; color: var(--slate-3); text-decoration: none; }
.foot-cols a:hover { color: var(--slate); }
.foot-cols .foot-discord, .foot-cols .foot-plus { display: inline-flex; align-items: center; gap: 7px; }
.foot-plus .rook-plus { width: 14px; height: 14px; color: var(--brass); }
.foot-cta { margin-top: 16px; }
/* The footer's top edge is a line the rook travels as the page scrolls; it arrives as you reach the bottom (foot-script.ts). */
.foot-line { position: relative; max-width: 1072px; height: 0; margin: 0 auto; }
.foot-rook { position: absolute; left: 0; top: -13px; width: 12px; height: 12px; color: var(--slate-4); transform: translateX(var(--x, 0px)); transition: color 300ms ease-out; }
.foot-rook svg { width: 12px; height: 12px; display: block; }
.foot-line.home .foot-rook { color: var(--brass); }
@media (max-width: 1120px) { .foot-line { margin: 0 24px; } }
@media (max-width: 820px) { .foot-line { margin: 0 16px; } }
.foot-discord .i { width: 15px; height: 15px; transition: color 120ms ease-out; }
.foot-discord:hover .i { color: #5865f2; }
.foot-base { max-width: 1120px; margin: 0 auto; padding: 18px 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--slate-4); }
.foot-base a { color: var(--slate-4); text-decoration: none; }
.foot-base a:hover { color: var(--slate); }
.foot-sirius { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }.foot-sirius svg { width: 12px; height: 14px; margin-inline-start: 2px; }
@media (max-width: 820px) {
  .foot-inner { grid-template-columns: 1fr; padding: 36px 16px 24px; }
  .foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-base { padding: 8px 16px 20px; }
  /* 40px tap targets from the box, so the text stays small. */
  .foot-cols a, .foot-base a, .foot-mark { display: inline-flex; align-items: center; min-height: 40px; }
  .foot-cols div { gap: 0; }
  .foot-head { margin-bottom: 4px; }
}

/* No rubber-band overscroll: the sticky bar would bounce away from the top. */
html { overscroll-behavior-y: none; }
.bar { position: sticky; top: 0; z-index: 10; }
.divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.14); margin: 0 4px; }

details.menu { position: relative; }
details.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: var(--r-sm); font-weight: 500; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: var(--tower-line); }
details.menu > summary .chev { width: 12px; height: 12px; color: var(--tower-ink-2); }
details.menu > summary > span:not(.server-icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.menu-list { color: var(--slate); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 240px; max-height: 360px; overflow: auto; background: var(--stone-raised); border: 1px solid var(--mortar-firm); border-radius: var(--r-md); padding: 4px; z-index: 20; }
.menu-list.right { inset-inline-start: auto; inset-inline-end: 0; min-width: 180px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; border-radius: var(--r-sm); cursor: pointer; text-align: start; }
.menu-list a:hover, .menu-list button:hover { background: var(--mortar-soft); }
.menu-list .current { color: var(--brass); }
/* Sign-out icons point out of the door, toward the end of the line. */
[dir="rtl"] form[action="/logout"] .i, [dir="rtl"] form[action$="/sign-out-all"] .i { transform: scaleX(-1); }
.menu-label { padding: 8px 8px 4px; font-size: 12px; color: var(--slate-3); }

.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--stone-sunk); object-fit: cover; }
.avatar.xs { width: 16px; height: 16px; }
.avatar.sm { width: 24px; height: 24px; }
.avatar.lg { width: 56px; height: 56px; }
.server-icon { position: relative; width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--stone-sunk); color: var(--slate-2); font-size: 11px; font-weight: 600; overflow: hidden; }
.server-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.server-icon.lg { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.menu-who { display: flex; flex-direction: column; padding: 8px 8px 10px; border-bottom: 1px solid var(--mortar-soft); margin-bottom: 4px; }
.menu-who strong { font-weight: 500; }
.menu-who span { font-size: 12px; color: var(--slate-3); }
.menu-sep { height: 1px; background: var(--mortar-soft); margin: 4px 0; }

.tabs { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; gap: 24px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 12px; text-decoration: none; color: var(--tower-ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--tower-ink); }
.tabs a[aria-current="page"] { color: var(--tower-ink); border-bottom-color: var(--tower-brass); }
.tabs a[aria-current="page"] .i { color: var(--tower-brass); }

main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
h1 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
h2 .i { color: var(--slate-3); }
.lede { color: var(--slate-2); margin: 0 0 24px; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.meta { color: var(--slate-3); font-size: 13px; }
.push { margin-inline-start: auto; }

.panel { background: var(--stone-raised); border: 1px solid var(--mortar); border-radius: var(--r-md); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--mortar-soft); }
.panel-body { padding: 4px 20px; }
.panel-body.after { padding-top: 0; }
.panel-body.after .row:first-of-type { border-top: 1px solid var(--mortar-soft); }
.panel-body.before { padding-bottom: 0; }
.panel-body.before > .row:first-of-type { border-top: 0; }
.panel-body.lead { padding-bottom: 0; }
.panel-body.mid { padding-top: 0; padding-bottom: 0; }
.panel-body.mid .row:first-child { border-top: 1px solid var(--mortar-soft); }
form + .panel-body.after:not(:has(.row)) { padding: 0 0 4px; }
.panel-body.after-before .row:first-child { border-top: 1px solid var(--mortar-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -10px 0 20px; }
.jump a { display: inline-flex; align-items: center; gap: 6px; padding-block: 5px; padding-inline: 9px 11px; border: 1px solid var(--mortar); border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--slate-3); text-decoration: none; transition: color 120ms ease-out, border-color 120ms ease-out; }
.jump a:hover { color: var(--slate); border-color: var(--mortar-firm); }
.jump .i { width: 14px; height: 14px; }
[id] { scroll-margin-top: calc(var(--head, 108px) + 12px); }
/* Opened at a row from a Fix button: it lights up once. */
.row:target { border-radius: var(--r-sm, 6px); }
@media (prefers-reduced-motion: no-preference) {
  .row:target { animation: row-found 1.8s ease-out 0.2s; }
}
@keyframes row-found { 0%, 30% { background: color-mix(in srgb, var(--brass, #d9aa52) 14%, transparent); } 100% { background: transparent; } }
/* Arriving at a section or setting from a link: a brief brass glow. */
@keyframes flash-panel { 0%, 35% { box-shadow: 0 0 0 2px var(--brass), 0 0 0 7px var(--brass-wash); } 100% { box-shadow: 0 0 0 2px transparent, 0 0 0 7px transparent; } }
@keyframes flash-row { 0%, 35% { background: var(--brass-wash); box-shadow: 0 0 0 10px var(--brass-wash); } 100% { background: transparent; box-shadow: 0 0 0 10px transparent; } }
section.panel.flash { animation: flash-panel 1.8s ease-out; }
.row.flash { border-radius: var(--r-sm); animation: flash-row 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { section.panel.flash, .row.flash { animation-duration: 2.4s; animation-timing-function: steps(1, end); } }
.panel-foot { padding: 0 20px 16px; }
.gap-below { margin-bottom: 16px; }
.section-title { margin: 32px 0 12px; }

.row > *, .control, .plan-body { min-width: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--mortar-soft); }
.row:first-child { border-top: 0; }
/* A form that starts with hidden fields: its first row is still the first one seen. */
form > input[type="hidden"]:first-child ~ .row:first-of-type { border-top: 0; }
.row.top { align-items: start; }
.row-label { font-weight: 500; }
.row-help { color: var(--slate-3); font-size: 13px; margin-top: 2px; max-width: 58ch; }
.row-text, .row-text > span { display: block; }
.log-fix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row-problem { color: var(--brick); font-size: 13px; margin-top: 4px; }
.control { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.control-note { font-size: 12px; color: var(--slate-3); line-height: 1.45; }

input[type="text"], input[type="search"], textarea { width: 100%; font: inherit; color: var(--slate); background: var(--stone-sunk); border: 1px solid var(--mortar); border-radius: var(--r-sm); padding: 7px 10px; min-height: 36px; }
textarea { resize: vertical; line-height: 1.45; }
input[type="text"]::placeholder, input[type="search"]::placeholder, textarea::placeholder { color: var(--slate-3); opacity: 0.7; }
input[type="text"]:focus-visible, input[type="search"]:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
input[type="file"] { font: inherit; font-size: 13px; color: var(--slate-3); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 500; margin-inline-end: 10px; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--mortar-firm); background: transparent; color: var(--slate); cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--slate-3); }
.pic-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pic-now { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--stone-sunk); border: 1px solid var(--mortar); color: var(--brass); }
.pic-now img { width: 100%; height: 100%; object-fit: cover; }
.pic-now svg { width: 20px; height: 20px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate-3); cursor: pointer; }
.check input { accent-color: var(--brass); }
.sub-h { margin: 14px 0 2px; font-size: 13px; font-weight: 600; color: var(--slate-3); }
.panel-head .pill { margin-inline-start: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 120ms ease-out; }
.swatch:hover { transform: scale(1.08); }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--stone-raised), 0 0 0 4px var(--slate); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 4px; }
.sw-brass { background: #d9aa52; } .sw-blue { background: #5b8def; } .sw-teal { background: #2bb3a3; } .sw-green { background: #4caf6a; }
/* The server's own colour: a colour wheel until one is picked, then that colour. */
.sw-custom { background: var(--custom, conic-gradient(from 90deg, #e0605a, #ec8b3a, #d9aa52, #4caf6a, #2bb3a3, #5b8def, #9a7cf0, #e06aa8, #e0605a)); }
.swatch.sw-custom input[type="color"] { inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.sw-violet { background: #9a7cf0; } .sw-pink { background: #e06aa8; } .sw-red { background: #e0605a; } .sw-orange { background: #ec8b3a; }
.plus-pitch { padding: 16px 20px 18px; }
.plus .panel-foot:not(.no-js) { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px 20px 16px; }
.plus .panel-foot .link-btn { align-self: center; }
.plus + .plus { margin-top: 16px; }
/* Plus: the form first, what members will see beside it. */
.plus-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.plus-split .row { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 16px; }
.plus-split .row:first-of-type { border-top: 0; }
.file-field { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.file-pick { position: relative; overflow: hidden; max-width: 100%; }
.file-pick span { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-pick:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.profile-card { position: sticky; top: calc(var(--head, 108px) + 16px); margin-top: 14px; border-radius: var(--r-md); overflow: hidden; background: var(--stone-sunk); border: 1px solid var(--mortar); }
.profile-banner { aspect-ratio: 5 / 2; background: color-mix(in srgb, var(--brass) 55%, var(--stone)); }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar { width: 76px; height: 76px; margin: -38px 0 0 16px; position: relative; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--stone-raised); color: var(--brass); box-shadow: 0 0 0 5px var(--stone-sunk); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar svg { width: 40px; height: 40px; }
.pc-body { padding: 10px 16px 16px; }
.pc-name { display: flex; align-items: center; gap: 6px; font-size: 18px; overflow-wrap: anywhere; }
.app-tag svg { width: 10px; height: 10px; }
.app-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.pc-bio { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--mortar-soft); font-size: 13px; color: var(--slate-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) {
  .plus-split { grid-template-columns: 1fr; gap: 8px; }
  .profile-card { position: static; }
  .profile-card { max-width: 380px; }
}
@media (max-width: 560px) {
  .plus-split .row { grid-template-columns: 1fr; gap: 8px; }
  .plus .panel-head { flex-wrap: wrap; row-gap: 2px; }
  .plus .panel-head .meta { flex-basis: 100%; margin-inline-start: 0; }
}
/* The site's own "are you sure". */
dialog.ask { max-width: min(420px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--mortar-firm); border-radius: var(--r-md); background: var(--stone-raised); color: var(--slate); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
dialog.ask[open] { animation: ask-in 160ms ease-out; }
dialog.ask::backdrop { background: rgba(8, 9, 11, 0.6); backdrop-filter: blur(2px); }
dialog.ask p { margin: 0 0 18px; line-height: 1.5; }
.ask-actions { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes ask-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
/* Working: a rook builds itself, base to battlements, then starts again. */
.rook-load { width: 16px; height: 16px; flex: none; }
.rook-load > * { animation: rook-build 1.5s ease-out infinite both; }
.rook-load .rl-2 { animation-delay: 0.1s; } .rook-load .rl-3 { animation-delay: 0.2s; }
.rook-load .rl-4 { animation-delay: 0.32s; } .rook-load .rl-5 { animation-delay: 0.42s; } .rook-load .rl-6 { animation-delay: 0.52s; }
@keyframes rook-build { 0% { opacity: 0; transform: translateY(-5px); } 18%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.btn[data-loading] { pointer-events: none; }
.btn.primary[data-loading] { filter: saturate(0.85); }
html.navigating::before { content: ""; position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brass), transparent) 0 0 / 40% 100% no-repeat; animation: nav-run 900ms ease-in-out infinite; }
@keyframes nav-run { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .rook-load > * { animation: none; } html.navigating::before { animation: none; background-size: 100% 100%; opacity: 0.6; } }
.plus-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plus-mock.mono { font-size: 12px; color: var(--slate-2); }
.domain-add { display: flex; gap: 8px; }
.domain-add input { flex: 1 1 auto; min-width: 0; }
.domain-card { margin: 10px 0 4px; padding: 14px 16px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); }
.domain-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.domain-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.domain-card .row-help { margin-top: 8px; }
.dns-records { display: grid; margin-top: 12px; border: 1px solid var(--mortar); border-radius: var(--r-sm); background: var(--stone-raised); }
.dns-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--mortar-soft); font-size: 13px; }
.dns-row:first-child { border-top: 0; }
.dns-headrow { font-size: 12px; font-weight: 500; color: var(--slate-3); }
.dns-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dns-cell code { font-family: "Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.copy-btn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--slate-3); cursor: pointer; }
.copy-btn:hover { color: var(--slate); border-color: var(--mortar-firm); }
.copy-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.copy-btn .i { width: 14px; height: 14px; }
.domain-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.domain-actions .link-btn { align-self: center; }
@media (max-width: 640px) {
  .dns-headrow { display: none; }
  .dns-row { grid-template-columns: 1fr; gap: 4px; }
}
.plus-tile { padding: 16px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); }
.plus-tile h3 { margin: 12px 0 4px; font-size: 15px; }
.plus-tile p { margin: 0; font-size: 13px; color: var(--slate-3); line-height: 1.5; }
.plus-mock { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 6px 12px; border-radius: 999px; background: var(--stone-raised); border: 1px solid var(--mortar); font-size: 13px; }
.plus-mock svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brass-wash); color: var(--brass); }
.plus-swatches { display: inline-flex; gap: 6px; padding: 8px 0 4px; }
.plus-swatches i { width: 18px; height: 18px; border-radius: 50%; }
.plus-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.plus-cta-price { font-size: 14px; color: var(--slate-2); }
.plus-cta-price b { color: var(--slate); font-size: 16px; }
.plus-fine { margin-top: 8px; }
.btn .rook-plus { width: 16px; height: 16px; }
.plus-mark { display: inline-grid; place-items: center; margin-inline-start: 6px; color: var(--brass); vertical-align: -2px; flex: none; }
.plus-mark .rook-plus { width: 14px; height: 14px; }
.menu-list a .menu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs .rook-plus, .menu-list .rook-plus, .panel-head .rook-plus { color: var(--brass); }
.plus-hero { display: flex; align-items: center; gap: 24px; padding: 28px; margin-bottom: 16px; background: radial-gradient(120% 140% at 0% 0%, var(--brass-wash), transparent 60%), var(--stone-raised); }
[dir="rtl"] .plus-hero { background: radial-gradient(120% 140% at 100% 0%, var(--brass-wash), transparent 60%), var(--stone-raised); }
.plus-hero h1 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.plus-hero-mark { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 18px; background: #12151a; border: 1px solid var(--mortar); color: var(--brass); }
.plus-hero-mark .rook-plus { width: 44px; height: 44px; }
.plus-lede { margin: 4px 0 10px; color: var(--slate-2); }
.plus-price { margin: 0; color: var(--slate-2); }
.plus-price span { font-size: 22px; font-weight: 600; color: var(--slate); margin-inline-end: 2px; }
.plus-hero .control-note { margin: 14px 0 0; }
.plus-features-panel { padding: 24px; }
.plus-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.plus-features li { display: flex; gap: 10px; align-items: flex-start; }
.plus-features .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--brass); }
.plus-features b { display: block; font-weight: 600; }
.plus-features span { color: var(--slate-3); font-size: 13.5px; line-height: 1.5; }
.plus-features b { color: var(--slate); font-size: 14.5px; }
@media (max-width: 640px) { .plus-features { grid-template-columns: 1fr; } .plus-hero { flex-direction: column; align-items: flex-start; } }
select { appearance: none; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: var(--slate); background: var(--stone-sunk) url(/static/chevron.svg) no-repeat right 10px center / 12px; border: 1px solid var(--mortar); border-radius: var(--r-sm); padding-block: 7px; padding-inline: 10px 32px; min-height: 36px; }
[dir="rtl"] select { background-position: left 10px center; }
select:hover { border-color: var(--mortar-firm); }

/* Rule options: tiles with an icon; the chosen one takes the brass wash. */
.choices { display: grid; gap: 6px; }
.choice { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 6px; padding-inline: 6px 12px; border: 1px solid var(--mortar); border-radius: var(--r-md); cursor: pointer; transition: border-color 120ms ease-out, background 120ms ease-out; }
.choice:hover { border-color: var(--mortar-firm); }
.choice:has(input:checked) { border-color: color-mix(in srgb, var(--brass) 50%, transparent); background: var(--brass-wash); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice-icon { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--stone-sunk); color: var(--slate-3); }
.choice:has(input:checked) .choice-icon { background: var(--stone-raised); color: var(--brass); }
.choice-label { font-weight: 500; }
.choice-help { display: block; margin-top: 1px; font-size: 13px; font-weight: 400; color: var(--slate-3); }
.choice-time { font-weight: 500; color: var(--slate); }
.gate-mode { max-width: 560px; margin: 10px 0 18px; }
.gate-confirm .plan-newcomers { display: none; }
.gate-confirm:has(input[value="newcomers"]:checked) .plan-newcomers { display: block; }
.gate-confirm:has(input[value="newcomers"]:checked) .plan-default { display: none; }
.choice input { margin: 0; accent-color: var(--brass); width: 16px; height: 16px; }
.choice input:focus-visible { outline: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips select { flex: 1 1 160px; width: auto; min-width: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding-block: 3px; padding-inline: 10px 8px; border: 1px solid var(--mortar); border-radius: var(--r-sm); background: var(--stone-raised); font-size: 13px; font-weight: 500; color: var(--slate); cursor: pointer; transition: border-color 120ms ease-out, color 120ms ease-out; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .i { width: 13px; height: 13px; color: var(--slate-3); }
.chip:hover { border-color: var(--brick); }
.chip:hover .i { color: var(--brick); }
.chip:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip:has(input:not(:checked)) { display: none; }
.link-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--slate-3); cursor: pointer; }
.link-btn:hover { color: var(--slate); }
.link-btn .i { width: 14px; height: 14px; }

.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; justify-self: end; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: 10px; background: var(--mortar-firm); position: relative; transition: background 120ms ease-out; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--stone-raised); transition: transform 120ms ease-out; }
.switch input:checked + .track { background: var(--brass); }
.switch input:checked + .track::after { transform: translateX(14px); }
/* A switch that can't be changed here reads as fixed. */
.switch:has(input:disabled) { cursor: not-allowed; }
.switch input:disabled + .track { opacity: 0.45; }
[dir="rtl"] .switch input:checked + .track::after { transform: translateX(-14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } }

.btn[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; min-height: 36px; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--mortar-firm); background: transparent; color: var(--slate); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--mortar-soft); }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.js .no-js, .js .notice[data-toast], .js .notice[data-job] { display: none; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .js-only[hidden] { display: none; }

/* Status: a coloured icon and a label. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status .i { width: 14px; height: 14px; }
.status.ok { color: var(--moss); }
.status.alt { color: var(--rust); }
.status.blocked { color: var(--brick); }

/* The ledger: one row per verification, two lines each. */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 0 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--mortar-soft); }
.entry:first-child { border-top: 0; }
.entry:hover { background: var(--mortar-soft); }
.entry.resolved .status, .entry.resolved .entry-detail, .entry.resolved .avatar { opacity: 0.55; }
.entries.threaded .entry { padding-inline-start: 52px; }
.entry-main { min-width: 0; }
.entry-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
a.name { color: inherit; text-decoration: none; }
a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.entry-line .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-detail { margin-top: 2px; color: var(--slate-3); font-size: 13px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 4px; vertical-align: top; height: 20px; color: var(--slate-2); }
/* A member named in a feed line: a small pill on the text's line, not the
   removable role chip of Settings, which shares the class name. */
.entry-detail .chip { min-height: 0; height: 20px; padding: 0 7px 0 2px; border: 0; border-radius: 10px; background: var(--stone-raised); font-size: 12.5px; font-weight: 500; color: var(--slate); cursor: default; transition: none; }
.entry-detail .chip:hover { border-color: transparent; }
.entry-detail .chip .avatar { width: 16px; height: 16px; border-radius: 50%; }
.sep { margin: 0 6px; color: var(--slate-4); }
.entry-time { color: var(--slate-3); font-size: 13px; }
.entry-act { min-width: 0; text-align: end; }
.lane { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brass); opacity: 0.5; }
.lane.start { top: 50%; }
.lane.end { bottom: 50%; }
.lane-node { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; margin-inline-start: -3px; border-radius: 50%; background: var(--brass); }
.l0 { inset-inline-start: 18px; } .l1 { inset-inline-start: 26px; } .l2 { inset-inline-start: 34px; }

.filters { display: flex; gap: 4px; margin-bottom: 12px; }
.filters a { padding: 5px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--slate-2); font-weight: 500; }
.filters a:hover { background: var(--mortar-soft); }
.filters a[aria-current="true"] { background: var(--stone-raised); color: var(--slate); outline: 1px solid var(--mortar-firm); }

.empty { padding: 40px 20px; text-align: center; color: var(--slate-3); }
.empty strong { display: block; color: var(--slate); font-weight: 500; margin-bottom: 4px; }

.notice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--mortar); background: var(--stone-raised); margin-bottom: 24px; }
.notice.warn { border-color: color-mix(in srgb, var(--rust) 35%, transparent); background: var(--rust-wash); }

/* Lock progress: a castle wall that fills as members get the role. */
.lockbar { --share: 0%; position: fixed; left: 0; right: 0; bottom: 24px; z-index: 40; display: flex; justify-content: center; pointer-events: none; animation: lockbar-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.lockbar > * { pointer-events: auto; }
.lockbar.waiting .stones.fill { clip-path: none; opacity: 0.35; animation: lockbar-wait 1.6s ease-in-out infinite; }
@keyframes lockbar-wait { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .lockbar.waiting .stones.fill { animation: none; } }
@keyframes lockbar-in { from { opacity: 0; transform: translateY(12px); } }
.lockbar-full { width: min(560px, calc(100vw - 32px)); padding: 16px 18px 14px; background: var(--toast); color: var(--tower-ink); border: 1px solid var(--tower-line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.wall { position: relative; height: 36px; margin-bottom: 12px; }
.stones { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 3px; }
.stone { flex: 1; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.stone:nth-child(odd) { height: 16px; }
.stones.fill { clip-path: inset(0 calc(100% - var(--share)) 0 0); transition: clip-path 1.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.stones.fill .stone { background: var(--tower-brass); }
.rider { position: absolute; top: 0; left: var(--share); width: 18px; height: 18px; margin-left: -9px; color: var(--tower-brass); transition: left 1.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 300ms; }
.rider svg { width: 18px; height: 18px; display: block; }
.lockbar[data-state="done"] .rider, .lockbar[data-state="done"] .chip-rook { color: var(--tower-ok); }
.lockbar[data-state="failed"] .stones.fill .stone { background: var(--tower-bad); }
.lockbar[data-state="failed"] .rider { color: var(--tower-bad); transform: rotate(-90deg); }
.lockbar-line { display: flex; align-items: center; gap: 12px; }
.lockbar-title { font-weight: 600; flex: 1; min-width: 0; }
.lockbar-eta { font: 12px "Plex Mono", ui-monospace, monospace; color: var(--tower-ink-2); white-space: nowrap; }
.lockbar-btn { display: grid; place-items: center; width: 24px; height: 24px; margin-inline-end: -4px; border: 0; border-radius: 4px; background: none; color: var(--tower-ink-2); cursor: pointer; }
.lockbar-btn:hover { background: var(--tower-line); color: var(--tower-ink); }
.lockbar-btn svg { width: 14px; height: 14px; }
.lockbar-btn[hidden] { display: none; }
.lockbar-detail { margin-top: 3px; font-size: 13px; color: var(--tower-ink-2); }
.lockbar-chip { display: none; align-items: center; gap: 8px; height: 36px; padding-block: 0; padding-inline: 10px 14px; background: var(--toast); color: var(--tower-ink); border: 1px solid var(--tower-line); border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font: 500 13px "Plex Sans", system-ui, sans-serif; cursor: pointer; }
.lockbar-chip:hover { border-color: rgba(255, 255, 255, 0.16); }
.chip-rook { display: grid; color: var(--tower-brass); }
.chip-rook svg { width: 15px; height: 15px; }
.chip-text { font-variant-numeric: tabular-nums; }
.lockbar.min { justify-content: flex-end; padding-inline-end: 24px; }
.lockbar.min .lockbar-full { display: none; }
.lockbar.min .lockbar-chip { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .lockbar { animation: none; } .stones.fill, .rider { transition: none; } }
@media (max-width: 820px) { .lockbar { bottom: 16px; } .lockbar.min { padding-inline-end: 16px; } }

/* Rook HQ: the staff panel. The brass "HQ" tag is the only thing that sets it apart. */
.hq-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-inline-start: 2px; border: 1px solid color-mix(in srgb, var(--tower-brass) 60%, transparent); border-radius: 4px; color: var(--tower-brass); font: 600 11px "Plex Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.hq-env { font: 12px "Plex Mono", ui-monospace, monospace; color: var(--tower-ink-2); }
.fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--slate-3); }
.fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); animation: fresh 2.4s ease-in-out infinite; }
@keyframes fresh { 50% { opacity: 0.35; } }
.range { display: inline-flex; padding: 2px; border: 1px solid var(--mortar); border-radius: var(--r-sm); }
.range a { padding: 3px 10px; border-radius: 4px; text-decoration: none; color: var(--slate-3); font: 500 12px "Plex Mono", ui-monospace, monospace; }
.range a:hover { color: var(--slate); }
.range a[aria-current="true"] { background: var(--stone-raised); color: var(--slate); }
.search input { width: 220px; font: inherit; color: var(--slate); background: var(--stone-sunk); border: 1px solid var(--mortar); border-radius: var(--r-sm); padding: 6px 10px; min-height: 32px; }
.search input:focus-visible { outline: 2px solid var(--brass); }
.kpis[data-cols="1"] { --cols: 1; }
.kpis[data-cols="2"] { --cols: 2; }
.kpis[data-cols="3"] { --cols: 3; }
.kpis[data-cols="5"] { --cols: 5; }
.kpis { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); overflow: hidden; }
/* Each cell draws its right and bottom line and reaches 1px past them, so
   the panel clips the outer ones: one border round the edge at any column count. */
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; margin: 0 -1px -1px 0; text-decoration: none; box-shadow: inset -1px 0 var(--mortar-soft), inset 0 -1px var(--mortar-soft), var(--kpi-mark, 0 0 transparent); }
[dir="rtl"] .kpi { margin: 0 0 -1px -1px; box-shadow: inset 1px 0 var(--mortar-soft), inset 0 -1px var(--mortar-soft), var(--kpi-mark, 0 0 transparent); }
.kpi-note { margin: 8px 0 16px; font-size: 12px; }
/* Members (Rook Plus) */
.member-search { position: relative; margin-bottom: 16px; max-width: 560px; }
.member-search .i { position: absolute; inset-inline-start: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--slate-3); pointer-events: none; }
.member-search input { width: 100%; height: 40px; padding-block: 0; padding-inline: 36px 12px; border: 1px solid var(--mortar); border-radius: var(--r-sm); background: var(--stone-sunk); color: var(--slate); font: inherit; }
.member-search input:focus { border-color: var(--brass); outline: none; }
.member-filters { margin: -4px 0 16px; flex-wrap: wrap; }
.member-filters a { font-family: inherit; font-size: 13px; font-weight: 500; padding: 4px 12px; }
.member-list { list-style: none; margin: 0; padding: 0; }
.member-row { color: inherit; text-decoration: none; grid-template-columns: 32px minmax(0, 1fr) auto 16px; }
.member-row .entry-act .i { width: 14px; height: 14px; color: var(--slate-4); }
.member-row:hover .entry-act .i { color: var(--slate-2); }
[dir="rtl"] .member-row .entry-act .i { transform: scaleX(-1); }
.member-pitch .panel-body { padding: 28px 24px; max-width: 560px; }
.member-pitch h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.member-pitch p { margin: 0 0 18px; color: var(--slate-2); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--slate-3); text-decoration: none; font-size: 13px; }
.back-link .i { width: 14px; height: 14px; transform: rotate(180deg); }
[dir="rtl"] .back-link .i { transform: rotate(180deg) scaleX(-1); }
.back-link:hover { color: var(--slate); }
.member-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.avatar.xl { width: 64px; height: 64px; }
.member-who { flex: 1; min-width: 0; }
.member-who h1 { margin: 0 0 2px; font-size: 22px; overflow-wrap: anywhere; }
.member-who .meta { margin: 0; font-size: 13px; color: var(--slate-3); }
.member-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--mortar); border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--slate-2); }
.tag.bad { border-color: transparent; background: var(--brick-wash); color: var(--brick); }
.tag.warn { border-color: transparent; background: var(--rust-wash); color: var(--rust); }
.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.member-grid .panel + .panel { margin-top: 0; }
.member-side { display: grid; gap: 16px; }
.member-side > .btn { justify-self: start; }
.timeline { list-style: none; margin: 0; padding-block: 8px 12px; padding-inline: 34px 20px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 20px; top: 18px; bottom: 18px; width: 2px; background: var(--brass); opacity: 0.35; }
.timeline > li { position: relative; padding: 10px 0; border-top: 1px solid var(--mortar-soft); }
.timeline > li:first-child { border-top: 0; }
.timeline > li::before { content: ""; position: absolute; inset-inline-start: -17px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-reasons { margin: 6px 0 0; padding-inline-start: 18px; color: var(--slate-2); font-size: 13px; }
.tl-note { margin: 6px 0 0; color: var(--slate-3); font-size: 13px; }
.linked-accounts { list-style: none; margin: 0; padding: 4px 0; }
.linked-accounts a { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; padding: 8px 20px; color: inherit; text-decoration: none; }
.linked-accounts a:hover { background: var(--mortar-soft); }
.linked-accounts .avatar { width: 24px; height: 24px; grid-row: span 2; }
.la-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-why { font-size: 12px; color: var(--slate-3); }
.member-summary { margin: -8px 0 16px; color: var(--slate-2); font-size: 14px; }
.member-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 16px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); }
.member-facts > div { padding: 10px 16px; border-inline-end: 1px solid var(--mortar-soft); min-width: 0; }
.member-facts > div:last-child { border-inline-end: 0; }
.member-facts dt { font-size: 12px; color: var(--slate-3); }
.member-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }
.fact-sub { color: var(--slate-3); font-weight: 400; }
.member-head + .member-summary { margin-top: -6px; }
.notice + .member-grid, .member-facts + .member-grid { margin-top: 0; }
.member-facts ~ .notice { margin-bottom: 12px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 16px; }
.role-chips.sm { padding: 6px 0 0; gap: 4px; grid-column: 2 / -1; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--mortar); border-radius: 999px; background: var(--stone-sunk); font-size: 12px; color: var(--slate-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip > span:not(.sr-only) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip > .role-dot, .role-chip > .i { flex: none; }
.role-chips.sm .role-chip { height: 20px; padding: 0 6px; font-size: 11px; }
.role-chip.more { color: var(--slate-3); }
.role-dot { width: 8px; height: 8px; flex: none; }
.role-dot.plain circle { fill: var(--slate-4); }
.other-servers { list-style: none; margin: 0; padding: 4px 0; }
.os-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 10px 20px; color: inherit; text-decoration: none; }
a.os-row:hover { background: var(--mortar-soft); }
.os-row .server-icon { width: 24px; height: 24px; grid-row: span 2; align-self: start; }
.os-name { display: flex; align-items: center; gap: 6px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-state { justify-self: end; }
.os-detail { grid-column: 2 / -1; font-size: 12px; color: var(--slate-3); }
.panel-note { margin: 0; padding: 14px 20px; color: var(--slate-3); }
@media (max-width: 820px) { .member-grid { grid-template-columns: 1fr; } .member-row .entry-act { display: none; } .member-facts > div { flex: 1 1 50%; border-inline-end: 0; border-bottom: 1px solid var(--mortar-soft); } }
.linked-intro { margin: 14px 0; color: var(--slate-2); max-width: 640px; }
.scope { border-top: 1px solid var(--mortar-soft); }
.scope:first-of-type { border-top: 0; }
.scope-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 20px 4px; font-size: 14px; font-weight: 600; color: var(--slate); }
.scope-h .i { width: 16px; height: 16px; color: var(--slate-3); }
.scope-status { padding: 0 0 12px; margin: -4px 0 0; }
.scope-lede { max-width: 640px; margin: 0 0 4px; }
.scope-h + .panel-body .scope-lede { margin-top: -4px; }
.link-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 4px 0; }
.link-empty p { flex: 1 1 320px; margin: 0; color: var(--slate-2); max-width: 600px; }
.link-lede { margin: 16px 0 12px; color: var(--slate-2); }
#linked .panel-head .btn, .scope-h .btn { margin-inline-start: 12px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.link-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-block: 0; padding-inline: 6px 12px; border: 1px solid var(--mortar); border-radius: 999px; background: var(--stone-sunk); font-size: 13px; }
.link-chip .meta { font-size: 12px; }
dialog.link-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; }
.link-dialog h2 { margin: 0 0 6px; font-size: 17px; }
.link-dialog > form > p { margin: 0 0 14px; color: var(--slate-2); }
.link-pick { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.link-pick label { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer; }
.link-pick label:hover { background: var(--mortar-soft); }
.link-pick input { accent-color: var(--brass); width: 16px; height: 16px; margin: 0; }
.link-pick input:disabled + .server-icon, .link-pick input:disabled ~ span { opacity: 0.45; }
.link-pick .meta { margin-inline-start: auto; font-size: 12px; }
.link-count { margin: 0 0 16px; font-size: 12px; }
.link-appeals { display: grid; gap: 6px; margin-bottom: 14px; }
.link-appeals > span:first-child { font-weight: 500; }
.link-dialog .row-help a { color: var(--slate); }

.kpi-group { margin: 4px 0 8px; font-size: 13px; font-weight: 500; color: var(--slate-3); }
#kpis-across { margin-bottom: 16px; }
.kpi:hover { background: var(--mortar-soft); }
.kpi[aria-current="true"] { --kpi-mark: inset 0 -3px var(--brass); }
.kpi-label { font-size: 13px; color: var(--slate-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 24px; }
.delta { font-size: 12px; color: var(--slate-4); white-space: nowrap; }
.delta.good { color: var(--moss); }
.delta.bad { color: var(--brick); }
.spark { width: 64px; height: 22px; flex: none; overflow: visible; }
.spark polyline { fill: none; stroke: var(--slate-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.kpi[aria-current="true"] .spark polyline { stroke: var(--brass); }
.chart-head { flex-wrap: wrap; }
.chart-head .meta { flex: 1; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-3); }
.legend .key { width: 10px; height: 10px; border-radius: 2px; margin-inline-start: 8px; }
.legend .key.now { background: var(--brass); }
.legend .key.before { height: 0; border-top: 2px dotted var(--slate-3); border-radius: 0; }
.hq-chart { margin: 0; padding: 12px 20px 16px; }
.samples { list-style: none; margin: 0; padding: 4px 20px 8px; max-height: 640px; overflow-y: auto; }
.samples li { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--mortar-soft); }
.samples li:first-child { border-top: 0; }
.sample-q { color: var(--slate); font-weight: 500; white-space: pre-wrap; }
.sample-a { color: var(--slate-2); white-space: pre-wrap; padding: 8px 10px; border-radius: 5px; background: var(--stone-sunk); }
.sample-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.plan-cell form { display: inline; margin-inline-start: 10px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--mortar-soft); }
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }
.rows-more > summary { padding: 12px 0; border-top: 1px solid var(--mortar-soft); }
.plan-cell .link, .rep-form .link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--brass); cursor: pointer; }
.plan-cell .meta { display: block; font-size: 13px; }
.rep-form { display: grid; justify-items: end; gap: 6px; }
.rep-form select { min-width: 160px; }
.plan-cell .link:hover { text-decoration: underline; }
.hq-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hq-chart .grid { stroke: var(--mortar-soft); }
.hq-chart .axis { fill: var(--slate-4); font: 11px "Plex Mono", ui-monospace, monospace; }
.hq-chart .bar { fill: var(--brass); opacity: 0.6; }
.hq-chart .day.today .bar { fill: transparent; stroke: var(--brass); stroke-dasharray: 3 2; }
.hq-chart .hit { fill: transparent; }
.hq-chart .day:hover .hit { fill: var(--mortar-soft); }
.hq-chart .day:hover .bar { opacity: 1; }
.hq-chart .prev { fill: none; stroke: var(--slate-3); stroke-width: 1.5; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.hq-chart .level { fill: none; stroke: var(--brass); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hq-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.hq-split .panel + .panel { margin-top: 0; }
.hq-split + .panel { margin-top: 16px; }
#message-owner { margin-top: 16px; }
.ask-top { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-inline-end: 8px; padding: 0 12px 0 10px; border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--mortar)); border-radius: var(--r-sm); background: color-mix(in srgb, var(--brass) 7%, var(--stone-raised)); color: var(--slate); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 140ms ease-out, background 140ms ease-out; }
.ask-top:hover { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 12%, var(--stone-raised)); }
.ask-top svg { width: 16px; height: 16px; color: var(--brass); }
body:has(dialog.assistant[open]) .ask-top { border-color: var(--brass); }
.ask-fab { display: none; }
dialog.assistant { position: fixed; z-index: 60; inset-block: 64px auto; inset-inline: auto 24px; margin: 0; width: 420px; height: min(720px, calc(100dvh - 88px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--mortar-firm); border-radius: 14px; background: var(--stone-raised); color: var(--slate); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); display: none; flex-direction: column; overflow: hidden; }
dialog.assistant[open] { display: flex; animation: assistant-in 180ms ease-out; }
@keyframes assistant-in { from { transform: translateY(-8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.assistant::backdrop { background: rgba(8, 9, 11, 0.45); }
.assistant-server { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-inline-start: auto; padding: 3px 9px 3px 4px; border: 1px solid var(--mortar); border-radius: 999px; background: var(--stone-sunk); color: var(--slate-2); font-size: 12px; font-weight: 500; }
.assistant-server:not(:has(.server-icon)) { padding-inline: 10px; }
.assistant-server > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.assistant-server .server-icon { width: 18px; height: 18px; font-size: 8px; }
.proposal-server { display: flex; align-items: center; gap: 6px; color: var(--slate-3); font-size: 12px; font-weight: 500; }
.proposal-server .ci, .proposal-server svg { width: 13px; height: 13px; display: inline-flex; }
@media (max-width: 640px) {
  .ask-top { display: none; }
  .ask-fab { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid color-mix(in srgb, var(--brass) 45%, var(--mortar-firm)); border-radius: 50%; background: var(--stone-raised); cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
  .ask-fab svg { width: 22px; height: 22px; color: var(--brass); }
  body:has(dialog.assistant[open]) .ask-fab { opacity: 0; pointer-events: none; }
  body:has(.ask-fab) .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.lockbar) .ask-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
  dialog.assistant { inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
@keyframes assistant-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.assistant-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 8px 20px; }
.assistant-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.assistant-head h2 svg { width: 18px; height: 18px; color: var(--brass); }
.assistant-lede { margin: 0; padding: 0 20px 14px; color: var(--slate-2); font-size: 13px; line-height: 1.5; border-bottom: 1px solid var(--mortar); }
.assistant-chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.assistant-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.starter { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-raised); color: var(--slate); font: inherit; font-size: 13px; text-align: start; cursor: pointer; transition: border-color 120ms ease-out, background 120ms ease-out; }
.starter:hover { border-color: color-mix(in srgb, var(--brass) 50%, var(--mortar)); background: var(--brass-wash); }
.starter > svg, .starter > .ci { width: 15px; height: 15px; flex: none; display: inline-flex; color: var(--brass); }
.starter > .ci svg { width: 15px; height: 15px; }
.starter:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.bubble { max-width: 88%; padding: 9px 12px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.formatted { white-space: normal; }
.named { white-space: nowrap; font-weight: 600; color: var(--slate); }
/* Long names wrap inside their line instead of pushing past it. */
.named, .mention, .role-mention { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.beacon-servers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; }
.chips-group { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mention { padding: 0 4px; border: 1px solid transparent; border-radius: 4px; background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--slate); font-weight: 500; white-space: nowrap; }
.named .server-icon, .named .ci { display: inline-grid; width: 16px; height: 16px; margin-inline-end: 5px; vertical-align: middle; position: relative; top: -1px; }
.named .server-icon { border-radius: 4px; background: var(--mortar-firm); font-size: 7px; }
.named .ci { color: var(--brass); }
.named svg { width: 14px; height: 14px; }
.bubble.formatted p { margin: 0; }
.bubble.formatted p + p, .bubble.formatted p + ul, .bubble.formatted p + ol, .bubble.formatted ul + p, .bubble.formatted ol + p { margin-top: 8px; }
.bubble.formatted ul, .bubble.formatted ol { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 5px; }
.bubble.formatted strong { color: var(--slate); font-weight: 600; }
.bubble.formatted code { padding: 1px 5px; border-radius: 4px; background: var(--mortar-soft); font: 500 12.5px "Plex Mono", ui-monospace, monospace; }
.bubble.me { align-self: flex-end; background: var(--mortar-firm); }
.bubble.rook { align-self: flex-start; background: var(--stone-sunk); border: 1px solid var(--mortar); }
.action-get_plus .btn { justify-self: start; }
.assistant-off { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding: 12px 14px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); color: var(--slate-2); font-size: 14px; }
.assistant-feedback { margin: 4px 0 12px; padding-top: 14px; border-top: 1px solid var(--mortar); color: var(--slate-2); font-size: 13px; }
.assistant-feedback p { margin: 0 0 10px; }
.assistant-feedback-row { display: flex; gap: 8px; }
.assistant-feedback-row .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; font-size: 13px; }
.assistant-feedback-row .ci, .assistant-feedback-row svg { width: 15px; height: 15px; display: inline-flex; }
.assistant-error { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 12px; max-width: 88%; border: 1px solid color-mix(in srgb, var(--brick) 35%, var(--mortar)); border-radius: var(--r-md); background: color-mix(in srgb, var(--brick) 8%, var(--stone-sunk)); color: var(--slate-2); font-size: 14px; line-height: 1.5; }
.assistant-error .ci, .assistant-error svg { width: 16px; height: 16px; margin-top: 2px; flex: none; display: inline-flex; color: var(--brick); }
.assistant-off .ci, .assistant-off svg { width: 16px; height: 16px; color: var(--slate-3); flex: none; display: inline-flex; }
.proposal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bubble.thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--slate-3); }
.bubble.thinking .rook-load { width: 18px; height: 18px; color: var(--brass); }
.bubble.thinking .dots { background: linear-gradient(90deg, var(--slate-3) 0%, var(--slate) 50%, var(--slate-3) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bubble.me { animation: rise 160ms ease-out; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.proposal { align-self: stretch; display: grid; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); border-radius: var(--r-md); background: color-mix(in srgb, var(--brass) 5%, var(--stone-sunk)); font-size: 14px; animation: rise 200ms ease-out; transition: border-color 200ms ease-out, opacity 200ms ease-out; }
.proposal.applied { border-color: color-mix(in srgb, var(--moss) 55%, transparent); }
.proposal.skipped { opacity: 0.55; }
.proposal-title { font-size: 14px; }
.change { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--stone-raised); border: 1px solid var(--mortar); opacity: 0; animation: rise 220ms ease-out forwards; animation-delay: var(--delay, 0ms); }
.proposal.plain { padding: 0; border: 0; background: none; }
.support-card { gap: 10px; }
.support-card .plus-card-head svg { color: #5865f2; }
.support-card-line { margin: 0; color: var(--slate-2); font-size: 13px; line-height: 1.45; }
.support-card .btn { justify-self: start; }
.rep-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--brass) 40%, var(--mortar)); border-radius: var(--r-md); background: var(--brass-wash); font-size: 13px; color: var(--slate-2); }
.rep-banner .i { width: 16px; height: 16px; color: var(--brass); flex: none; }
.rep-banner a { margin-inline-start: auto; color: var(--brass); white-space: nowrap; }
/* Ban Beacon: the banner on servers not in it yet, and its emblem. */
.bb-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--mortar)); border-radius: var(--r-md); background: var(--stone-raised); overflow: hidden; }
.bb-emblem { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--mortar); background: var(--stone-sunk); }
.bb-mark { width: 64px; height: 64px; overflow: visible; }
.bb-orbit { fill: none; stroke: var(--mortar-firm); stroke-width: 1; stroke-dasharray: 2 3; }
.bb-link { stroke: color-mix(in srgb, var(--brass) 22%, transparent); stroke-width: 1; }
.bb-ring { fill: none; stroke: var(--brass); stroke-width: 1.2; opacity: 0; transform-origin: 32px 32px; }
.bb-node { fill: var(--stone-raised); stroke: var(--slate-3); stroke-width: 1.2; }
.bb-core { fill: var(--brass); }
.bb-text h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--slate); }
.bb-text p { margin: 0; font-size: 13px; color: var(--slate-2); max-width: 620px; }
.bb-actions { display: flex; align-items: center; gap: 6px; }
.bb-done { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.bb-done[hidden] { display: none; }
.bb-done p { margin: 0; flex: 1; font-size: 13px; color: var(--slate); }
.bb-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--moss-wash); color: var(--moss); flex: none; }
.bb-check .i { width: 16px; height: 16px; }
.bb-banner.on { border-color: color-mix(in srgb, var(--moss) 40%, var(--mortar)); }
.bb-banner.on > .bb-emblem, .bb-banner.on > .bb-text, .bb-banner.on > .bb-actions { display: none; }
.bb-banner.leaving { opacity: 0; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .bb-ring { animation: bb-ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
  .bb-r2 { animation-delay: 1.2s; }
  .bb-r3 { animation-delay: 2.4s; }
  .bb-node { animation: bb-node 3.6s ease-out infinite; }
  .bb-n1 { animation-delay: 0.6s; } .bb-n2 { animation-delay: 1.2s; } .bb-n3 { animation-delay: 1.8s; } .bb-n4 { animation-delay: 2.4s; } .bb-n5 { animation-delay: 3s; }
  .bb-core { animation: bb-core 3.6s ease-in-out infinite; }
}
@keyframes bb-ring { 0% { opacity: 0.9; transform: scale(0.6); } 70% { opacity: 0; transform: scale(3); } 100% { opacity: 0; transform: scale(3); } }
@keyframes bb-node { 0%, 60%, 100% { fill: var(--stone-raised); stroke: var(--slate-3); } 12% { fill: var(--brass); stroke: var(--brass); } }
@keyframes bb-core { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
@media (max-width: 640px) {
  .bb-banner { grid-template-columns: auto 1fr; gap: 12px 14px; }
  .bb-emblem { width: 60px; height: 60px; }
  .bb-mark { width: 52px; height: 52px; }
  .bb-actions { grid-column: 1 / -1; }
  .bb-actions .btn { flex: 1; justify-content: center; }
  .bb-done { flex-wrap: wrap; }
}
.rep-callout, .rep-callout:hover { text-decoration: none; }
.rep-callout:hover { border-color: var(--brass); }
.rep-callout:hover > .i:last-child { color: var(--brass); }
.rep-callout { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; color: var(--slate); border-color: color-mix(in srgb, var(--brass) 40%, var(--mortar)); }
.rep-callout > span { display: grid; gap: 2px; }
.rep-callout > span > span { color: var(--slate-3); font-size: 13px; }
.rep-callout > .i:first-child { width: 20px; height: 20px; color: var(--brass); }
.rep-callout > .i:last-child { margin-inline-start: auto; color: var(--slate-3); }
.rep-access .panel-body { padding: 18px 20px 20px; }
.rep-access .panel-body p { margin: 0 0 16px; color: var(--slate-2); line-height: 1.55; max-width: 62ch; }
.rep-servers { display: grid; gap: 16px; }
.rep-owner-note { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--mortar); border-radius: var(--r-md); color: var(--slate-2); font-size: 14px; }
.rep-owner-note svg { width: 16px; height: 16px; flex: none; color: var(--brass); }
.free-plus { margin-bottom: 24px; border-color: color-mix(in srgb, var(--brass) 40%, var(--mortar)); }
.free-plus .panel-head h2 svg { width: 18px; height: 18px; }
.free-plus .panel-body { padding: 16px 20px 20px; }
.free-plus-lede { margin: 0 0 14px; color: var(--slate-2); line-height: 1.55; max-width: 66ch; }
.free-plus .bad-text { margin: 0 0 12px; color: var(--brick); font-size: 13px; }
.free-plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.free-plus-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); }
.free-plus-list .name { font-weight: 500; margin-inline-end: auto; }
.free-plus-list form { margin: 0; }
.rep-server-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--mortar); }
.rep-server-title { display: grid; gap: 2px; min-width: 0; }
.rep-server-title h2 { margin: 0; font-size: 17px; }
.rep-server-head .pill { margin-inline-start: auto; }
.pill.plus { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 35%, transparent); }
.pill.plus svg { width: 13px; height: 13px; }
.rep-server-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 16px 20px; }
.rep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rep-steps li { display: flex; gap: 8px; align-items: flex-start; color: var(--slate-2); font-size: 14px; }
.rep-steps li .i { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--slate-3); }
.rep-steps li.done .i { color: var(--moss); }
.rep-steps li.problem .i { color: var(--rust); }
.rep-problem { display: block; color: var(--slate-3); font-size: 13px; }
.rep-week { display: flex; gap: 22px; align-items: flex-end; margin: 0; }
.rep-week div { display: grid; gap: 2px; }
.rep-week dt { color: var(--slate-3); font-size: 12px; }
.rep-week dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-week .meta { align-self: end; font-size: 12px; }
.rep-server-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--mortar); }
.rep-server-foot .meta { display: inline-flex; align-items: center; gap: 6px; }
.rep-server-foot .meta .i { width: 14px; height: 14px; }
.rep-server-foot .push { margin-inline-start: auto; }
@media (max-width: 720px) { .rep-server-body { grid-template-columns: 1fr; } .rep-week { flex-wrap: wrap; } }
.rep-mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-color: color-mix(in srgb, var(--brass) 35%, var(--mortar)); }
.rep-mini { flex-wrap: wrap; }
.rep-mini-who { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--slate); text-decoration: none; }
.rep-mini-who .rep-label { white-space: nowrap; }
.rep-mini-who:hover strong { text-decoration: underline; }
.rep-mini-who > span { display: grid; min-width: 0; }
.rep-mini-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-avatar.sm { width: 40px; height: 40px; }
.rep-mini .btn { flex: 1 1 100%; justify-content: center; }
.rep-mini .btn svg { width: 15px; height: 15px; }
.rep-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.rep-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--stone-sunk); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brass) 45%, transparent); }
.rep-label { color: var(--brass); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.rep-name { margin: 2px 0 8px; font-size: 22px; }
.rep-lede { margin: 0; color: var(--slate-2); line-height: 1.55; }
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.rep-actions .btn svg { width: 16px; height: 16px; }
.rep-actions .link-btn { align-self: center; }
@media (max-width: 640px) { .rep-card { flex-direction: column; padding: 20px; } }
.plus-card { gap: 12px; border-color: color-mix(in srgb, var(--brass) 35%, var(--mortar)); }
.plus-card-head { display: flex; align-items: center; gap: 8px; }
.plus-card-head .ci, .plus-card-head svg { width: 18px; height: 18px; display: inline-flex; color: var(--brass); }
.plus-card-head strong { font-size: 15px; }
.plus-card-price { margin-inline-start: auto; color: var(--slate-2); font-size: 13px; }
.plus-card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.plus-card-list li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--slate); }
.plus-card-list li .ci, .plus-card-list li svg { width: 14px; height: 14px; margin-top: 2px; flex: none; display: inline-flex; color: var(--moss); }
.plus-card .btn { justify-self: start; }
.change-head { display: flex; align-items: center; gap: 8px; color: var(--slate-2); font-size: 13px; }
.change-head .ci, .change-head .ci svg { width: 15px; height: 15px; color: var(--brass); display: inline-flex; }
.change-line { display: flex; align-items: center; gap: 12px; }
.change-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.change-flow .to { color: var(--slate-3); }
[dir="rtl"] .change-flow .to { transform: scaleX(-1); }
.change-flow .was { color: var(--slate-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--slate-3) 60%, transparent); }
.change-flow .now { color: var(--slate); font-weight: 500; animation: pop 320ms ease-out both; animation-delay: calc(var(--delay, 0ms) + 260ms); }
@keyframes pop { 0% { transform: scale(0.9); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: none; } }
.chip-role, .chip-channel, .chip-choice { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--mortar); background: var(--stone-sunk); font-size: 13px; }
.chip, .chip-role, .chip-channel, .chip-choice, .link-chip { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.link-chip { height: auto; min-height: 34px; }
.chip-role.now { border-color: color-mix(in srgb, var(--brass) 55%, transparent); color: var(--brass); }
.chip-channel.now, .chip-choice.now { border-color: var(--mortar-firm); }
.change-switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--mortar-firm); transition: background 260ms ease-out; }
.change-switch .knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--slate-2); transition: transform 260ms cubic-bezier(.3,.7,.2,1), background 260ms ease-out; }
.change-switch.on { background: var(--brass); }
.change-switch.on .knob { transform: translateX(14px); background: var(--stone); }
[dir="rtl"] .change-switch.on .knob { transform: translateX(-14px); }
.mini-panel { display: grid; gap: 8px; padding: 10px 12px; border-radius: 6px; background: #2b2d31; border-inline-start: 3px solid #5865f2; animation: rise 260ms ease-out both; animation-delay: calc(var(--delay, 0ms) + 200ms); }
.mini-panel strong { font-size: 13px; color: #f2f3f5; }
.mini-lines { display: block; height: 6px; width: 70%; border-radius: 3px; background: #4e5058; }
.mini-buttons { display: flex; gap: 6px; }
.mini-verify, .mini-how { height: 18px; border-radius: 3px; }
.mini-verify { width: 58px; background: #248046; }
.mini-how { width: 74px; background: #4e5058; }
.mini-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; height: 14px; }
.mini-wall span { border-radius: 2px; background: var(--mortar-firm); animation: fill 240ms ease-out forwards; }
.mini-wall span:nth-child(1) { animation-delay: 300ms; } .mini-wall span:nth-child(2) { animation-delay: 380ms; } .mini-wall span:nth-child(3) { animation-delay: 460ms; } .mini-wall span:nth-child(4) { animation-delay: 540ms; } .mini-wall span:nth-child(5) { animation-delay: 620ms; } .mini-wall span:nth-child(6) { animation-delay: 700ms; } .mini-wall span:nth-child(7) { animation-delay: 780ms; } .mini-wall span:nth-child(8) { animation-delay: 860ms; }
@keyframes fill { to { background: var(--brass); } }
.proposal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.proposal-done { color: var(--slate-3); font-size: 13px; }
.proposal-done.ok { color: var(--moss); }
@media (prefers-reduced-motion: reduce) { .change, .proposal, .bubble.me, .mini-panel, .change-flow .now { animation: none; opacity: 1; } .mini-wall span { animation: none; background: var(--brass); } .bubble.thinking .dots { animation: none; color: var(--slate-3); } }
.assistant-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 20px 8px; border-top: 1px solid var(--mortar); }
.assistant-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; font-size: 16px; }
.assistant-note { margin: 0; padding: 0 20px calc(12px + env(safe-area-inset-bottom)); color: var(--slate-3); font-size: 12px; }
.owner-message { display: grid; gap: 12px; padding: 16px 20px 20px; }
.owner-message p { margin: 0; }
.owner-message textarea { width: 100%; min-height: 96px; resize: vertical; }
.owner-message-foot { display: flex; justify-content: flex-end; }
.owner-id { display: block; font-size: 12px; }
.ranked, .feed, .kv { list-style: none; margin: 0; padding: 4px 0; }
.ranked a, .ranked .static { display: flex; align-items: center; gap: 12px; padding: 9px 20px; text-decoration: none; }
.ranked a:hover { background: var(--mortar-soft); }
.ranked .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 20px; border-top: 1px solid var(--mortar-soft); color: var(--slate-2); }
.feed li:first-child { border-top: 0; }
.feed li > .i { color: var(--slate-3); }
.feed li > span { flex: 1; min-width: 0; }
.feed a { color: var(--slate-2); text-decoration: none; }
.feed li.ev-plus > .i { color: var(--moss); }
.feed li.ev-close > .i, .feed li.ev-blocked > .i { color: var(--brick); }
.feed li.ev-warn > .i { color: var(--rust); }
.feed a:hover { text-decoration: underline; }
.feed time { font-size: 12px; color: var(--slate-4); }
.feed li > span .mono { overflow-wrap: anywhere; }
.feed time { flex: none; }
.feed li > .who { flex: none; width: 140px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; }
.day-head { margin: 0; padding: 14px 20px 6px; font-size: 12px; font-weight: 500; color: var(--slate-3); border-top: 1px solid var(--mortar-soft); }
.day-head:first-child { border-top: 0; }
.kv li { display: flex; justify-content: space-between; padding: 7px 20px; border-top: 1px solid var(--mortar-soft); font-size: 13px; }
.kv li:first-child { border-top: 0; }
/* HQ Usage summary: one compact strip, links jump to their panel. */
.sum { margin: 0 0 16px; padding: 14px 18px 16px; border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--mortar)); border-radius: var(--r-md); background: var(--stone-raised); }
.sum-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sum-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--brass-wash); color: var(--brass); }
.sum-mark svg { width: 14px; height: 14px; }
.sum-name { font-size: 13.5px; font-weight: 600; color: var(--slate); }
.sum-when { font-size: 12px; white-space: nowrap; }
.sum-verb { color: var(--brass); }
.sum-redo { margin: 0 0 0 auto; display: inline-flex; }
.sum-redo .icon-btn .i { width: 15px; height: 15px; }
.sum-redo + .sum-ask { margin-inline-start: 4px; }
.sum-ask { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
.sum-ask .i { width: 14px; height: 14px; }
/* Links to panels read as text: a brass dotted underline, a small icon in the summary. */
.sum-link { display: inline; color: var(--slate); font-weight: 500; text-decoration: underline dotted color-mix(in srgb, var(--brass) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 120ms; }
.sum-link .i { display: inline-block; width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: -2px; color: var(--brass); }
.sum-link:hover { color: var(--brass); text-decoration-style: solid; }
.sum-text { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--slate); }
.sum-advice { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 9px 12px; border-radius: var(--r-sm, 6px); background: var(--brass-wash); color: var(--slate); font-size: 14px; line-height: 1.6; }
.sum-advice > .i { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--brass); }
/* Writing: the dashboard's rook builds itself beside three quiet placeholder lines. */
.sum-writing { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.sum-castle { width: 26px; height: 26px; color: var(--brass); }
.sum-lines i { display: block; height: 8px; border-radius: 4px; background: var(--mortar-soft); animation: sum-fade 1.6s ease-in-out infinite alternate; }
.sum-lines i:nth-child(1) { width: 92%; } .sum-lines i:nth-child(2) { width: 78%; animation-delay: .2s; } .sum-lines i:nth-child(3) { width: 55%; animation-delay: .4s; }
@keyframes sum-fade { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sum-lines i { animation: none; } }
.sum-lines { display: grid; gap: 9px; flex: 1; min-width: 0; }

.sum-prev { margin-top: 12px; border-top: 1px solid var(--mortar-soft); padding-top: 10px; }
.sum-prev > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--slate-2); font-size: 13px; list-style: none; }
.sum-prev > summary::-webkit-details-marker { display: none; }
.sum-prev > summary .i { width: 14px; height: 14px; color: var(--slate-3); }
.sum-prev > summary:hover { color: var(--slate); }
.sum-prev[open] > summary { color: var(--slate-3); }
.sum-prev .sum-text { color: var(--slate-2); }
@media (max-width: 640px) { .sum-ask { padding-inline: 8px; } .sum-when { display: none; } }
/* Needs attention: the biggest servers first, each with what's wrong and a way to act. */
.att-list { list-style: none; margin: 0; padding: 4px 20px 8px; }
.att-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 84px minmax(0, 1.6fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--mortar-soft); }
.att-row:first-child { border-top: 0; }
.att-server { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--slate); text-decoration: none; font-weight: 500; }
.att-server span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-server:hover span { text-decoration: underline; }
.att-server .server-icon { width: 24px; height: 24px; font-size: 10px; flex: none; }
.att-members { display: inline-flex; align-items: center; gap: 6px; color: var(--slate-2); font-size: 13px; }
.att-members .i { width: 13px; height: 13px; color: var(--slate-3); }
.att-why { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.att-why b { font-weight: 600; }
.att-row.warn .att-why b { color: var(--brass); }
.att-row.bad .att-why b { color: var(--brick); }
.att-why .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .att-row { grid-template-columns: minmax(0, 1fr) auto; } .att-members { justify-self: end; } .att-go { grid-column: 1 / -1; justify-self: start; } }
/* What servers that stay have on: two bars per feature, with and without. */
.drv-list { list-style: none; margin: 0; padding: 6px 20px 4px; }
.drv-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 76px 76px 58px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--mortar-soft); font-size: 13px; }
.drv-row:first-child { border-top: 0; }
.drv-row.thin { grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr); }
.drv-name { color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drv-bars { display: grid; gap: 3px; }
.drv-bars .src-bar.off i { background: var(--slate-3); }
.drv-vals { display: flex; flex-direction: column; line-height: 1.3; }
.drv-vals b { font-weight: 500; color: var(--slate); }
.drv-vals .meta { font-size: 11.5px; }
.drv-gap { text-align: end; color: var(--slate-3); }
.drv-gap.up { color: var(--moss, #7fb77e); }
.drv-gap.down { color: var(--brick); }
.drv-thin { font-size: 12.5px; }
.drv-note { margin: 4px 0 14px; font-size: 12px; }
@media (max-width: 640px) { .drv-row { grid-template-columns: minmax(0, 1fr) 70px 70px 50px; } .drv-bars { display: none; } }
.use-sizes tr.none th, .use-sizes tr.none td { color: var(--slate-3); }
.att-more { margin: 0 0 14px; font-size: 12.5px; }
.hq-chat .assistant-chat a.sum-link { cursor: pointer; }
/* A copy button says it worked: the icon gives way to a moss "✓ Copied". */
[data-copy][data-copied] { width: auto; padding-inline: 8px; border-color: color-mix(in srgb, var(--moss) 55%, var(--mortar)); color: var(--moss); }
[data-copy][data-copied] svg { display: none; }
[data-copy][data-copied]::after { content: "✓ " attr(data-copied); color: var(--moss); font: 500 12px/1.4 "Plex Sans", system-ui, sans-serif; white-space: nowrap; animation: copied-in 140ms ease-out; }
@keyframes copied-in { from { opacity: 0; } }
.hq-chat .assistant-head h2 { margin-inline-end: auto; }
/* HQ Usage (ADR 0011). Brass carries quantity: bar height, cell strength. */
.use-head { border-bottom: 0; }
.use-head .meta { line-height: 1.35; }
.use-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 20px 20px 4px; }
.use-funnel li { display: flex; flex-direction: column; gap: 12px; padding: 0 10px; border-inline-start: 1px solid var(--mortar-soft); }
.use-funnel li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.use-col { position: relative; height: 140px; border-radius: 4px; overflow: hidden; }
.use-col i { position: absolute; inset-inline: 0; bottom: 0; display: block; border-radius: 4px 4px 0 0; }
.use-col i.ghost { background: var(--stone-sunk); }
.use-col i.fill { background: var(--brass); }
.use-col i.h0 { height: 0%; } .use-col i.h5 { height: 5%; } .use-col i.h10 { height: 10%; } .use-col i.h15 { height: 15%; } .use-col i.h20 { height: 20%; } .use-col i.h25 { height: 25%; } .use-col i.h30 { height: 30%; } .use-col i.h35 { height: 35%; } .use-col i.h40 { height: 40%; } .use-col i.h45 { height: 45%; } .use-col i.h50 { height: 50%; } .use-col i.h55 { height: 55%; } .use-col i.h60 { height: 60%; } .use-col i.h65 { height: 65%; } .use-col i.h70 { height: 70%; } .use-col i.h75 { height: 75%; } .use-col i.h80 { height: 80%; } .use-col i.h85 { height: 85%; } .use-col i.h90 { height: 90%; } .use-col i.h95 { height: 95%; } .use-col i.h100 { height: 100%; }
.use-funnel li.early .use-col { border: 1px dashed var(--mortar); border-radius: 4px; }
.use-step { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.use-n { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.use-label { font-size: 13px; font-weight: 600; color: var(--slate); }
.use-step .meta { font-size: 12px; }
.use-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 12px 20px 16px; border-top: 1px solid var(--mortar-soft); margin-top: 12px; }
.use-facts div { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.use-facts b { font-weight: 500; color: var(--slate); }
.use-grid-wrap { overflow-x: auto; padding: 4px 20px 8px; }
.use-grid, .use-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.use-grid th, .use-table th { text-align: start; font-weight: 500; color: var(--slate-3); padding: 6px 8px; white-space: nowrap; }
.use-grid th.n, .use-grid td.n, .use-table th.n, .use-table td.n { text-align: end; }
.use-grid tbody th { color: var(--slate); }
.use-grid td { padding: 8px; border-radius: 4px; text-align: center; min-width: 52px; }
.use-grid td.n { color: var(--slate-2); }
.use-grid td.none { background: transparent; }
.use-grid td.l0 { background: color-mix(in srgb, var(--brass) 6%, var(--stone-sunk)); } .use-grid td.l1 { background: color-mix(in srgb, var(--brass) 14%, var(--stone-sunk)); } .use-grid td.l2 { background: color-mix(in srgb, var(--brass) 22%, var(--stone-sunk)); } .use-grid td.l3 { background: color-mix(in srgb, var(--brass) 30%, var(--stone-sunk)); } .use-grid td.l4 { background: color-mix(in srgb, var(--brass) 38%, var(--stone-sunk)); } .use-grid td.l5 { background: color-mix(in srgb, var(--brass) 46%, var(--stone-sunk)); } .use-grid td.l6 { background: color-mix(in srgb, var(--brass) 54%, var(--stone-sunk)); color: var(--tower); font-weight: 600; } .use-grid td.l7 { background: color-mix(in srgb, var(--brass) 62%, var(--stone-sunk)); color: var(--tower); font-weight: 600; } .use-grid td.l8 { background: color-mix(in srgb, var(--brass) 70%, var(--stone-sunk)); color: var(--tower); font-weight: 600; } .use-grid td.l9 { background: color-mix(in srgb, var(--brass) 78%, var(--stone-sunk)); color: var(--tower); font-weight: 600; } .use-grid td.l10 { background: color-mix(in srgb, var(--brass) 86%, var(--stone-sunk)); color: var(--tower); font-weight: 600; }
.use-table { border-spacing: 0; }
.use-table td, .use-table tbody th { padding: 9px 8px; border-top: 1px solid var(--mortar-soft); }
.use-table tbody th { color: var(--slate); font-weight: 400; }
.use-table .src-pct { margin-inline-start: 6px; font-size: 12px; }
.use-people a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--slate); text-decoration: none; }
.use-people a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.use-people a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.use-people .avatar { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.use-people .server-icon { width: 22px; height: 22px; flex: none; font-size: 9px; }
.use-people { table-layout: fixed; }
.use-people .c-who { width: 32%; }
.use-people .c-server { width: 35%; }
.use-people .c-days { width: 14%; }
.use-people .c-seen { width: 19%; }
.use-people td:last-child time { white-space: nowrap; }
.use-people td, .use-people tbody th, .use-people thead th { overflow: hidden; }
.use-note { margin: 0; padding: 4px 20px 16px; font-size: 12px; }
.use-days { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 16px 20px 6px; }
.use-days i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--brass); }
.use-days i.zero { background: var(--stone-sunk); }
.use-days i.h0 { height: 4%; } .use-days i.h5 { height: 5%; } .use-days i.h10 { height: 10%; } .use-days i.h15 { height: 15%; } .use-days i.h20 { height: 20%; } .use-days i.h25 { height: 25%; } .use-days i.h30 { height: 30%; } .use-days i.h35 { height: 35%; } .use-days i.h40 { height: 40%; } .use-days i.h45 { height: 45%; } .use-days i.h50 { height: 50%; } .use-days i.h55 { height: 55%; } .use-days i.h60 { height: 60%; } .use-days i.h65 { height: 65%; } .use-days i.h70 { height: 70%; } .use-days i.h75 { height: 75%; } .use-days i.h80 { height: 80%; } .use-days i.h85 { height: 85%; } .use-days i.h90 { height: 90%; } .use-days i.h95 { height: 95%; } .use-days i.h100 { height: 100%; }
.src-list.use-pages, .src-list.use-pad { padding: 0 20px 14px; }
@media (max-width: 820px) {
  .use-funnel { grid-template-columns: repeat(4, minmax(84px, 1fr)); overflow-x: auto; }
  .use-col { height: 96px; }
}
@media (max-width: 640px) {
  .use-people th:nth-child(3), .use-people td:nth-child(3), .use-people .c-days { display: none; }
  .use-people .c-who { width: 40%; }
  .use-people .c-server { width: 35%; }
  .use-people .c-seen { width: 25%; }
}
/* HQ: where invites come from. Bars only show scale; the numbers carry it. */
.src-body { padding: 4px 20px 14px; }
.src-group + .src-group { margin-top: 10px; }
.src-group-head { display: flex; justify-content: space-between; padding: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--slate-3); }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(60px, 1fr) 56px 44px; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--mortar-soft); font-size: 13px; }
.src-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--slate); }
.src-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-name .i { width: 14px; height: 14px; color: var(--slate-3); flex: none; }
.src-bar { height: 6px; border-radius: 3px; background: var(--stone-sunk); overflow: hidden; }
.src-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brass); }
.src-bar i.w0 { width: 0; } .src-bar i.w5 { width: 5%; } .src-bar i.w10 { width: 10%; } .src-bar i.w15 { width: 15%; } .src-bar i.w20 { width: 20%; } .src-bar i.w25 { width: 25%; } .src-bar i.w30 { width: 30%; } .src-bar i.w35 { width: 35%; } .src-bar i.w40 { width: 40%; } .src-bar i.w45 { width: 45%; } .src-bar i.w50 { width: 50%; } .src-bar i.w55 { width: 55%; } .src-bar i.w60 { width: 60%; } .src-bar i.w65 { width: 65%; } .src-bar i.w70 { width: 70%; } .src-bar i.w75 { width: 75%; } .src-bar i.w80 { width: 80%; } .src-bar i.w85 { width: 85%; } .src-bar i.w90 { width: 90%; } .src-bar i.w95 { width: 95%; } .src-bar i.w100 { width: 100%; }
.src-row .num { text-align: end; }
.src-pct { color: var(--slate-3); }
.src-note { margin: 0; padding: 0 20px 14px; }
@media (max-width: 640px) { .src-row { grid-template-columns: minmax(0, 1fr) 48px 40px; } .src-bar { display: none; } }
.footnote { margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { position: sticky; top: 56px; background: var(--stone-raised); text-align: start; font-weight: 500; font-size: 12px; color: var(--slate-3); padding: 10px 16px; border-bottom: 1px solid var(--mortar); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table th a:hover, .table th[aria-sort] { color: var(--slate); }
.table th[aria-sort] a::after { content: " ↓"; }
.table td { padding: 9px 16px; border-bottom: 1px solid var(--mortar-soft); height: 44px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--mortar-soft); }
.table .n { text-align: end; }
.cell-server { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.cell-spark { display: inline-flex; align-items: center; gap: 10px; }
.cell-spark .spark { width: 56px; height: 16px; }
.back { display: inline-block; margin-bottom: 12px; font-size: 13px; color: var(--slate-3); text-decoration: none; }
.back:hover { color: var(--slate); }
.hq-plus { margin-top: 16px; }
.hq-assistant h2 { white-space: nowrap; }
.tally.hq-tally { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--mortar-soft); }
.hq-tally .meta { font-size: 13px; }
.tally.hq-tally.plus-tally { grid-template-columns: repeat(3, 1fr); }
.hq-tally .good-text { color: var(--moss); }
.hq-tally .bad-text { color: var(--brick); }
.hq-tally-note { margin: 0; padding: 12px 20px; font-size: 13px; }
@media (max-width: 640px) { .tally.hq-tally { grid-template-columns: repeat(2, 1fr); } .hq-tally div:nth-child(3) { border-inline-start: 0; } }
.hq-assistant h2 svg { width: 16px; height: 16px; flex: none; color: var(--brass); }
[data-paged-item][hidden] { display: none !important; }
.role-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--role, var(--slate-4)); }
.role-chip[data-role-color]:not([data-role-color=""]) > span:not(.sr-only) { color: var(--role); }
select[data-role-select].has-role { color: var(--role); }
select[data-role-select] option { color: var(--slate); }
.paged .paged-first { border-top: 0; }
.lockbar-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mortar-soft); }
.consequences { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.consequences li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--slate-2); }
.consequences .i { width: 16px; height: 16px; margin-top: 2px; color: var(--brick); }
.consequences li.stays .i { color: var(--moss); }
.paged-search { position: relative; margin: 0 0 12px; }
.panel > .paged > .paged-search { margin: 12px 16px 4px; }
.paged-search .i { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--slate-4); pointer-events: none; }
.paged-search input { width: 100%; padding-inline-start: 34px; }
.paged-empty { margin: 8px 16px 12px; font-size: 13px; color: var(--slate-3); }
.paged > .pager { padding: 10px 16px 14px; }
.paged > .pager[hidden] { display: none; }
.session-row { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.session-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--stone-sunk); color: var(--slate-3); }
.session-ic .i { width: 18px; height: 18px; }
.session-row .pill { margin-inline-start: 6px; vertical-align: 1px; }
.hq-tiles { margin-top: 16px; }
.tiles { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.tiles li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--mortar-soft); border-radius: var(--r-sm); background: var(--stone-sunk); }
.tile-ic { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--stone-raised); color: var(--slate-4); }
.tile-ic .i { width: 15px; height: 15px; }
.tiles li.on .tile-ic { color: var(--brass); background: var(--brass-wash); }
.tile-k { font-size: 12px; color: var(--slate-3); }
.tile-v { font-size: 13px; font-weight: 500; color: var(--slate-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles li.on .tile-v { color: var(--slate); }
.tile-sw { width: 14px; height: 14px; border-radius: 50%; }
.hq-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.facts { padding: 0; }
/* HQ server facts: identity, state tiles, timeline, setup, manage. */
.fx-who { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-bottom: 1px solid var(--mortar-soft); }
.fx-id { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; padding: 4px 8px; border: 1px solid var(--mortar); border-radius: var(--r-sm); background: var(--stone-sunk); color: var(--slate); font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-id .i, .fx-id-sm .i { width: 13px; height: 13px; color: var(--slate-3); flex: none; }
.fx-id:hover, .fx-id-sm:hover { border-color: var(--mortar-firm); }
.fx-owner { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--slate-2); }
.fx-owner > .i { width: 14px; height: 14px; color: var(--brass); flex: none; }
.fx-owner span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-id-sm { display: inline-grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 1px solid var(--mortar); border-radius: var(--r-sm); background: var(--stone-sunk); cursor: pointer; flex: none; }
.fx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 14px 18px; }
.fx-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-content: start; padding: 10px 12px; border: 1px solid var(--mortar-soft); border-radius: var(--r-sm); background: var(--stone-sunk); min-width: 0; }
.fx-ic { grid-row: 1 / span 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--stone-raised); color: var(--slate-3); }
.fx-ic .i { width: 15px; height: 15px; }
.fx-tile.ok .fx-ic { color: var(--moss); background: var(--moss-wash); }
.fx-tile.warn .fx-ic { color: var(--rust); background: var(--rust-wash); }
.fx-tile.bad .fx-ic { color: var(--brick); background: var(--brick-wash); }
.fx-k { font-size: 12px; color: var(--slate-3); }
.fx-v { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--slate); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fx-tile.bad .fx-v { color: var(--brick); }
.fx-sub { font-size: 11.5px; line-height: 1.35; color: var(--slate-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fx-time { list-style: none; margin: 0; padding: 4px 18px 12px; border-top: 1px solid var(--mortar-soft); }
.fx-time li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mortar-soft); font-size: 13px; }
.fx-time li:last-child { border-bottom: 0; }
.fx-time li > .i { width: 15px; height: 15px; color: var(--brass); }
.fx-time li.bad > .i, .fx-time li.bad .fx-k { color: var(--brick); }
.fx-time .fx-k { font-size: 13px; color: var(--slate-2); }
.fx-t { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; white-space: nowrap; color: var(--slate); }
.fx-ago, .fx-none { font-size: 12px; color: var(--slate-3); }
.fx-src { grid-column: 2 / -1; font-size: 12px; color: var(--slate-3); }
.fx-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; color: var(--slate-3); }
.fx-setup { padding: 12px 18px; border-top: 1px solid var(--mortar-soft); }
.fx-setup ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.fx-setup li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--mortar); border-radius: 999px; font-size: 12px; color: var(--slate-3); }
.fx-setup li .i { width: 13px; height: 13px; }
.fx-setup li.done { color: var(--slate); border-color: color-mix(in srgb, var(--moss) 35%, var(--mortar)); }
.fx-setup li.done .i { color: var(--moss); }
.fx-manage { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--mortar-soft); }
.fx-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.fx-act .fx-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate-2); }
.fx-act .fx-k .i { width: 14px; height: 14px; color: var(--slate-3); }
.fx-btns { display: flex; gap: 6px; min-width: 0; }
.fx-btns form { margin: 0; }
.fx-btns select { flex: 1; min-height: 32px; padding-block: 4px; }
.facts .dd-note { display: block; margin-top: 2px; font-size: 12px; color: var(--slate-3); }
.facts .bad-text { color: var(--brick); }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list > li { display: grid; grid-template-columns: minmax(180px, 240px) 1fr auto; gap: 16px; align-items: start; padding: 14px 20px; border-top: 1px solid var(--mortar); }
.team-list > li:first-child { border-top: 0; }
.team-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.team-who > span { display: grid; min-width: 0; }
.team-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-col { display: grid; gap: 8px; align-content: start; }
.team-plus { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.team-plus svg { width: 14px; height: 14px; flex: none; color: var(--brass); }
.team-servers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team-servers li { display: flex; align-items: center; gap: 10px; }
.team-servers a { display: inline-flex; align-items: center; gap: 8px; color: var(--slate); }
.team-servers .server-icon { width: 20px; height: 20px; font-size: 8px; }
.team-add { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--mortar); }
.team-add label { display: grid; gap: 6px; }
.team-add input { width: 240px; }
.team-add .bad-text { flex-basis: 100%; margin: 0; color: var(--brick); font-size: 13px; }
.team-remove .link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--brick); cursor: pointer; }
.team-remove .link:hover { text-decoration: underline; }
@media (max-width: 720px) { .team-list > li { grid-template-columns: 1fr; } }
.facts .row-label { display: block; margin-top: 4px; }
.facts-setup ul { list-style: none; margin: 8px 0 0; padding: 0; }
.facts-setup li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--slate-3); font-size: 13px; }
.facts-setup li.done { color: var(--slate); }
.facts-setup li.done .i { color: var(--moss); }
.facts-setup .i { width: 14px; height: 14px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 10px 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--mortar-soft); }
.services li:first-child { border-top: 0; }
.svc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-4); }
.svc-dot.ok { background: var(--moss); }
.svc-dot.warn { background: var(--rust); }
.svc-dot.bad { background: var(--brick); }
.svc-name { font-weight: 500; }
.svc-sum { color: var(--slate-2); }
.svc-facts { display: flex; gap: 16px; font-size: 12px; }
.num.bad { color: var(--brick); }
body.hq .signin .mark { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 820px) {
  .hq-split, .hq-detail { grid-template-columns: 1fr; }
  .kpis { --cols: 2 !important; }
  .services li { grid-template-columns: 10px minmax(0, 1fr); }
  .svc-sum, .svc-facts { grid-column: 2; }
  .table .cell-spark .spark { display: none; }
  .table .wide { display: none; }
  .table th { white-space: normal; position: static; }
  #servers { overflow-x: auto; }
  .table th, .table td { padding-inline: 12px; }
  .feed li { padding: 9px 16px; }
  .feed li > .who { width: 64px; }
  .search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fresh-dot { animation: none; } }

/* Chart tooltips, placed above the hovered day. */
.tip { position: fixed; z-index: 60; transform: translate(-50%, calc(-100% - 8px)); min-width: 150px; padding: 8px 10px; background: var(--toast); color: var(--tower-ink); border: 1px solid var(--tower-line); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-size: 12px; pointer-events: none; opacity: 0; transition: opacity 120ms ease-out; }
.tip.on { opacity: 1; }
.tip-title { margin-bottom: 4px; font: 500 12px "Plex Mono", ui-monospace, monospace; color: var(--tower-ink-2); }
.tip-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 1px 0; }
.tip-num { font-family: "Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.tip-key { width: 8px; height: 8px; border-radius: 2px; background: var(--slate-4); }
.tip-key.ok { background: var(--slate-3); }
.tip-key.alt { background: var(--rust); }
.tip-key.blocked { background: var(--brick); }
.tip-key.now { background: var(--brass); }
.tip-key.prev { height: 0; border-top: 2px dotted var(--slate-3); border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* Toasts: tower ink, in the bottom corner on the end side, newest last. */
.toasts { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(400px, calc(100vw - 32px)); min-height: 40px; padding-block: 8px; padding-inline: 12px 8px; background: var(--toast); color: var(--tower-ink); border: 1px solid var(--tower-line); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); font-size: 13px; animation: toast-in 160ms ease-out; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.toast.leaving { opacity: 0; transform: translateY(4px); }
.toast-icon { display: grid; flex: none; }
.toast-icon .i { width: 15px; height: 15px; }
.toast.ok .toast-icon { color: var(--tower-ok); }
.toast.error .toast-icon { color: var(--tower-bad); }
.toast.working .toast-icon { color: var(--tower-brass); }
.spin .i { animation: spin 0.9s linear infinite; }
.toast-text { flex: 1; min-width: 0; }
.toast-close { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border: 0; border-radius: 4px; background: none; color: var(--tower-ink-2); cursor: pointer; }
.toast-close:hover { background: var(--tower-line); color: var(--tower-ink); }
.toast-close .i { width: 14px; height: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .toast, .spin .i { animation: none; } .toast { transition: none; } }

/* Quick setup: a plan in plain sentences. Calm by design: one tick or dot per line, no glow. */
.plan-list { list-style: none; margin: 0; padding: 4px 20px 0; }
.plan-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--mortar-soft); }
.plan-line:first-child { border-top: 0; }
.plan-mark { width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; }
.plan-mark .i { width: 16px; height: 16px; color: var(--moss); }
.plan-mark i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rust); }
.plan-line.ok .plan-mark i, .plan-line.ask .plan-mark .i { display: none; }
.plan-toggle .plan-mark .i { display: block; color: var(--slate-3); }
.plan-toggle .plan-mark i { display: none; }
.plan-body { min-width: 0; }
.plan-say { margin: 0; font-size: 15px; color: var(--slate); }
.plan-say b { font-weight: 600; }
.plan-why { margin: 3px 0 0; font-size: 13px; color: var(--slate-3); }
.plan-warn { color: var(--rust); }
.plan-edit { margin-top: 6px; }
.plan-edit summary { display: inline-flex; font-size: 13px; font-weight: 500; color: var(--slate-3); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mortar-firm); }
.plan-edit summary::-webkit-details-marker { display: none; }
.plan-edit summary:hover { color: var(--slate); }
.plan-line.ask .plan-edit summary { color: var(--rust); }
.plan-edit[open] summary { margin-bottom: 8px; }
.plan-control { display: grid; gap: 6px; max-width: 360px; }
.plan-line .toggles { margin-top: 8px; }
.plan-line .switch { margin-top: 2px; }
.seg-group { display: inline-flex; flex-wrap: wrap; margin-top: 10px; border: 1px solid var(--mortar); border-radius: var(--r-sm); overflow: hidden; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: block; padding: 6px 12px; font-size: 13px; color: var(--slate-3); border-inline-start: 1px solid var(--mortar); }
.seg-opt:first-child span { border-inline-start: 0; }
.seg-opt:has(input:checked) span { background: var(--stone-sunk); color: var(--slate); font-weight: 500; }
.seg-opt:has(input:focus-visible) span { outline: 2px solid var(--brass); outline-offset: -2px; }
.plan-note { margin: 6px 20px 0; font-size: 13px; color: var(--slate-3); }
.qsetup .panel-head { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 560px) { .qsetup .panel-head .meta { flex-basis: 100%; margin-inline-start: 30px; } }
.role-mention { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 1px 6px; border-radius: 4px; font-weight: 500; color: var(--role, var(--slate)); background: color-mix(in srgb, var(--role, var(--slate-3)) 16%, transparent); }
.seg-opt em { margin-inline-start: 6px; font-style: normal; font-size: 11px; font-weight: 500; color: var(--moss); }
.plan-check { margin-top: 10px; font-size: 14px; color: var(--slate); }
.plan-toggle { align-items: center; }
.plan-toggle .plan-mark { margin-top: 0; }
.plan-foot .link-btn { align-self: center; padding: 0; }
/* Quick setup one step at a time (script.ts). */
.stepping [hidden] { display: none !important; }
.stepping:not(.reviewing) .plan-say.echo { display: none; }
.stepping .step-head { padding: 18px 20px 0; }
.step-count { font-size: 12px; font-weight: 500; color: var(--slate-3); }
.step-bar { display: block; height: 2px; margin: 8px 0 14px; background: var(--mortar-soft); border-radius: 2px; overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 0; background: var(--brass); transition: width 220ms ease-out; }
.step-q { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.stepping:not(.reviewing) .plan-line { border-top: 0; padding-top: 10px; }
.stepping:not(.reviewing) .plan-mark { display: none; }
.stepping:not(.reviewing) .plan-line { grid-template-columns: minmax(0, 1fr) auto; }
.stepping:not(.reviewing) .plan-edit summary { display: none; }
.stepping:not(.reviewing) .plan-say { font-size: 14px; color: var(--slate-2); }
.stepping .plan-review { display: none; }
.reviewing .plan-mark .i { display: block !important; color: var(--moss); }
.reviewing .plan-mark i { display: none !important; }
.plan-mark .mark-warn { display: none; }
.reviewing .unresolved .plan-mark > .i { display: none !important; }
.reviewing .unresolved .plan-mark .mark-warn { display: block; }
.reviewing .unresolved .plan-mark .mark-warn .i { color: var(--brass); }
.reviewing .plan-review { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.reviewing .plan-review p { margin: 0; font-size: 15px; color: var(--slate); }
.reviewing .plan-say, .reviewing .plan-why, .reviewing .plan-edit, .reviewing .plan-check, .reviewing .toggles, .reviewing .lock-cards, .reviewing .plan-line > .switch, .reviewing .plan-warn { display: none; }
.step-nav { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 16px 20px 18px; }
.step-nav .link-btn { align-self: center; }
.lock-cards { display: grid; gap: 8px; margin-top: 12px; }
.lock-card { position: relative; display: block; padding: 12px 14px; border: 1px solid var(--mortar); border-radius: var(--r-sm); cursor: pointer; transition: border-color 120ms ease-out; }
.lock-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lock-card > span { display: grid; gap: 3px; }
.lock-card b { font-size: 14px; font-weight: 500; }
.lock-card b em { margin-inline-start: 8px; font-style: normal; font-size: 11px; font-weight: 500; color: var(--moss); }
.lock-card > span > span { font-size: 13px; color: var(--slate-3); }
.lock-card:hover { border-color: var(--mortar-firm); }
.lock-card:has(input:checked) { border-color: var(--slate-3); background: var(--stone-sunk); }
.lock-card:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.setup-done { display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px; animation: lockbar-in 260ms ease-out both; }
.setup-done-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--moss-wash); color: var(--moss); }
.setup-done-mark .i { width: 18px; height: 18px; }
.setup-done h2 { margin: 4px 0 6px; font-size: 18px; }
.setup-done-what { margin: 0; color: var(--slate); }
.setup-done-next { margin: 6px 0 0; font-size: 13px; color: var(--slate-3); }
.setup-done-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.setup-done-actions .link-btn { align-self: center; }
.setup-done-share { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--mortar); font-size: 13px; color: var(--slate-3); }
.setup-done-share .link-btn { font-size: 13px; }
.lock-cards:has(input[value="none"]:checked) + .lock-effects-wrap, .reviewing .lock-effects-wrap { display: none; }
.lock-effects { margin: 12px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--slate-2); display: grid; gap: 4px; }
.plan-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 12px; padding: 14px 20px 16px; border-top: 1px solid var(--mortar-soft); }
@media (max-width: 720px) { .seg-group { display: grid; } .seg-opt span { border-inline-start: 0; border-top: 1px solid var(--mortar); } .seg-opt:first-child span { border-top: 0; } }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--mortar); border-radius: 999px; font-size: 13px; color: var(--slate-3); cursor: pointer; user-select: none; }
.toggle-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-chip .i { width: 12px; height: 12px; display: none; }
.toggle-chip:has(input:checked) { border-color: var(--mortar-firm); background: var(--stone-sunk); color: var(--slate); }
.toggle-chip:has(input:checked) .i { display: block; color: var(--slate-2); }
.toggle-chip:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
dialog.drift { max-width: min(520px, calc(100vw - 32px)); }
dialog.drift h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
dialog.drift h2 .i { color: var(--rust); width: 18px; height: 18px; }
.drift-list { list-style: none; margin: 0 0 16px; padding: 0; }
.drift-list li { padding: 12px 0; border-top: 1px solid var(--mortar-soft); }
.drift-list p { margin: 0 0 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--mortar-soft); }
.steps li:first-child { border-top: 0; }
.steps .marker { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 12px "Plex Mono", monospace; border: 1px solid var(--mortar-firm); color: var(--slate-3); }
.steps .done .marker { background: var(--moss); border-color: var(--moss); color: var(--stone-raised); }
.steps .problem .marker { border-color: var(--brick); color: var(--brick); }
.steps .marker .i { width: 12px; height: 12px; }

.tally { display: grid; grid-template-columns: repeat(3, 1fr); }
.chart { margin: 0; padding: 4px 20px 16px; }
.chart svg { display: block; width: 100%; height: 64px; }
.c-hit { fill: transparent; }
.chart g:hover .c-hit { fill: var(--mortar-soft); }
.c-ok { fill: var(--slate-4); opacity: 0.6; }
.c-alt { fill: var(--rust); }
.c-blocked { fill: var(--brick); }
.c-none { fill: var(--mortar-firm); }
/* Dates run left to right under the bars in every language. */
[dir="rtl"] .chart figcaption { direction: ltr; }
.chart figcaption { display: flex; justify-content: space-between; margin-top: 6px; font: 12px "Plex Mono", ui-monospace, monospace; color: var(--slate-4); }
.tally div { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.tally div + div { border-inline-start: 1px solid var(--mortar-soft); }
.tally .num { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tally .status { font-weight: 400; }
.rules-list { list-style: none; padding: 8px 0; margin: 0; }
.rules-list li { padding: 6px 0; color: var(--slate-2); }

.servers { list-style: none; margin: 0; padding: 0; }
.servers li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--mortar-soft); }
.servers li:first-child { border-top: 0; }
.servers li:hover { background: var(--mortar-soft); }
.servers .name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home: a greeting, the back rank, then the servers. */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.home-head h1 { font-size: 28px; }
.home-head .lede { margin: 6px 0 0; }
.rank { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rank-board { display: grid; grid-template-columns: repeat(8, 30px); border: 1px solid var(--mortar); border-radius: var(--r-sm); overflow: hidden; }
.sq { width: 30px; height: 30px; display: grid; place-items: center; background: var(--stone-raised); }
.sq.dark { background: var(--stone-sunk); }
.sq svg { width: 18px; height: 18px; }
.sq.ok svg { color: var(--brass); }
.sq.todo svg { color: var(--slate-3); }
.sq.warn svg { color: var(--rust); }
.rank-files { display: grid; grid-template-columns: repeat(8, 30px); font: 11px "Plex Mono", ui-monospace, monospace; color: var(--slate-4); text-align: center; }
/* A chess board: file a is always on the left. */
[dir="rtl"] .rank-board, [dir="rtl"] .rank-files { direction: ltr; }
.rank-more { font-size: 12px; color: var(--slate-3); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--mortar); font-size: 12px; font-weight: 500; color: var(--slate-2); white-space: nowrap; }
.pill .i { width: 12px; height: 12px; }
.pill.ok { color: var(--moss); border-color: color-mix(in srgb, var(--moss) 30%, transparent); background: var(--moss-wash); }
.pill.warn { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 30%, transparent); background: var(--rust-wash); }
.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.server-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--stone-raised); border: 1px solid var(--mortar); border-radius: var(--r-md); text-decoration: none; transition: border-color 120ms ease-out, background 120ms ease-out; }
.server-card:hover { border-color: var(--mortar-firm); background: color-mix(in srgb, var(--stone-raised) 92%, var(--slate)); }
.card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-stats { display: flex; gap: 14px; color: var(--slate-2); font-size: 13px; }
.card-stats .num { color: var(--slate); font-weight: 500; }
.card-period { margin-inline-start: auto; color: var(--slate-4); }
.card-last { font-size: 12px; color: var(--slate-3); padding-top: 10px; border-top: 1px solid var(--mortar-soft); }
/* Switching from Double Counter: castling, the move where king and rook trade places. */
.handover-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px 6px; }
.handover-head h2 { font-size: 16px; }
.handover-head .row-help { margin-top: 2px; }
.castle { width: 112px; height: 28px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--mortar); }
.castle .sq { fill: var(--stone-raised); }
.castle .sq-dark { fill: var(--stone-sunk); }
.castle .piece { transform-box: view-box; }
.castle .king { fill: var(--slate-4); }
.castle .rook { fill: var(--brass); }
.castle:not(.done) .king { animation: castle-king 900ms cubic-bezier(0.3, 0.7, 0.2, 1) 500ms both; }
.castle:not(.done) .rook { animation: castle-rook 900ms cubic-bezier(0.3, 0.7, 0.2, 1) 500ms both; }
.castle.done .king { transform: translateX(56px); }
.castle.done .rook { transform: translateX(-56px); }
@keyframes castle-king { to { transform: translateX(56px); } }
@keyframes castle-rook { 0% { transform: none; } 30% { transform: translateY(-3px); } 100% { transform: translateX(-56px); } }
@media (prefers-reduced-motion: reduce) { .castle .king, .castle .rook { animation: none !important; } .castle:not(.done) .king { transform: translateX(56px); } .castle:not(.done) .rook { transform: translateX(-56px); } }
.handover .steps li form { margin: 0; }
.handover-note { margin: 4px 0 16px; padding-top: 12px; border-top: 1px solid var(--mortar-soft); font-size: 13px; color: var(--slate-3); max-width: 72ch; }
.handover.slim { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.handover.slim p { margin: 0; color: var(--slate-2); font-size: 14px; }
.handover.slim strong { color: var(--slate); font-weight: 500; }
@media (max-width: 820px) { .handover-head { flex-direction: column; align-items: flex-start; gap: 12px; } .handover.slim { flex-direction: column; align-items: flex-start; } }

.attention { margin-bottom: 8px; border-color: color-mix(in srgb, var(--rust) 30%, transparent); }
.attention h2 .i { color: var(--rust); }
.attention-list { list-style: none; margin: 0; padding: 0; }
.attention-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--mortar-soft); color: var(--slate-2); }
.attention-list li:first-child { border-top: 0; }
.attention-list li > span:not(.server-icon) { flex: 1; min-width: 0; }
.attention-list strong { color: var(--slate); font-weight: 500; margin-inline-end: 4px; }
details.more > summary { list-style: none; cursor: pointer; padding: 10px 20px; border-top: 1px solid var(--mortar-soft); color: var(--slate-3); font-size: 13px; font-weight: 500; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { color: var(--slate); }
details.more[open] > summary { display: none; }
details.more .servers li:first-child { border-top: 1px solid var(--mortar-soft); }
.hint { margin-top: 16px; }
.profile { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.profile-name { font-size: 18px; font-weight: 600; }
.btn.danger { color: var(--brick); border-color: color-mix(in srgb, var(--brick) 40%, transparent); }
.btn.danger:hover { background: var(--brick-wash); }
@media (prefers-reduced-motion: reduce) { .server-card { transition: none; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pager { margin-top: 16px; }
/* Scam protection: the halo feature, shown as a skeleton of what it does. */
.halo { padding: 16px 20px 0; }
.halo-lede { margin: 0 0 16px; max-width: 72ch; color: var(--slate-2); }
.ap-mark { position: relative; display: inline-block; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(217, 170, 82, 0.22) 7px 8px), var(--stone-sunk); border: 1px solid var(--mortar); }
.ap-mark.lg { width: 168px; height: 168px; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 20px, rgba(217, 170, 82, 0.2) 20px 21px), var(--stone-sunk); }
.ap-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); }
.ap-mark.lg::after { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.ap-mark i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(217, 170, 82, 0.5), rgba(217, 170, 82, 0) 70deg, transparent 360deg); transform: rotate(40deg); }
@media (prefers-reduced-motion: no-preference) { .ap-mark i { animation: ap-sweep 4s linear infinite; } }
@keyframes ap-sweep { to { transform: rotate(400deg); } }
.row.ap-feature { grid-template-columns: 52px minmax(0, 1fr) minmax(240px, 300px); }
@media (max-width: 640px) { .row.ap-feature { grid-template-columns: 52px minmax(0, 1fr); } .row.ap-feature .control { grid-column: 1 / -1; } }
.scam-demo { margin: 0 0 4px; padding: 14px; border: 1px solid var(--mortar); border-radius: var(--r-md); background: var(--stone-sunk); }
.demo-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-channel { padding: 10px; border: 1px solid var(--mortar-soft); border-radius: var(--r-sm); background: var(--stone-raised); }
.demo-head { margin-bottom: 10px; font: 500 12px "Plex Mono", ui-monospace, monospace; color: var(--slate-3); }
.demo-post { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; animation: demo-post 6s ease-out infinite both; }
.demo-post.d2 { animation-delay: 0.35s; }
.demo-post.d3 { animation-delay: 0.7s; }
.demo-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--mortar-firm); }
.demo-name { display: block; width: 45%; height: 7px; margin: 4px 0 8px; border-radius: 4px; background: var(--mortar-firm); }
.demo-images { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-width: 132px; }
.demo-images span { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 3px; background: color-mix(in srgb, var(--rust) 22%, var(--mortar-soft)); color: var(--rust); }
.demo-images .i { width: 42%; height: auto; max-width: 22px; aspect-ratio: 1; }
.demo-removed { position: absolute; inset: -4px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--stone-raised) 78%, transparent); color: var(--moss); font-size: 12px; font-weight: 500; opacity: 0; animation: demo-removed 6s ease-out infinite both; }
.demo-removed .i { width: 14px; height: 14px; }
@keyframes demo-post { 0% { opacity: 0; transform: translateY(6px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes demo-removed { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .demo-post, .demo-removed { animation: none; opacity: 1; } }
.row-fix { padding: 0 0 14px; }

/* Access gate: the row opens into the plan, full width, before anything changes. */
details.gate > summary { list-style: none; cursor: pointer; }
details.gate > summary::-webkit-details-marker { display: none; }
details.gate[open] > summary .control { visibility: hidden; }
.gate-confirm { margin: 0 0 16px; padding: 16px 20px; background: var(--stone-sunk); border: 1px solid var(--mortar); border-radius: var(--r-md); }
.gate-confirm .row-help { max-width: none; margin-top: 8px; }
.plan { list-style: none; counter-reset: step; margin: 10px 0 4px; padding: 0; }
.plan li { counter-increment: step; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; padding: 4px 0; color: var(--slate-2); }
.plan li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--mortar-firm); border-radius: 50%; font: 500 11px "Plex Mono", ui-monospace, monospace; color: var(--slate-3); }
.gate-confirm .actions { display: flex; gap: 8px; margin-top: 16px; }

.prose { max-width: 680px; }
.prose h1 { font-size: 26px; margin-bottom: 16px; }
.prose h2 { display: block; font-size: 16px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--slate-2); line-height: 1.65; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-inline-start: 20px; }
.prose a { color: var(--slate); }
.prose code { font: 0.9em "Plex Mono", monospace; background: var(--stone-sunk); padding: 1px 5px; border-radius: 4px; }
.signin { max-width: 380px; margin: 14vh auto; }
.signin .mark { margin-bottom: 40px; }
.signin p { color: var(--slate-2); margin: 0 0 24px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .switch { justify-self: start; }
  .demo-channels { gap: 8px; }
  .demo-channel { padding: 8px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .bar-inner, .tabs, main { padding-inline: 16px; }
  .tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
  .entry { grid-template-columns: 32px minmax(0, 1fr) auto; padding-inline: 16px; }
  .entries.threaded .entry { padding-inline-start: 48px; }
  .entry-time { align-self: start; margin-top: 1px; font-size: 12px; font-variant-numeric: tabular-nums; }
  .entry-line { flex-wrap: wrap; row-gap: 2px; }
  .entry-detail { white-space: normal; }
  .entry-detail .sep { display: none; }
  .entry-detail .part { display: block; }
  .entry-act:not(:empty) { grid-column: 2 / -1; text-align: start; margin-top: 8px; }
  details.menu > summary > span:not(.server-icon) { max-width: 120px; }
  .hide-sm { display: none; }
  .home-head h1 { font-size: 24px; }
  .rank { align-items: flex-start; }
  .rank-board, .rank-files { grid-template-columns: repeat(8, 26px); }
  .sq { width: 26px; height: 26px; }
  .bar .mark-name { display: none; }
  .bar-inner { gap: 8px; }
}/* Five tabs fit a phone once their icons go. */
@media (max-width: 520px) { .tabs { gap: 16px; } .tabs a .i, .tabs a svg { display: none; } }


/* Raids on the Overview: a banner while one is under way, and the last 90 days. */
.raid-now { border-color: color-mix(in srgb, var(--rust) 40%, var(--mortar)); background: linear-gradient(180deg, var(--rust-wash), transparent 70%), var(--stone-raised); padding: 16px 20px; }
.raid-now-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.raid-now-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rust-wash); color: var(--rust); flex: none; }
.raid-now-icon .i { width: 15px; height: 15px; }
.raid-now-head h2 { margin: 0; font-size: 16px; color: var(--rust); }
.raid-now-body { margin: 8px 0 0; color: var(--slate-2); font-size: 14px; line-height: 1.5; }
.raid-now-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.raid-list { list-style: none; margin: 0; padding: 4px 20px 8px; }
.raid-list li { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--mortar-soft); }
.raid-list li:first-child { border-top: 0; }
.raid-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.raid-when time { font-size: 13px; color: var(--slate); font-weight: 500; }
.raid-signs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; }
.raid-signs .tag { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--rust-wash); color: var(--rust); }
.raid-nums { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.raid-nums div { display: flex; align-items: baseline; gap: 6px; }
.raid-nums dt { font-size: 12.5px; color: var(--slate-3); }
.raid-nums dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--slate); }
.raid-nums .in dd { color: var(--moss); }
.raid-nums .ban dd { color: var(--brick); }
.raid-nums .held dd { color: var(--brass); }
.raid-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--stone-sunk); gap: 2px; }
.raid-bar span { display: block; height: 100%; }
.raid-bar .in { background: var(--moss); }
.raid-bar .ban { background: var(--brick); }
.raid-bar .out { background: var(--slate-3); }
.raid-bar .held { background: var(--brass); }
.raid-bar .w1 { flex: 1 1 0; }
.raid-bar .w2 { flex: 2 1 0; }
.raid-bar .w3 { flex: 3 1 0; }
.raid-bar .w4 { flex: 4 1 0; }
.raid-bar .w5 { flex: 5 1 0; }
.raid-bar .w6 { flex: 6 1 0; }
.raid-bar .w7 { flex: 7 1 0; }
.raid-bar .w8 { flex: 8 1 0; }
.raid-bar .w9 { flex: 9 1 0; }
.raid-bar .w10 { flex: 10 1 0; }
.raid-bar .w11 { flex: 11 1 0; }
.raid-bar .w12 { flex: 12 1 0; }
.raid-bar .w13 { flex: 13 1 0; }
.raid-bar .w14 { flex: 14 1 0; }
.raid-bar .w15 { flex: 15 1 0; }
.raid-bar .w16 { flex: 16 1 0; }
.raid-bar .w17 { flex: 17 1 0; }
.raid-bar .w18 { flex: 18 1 0; }
.raid-bar .w19 { flex: 19 1 0; }
.raid-bar .w20 { flex: 20 1 0; }
.raid-when .meta { font-size: 12px; }
.raid-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
