/* Ops console — chrome + components (B1.2).
   Funnel9 navigable chrome (left nav + hamburger) on the exact F9 blue palette. Round-2 changes
   (Josh): deeper F9 blues; brand = brain mark + "Ops"; flat nav (no section labels); no top bar and
   no page-title (reclaimed real estate); two-step login (password → auth code). On sign-off the
   markup maps to Razor partials and this ships as Core.Web.Ops/wwwroot/css/ops.css. */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--ink-900); margin: 0; font-weight: 650; letter-spacing: -.01em; }

/* ---- App shell ---------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100%; }

/* ---- Left rail (→ Razor _Nav.cshtml @foreach) --------------------------- */
.rail {
  background: var(--navy);
  color: var(--on-navy);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.rail__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.02em;
}
.brain {                                  /* the brand mark — deep→bright F9 blue, white brain glyph */
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--blue-deep) 10%, var(--blue) 115%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 8px rgba(0,51,126,.45);
}
.brain svg { width: 21px; height: 21px; }
.rail__brand .envchip { margin-left: auto; }
.envchip {
  font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em;
  color: #fff; background: rgba(255,255,255,.12); padding: 4px 8px; border-radius: var(--r-pill);
}

.nav { padding: var(--sp-2) var(--sp-3); overflow-y: auto; flex: 1; }
.nav-entry {                              /* the Funnel9 .settings-menu-entry, re-themed (flat list) */
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-3); margin: 2px 0; border-radius: var(--r-sm);
  color: var(--on-navy); cursor: pointer; position: relative;
  font-weight: 500; transition: background .12s, color .12s;
}
.nav-entry:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-entry svg { width: 18px; height: 18px; flex: none; color: var(--on-navy-mut); }
.nav-entry:hover svg { color: var(--on-navy); }
.nav-entry--active { background: rgba(0,174,239,.16); color: #fff; }
.nav-entry--active svg { color: var(--blue); }
.nav-entry--active::before {
  content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--blue);
}
.nav-entry .badge { margin-left: auto; }

.rail__foot {
  border-top: 1px solid rgba(255,255,255,.09); padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3); font-size: 13px;
}
.rail__foot .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--blue-deep); color: #fff; font-size: 12px; font-weight: 700;
}
.rail__foot .who { color: #fff; font-weight: 600; }
.rail__foot .role { color: var(--on-navy-mut); font-size: 11px; }
.rail__foot a { margin-left: auto; color: var(--on-navy-mut); display: grid; place-items: center; }
.rail__foot a:hover { color: #fff; }

/* ---- Content (no top bar, no page title — straight to the data) ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.content { padding: var(--sp-6); max-width: 1200px; width: 100%; }
.content--wide { max-width: none; }   /* the board list uses the whole width; the sp-6 padding is the gutter */

.hamburger {                              /* mobile only: floats top-left, toggles the rail */
  display: none; position: fixed; top: 14px; left: 14px; z-index: 50;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--r); box-shadow: var(--shadow);
  place-items: center;
}

/* ---- Stat cards --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-sm);
}
.stat__label { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 12px; font-weight: 500; }
.stat__label svg { width: 14px; height: 14px; color: var(--blue); }
.stat__value { font-size: 26px; font-weight: 700; color: var(--ink-900); margin-top: 6px; letter-spacing: -.02em; }
.stat__value.ok { color: var(--ok); }
.stat__sub { font-size: 12px; color: var(--ink-400); margin-top: 2px; }

/* ---- Panels + tables (→ _TenantTable.cshtml / _TenantRow.cshtml) -------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-5); }
.panel__head { display: flex; align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 15px; }
.panel__head .count { color: var(--ink-400); font-weight: 500; margin-left: 8px; font-size: 13px; }
.panel__head .spacer { flex: 1; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-500); font-weight: 600; padding: 10px var(--sp-5); border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.data-table tbody td { padding: 13px var(--sp-5); border-bottom: 1px solid var(--line-soft); color: var(--ink-700); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--blue-tint); }
.data-table .code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-900); font-weight: 600; }
.data-table .muted { color: var(--ink-400); }
.data-table td.right, .data-table th.right { text-align: right; }

/* ---- Pills / badges ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-pill); line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok     { color: var(--ok);     background: var(--ok-bg); }
.badge--warn   { color: var(--warn);   background: var(--warn-bg); }
/* #408 B: how many proposed crown files are waiting for a decision, in the menu */
.badge--danger { color: var(--danger); background: var(--danger-bg); }
.badge--info   { color: var(--blue-deep); background: var(--blue-tint); }
.badge--mut    { color: var(--ink-500); background: var(--line); }
.badge.solid::before { display: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--font);
  padding: 9px 14px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--blue-deep); color: #fff; }      /* deep F9 blue */
