.status-page {
  background: var(--white);
}

.status-hero {
  background:
    radial-gradient(ellipse at 84% 18%, rgba(249, 115, 22, 0.11), transparent 34%),
    linear-gradient(165deg, var(--gray-50) 0%, var(--white) 100%);
}

.status-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.55fr);
  gap: var(--space-12);
  align-items: center;
}

.status-overview {
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.status-overview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--orange-500);
}

.status-overview-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.status-dot {
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green-600, #059669);
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.12);
}

.status-overview-main .status-dot {
  margin-top: 0.55rem;
}

.status-overview-label {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
}

.status-overview-summary {
  margin: var(--space-3) 0 0;
  color: var(--navy-600);
  line-height: 1.65;
}

.status-overview-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
  color: var(--navy-500);
  font-size: var(--text-sm);
}

.status-components {
  padding: var(--space-24) 0 var(--space-32);
}

.status-section-header {
  display: flex;
  gap: var(--space-5);
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.status-section-header h2 {
  margin-top: var(--space-3);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.status-refresh-link {
  position: relative;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.status-refresh-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0.42);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.status-refresh-link:hover::after,
.status-refresh-link:focus-visible::after {
  transform: scaleX(1);
}

.status-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.status-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.status-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.status-table th,
.status-table td {
  padding: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  color: var(--navy-700);
  line-height: 1.55;
  text-align: left;
  vertical-align: middle;
}

.status-table thead th {
  background: var(--gray-50);
  color: var(--navy-500);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.status-table tbody th {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  color: var(--navy-900);
  font-weight: 800;
}

.status-pill .status-dot {
  width: 0.62rem;
  height: 0.62rem;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.status-muted {
  color: var(--navy-500);
}

.is-degraded .status-dot {
  background: #d97706;
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.14);
}

.status-pill .is-degraded .status-dot,
.is-degraded .status-pill .status-dot {
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.is-degraded.status-overview::before {
  background: #d97706;
}

.is-outage .status-dot {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.13);
}

.status-pill .is-outage .status-dot,
.is-outage .status-pill .status-dot {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13);
}

.is-outage.status-overview::before {
  background: #dc2626;
}

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

  .status-overview {
    max-width: 42rem;
  }
}

@media (max-width: 640px) {
  .status-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-components {
    padding: var(--space-18) 0 var(--space-24);
  }

  .status-overview {
    padding: var(--space-5);
  }

  .status-overview-label {
    font-size: var(--text-xl);
  }

  .status-table {
    min-width: 620px;
  }

  .status-table th,
  .status-table td {
    padding: var(--space-4);
  }
}
