:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #20242d;
  --text: #e6e8ec;
  --muted: #8a92a6;
  --green: #4ade80;
  --amber: #facc15;
  --red: #f87171;
  --border: #2a2f3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

header.app h1 {
  font-size: 22px;
  margin: 0;
}

header.app > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
}

button.refresh {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

button.refresh:hover { background: var(--surface); }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

section h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.card .name { font-weight: 600; margin-bottom: 6px; }
.card .total { font-size: 22px; font-weight: 600; }
.card .total small { color: var(--muted); font-weight: 400; font-size: 14px; }

.bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}
.bar > div { height: 100%; transition: width 0.3s; }

.status-line { color: var(--muted); font-size: 13px; }

.pass { color: var(--green); }
.warn { color: var(--amber); }
.fail { color: var(--red); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 500; }
tfoot td { font-weight: 600; border-bottom: none; }

.banner {
  background: rgba(248,113,113,0.1);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
}
