:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef2f5;
  --text: #172026;
  --muted: #64717d;
  --line: #d9e0e6;
  --green: #16835f;
  --green-soft: #e4f5ee;
  --amber: #a66200;
  --amber-soft: #fff1d6;
  --orange: #bd4b15;
  --orange-soft: #ffe5d8;
  --red: #c62828;
  --red-soft: #ffe0e0;
  --gray: #6b7280;
  --gray-soft: #eceff3;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand,
.site-header nav,
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 700;
}

.brand-logo {
  width: 144px;
  height: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.brand-context {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.site-header nav {
  color: var(--muted);
  font-size: 14px;
}

.page-shell {
  padding: 32px 0 44px;
}

.overall-band {
  min-height: 148px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.overall-band h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 750;
}

.overall-band p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

.is-operational {
  color: var(--green);
  background: var(--green-soft);
}

.is-degraded {
  color: var(--amber);
  background: var(--amber-soft);
}

.is-partial_outage {
  color: var(--orange);
  background: var(--orange-soft);
}

.is-major_outage {
  color: var(--red);
  background: var(--red-soft);
}

.is-maintenance,
.is-unknown {
  color: var(--gray);
  background: var(--gray-soft);
}

.incidents-section,
.system-group {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.section-heading,
.group-heading {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.group-heading h2,
.component-row h3,
.incident-item h3 {
  margin: 0;
  line-height: 1.25;
}

.section-heading p,
.group-heading p,
.component-row p,
.incident-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
}

.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.component-list {
  display: grid;
}

.component-row {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
}

.component-row:first-child {
  border-top: 0;
}

.component-main {
  min-width: 0;
  display: flex;
  gap: 12px;
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.component-main h3 {
  font-size: 16px;
}

.component-message {
  color: var(--text);
}

.component-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.history-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  gap: 3px;
  height: 28px;
  align-items: end;
}

.history-bar {
  min-height: 18px;
  border-radius: 2px;
}

.incident-item {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.incident-item:first-of-type {
  border-top: 0;
}

.site-footer {
  min-height: 64px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(100% - 24px, 1080px);
  }

  .site-header nav {
    display: none;
  }

  .page-shell {
    padding-top: 18px;
  }

  .overall-band,
  .section-heading,
  .group-heading,
  .component-row,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .overall-band {
    flex-direction: column;
    min-height: 180px;
  }

  .overall-band h1 {
    font-size: 26px;
  }

  .groups {
    grid-template-columns: 1fr;
  }

  .component-row {
    grid-template-columns: 1fr;
  }

  .component-meta {
    justify-items: start;
  }
}
