:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-muted: #5c6370;
  --border: #dfe3e8;
  --green: #1a7f37;
  --green-bg: #dafbe1;
  --orange: #bc4c00;
  --orange-bg: #fff1e5;
  --red: #cf222e;
  --red-bg: #ffebe9;
  --blue: #0969da;
  --blue-bg: #ddf4ff;
  --bar-green: #2da44e;
  --bar-orange: #fb8500;
  --bar-red: #d1242f;
  --bar-blue: #218bff;
  --bar-empty: #e1e4e8;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.brand-mark {
  display: block;
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sample-badge {
  margin: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid #54aeff66;
  border-radius: 999px;
}

.hidden {
  display: none;
}

.overall-banner {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--border);
}

.overall-banner--operational {
  color: var(--green);
  background: var(--green-bg);
  border-color: #2da44e55;
}

.overall-banner--degraded,
.overall-banner--partial_outage {
  color: var(--orange);
  background: var(--orange-bg);
  border-color: #fb850055;
}

.overall-banner--major_outage {
  color: var(--red);
  background: var(--red-bg);
  border-color: #d1242f55;
}

.overall-banner--maintenance {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: #218bff55;
}

.section {
  margin-bottom: 2rem;
}

.section-heading {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.components {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.component-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.component-name {
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--operational {
  color: var(--green);
  background: var(--green-bg);
}

.status-pill--degraded,
.status-pill--partial_outage {
  color: var(--orange);
  background: var(--orange-bg);
}

.status-pill--major_outage {
  color: var(--red);
  background: var(--red-bg);
}

.status-pill--maintenance {
  color: var(--blue);
  background: var(--blue-bg);
}

.day-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 28px;
}

.day-bar {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--bar-empty);
  cursor: default;
}

.day-bar--operational {
  background: var(--bar-green);
}

.day-bar--degraded,
.day-bar--partial_outage {
  background: var(--bar-orange);
}

.day-bar--major_outage {
  background: var(--bar-red);
}

.day-bar--maintenance {
  background: var(--bar-blue);
}

.day-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.incidents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.incident-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.incident-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.incident-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.incident-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.incident-components {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 0.85rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1rem - 5px);
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.timeline-time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.timeline-message {
  margin: 0;
  font-size: 0.95rem;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.error-banner {
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #d1242f55;
  border-radius: var(--radius);
}

.footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .brand-mark {
    width: 160px;
  }

  .day-bars {
    height: 24px;
  }
}