:root {
  --bg: #f8fafc; --card: #ffffff; --text: #0f172a; --muted: #64748b;
  --border: #e2e8f0; --primary: #4da3ff;
  --ok: #10b981; --warn: #f59e0b; --bad: #ef4444; --info: #3b82f6;
  --ok-bg: #ecfdf5; --warn-bg: #fffbeb; --bad-bg: #fef2f2; --info-bg: #eff6ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --card: #111827; --text: #f1f5f9; --muted: #94a3b8;
    --border: #1e293b; --ok-bg: #064e3b33; --warn-bg: #78350f33; --bad-bg: #7f1d1d33; --info-bg: #1e3a5f33;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.status-hero { padding: 48px 0; text-align: center; border-bottom: 1px solid var(--border); }
.status-hero--ok { background: var(--ok-bg); }
.status-hero--warn { background: var(--warn-bg); }
.status-hero--error { background: var(--bad-bg); }
.status-hero--info { background: var(--info-bg); }
.status-hero__icon { font-size: 2.5rem; margin-bottom: 8px; }
.status-hero h1 { margin: 0; font-size: 1.75rem; font-weight: 700; }
.status-tagline { color: var(--muted); margin: 8px 0 0; }
.status-logo { height: 40px; margin-bottom: 12px; }
.main-content { padding: 32px 0 64px; display: flex; flex-direction: column; gap: 20px; }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.status-card__title { margin: 0 0 16px; font-size: 1rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.status-grid { display: flex; flex-direction: column; gap: 20px; }
.component-list { list-style: none; margin: 0; padding: 0; }
.component-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.component-item:last-child { border-bottom: none; }
.component-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.component-item--operational .component-dot { background: var(--ok); }
.component-item--degraded .component-dot { background: var(--warn); }
.component-item--partial_outage .component-dot { background: #fb923c; }
.component-item--major_outage .component-dot { background: var(--bad); }
.component-item--maintenance .component-dot { background: var(--info); }
.component-info { flex: 1; }
.component-name { font-weight: 500; display: block; }
.component-desc { font-size: .85rem; color: var(--muted); }
.component-status { font-size: .85rem; color: var(--muted); }
.incident-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.incident-header { display: flex; align-items: center; gap: 10px; }
.incident-header h3 { margin: 0; font-size: 1.1rem; }
.impact-badge { font-size: .75rem; padding: 2px 8px; border-radius: 12px; font-weight: 600; text-transform: uppercase; }
.impact-minor { background: var(--warn-bg); color: var(--warn); }
.impact-major { background: var(--bad-bg); color: var(--bad); }
.impact-critical { background: #7f1d1d; color: #fff; }
.incident-meta { font-size: .85rem; color: var(--muted); margin: 6px 0 12px; }
.incident-timeline { border-left: 2px solid var(--border); margin-left: 8px; padding-left: 20px; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-marker { position: absolute; left: -27px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--card); }
.timeline-time { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.maintenance-card { padding: 12px 0; border-bottom: 1px solid var(--border); }
.maint-badge { font-size: .75rem; background: var(--info-bg); color: var(--info); padding: 2px 8px; border-radius: 8px; }
.uptime-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.uptime-legend { display: flex; gap: 12px; font-size: .75rem; color: var(--muted); }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.legend-dot.good { background: var(--ok); }
.legend-dot.warn { background: var(--warn); }
.legend-dot.bad { background: var(--bad); }
.legend-dot.info { background: var(--info); }
.uptime-bar { display: flex; gap: 2px; height: 32px; }
.uptime-day { flex: 1; border-radius: 3px; cursor: help; min-width: 4px; }
.uptime-day--good { background: var(--ok); opacity: .8; }
.uptime-day--warn { background: var(--warn); }
.uptime-day--bad { background: var(--bad); }
.uptime-day--info { background: var(--info); }
.uptime-note { font-size: .85rem; margin-top: 8px; }
.subscribe-form { display: flex; gap: 8px; margin-top: 12px; }
.subscribe-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.btn-primary { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { opacity: .9; }
.past-incident { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.muted { color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.footer-links a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-links a:hover { color: var(--primary); }
.powered-by { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 16px; }
.install-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.install-wrap { width: min(480px, 92vw); }
.install-header { text-align: center; margin-bottom: 24px; }
.install-logo { font-size: 1.5rem; font-weight: 700; }
.install-steps { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.install-steps .active { color: var(--primary); font-weight: 600; }
.install-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.install-card h2 { margin: 0 0 16px; }
.install-card label { display: block; margin-bottom: 12px; font-size: .85rem; color: var(--muted); }
.install-card input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); margin-top: 4px; }
.divider { text-align: center; margin: 16px 0; color: var(--muted); font-size: .8rem; }
.divider span { background: var(--card); padding: 0 12px; }
.alert-box.error { background: var(--bad-bg); color: var(--bad); padding: 12px; border-radius: 8px; margin-bottom: 16px; }
#subscribe-msg { margin-top: 8px; font-size: .9rem; }
#subscribe-msg.success { color: var(--ok); }
#subscribe-msg.error { color: var(--bad); }
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
