:root {
  --fg: #1a1f2b;
  --muted: #6b7280;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --blue: #3b82f6;
  --grey: #d1d5db;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-size: 17px; }
.brand .muted { margin-left: 8px; }
.subscribe {
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.subscribe:hover { background: var(--bg); }

main { padding: 24px 0 48px; }

.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 24px;
}
.banner .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; opacity: .9;
}
.banner-loading { background: #6b7280; }
.banner-none { background: var(--green); }
.banner-maintenance { background: var(--blue); }
.banner-minor { background: var(--yellow); color: #1a1f2b; }
.banner-major { background: var(--orange); }
.banner-critical { background: var(--red); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.components { list-style: none; margin: 0; padding: 0; }
.components li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.components li:first-child { border-top: none; }
.components .name { font-weight: 500; }
.components .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  text-transform: capitalize;
}
.chip-operational { background: var(--green); }
.chip-degraded_performance { background: var(--yellow); color: #1a1f2b; }
.chip-partial_outage { background: var(--orange); }
.chip-major_outage { background: var(--red); }
.chip-under_maintenance { background: var(--blue); }

.uptime { display: flex; flex-direction: column; gap: 14px; }
.uptime .row { }
.uptime .row-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 6px;
}
.uptime .row-head .pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.uptime .bars {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  height: 28px;
}
.tile {
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  cursor: default;
  transition: transform .08s ease-out;
}
.tile:hover { transform: scaleX(1.3); }

.tile-tip {
  position: absolute;
  display: none;
  z-index: 100;
  background: #ffffff;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  font-size: 13px;
  pointer-events: none;
  line-height: 1.45;
}
.tile-tip-date { font-weight: 600; margin-bottom: 2px; }
.tile-tip-body { color: var(--muted); font-size: 12px; }
.tile-operational { background: var(--green); }
.tile-degraded_performance { background: var(--yellow); }
.tile-partial_outage { background: var(--orange); }
.tile-major_outage { background: var(--red); }
.tile-under_maintenance { background: var(--blue); }
.tile-no_data { background: var(--grey); }
.legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 12px; font-size: 12px; color: var(--muted);
}
.legend .tile { width: 10px; height: 10px; margin-right: 4px; vertical-align: middle; }

.incident {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.incident:first-child { border-top: none; }
.incident .head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.incident .title { font-weight: 600; }
.incident .time { color: var(--muted); font-size: 12px; margin-top: 2px; }
.incident .updates { margin: 10px 0 0; padding: 0; list-style: none; }
.incident .updates li { padding: 6px 0; }
.incident .updates .status {
  font-weight: 600; text-transform: capitalize;
  margin-right: 8px;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  text-transform: capitalize;
}
.badge-resolved { background: var(--green); }
.badge-monitoring { background: var(--blue); }
.badge-identified { background: var(--orange); }
.badge-investigating { background: var(--red); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0; margin-top: 24px;
  background: var(--card);
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px;
}
