/* T150: the white-rabbit theme. Ground, borders and accents all sit in
   one violet family so every page reads as the same site; --red* is now
   danger-only (restart, errors, .bad, the kick slider). */
:root{--bg:#07060d;--bg2:#0c0a16;--bg3:#141024;--card:#0f0d1b;--card2:#171429;
--border:rgba(150,110,225,.16);--border-strong:rgba(150,110,225,.30);
--text:#f2f0fa;--muted:#948eb4;--muted2:#5d5680;--ok:#4fd6a8;--warn:#fde047;
/* T316: amber, distinct from --warn's yellow - the "in-between" account
   status color (invited/awaiting_first_login/blocked/pending_deletion).
   #f2994a on this dark ground is ~11:1 contrast, well past WCAG AA. */
--amber:#f2994a;
--red:#9e2540;--red2:#dc4f6b;--radius:16px;
--violet:#8b62d9;--violet2:#ac8bef;--violet3:#603c84;--violet-deep:#2a2050;
--violet-soft:rgba(139,98,217,.14);--violet-line:rgba(139,98,217,.30);
/* No webfont on purpose - the portal is reachable on a private net with
   no guarantee of internet, so a CDN face would hang or silently fall
   back. The display voice comes from a serif stack + tracking instead. */
--display:Georgia,"Iowan Old Style","Palatino Linotype",Palatino,"Times New Roman",serif}
[hidden]{display:none!important}  /* T418: .btn/.card set display and would override it */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);
color:var(--text);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}button,input{font:inherit}

/* T150: page backdrop. A fixed layer *above* body's opaque background and
   below the content - the first attempt used body::before at z-index:-1,
   which paints behind body's own background and so never showed at all.

   T152: the feathering is done by compositing dark gradients OVER the
   photo in one `background`, not by mask-image. Firefox rendered the
   masked version far brighter and differently positioned than Chrome
   (reproduced headless side by side); the four candidate techniques are
   pixel-identical in isolation, so the mask was interacting with
   something on the real page. Gradients have no such ambiguity, and a
   gradient reaching the page's own --bg before the edge *is* a feather
   to black - the ground behind is that same colour. Stop order matters:
   first listed paints on top, so it goes feather, flat dim, photo. */
/* T405: the eight backdrop slots against six scene files. Two scenes do
   double duty - `vh-midday` is both the .docs backdrop and the online
   hero, `vh-night` is both .deep and the offline hero - and the two uses
   differ only in position and dimming, which is why the files are named
   for the scene, not the slot. The dashboard is the one page with no
   .page-bg at all, so a reused scene is never on screen twice at once.
   The flat-dim stops below are NOT the values the rabbit art used: mean
   luma went 47 -> 90 on .docs and 41 -> 33 on .login, so each was
   re-derived to land on the same perceived brightness as before rather
   than inherited. */
.page-bg{position:fixed;inset:0;z-index:0;pointer-events:none}
/* /login plus the pre-auth error pages: the storm over the runestones.
   Dim eased from .44 to .38 - this scene is darker than the art it
   replaced, and the old value crushed the lightning it is built around. */
