/* ─────────────────────────────────────────────────────────────
   Oceanview Roleplay Moderator Panel
   Harbour-control look: deep-water navy, seafoam for "all good",
   buoy orange for alarms, sand for highlights. Barlow + Barlow
   Condensed (beach-signage lettering) — both self-hosted (OFL).
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --abyss: #061521;
  --hull: #0b2233;
  --hull-2: #0f2b40;
  --hull-3: #143650;
  --line: #1a3d55;
  --line-2: #24506d;
  --foam: #e8f3f7;
  --mist: #a3bccb;
  --muted: #7894a6;
  --seafoam: #2fd1c0;
  --seafoam-ink: #03211e;
  --buoy: #ff6a3d;
  --buoy-ink: #2b0b00;
  --sand: #e6d3a8;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --up: #4fd27a;
  --down: #ff9673;
  --series-1: #1fa99b;
  --series-2: #e8693a;
  --grid: #163447;
  --axis: #24506d;
  --r-panel: 12px;
  --r-ctl: 7px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif-condensed, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--seafoam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6fe6d9; }
code { font: 500 .9em/1 ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--hull-3); padding: 2px 6px; border-radius: 5px; color: var(--sand); }
h1, h2, h3 { font-family: var(--font-cond); letter-spacing: .01em; margin: 0; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }
.id { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--seafoam); color: var(--seafoam-ink); padding: 8px 14px; border-radius: var(--r-ctl); z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--seafoam); outline-offset: 2px; }

.demo-banner, .offline-banner { font-size: 13.5px; padding: 8px 14px; border-radius: var(--r-ctl); margin: 0 0 16px; max-width: 1240px; }
.demo-banner { background: #133f3b; color: #bff3ec; }
.offline-banner { background: #3d1d12; color: #ffd2c2; }

/* ───────── shell ───────── */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--hull) 251px, var(--line) 251px 252px, transparent 252px); }
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--hull);
  border-right: 1px solid var(--line);
  padding: 20px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foam); padding: 2px 8px 22px; }
.brand .logo { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 21px/1 var(--font-cond); letter-spacing: .01em; }
.brand-sub { font-size: 13px; color: var(--mist); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-ctl);
  color: var(--mist); text-decoration: none; font-weight: 500;
}
.nav-item:hover { color: var(--foam); background: var(--hull-2); }
.nav-item.is-active { color: var(--foam); background: var(--hull-2); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--seafoam); }
.ico { width: 20px; height: 20px; flex: none; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--hull-3); color: var(--sand); font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--line); }
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.who-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 12.5px; color: var(--muted); }
.icon-btn { margin-left: auto; color: var(--mist); display: inline-flex; padding: 6px; border-radius: var(--r-ctl); }
.icon-btn:hover { color: var(--foam); background: var(--hull-2); }
.av { border-radius: 50%; background: var(--hull-3); flex: none; object-fit: cover; }
.av-empty { display: inline-block; }

.stage { min-width: 0; padding: 22px 32px 56px; }
.rail-toggle { display: none; }
.main { max-width: 1240px; }
.main-wide { max-width: 1380px; }

/* ───────── conditions strip (the signature element) ───────── */
.conditions {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(220px, auto) 1fr auto; align-items: center; gap: 28px;
  padding: 16px 22px;
  background: var(--hull);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  margin-bottom: 26px;
  max-width: 1240px;
}
.conditions-hero { padding: 34px 30px 30px; grid-template-columns: 1fr; gap: 26px; }
.conditions .contours { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(47, 209, 192, .13); pointer-events: none; }
.conditions > *:not(.contours) { position: relative; }
.cond-state { display: flex; align-items: flex-start; gap: 14px; }
.cond-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--seafoam); box-shadow: 0 0 0 4px rgba(47, 209, 192, .18); flex: none; }
.cond-title { font: 700 26px/1 var(--font-cond); letter-spacing: .01em; }
.cond-sub { color: var(--mist); font-size: 13.5px; margin-top: 4px; }
.conditions-hero .cond-title { font-size: clamp(44px, 6vw, 72px); line-height: .95; }
.conditions-hero .cond-dot { width: 16px; height: 16px; margin-top: 18px; }
.conditions-hero .cond-sub { font-size: 15px; margin-top: 8px; }
.cond-readings { display: flex; flex-wrap: wrap; margin: 0; }
.cond-readings > div { padding: 0 22px; border-left: 1px solid var(--line); }
.cond-readings > div:first-child { border-left: 0; padding-left: 0; }
.cond-readings dt { font-size: 13px; color: var(--mist); }
.cond-readings dd { margin: 2px 0 0; font: 600 24px/1.1 var(--font-cond); }
.conditions-hero .cond-readings dd { font-size: 30px; }
.conditions-hero .cond-action { position: absolute; top: 30px; right: 30px; }
.conditions.is-riptide { border-color: var(--buoy); background: #2a1612; }
.conditions.is-riptide .contours { color: rgba(255, 106, 61, .16); }
.conditions.is-riptide .cond-dot { background: var(--buoy); box-shadow: 0 0 0 4px rgba(255, 106, 61, .25); animation: buoy 1.4s ease-in-out infinite; }
.conditions.is-riptide .cond-readings > div { border-color: #4a2a20; }
@keyframes buoy { 50% { box-shadow: 0 0 0 9px rgba(255, 106, 61, 0); } }

/* ───────── page furniture ───────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { font-size: 36px; font-weight: 700; }
.page-sub { color: var(--mist); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: var(--hull); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.panel-head h2 { font-size: 22px; font-weight: 600; }
.panel-sub { color: var(--muted); font-size: 13.5px; flex-basis: 100%; display: flex; align-items: center; gap: 7px; }
.panel-link { font-size: 13.5px; }
.h-sub { font-size: 19px; font-weight: 600; margin: 22px 0 10px; }
.panel > .h-sub:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.split > .panel { margin-bottom: 20px; }
.split-member { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.split-announce { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.grid-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.span-2 { grid-column: span 2; }
.panel-log { grid-row: span 2; display: flex; flex-direction: column; }
.empty { padding: 22px 0; color: var(--mist); }
.empty p { max-width: 60ch; }
.notice { background: var(--hull-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 10px 14px; margin: 12px 0; }
.notice-warn { border-color: #6b4a14; background: #2a2010; color: #ffe2a8; }
blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--mist); }

/* ───────── controls ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--font); color: var(--foam);
  background: var(--hull-3); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  padding: 10px 16px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #1a4262; color: var(--foam); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.btn-calm { background: var(--seafoam); border-color: var(--seafoam); color: var(--seafoam-ink); }
.btn-calm:hover { background: #5fe0d2; color: var(--seafoam-ink); }
.btn-buoy { background: var(--buoy); border-color: var(--buoy); color: var(--buoy-ink); }
.btn-buoy:hover { background: #ff8a63; color: var(--buoy-ink); }
.btn-quiet { background: transparent; }
.btn-quiet:hover { background: var(--hull-2); }
.btn-sm { padding: 6px 11px; font-size: 13.5px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--seafoam); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; color: var(--mist); font-weight: 500; }
.field small { color: var(--muted); font-size: 12.5px; }
.field-grow { flex: 1 1 260px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  font: 400 15px/1.4 var(--font); color: var(--foam);
  background: var(--abyss); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  padding: 9px 11px; width: 100%;
}
textarea { resize: vertical; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #557387; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--seafoam); box-shadow: 0 0 0 3px rgba(47, 209, 192, .16); }
input[type="color"] { width: 64px; height: 40px; padding: 3px; background: var(--abyss); border: 1px solid var(--line-2); border-radius: var(--r-ctl); }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--seafoam); width: 17px; height: 17px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > .field { flex: 1 1 160px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { font-size: 13.5px; color: var(--mist); font-weight: 500; margin-bottom: 6px; padding: 0; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--mist); font-weight: 500; }
.segmented input:checked + span { border-color: var(--seafoam); color: var(--foam); background: rgba(47, 209, 192, .12); }
.segmented input:focus-visible + span { outline: 2px solid var(--seafoam); outline-offset: 2px; }

/* ───────── tables, tags, states ───────── */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--mist); padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: var(--hull-2); }
.table .num { font-variant-numeric: tabular-nums; }
.table th.num, .table td.num { white-space: nowrap; }
.table .reason { color: var(--mist); max-width: 46ch; }
.nowrap { white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 600; background: var(--hull-3); color: var(--mist); white-space: nowrap; }
.tag-warn { background: #3a3220; color: var(--sand); }
.tag-timeout { background: #3d2a12; color: #ffc98a; }
.tag-kick, .tag-softban, .tag-ban { background: #3f1d14; color: #ffb39a; }
.tag-unban, .tag-untimeout { background: #103632; color: #9ff0e6; }
.tag-staff { background: transparent; border: 1px solid var(--seafoam); color: var(--seafoam); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state-on::before { background: var(--good); }
.state-warn::before { background: var(--warning); }
.state-off { color: var(--muted); }
.state-na { color: var(--muted); }
.state-na::before { background: transparent; border: 1.5px solid var(--muted); width: 7px; height: 7px; }
.prio { font-size: 13.5px; }
.prio-high { color: #ffc98a; }
.prio-urgent { color: #ffb39a; font-weight: 600; }
.prio-low { color: var(--muted); }
.stars { color: var(--sand); letter-spacing: 1px; }
.stars-off { color: var(--line-2); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pager-info { color: var(--muted); font-size: 13.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; color: var(--mist); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--foam); }
.tabs a.is-active { color: var(--foam); border-bottom-color: var(--seafoam); }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--hull-3); color: var(--sand); font-size: 12.5px; text-align: center; }

/* ───────── facts & Q/A ───────── */
.facts { margin: 0 0 18px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mist); font-size: 14px; }
.facts dd { margin: 0; }
.facts-compact > div { grid-template-columns: 170px 1fr; }
.qa { margin: 0; display: grid; gap: 14px; }
.qa dt { color: var(--mist); font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.qa dd { margin: 0; white-space: pre-wrap; max-width: 75ch; }

/* ───────── overview pieces ───────── */
.log { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 640px; flex: 1; }
.log-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log-row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.log-row.is-new { animation: arrive 1.6s ease-out; }
@keyframes arrive { from { background: rgba(47, 209, 192, .16); } to { background: transparent; } }
.log-empty { color: var(--muted); padding: 10px 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.live-dot.is-off { background: var(--muted); }
.roster, .attention, .mini-cases, .notes, .evidence, .staff-actions { list-style: none; margin: 0; padding: 0; }
.roster li, .attention li, .mini-cases li, .evidence li, .staff-actions li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.roster li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.roster-meta { display: flex; gap: 12px; color: var(--mist); font-variant-numeric: tabular-nums; font-size: 14px; }
.attention a, .attention span { text-decoration: none; color: var(--foam); }
.attention strong { font: 600 22px/1 var(--font-cond); color: var(--sand); margin-right: 6px; }
.attention a:hover { color: var(--seafoam); }
.session-state { font-size: 16px; }
.notes li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.notes li p + p { margin-top: 4px; font-size: 13.5px; }
.staff-actions .reason { color: var(--mist); margin-top: 4px; font-size: 14px; }

/* ───────── charts ───────── */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .axis line { stroke: var(--axis); }
.chart text { fill: var(--muted); font: 400 12px var(--font); font-variant-numeric: tabular-nums; }
.chart .end-label { fill: var(--mist); font-weight: 500; font-size: 12.5px; }
.chart .bar-label { fill: var(--mist); font-size: 13px; }
.chart .bar-value { fill: var(--foam); font-weight: 600; font-size: 13px; }
.chart .crosshair { stroke: var(--mist); stroke-width: 1; }
.chart .bar:hover, .chart .bar:focus { filter: brightness(1.25); outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: -4px 0 10px; font-size: 13.5px; color: var(--mist); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--abyss); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  padding: 8px 11px; font-size: 13px; min-width: 120px; white-space: nowrap;
}
.tooltip .tt-head { color: var(--muted); margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-row strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.tooltip .tt-row i { width: 12px; height: 2px; display: inline-block; border-radius: 2px; }
.chart-table-toggle { margin-top: 8px; }
.chart-table { margin-top: 10px; }

/* ───────── members ───────── */
.member-list { list-style: none; margin: 0 0 20px; padding: 0; background: var(--hull); border: 1px solid var(--line); border-radius: var(--r-panel); }
.member-list a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; color: var(--foam); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member-list li:last-child a { border-bottom: 0; }
.member-list a:hover { background: var(--hull-2); }
.member-list .id { margin-left: auto; }
.member-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.member-head h1 { font-size: 36px; }
.member-head .id { margin-left: 8px; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 13.5px; }
.role-dot { width: 9px; height: 9px; border-radius: 50%; }
.watch-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mod-form [data-for][hidden] { display: none; }

/* Tide gauge — a harbour tide staff */
.gauge { display: flex; gap: 28px; align-items: stretch; margin-bottom: 20px; }
.gauge-staff { position: relative; width: 58px; height: 250px; flex: none; border-radius: 8px; background: repeating-linear-gradient(to top, transparent 0 24px, rgba(232, 243, 247, .07) 24px 25px), var(--abyss); border: 1px solid var(--line-2); overflow: hidden; }
.gauge-water { position: absolute; left: 0; right: 0; bottom: 0; height: var(--level); background: linear-gradient(to top, color-mix(in srgb, var(--tier) 60%, #000), var(--tier)); opacity: .85; }
.gauge-line { position: absolute; left: 0; right: 0; bottom: var(--level); height: 2px; background: var(--foam); }
.gauge-tick { position: absolute; right: 5px; transform: translateY(50%); font-size: 10.5px; color: rgba(232, 243, 247, .55); font-variant-numeric: tabular-nums; z-index: 1; }
.gauge-read { flex: 1; min-width: 0; }
.gauge-score { font: 700 64px/.9 var(--font-cond); }
.gauge-tier { display: flex; align-items: center; gap: 8px; font: 600 20px/1.2 var(--font-cond); margin: 6px 0 14px; }
.tier-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--tier); }
.factors { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--mist); }
.factors li { display: flex; gap: 10px; padding: 4px 0; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* ───────── reviews ───────── */
.reviews .panel { margin-bottom: 16px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.review-head h2 { font-size: 22px; }
.review-head .panel-sub { margin-top: 4px; }
.review-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-done { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ban-reason { margin-bottom: 14px; padding: 10px 14px; background: var(--hull-2); border-radius: var(--r-ctl); }

/* ───────── staff ───────── */
.board { list-style: none; margin: 0; padding: 0; counter-reset: board; }
.board li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 70px 110px 74px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); counter-increment: board; }
.board li::before { content: counter(board); color: var(--muted); font-variant-numeric: tabular-nums; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: #12394a; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--series-1); }
.meter.is-met span { background: var(--good); }
.meter-label { font-size: 12.5px; color: var(--muted); }

/* ───────── announcement preview ───────── */
.preview { position: sticky; top: 20px; }
.dc-msg { display: flex; gap: 14px; background: #313338; border-radius: 8px; padding: 16px; color: #dbdee1; font-family: "gg sans", var(--font); }
.dc-body { min-width: 0; flex: 1; }
.dc-author { font-weight: 600; color: #f2f3f5; }
.dc-bot { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.dc-content { margin: 2px 0 6px; white-space: pre-wrap; }
.dc-embed { border-left: 4px solid #0ea5e9; background: #2b2d31; border-radius: 4px; padding: 10px 14px 12px; margin-top: 4px; max-width: 520px; }
.dc-embed:empty, .dc-embed.is-empty { display: none; }
.dc-title { font-weight: 700; color: #f2f3f5; margin-bottom: 4px; }
.dc-desc { white-space: pre-wrap; font-size: 14.5px; }
.dc-embed img { max-width: 100%; border-radius: 4px; margin-top: 10px; display: block; }
.dc-embed img:not([src]), .dc-embed img[src=""] { display: none; }
.dc-foot { font-size: 12px; color: #b5bac1; margin-top: 8px; }

/* ───────── settings ───────── */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--mist); text-decoration: none; font-weight: 500; }
.settings-nav a:hover { background: var(--hull-2); color: var(--foam); }
.settings-nav a.is-active { background: var(--hull-2); color: var(--foam); }
.set-section { scroll-margin-top: 20px; }
.set-section > .panel-head { display: block; }
.set-section > .panel-head .panel-sub { display: block; max-width: 72ch; margin-top: 6px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; }
.set-grid .field-wide { grid-column: 1 / -1; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 4px 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .switch { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--hull-3); border: 1px solid var(--line-2); position: relative; margin-top: 1px; transition: background .15s; }
.toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); transition: transform .15s, background .15s; }
.toggle input:checked + .switch { background: rgba(47, 209, 192, .3); border-color: var(--seafoam); }
.toggle input:checked + .switch::after { transform: translateX(16px); background: var(--seafoam); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--seafoam); outline-offset: 2px; }
.toggle-text strong { display: block; font-weight: 500; }
.toggle-text small { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 42px; background: var(--abyss); border: 1px solid var(--line-2); border-radius: var(--r-ctl); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; background: var(--hull-3); border-radius: 14px; font-size: 13.5px; }
.chip button { background: none; border: 0; color: var(--mist); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 50%; }
.chip button:hover { color: var(--foam); background: var(--line-2); }
.chips select { flex: 1 1 140px; border: 0; background: transparent; padding: 4px; min-width: 120px; }
.chips select:focus { box-shadow: none; }
.item-list { display: flex; flex-direction: column; gap: 14px; }
.item { border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; background: var(--hull-2); }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.item-head strong { font: 600 18px/1.2 var(--font-cond); }
.ladder-row { display: grid; grid-template-columns: 110px 160px 180px auto; gap: 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ladder-row .btn { justify-self: start; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 14px; align-items: center; margin-top: 10px; padding: 10px 12px 10px 18px; background: rgba(15, 43, 64, .94); border: 1px solid var(--line-2); border-radius: 10px; backdrop-filter: blur(6px); }
.save-bar[hidden] { display: none; }
.save-bar .dirty { color: var(--sand); font-size: 14px; }

/* ───────── toasts ───────── */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--hull-3); border: 1px solid var(--line-2); border-left: 4px solid var(--seafoam); border-radius: var(--r-ctl); padding: 12px 16px; font-size: 14.5px; }
.toast-error { border-left-color: var(--buoy); }
.toast a { margin-left: 6px; }

/* ───────── public pages ───────── */
.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 18px; position: relative; overflow-x: hidden; }
.bare-sea { position: fixed; inset: 0; color: rgba(47, 209, 192, .1); pointer-events: none; }
.bare-sea .contours { width: 100%; height: 100%; }
.bare-main { position: relative; width: 100%; max-width: 520px; }
.landing-card { background: var(--hull); border: 1px solid var(--line); border-radius: 16px; padding: 36px 34px 30px; }
.landing-card .logo { width: 56px; height: 56px; margin-bottom: 18px; display: block; }
.landing-title { font-size: 44px; font-weight: 700; line-height: .98; }
.landing-title span { display: block; font-size: 20px; font-weight: 600; color: var(--mist); margin-top: 8px; letter-spacing: .02em; }
.landing-copy { color: var(--mist); margin: 16px 0 24px; max-width: 54ch; }
.landing-alt { margin-top: 22px; font-size: 14px; color: var(--muted); }
.appeal .bare-main { max-width: 640px; }
.appeal-who { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.appeal-status { border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 12px 14px; margin: 16px 0; display: grid; gap: 4px; }
.appeal-approved { border-color: var(--seafoam); }
.appeal-denied { border-color: var(--buoy); }
.appeal-form { margin-top: 18px; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .grid-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-log { grid-row: auto; }
  .conditions { grid-template-columns: 1fr; gap: 16px; }
  .cond-readings > div { padding: 6px 16px; }
}
@media (max-width: 560px) {
  .cond-readings { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 0; justify-content: start; }
  .cond-readings > div, .cond-readings > div:first-child { border-left: 0; padding: 0 18px 0 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .rail { position: fixed; z-index: 40; left: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; }
  .rail.is-open { transform: none; }
  .rail-toggle { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; background: var(--hull); border: 1px solid var(--line); color: var(--foam); padding: 8px 12px; border-radius: var(--r-ctl); font: 500 14px var(--font); cursor: pointer; }
  .stage { padding: 16px 16px 48px; }
  .grid-overview, .split, .split-member, .split-announce, .settings { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .conditions-hero .cond-action { position: static; }
  .facts > div, .facts-compact > div { grid-template-columns: 1fr; gap: 2px; }
  .ladder-row { grid-template-columns: 1fr 1fr; }
  .board li { grid-template-columns: 22px minmax(0, 1fr) 64px; }
  .board .meter, .board .meter-label { grid-column: 2 / -1; }
  .gauge-staff { height: 210px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── transcript embed ───────── */
.transcript { display: block; width: 100%; height: min(78vh, 820px); border: 0; background: #0b1622; }
