:root {
  --bg: #fbfcfd; --panel: #ffffff; --ink: #1b1f24; --muted: #5b6470;
  --line: #e3e8ee; --accent: #1f5fa8; --accent-soft: #eaf2fb;
  --ok: #2e7d4f; --ok-soft: #e9f5ee;
  --warn: #a8611f; --warn-soft: #fdf2e5;
  --stop: #a63232; --stop-soft: #fbecec;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --panel: #1b1f23; --ink: #e6e9ec; --muted: #9aa4b0;
    --line: #2b3138; --accent: #6aa9e9; --accent-soft: #1c2a3a;
    --ok: #6bbd8c; --ok-soft: #17281e;
    --warn: #d9a05b; --warn-soft: #2a2015;
    --stop: #e08585; --stop-soft: #2c1a1a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .86em; }

header.top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px 22px; background: var(--panel); border-bottom: 1px solid var(--line);
}
header.top .brand { font-weight: 650; letter-spacing: -.2px; }
header.top .brand span { color: var(--muted); font-weight: 400; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  padding: 5px 11px; border-radius: 999px; color: var(--muted); font-size: 14px;
}
nav.main a:hover { background: var(--accent-soft); text-decoration: none; }
nav.main a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
header.top form { margin-left: auto; }

main { max-width: 1180px; margin: 0 auto; padding: 26px 22px 60px; }
h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.3px; }
h2 { font-size: 15px; margin: 26px 0 8px; color: var(--muted); font-weight: 650;
     text-transform: uppercase; letter-spacing: .6px; }
p.lead { color: var(--muted); margin: 0 0 22px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.card .n { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.card .k { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card.alert { border-color: var(--stop); background: var(--stop-soft); }
.card.alert .n { color: var(--stop); }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.panel > .hd {
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-weight: 650; font-size: 14px;
}
.panel > .bd { padding: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-weight: 650; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--accent-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid currentColor;
  text-transform: lowercase; letter-spacing: .3px;
}
.t-ok { color: var(--ok); background: var(--ok-soft); }
.t-warn { color: var(--warn); background: var(--warn-soft); }
.t-stop { color: var(--stop); background: var(--stop-soft); }
.t-mute { color: var(--muted); background: var(--bg); }

.empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.note { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.note.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid currentColor; }
.note.bad { background: var(--stop-soft); color: var(--stop); border: 1px solid currentColor; }

form.stack { display: grid; gap: 13px; max-width: 520px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  padding: 8px 16px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button.quiet { background: none; color: var(--muted); border-color: var(--line); font-weight: 500; }
button:hover { filter: brightness(1.06); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.checks label { display: flex; gap: 7px; align-items: center; font-weight: 400; color: var(--ink); }
.checks input { width: auto; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.login { max-width: 350px; margin: 12vh auto; }
.login h1 { text-align: center; margin-bottom: 22px; }
footer { color: var(--muted); font-size: 12.5px; text-align: center; padding: 26px 0; }
