/* Ops console: dense tables, light/dark from the OS setting. No build step. */
:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #1b1f24; --muted: #6a737d; --line: #d8dde3; --head: #f3f5f7;
  --link: #0b5cad; --ok: #1a7f37; --warn: #9a6700; --bad: #c62828;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --fg: #e3e6ea; --muted: #8b949e; --line: #2c333b; --head: #1a1f25;
    --link: #6cb6ff; --ok: #3fb950; --warn: #d29922; --bad: #f47067;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
main { padding: 12px 16px 40px; }
h1 { font-size: 18px; margin: 4px 0 12px; }
h2 { font-size: 15px; margin: 20px 0 6px; }
h3 { font-size: 13px; margin: 14px 0 4px; }
.muted { color: var(--muted); font-weight: normal; }
.error { color: var(--bad); }
.top { display: flex; gap: 16px; align-items: center; padding: 8px 16px;
  border-bottom: 1px solid var(--line); background: var(--head); }
.top .brand { font-weight: 600; }
.top nav { display: flex; gap: 12px; }
.top nav a.on { font-weight: 600; text-decoration: underline; }
.logout { margin-left: auto; display: flex; gap: 8px; align-items: center; }
button, input, select { font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; margin-bottom: 8px; }
th, td { border-bottom: 1px solid var(--line); padding: 3px 6px; text-align: left; vertical-align: top; }
th { background: var(--head); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover { background: var(--head); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.url { max-width: 520px; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.tag { font-size: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; color: var(--muted); }
.sig, .st { font-weight: 600; }
.sig-ok, .st-active, .st-done { color: var(--ok); }
.sig-empty, .sig-soft_limit, .st-warming, .st-resting, .st-queued, .st-running { color: var(--warn); }
.sig-rate_limited, .sig-logged_out, .sig-checkpoint, .sig-error,
.st-checkpoint, .st-expired, .st-retired, .st-failed { color: var(--bad); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 0 0 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.pager { display: flex; gap: 12px; }
.login { max-width: 320px; margin: 60px auto; display: grid; gap: 10px; }
.login label { display: grid; gap: 4px; }
.notice { color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
form.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px;
  align-items: end; max-width: 1100px; margin-bottom: 8px; }
form.grid label { display: grid; gap: 3px; }
form.grid .wide { grid-column: span 2; }
fieldset { border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; margin: 0; display: flex; gap: 10px; }
legend { color: var(--muted); padding: 0 4px; }
button.danger { color: var(--bad); border-color: var(--bad); }
button:disabled { cursor: not-allowed; opacity: .5; }
.key { white-space: nowrap; }
.cov { font-weight: 600; }
.cov-ok { color: var(--ok); }
.cov-degraded { color: var(--warn); }
.cov-blocked, .cov-no_accounts { color: var(--bad); }
.st-paused, .st-cancelled { color: var(--warn); }
.st-deleted { color: var(--muted); }
/* Data pages (O3) */
.tabs { display: flex; gap: 12px; margin: 0 0 6px; }
.tabs a.on { font-weight: 600; text-decoration: underline; }
td.excerpt { max-width: 560px; overflow-wrap: anywhere; }
.fulltext { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 900px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 3px; }
.scroll { overflow-x: auto; }
table.snapshots td { white-space: nowrap; }
.chg { color: var(--warn); font-weight: 600; background: color-mix(in srgb, var(--warn) 12%, transparent); }
.carried { color: var(--muted); }
details > summary { cursor: pointer; color: var(--muted); margin: 6px 0; }
/* Media archive (M1) */
img.thumb { max-width: 160px; max-height: 120px; border: 1px solid var(--line); border-radius: 3px; display: block; }
.media-done { color: var(--ok); }
.media-pending { color: var(--warn); }
.media-failed, .media-expired { color: var(--bad); }
.media-skipped { color: var(--muted); }
