:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #edf3ff;
  --text: #182033;
  --muted: #68758a;
  --line: #d9e1ee;
  --blue: #2459cc;
  --green: #0f8a5f;
  --amber: #a86100;
  --orange: #b44b19;
  --red: #b4232a;
  --gray: #5d6778;
  --shadow: 0 18px 45px rgba(24, 32, 51, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  display: block;
  border-radius: 8px;
}

.home-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 36px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

#overall-detail {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.summary-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.operational {
  color: var(--green);
  background: #eaf8f1;
}

.badge.degraded {
  color: var(--amber);
  background: #fff4df;
}

.badge.partial_outage {
  color: var(--orange);
  background: #fff0e8;
}

.badge.major_outage {
  color: var(--red);
  background: #ffe9eb;
}

.badge.unknown {
  color: var(--gray);
  background: #f0f3f7;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.component {
  display: grid;
  gap: 12px;
  min-height: 172px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.component-head,
.incident-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.component h3,
.incident h3 {
  margin: 0;
  font-size: 1rem;
}

.component p,
.incident p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.component-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--surface-strong);
}

.incident-list {
  display: grid;
  gap: 14px;
}

.incident {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .summary-band {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding: 22px;
  }

  .summary-side {
    align-items: flex-start;
  }

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

  .component-head,
  .incident-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
