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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f14;
  color: #e2e8f0;
  min-height: 100vh;
}

header {
  padding: 2rem;
  border-bottom: 1px solid #1e1e2e;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
}

header p {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.service-row {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-name {
  font-weight: 500;
  flex: 1;
}

.group-badge {
  font-size: 0.75rem;
  background: #2a2a3e;
  color: #94a3b8;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.up       { background: #166534; color: #bbf7d0; }
.status-badge.degraded { background: #713f12; color: #fef08a; }
.status-badge.down     { background: #7f1d1d; color: #fecaca; }
.status-badge.no-data  { background: #1e293b; color: #64748b; }

.response-time {
  font-size: 0.75rem;
  color: #64748b;
}

.checked-at {
  font-size: 0.75rem;
  color: #475569;
  margin-left: auto;
}

.history-bar {
  display: flex;
  gap: 1px;
  flex-wrap: wrap;
}

.history-block {
  width: 6px;
  height: 16px;
  border-radius: 1px;
  cursor: default;
}

.history-block.up       { background: #22c55e; }
.history-block.degraded { background: #eab308; }
.history-block.down     { background: #ef4444; }
