:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1e293b, #0f172a 60%);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

header {
  margin-bottom: 32px;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
}

.subtitle {
  margin: 0;
  color: #94a3b8;
}

.summary {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 32px;
}

.info {
  margin-bottom: 24px;
}

.card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.metric {
  font-size: 1.8rem;
  margin: 12px 0 4px;
}

.muted {
  color: #94a3b8;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pill[data-status="up"] {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.pill[data-status="down"] {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
}

.details {
  margin-bottom: 24px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 0 0 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.6);
}

.legend-dot--green {
  background: rgba(34, 197, 94, 0.7);
  border-color: rgba(34, 197, 94, 0.8);
}

.legend-dot--yellow {
  background: rgba(250, 204, 21, 0.75);
  border-color: rgba(250, 204, 21, 0.85);
}

.legend-dot--red {
  background: rgba(248, 113, 113, 0.75);
  border-color: rgba(248, 113, 113, 0.85);
}

.matrix {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: #0b1222;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.matrix-row {
  display: grid;
  grid-template-columns: repeat(30, minmax(16px, 1fr));
  gap: 6px;
}

.matrix-cell {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.15);
}

.matrix-cell[data-level="none"] {
  background: rgba(34, 197, 94, 0.5);
  border-color: rgba(34, 197, 94, 0.7);
}

.matrix-cell[data-level="low"] {
  background: rgba(250, 204, 21, 0.5);
  border-color: rgba(250, 204, 21, 0.7);
}

.matrix-cell[data-level="high"] {
  background: rgba(248, 113, 113, 0.6);
  border-color: rgba(248, 113, 113, 0.8);
}

.matrix-cell[data-level="unknown"] {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.4);
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 16px;
}
