.status-shell { width: min(880px, calc(100% - 48px)); }
.status-heading { align-items: center; }
.status-heading h1 { max-width: 620px; }
.service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.service-state i { width: 9px; height: 9px; border-radius: 50%; background: #7e93a8; }
.service-state.operational { border-color: rgba(36, 215, 165, .3); color: #72efca; background: var(--green-soft); }
.service-state.operational i { background: var(--green); box-shadow: 0 0 0 4px rgba(36, 215, 165, .12); }
.service-state.degraded { border-color: rgba(248, 173, 54, .34); color: #ffc875; background: rgba(248, 173, 54, .09); }
.service-state.degraded i { background: #f8ad36; }
.service-state.outage { border-color: rgba(255, 109, 122, .38); color: #ff9ca5; background: rgba(255, 109, 122, .09); }
.service-state.outage i { background: var(--danger); }
.status-overview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.status-overview > div:last-child { display: grid; gap: 5px; }
.status-overview strong { font-size: 19px; }
.status-overview span { color: var(--muted); font-size: 13px; }
.status-signal { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--surface-muted); }
.status-signal span { width: 15px; height: 15px; border-radius: 50%; background: #7e93a8; }
.status-overview.operational { border-color: rgba(36, 215, 165, .24); }
.status-overview.operational .status-signal { background: var(--green-soft); }
.status-overview.operational .status-signal span { background: var(--green); box-shadow: 0 0 0 6px rgba(36, 215, 165, .12); }
.status-overview.degraded { border-color: rgba(248, 173, 54, .28); }
.status-overview.degraded .status-signal span { background: #f8ad36; }
.status-overview.outage { border-color: rgba(255, 109, 122, .3); }
.status-overview.outage .status-signal span { background: var(--danger); }
.service-list { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.service-row { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-copy { display: grid; min-width: 0; gap: 4px; }
.service-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-copy span { color: var(--muted); font-size: 13px; }
.status-note { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.status-note h2 { margin: 0 0 6px; font-size: 19px; }
.status-note p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.status-empty { padding: 36px 20px; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .status-shell { width: min(100% - 28px, 600px); }
  .status-heading, .status-note { align-items: stretch; flex-direction: column; }
  .status-heading .service-state { align-self: flex-start; }
  .service-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .service-copy span { white-space: normal; }
  .status-note .portal-button { width: 100%; }
}
