/* SteelGuard web UI - shared design system for /status and /admin (no external fonts or assets).
   Theme: tokens on :root; dark by system preference, overridable with <html data-theme="light|dark">. */

:root {
  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 6px; --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* light */
  --bg: #f4f6f9;
  --bg-grad: radial-gradient(1200px 600px at 0% -10%, rgba(59, 130, 246, .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef2f6;
  --hover: rgba(15, 23, 42, .045);
  --border: #e3e8ee;
  --border-strong: #cfd7e1;
  --text: #0e1621;
  --text-2: #475569;
  --text-3: #7c8a9c;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .10);
  --accent-text: #ffffff;
  --ok: #16a34a; --ok-soft: rgba(22, 163, 74, .12);
  --warn: #d97706; --warn-soft: rgba(217, 119, 6, .13);
  --bad: #dc2626; --bad-soft: rgba(220, 38, 38, .11);
  --info: #0891b2; --info-soft: rgba(8, 145, 178, .11);
  --violet: #7c3aed; --violet-soft: rgba(124, 58, 237, .11);
  --none: #d5dce5;
  --chart-1: #2563eb; --chart-2: #0ea5e9; --chart-3: #8b5cf6; --chart-4: #f59e0b; --chart-5: #ef4444; --chart-6: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08);
  --scrim: rgba(15, 23, 42, .38);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d12;
    --bg-grad: radial-gradient(1200px 600px at 0% -10%, rgba(59, 130, 246, .10), transparent 60%);
    --surface: #10161d;
    --surface-2: #131a23;
    --surface-3: #18212c;
    --hover: rgba(255, 255, 255, .045);
    --border: #1f2934;
    --border-strong: #2c3846;
    --text: #e7edf4;
    --text-2: #a5b2c2;
    --text-3: #6e7d8f;
    --accent: #5b9dff;
    --accent-2: #7cb1ff;
    --accent-soft: rgba(91, 157, 255, .14);
    --accent-text: #06101f;
    --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, .13);
    --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
    --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .14);
    --info: #38bdf8; --info-soft: rgba(56, 189, 248, .13);
    --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, .14);
    --none: #26313d;
    --chart-1: #5b9dff; --chart-2: #38bdf8; --chart-3: #a78bfa; --chart-4: #fbbf24; --chart-5: #ff6b6b; --chart-6: #3ddc97;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 18px 60px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .4);
    --scrim: rgba(2, 6, 12, .62);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090d12;
  --bg-grad: radial-gradient(1200px 600px at 0% -10%, rgba(59, 130, 246, .10), transparent 60%);
  --surface: #10161d;
  --surface-2: #131a23;
  --surface-3: #18212c;
  --hover: rgba(255, 255, 255, .045);
  --border: #1f2934;
  --border-strong: #2c3846;
  --text: #e7edf4;
  --text-2: #a5b2c2;
  --text-3: #6e7d8f;
  --accent: #5b9dff;
  --accent-2: #7cb1ff;
  --accent-soft: rgba(91, 157, 255, .14);
  --accent-text: #06101f;
  --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, .13);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .14);
  --info: #38bdf8; --info-soft: rgba(56, 189, 248, .13);
  --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, .14);
  --none: #26313d;
  --chart-1: #5b9dff; --chart-2: #38bdf8; --chart-3: #a78bfa; --chart-4: #fbbf24; --chart-5: #ff6b6b; --chart-6: #3ddc97;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .4);
  --scrim: rgba(2, 6, 12, .62);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 650; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 620; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
