:root {
  --bg: #0b1424;
  --panel: #111d33;
  --panel-2: #16243f;
  --line: #22324f;
  --text: #e6ebf5;
  --muted: #93a1bb;
  --accent: #e85d9c;
  --ok: #3fb47a;
  --warn: #e8a33d;
  --fail: #e5534b;
  --skip: #4a5873;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 16px 40px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--sans);
}
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo { width: 30px; height: 30px; flex: none; }
.logo rect { fill: var(--panel-2); stroke: var(--line); }
.logo path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sub { margin: 4px 0 0; color: var(--muted); }

.overall {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  font-weight: 600;
}
.overall .updated { font-weight: 400; color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--skip); flex: none; }
.row > div[data-status] { display: flex; align-items: center; }
[data-status="ok"] > .dot { background: var(--ok); }
[data-status="warn"] > .dot { background: var(--warn); }
[data-status="fail"] > .dot { background: var(--fail); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 22px 0 8px; }
.stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 0; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { margin-top: 4px; font: 600 20px/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .note { margin-top: 2px; color: var(--muted); font-size: 12px; }
.stat[data-status="warn"] .value { color: var(--warn); }
.stat[data-status="fail"] .value { color: var(--fail); }

.group { margin-top: 22px; }
.group h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.row {
  display: grid; grid-template-columns: 14px minmax(150px, 220px) 1fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row .title { font-weight: 600; }
.row .summary { color: var(--muted); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.row[data-status="fail"] .summary { color: #f2b8b4; }
.row[data-status="warn"] .summary { color: #f1d3a0; }
.row .side { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.row .meta { font: 12px/1.3 var(--mono); color: var(--muted); text-align: right; min-width: 92px; }

.strip { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.strip i { display: block; width: 4px; height: 100%; border-radius: 1px; background: var(--skip); opacity: 0.85; }
.strip i.ok { background: var(--ok); }
.strip i.warn { background: var(--warn); }
.strip i.fail { background: var(--fail); }

.foot { margin-top: 28px; color: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.chip:first-child { margin-left: 0; }
.chip.ok { background: var(--ok); } .chip.warn { background: var(--warn); } .chip.fail { background: var(--fail); } .chip.skip { background: var(--skip); }

@media (max-width: 760px) {
  .row { grid-template-columns: 14px 1fr; }
  .row .summary, .row .side { grid-column: 2; }
  .row .side { justify-content: flex-start; }
  .row .meta { text-align: left; }
  .strip i { width: 3px; }
}
