:root {
  --bg: #0a0a0f;
  --bg-soft: #14141c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-dim: #8a8a9a;
  --text-mute: #5a5a6a;
  --brand: #3a30f0;
  --accent: #d4ff00;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #ef4444;
  --unknown: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.head { margin-bottom: 32px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name { color: var(--text); font-weight: 500; }

.env-pill {
  background: rgba(58, 48, 240, 0.15);
  color: #9c93ff;
  border: 1px solid rgba(58, 48, 240, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sub { color: var(--text-dim); font-size: 14px; }

.summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 17px;
  font-weight: 500;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--unknown);
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.15);
}

.summary--healthy .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.summary--degraded .status-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15); }
.summary--unhealthy .status-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); animation: pulse 2s ease-in-out infinite; }
.summary--offline .status-dot { background: var(--text-mute); box-shadow: 0 0 0 4px rgba(90, 90, 106, 0.15); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-meta {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}

.checks h2 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.checks-list { list-style: none; }

.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--unknown);
  flex-shrink: 0;
}

.check--healthy .check-dot { background: var(--ok); }
.check--degraded .check-dot { background: var(--warn); }
.check--unhealthy .check-dot { background: var(--bad); }
.check--skipped .check-dot { background: var(--text-mute); }

.check-name {
  font-weight: 500;
  text-transform: capitalize;
}

.check-status {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.check--healthy .check-status { color: var(--ok); }
.check--degraded .check-status { color: var(--warn); }
.check--unhealthy .check-status { color: var(--bad); }

.foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sep { color: var(--text-mute); }

@media (max-width: 480px) {
  .wrap { padding: 40px 16px 32px; }
  h1 { font-size: 22px; }
  .summary { padding: 16px 18px; font-size: 15px; }
  .check { padding: 12px 16px; }
}