.page-bg--login{background:
radial-gradient(ellipse 74% 70% at 50% 40%,rgba(7,6,13,0) 16%,rgba(7,6,13,.34) 46%,rgba(7,6,13,.86) 74%,#07060d 92%),
linear-gradient(rgba(7,6,13,.38),rgba(7,6,13,.38)),
url('/assets/vh-login.webp') 50% 38%/cover no-repeat}
/* .docs pages: the mid-day river bleeding up from the bottom of the page,
   gone long before it reaches any body copy. Dim raised .50 -> .62: this
   is the brightest of the six by a wide margin (mean 90 vs the old 47),
   and at .50 it read as a lit strip under the text rather than a fade. */
.page-bg--docs{background:
radial-gradient(ellipse 96% 104% at 50% 100%,rgba(7,6,13,0) 0%,rgba(7,6,13,.42) 36%,rgba(7,6,13,.88) 68%,#07060d 86%),
linear-gradient(rgba(7,6,13,.65),rgba(7,6,13,.65)),
url('/assets/vh-midday.webp') 50% 100%/cover no-repeat}
/* T415: the same bottom-bleed treatment on two more reading scenes. The
   flat dim is re-derived per scene to land on .docs' perceived brightness
   (mean luma x (1-dim) ~= 34): dusk 55 -> .38, sunset 42 -> .20. The
   owner's new mid-day art (2026-09-21) measures 96 rather than 88, so
   .docs went .62 -> .65 and the online hero .30 -> .37. */
.page-bg--docs-dusk{background:
radial-gradient(ellipse 96% 104% at 50% 100%,rgba(7,6,13,0) 0%,rgba(7,6,13,.42) 36%,rgba(7,6,13,.88) 68%,#07060d 86%),
linear-gradient(rgba(7,6,13,.38),rgba(7,6,13,.38)),
url('/assets/vh-dusk.webp') 50% 100%/cover no-repeat}
.page-bg--docs-sunset{background:
radial-gradient(ellipse 96% 104% at 50% 100%,rgba(7,6,13,0) 0%,rgba(7,6,13,.42) 36%,rgba(7,6,13,.88) 68%,#07060d 86%),
linear-gradient(rgba(7,6,13,.20),rgba(7,6,13,.20)),
url('/assets/vh-sunset.webp') 50% 100%/cover no-repeat}
/* status / logs / restart-log / access-log: imagery only in a ring around
   the page edge - opaque through the middle so tables and <pre> stay
   clean, opaque again at the border so nothing meets the window edge.
   Dim unchanged at .30 - `vh-night` and the `bg-out-dark` it replaced sit
   within 4 luma of each other. Position lifted 55% -> 42% so the moon is
   inside the crop on tall viewports, where it lands in the ring. */
.page-bg--deep{background:
radial-gradient(ellipse 62% 66% at 50% 48%,#07060d 12%,rgba(7,6,13,.90) 38%,rgba(7,6,13,.66) 64%,rgba(7,6,13,.90) 88%,#07060d 100%),
linear-gradient(rgba(7,6,13,.30),rgba(7,6,13,.30)),
url('/assets/vh-night.webp') 50% 42%/cover no-repeat}
/* T415: the admin pages get the second night scene, same ring. Luma 34 vs
   night's 32 -> dim .36; brightest band ~25%, so positioned higher. */
.page-bg--deep-night2{background:
radial-gradient(ellipse 62% 66% at 50% 48%,#07060d 12%,rgba(7,6,13,.90) 38%,rgba(7,6,13,.66) 64%,rgba(7,6,13,.90) 88%,#07060d 100%),
linear-gradient(rgba(7,6,13,.36),rgba(7,6,13,.36)),
url('/assets/vh-night2.webp') 50% 30%/cover no-repeat}

/* T150: purple mist - a few big blurred blobs drifting, not a tiled
   image (which repeats visibly and costs a download). Same layer as the
   backdrop, under all content. */
/* T153: z-index 1, not 0. At 0 the mist lost the paint-order tie to
   `.hero-art` (also z-index 0, but later in the DOM), so the hero was the
   one region of the page with no mist on it - its bottom faded to pure
   black while the page just below it was mist-lit and lighter, leaving a
   step at the boundary in the opposite direction. At 1 the mist covers
   the art, while `main` and `.hero>*` (also z-index 1 but later still)
   stay above it, so text is untouched. */
.mist{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.mist i{position:absolute;display:block;border-radius:50%;filter:blur(70px)}
.mist i:nth-child(1){width:62vw;height:62vw;top:-18vh;left:-12vw;
background:radial-gradient(circle,rgba(96,60,132,.30),transparent 70%);animation:mist1 34s ease-in-out infinite alternate}
.mist i:nth-child(2){width:48vw;height:48vw;bottom:-14vh;right:-8vw;
background:radial-gradient(circle,rgba(139,98,217,.20),transparent 70%);animation:mist2 44s ease-in-out infinite alternate}
.mist i:nth-child(3){width:38vw;height:38vw;top:32vh;left:36vw;
background:radial-gradient(circle,rgba(42,32,80,.42),transparent 70%);animation:mist3 27s ease-in-out infinite alternate}
@keyframes mist1{to{transform:translate(7vw,9vh)}}
@keyframes mist2{to{transform:translate(-6vw,-8vh)}}
@keyframes mist3{to{transform:translate(4vw,-7vh)}}

.topbar{position:fixed;z-index:20;
top:0;left:0;right:0;height:58px;display:flex;align-items:center;padding:0 30px;
background:rgba(7,6,13,.86);backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}
/* nowrap: the display serif runs wider than the old system sans at the
   same size, and a long SITE_NAME wrapped to two lines, doubling the
   topbar height between the 480px and 800px breakpoints. */
.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:600;
font-size:17px;letter-spacing:.3px;margin-right:auto;white-space:nowrap}
.brand-mark{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;
box-shadow:0 0 0 1px var(--violet-line),0 0 12px rgba(139,98,217,.20);transition:transform .25s,box-shadow .25s}
.brand:hover .brand-mark{transform:scale(1.07);box-shadow:0 0 0 1px var(--violet-line),0 0 22px rgba(139,98,217,.45)}
.nav-links{display:flex;align-items:center;gap:24px}
.nav-links a{font-size:14px;color:var(--muted);transition:color .2s;position:relative}
.nav-links a:hover,.nav-links a.active{color:var(--text)}
/* T150: the active page gets a real violet indicator, not just a tint. */
.nav-links a.active:after{content:"";position:absolute;left:0;right:0;bottom:-18px;height:2px;
background:var(--violet);box-shadow:0 0 8px var(--violet)}
/* T412: nowrap - at high zoom labels wrapped to 2-3 lines and ran off the right edge. */
.nav-links a,.nav-meta{white-space:nowrap}.brand{flex:none}
/* T412: admin split-button groups. Label = first page; hover, keyboard
   focus or the caret (checkbox, for touch) opens the rest. */
.nav-group{position:relative;display:flex;align-items:center;gap:5px;height:58px}
input.nav-sub-toggle{display:none}
.nav-caret{font-size:11px;color:var(--muted);cursor:pointer;padding:6px 2px;transition:color .2s}
.nav-group:hover .nav-caret,.nav-sub-toggle:checked~.nav-caret{color:var(--text)}
.nav-sub{display:none;position:absolute;top:100%;left:-12px;min-width:190px;flex-direction:column;gap:2px;
padding:8px;background:var(--bg2);border:1px solid var(--border-strong);border-radius:10px;
box-shadow:0 12px 40px rgba(0,0,0,.6);z-index:30}
.nav-group:hover .nav-sub,.nav-group:focus-within .nav-sub,.nav-sub-toggle:checked~.nav-sub{display:flex}
.nav-sub a{padding:8px 10px;border-radius:6px}.nav-sub a:hover{background:var(--bg3)}
.nav-sub a.active:after{display:none}.nav-sub a.active{background:var(--violet-soft);color:var(--violet2)}
.nav-sub-head{display:none}
@media(max-width:1100px){.nav-links{gap:18px}}
.nav-meta{display:flex;align-items:center;gap:10px;margin-left:24px}
.role{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;
letter-spacing:.8px;background:var(--violet-soft);color:var(--violet2);border:1px solid var(--violet-line)}
.logout-form{display:inline}.logout{font:inherit;font-size:13px;color:var(--muted);background:none;border:0;padding:0;cursor:pointer}
.logout:hover{color:var(--text)}
/* T443 (owner 2026-09-23): `width:100%` is load-bearing. `body` is a flex
   column, and the `auto` side margins below stop a flex child stretching -
   so on a wide window with short content (the logs page, most visibly) the
   whole page collapsed to the width of its text, ~530px. */
main{position:relative;z-index:1;width:100%;max-width:1220px;margin:58px auto 0;padding:42px 28px 70px}

/* T152: the hero is emitted as a sibling *before* <main>, not inside it,
   so it can run the full width of the window without a 100vw trick (vw
   includes the scrollbar and would cause a horizontal scroll). It carries
   the 58px topbar offset itself; the adjacent-sibling rule below then
   stops <main> adding it a second time.
   No border-bottom: a rule here is exactly the "band with a hard line"
   the band is supposed not to be. The feathered art and the glow are what
   separate the hero from the content. */
.hero{position:relative;overflow:hidden;text-align:center;
display:flex;flex-direction:column;align-items:center;justify-content:center;
/* T153: the bottom padding reserves the stat row's lane. Without it the
   centred title block and the bottom-pinned cards collide on a short
   viewport (seen at 1440x620, where min-height hits its floor). */
min-height:clamp(500px,54vh,700px);padding:78px 24px 162px;margin-top:58px}
.hero+main{margin-top:0}
/* `.hero>.hero-art`, not `.hero-art`: the `.hero>*` rule below sets
   position:relative on every child and would otherwise win on source
   order and drop the art back into the flow. The state modifier supplies
   only the image; the feather lives on the pseudo-element so all five
   states share one set of gradients. */
/* T153: 38%, not 58%. The band is far wider than the 21:9 source, so
   `cover` crops it vertically and the old anchor kept the window at
   25-90% of the image height - which cut the top off. Every state's mood
   element lives up there, so the sun was simply outside the crop.
   Biasing up puts the window at roughly 6-74% and brings them all in.
   T405 re-checked, not inherited: the new scenes put their brightest
   element at 11% (midday's sun), 15% (night's moon), 39% (sunset's sun)
   and 44% (sunrise's sun), all inside that window. Storm is the one with
   no single peak - its lightning is spread across the top 40%. */
.hero>.hero-art{position:absolute;inset:0;z-index:0;
background-position:50% 38%;background-size:cover;background-repeat:no-repeat}
.hero>.hero-art:after{content:"";position:absolute;inset:0;background:
/* Scrim under the title block - the online scene is bright enough in the
   middle to eat the body line, and the text has to stay readable on all
   five. Tight on purpose: it only has to sit under the text, and it falls
   off well before the edges so the art still carries. Legibility leans on
   the drop-shadow on `.hero>*` rather than on dimming the picture.
   NB: everything from here to the closing brace is ONE declaration value.
   A stray token anywhere in it makes the browser drop the whole
   `background` - which silently removed the scrim, the vignette AND the
   purple wash once before, leaving the raw photo with hard edges. */
radial-gradient(ellipse 38% 32% at 50% 48%,rgba(7,6,13,.58) 0%,rgba(7,6,13,.26) 58%,rgba(7,6,13,0) 84%),
/* T153: one long vignette, not an edge treatment. The previous version
   left the middle ~45% completely clear and only faded the outer band,
   which reads as a frame around a picture rather than a picture sinking
   into the dark. This starts easing from the centre out and never has a
   flat clear zone, so the art shifts into darkness gradually the whole
   way. The horizontal radius stays under 50% deliberately - it has to
   reach full black inside the box, or the fade is still unfinished when
   it hits the window edge and the hard border comes back. */
radial-gradient(ellipse 58% 96% at 50% 42%,
rgba(7,6,13,0) 0%,rgba(7,6,13,.05) 26%,rgba(7,6,13,.15) 43%,rgba(7,6,13,.33) 58%,
rgba(7,6,13,.55) 71%,rgba(7,6,13,.77) 83%,rgba(7,6,13,.93) 93%,#07060d 100%),
/* The bottom is where the edge actually shows: the side art is already
   dark tunnel wall, but bright foreground ran right to the hero's last
   row and cut straight to the page. The stat row sits in the bottom ~20%
   too, so a fade confined below it had no room to work. This starts
   descending at 42% and reaches black over the remaining 58%, which is a
   long enough run to read as sinking into the dark rather than stopping. */
linear-gradient(to bottom,rgba(7,6,13,.55) 0%,rgba(7,6,13,0) 20%,rgba(7,6,13,0) 42%,
rgba(7,6,13,.10) 54%,rgba(7,6,13,.28) 65%,rgba(7,6,13,.50) 75%,rgba(7,6,13,.72) 84%,
rgba(7,6,13,.88) 92%,rgba(7,6,13,.97) 97%,#07060d 100%),
/* T153: the purple wash. A flat violet overlay rather than a blend mode -
   mix-blend-mode (soft-light / color) was trialled per state and the flat
   original won on every one of the five. It reads as a gentle gel over
   the lens and, being uniform, leaves each state's own hue intact, which
   is what tells them apart at a glance. Same value for all five on
   purpose: one wash, not five. */
linear-gradient(rgba(96,60,132,.24),rgba(96,60,132,.24))}
/* T405: state -> scene. The mapping is the mood, not the filename: high
   sun = alive, sun coming up = starting, sun going down = stopping, moon =
   asleep, lightning = something is wrong.
   The two brightest scenes carry their own extra flat dim as a first
   background layer, rather than the shared `:after` scrim being raised for
   all five - `vh-midday` (mean luma 96, owner's new art 2026-09-21) and
   `vh-sunrise` (73) are far
   brighter than anything the T153 scrim was tuned against (the old
   `state-online`, 62), while `vh-night` (32) and `vh-storm` (36) are in
   the range it already handles. A shared increase would fix the two and
   black out the other three. The per-state stops bring both back to ~60,
   which is the brightness the scrim is known to hold text against. */
.hero-art--online{background-image:
linear-gradient(rgba(7,6,13,.37),rgba(7,6,13,.37)),url('/assets/vh-midday.webp')}
.hero-art--booting{background-image:
linear-gradient(rgba(7,6,13,.18),rgba(7,6,13,.18)),url('/assets/vh-sunrise.webp')}
.hero-art--shutting-down{background-image:url('/assets/vh-sunset.webp')}
.hero-art--offline{background-image:url('/assets/vh-night.webp')}
.hero-art--no-response{background-image:url('/assets/vh-storm.webp')}
/* T153: the stat row sits on the bottom of the hero art rather than on
   the plain page below it, so the band and the numbers read as one
   object. Absolute, not a flex item, so the title block stays centred in
   the band regardless of how tall the row is.
   `.hero>.hero-stats` (0,2,0) beats `.hero>*` (0,1,0), which would
   otherwise force position:relative on it and drop it back into flow -
   and its `filter` would break the cards' backdrop-filter, since a
   filtered ancestor becomes the backdrop root. Hence filter:none. */
.hero>.hero-stats{position:absolute;z-index:2;filter:none;
left:50%;transform:translateX(-50%);bottom:24px;width:min(1220px,calc(100% - 48px))}
/* T444 (owner 2026-09-23): on the dashboard the stat band, the votes card,
   the Observability heading and the Grafana embed all share ONE width, so
   they line up instead of each having its own edges (1220 / 1780 / 1164 /
   1900 before). --page-wide is the single number to turn. */
body[data-page="dashboard"]{--page-wide:min(94vw,1840px)}
body[data-page="dashboard"] .hero>.hero-stats{width:var(--page-wide);max-width:calc(100% - 48px)}
.page-wide{width:var(--page-wide,100%);margin-left:calc(50% - var(--page-wide,100%) / 2)}
@media(max-width:1100px){body[data-page="dashboard"]{--page-wide:100%}
.page-wide{margin-left:0}}
/* T153: mostly see-through. The fill is only ~28% so the art reads
   straight through the row; legibility comes from the blur plus a text
   shadow rather than from an opaque panel. The grid gap has to drop to a
   low alpha too, or the 1px dividers stay brighter than the cards. */
/* gap:0 with a border between cards, not the base grid's 1px gap. That
   gap shows the *container* through it, and once the cards went nearly
   transparent the container was brighter than they were - so the
   dividers read as pale seams instead of hairlines. */
.hero-stats .cards{margin-bottom:0;gap:0;background:transparent;
border-color:rgba(190,165,245,.20);box-shadow:0 18px 50px rgba(0,0,0,.34)}
.hero-stats .card{background:rgba(11,9,20,.10);
backdrop-filter:blur(24px) saturate(130%);-webkit-backdrop-filter:blur(24px) saturate(130%)}
.hero-stats .card+.card{border-left:1px solid rgba(190,165,245,.15)}
.hero-stats .card:hover{background:rgba(20,17,36,.22)}
/* at 10% fill the panel does nothing for contrast - the type carries it */
.hero-stats .card-label{color:#e2ddf4;text-shadow:0 1px 8px rgba(0,0,0,.95),0 0 18px rgba(0,0,0,.8)}
.hero-stats .card-value{text-shadow:0 2px 12px rgba(0,0,0,.95),0 0 22px rgba(0,0,0,.8)}
/* Without the blur, a 10% fill separates the row from the art not at all.
   The text shadows above already carry legibility on their own, but give
   the panel enough body to still read as a panel. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
.hero-stats .card{background:rgba(11,9,20,.40)}}
.hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(172,139,239,.10) 1px,transparent 1px);
/* likewise pulled in - the dot grid also reached the bottom edge and
   added texture on top of the fade */
background-size:30px 30px;mask-image:radial-gradient(ellipse 62% 46% at 50% 40%,#000 10%,transparent 74%);
-webkit-mask-image:radial-gradient(ellipse 62% 46% at 50% 40%,#000 10%,transparent 74%)}
/* T153: this glow used to sit at 50% 92% - fine when the hero was a 280px
   band and 92% was just under the title, but the hero is ~700px now and
   92% is the bottom EDGE. It was painting violet light on top of the
   art's fade-to-black, which is why the bottom kept ending in a visible
   line no matter how the fade underneath was tuned. Moved up behind the
   title and pulled in, so it is fully out before the bottom third. */
.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 56% 34% at 50% 40%,rgba(139,98,217,.24),transparent 72%)}
/* drop-shadow, not text-shadow: the h1 is background-clip:text, so a
   text-shadow would paint a blurred silhouette through the transparent
   glyphs instead of sitting behind them. */
/* T153: stronger and tighter than before. With the art no longer dimmed
   heavily, the text has to carry its own contrast - a shadow that hugs
   the glyphs does that without darkening the picture behind it. */
.hero>*{position:relative;z-index:1;
filter:drop-shadow(0 2px 10px rgba(0,0,0,.92)) drop-shadow(0 1px 3px rgba(0,0,0,.85))}
.eyebrow{display:inline-flex;align-items:center;gap:8px;
padding:6px 13px;border:1px solid var(--violet-line);border-radius:999px;color:var(--violet2);
background:var(--violet-soft);font-size:12px;font-weight:650}
.pulse{width:7px;height:7px;border-radius:50%;background:var(--violet);
box-shadow:0 0 0 5px var(--violet-soft);animation:breathe 2.6s ease-in-out infinite}
/* T152: the dashboard eyebrow reports real server state, so it takes
   semantic colour (good / warning / critical) rather than the brand
   violet - that is a separate axis from the accent and is the same
   vocabulary the stat cards already use. Everywhere else (the login
   pill) keeps the violet above. */
.eyebrow--ok{border-color:rgba(79,214,168,.32);background:rgba(79,214,168,.10);color:#8bf0c6}
.eyebrow--ok .pulse{background:var(--ok);box-shadow:0 0 0 5px rgba(79,214,168,.14)}
.eyebrow--warn{border-color:rgba(253,224,71,.32);background:rgba(253,224,71,.10);color:#f6e08a}
.eyebrow--warn .pulse{background:var(--warn);box-shadow:0 0 0 5px rgba(253,224,71,.14)}
.eyebrow--bad{border-color:rgba(220,79,107,.34);background:rgba(220,79,107,.12);color:var(--red2)}
.eyebrow--bad .pulse{background:var(--red2);box-shadow:0 0 0 5px rgba(220,79,107,.16)}
/* stopped on purpose is not an alarm - no colour, and the pulse holds
   still, because nothing is happening. */
.eyebrow--off{border-color:rgba(148,142,180,.28);background:rgba(148,142,180,.08);color:var(--muted)}
.eyebrow--off .pulse{background:var(--muted2);box-shadow:0 0 0 5px rgba(148,142,180,.10);animation:none}
@keyframes breathe{0%,100%{box-shadow:0 0 0 5px var(--violet-soft)}50%{box-shadow:0 0 0 8px rgba(139,98,217,.05)}}
h1{font-family:var(--display);font-size:clamp(38px,6vw,66px);
line-height:1.08;letter-spacing:-1px;margin:22px auto 13px;
/* T151: hero h1 is a flex item (align-items:center) so it grows to its
   content; a long unbroken server_name overran the viewport and
   `.hero{overflow:hidden}` clipped it mid-word. `anywhere` also lets the
   flex item's min-content shrink. */
max-width:100%;overflow-wrap:anywhere;
/* T153: both stops fully opaque. The old end stop was rgba(...,.72), and
   with background-clip:text that alpha makes the lower half of every
   glyph 28% see-through - over the lit artwork the background showed
   through the letters and the title read as dark, muddy blotches. */
background:linear-gradient(168deg,#ffffff 38%,#c8b2f4 100%);
-webkit-background-clip:text;background-clip:text;color:transparent}
h2{font-size:clamp(24px,3vw,38px);letter-spacing:-1px;margin:0}
.dim{color:var(--muted)}
/* a step brighter than --dim: this line sits on the art, not on a panel */
/* T153: brighter than --muted - this line sits on lit artwork now, not
   on a dimmed band, and the old grey-violet disappeared into the mist. */
.hero p{color:#dcd7f0;font-size:17px;max-width:610px;margin:0 auto}
.content{padding-top:36px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.section-tag{font-size:11px;font-weight:750;letter-spacing:1.5px;text-transform:uppercase;color:var(--violet2);margin-bottom:7px}
/* T144: auto-fit (not a fixed 4-col) so 3 cards fill 3 columns instead
   of leaving an empty 4th grid track that shows the hairline background
   as a blank grey panel (seen on /status once T131 dropped Capacity). */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);
border-radius:var(--radius);overflow:hidden;margin-bottom:30px}
/* T193 PR 3: /admin/backups' Status panel shows 1-3 cards depending on
   restore state, so the narrow-width `repeat(2,1fr)` / `1fr 1fr`
   overrides below would leave the same blank grey track the auto-fit
   rule above exists to avoid - for the 1-card case at <=480, and
   (review nit) equally for the 3-card case at 401-599, where three
   cards in a 2-up grid leave a fourth track empty. Higher specificity
   than either media rule, so it wins at every width regardless of
   source order. */
.backups-status .cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.card{background:var(--card);padding:24px 20px;transition:background .18s}
.card:hover{background:var(--card2)}
.card-label{font-size:12px;color:var(--muted);margin-bottom:5px}
.card-value{font-size:25px;font-weight:780;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.card-value--small{font-size:15px;font-weight:600;letter-spacing:0;line-height:1.4}  /* T418 */
.ok{color:var(--ok)}.bad{color:var(--red2)}.warn{color:var(--warn)}
/* T152: stopped on purpose is not a fault - it reads muted, not red. */
.off{color:var(--muted)}
/* T316: /admin/users status column (text label + color, not color alone)
   and the "you are logged in with this user" marker (was bare "(you)"). */
.status-ok{color:var(--ok)}.status-bad{color:var(--red2)}.status-amber{color:var(--amber)}
.you-marker{color:var(--red2)}
.table-wrap{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto;margin-top:16px}
/* T185: /access-log and /restart-log can carry up to 200 rows with no
   cap, pushing the page to several viewports and the footer far past a
   "marathon scroll" away - the exact complaint. `<pre>` (on /logs) has
   solved this since T150 (max-height:72vh + its own overflow:auto); this
   is the same treatment for the two tables that never got it. `thead` is
   sticky so scrolling the now-internal table doesn't scroll the column
   headers out of view - without it, a bounded scroll box is a worse
   trade than the marathon scroll it replaces. */
.table-wrap--scroll{max-height:clamp(220px,calc(100vh - 500px),700px);overflow-y:auto}
.table-wrap--scroll thead th{position:sticky;top:0;background:var(--bg3);z-index:1}
/* T443: the restart-log and access-log tables scale like .logbox does. */
.table-wrap--log{max-height:clamp(300px,calc(100vh - 470px),80vh);
max-height:clamp(300px,calc(100svh - 470px),80svh)}
/* T209: /admin/users' per-row actions (role <select> + up to 3 buttons)
   were bare inline elements with no gap - "garbled" at any width once a
   row grew all of them. Flex+wrap+gap, same spacing language as
   .kick-roster's own action row below. */
/* T162: the Testing page's ability list. Plain sentences, wrapped as
   chips - `.cards` made fifteen of them read as fifteen metrics, and
   its last-child rule stretched the odd one across the whole row. */
.ability-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:14px 0 0}
.ability-list li{background:var(--card);border:1px solid var(--border);border-radius:999px;padding:6px 14px;font-size:.94rem}
.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:200px}
.row-actions .btn{padding:7px 13px;font-size:13px}
/* T412: /admin/users - compact rows + one Actions menu. overflow visible so
   the menu panel isn't clipped; below 760px rows become cards, so no
   horizontal scroll is needed at any width. */
.users-table-wrap{overflow:visible}
.users-table .role-select{width:128px!important}
.users-table .user-sub{display:block;font-size:12px;color:var(--muted2);font-variant-numeric:tabular-nums}
.users-table .user-cell .you-marker{font-size:12px}
.users-table .actions-cell{text-align:right;white-space:nowrap}
.users-table .actions-cell>.dim{display:block;font-size:12px;margin-bottom:4px}
.row-menu{position:relative;display:inline-block;text-align:left}
.row-menu>summary{list-style:none;padding:7px 13px;font-size:13px;cursor:pointer}
.row-menu>summary::-webkit-details-marker{display:none}
.row-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:25;width:250px;display:flex;
flex-direction:column;gap:6px;padding:10px;background:var(--bg2);border:1px solid var(--border-strong);
border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.6);white-space:normal}
.row-menu-panel .btn{padding:7px 12px;font-size:13px;justify-content:flex-start}
.row-menu-panel .menu-row{display:flex;gap:6px}.row-menu-panel .menu-row>*{flex:1;min-width:0}
.row-menu-panel .menu-row .btn{justify-content:center}
.row-menu-panel .field{margin:0;padding:7px 10px;font-size:13px}
.menu-label{margin-top:4px;font-size:10.5px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted2)}
.menu-note{font-size:12px}.menu-sep{height:1px;background:var(--border);margin:2px 0}
@media(max-width:760px){
.users-table thead{display:none}
.users-table,.users-table tbody{display:block}
.users-table tr{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px 16px;border-bottom:1px solid var(--border)}
.users-table td{display:block;padding:0;border:0}
.users-table td.user-cell{grid-column:1/-1}
.users-table td[data-label]:not(.user-cell)::before{content:attr(data-label);display:block;font-size:10.5px;
font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted2)}
.users-table .actions-cell{grid-column:1/-1;text-align:left}
.row-menu-panel{left:0;right:auto;width:min(280px,calc(100vw - 60px))}}
/* T209(b): in-app confirm, replacing native confirm() on /admin/users
   (block/unblock-triggering role changes/delete/reset-credential). Sits
   above everything, dims the page instead of the browser's own chrome. */
.modal-backdrop{position:fixed;inset:0;z-index:60;display:flex;
align-items:center;justify-content:center;padding:20px;
background:rgba(7,6,13,.72);backdrop-filter:blur(3px)}
.modal-backdrop[hidden]{display:none}
.modal{width:min(420px,100%);box-shadow:0 28px 90px rgba(0,0,0,.66),0 0 60px rgba(139,98,217,.12)}
.modal p{margin:0 0 20px;color:var(--text);font-size:15px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px}
/* T286 PR A: the step-up re-auth modal is a native <dialog> (§2c) —
   the UA already centers it and paints ::backdrop on showModal(), so it
   needs none of .modal-backdrop's own fixed/flex positioning, just the
   same card look (reuses .modal .panel) plus a border reset. */
#step-up-dialog{border:1px solid var(--border-strong);color:var(--text)}
#step-up-dialog::backdrop{background:rgba(7,6,13,.72);backdrop-filter:blur(3px)}
#step-up-dialog .field{margin-bottom:12px}
/* Off-canvas, not `hidden`/type=hidden (S2/§2c) — stays in the layout
   (so a password manager's form-fill heuristics still see it paired
   with the real password field) while being invisible and unreachable
   to a real user (aria-hidden + tabindex=-1 on the element itself). */
.visually-hidden-field{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
table{width:100%;border-collapse:collapse}thead{background:var(--bg3)}
th{padding:11px 16px;text-align:left;font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:var(--violet2);border-bottom:1px solid var(--border)}
td{padding:11px 16px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}
tbody tr:last-child td{border-bottom:none}tbody tr:hover td{background:var(--bg3)}
.window{background:var(--card);border:1px solid var(--border);border-radius:20px;
overflow:hidden;box-shadow:0 22px 80px rgba(0,0,0,.55)}.window-bar{height:42px;display:flex;align-items:center;gap:7px;
padding:0 15px;background:var(--bg3);border-bottom:1px solid var(--border)}.dot{width:11px;height:11px;border-radius:50%}
.dot.r{background:#ff5f57}.dot.y{background:#ffbd2e}.dot.g{background:#28c840}.window-title{flex:1;text-align:center;
font-size:12px;color:var(--muted2);padding-right:48px}.grafana-frame{display:block;width:100%;height:min(72vh,820px);min-height:540px;border:0;background:var(--bg2)}
/* T440: the Grafana embed is the one block that must not sit in the text
   column - a 24-column dashboard squeezed to ~1160px renders as a stack of
   unreadable strips. Full-bleed up to 1900px, and tall enough that the
   dashboard has no inner scrollbar of its own. */
.window--wide{width:var(--page-wide,min(96vw,1900px));
margin-left:calc(50% - var(--page-wide,min(96vw,1900px)) / 2)}
.window--wide .grafana-frame{height:min(230vh,2400px)}
@media(max-width:1100px){.window--wide{width:auto;margin-left:0}
.window--wide .grafana-frame{height:min(150vh,1600px)}}
.window--wide .grafana-frame--logs{height:max(600px,calc(100svh - 110px))}  /* T465 */.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:20px}
/* Server access polish: a panel whose whole point is a risky/destructive
   action (Confirm removal, Open server) gets a red-tinted frame so it
   doesn't read as just another grey box next to the safe controls. */
.panel--danger{border-color:rgba(220,79,107,.34);
background:linear-gradient(180deg,rgba(220,79,107,.05),rgba(220,79,107,.015) 55%,var(--card))}
.panel--danger .section-tag{color:var(--red2)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 17px;border-radius:9px;border:1px solid var(--border-strong);
cursor:pointer;font-weight:650;transition:.2s;background:var(--card2);color:var(--text)}
.btn:hover{background:var(--bg3);border-color:var(--violet-line)}
/* T150: the primary action carries the brand violet (was flat white). */
.btn-primary{background:linear-gradient(180deg,#8b62d9,#6f45c4);color:#fff;border-color:transparent;
box-shadow:0 4px 18px rgba(139,98,217,.28)}
.btn-primary:hover{background:linear-gradient(180deg,#9a74e2,#7d52d2);box-shadow:0 4px 26px rgba(139,98,217,.42)}
.btn-danger{background:rgba(220,79,107,.14);
color:var(--red2);border-color:rgba(220,79,107,.32)}.btn-danger:hover{background:rgba(220,79,107,.24)}
.btn:disabled{opacity:.5;cursor:default}
.kick-roster{list-style:none;padding:0;margin:14px 0 0}.kick-roster li{display:flex;justify-content:space-between;
align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.kick-roster li:last-child{border-bottom:0}
.kick-roster .btn{padding:7px 13px;font-size:13px}
/* T137: slide-then-hold kick control */
.sk{position:relative;width:210px;height:36px;border-radius:10px;background:var(--bg3);border:1px solid rgba(220,79,107,.32);
overflow:hidden;user-select:none;touch-action:none;flex:none}
.sk-fill{position:absolute;inset:0;width:0;background:rgba(220,79,107,.28);transition:width .05s linear}
.sk-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:650;
color:var(--red2);pointer-events:none}
.sk-handle{position:absolute;top:2px;left:2px;width:44px;height:30px;border-radius:8px;background:var(--red);color:#fff;
display:flex;align-items:center;justify-content:center;font-weight:800;cursor:grab;transition:left .15s ease}
.sk.grab .sk-handle{transition:none;cursor:grabbing}
.sk.done{opacity:.55;pointer-events:none}.sk.done .sk-fill{width:100%}
pre{white-space:pre-wrap;word-break:break-word;background:var(--bg2);border:1px solid var(--border);border-radius:12px;
padding:18px;max-height:72vh;overflow:auto;color:#cec9e6;font:12px/1.7 "SFMono-Regular",Consolas,monospace}
/* T150: the card sits in the lower third of the backdrop, not centred. */
/* T412: minus topbar + main padding + footer, so the footer shows without scrolling. */
.login-shell{min-height:calc(100svh - 290px);display:flex;align-items:flex-end;justify-content:center;position:relative}
.login-card{width:min(430px,100%);
background:rgba(13,11,24,.80);border:1px solid var(--violet-line);border-radius:20px;padding:30px;
box-shadow:0 28px 90px rgba(0,0,0,.66),0 0 60px rgba(139,98,217,.10);backdrop-filter:blur(14px)}
.login-card h1{font-size:36px;letter-spacing:-.5px;margin:18px 0 8px;
background:none;-webkit-text-fill-color:var(--text);color:var(--text)}
.login-card p{color:var(--muted);margin:0 0 22px}
/* Inputs stay obviously inputs - crisp fill, visible edge, violet focus. */
.field{width:100%;padding:12px 14px;background:rgba(9,7,18,.74);color:var(--text);border:1px solid var(--border-strong);border-radius:10px;
outline:none;margin-bottom:12px;transition:border-color .18s,box-shadow .18s}
.field::placeholder{color:var(--muted2)}
.field:focus{border-color:rgba(139,98,217,.65);box-shadow:0 0 0 3px rgba(139,98,217,.14)}
.field-wrap{position:relative}.field-wrap .field{padding-right:44px}
.form-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.form-row .field{width:auto;flex:1;min-width:160px;margin-bottom:0}
.field-narrow{width:90px!important;flex:none!important}
.pw-toggle{position:absolute;right:6px;top:0;bottom:12px;margin:auto 0;height:32px;width:32px;background:none;border:none;
color:var(--muted);cursor:pointer;font-size:16px;line-height:1;border-radius:8px}.pw-toggle:hover{color:var(--text)}
.pw-toggle:focus-visible{outline:2px solid rgba(139,98,217,.6);outline-offset:1px}
.remember{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:2px 0 18px}.login-card .btn{width:100%}
/* T210 arm 2: the "I have an invite code" entry point below the form. */
.invite-cta{text-align:center;font-size:13px;margin:14px 0 0}
.invite-cta a{color:var(--violet2)}
.notice{padding:12px 14px;border-radius:10px;background:rgba(220,79,107,.1);border:1px solid rgba(220,79,107,.22);color:var(--red2);margin-bottom:16px}
/* T210 arm 1: an inline field-level "required" error, same red as .notice
   above, instead of a generic banner. */
.field-error{color:var(--red2);font-size:13px;margin:-6px 0 12px}
.field.field-invalid{border-color:var(--red2)}
/* T211: a non-alarming (violet, not red) marker on the Users board's
   Status column for invited/awaiting_first_login rows. */
.pending-badge{color:var(--violet2);font-size:11px;font-weight:650}
/* T213: the copy-paste Discord message rendered alongside a freshly
   shown one-time code (Add User / Reset credential). */
.invite-copy{margin-top:10px;display:flex;flex-direction:column;gap:8px;max-width:520px}
.invite-copy textarea{resize:vertical;font-family:inherit}
/* T214: the reduced-dashboard-shell warning box (still used by
   server_access.html's "build disallows enforcement" operator notice).
   T311 superseded the plan's original idea of reusing this exact class
   for the site-wide banner (its box/centered shape is exactly what the
   owner said the site-wide banner must NOT be - see .rules-topbanner,
   below) - this class stays, scoped back to its original dashboard/
   server-access use. */
.rules-banner{padding:20px 22px;border-radius:var(--radius);background:rgba(220,79,107,.16);
border:2px solid var(--red2);color:var(--red2);margin-bottom:20px;text-align:center;
font-size:17px;font-weight:700;letter-spacing:.2px}
.rules-banner a{color:#fff;text-decoration:underline;text-underline-offset:3px}
/* T503: dashboard banners match the width of the cards under them; the votes card's
   -28px pull-up must not climb over a banner. --notice = amber, informational. */
.rules-banner.page-wide{margin-bottom:46px}
.rules-banner~.votes-card--page{margin-top:0}
.rules-banner--notice{background:rgba(242,153,74,.12);border-color:var(--amber);color:var(--amber)}
@media(max-width:1100px){.rules-banner.page-wide{margin-bottom:20px}}
/* T311: the site-wide "not yet brethren" banner - a slim strip under the
   fixed 58px topbar, on every signed-in page, content never covered
   (normal document flow, pushes .hero/main down by its own height
   instead of overlapping them). `margin-top:58px` clears the fixed
   topbar; the adjacent-sibling rules zero the hero's/main's OWN 58px
   top margin so the two don't stack into a double gap. `--hard` (locked
   to readonly) and `--grace` (still has full powers) are visually
   distinct on purpose - same red family as .rules-banner for --hard,
   violet (the site's own accent, not alarm-coded) for --grace. */
.rules-topbanner{position:relative;z-index:15;margin-top:58px;padding:12px 24px;
text-align:center;font-size:14px;line-height:1.5;font-weight:600}
.rules-topbanner+.hero,.rules-topbanner+main{margin-top:0}
.rules-topbanner a{color:#fff;text-decoration:underline;text-underline-offset:3px;
font-weight:700;white-space:nowrap}
.rules-topbanner--hard{background:rgba(220,79,107,.20);border-bottom:2px solid var(--red2);color:#fff}
.rules-topbanner--grace{background:var(--violet-soft);border-bottom:2px solid var(--violet-line);color:var(--text)}
/* T214: the Accept/Decline buttons on /rules/accept - two independent
   forms (separate POST endpoints) laid out side by side. */
.rules-accept-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}
.rules-accept-form{margin:0}
/* T199: the set-password page's username line - a plain sentence, not
   a field, so it doesn't compete visually with the two password inputs. */
.set-pw-username{color:var(--muted);margin:0 0 16px;font-size:14px}
.set-pw-username strong{color:var(--text)}

/* T150: /docs, /changelog and /guide render markdown into .docs. These
   were unthemed - the old `.docs h1{-webkit-text-fill-color:initial;
   background:none}` was there only to undo the gradient h1 and left the
   heading looking like default browser markup. Restyled properly here. */
/* Slightly translucent so the burrow glow bleeding up from the bottom of
   the page is visible through the card instead of being boxed out by it -
   the card spans the full column, so at full opacity the backdrop would
   only ever show in the side margins. */
.docs{background:rgba(15,13,27,.80);border:1px solid var(--border);border-radius:var(--radius);padding:30px 34px;color:#bdb8d6}
.docs h1{font-family:var(--display);font-size:34px;font-weight:600;letter-spacing:-.5px;color:var(--text);
-webkit-text-fill-color:var(--text);background:none;margin:0 0 14px}
.docs h2{font-size:23px;letter-spacing:-.4px;color:var(--text);margin:34px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.docs h3{font-size:17px;color:var(--text);margin:24px 0 8px}
.docs h4{font-size:15px;color:var(--text);margin:18px 0 6px}
.docs p{margin:0 0 14px}
.docs a{color:var(--violet2);text-decoration:underline;text-decoration-color:rgba(172,139,239,.35);text-underline-offset:3px}
.docs a:hover{color:var(--text);text-decoration-color:var(--violet2)}
.docs ul,.docs ol{margin:0 0 14px;padding-left:22px}.docs li{margin:4px 0}
.docs code{background:rgba(139,98,217,.12);border:1px solid rgba(139,98,217,.18);border-radius:5px;
padding:1px 6px;color:var(--violet2);font:12px/1.5 "SFMono-Regular",Consolas,monospace}
.docs pre{background:var(--bg2);margin:0 0 16px}.docs pre code{background:none;border:0;padding:0;color:#cec9e6}
.docs blockquote{margin:0 0 16px;padding:12px 16px;border-left:3px solid var(--violet-line);
background:var(--violet-soft);border-radius:0 10px 10px 0;color:var(--muted)}
.docs hr{border:0;border-top:1px solid var(--border);margin:28px 0}
.docs table{margin:16px 0}.docs img{border-radius:10px}
.docs strong,.docs b,.docs th{color:var(--text)}
/* T196: the /architecture inline SVG diagram - themed off the same CSS
   variables as everything else so it doesn't look like a bolted-on
   generic diagram. `width:100%;height:auto` keeps it responsive within
   its own viewBox. */
.arch-diagram{display:block;width:100%;height:auto;margin:14px 0 10px}
/* T373: four views; on a phone each scrolls sideways instead of shrinking
   its text to nothing (replaces T196's separate mobile diagram). */
.arch-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.arch-scroll .arch-diagram{min-width:860px}
.arch-toc{margin:4px 0 8px;color:var(--muted);font-size:14px}
.arch-toc a{color:var(--violet2)}
.arch-link rect{transition:stroke .15s,fill .15s}
.arch-link:hover rect,.arch-link:focus-visible rect{stroke:var(--violet2);fill:var(--bg3)}
.arch-link:focus-visible{outline:none}
.arch-node--alt{fill:var(--card);stroke:var(--border-strong);stroke-dasharray:2 3}
.arch-lane{fill:var(--violet-soft);stroke:var(--border);opacity:.55}
.arch-lane-label{font:700 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:var(--text)}
.arch-lane-sub{font:10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:var(--muted)}
.arch-legend{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--muted)}
.arch-legend li{display:flex;align-items:center;gap:6px}
/* T196 rework 2: a single wide viewBox scaled down to a 360px viewport
   renders its text illegibly small - swap to a narrow-viewBox stacked
   diagram instead of just scaling the wide one further. `display:none`
   removes the hidden one from the accessibility tree too (screen readers
   don't announce both). */

/* T377: the untrusted-content quarantine fence (templates/partials/
   untrusted.html). The point is that user-submitted text must not be
   typographically interchangeable with text the board itself wrote, so
   this deliberately does NOT reuse .panel/.dim: a left rule in amber,
   a monospace body, and the marker sentence above it. Amber, not red -
   a ticket is not an error, it is just not ours. */
.uq{border:1px solid rgba(242,153,74,.34);border-left:4px solid var(--amber);
border-radius:10px;background:rgba(242,153,74,.05);padding:12px 14px;margin:12px 0}
/* Sentence case, not uppercase: the marker is a sentence an admin (or an
   assistant) has to actually READ, and two lines of shouting caps per
   fence is skimmed past, which defeats the point. */
/* Owner 2026-09-20: a short, plain label - the long sentence moved into
   the title attribute, so it no longer shouts at the admin in amber. */
.uq-marker{font-size:12px;font-weight:600;letter-spacing:.1px;
color:var(--muted);margin-bottom:8px;line-height:1.5}
.uq-marker-standalone{margin:0 0 12px;font-weight:600}
/* pre-wrap so a multi-line ticket body still reads as the member typed
   it; overflow-wrap so a pasted 400-character "word" can't widen the
   page (the fence is the boundary, visually and in layout). */
.uq-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,
SFMono-Regular,Menlo,Consolas,monospace;font-size:13.5px;line-height:1.6}
.uq-inline{display:inline-block;max-width:100%;overflow-wrap:anywhere;
border-left:3px solid var(--amber);background:rgba(242,153,74,.05);
padding:1px 7px;border-radius:5px;font-family:ui-monospace,SFMono-Regular,Menlo,
Consolas,monospace;font-size:13px}

/* T376: the /admin/status freshness stamp. A stale snapshot has to LOOK
   stale - the amber/red left rule is the whole mechanism. `missing` is
   red rather than amber: "never generated here" is a worse state to
   misread as current than "generated a while ago". */
.status-stamp{border-left:4px solid var(--ok)}
.status-stamp-stale{border-left-color:var(--amber)}
.status-stamp-missing{border-left-color:var(--red2)}
.status-stamp p{margin:0 0 8px}.status-stamp p:last-child{margin-bottom:0}
/* T378: the live-PR table. `table{width:100%}` plus .table-wrap's
   overflow-x means a narrow viewport squeezes columns to nothing instead
   of scrolling — at 390px the Title column collapsed to one character
   per line. A min-width makes .table-wrap's horizontal scroll actually
   engage, which is what it is there for. Scoped to this table so no
   other page's layout moves. */
.pr-table table{min-width:820px}

.arch-node{fill:var(--card);stroke:var(--border-strong);stroke-width:1.5}
.arch-node--dim{fill:var(--card);stroke:var(--border);stroke-dasharray:4 3}
.arch-node-title{font:700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
fill:var(--text);text-anchor:middle}
.arch-node-sub{font:11px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
fill:var(--muted);text-anchor:middle}
.arch-node-caption{font:9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
fill:var(--muted);text-anchor:middle;opacity:.8}
.arch-edge{stroke:var(--violet-line);stroke-width:2}
.arch-edge--dim{stroke:var(--border);stroke-dasharray:5 4}
.arch-arrowhead{fill:var(--violet-line)}
/* T196 rework: brief inline labels on the diagram's edges (HTTPS,
   /internal/* (bearer), scrape, webhook, ...) - small and muted so they
   read as annotations, not competing with the node labels. Positioned
   right next to their own segment (rework 2 - they used to float). */
.arch-edge-label{font:10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
fill:var(--muted);text-anchor:middle}
/* T196 rework 2: the mobile diagram's "OBSERVABILITY" section divider. */
.arch-section-label{font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
fill:var(--muted);text-anchor:middle;letter-spacing:.08em}

/* T143: EN/DE toggle on /guide */
/* T143: EN | DE segmented control. Both options always visible; the active
   one is a filled, non-interactive segment, the other is the link. Right-
   aligned above the guide body like the old bare link was. */
.lang-toggle{display:flex;justify-content:flex-end;margin:-8px 0 18px}
.lang-seg{display:inline-flex;border:1px solid var(--violet-line);border-radius:999px;overflow:hidden}
.lang-opt{padding:5px 15px;font-size:12px;font-weight:700;letter-spacing:.6px;
color:var(--muted);background:var(--violet-soft);transition:background .15s,color .15s}
.lang-opt+.lang-opt{border-left:1px solid var(--violet-line)}
.lang-opt:not(.is-active):hover{color:var(--violet2);background:rgba(139,98,217,.24)}
.lang-opt.is-active{background:var(--violet);color:#fff;cursor:default}

/* T150: 404 gets the theme and the mascot instead of bare text. */
.nf{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:6vh 20px 10vh}
/* The mascot *is* the zero. Flex + gap rather than letter-spacing, which
   does nothing between flex items; align-items:center sidesteps Georgia's
   old-style figures, where 4 is a descending glyph and a baseline-aligned
   image would sit visibly high between the two of them. */
.nf-code{display:flex;align-items:center;justify-content:center;gap:.05em;
font-family:var(--display);font-size:clamp(72px,14vw,150px);line-height:1;
background:linear-gradient(165deg,rgba(184,155,245,.95),rgba(130,92,190,.60));
-webkit-background-clip:text;background-clip:text;color:transparent}
/* translateY: align to the 4's *ink*, not its line box. Georgia's 4 is an
   old-style figure that descends below the baseline (measured at 140px:
   75px ink above, 25px below), so the glyph's optical centre sits .168em
   lower than the flex centre align-items:center gives us. In em so it
   holds across the clamp. Width stays .8em against the digit's .714em ink
   - a circle has to overshoot slightly to read as the same size. */
/* The zero is a shortcut home. It carries the offset now (it's the flex
   item); the hover lift is the only thing telling anyone it's clickable,
   so it's deliberately not subtle. The real control is the button below -
   this is a bonus, not the way out of the page. */
.nf-code a{flex:none;display:block;width:.8em;height:.8em;border-radius:50%;
transform:translateY(.168em);transition:transform .25s ease,box-shadow .25s ease;
box-shadow:0 0 0 1px var(--violet-line),0 0 44px rgba(139,98,217,.45)}
.nf-code a:hover{transform:translateY(.168em) scale(1.07);
box-shadow:0 0 0 1px var(--violet2),0 0 66px rgba(139,98,217,.75)}
.nf-code img{display:block;width:100%;height:100%;border-radius:50%}
.nf h2{font-family:var(--display);font-size:26px;font-weight:600;letter-spacing:.3px}
.nf p{color:var(--muted);max-width:430px;margin:0}

/* T157: footer + the "Debug the Boneless" sub-tab strip. */
.site-footer{position:relative;z-index:1;width:100%;max-width:1220px;margin:40px auto 0;   /* T443: same flex-stretch fix as main */
padding:22px 28px 34px;border-top:1px solid var(--border);
color:var(--muted2);font-size:12.5px;text-align:center}
/* T412: short viewports (zoomed-in desktops) - tighter vertical rhythm so the
   login card + footer still fit without scrolling. */
@media(max-height:820px){.login-shell{min-height:calc(100svh - 200px)}
main:has(.login-shell){padding-top:18px;padding-bottom:20px}
main:has(.login-shell)~.site-footer{margin-top:14px;padding-top:14px;padding-bottom:16px}
.login-card{padding:22px 26px}.login-card h1{margin-top:12px}.login-card .invite-cta{margin-bottom:0}}
.site-footer a{color:var(--muted);text-decoration:underline;
text-decoration-color:var(--violet-line);text-underline-offset:3px}
.site-footer a:hover{color:var(--text)}
.log-tabs{display:flex;gap:4px;margin:0 0 20px;flex-wrap:wrap}
.log-tabs a{padding:7px 14px;border-radius:8px;font-size:13px;font-weight:600;
color:var(--muted);border:1px solid var(--border);transition:background .15s,color .15s}
.log-tabs a:hover{color:var(--text);background:var(--bg3)}
.log-tabs a.is-active{background:var(--violet-soft);color:var(--violet2);
border-color:var(--violet-line);cursor:default}

.nav-drop{position:relative}input.nav-toggle-input{display:none}.nav-toggle-btn{display:none}
@media(prefers-reduced-motion:reduce){
.mist i{animation:none}.pulse{animation:none}
*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:800px){.topbar{padding:0 16px}
.role{display:none}main{padding:26px 14px 45px}
.rules-topbanner{padding:10px 16px;font-size:13px}
/* T151: drop the clamp min-height floor (stayed 500px on mobile = tall
   empty band) and add a real small-screen h1 size step. */
.hero{min-height:auto;padding:42px 12px 44px}h1{letter-spacing:-.5px;font-size:clamp(28px,7vw,44px)}
/* T151: below 800 the stat row leaves its absolute bottom:24px lane (it
   overlapped the flex-centred title on a short viewport) and flows under
   the title. filter:none / z-index carry over from the base rule. */
.hero>.hero-stats{position:static;transform:none;left:auto;bottom:auto;width:100%;max-width:560px;margin:30px auto 0}
.hero-stats .cards{grid-template-columns:repeat(3,1fr)}
.cards{grid-template-columns:repeat(2,1fr)}
/* T401: with a fixed 2-up grid, an ODD number of cards leaves the last
   track empty - and an empty track here is not neutral, it shows the page
   backdrop through a hole in an otherwise solid bordered block. T193 PR 3
   hit this for 1 and 3 cards and solved its own case with an auto-fit
   override; this is the general form, so /status (5 cards since T401) and
   the hero (4) both stay solid whatever the count. Only inside this
   media query - the auto-fit rule above never has the problem. */
.cards>.card:last-child:nth-child(odd){grid-column:1/-1}
.grafana-frame{min-height:520px;height:75vh}.section-head{align-items:start;flex-direction:column}
.docs{padding:22px 20px}.login-shell{min-height:calc(100svh - 272px)}
/* T151: the whole nav collapses behind the ☰ menu HERE, at 800px - not at
   480. The admin nav has 9 links and never fit the 58px row between 481
   and 800px: nav-links overflowed right and pushed "Log out" (in
   nav-meta) clean off the screen edge with no way to reach it. Below is
   the T108/T131 tap-menu mechanism, moved up from the 480 breakpoint.
   Checkbox toggle, not <details>: modern engines hide closed <details>
   content via content-visibility, which plain CSS display can't undo. */
.nav-meta{margin-left:12px;order:1}.nav-drop{order:2;margin-left:8px}
.nav-toggle-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;
border-radius:8px;border:1px solid var(--border-strong);font-size:16px;color:var(--text);cursor:pointer}
.nav-links{display:none;flex-direction:column;position:absolute;top:40px;right:0;min-width:170px;
background:var(--bg2);border:1px solid var(--border-strong);border-radius:10px;padding:8px;gap:2px;
z-index:30;box-shadow:0 12px 40px rgba(0,0,0,.6)}
.nav-links a{padding:9px 10px;border-radius:6px}.nav-links a:hover{background:var(--bg3)}
/* the underline indicator makes no sense in a vertical dropdown */
.nav-links a.active:after{display:none}.nav-links a.active{background:var(--violet-soft);color:var(--violet2)}
.nav-toggle-input:checked~.nav-links{display:flex}
/* T412: in the ☰ menu a group is a small heading + its pages, always open. */
.nav-links{max-height:calc(100vh - 80px);overflow-y:auto;align-items:stretch}
.nav-group{flex-direction:column;align-items:stretch;height:auto;gap:0}
.nav-group-main,.nav-caret{display:none}
.nav-sub{display:flex;position:static;min-width:0;padding:0;background:none;border:0;box-shadow:none}
.nav-sub-head{display:block;padding:10px 10px 3px;font-size:10.5px;font-weight:700;letter-spacing:.8px;
text-transform:uppercase;color:var(--muted2)}}
@media(max-width:600px){
/* T151: below 600 the three hero stat cards stack instead of being crushed
   into a 3-track grid (a value like the Steam build id doesn't fit). More
   specific than the 480 `.cards` rule, so it also overrides that. */
.hero-stats .cards{grid-template-columns:1fr}}
@media(max-width:480px){.brand span{display:none}.nav-meta{margin-left:10px}.cards{grid-template-columns:1fr 1fr}
.card{padding:18px 14px}.card-value{font-size:20px}.grafana-frame{min-height:580px}.window-title{padding-right:0}}

/* T400 - the status board, 1:1 with the artifact it replaces. Scoped under
   .board so nothing here reaches another page; colours come from the
   portal's own variables so it inherits the site theme rather than
   carrying a second palette. */
.board .board-head{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:flex-end;justify-content:space-between;margin-bottom:22px}
.board .board-head p{margin:6px 0 0;max-width:60ch;opacity:.85}
.board .eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;opacity:.6;font-weight:600}
.board .stamp{font-size:12px;opacity:.6;text-align:right}
/* A snapshot past STATUS_STALE_SECONDS must not read as current - same
   amber the prose page's stamp uses. */
.board .stamp-stale{color:var(--amber);opacity:.95}
.board .strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin-bottom:30px}
.board .stat{display:block;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px 14px}
.board .stat b{display:block;font-size:26px;font-weight:500;line-height:1.15;font-variant-numeric:tabular-nums}
.board .stat span{font-size:12px;opacity:.65}
.board .stat em{font-style:normal;font-size:11px;opacity:.8;display:block;margin-top:3px}
.board section{margin-bottom:34px}
.board .sec-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.12)}
.board .sec-head h2{margin:0;font-size:20px}
.board .sec-head p{margin:0;font-size:13px;opacity:.65}
.board ul.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
/* The artifact's two-column block: one column on a phone, two once each
   fits 300px - the same auto-fit shape the stat strip already uses. */
.board .two{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;align-items:start}
.board li.row{border:1px solid rgba(255,255,255,.12);border-radius:10px}
.board li.row.act{border-left:3px solid var(--amber)}
.board .line{display:grid;grid-template-columns:auto 1fr auto;gap:10px 14px;align-items:baseline;padding:11px 14px}
.board .id{font-family:ui-monospace,monospace;font-size:13px;opacity:.75;white-space:nowrap}
/* The merge-queue position. Heavier than the PR number beside it, because
   the position is what the owner acts on ("click the top one"). */
.board .queue-n{display:inline-block;min-width:1.4em;text-align:right;color:var(--amber);font-weight:600}
.board .what{min-width:0}
.board .what b{font-weight:600}
.board .what small{display:block;font-size:12.5px;opacity:.7;margin-top:2px}
.board .chip{font-size:11px;font-weight:600;letter-spacing:.03em;padding:3px 8px;border-radius:999px;white-space:nowrap;align-self:center;border:1px solid rgba(255,255,255,.12);opacity:.85}
.board details>summary{list-style:none;cursor:pointer}
.board details>summary::-webkit-details-marker{display:none}
.board details[open]>summary .what b::after{content:" \25be";opacity:.6}
.board details:not([open])>summary .what b::after{content:" \25b8";opacity:.6}
.board .how{padding:0 14px 14px;border-top:1px solid rgba(255,255,255,.12);margin-top:2px}
.board .how .none{font-size:13px;opacity:.7;margin:10px 0 0}
.board .note{border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:14px 16px;font-size:13.5px;opacity:.9}
.board .note p{margin:0 0 10px}
.board .note p:last-child{margin-bottom:0}
.board .note.quarantine{border-left:3px solid var(--red2)}
.board .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}

/* Rows and tiles are links (T400: "and also have the clickable links").
   `color:inherit` keeps the row reading as a row rather than as a wall of
   underlined link text; the hover lift is what says it is clickable. */
.board a.stat,.board a.line{color:inherit;text-decoration:none}
.board a.stat:hover,.board a.stat:focus-visible{border-color:var(--amber)}
.board a.line:hover,.board a.line:focus-visible{background:var(--card2);border-radius:10px}
.board a.line:focus-visible,.board a.stat:focus-visible{outline:2px solid var(--amber);outline-offset:2px}

/* Chip colours. Each pairs the portal's own status hue with a tinted
   ground, so the chip carries meaning without relying on hue alone - the
   text inside always says which state it is. */
.board .chip.c-ok{border-color:rgba(79,214,168,.34);background:rgba(79,214,168,.12);color:var(--ok)}
.board .chip.c-warn{border-color:rgba(253,224,71,.32);background:rgba(253,224,71,.10);color:var(--warn)}
.board .chip.c-crit{border-color:rgba(220,79,107,.34);background:rgba(220,79,107,.12);color:var(--red2)}
.board .chip.c-act{border-color:rgba(242,153,74,.34);background:rgba(242,153,74,.12);color:var(--amber)}
.board .chip.c-idle{border-color:rgba(148,142,180,.28);background:rgba(148,142,180,.08);color:var(--muted)}

/* T395 (reviewer R5 on PR #306): the Features tables' state chips
   (`/admin/features` and `/features`) - unscoped, not `.board .chip`,
   since neither page is a `.board`. Same shape/colour logic as the
   board's own chips above, just not nested under it. */
.chip{font-size:11px;font-weight:600;letter-spacing:.03em;padding:3px 8px;border-radius:999px;white-space:nowrap;display:inline-block;border:1px solid rgba(255,255,255,.12);opacity:.85}
.chip-on{border-color:rgba(79,214,168,.34);background:rgba(79,214,168,.12);color:var(--ok)}
.chip-off{border-color:rgba(148,142,180,.28);background:rgba(148,142,180,.08);color:var(--muted)}
.chip-unavailable{border-color:rgba(253,224,71,.32);background:rgba(253,224,71,.10);color:var(--warn)}
.chip-unknown{border-color:rgba(242,153,74,.34);background:rgba(242,153,74,.12);color:var(--amber)}

.board .board-foot{border-top:1px solid rgba(255,255,255,.12);padding-top:14px;font-size:12.5px;opacity:.75}
.board .board-foot p{margin:0 0 6px}
.board .board-foot p:last-child{margin-bottom:0}
@media(max-width:520px){.board .line{grid-template-columns:1fr auto}.board .id{grid-column:1/-1}}
/* T421: ticket attachments */
.btn-small{padding:5px 11px;font-size:13px}
.ticket-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;border:1px dashed var(--border-strong);border-radius:9px}
.ticket-drop.is-drag{border-color:var(--violet2);background:rgba(150,110,225,.08)}
.ticket-drop .dim{font-size:13px}
.ticket-files{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.ticket-file{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
.ticket-file span{overflow-wrap:anywhere}
.ticket-thumb{display:block;max-width:220px;max-height:160px;border-radius:6px;border:1px solid var(--border)}
.ticket-thumb--small{max-width:64px;max-height:48px}
.ticket-att-links{font-size:13px;margin-top:4px;overflow-wrap:anywhere}
/* T112: /operations */
.ops-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0 14px}
.ops-tools .field{flex:1 1 260px;max-width:460px;margin:0}
.ops-toc{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px 16px;margin:0 0 22px}
.ops-toc summary{cursor:pointer;font-weight:600}
.ops-toc ol{margin:6px 0;padding-left:20px}
.ops-toc ol ol{font-size:14px}
.ops h2,.ops h3{scroll-margin-top:72px}
.ops pre{overflow-x:auto;max-width:100%}
/* T409: Account link next to Log out */
.nav-account{font-size:13px;color:var(--muted);text-decoration:none;margin-right:12px}
.nav-account:hover,.nav-account.active{color:var(--text)}
.field-label{display:block;font-size:13px;color:var(--muted);margin:0 0 4px}
/* T108: rendered markdown on phones - wide tables scroll in place, long
   inline commands wrap, instead of widening the whole page. */
.docs table{display:block;max-width:100%;overflow-x:auto}
.docs p,.docs li,.docs td{overflow-wrap:anywhere}
.docs pre{max-width:100%;overflow-x:auto}

/* Owner 2026-09-20: the footer belongs at the bottom of the window on a
   short page, not halfway up it. */
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
body>.site-footer{flex:0 0 auto}
/* Owner 2026-09-20: bold/highlighted words in the rendered docs were a
   touch too bright against the body copy. */
.docs strong,.docs b,.ops strong,.ops b{color:#ded9ee}
/* T61 (owner 2026-09-20): the log keeps its own scrollbar, so the page
   itself stays put and the nav never scrolls out of reach. */
.log-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 10px;flex-wrap:wrap}
.log-state{font-size:13px}
.log-state--live{color:var(--ok)}
.log-state--paused{color:var(--amber)}
/* T443 (owner 2026-09-23): the log box follows the window height. The
   clamp is the fallback; on the three debug pages the rule further down
   makes it fill exactly what is left, so the footer stays on screen. */
.logbox{height:clamp(300px,calc(100vh - 470px),80vh);
height:clamp(300px,calc(100svh - 470px),80svh);overflow:auto;margin:0}
.logbox.is-paused{border-color:var(--amber)}
.logbox:focus-visible{outline:2px solid var(--violet2);outline-offset:2px}
/* T112 search results (owner 2026-09-20) */
.ops-results{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:8px}
.ops-results li{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:8px 12px}
.ops-results a{display:block;font-weight:600}
.ops-results span{display:block;color:var(--muted);font-size:13px;margin-top:2px;overflow-wrap:anywhere}
.ops-noresult{color:var(--muted);font-size:14px}
.ops-results .ops-sub{font-weight:500;color:var(--violet2)}
/* Owner 2026-09-20: the three log buttons are back where they were, and
   stay put under the fixed top bar while the log scrolls. */
.log-tabs{width:fit-content;max-width:100%;padding:6px;border-radius:13px;margin:0 0 18px;
background:rgba(7,6,13,.9);border:1px solid var(--border)}
/* Owner 2026-09-21: it may float, but beside the content, never over it -
   so the rail only appears once the window is wide enough to hold it in
   the gutter; below that it sits in the flow at the top of the page. */
@media (min-width:1560px){
  .log-tabs{position:fixed;top:120px;left:calc(50% - 734px);z-index:5;
    flex-direction:column;width:118px;backdrop-filter:blur(12px)}
  .log-tabs a{text-align:center}
  /* T465: the Live/Search strip stays in the flow, under the page's own rail */
  .log-tabs--sub{position:static;flex-direction:row;width:fit-content;backdrop-filter:none}
}

/* Owner 2026-09-21: the single-action rows on /admin/users */
/* ---- /admin/users, owner + UX review 2026-09-21 --------------------- */
/* Owner 2026-09-21: the deleted-users filter sits at the table's top
   right; the invite pane below the table is always open and matches the
   table's width. */
.table-head-row{display:flex;justify-content:flex-end;margin:16px 0 8px}
.add-user-pane{margin-top:18px}
.add-user-pane .panel{margin:0;width:100%}

/* An open Actions menu highlights its own row, so it is never ambiguous
   which row it belongs to when it overlaps the next one. */
tbody tr:has(.row-menu[open]){background:var(--card2)}
.row-menu[open] .row-menu-panel{box-shadow:0 16px 40px rgba(0,0,0,.55)}
/* The timed read-only note is operationally urgent - weight, not colour. */
.status-amber{font-weight:600}
/* T436: votes & restarts card. Two `.vote-row` tiles (Vote / Server
   restart), each carrying its own tone class (status-amber/-ok/-bad/dim)
   so every piece below - the dot, the badge, the headline - can key off
   ONE class on the row instead of repeating the tone per child. Idle
   rows (`dim`, no `.is-active`) stay flat and quiet; an `.is-active` row
   gets a brighter tinted panel + a tone-coloured left edge so an open
   vote or a live countdown is unmistakable at a glance. */
/* Owner 2026-09-22: no outer box - Vote left, Server restart right. */
.vote-rows{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 22px}
@media(max-width:760px){.vote-rows{grid-template-columns:1fr}}
/* T441 (owner 2026-09-23): on the dashboard the card sits tighter under the
   hero, leaves a clear gap before Observability, and is nearly as wide as
   the full-bleed Grafana embed below it, so the two read as one column. */
/* T444: same --page-wide as the stat band, the heading and the embed. */
.votes-card--page{width:var(--page-wide,min(92vw,1780px));margin:-28px 0 74px;
margin-left:calc(50% - var(--page-wide,min(92vw,1780px)) / 2)}
@media(max-width:1100px){.votes-card--page{width:auto;margin-left:0}}
.vote-row{padding:16px 18px;border-radius:14px;background:var(--card);
border:1px solid var(--border);border-left:3px solid var(--border-strong)}
.vote-row-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--muted2)}
.vote-row-badge{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;
padding:3px 10px;border-radius:999px;color:var(--muted);border:1px solid var(--border-strong);
background:var(--bg3)}
.vote-row-headline{margin:6px 0 0;font-size:15.5px;font-weight:650;color:var(--text)}
.vote-row-headline a{color:var(--violet2);text-decoration:underline;font-weight:600}
.vote-row-detail{margin:3px 0 0;font-size:13px;color:var(--muted)}
/* Per-tone colouring, explicit rgba (not color-mix - T152 already found
   Chrome/Firefox disagree on newer colour functions on this project, so
   this file sticks to plain rgba everywhere else too). Same tone
   palette as .eyebrow--ok/--warn/--bad. */
.vote-row.status-amber .vote-row-headline{color:var(--amber)}
.vote-row.status-bad .vote-row-headline{color:var(--red2)}
.vote-row.status-ok .vote-row-headline{color:#8bf0c6}
.vote-row.dim .vote-row-headline{color:var(--muted);font-weight:600}
.vote-row.status-amber .vote-row-dot{background:var(--amber)}
.vote-row.status-bad .vote-row-dot{background:var(--red2)}
.vote-row.status-ok .vote-row-dot{background:var(--ok)}
.vote-row.status-amber .vote-row-badge{color:var(--amber);border-color:rgba(242,153,74,.34);background:rgba(242,153,74,.12)}
.vote-row.status-bad .vote-row-badge{color:var(--red2);border-color:rgba(220,79,107,.34);background:rgba(220,79,107,.12)}
/* Active rows get the tone as a left-edge accent + a brighter tinted
   panel, same "coloured border reads as urgent" language as
   .panel--danger; idle rows (no .is-active) stay flat and quiet. */
.vote-row.status-amber.is-active{border-left-color:var(--amber);background:rgba(242,153,74,.07)}
.vote-row.status-bad.is-active{border-left-color:var(--red2);background:rgba(220,79,107,.08)}
.vote-row.is-active .vote-row-dot{box-shadow:0 0 0 4px rgba(242,153,74,.16);animation:breathe 2.6s ease-in-out infinite}
.vote-row.status-bad.is-active .vote-row-dot{box-shadow:0 0 0 4px rgba(220,79,107,.16)}
.vote-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vote-row-kind{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:750;
letter-spacing:1px;text-transform:uppercase;color:var(--muted2)}
@media(max-width:480px){.vote-row-head{flex-wrap:wrap;gap:6px 10px}}
/* T436: vote tally - big numbers over a segmented bar (for / against / still to vote). */
.vote-tally{margin:12px 0 2px}
.vt-nums{display:flex;flex-wrap:wrap;gap:8px 22px}
.vt-num{display:flex;align-items:baseline;gap:6px;font-size:12.5px;color:var(--muted);text-transform:lowercase}
.vt-num b{font-size:26px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text)}
.vt-for b{color:var(--ok)}.vt-against b{color:var(--red2)}.vt-voted b{color:var(--amber)}
.vt-pending b{color:var(--muted)}.vt-total{margin-left:auto}.vt-total b{font-size:18px;color:var(--muted2)}
.vt-bar{display:flex;gap:3px;height:8px;margin-top:10px;border-radius:999px;overflow:hidden;background:var(--bg3)}
.vt-seg{min-width:6px}
.vt-seg-for{background:var(--ok)}.vt-seg-against{background:var(--red2)}
.vt-seg-voted{background:var(--amber)}.vt-seg-pending{background:rgba(255,255,255,.10)}

/* T436 round 2 (design preview - gallery only, see /__gallery): the
   tug-of-war bar. Yes fills from the left (green), no from the right
   (red), grey middle = still to vote; `.vt-tug-line` marks the decision
   point (views.py `_vote_decision` puts it at the bar's middle for both
   restart and kick votes - see that function's docstring for why).
   Adaptive text sits above the bar; the tie note is small print below. */
.vt-decision-text{margin:10px 0 0;font-size:13px;font-weight:650;color:var(--text)}
.vt-tug-bar{position:relative;display:flex;height:14px;margin-top:8px;border-radius:999px;
overflow:hidden;background:var(--bg3)}
.vt-tug-seg{min-width:4px;transition:flex .4s ease}
.vt-tug-for{background:var(--ok)}
.vt-tug-against{background:var(--red2)}
.vt-tug-pending{background:rgba(255,255,255,.10)}
.vt-tug-line{position:absolute;top:-3px;bottom:-3px;left:50%;width:2px;background:var(--muted2);opacity:.55}
.vt-tie-note{margin:6px 0 0;font-size:11px;color:var(--muted2)}
/* The winning segment surges/flashes a couple of times when a vote closes
   (paired with the result stamp below) - idle/open bars never animate. */
@keyframes vt-surge{0%{filter:brightness(1)}35%{filter:brightness(1.7);box-shadow:0 0 12px currentColor}100%{filter:brightness(1)}}
.vt-tug-seg.is-winner{animation:vt-surge 1.1s ease-out 2;color:inherit}
.vt-tug-for.is-winner{color:var(--ok)}
.vt-tug-against.is-winner{color:var(--red2)}

/* Viewer vote actions ("vote directly on the card") - positive button
   bottom-left, negative bottom-right; once voted, both buttons collapse
   into a single status line with a "switch" affordance. Ineligible
   viewers get a short reason line instead, no buttons. */
.vote-actions{margin-top:14px}
.vote-actions-row{display:flex;justify-content:space-between;gap:10px}
.vote-btn{flex:1;padding:9px 14px;border-radius:10px;font-size:13.5px;font-weight:700;
cursor:pointer;border:1px solid transparent;transition:transform .12s ease,filter .12s ease}
.vote-btn:hover{filter:brightness(1.15)}
.vote-btn:active{transform:scale(.97)}
.vote-btn:focus-visible{outline:2px solid var(--violet2);outline-offset:2px}
.vote-btn-yes{background:rgba(70,211,145,.16);border-color:rgba(70,211,145,.4);color:var(--ok)}
.vote-btn-no{background:rgba(220,79,107,.14);border-color:rgba(220,79,107,.4);color:var(--red2)}
.vote-actions-status{margin:0;font-size:13px;color:var(--muted)}
.vote-actions-status b{color:var(--text)}
.vote-switch{background:none;border:0;padding:0;margin-left:2px;font:inherit;font-weight:700;
color:var(--violet2);text-decoration:underline;cursor:pointer}
.vote-switch:focus-visible{outline:2px solid var(--violet2);outline-offset:2px}
.vote-actions-reason{margin:14px 0 0;font-size:12.5px;color:var(--muted2)}
/* T496: update vote - battle alarm strip, rules pill, switch note, rules fold-out. */
.vote-alarm{display:flex;gap:10px;align-items:flex-start;margin:-16px -18px 12px;padding:10px 18px;
border-radius:14px 14px 0 0;background:linear-gradient(90deg,rgba(150,24,50,.55),rgba(90,22,60,.35));
border-bottom:1px solid rgba(220,79,107,.35)}
.vote-alarm-ico{font-size:19px;line-height:1.2}
.vote-alarm b{display:block;color:#ffb3c0;font-size:14px}
.vote-alarm span{color:#e8b9c4;font-size:12.5px}
.vote-rules{display:inline-block;margin:8px 0 0;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:650}
.vote-rules--normal{color:var(--amber);background:rgba(242,153,74,.10);border:1px solid rgba(242,153,74,.34)}
.vote-rules--battle{color:#ff8a9c;background:rgba(220,79,107,.12);border:1px solid rgba(220,79,107,.45)}
.vote-switched{margin:8px 0 0;padding-left:8px;border-left:2px solid var(--red2);font-size:12.5px;color:#ffb3c0}
.vote-rules-more{margin-top:12px;padding-top:8px;border-top:1px solid var(--border)}
.vote-rules-more summary{cursor:pointer;font-size:12.5px;color:var(--muted)}
.vote-rules-more table{width:100%;border-collapse:collapse;margin-top:8px;font-size:12.5px}
.vote-rules-more th,.vote-rules-more td{text-align:left;vertical-align:top;padding:5px 6px;border-bottom:1px solid var(--border)}
.vote-rules-more th{color:var(--muted);font-weight:600}
.vote-rules-more td{color:var(--muted2)}
.vote-rules-more td.is-on{color:var(--text);font-weight:600;background:rgba(255,255,255,.03)}

/* The decision-moment stamp - a big result banner + a radiating burst of
   pseudo-particles, CSS keyframes only. Plays once per result:
   assets/countdown.js keys a `sessionStorage` flag on `data-result-id`
   and adds `.is-replay` on every render after the first one this session
   (including after a soft-refresh re-render of the same result), which
   this file turns into "show the end state, skip the motion". Same
   fallback for `prefers-reduced-motion`. */
.vote-stamp{position:relative;margin-top:14px;padding:14px 10px;border-radius:12px;
text-align:center;overflow:visible;animation:vt-stamp-pop .5s cubic-bezier(.2,1.4,.4,1) both}
.vote-stamp--for{background:rgba(70,211,145,.12);border:1px solid rgba(70,211,145,.4)}
.vote-stamp--against{background:rgba(220,79,107,.12);border:1px solid rgba(220,79,107,.4)}
.vote-stamp-title{position:relative;z-index:1;display:inline-block;font-size:17px;
font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.vote-stamp--for .vote-stamp-title{color:var(--ok)}
.vote-stamp--against .vote-stamp-title{color:var(--red2)}
.vote-stamp-burst{position:absolute;inset:0;pointer-events:none}
.vote-stamp-burst i{position:absolute;top:50%;left:50%;width:7px;height:14px;border-radius:2px;
background:currentColor;box-shadow:0 0 6px currentColor;opacity:0;
transform:rotate(var(--r,0deg)) translateY(-8px);animation:vt-stamp-burst 1s ease-out both}
.vote-stamp--for .vote-stamp-burst i{color:var(--ok)}
.vote-stamp--against .vote-stamp-burst i{color:var(--red2)}
.vote-stamp-burst i:nth-child(1){--r:0deg}
.vote-stamp-burst i:nth-child(2){--r:45deg;animation-delay:.03s}
.vote-stamp-burst i:nth-child(3){--r:90deg;animation-delay:.06s}
.vote-stamp-burst i:nth-child(4){--r:135deg;animation-delay:.09s}
.vote-stamp-burst i:nth-child(5){--r:180deg;animation-delay:.03s}
.vote-stamp-burst i:nth-child(6){--r:225deg;animation-delay:.06s}
.vote-stamp-burst i:nth-child(7){--r:270deg;animation-delay:.09s}
.vote-stamp-burst i:nth-child(8){--r:315deg}
@keyframes vt-stamp-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes vt-stamp-burst{0%{opacity:1;transform:rotate(var(--r,0deg)) translateY(-8px) scale(1)}100%{opacity:0;transform:rotate(var(--r,0deg)) translateY(-58px) scale(.35)}}
.vote-stamp.is-replay,.vote-stamp.is-replay *{animation:none!important}
.vote-stamp.is-replay{opacity:1;transform:none}
.vote-stamp.is-replay .vote-stamp-burst{display:none}
@media(prefers-reduced-motion:reduce){
.vote-stamp,.vote-stamp *{animation:none!important}
.vote-stamp{opacity:1;transform:none}
.vote-stamp-burst{display:none}
.vt-tug-seg.is-winner{animation:none!important;filter:none;box-shadow:none}
}
/* Owner 2026-09-22: numbers sit over their end of the tug bar. */
.vt-nums--tug{display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline}
.vt-nums--tug .vt-against{justify-self:end}
.vt-under{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:8px}
.vt-under .vt-decision-text{margin:0}
.vt-under .vt-total{margin-left:0;flex:none}
/* T443 (owner 2026-09-23): the three debug pages fit the window exactly -
   the log fills what is left and the footer is always visible, instead of
   the page scrolling past it. Scoped by data-page (base.html), because
   every other page is meant to scroll. Below 700px tall the page goes back
   to normal scrolling: fitting a toolbar, a log and a footer into a short
   window leaves a log box too small to read. */
@media(min-height:700px){
body[data-page="logs"],body[data-page="restart-log"]{height:100svh}
body[data-page="logs"] main,body[data-page="restart-log"] main{
flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding-bottom:18px}
body[data-page="logs"] main>.content,
body[data-page="restart-log"] main>.content{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body[data-page="logs"] .logbox{flex:1 1 auto;height:auto;min-height:220px}
body[data-page="restart-log"] .table-wrap--log{flex:1 1 auto;max-height:none;min-height:220px}
/* T465: the Search tab scrolls like a normal page; its frame is screen-tall. */
body[data-page="logs"]:has(.grafana-frame--logs){height:auto}
/* The access log keeps the plain clamp: its two filter panels leave too
   little room to squeeze the table into the window as well. */
}
/* T445 (owner 2026-09-23): the change-password fields all start at the same
   left edge and are the same width (the default .form-row puts the label
   beside the field, so a longer label pushed its field further right), and
   the labels read as labels rather than fine print. */
.pw-form .form-row{display:block;margin-bottom:16px}
.pw-form .field-label{font-size:15px;font-weight:650;color:var(--text);margin:0 0 6px}
.pw-form .field-wrap{max-width:420px}
.pw-form .field{width:100%;margin-bottom:0}
/* T444: the note under the Observability heading kept its inline margin,
   which beat .page-wide's own margin-left. Same width, as a class. */
.page-wide--note{margin-top:-8px;margin-bottom:14px}

/* T489 PR 3b: /admin/mods row actions sit side by side. */
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: .15rem .3rem .15rem 0; }
.field--short { width: 7.5rem; }
.inline-form .field, .inline-form .btn { margin: 0; }

/* T489 UX: r2modman steps get number badges; the download is its own row. */
.steps{list-style:none;counter-reset:step;margin:0 0 14px;padding:0}
.steps>li{counter-increment:step;position:relative;padding:0 0 16px 40px;line-height:1.5}
.steps>li:last-child{padding-bottom:4px}
.steps>li::before{content:counter(step);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;
background:var(--card2);border:1px solid var(--violet-line);color:var(--text);font-weight:650;font-size:13px;
display:flex;align-items:center;justify-content:center}
.download-block{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px}
.btn-download{padding:13px 24px;font-size:15px;max-width:100%;text-align:center;overflow-wrap:anywhere}
.btn-download:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px rgba(139,98,217,.6)}
@media(max-width:560px){.download-block{align-items:stretch}.btn-download{width:100%}}
