:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #0e141c;
  --line: #1f2a36;
  --text: #e6edf3;
  --muted: #8b9bb0;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --bad: #e74c3c;
  --stale: #7f8c8d;
  --accent: #4fc3f7;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f8; --panel: #ffffff; --panel-2: #f0f3f6; --line: #d9e0e7;
    --text: #101820; --muted: #5b6b7c; --stale: #95a5a6;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
header.site { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
header.site h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0.02em; }
header.site h1 span { color: var(--accent); }
header.site .clock { font-family: var(--mono); color: var(--muted); font-size: 0.9rem; }
.grid { column-width: 360px; column-gap: 14px; }
.grid > .tile { break-inside: avoid; margin-bottom: 14px; width: 100%; }
.grid > .tile.wide { column-span: all; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.tile.wide { grid-column: 1 / -1; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-head h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.tile-head h2 a { color: inherit; }
.tile-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #0b0f14; background: var(--stale); }
.pill.ok { background: var(--ok); }
.pill.warn { background: var(--warn); }
.pill.bad { background: var(--bad); color: #fff; }
.pill.stale { background: var(--stale); }
.pill.error { background: var(--bad); color: #fff; }
.summary { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.tile-body { font-size: 0.92rem; line-height: 1.45; }
.tile-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tile-body th, .tile-body td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tile-body th { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tile-body .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tile-foot { margin-top: auto; font-size: 0.72rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.mono { font-family: var(--mono); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.kv dt { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.kv dd { margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.big { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.scroll-x { overflow-x: auto; }
.camgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.camgrid figure { margin: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.camgrid img, .camgrid video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.camgrid figcaption { font-size: 0.72rem; padding: 4px 6px; color: var(--muted); font-family: var(--mono); }
input[type=text], input[type=search] { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 1rem; }
button { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
button:hover { border-color: var(--accent); }
footer.site { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.map { width: 100%; height: 360px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); }
@media (max-width: 600px) { .grid { column-width: auto; column-count: 1; } .tile { padding: 12px; } }
