/* Zezu Status — status.claude.com-inspired, self-contained (no external assets). */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --border: #e4e4e0;
  --text: #1a1a18;
  --muted: #6f6f6a;
  --green: #2ea061;
  --orange: #e8833a;
  --red: #d94f42;
  --blue: #3b7dd8;
  --gray: #c9c9c4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141b;
    --card: #1d1d26;
    --border: #2c2c38;
    --text: #ececf1;
    --muted: #9a9aa5;
    --gray: #3a3a46;
    --shadow: none;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }

.site-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--green); align-self: center; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 15px; color: var(--muted); font-weight: 500; }

.banner {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 18px; font-weight: 600; color: #fff;
  margin-bottom: 28px;
}
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); flex: none; }
.banner-operational { background: var(--green); }
.banner-degraded { background: var(--orange); }
.banner-partial { background: var(--orange); }
.banner-major { background: var(--red); }
.banner-maintenance { background: var(--blue); }
.banner-unknown { background: var(--gray); color: var(--text); }

.active-incidents { display: grid; gap: 14px; margin-bottom: 28px; }
.incident-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.incident-card.impact-critical, .incident-card.impact-major { border-left-color: var(--red); }
.incident-card.impact-maintenance { border-left-color: var(--blue); }
.incident-card.resolved { border-left-color: var(--green); }
.incident-title { font-weight: 650; font-size: 16px; margin-bottom: 2px; }
.incident-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.incident-updates { display: grid; gap: 8px; }
.incident-update { font-size: 14px; }
.incident-update .u-status { font-weight: 600; text-transform: capitalize; margin-right: 6px; }
.incident-update .u-time { color: var(--muted); font-size: 12.5px; margin-left: 6px; white-space: nowrap; }

.components-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 36px;
}
.components-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.components-head h2 { font-size: 15px; font-weight: 650; }
.uptime-legend { font-size: 12.5px; color: var(--muted); }
.tz { opacity: 0.75; }

.component { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.component:last-child { border-bottom: none; }
.component-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.component-name { font-weight: 600; font-size: 15px; }
.component-desc { color: var(--muted); font-size: 12.5px; margin-left: 8px; font-weight: 400; }
.component-status { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.status-operational { color: var(--green); }
.status-outage { color: var(--red); }
.status-maintenance { color: var(--blue); }
.status-unknown { color: var(--muted); }

.bars { display: flex; gap: 2px; margin-top: 10px; height: 34px; }
.bar { flex: 1 1 0; border-radius: 2px; background: var(--gray); min-width: 0; cursor: default; }
.bar.ok { background: var(--green); }
.bar.partial { background: var(--orange); }
.bar.down { background: var(--red); }
.bar:hover { transform: scaleY(1.12); }

.bar-caption { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.bar-caption .pct { font-weight: 550; }

.history-section h2 { font-size: 17px; font-weight: 650; margin-bottom: 14px; }
.history-month { margin-bottom: 22px; }
.history-month h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.history-empty {
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 18px 22px; color: var(--muted); font-size: 14px;
}
.history-section .incident-card { margin-bottom: 12px; }

.site-footer { margin-top: 40px; font-size: 12.5px; color: var(--muted); text-align: center; }

.tooltip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--text); color: var(--bg);
  border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; line-height: 1.45; max-width: 240px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.tooltip b { display: block; }

@media (max-width: 560px) {
  .wrap { padding: 20px 12px 48px; }
  .banner { font-size: 16px; padding: 15px 18px; }
  .bars { height: 28px; }
  .component-desc { display: none; }
}
