:root {
  --primary: #2563eb;
  --accent: #10b981;
  --bg: #0b1020;
  --ink: #f8fafc;
  --line: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
body.theme-dark { background: var(--bg); color: var(--ink); }
body.theme-light { background: #f6f7f9; color: #0b1020; --line: rgba(0,0,0,0.08); }

.hero {
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 60%, #000));
  color: #fff;
}
.hero-empty { background: linear-gradient(135deg, #334155, #0f172a); }
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.logo { max-height: 48px; margin-bottom: 12px; display: block; }
.status-line { font-size: 14px; margin: 0; opacity: 0.9; }
.status-ok   { color: #d1fae5; }
.status-warn { color: #fde68a; }
.status-down { color: #fecaca; }

main { max-width: 960px; margin: 32px auto; padding: 0 24px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 24px 0 10px; opacity: 0.8; }

.incidents .incident {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.incident.sev-critical { border-left: 4px solid #ef4444; }
.incident.sev-major    { border-left: 4px solid #f59e0b; }
.incident.sev-minor    { border-left: 4px solid #3b82f6; }
.incident.sev-maintenance { border-left: 4px solid #8b5cf6; }
.incident header { display: flex; align-items: center; justify-content: space-between; }
.incident .body { margin-top: 6px; opacity: 0.85; font-size: 14px; }

.components .component {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.component-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.component-meta { min-width: 0; }
.component .desc { font-size: 12px; opacity: 0.65; margin-top: 4px; }

/* 90-day uptime strip */
.uptime-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 2px;
  align-items: stretch;
  position: relative;
}
.uptime-grid .day {
  display: block;
  height: 30px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: transform 0.08s ease, filter 0.08s ease;
}
.uptime-grid .day:hover { transform: scaleY(1.15); filter: brightness(1.4); }
.uptime-grid .day.d-100 { background: #10b981; }
.uptime-grid .day.d-ok  { background: #14b8a6; }
.uptime-grid .day.d-warn { background: #f59e0b; }
.uptime-grid .day.d-bad  { background: #ef4444; }
.uptime-grid .day.no-data { background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.08); }
.uptime-grid .grid-axis {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.5;
}
.chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); }
.chip.status-operational { color: #10b981; }
.chip.status-degraded    { color: #f59e0b; }
.chip.status-down        { color: #ef4444; }
.chip.status-unknown     { color: #94a3b8; }

footer { text-align: center; padding: 32px; opacity: 0.55; font-size: 12px; }
footer .legal { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 14px; justify-content: center; }
footer .legal a { color: inherit; text-decoration: none; opacity: 0.8; }
footer .legal a:hover { opacity: 1; }
.muted { opacity: 0.65; }
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }
