/* Sentinel console — styles.
 * Tokens, geometry and component redlines are lifted verbatim from the design
 * handoff (design_handoff_sentinel). Dark is the default; [data-theme="light"]
 * swaps the palette. The colour and emphasis budget belongs to armed and
 * destroying; routine rows stay neutral. */

:root {
  --bg: oklch(0.16 0.012 260);
  --surface: oklch(0.205 0.013 260);
  --surface-2: oklch(0.245 0.014 260);
  --surface-3: oklch(0.265 0.015 260);
  --border: oklch(0.315 0.014 260);
  --border-2: oklch(0.41 0.016 260);
  --text: oklch(0.94 0.006 260);
  --text-2: oklch(0.80 0.013 260);
  --text-3: oklch(0.73 0.013 260);
  --text-4: oklch(0.68 0.012 260);
  --online: oklch(0.78 0.12 165);
  --quiet: oklch(0.74 0.02 260);
  --offline: oklch(0.62 0.012 260);
  --armed: oklch(0.66 0.19 26);
  --armed-strong: oklch(0.55 0.215 26);
  --armed-bg: oklch(0.20 0.075 26);
  --armed-line: oklch(0.44 0.15 26);
  --destroying: oklch(0.76 0.16 62);
  --destroyed: oklch(0.72 0.09 292);
  --error: oklch(0.83 0.15 95);
  --on-online: oklch(0.18 0.04 165);
  --on-destroying: oklch(0.18 0.03 62);
  --on-error: oklch(0.18 0.03 92);
  --link: oklch(0.75 0.09 235);
  --focus: oklch(0.72 0.11 240);
  --tickOn: oklch(0.60 0.03 210);
  --tickOff: oklch(0.30 0.012 260);
  --tickNone: oklch(0.24 0.01 260);
  /* tints, and the update accent: blue belongs to updates the way red belongs to KILL */
  --online-bg: oklch(0.30 0.05 165);
  --quiet-bg: oklch(0.29 0.008 260);
  --offline-bg: oklch(0.26 0.008 260);
  --error-bg: oklch(0.31 0.075 95);
  --upd: oklch(0.80 0.11 228);
  --upd-bg: oklch(0.29 0.055 232);
  --upd-line: oklch(0.46 0.09 232);
  --on-upd: oklch(0.17 0.04 232);
  --scrim: oklch(0.10 0.02 260 / 0.62);
  --shadow: oklch(0.05 0.02 260 / 0.55);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Reddit Sans", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg: oklch(0.965 0.004 260);
  --surface: oklch(0.995 0.002 260);
  --surface-2: oklch(0.955 0.005 260);
  --surface-3: oklch(0.935 0.006 260);
  --border: oklch(0.895 0.006 260);
  --border-2: oklch(0.80 0.008 260);
  --text: oklch(0.26 0.014 260);
  --text-2: oklch(0.38 0.013 260);
  --text-3: oklch(0.42 0.013 260);
  --text-4: oklch(0.45 0.011 260);
  --online: oklch(0.44 0.13 165);
  --quiet: oklch(0.44 0.02 260);
  --offline: oklch(0.62 0.012 260);
  --armed: oklch(0.53 0.215 26);
  --armed-strong: oklch(0.50 0.22 26);
  --armed-bg: oklch(0.95 0.05 26);
  --armed-line: oklch(0.70 0.15 26);
  --destroying: oklch(0.48 0.16 62);
  --destroyed: oklch(0.50 0.14 292);
  --error: oklch(0.47 0.13 82);
  --on-online: oklch(0.99 0.01 165);
  --on-destroying: oklch(0.99 0.01 62);
  --on-error: oklch(0.99 0.01 92);
  --tickOn: oklch(0.48 0.04 210);
  --tickOff: oklch(0.88 0.006 260);
  --tickNone: oklch(0.93 0.004 260);
  --online-bg: oklch(0.93 0.045 165);
  --quiet-bg: oklch(0.93 0.006 260);
  --offline-bg: oklch(0.945 0.005 260);
  --error-bg: oklch(0.955 0.06 92);
  --upd: oklch(0.46 0.13 235);
  --upd-bg: oklch(0.945 0.04 235);
  --upd-line: oklch(0.74 0.09 235);
  --on-upd: oklch(0.99 0.01 235);
  --scrim: oklch(0.35 0.02 260 / 0.42);
  --shadow: oklch(0.55 0.02 260 / 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* -- layout -------------------------------------------------------------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 22px; }

header.app {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.app .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--text); color: var(--bg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-weight: 800; font-size: 15px; letter-spacing: .16em; }
.brand small { color: var(--text-3); font-size: 11px; letter-spacing: .04em; }
.header-spacer { flex: 1; }
.asof { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.asof .live { width: 7px; height: 7px; border-radius: 99px; background: var(--online); animation: pulse 2.4s ease-in-out infinite; }

/* Two fleets and a library. Red underlines the only tab where a destruct lives. */
.tabstrip { background: var(--surface); border-bottom: 1px solid var(--border); }
.tabstrip .wrap { display: flex; gap: 2px; align-items: stretch; }
.tabstrip .tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px 10px; margin-bottom: -1px;
  background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0;
  font-size: 13.5px; font-weight: 650; color: var(--text-3);
}
.tabstrip .tab .mk { font-size: 11px; color: var(--text-4); }
.tabstrip .tab.active { color: var(--text); border-bottom-color: var(--upd); }
.tabstrip .tab.active .mk { color: var(--text-2); }
.tabstrip .tab.boxes.active { border-bottom-color: var(--armed); }
.tabstrip .tab.boxes.active .mk { color: var(--armed); }
.tab-badge { font-family: var(--mono); font-size: 11px; padding: 0 7px; border-radius: 99px; border: 1px dashed var(--border-2); color: var(--text-2); }
.header-user { color: var(--text-3); font-size: 12px; }

.reassure {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
}
.reassure .wrap { display: flex; align-items: center; gap: 10px; padding-block: 8px; font-size: 12.5px; color: var(--text-2); }
.reassure .ok { color: var(--online); font-weight: 700; }
.reassure strong { color: var(--text); }

main .wrap { padding-block: 20px; }

/* -- controls ------------------------------------------------------------ */
button, .btn {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--border-2);
  background: var(--surface-3); color: var(--text);
  padding: 8px 14px; cursor: pointer;
}
button:hover, .btn:hover { border-color: var(--text-4); }
button.ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
button.primary { background: var(--surface-3); }
button.danger-outline { background: transparent; border-color: var(--armed-line); color: var(--armed); }
button.danger-outline:hover { border-color: var(--armed); }
button.danger-fill { background: var(--armed-strong); border-color: var(--armed-strong); color: #fff; }
button.danger-fill:disabled { opacity: .45; cursor: not-allowed; }
button.disarm { background: var(--online); border-color: var(--online); color: var(--on-online); }
input, select {
  font-family: var(--sans); font-size: 13px;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 8px; padding: 9px 11px; width: 100%;
}
input.mono { font-family: var(--mono); }
label.field { display: block; margin: 12px 0 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; }

/* -- status pill --------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.pill .d { flex: none; width: 8px; height: 8px; border-radius: 99px; }
.pill.online   { background: color-mix(in oklch, var(--online) 22%, var(--surface)); color: var(--online); }
.pill.online .d { background: var(--online); }
.pill.quiet    { background: var(--surface-2); color: var(--text-2); }
.pill.quiet .d { background: var(--quiet); }
.pill.offline  { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border-2); }
.pill.offline .d { width: 7px; height: 7px; background: transparent; border: 2px solid var(--offline); }
.pill.armed    { background: var(--armed-strong); color: #fff; }
.pill.armed .d { background: #fff; animation: pulse 1.3s ease-in-out infinite; }
.pill.destroying { background: var(--destroying); color: var(--on-destroying); }
.pill.destroying .d { background: var(--on-destroying); animation: pulse 1s ease-in-out infinite; }
.pill.destroyed { background: color-mix(in oklch, var(--destroyed) 22%, var(--surface)); color: var(--destroyed); border: 1px solid var(--destroyed); }
.pill.destroyed .d { background: var(--destroyed); }
.pill.error    { background: var(--error); color: var(--on-error); }
.pill.error .d { background: var(--on-error); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* -- attention strip ----------------------------------------------------- */
.attention { margin-bottom: 18px; }
.attention h2 { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.attention-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.att-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border-2); border-radius: 9px; padding: 14px 16px;
}
.att-card.armed { border-left-color: var(--armed); background: var(--armed-bg); }
.att-card.destroying { border-left-color: var(--destroying); }
.att-card.error { border-left-color: var(--error); }
.att-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.att-site { font-size: 17px; font-weight: 700; }
.att-id { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.att-meta { margin: 8px 0 12px; color: var(--text-3); font-size: 12px; }
.att-count { font-family: var(--mono); color: var(--armed); }
.att-actions { display: flex; gap: 8px; }
.att-actions button { flex: 1; }
.countdown { font-family: var(--mono); color: var(--armed); font-weight: 600; }

/* -- toolbar + table ----------------------------------------------------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input.search { max-width: 280px; }
.toolbar .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.toolbar .seg button { border: none; border-radius: 0; background: transparent; color: var(--text-3); padding: 7px 11px; }
.toolbar .seg button.active { background: var(--surface-3); color: var(--text); }
.toolbar .spacer { flex: 1; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.table { min-width: 940px; }
.trow {
  display: grid;
  grid-template-columns: minmax(190px,1.5fr) 172px minmax(150px,1fr) 108px 74px 150px 96px 26px;
  gap: 14px; align-items: center; padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.thead { color: var(--text-4); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.trow:last-child { border-bottom: none; }
.trow.body { cursor: pointer; }
.trow.body:hover { background: var(--surface-2); }
.cell-site .s { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.cell-site .h { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.cell-seen .rel { font-size: 13px; }
.cell-seen .band { font-size: 11px; color: var(--text-4); }
.cell .v { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.chev { color: var(--text-4); text-align: right; }
.table-foot { padding: 10px 18px; color: var(--text-4); font-size: 11px; border-top: 1px solid var(--border); }
.empty, .loading { padding: 60px 20px; text-align: center; color: var(--text-3); }

/* -- drawer -------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100%);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px -20px rgba(0,0,0,.6); z-index: 50;
  overflow-y: auto;
}
.drawer .sticky { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; z-index: 2; }
.drawer .sticky .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer .site { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.drawer .idline { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.drawer .body { padding: 18px 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.fact { background: var(--surface); padding: 11px 13px; }
.fact .k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.fact .v { font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.section-h { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 22px 0 10px; }

/* check-in history */
.ticks { display: flex; align-items: flex-end; gap: 2px; height: 30px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.tick { width: 4px; background: var(--tickOff); border-radius: 1px; }
.tick.on { background: var(--tickOn); }
.tick.sealed { background: var(--destroyed); opacity: .5; }
.ticks-cap { font-size: 12.5px; margin-top: 8px; }
.cap-steady { color: var(--online); }
.cap-flaky { color: var(--destroying); }
.cap-quiet { color: var(--text-3); }
.cap-dark { color: var(--offline); }
.cap-sealed { color: var(--destroyed); }
.cap-mismatch { color: var(--error); }

/* lifecycle panel */
.state-panel { border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; margin-top: 12px; }
.state-panel.armed { border-color: var(--armed-line); background: var(--armed-bg); }
.state-panel.destroying { border-color: var(--destroying); }
.state-panel.destroyed { border-color: var(--destroyed); }
.state-panel .kh { font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.state-panel.armed .kh { color: var(--armed); }
.big-count { font-size: 28px; font-weight: 600; font-family: var(--mono); margin: 6px 0; }
.phases { list-style: none; padding: 0; margin: 10px 0 0; }
.phases li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.phases li .t { font-family: var(--mono); color: var(--text-4); font-size: 11.5px; }
.phases li.done .marker { color: var(--online); }
.lock-note { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.silence-note { margin-top: 10px; font-size: 12.5px; color: var(--destroyed); }

/* danger zone */
.danger-zone { border: 1px solid var(--armed-line); border-radius: 9px; margin-top: 26px; overflow: hidden; }
.danger-zone .dz-head { background: var(--armed-bg); color: var(--armed); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 14px; }
.danger-zone .dz-body { padding: 14px; }
.danger-zone .dz-body p { color: var(--text-3); font-size: 12.5px; margin: 0 0 12px; }

/* -- arm modal ----------------------------------------------------------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px, 96vw); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--armed-line); border-radius: 14px; }
.modal .m-head { padding: 20px 22px 4px; }
.modal .m-kicker { color: var(--armed); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.modal .m-site { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 2px; }
.modal .m-id { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.modal .m-body { padding: 8px 22px 22px; }
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li { display: flex; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.checklist li .c { color: var(--online); font-weight: 700; }
.checklist li .x { color: var(--armed); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border-2); background: var(--surface-3); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.chip.active { border-color: var(--armed); color: var(--armed); background: var(--armed-bg); }
.profiles { display: grid; gap: 8px; margin-top: 6px; }
.profile { border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.profile.active { border-color: var(--armed); background: var(--armed-bg); }
.profile .pl { font-weight: 600; font-size: 13px; }
.profile .ps { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.timing { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--destroying); border-radius: 8px; padding: 11px 13px; margin: 14px 0; font-size: 12.5px; color: var(--text-2); }
.m-actions { display: flex; gap: 10px; margin-top: 16px; }
.m-actions .cancel { flex: 1.4; }
.m-actions .confirm { flex: 1; }

/* -- audit --------------------------------------------------------------- */
.audit-table { min-width: 900px; }
.audit-table .arow { display: grid; grid-template-columns: 140px 100px 150px minmax(150px,1fr) minmax(220px,1.7fr); gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: center; }
.audit-table .arow.thead { font-size: 10.5px; padding-block: 10px; }
.audit-table .arow.grave { border-left: 3px solid var(--armed); }
.audit-table .arow .t { font-family: var(--mono); color: var(--text-3); font-size: 12px; }
.audit-table .arow .tgt { font-size: 12px; color: var(--text-2); }
.audit-table .arow .det { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.a-action { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-3); }
.a-arm { background: var(--armed-strong); color: #fff; }
.a-disarm, .a-desk_approved, .a-upd_done { background: var(--online-bg); color: var(--online); }
.a-delivered, .a-destroy_ack { background: var(--destroying); color: var(--on-destroying); }
.a-destroyed { background: color-mix(in oklch, var(--destroyed) 22%, var(--surface)); color: var(--destroyed); border: 1px solid var(--destroyed); }
.a-desk_seen { background: transparent; color: var(--text-2); border: 1px dashed var(--border-2); }
.a-desk_blocked, .a-desk_reset { border: 1px solid var(--border-2); }
.a-rel_uploaded, .a-rel_restored { color: var(--text-2); }
.a-rel_withdrawn { color: var(--text-2); border: 1px dashed var(--border-2); }
.a-upd_assigned { background: var(--upd-bg); color: var(--upd); border: 1px solid var(--upd-line); }
.a-upd_failed { background: var(--error); color: var(--on-error); }

.dev-banner { background: var(--error); color: var(--on-error); text-align: center; font-size: 12px; font-weight: 600; padding: 6px; }

/* -- sign in ------------------------------------------------------------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.signin .card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.signin h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.signin p { color: var(--text-4); font-size: 12px; margin: 0 0 18px; }
.signin .err { color: var(--armed); font-size: 12.5px; margin-top: 10px; min-height: 16px; }
.signin button { width: 100%; margin-top: 16px; }

/* ==========================================================================
   Intake desks, the release library, sending updates (desks.js).
   Redlines from design_handoff_sentinel §desks. Updating is deliberate, not
   grave: it spends blue (--upd), never KILL's red.
   ========================================================================== */

.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head.split { align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); max-width: 760px; line-height: 1.5; }
.spacer { flex: 1; }
.mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); }
.mini-label.block { display: block; margin: 20px 0 7px; }
.mini-label .plain { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.fine { margin: 0; font-size: 12px; color: var(--text-4); line-height: 1.5; }
textarea {
  width: 100%; min-height: 56px; resize: vertical; padding: 10px 12px; font-family: var(--sans);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 12.5px; line-height: 1.55;
}
button.sm, .btn.sm { padding: 5px 11px; font-size: 11.5px; border-radius: 6px; }
button.upd { background: var(--upd); border-color: var(--upd); color: var(--on-upd); font-weight: 700; }
button.solid { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; padding: 10px 16px; }
button.dashed { background: transparent; border: 1px dashed var(--border-2); color: var(--text-3); }
button.link { background: transparent; border: none; color: var(--text-3); text-decoration: underline; }
button:disabled { opacity: .55; cursor: not-allowed; }
a.btn { display: inline-block; text-decoration: none; }
a.btn.ghost { background: transparent; border-color: var(--border); color: var(--text-2); }

.panel { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); overflow: hidden; }
.panel.pad { padding: 15px 16px; }
.panel.dashed { border-style: dashed; border-color: var(--border-2); }
.empty-state { padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.empty-state .glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); font-size: 19px; }
.empty-state h3 { margin: 6px 0 0; font-size: 16px; font-weight: 700; }
.empty-state p { margin: 0; max-width: 440px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.empty-state p strong { color: var(--text-2); }
.empty-state code { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text-4); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 10px; border-radius: 6px; }

/* controls */
.controls { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.controls-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.searchbox { position: relative; flex: 1; min-width: 210px; max-width: 320px; }
.searchbox .glass { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-4); font-size: 13px; }
.searchbox input { background: var(--surface); border-color: var(--border); }
.searchbox .glass + input { padding-left: 30px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { padding: 7px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-3); }
.fchip.active { border-color: var(--border-2); background: var(--surface-3); color: var(--text); }
.fchip .n, .vchip .n { opacity: .6; margin-left: 6px; font-family: var(--mono); }
.vchip { padding: 5px 11px; border-radius: 99px; font-family: var(--mono); font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.vchip.active { border-color: var(--upd); background: var(--upd-bg); color: var(--text); }
.controls .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.controls .seg button { border: none; border-radius: 0; background: transparent; color: var(--text-3); padding: 7px 13px; }
.controls .seg button.active { background: var(--surface-3); color: var(--text); }

/* desk status pills — a different vocabulary from the boxes', on purpose */
.pill.desk-active { background: var(--online-bg); color: var(--online); }
.pill.desk-active .d { background: var(--online); }
.pill.desk-away { background: var(--quiet-bg); color: var(--text-2); }
.pill.desk-away .d { background: var(--quiet); }
.pill.desk-silent { background: var(--offline-bg); color: var(--text-2); border: 1px solid var(--border-2); }
.pill.desk-silent .d { width: 7px; height: 7px; background: transparent; border: 2px solid var(--text-3); }
.pill.desk-pending { background: transparent; color: var(--text-2); border: 1px dashed var(--border-2); }
.pill.desk-pending .d { width: 7px; height: 7px; background: transparent; border: 2px dashed var(--text-3); }
.pill.desk-blocked { background: var(--surface-3); color: var(--text-3); border: 1px solid var(--border); }
.pill.desk-blocked .d { background: var(--text-4); }
.pill.desk-error { background: var(--error); color: var(--on-error); }
.pill.desk-error .d { background: var(--on-error); }

/* update phases. Waiting states never move: no spinner, no pulse. */
.phase { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; white-space: nowrap; align-self: flex-start; }
.phase .d { flex: none; width: 7px; height: 7px; border-radius: 99px; }
.ph-assigned { color: var(--text-2); border: 1px solid var(--border-2); }
.ph-assigned .d { background: var(--text-3); }
.ph-offered { color: var(--upd); border: 1px solid var(--upd-line); }
.ph-offered .d { background: var(--upd); }
.ph-downloading, .ph-staged { background: var(--upd-bg); color: var(--upd); border: 1px solid var(--upd-line); }
.ph-downloading .d { background: var(--upd); animation: pulse 1.1s ease-in-out infinite; }
.ph-staged .d { width: 8px; height: 8px; background: transparent; border: 2px solid var(--upd); }
.ph-installing { background: var(--upd); color: var(--on-upd); }
.ph-installing .d { background: var(--on-upd); animation: pulse .9s ease-in-out infinite; }
.ph-done { background: var(--online-bg); color: var(--online); }
.ph-done .d { background: var(--online); }
.ph-failed { background: var(--error); color: var(--on-error); }
.ph-failed .d { background: var(--on-error); }
.ph-cancelled, .ph-superseded { background: var(--surface-3); color: var(--text-3); }
.ph-cancelled .d, .ph-superseded .d { background: var(--text-4); }

/* the desks table */
.table-x { overflow-x: auto; }
.dtable { min-width: 1060px; }
.drow { display: grid; grid-template-columns: 28px minmax(200px,1.4fr) 152px 148px minmax(190px,1.1fr) 92px 130px 24px; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); align-items: center; }
.drow.thead { padding-block: 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); font-weight: 600; }
.drow.body { cursor: pointer; }
.drow.body:hover { background: var(--surface-2); }
.drow.ticked, .drow.ticked:hover { background: var(--upd-bg); }
.cbox { flex: none; width: 17px; height: 17px; padding: 0; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: transparent; border: 1px solid var(--border-2); color: transparent; }
.cbox.on { background: var(--upd); border-color: var(--upd); color: var(--on-upd); }
.cbox.off { border: 1px dashed var(--border); color: var(--text-4); font-size: 9px; cursor: not-allowed; }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who .nm { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.who .nm.dim { color: var(--text-3); }
.who .host { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .note { font-size: 11.5px; color: var(--text-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last, .queue { display: flex; flex-direction: column; gap: 1px; }
.last span { font-size: 13px; color: var(--text-2); }
.last span.strong { color: var(--text); font-weight: 600; }
.last small, .queue small { font-size: 11px; color: var(--text-4); }
.vercell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ver, .pair { font-family: var(--mono); }
.vercell .ver { font-size: 13px; color: var(--text-2); }
.vercell .pair { font-size: 13px; }
.pair .from { color: var(--text-3); }
.pair .arrow { color: var(--upd); }
.pair strong { font-weight: 600; }
.vercell .bar { display: block; height: 3px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.vercell .bar span { display: block; height: 100%; background: var(--upd); }
small.warn, .warn { color: var(--error); }
.queue span { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.queue.bad span { color: var(--error); font-weight: 600; }
.ip { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.table-foot.split { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11.5px; }

/* pending strip: calmer than the attention strip — no pulse, no colour */
.pending { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 11px; overflow: hidden; margin-bottom: 18px; }
.pending-head { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pending-head .ring { width: 8px; height: 8px; border-radius: 99px; border: 2px dashed var(--text-3); align-self: center; }
.pending-head h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.pending-head .count { font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-weight: 600; }
.pending-head .hint { font-size: 12px; color: var(--text-3); }
.pending-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pending-row:last-child { border-bottom: none; }
.pending-row .who { min-width: 170px; }
.pfacts { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.pfacts div { display: flex; flex-direction: column; gap: 2px; }
.pfacts small { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); }
.pfacts span { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* bulk bar: the count is the set that will be acted on */
.bulk { position: sticky; top: 62px; z-index: 12; border: 1px solid var(--upd-line); background: var(--surface); border-radius: 11px; box-shadow: 0 12px 30px -18px var(--shadow); overflow: hidden; margin-bottom: 14px; }
.bulk-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; }
.bulk .cnt { font-size: 14px; font-weight: 700; }
.bulk .cnt b { font-family: var(--mono); color: var(--upd); font-size: 16px; margin-right: 4px; }
.bulk .hint { font-size: 12px; color: var(--text-3); }
.bulk-hidden { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.bulk-hidden .bang { color: var(--error); font-weight: 700; }
.bulk-hidden button { padding: 5px 11px; font-size: 11.5px; border-radius: 6px; }

/* batch strip: follows a group update to the end, over days */
.batch { border: 1px solid var(--upd-line); background: var(--upd-bg); border-radius: 11px; overflow: hidden; margin-bottom: 14px; }
.batch-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--upd); }
.to { font-family: var(--mono); font-size: 13.5px; font-weight: 650; }
.sent { font-size: 12px; color: var(--text-2); }
.gcounts { display: flex; gap: 12px; flex-wrap: wrap; }
.gcount { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.gcount .d { flex: none; width: 8px; height: 8px; border-radius: 99px; }
.gcount.g-done { color: var(--online); } .gcount.g-done .d, .segbar .g-done { background: var(--online); }
.gcount.g-upd, .gcount.g-staged { color: var(--upd); } .gcount.g-upd .d, .segbar .g-upd, .segbar .g-staged { background: var(--upd); }
.gcount.g-staged .d { background: transparent; border: 2px solid var(--upd); }
.gcount.g-wait { color: var(--text-2); } .gcount.g-wait .d, .segbar .g-wait { background: var(--quiet); }
.gcount.g-fail { color: var(--error); } .gcount.g-fail .d, .segbar .g-fail { background: var(--error); }
.gcount.g-off { color: var(--text-3); } .gcount.g-off .d, .segbar .g-off { background: var(--text-4); }
.segbar { display: flex; height: 4px; background: var(--surface); }
.batch-rows { background: var(--surface); border-top: 1px solid var(--border); }
.batch-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.batch-row .nm { font-size: 13px; font-weight: 600; min-width: 130px; }
.batch-row .pair { font-size: 12.5px; color: var(--text-2); min-width: 110px; }
.batch-row .detail { font-size: 12px; color: var(--text-3); flex: 1; min-width: 160px; }
.batch-foot { padding: 9px 16px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.sent-list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.sent-head { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.sent-head h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.sent-head span { font-size: 12px; color: var(--text-3); }
.sent-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sent-row:last-child { border-bottom: none; }
.sent-row .tag { color: var(--text-3); min-width: 64px; }
.sent-row .to { min-width: 74px; }
.sent-row .sent { min-width: 180px; }
.sent-row .gcounts { flex: 1; }
.state { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-3); }
.state.live { background: var(--upd-bg); color: var(--upd); border: 1px solid var(--upd-line); }

/* the desk drawer */
.scrim { background: var(--scrim); }
.drawer.desk { width: min(560px, 100%); }
.drawer.desk .top { justify-content: flex-start; }
.kindtag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-3); border: 1px solid var(--border-2); padding: 2px 8px; border-radius: 99px; }
.drawer.desk .site { font-size: 27px; }
.drawer.desk .site .sid { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--text-3); letter-spacing: 0; margin-left: 8px; }
.facts.three { grid-template-columns: repeat(3, 1fr); }
.fact .v.big { font-size: 15px; font-weight: 600; color: var(--text); }
.fact .v.ok { color: var(--online); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 0 10px; }
.sec-head h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.sec-head span { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.dstrip { display: flex; align-items: flex-end; gap: 2px; height: 30px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dtick { flex: 1; max-width: 4px; border-radius: 1px; height: 5px; background: var(--tickOff); }
.dtick.on { height: 18px; background: var(--tickOn); }
.dtick.bad { height: 18px; background: var(--error); }
.dtick.wk { opacity: .45; }
.dtick.none { height: 3px; background: var(--tickNone); }
.cap { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.cap.strong { color: var(--text-2); }
.lastline { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.callout { margin-top: 20px; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 11px; padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; }
.callout.dashed { border-style: dashed; }
.callout.warnbox { border-color: var(--error); background: var(--error-bg); }
.callout strong { font-size: 13.5px; }
.callout p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.updbox { margin-top: 24px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 11px; overflow: hidden; }
.updbox-head { padding: 6px 15px; border-bottom: 1px solid var(--border); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 700; }
.updbox.flying { border-color: var(--upd-line); background: var(--upd-bg); }
.updbox.flying .updbox-head { border-color: var(--upd-line); color: var(--upd); }
.updbox.failed { border-color: var(--error); background: var(--error-bg); }
.updbox.failed .updbox-head { border-color: var(--error); color: var(--error); }
.updbox-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 13px; }
.updbox-body p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.running { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.running small { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); }
.running .ver { font-size: 24px; font-weight: 600; }
.warnpill { display: inline-flex; align-self: flex-start; font-size: 11.5px; font-weight: 650; color: var(--error); background: var(--error-bg); border-radius: 99px; padding: 2px 10px; }
.upd-now { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.pair.big { font-size: 17px; }
.batchtag { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.timeline { display: flex; flex-direction: column; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 13px; }
.tl { display: flex; gap: 10px; align-items: flex-start; }
.tl .g { flex: none; width: 18px; text-align: center; font-size: 12px; color: var(--text-4); }
.tl div { display: flex; flex-direction: column; gap: 1px; }
.tl .l { font-size: 12.5px; font-weight: 500; }
.tl small { font-size: 11.5px; color: var(--text-3); }
.tl.k-done .g { color: var(--text-2); }
.tl.k-cur .g { color: var(--upd); } .tl.k-cur .l { font-weight: 650; }
.tl.k-fail .g, .tl.k-fail .l { color: var(--error); }
.tl.k-pend .l { color: var(--text-4); }
.hlist { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.hrow { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.hrow:last-child { border-bottom: none; }
.hrow .pair { font-size: 12.5px; }
.hrow .detail { font-size: 12px; color: var(--text-3); flex: 1; min-width: 120px; }
.hrow .when { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.hpill { display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--text-3); }
.hpill.ok { background: var(--online-bg); color: var(--online); }
.hpill.bad { background: var(--error-bg); color: var(--error); }
.footnote { margin-top: 22px; display: flex; gap: 9px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; }

/* sheets: send update, upload, withdraw. Cancel is always the calm, easy way out. */
.modal-scrim { background: var(--scrim); }
.modal-scrim.top { place-items: start center; padding: 34px 16px; overflow: auto; }
.sheet { width: min(620px, 96vw); background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 40px 90px -30px var(--shadow); overflow: hidden; }
.sheet.narrow { width: min(520px, 96vw); }
.sheet.upd { border-color: var(--upd-line); border-top: 4px solid var(--upd); }
.sheet-head { padding: 18px 22px 15px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { margin: 12px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sheet-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.kick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kick .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--text-3); }
.kick .k.upd { color: var(--upd); }
.step { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; color: var(--text-4); border: 1px solid var(--border); }
.step.on { background: var(--upd-bg); color: var(--upd); border-color: var(--upd-line); }
.bigver { margin-top: 11px; font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.sheet-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; max-height: 56vh; overflow-y: auto; }
.sheet-body .lead { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.sheet-body .lead strong { color: var(--text); }
.sheet-body .mini-label.block { margin: 0 0 -9px; }
.sheet-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; background: var(--surface-2); }
button.wide { flex: 1; padding: 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; }
button.wide.upd, button.wide.solid { flex: 1.4; font-weight: 800; }

/* version picker — the most misread control in the flow; nothing is pre-selected */
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 13px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 400; }
.opt.sel { background: var(--upd-bg); border-color: var(--upd-line); }
.opt.dead { opacity: .55; cursor: not-allowed; }
.opt .radio { flex: none; width: 17px; height: 17px; border-radius: 99px; margin-top: 4px; border: 2px solid var(--border-2); }
.opt.sel .radio { border-color: var(--upd); background: radial-gradient(circle, var(--upd) 0 4px, transparent 5px); }
.optbody { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.optline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.opt .ver { font-size: 21px; font-weight: 600; }
.opt .notes { font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.opt .already { font-size: 12px; color: var(--text-4); }
.tag-new { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--text-2); background: var(--surface-3); border: 1px solid var(--border-2); padding: 2px 8px; border-radius: 99px; }
.tag-wd { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; color: var(--text-2); border: 1px dashed var(--border-2); background: var(--surface-3); padding: 3px 9px; border-radius: 99px; align-self: flex-start; }
.tag-zero { font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); border: 1px dashed var(--border-2); padding: 2px 8px; border-radius: 99px; }

/* review: grouped, never one flat list */
.target { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--upd-bg); border: 1px solid var(--upd-line); border-radius: 10px; padding: 13px 15px; }
.target small { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.target .ver { font-size: 26px; font-weight: 600; color: var(--upd); }
.summary { font-size: 13.5px; font-weight: 650; }
.rgroup { display: flex; flex-direction: column; gap: 7px; }
.gt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--text-3); }
.gt.dim { color: var(--text-4); }
.rlist { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.rrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 11px 13px; border-bottom: 1px solid var(--border); background: var(--surface); }
.rrow:last-child { border-bottom: none; }
.rrow.skipped { opacity: .72; }
.rrow .nm { font-size: 13px; font-weight: 600; min-width: 128px; }
.rrow .pair { font-size: 13px; color: var(--text-2); min-width: 118px; }
.rrow .note { font-size: 12.5px; color: var(--text-3); flex: 1; min-width: 150px; }
.vpill { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-3); }
.vpill.ok { background: var(--upd-bg); color: var(--upd); border: 1px solid var(--upd-line); }
/* Scoped to the sheets: the arm-destruct dialog has a .timing of its own, and it must keep its amber edge. */
.sheet .timing, .sheet .oneway, .sheet .info { display: flex; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--upd); border-radius: 8px; padding: 12px 13px; margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.sheet .timing strong, .sheet .oneway strong, .sheet .info strong { color: var(--text); }
.sheet .oneway { border-left-color: var(--border-2); }
.sheet .info > span:first-child { color: var(--upd); font-weight: 800; }
.nudge { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 8px; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.nudge span { flex: 1; min-width: 200px; }
.diverged { display: flex; gap: 10px; background: var(--error-bg); border: 1px solid var(--error); border-radius: 9px; padding: 12px 13px; font-size: 12.5px; line-height: 1.55; margin-bottom: 14px; }
.diverged > span:first-child { color: var(--error); font-weight: 800; }
.sheet-body .diverged { margin-bottom: 0; }

/* releases */
.spread-box { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.spread-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.spread-head h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.spread-head span { font-size: 12px; color: var(--text-4); }
.spreadbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.s-0 { background: var(--upd); } .s-1 { background: var(--upd-line); } .s-2 { background: var(--border-2); } .s-wd { background: var(--error); }
.schip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 400; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.schip .sq { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.schip .b { font-weight: 600; } .schip .n { color: var(--text-3); }
.rel-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.release { border: 1px solid var(--border-2); background: var(--surface); border-radius: 12px; padding: 17px 18px; }
.release.wd { border-color: var(--border); background: var(--surface-2); }
.rel-cols { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.rel-id { display: flex; flex-direction: column; gap: 7px; min-width: 150px; }
.rel-ver { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.rel-ver .ver { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.release.wd .rel-ver .ver { color: var(--text-2); }
.release .sig { font-size: 12px; color: var(--online); }
.release .meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.rel-notes { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.rel-notes p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); max-width: 56ch; white-space: pre-wrap; }
.rel-notes .by { font-size: 12px; color: var(--text-3); }
.notes-edit { display: flex; flex-direction: column; gap: 7px; }
.wdbox { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-2); border-radius: 7px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.wdbox strong { color: var(--text); } .wdbox .why { color: var(--text-3); }
.rel-side { display: flex; flex-direction: column; gap: 9px; min-width: 176px; }
.counts { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.counts div { background: var(--surface); padding: 9px 11px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.counts span { font-size: 11.5px; color: var(--text-3); }
.counts b { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.counts b.upd { color: var(--upd); } .counts b.dim { color: var(--text-3); }
.rel-acts { display: flex; gap: 7px; flex-wrap: wrap; }

/* upload */
.dropzone { border: 2px dashed var(--border-2); border-radius: 11px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; background: var(--surface-2); cursor: pointer; }
.dropzone.over { border-color: var(--upd); background: var(--upd-bg); }
.dropzone .arrow { font-size: 22px; color: var(--text-3); }
.dropzone strong { font-size: 14.5px; }
.dropzone span:last-child { font-size: 12.5px; color: var(--text-3); max-width: 360px; line-height: 1.5; }
.upfile { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.upbar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.upbar div { height: 100%; background: var(--upd); transition: width .2s; }
.sheet-body .note { font-size: 12.5px; color: var(--text-3); }
.hero { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 11px; padding: 17px 18px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--text-3); }
.hero small { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); }
.hero .ver { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--text); }
.okbox, .rejbox { border-radius: 11px; padding: 17px 18px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; line-height: 1.55; }
.okbox { border: 1px solid var(--online); background: var(--online-bg); }
.okbox .h { font-size: 14px; font-weight: 700; color: var(--online); }
.rejbox { border: 1px solid var(--error); background: var(--error-bg); }
.rejbox .h { font-size: 14px; font-weight: 700; color: var(--error); }
.next { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px 13px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.next .mono { font-size: 11.5px; color: var(--text-4); }
