:root {
  --ink: #07111f;
  --panel: #101a2b;
  --line: #243044;
  --text: #e7eef8;
  --muted: #93a4b8;
  --lime: #c6f135;
  --lime-ink: #142006;
  --sky: #8eb7ff;
  --danger: #ffb4b4;
  --ok: #b6f0c8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
.top, .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; gap: 16px; align-items: center; padding: 16px 0; flex-wrap: wrap; }
.logo { color: white; font-weight: 750; letter-spacing: -0.04em; font-size: 22px; text-decoration: none; }
.logo span { color: var(--lime); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 6px 10px; border-radius: 999px; }
nav a.active, nav a:focus-visible { color: var(--lime-ink); background: var(--lime); text-decoration: none; }
.who { margin-left: auto; color: var(--muted); font-size: 14px; }
main { padding-bottom: 64px; }
.card, .table-wrap, form.card, details.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid.two { grid-template-columns: 1.4fr 1fr; }
.stat strong { display: block; font-size: 26px; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.lead { margin-top: 0; }
h1 { font-size: 30px; letter-spacing: -0.04em; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 22px 0 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; padding: 0; }
.table-wrap table { min-width: 720px; }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1524;
  color: var(--text);
}
label { display: block; margin: 12px 0; font-size: 14px; color: var(--muted); }
button, .btn, input[type="submit"] {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.ghost, button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters a { color: var(--muted); padding: 4px 8px; border-radius: 999px; border: 1px solid transparent; }
.filters a.active { color: var(--text); border-color: var(--line); text-decoration: none; }
.flash { padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; }
.flash.notice { background: #143022; color: var(--ok); }
.flash.alert { background: #3a1820; color: var(--danger); }
.login { width: min(420px, calc(100% - 32px)); margin: 10vh auto; }
.hp { position: absolute; left: -9999px; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; color: var(--muted); }
.pill.ok { color: var(--ok); border-color: #245c3a; }
.pill.warn { color: #f3d48a; border-color: #6a5420; }
.pill.bad { color: var(--danger); border-color: #6a3030; }
.chart { width: 100%; height: 140px; display: block; }
.meter { margin: 10px 0; }
.meter-label { font-size: 13px; color: var(--muted); }
.meter-track { height: 8px; border-radius: 99px; background: #0c1524; overflow: hidden; }
.meter-fill { height: 100%; background: var(--lime); }
details summary { cursor: pointer; font-weight: 700; }
details.card + details.card { margin-top: 12px; }
.actions form { display: inline; }
@media (max-width: 800px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  .who { display: none; }
  .top { align-items: flex-start; }
}
