/* incident.io-style light theme — intentionally NOT the Hop O'Clock app's
   dark design system (see spec amendment 2026-07-09). */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e7e5e4;
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --success: #098551;
  --warning: #d97706;
  --error: #dc2626;
  --neutral: #78716c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.page {
  width: min(640px, 92.5vw);
  padding: 56px 0 64px;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header .subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Solid filled banner, white text — the incident.io signature. */
.banner {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.banner.operational { background: var(--success); }
.banner.degraded { background: var(--warning); }
.banner.down { background: var(--error); }
.banner.unknown { background: var(--neutral); }

.banner .dot {
  background: rgba(255, 255, 255, 0.95);
}

.services {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.service + .service {
  border-top: 1px solid var(--border);
}

.service-name {
  font-size: 15px;
  font-weight: 500;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}

.service-state.operational .dot { background: var(--success); }
.service-state.operational .label { color: var(--success); }

.service-state.degraded .dot { background: var(--warning); }
.service-state.degraded .label { color: var(--warning); }

.service-state.down .dot { background: var(--error); }
.service-state.down .label { color: var(--error); }

.service-state.unknown .dot { background: var(--text-muted); }
.service-state.unknown .label { color: var(--text-muted); }

.footer {
  margin-top: 20px;
  text-align: center;
}

#last-checked {
  font-size: 13px;
  color: var(--text-muted);
}