.btn--primary:hover { filter: brightness(.92); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-700); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn--sm { padding: 7px 11px; font-size: 12.5px; }

/* ---- Activity feed (→ _ControlAuditFeed.cshtml) ------------------------- */
.feed { padding: var(--sp-3) 0; }
.feed__item { display: flex; gap: var(--sp-3); padding: 10px var(--sp-5); }
.feed__dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); }
.feed__dot svg { width: 15px; height: 15px; }
.feed__body { font-size: 13px; }
.feed__body b { color: var(--ink-900); }
.feed__time { color: var(--ink-400); font-size: 12px; margin-top: 1px; }

/* ---- Login (two-step: password → auth code) ----------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1100px 560px at 50% -8%, #21344d 0%, var(--navy) 58%); padding: var(--sp-5); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.login-card__head { padding: var(--sp-6) var(--sp-6) var(--sp-4); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.login-card__head .brain { width: 46px; height: 46px; border-radius: 12px; }
.login-card__head .brain svg { width: 28px; height: 28px; }
.login-card__head .wordmark { font-weight: 700; font-size: 17px; color: var(--ink-900); letter-spacing: -.02em; }
.login-card__body { padding: var(--sp-2) var(--sp-6) var(--sp-5); }
.login-card__step { font-size: 12.5px; color: var(--ink-500); text-align: center; margin-bottom: var(--sp-4); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r);
  font: 14px var(--font); color: var(--ink-900); background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.22); }
.field input.code { font: 600 20px/1 var(--mono); letter-spacing: .42em; text-align: center; padding-left: .42em; }
.login-card .btn--primary { width: 100%; justify-content: center; padding: 12px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--on-navy-mut); font-size: 12px; margin-top: var(--sp-4); }
.login-foot svg { width: 14px; height: 14px; }   /* the trust shield — icon only, no posture text */
.login-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c2c7; border-radius: var(--r); padding: 9px 12px; font-size: 12.5px; text-align: center; margin-bottom: var(--sp-4); }

/* ---- B1.5 shell additions ---------------------------------------------- */
.feed__dot--danger { background: var(--danger-bg); color: var(--danger); }
.feed__dot--warn   { background: var(--warn-bg);   color: var(--warn); }
.rail__signout { margin-left: auto; }
.rail__signout button { background: none; border: none; cursor: pointer; color: var(--on-navy-mut); display: grid; place-items: center; padding: 4px; border-radius: var(--r-sm); }
.rail__signout button:hover { color: #fff; background: rgba(255,255,255,.08); }
.rail__signout svg { width: 18px; height: 18px; }
.page-empty { max-width: 460px; margin: 9vh auto 0; text-align: center; color: var(--ink-500); }
.page-empty svg { width: 40px; height: 40px; color: var(--ink-400); margin-bottom: var(--sp-3); }
.page-empty h2 { font-size: 20px; margin-bottom: var(--sp-2); }
.page-empty p { margin-bottom: var(--sp-4); }

/* ---- B2 provisioning ---------------------------------------------------- */
.page-head { margin-bottom: var(--sp-5); }
.page-head h1 { font-size: 21px; }
.page-head p { color: var(--ink-500); margin: 4px 0 0; max-width: 660px; }
.panel--form { max-width: 540px; padding: var(--sp-5); }
.panel--form .field { margin-bottom: var(--sp-4); }
.panel--form .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.panel--form .field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font: 14px var(--font); color: var(--ink-900); }
.panel--form .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.2); }
.field__hint { display: block; color: var(--ink-400); font-size: 11.5px; margin-top: 5px; }
.htmx-indicator { display: none; }
form.htmx-request .htmx-indicator { display: inline; }
form.htmx-request .htmx-idle { display: none; }
.provision-result { margin-top: var(--sp-5); padding: var(--sp-5); max-width: 620px; }
.provision-result__head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; gap: var(--sp-3); padding: 8px 0; font-size: 13.5px; }
.step svg { width: 17px; height: 17px; flex: none; }
.step--ok svg { color: var(--ok); }
.step--fail svg, .step--fail .step__name { color: var(--danger); }
.step__name { font-weight: 500; color: var(--ink-900); }
.step__detail { color: var(--ink-500); font-size: 12px; margin-left: 4px; }

