@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0c1016;
  --bg-3: #0e1219;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --field: rgba(255, 255, 255, 0.05);
  --track: rgba(255, 255, 255, 0.07);
  --seg: rgba(255, 255, 255, 0.06);
  --seg-on: rgba(255, 255, 255, 0.14);
  --toggle-off: rgba(255, 255, 255, 0.1);
  --row-hover: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.55);
  --knob: #f3f6f9;
  --knob-shade: rgba(0, 0, 0, 0.4);
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --green: #34d399;
  --amber: #fbbf24;
  --orange: #fb923c;
  --red: #f87171;
  --violet: #a78bfa;
  --accent-ink: #031018;
  --good-soft: rgba(52, 211, 153, 0.08);
  --good-edge: rgba(52, 211, 153, 0.32);
  --warn-soft: rgba(251, 191, 36, 0.08);
  --warn-edge: rgba(251, 191, 36, 0.32);
  --bad-soft: rgba(248, 113, 113, 0.1);
  --bad-edge: rgba(248, 113, 113, 0.4);
  --info-soft: rgba(34, 211, 238, 0.08);
  --info-edge: rgba(34, 211, 238, 0.3);
  --bad-ink: #fecaca;
  --good-ink: #bbf7d0;
  --toast-bad: #1e0e10;
  --toast-ok: #081c16;
  --heat-ink: rgba(0, 0, 0, 0.72);
  --heat-empty: rgba(255, 255, 255, 0.06);
  --select: rgba(34, 211, 238, 0.12);
  --focus: #22d3ee;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --gap: 16px;
  --pad: 20px;
  --font: 'Inter Variable', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cyan);
  scrollbar-color: var(--line-strong) var(--bg);
}
::selection { background: var(--select); color: var(--text); }
button { font: inherit; color: inherit; }
a { color: var(--cyan); }
a.btn { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font-size: 12px; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
.num, td, .tile-value { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small-text { font-size: 12.5px; }
[hidden] { display: none !important; }

.shell { display: flex; min-height: 100%; }
.main { flex: 1; min-width: 0; padding: calc(16px + var(--safe-top)) 16px calc(96px + var(--safe-bottom)); max-width: 1440px; margin: 0 auto; width: 100%; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; gap: 4px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.nav-brand { display: none; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-3); font-size: 11px; font-weight: 600;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-item:hover { color: var(--text-2); }
.nav-item.active { color: var(--text); }
.nav-item.active svg { color: var(--cyan); }
@media (min-width: 900px) {
  .nav { position: sticky; top: 0; bottom: auto; flex-direction: column; justify-content: flex-start; gap: 8px; width: 92px; height: 100vh; padding: 24px 12px; border-top: 0; border-right: 1px solid var(--line); }
  .nav-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 11px; font-weight: 700; color: var(--text-2); }
  .nav-dot { width: 24px; height: 24px; border-radius: var(--radius-xs); background: var(--cyan); }
  .nav-item { flex: 0; padding: 12px 4px; }
  .nav-item:hover { background: var(--surface); }
  .nav-item.active { background: var(--surface-2); }
  .main { padding: 28px 32px 40px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 4px 0 20px; }
.page-title { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; margin: 0; overflow-wrap: break-word; min-width: 0; }
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > *, .contents > * { grid-column: span 12; min-width: 0; }
.contents { display: contents; }
@media (min-width: 700px) { .s6, .s4 { grid-column: span 6 !important; } }
@media (min-width: 1100px) {
  .s4 { grid-column: span 4 !important; } .s5 { grid-column: span 5 !important; }
  .s7 { grid-column: span 7 !important; } .s8 { grid-column: span 8 !important; }
}

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--pad); overflow: hidden;
  animation: rise 0.45s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--text-2); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles.t5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { border-top: 1px solid var(--line); padding: 12px 0 16px; min-width: 0; }
.tile-label { font-size: 12.5px; color: var(--text-2); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value { font-size: clamp(20px, 5vw, 24px); font-weight: 650; margin-top: 4px; letter-spacing: -0.02em; white-space: nowrap; }
.tile-value small { font-size: 13px; color: var(--text-2); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.tile-foot { font-size: 12px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.good .tile-value { color: var(--green); }
.tile.warn .tile-value { color: var(--amber); }
.tile.bad .tile-value { color: var(--red); }
.tile.na .tile-value { color: var(--text-3); }

.hero { display: flex; gap: 20px; align-items: center; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 700px) { .hero { flex-direction: column; align-items: stretch; } .soc-ring { align-self: center; } }
.soc-ring { position: relative; width: 152px; height: 152px; flex: none; }
.soc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--track); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--cyan); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 0.8s var(--ease), stroke 0.4s; }
.soc-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.soc-text b { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.soc-text span { font-size: 12px; color: var(--text-2); font-weight: 600; margin-top: 4px; }
.soc-text em { font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 4px; }

.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-gap { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.meta > span { white-space: nowrap; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.chip.good { color: var(--green); border-color: var(--good-edge); background: var(--good-soft); }
.chip.warn { color: var(--amber); border-color: var(--warn-edge); background: var(--warn-soft); }
.chip.bad { color: var(--red); border-color: var(--bad-edge); background: var(--bad-soft); }
.chip.info { color: var(--cyan); border-color: var(--info-edge); background: var(--info-soft); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; min-height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color 0.2s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: var(--surface-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled='true'] { background: var(--surface); color: var(--text-3); border-color: var(--line); cursor: not-allowed; opacity: 0.7; transform: none; }
.btn.primary { background: var(--cyan); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { background: var(--blue); }
.btn.primary:disabled { background: var(--surface); color: var(--text-3); border-color: var(--line); }
.btn.danger { background: var(--bad-soft); border-color: var(--bad-edge); color: var(--bad-ink); }
.btn.small { padding: 4px 12px; min-height: 32px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn.icon { padding: 0; width: 44px; height: 44px; flex: none; font-size: 18px; }

.toggle { position: relative; width: 52px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--toggle-off); cursor: pointer; padding: 0; flex: none; transition: background-color 0.25s var(--ease); }
.toggle::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--knob); box-shadow: 0 2px 4px var(--knob-shade); transition: transform 0.25s var(--ease); }
.toggle[aria-checked='true'] { background: var(--green); border-color: transparent; }
.toggle[aria-checked='true']::after { transform: translateX(20px); }
.toggle:disabled { cursor: not-allowed; opacity: 0.6; }

.segmented { display: inline-flex; padding: 4px; border-radius: var(--radius-sm); background: var(--seg); border: 1px solid var(--line); gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 8px 12px; border-radius: var(--radius-xs); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'] { background: var(--seg-on); color: var(--text); }
.segmented button:disabled { color: var(--text-3); cursor: not-allowed; opacity: 0.6; }

input.field, select.field { width: 100%; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); padding: 12px; font: inherit; font-size: 15px; min-height: 44px; }
input.field:focus-visible, select.field:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input.field:disabled, select.field:disabled { color: var(--text-3); cursor: not-allowed; opacity: 0.7; }
select.field option { background: var(--bg-3); }
.form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.form-row { align-items: flex-end; }
.form-row .fld:first-child { width: 140px; }
.sim-row { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.banner { margin: -4px 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid var(--warn-edge); color: var(--amber); font-size: 13.5px; font-weight: 600; }
.banner.info { background: var(--info-soft); border-color: var(--info-edge); color: var(--cyan); }
.banner.bad { background: var(--bad-soft); border-color: var(--bad-edge); color: var(--red); }
.banner a { color: inherit; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-bottom)); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--toast-bad); border: 1px solid var(--bad-edge); color: var(--bad-ink); font-size: 13.5px; animation: rise 0.3s var(--ease) both; }
.toast.ok { background: var(--toast-ok); border-color: var(--good-edge); color: var(--good-ink); }

canvas.bars { width: 100%; display: block; }
.chart { width: 100%; min-height: 200px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-legend b { color: var(--text); font-weight: 650; }
.uplot { font-family: var(--font); }
.u-legend { font-size: 12px; color: var(--text-2); }
.u-legend .u-marker { border-radius: 2px; }
.u-select { background: var(--select); }
.u-hz .u-cursor-x, .u-hz .u-cursor-y { border-color: var(--line-strong); }

.tip { position: fixed; z-index: 70; pointer-events: none; padding: 8px 12px; border-radius: var(--radius-xs); background: var(--bg-3); border: 1px solid var(--line-strong); font-size: 12.5px; white-space: nowrap; }
.tip b { font-weight: 650; }

.heat { display: grid; gap: 8px; }
.heat-row { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
.heat-label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.heat-cells { display: grid; gap: 4px; }
.heat-cell { height: 24px; border-radius: 4px; background: var(--heat-empty); font-size: 10.5px; display: grid; place-items: center; color: var(--heat-ink); font-weight: 650; cursor: default; transition: background-color 0.4s; }

.log-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.log-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.log-stats span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.log-stats b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row .k { color: var(--text-2); }
.list-row .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.verdict { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.verdict-title { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; margin: 0; }
.verdict-title.good { color: var(--green); } .verdict-title.warn { color: var(--amber); } .verdict-title.bad { color: var(--red); } .verdict-title.info { color: var(--text); }
.area-sum { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.area-facts { margin-bottom: 4px; }
.area-items { margin-top: 12px; }
.area-items .attn:first-of-type { border-top: 1px solid var(--line); padding-top: 12px; }
.cert-msg { margin-bottom: 12px; }
.wiz-steps { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.wiz-steps .done { color: var(--text-2); }
.wiz-steps .on { color: var(--cyan); }
.wiz-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; overflow-wrap: break-word; min-width: 0; }
.wiz-what { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.wiz-run { margin: 0 0 4px; font-size: 16px; line-height: 1.5; max-width: 70ch; }
.wiz-pick { display: flex; flex-direction: column; gap: 8px; }
.wiz-pick .btn { margin-top: auto; align-self: flex-start; }
.wiz-actions { align-items: center; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.check-row:first-of-type { border-top: 0; padding-top: 0; }
.check-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--cyan); cursor: pointer; }
.check-row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.block { display: block; }
.goal { padding: 12px 0; border-top: 1px solid var(--line); }
.goal:first-of-type { border-top: 0; padding-top: 0; }
.goal-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.goal-head b { white-space: nowrap; font-weight: 650; }
.meter { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cyan); transform-origin: left; transition: transform 0.4s var(--ease); }
.meter i.done { background: var(--green); }
.attn-act { margin-top: 8px; }
.tiles.t1 { grid-template-columns: minmax(0, 1fr) !important; }
.cert-row { flex-wrap: wrap; }
.cert-row .grow { min-width: 180px; }
.area-src { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.area-src a { color: var(--text-2); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--text-2); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--bg-2); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:hover td { background: var(--row-hover); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.table-wrap { overflow: auto; max-width: 100%; max-height: 560px; }
.bar-inline { display: inline-block; height: 6px; border-radius: 4px; vertical-align: middle; margin-right: 8px; }

.bad-text { color: var(--red); } .warn-text { color: var(--amber); } .info-text { color: var(--cyan); } .good-text { color: var(--green); }

.rec { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.rec:first-of-type { border-top: 0; padding-top: 0; }
.rec > svg { flex: none; margin-top: 2px; color: var(--cyan); }
.rec.action > svg { color: var(--green); }
.rec.reminder > svg { color: var(--amber); }
.rec-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 14px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 2px solid var(--line-strong); font-size: 13.5px; }
.step b { font-size: 14.5px; }
.step span { color: var(--text-2); }

.hist-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 12px 8px; margin: 0 -8px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; font-size: 14px; border-radius: var(--radius-xs); }
.hist-row:first-child { border-top: 0; }
.hist-row:hover { background: var(--surface); }
.hist-row.sel { background: var(--surface-2); }
.hist-row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-row .m { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }

.score { display: flex; gap: 20px; align-items: center; }
.score-ring { position: relative; width: 112px; height: 112px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-fg { stroke-dasharray: 327; }
.score-ring .soc-text b { font-size: 30px; }
.score-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.attn { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.attn:first-of-type { border-top: 0; padding-top: 0; }
.attn .ic { width: 16px; flex: none; font-size: 14px; font-weight: 800; text-align: center; line-height: 1.5; }
.attn.good .ic { color: var(--green); }
.attn.warn .ic { color: var(--amber); }
.attn.bad .ic { color: var(--red); }
.attn.info .ic { color: var(--cyan); }
.attn b { display: block; }
.attn span { color: var(--text-2); font-size: 13.5px; }
body:not(.has-data) .needs-data { display: none; }
body.has-data .nodata { display: none; }
.empty-card { display: grid; place-items: center; min-height: 200px; text-align: center; }
.empty-state { display: grid; gap: 8px; justify-items: start; padding: 4px 0; }
.empty-state b { font-size: 16px; }

.auto-state { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.auto-state .pulse-dot { margin-top: 8px; }
.auto-state.good { color: var(--green); }
.auto-state.warn { color: var(--amber); }
.auto-state.info { color: var(--cyan); }
.auto-state.bad { color: var(--red); }
.port-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.port-row:first-child { border-top: 0; }
.port-row .d { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }
details.fold { border-top: 1px solid var(--line); padding-top: 12px; }
details.fold summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; list-style: none; border-radius: 4px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: '▸ '; }
details.fold[open] summary::before { content: '▾ '; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; display: grid; gap: 12px; }
.login h1 { font-size: 22px; font-weight: 700; margin: 8px 0 0; }
.login p { margin: 0; }
.login label { font-size: 13px; color: var(--text-2); }
.login .brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.login .brand i { width: 20px; height: 20px; border-radius: var(--radius-xs); background: var(--cyan); }

.agent-lead { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.agent-new { align-items: flex-end; margin-top: 16px; }
.agent-new .btn { min-height: 44px; }
.agent-setup { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.agent-setup h3 { margin: 0; font-size: 16px; font-weight: 650; }
.agent-setup p { margin: 0; font-size: 14px; color: var(--text-2); }
.cmd { margin: 0; padding: 12px; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.key-row { flex-wrap: wrap; }
.key-row .grow { min-width: 160px; }