small, .small { font-size: 12px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 20px; height: 20px; }
svg.i.xl { width: 28px; height: 28px; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-h .sub { color: var(--text-3); font-size: 12.5px; }
.card-b { padding: 16px 18px 18px; }
.card-b.flush { padding: 8px 0 0; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }
.divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 560; font-size: 13.5px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .06s, box-shadow .15s;
  box-shadow: var(--shadow-sm); text-decoration: none !important;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.primary { --b-bg: var(--accent); --b-fg: var(--accent-text); --b-bd: transparent; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { --b-bg: var(--bad); --b-fg: #fff; --b-bd: transparent; }
.btn.danger:hover { filter: brightness(1.07); background: var(--bad); }
.btn.danger-ghost { --b-bg: transparent; --b-fg: var(--bad); --b-bd: color-mix(in srgb, var(--bad) 45%, transparent); box-shadow: none; }
.btn.danger-ghost:hover { background: var(--bad-soft); }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 6px; gap: 4px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn.block { width: 100%; }
.btn.xs.icon { width: 24px; padding: 0; }
svg.i.filled { fill: currentColor; }
.btn .kbd { margin-left: 6px; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .label { font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.sm, .select.sm { height: 28px; font-size: 12.5px; }
.input-icon { position: relative; display: flex; align-items: center; min-width: 0; }
.input-icon > svg.i { position: absolute; left: 10px; color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 32px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text-2); user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 34px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: var(--border-strong); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 540; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg .count { font-size: 11px; padding: 0 6px; border-radius: 10px; background: var(--hover); color: var(--text-2); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; margin-bottom: -1px; cursor: pointer; color: var(--text-2); font-weight: 560; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11px; padding: 0 6px; border-radius: 10px; background: var(--hover); color: var(--text-2); }

/* ---------- badges / dots ---------- */
.badge {
  --t: var(--text-2); --s: var(--hover);
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--t); background: var(--s); white-space: nowrap; line-height: 1;
}
.badge.ok { --t: var(--ok); --s: var(--ok-soft); }
.badge.warn, .badge.degraded { --t: var(--warn); --s: var(--warn-soft); }
.badge.bad, .badge.down { --t: var(--bad); --s: var(--bad-soft); }
.badge.info { --t: var(--info); --s: var(--info-soft); }
.badge.accent { --t: var(--accent); --s: var(--accent-soft); }
.badge.violet { --t: var(--violet); --s: var(--violet-soft); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge.sq { border-radius: 6px; }
.badge .dot { width: 6px; height: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--none); flex: none; }
.dot.ok { background: var(--ok); } .dot.degraded, .dot.warn { background: var(--warn); } .dot.down, .dot.bad { background: var(--bad); } .dot.info { background: var(--info); }
.dot.pulse { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.dot.ok.pulse { color: var(--ok-soft); } .dot.degraded.pulse { color: var(--warn-soft); } .dot.down.pulse { color: var(--bad-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; font: 11px/1 var(--mono); color: var(--text-3); background: var(--surface-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.t th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t th:first-child { padding-left: 18px; } .t td:first-child { padding-left: 18px; }
.t th:last-child { padding-right: 18px; } .t td:last-child { padding-right: 18px; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--text); }
.t th .arrow { opacity: .35; margin-left: 4px; }
.t th[aria-sort] .arrow { opacity: 1; color: var(--accent); }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .1s; }
.t tbody tr:hover { background: var(--hover); }
.t tr.clickable { cursor: pointer; }
.t .r, .t th.r { text-align: right; }
.t .nowrap { white-space: nowrap; }
.t td.wrap { white-space: normal; word-break: break-word; min-width: 220px; }
.t .cell-main { font-weight: 560; color: var(--text); }
.t .cell-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.t.compact td { padding: 7px 12px; }
.table-tools { display: flex; align-items: center; gap: 8px; padding: 0 18px 12px; flex-wrap: wrap; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }

/* inline bar (win rate, share) */
.meter { position: relative; display: flex; align-items: center; gap: 8px; min-width: 120px; }
.meter .track { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 6px; background: var(--accent); }
.meter .fill.ok { background: var(--ok); } .meter .fill.warn { background: var(--warn); } .meter .fill.bad { background: var(--bad); }
.meter .v { font: 12px var(--mono); color: var(--text-2); min-width: 46px; text-align: right; }

/* ---------- KPI ---------- */
.kpi { padding: 16px 18px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.kpi .k { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 560; }
.kpi .k .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi .k .ic.ok { background: var(--ok-soft); color: var(--ok); } .kpi .k .ic.warn { background: var(--warn-soft); color: var(--warn); }
.kpi .k .ic.bad { background: var(--bad-soft); color: var(--bad); } .kpi .k .ic.violet { background: var(--violet-soft); color: var(--violet); }
.kpi .k .ic.info { background: var(--info-soft); color: var(--info); }
.kpi .v { font: 650 26px/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .s { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi .spark { height: 36px; margin-top: 2px; }
.delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--text-3); }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { fill: var(--text-3); font: 11px var(--font); }
.chart .cursor { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 12.5px;
  transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.chart-tip.on { opacity: 1; }
.chart-tip .tt { font-weight: 620; margin-bottom: 4px; color: var(--text); }
.chart-tip .tr { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text-2); }
.chart-tip .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* uptime bars */
.ubars { display: grid; gap: 2px; height: 32px; align-items: stretch; }
.ubars i { border-radius: 2px; background: var(--none); transition: transform .1s, filter .1s; }
.ubars i:hover { transform: scaleY(1.12); filter: brightness(1.12); }
.ubars i.ok { background: var(--ok); } .ubars i.degraded { background: var(--warn); } .ubars i.down { background: var(--bad); }
.ubars.d90 { grid-template-columns: repeat(90, minmax(0, 1fr)); }
.ubars.h48 { grid-template-columns: repeat(48, minmax(0, 1fr)); }
.ubars.thin { height: 26px; gap: 1.5px; }
@media (max-width: 640px) { .ubars.d90 { gap: 1px; } .ubars.d90.trim i:nth-child(-n+60) { display: none; } .ubars.d90.trim { grid-template-columns: repeat(30, minmax(0, 1fr)); } }

/* ---------- empty / skeleton ---------- */
.empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 36px 20px; color: var(--text-2); }
.empty .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.empty .ic.ok { background: var(--ok-soft); color: var(--ok); }
.empty h3 { color: var(--text); }
.empty p { max-width: 420px; font-size: 13px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--hover), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.callout > svg.i { margin-top: 2px; }
.callout.warn { background: var(--warn-soft); border-color: transparent; color: var(--text); } .callout.warn > svg.i { color: var(--warn); }
.callout.bad { background: var(--bad-soft); border-color: transparent; color: var(--text); } .callout.bad > svg.i { color: var(--bad); }
.callout.info { background: var(--accent-soft); border-color: transparent; color: var(--text); } .callout.info > svg.i { color: var(--accent); }
.callout.ok { background: var(--ok-soft); border-color: transparent; color: var(--text); } .callout.ok > svg.i { color: var(--ok); }
.callout b { color: var(--text); }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 15px/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--text-3); }
.timeline li.ok::after { box-shadow: inset 0 0 0 3px var(--ok); } .timeline li.warn::after { box-shadow: inset 0 0 0 3px var(--warn); }
.timeline li.bad::after { box-shadow: inset 0 0 0 3px var(--bad); } .timeline li.info::after { box-shadow: inset 0 0 0 3px var(--accent); }
.timeline .tl-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline .tl-h b { font-size: 13px; }
.timeline .tl-h small { color: var(--text-3); }
.timeline .tl-b { margin-top: 3px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

@media (max-width: 640px) { .hide-sm { display: none !important; } }

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