:root {
  --bg: #f3f3f6; --surface: #ffffff; --surface-3: #dedde3; --border: #d6d5db;
  --text-primary: #000103; --text-secondary: #5f6473; --text-tertiary: #586683;
  --accent: #153cf6;
  --green: #0d7a4e; --green-bg: #e6f5ee; --amber: #a05c08; --amber-bg: #fef3e2;
  --red: #b81c1c; --red-bg: #fde8e8;
  --radius-sm: 4px; --radius-lg: 8px;
  --shadow: 0px 1px 3px 0px hsl(230 60% 12% / 0.07), 0px 1px 2px -1px hsl(230 60% 12% / 0.04);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-primary);
  font: 14px/1.5 Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; margin-bottom: 18px; }
.brand { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
h1 { margin: 0; font-size: 18px; font-weight: 600; }
.muted { color: var(--text-secondary); }
.banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: center;
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 18px; font-weight: 500; }
.banner small { font-weight: 400; opacity: .8; font-size: 12px; }
.tone-ok { background: var(--green-bg); color: var(--green); }
.tone-degraded { background: var(--amber-bg); color: var(--amber); }
.tone-down { background: var(--red-bg); color: var(--red); }
.tone-unknown { background: var(--surface-3); color: var(--text-secondary); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.card > header { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.card > header h2 { margin: 0; font-size: 14px; font-weight: 600; }
.card > header p { margin: 1px 0 0; font-size: 12px; color: var(--text-tertiary); }
.card.incident-open { border-color: var(--amber); }
.card.incident-open.down { border-color: var(--red); }
.body { padding: 16px 18px; }
.module { padding: 16px 18px; border-top: 1px solid var(--border); }
.module:first-of-type { border-top: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.row h3 { margin: 0; font-size: 14px; font-weight: 500; }
.badge { display: inline-flex; border-radius: var(--radius-sm); padding: 2px 8px; font-size: 12px; font-weight: 500; }
.since { font-size: 12px; color: var(--text-tertiary); }
.uptime { margin-left: auto; font-size: 12px; color: var(--text-secondary); }
.uptime b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 2px; height: 32px; margin-top: 12px; }
.bar { flex: 1; min-width: 0; border-radius: 2px; }
.bar.ok { background: var(--green); } .bar.degraded { background: var(--amber); }
.bar.down { background: var(--red); } .bar.no_data { background: var(--surface-3); }
.axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--text-tertiary); }
.axis .d30 { display: none; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--border); }
.timeline li { margin-bottom: 8px; }
.timeline time { display: block; font-size: 12px; color: var(--text-tertiary); }
.incident + .incident { margin-top: 16px; }
.incident h3 { display: inline; margin: 0 8px 0 0; font-size: 14px; font-weight: 500; }
.meta { margin: 4px 0 0; font-size: 12px; color: var(--text-tertiary); }
.foot { color: var(--text-tertiary); font-size: 12px; padding-bottom: 32px; }
@media (max-width: 600px) {
  .bar:nth-child(-n+60) { display: none; }
  .axis .d90 { display: none; } .axis .d30 { display: inline; }
}
