:root {
  --color-bg: #f7f9fb;
  --color-card: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #6b7785;
  --color-border: #e6ebf0;
  --color-primary: #00C896;
  --color-success: #00C896;
  --color-warning: #f5a623;
  --color-error: #e53e3e;
  --color-unknown: #b4becb;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name { font-weight: 600; font-size: 16px; }
.back-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--color-primary); }

/* ── Overall banner ── */
.overall {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 32px;
  padding: 36px 24px;
  text-align: center;
  border-top: 4px solid var(--color-unknown);
  transition: border-color 0.3s ease;
}
.overall[data-status="ok"] { border-top-color: var(--color-success); }
.overall[data-status="degraded"] { border-top-color: var(--color-warning); }
.overall[data-status="outage"] { border-top-color: var(--color-error); }

.overall-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.overall-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.overall-sub { color: var(--color-text-muted); font-size: 15px; }

/* ── Sections ── */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin: 40px 0 12px;
}

/* ── Components ── */
.component-list { list-style: none; }
.component {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.component-info { flex: 1; min-width: 0; }
.component-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.component-desc { color: var(--color-text-muted); font-size: 13px; }

.component-status { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-unknown);
  display: inline-block;
}
.component-status[data-status="ok"] .dot { background: var(--color-success); box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.15); }
.component-status[data-status="degraded"] .dot { background: var(--color-warning); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15); }
.component-status[data-status="outage"] .dot { background: var(--color-error); box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15); }
.component-status .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.component-status[data-status="ok"] .label { color: var(--color-success); }
.component-status[data-status="degraded"] .label { color: var(--color-warning); }
.component-status[data-status="outage"] .label { color: var(--color-error); }

/* ── Incidents ── */
.incident-list { display: flex; flex-direction: column; gap: 12px; }
.incidents-empty {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.incident {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  border-left: 4px solid var(--color-unknown);
}
.incident[data-status="resolved"] { border-left-color: var(--color-success); }
.incident[data-status="investigating"], .incident[data-status="identified"] { border-left-color: var(--color-warning); }
.incident[data-status="major"] { border-left-color: var(--color-error); }

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.incident-title { font-weight: 600; font-size: 15px; }
.incident-date { color: var(--color-text-muted); font-size: 13px; white-space: nowrap; }
.incident-body { color: var(--color-text); font-size: 14px; margin-bottom: 8px; }
.incident-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Footer ── */
.site-footer {
  margin-top: 60px;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.footer-note { font-size: 13px; color: var(--color-text-muted); margin-bottom: 6px; }
.footer-meta { font-size: 12px; color: var(--color-text-muted); }

/* ── Responsive ── */
@media (max-width: 540px) {
  .overall { padding: 28px 18px; }
  .overall-title { font-size: 20px; }
  .component { padding: 14px 16px; }
  .component-desc { font-size: 12px; }
  .brand-name { font-size: 15px; }
}
