.status-shell {
  max-width: none;
}

.status-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  padding: clamp(32px, 5vw, 54px) 0 22px;
}

.status-hero h1 {
  font-size: clamp(26px, 3.1vw, 38px);
}

.status-copy {
  max-width: 520px;
  margin: 12px 0 0;
  color: #c7d0d9;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.58;
}

.status-summary,
.status-panel,
.incident-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.96), rgba(10, 14, 20, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(57, 182, 163, 0.12), 0 0 20px rgba(57, 182, 163, 0.38);
}

.status-summary strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.status-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.status-panel {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-md);
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.panel-heading--row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading--row strong {
  color: #a6f0e5;
  font-size: 18px;
  font-weight: 500;
}

.metric-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.metric-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.metric-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.metric-list dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.uptime-segments {
  display: grid;
  gap: 18px;
}

.segment-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.segment-label small {
  color: #a6f0e5;
  font-size: 11px;
  font-weight: 500;
}

.daily-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  gap: 4px;
  align-items: end;
  min-height: 34px;
  margin-top: 4px;
}

.daily-bars--hourly {
  grid-template-columns: repeat(24, minmax(3px, 1fr));
}

.time-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.time-axis span {
  min-width: 0;
}

.time-axis span:nth-child(2),
.time-axis span:nth-child(3) {
  text-align: center;
}

.time-axis span:last-child {
  text-align: right;
}

.daily-bar {
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: #36c78f;
  justify-self: center;
}

.daily-bar.is-soft {
  opacity: 0.7;
}

.daily-bar.is-down {
  background: var(--danger);
}

.panel-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.incident-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
}

.incident-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.incident-panel p {
  margin: 0;
  color: #c7d0d9;
  font-size: 12px;
}

.status-summary.is-down .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.12), 0 0 20px rgba(255, 107, 107, 0.34);
}

body.is-down #currentState,
.status-summary.is-down strong {
  color: #ffd6d6;
}

@media (max-width: 760px) {
  .status-hero,
  .status-panels {
    grid-template-columns: 1fr;
  }

  .status-hero {
    align-items: start;
    padding-top: 28px;
  }

  .incident-panel {
    align-items: start;
    flex-direction: column;
  }
}