/* ---- B4 logs / security / health filters -------------------------------- */
.filter { display: flex; gap: var(--sp-2); }
.filter__input { padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 12.5px var(--font); color: var(--ink-700); background: var(--surface); }
.filter__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,174,239,.18); }

/* ---- B3 access management / danger zone --------------------------------- */
.panel-title { font-size: 15px; margin-bottom: var(--sp-4); }
.btn-row { display: flex; gap: var(--sp-2); }
.filter__input--wide { width: 100%; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(.93); }
.danger-zone { border-color: #f3c2c7; }
.danger-zone .panel__head h2 { color: var(--danger); }
.danger-zone__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); padding: var(--sp-5); }
.danger-op .field { margin-bottom: var(--sp-3); }
.danger-result { margin: 0 var(--sp-5) var(--sp-5); padding: 10px 12px; border-radius: var(--r); font-size: 13px; }
.danger-result--ok { background: var(--ok-bg); color: var(--ok); }
.danger-result--fail { background: var(--danger-bg); color: var(--danger); }
.creds { margin-top: var(--sp-4); background: var(--blue-tint); border: 1px solid #c7e9fb; border-radius: var(--r); padding: var(--sp-4); font-size: 13px; }
.creds__row { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }
.creds__row span { color: var(--ink-500); width: 70px; flex: none; }
.creds__row code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
@media (max-width: 700px) { .danger-zone__body { grid-template-columns: 1fr; } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 40; width: var(--rail-w); transform: translateX(-100%); transition: transform .2s ease; }
  .app--nav-open .rail { transform: translateX(0); box-shadow: var(--shadow); }
  .hamburger { display: grid; }
  .content { padding-top: 64px; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(8,18,32,.45); z-index: 35; }
  .app--nav-open .scrim { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── the build board (board-kanban-view) ───────────────────────────────────────────────────────────────────
   Josh, 2026-08-27: a KANBAN. The live queues (In build / Next / On deck) are side-by-side columns of compact
   cards a person drags to reorder and move between; Not-sequenced and Done are a separate two-column archive.
   One card renders identically on both surfaces (_Card). */

/* The one bar above the board — the link over to the archive (and back). */
.board-bar { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.board-bar__link {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px var(--font); color: var(--ink-700); text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 14px;
  transition: color .12s, border-color .12s;
}
.board-bar__link:hover { color: var(--ink-900); border-color: var(--blue); }
.board-bar__link svg { width: 15px; height: 15px; }
.board-bar__link .count {
  font: 600 11px var(--mono); color: var(--ink-500);
  background: var(--bg); border-radius: var(--r-pill); padding: 0 7px;
}

/* Columns side by side. The row scrolls horizontally only if the viewport is too narrow for all the columns; each
   column scrolls its OWN cards vertically, so ~7–10 are in view without the page growing tall. */
.board-kanban, .board-backlog { display: flex; gap: var(--sp-4); align-items: flex-start; overflow-x: auto; }
/* Grey lane holding white card tiles — the two must differ or the cards vanish. (The first cut set the column to an
   undefined `--panel`, so it fell to the grey page and the grey `--bg` cards blended into it — Josh, 2026-08-27.) */
.board-column {
  flex: 1 1 0; min-width: 250px;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
/* The archive's two columns each take half the width and run long. */
.board-backlog .board-column { flex-basis: 50%; }
.board-column__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line);
}
.board-column__head h2 { font: 600 13px var(--font); color: var(--ink-800); margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.board-column__head .count { font: 600 12px var(--mono); color: var(--ink-500); }
.board-column__cards {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-3); overflow-y: auto;
  /* ~7–10 compact cards in view; the archive columns are taller because history is long. */
  max-height: calc(100vh - 210px); min-height: 60px;
}
.board-column--tall .board-column__cards { max-height: calc(100vh - 190px); }

/* One compact card: a WHITE tile so it reads distinctly against the grey column lane — id + slug on the head line,
   the one-line description, then the tag chips. */
.board-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--sp-3) 10px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s;
}
.board-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.board-card__head { display: flex; align-items: baseline; gap: 7px; }
/* The id is a primary key Josh reads off the card — a highlighted mono badge, not muted grey. */
.board-card__id {
  font: 600 11.5px var(--mono); color: var(--blue-deep);
  background: var(--blue-tint); border-radius: var(--r-sm); padding: 0 5px;
}
/* The slug is the card's identity and its click target — the strongest thing on the card. */
.board-card__slug {
  font: 700 13.5px var(--mono); color: var(--blue-deep);
  letter-spacing: -.01em; text-decoration: none; word-break: break-word;
}
.board-card__slug:hover { color: var(--blue); text-decoration: underline; }
.board-card__desc { color: var(--ink-800); font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.board-card__wait { color: var(--warn); font-size: 11.5px; margin-top: 4px; }
.board-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
/* The promote button on a backlog (unsequenced) card — flips it into the top of the live queue. */
.board-card__promote {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font: 600 11px var(--font); color: var(--blue-deep); cursor: pointer;
  background: var(--blue-tint); border: 1px solid var(--blue-deep-2);
  border-radius: var(--r-pill); padding: 3px 10px;
  transition: background .12s, color .12s;
}
.board-card__promote:hover { background: var(--blue-deep); color: #fff; }
.board-card__promote svg { width: 13px; height: 13px; }

/* A tag carries a stable hue (set inline as --h from the tag's text), so `charter` / `shipped` / `bug` read the same
   colour on every row and on the detail page. The milestone sticker keeps its own blue mono treatment. */
.board-chip {
  font: 600 11px var(--font); white-space: nowrap;
  border-radius: var(--r-pill); padding: 1px 8px;
  color: hsl(var(--h, 214) 42% 34%);
  background: hsl(var(--h, 214) 58% 96%);
  border: 1px solid hsl(var(--h, 214) 44% 87%);
}
.board-chip--milestone {
  color: var(--blue-deep); background: var(--surface);
  border-color: var(--blue-deep-2); font-family: var(--mono);
}

/* The ACTION chip — what this row needs to move (ready-queues-hide-findings, Josh 2026-07-25: the board must
   "inform me to decide what is needed to build it"). Semantic, not hue-hashed, because these three words carry a
   meaning a stable-but-arbitrary colour would throw away: green = go, amber = it wants a decision, red = stuck. */
.board-chip--action { text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.board-chip--action[data-action="build"]   { color: var(--ok);     background: var(--ok-bg);     border-color: var(--ok); }
.board-chip--action[data-action="spec"]    { color: var(--warn);   background: var(--warn-bg);   border-color: var(--warn); }
.board-chip--action[data-action="blocked"] { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }

/* Drag affordances. Only ranked cards are draggable — an unranked finding has no position to drop it into, so the
   browser refuses to lift it. The blue edge shows which side of the hovered card the drop will land. */
.board-card--movable { cursor: grab; }
.board-card--dragging { opacity: .45; cursor: grabbing; }
.board-card--over-top { box-shadow: inset 0 2px 0 0 var(--blue); }
.board-card--over-bottom { box-shadow: inset 0 -2px 0 0 var(--blue); }
/* Dropping anywhere in the In-build column starts a build (no gate) — the whole column lights up as the drop target. */
.board-column--drop { border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.board-error {
  background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger);
  border-radius: var(--r); padding: 10px var(--sp-4); margin-bottom: var(--sp-4); font-size: 13px;
}

/* ── the item detail (click-through) ──────────────────────────────────────────────────────────────────────── */
.board-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-500); text-decoration: none; font-size: 13px; margin-bottom: var(--sp-4);
}
.board-back:hover { color: var(--blue-deep); }
.board-back svg { width: 15px; height: 15px; }
.board-detail__head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.board-detail__rank { font: 600 12px var(--mono); color: var(--blue-deep); }
.board-detail__slug { font: 600 18px var(--mono); color: var(--ink-900); }
.board-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0 var(--sp-4); }
.board-detail__meta {
  display: grid; grid-template-columns: 130px 1fr; gap: 6px var(--sp-4);
  margin: 0 0 var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.board-detail__meta dt { color: var(--ink-500); font-weight: 600; }
.board-detail__meta dd { margin: 0; color: var(--ink-800, var(--ink-700)); }
.board-detail__link { color: var(--blue-deep); text-decoration: none; }
.board-detail__link:hover { text-decoration: underline; }
/* Josh, 2026-08-19: let the body use the full page width — the descendant selector outranks wiki.css's `.prose`
   { max-width: 720px }, which loads later and would otherwise re-cap this element to a narrow reading measure. */
.board-detail .board-detail__body { max-width: none; }
.board-detail__body h1 { font-size: 22px; margin: 0 0 var(--sp-4); }
.board-detail__body h2 { font-size: 17px; margin: var(--sp-5) 0 var(--sp-3); }
.board-detail__body h3 { font-size: 15px; margin: var(--sp-4) 0 var(--sp-2); }
.board-detail__body p, .board-detail__body li { line-height: 1.6; color: var(--ink-800, var(--ink-700)); }
.board-detail__body ul, .board-detail__body ol { padding-left: var(--sp-5); margin: var(--sp-3) 0; }
.board-detail__body code { font: 12.5px var(--mono); background: var(--bg); padding: 1px 5px; border-radius: var(--r-sm); }
.board-detail__body pre { background: var(--navy); color: #e8eef5; padding: var(--sp-4); border-radius: var(--r); overflow-x: auto; }
.board-detail__body pre code { background: none; color: inherit; padding: 0; }
.board-detail__body blockquote {
  border-left: 3px solid var(--line); margin: var(--sp-3) 0; padding: 2px 0 2px var(--sp-4); color: var(--ink-600, var(--ink-500));
}
.board-detail__body table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0; font-size: 13px; }
.board-detail__body th, .board-detail__body td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.board-detail__body a { color: var(--blue-deep); }

/* Sessions — the recent-asks table (deep-html-session-observability). Question is the wide, clickable column; the
   rest are compact, monospace, right-fitting numbers. */
/* Every column is LEFT-aligned — header and cell alike — so the header always sits over its column (Josh, 2026-09-21:
   the mixed left/right alignment made it unreadable). The question takes the room; the rest stay compact. */
.sessions { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); font-size: 13px; }
.sessions th, .sessions td { text-align: left; padding: 7px 14px 7px 0; vertical-align: top; }
.sessions th:first-child, .sessions td:first-child { padding-left: 2px; }
.sessions thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.sessions td { border-bottom: 1px solid var(--line-soft); }
.sessions tbody tr:hover { background: var(--blue-tint); }
.sessions .q { width: 50%; }
.sessions .q a { color: var(--ink-900); font-weight: 500; }
.sessions .q a:hover { color: var(--blue-deep); }
.sessions td:not(.q) { white-space: nowrap; color: var(--ink-500); }   /* meta columns never steal the question's width */
.sessions .soft { font-size: 12px; color: var(--ink-400); }
.sessions .mono { font-family: var(--mono); font-size: 12px; color: var(--ink-500); }
.pager { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-5); font-size: 13px; }
.pager a { color: var(--blue-deep); font-weight: 600; }
.pager .muted { color: var(--ink-400); }

/* ops-admin-for-production — the admin pages' small forms: a button beside the thing it acts on. */
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 2px 6px 2px 0; }
.panel--form form:not(.inline-form) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.panel--form input:not([type=checkbox]):not([type=hidden]), .panel--form select, .inline-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-md, 6px); font: inherit; }
.made-password { font-family: var(--mono); font-size: 20px; letter-spacing: 1px; padding: 10px 14px; background: var(--blue-tint); border-radius: var(--r-md, 6px); user-select: all; }

/* Stats page: what needs nobody, said once under the shares table (Josh, 2026-10-12) */
.freshness { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.freshness__ago { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-900); }
.freshness--ok .freshness__ago { color: var(--ok); }
.freshness--danger .freshness__ago { color: var(--danger); }
.stats-summary { padding: 12px 16px 4px; }
.stats-summary ul { margin: 6px 0 10px; padding-left: 20px; }
.stats-summary li { margin: 3px 0; }
