body {
  margin: 0;
  padding: 24px;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

h1 {
  margin: 0 0 8px;
}

.subhead {
  margin-bottom: 18px;
  color: #94a3b8;
}

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

.badge {
  border: 1px solid #1f2937;
  background: #111827;
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1650px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0b1220;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td {
  background: #0b1220;
}

.status-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
}

.status-down {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.status-critical {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
}

.status-degraded {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.status-warning {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.status-nominal {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.muted {
  color: #94a3b8;
}

.error {
  margin-top: 12px;
  color: #fca5a5;
}

.site-cell {
  min-width: 220px;
}

.site-name {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.site-id {
  font-size: 0.85rem;
  color: #94a3b8;
}

.reason-cell {
  min-width: 220px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reason-item {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.25;
  position: relative;
  padding-left: 14px;
}

.reason-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #94a3b8;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.kv-key {
  color: #94a3b8;
  white-space: nowrap;
}

.kv-value {
  color: #e2e8f0;
  text-align: right;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid #1f2937;
  background: #0b1220;
  color: #cbd5e1;
}

.check-badge.ok {
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.check-badge.bad {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.message {
  max-width: 280px;
  color: #cbd5e1;
}

.empty-state {
  padding: 24px;
  color: #94a3b8;
}
