:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-2: #18233c;
  --text: #eaf1ff;
  --muted: #9fb1d1;
  --accent: #4da3ff;
  --ok: #2ecc71;
  --warn: #f5b041;
  --bad: #ff6b6b;
  --border: #2a3a5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: linear-gradient(120deg, var(--bg), #0f1c35);
  color: var(--text);
}

.page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

.sub {
  margin: 4px 0 0 0;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
}

.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.value {
  font-size: 26px;
  font-weight: 700;
}

.value.small {
  font-size: 15px;
  word-break: break-word;
}

.tableWrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  z-index: 1;
}

tbody tr:hover {
  background: rgba(77, 163, 255, 0.08);
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}

.chip.ok {
  background: rgba(46, 204, 113, 0.2);
  color: #89f2b5;
}

.chip.warn {
  background: rgba(245, 176, 65, 0.2);
  color: #ffd18a;
}

.chip.bad {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb3b3;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
