@font-face {
  font-family: "Sora";
  src: url("/static/fonts/Sora-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0052D9;
  --blue-soft: #EAF2FF;
  --green: #16A34A;
  --red: #DC2626;
  --text: #162033;
  --muted: #667085;
  --line: #E6EAF2;
  --panel: #FFFFFF;
  --page: #F7F9FC;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.status-header,
.status-footer,
.status-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.logo-link {
  color: inherit;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  width: 3.8rem;
  height: 3.8rem;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0, 82, 217, 0.16));
}

.logo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}

.logo-title {
  display: block;
  font-size: 2.65rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  white-space: nowrap;
}

.logo-title-blue {
  color: #0052D9;
}

.logo-title-deep {
  color: #0B3AAE;
}

.logo-subtitle {
  display: block;
  margin-top: 0.42rem;
  color: #4B5563;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.status-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.status-refresh strong {
  color: var(--text);
  font-weight: 700;
}

.status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.status-page {
  padding: 26px 0 34px;
}

.status-hero {
  margin-bottom: 22px;
}

.status-eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 850;
}

.status-hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.status-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-chip,
.probe-card,
.service-health-panel,
.ssl-health-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.summary-chip {
  min-height: 86px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.summary-chip span {
  color: var(--muted);
  font-size: 13px;
}

.summary-chip strong {
  font-size: 26px;
  font-weight: 800;
}

.summary-chip.is-online strong {
  color: var(--green);
}

.summary-chip.is-offline strong {
  color: var(--red);
}

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

.probe-card {
  padding: 20px;
}

.probe-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.probe-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: 0 0 auto;
}

.probe-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.probe-title-row h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.probe-title-row a {
  color: var(--muted);
}

.probe-main p,
.probe-main small {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.probe-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.probe-status.is-online {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
}

.probe-status.is-offline {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.probe-gauges,
.probe-traffic,
.probe-latency {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.probe-traffic,
.probe-latency {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.probe-gauge,
.probe-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFCFF;
}

.probe-gauge {
  display: grid;
  gap: 8px;
}

.probe-gauge__ring {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--pct) * 1%), #E8EEF8 0);
}

.probe-gauge__ring strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}

.probe-gauge span,
.probe-metric span {
  color: var(--muted);
  font-size: 12px;
}

.probe-gauge small {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.probe-metric {
  display: grid;
  gap: 6px;
}

.probe-metric i {
  color: var(--blue);
}

.probe-metric strong {
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.probe-metric em {
  margin-left: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.probe-uptime {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFCFF;
}

.probe-uptime__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.probe-uptime__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.probe-uptime__head i {
  color: var(--blue);
}

.probe-uptime__head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.probe-uptime__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #E8EEF8;
}

.probe-uptime__track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #16A34A, #0052D9);
  transition: width 0.35s ease;
}

.probe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.probe-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.service-health-panel,
.ssl-health-panel {
  margin-top: 18px;
  padding: 18px;
}

.service-health-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-health-panel__head h2 {
  margin: 0;
  font-size: 18px;
}

.service-health-panel__head span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.service-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFCFF;
}

.ssl-pill {
  min-height: 54px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFCFF;
}

.ssl-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.ssl-pill.is-online span {
  background: var(--green);
}

.ssl-pill.is-warning span {
  background: #F59E0B;
}

.ssl-pill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssl-pill em,
.ssl-pill code,
.ssl-pill b {
  color: var(--muted);
  font-family: inherit;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.service-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.service-pill.is-online span {
  background: var(--green);
}

.service-pill strong {
  flex: 1;
  min-width: 0;
}

.service-pill code,
.service-pill em {
  color: var(--muted);
  font-family: inherit;
  font-style: normal;
  font-size: 13px;
}

.probe-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.loading-spinner-svg {
  width: 34px;
  height: 34px;
}

.status-footer {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-footer a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 900px) {
  .status-summary-strip,
  .probe-gauges,
  .probe-traffic,
  .probe-latency,
  .service-health-grid,
  .ssl-health-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .status-header,
  .status-footer,
  .status-page {
    width: min(100% - 28px, 1120px);
  }

  .status-header,
  .status-footer,
  .service-health-panel__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-lockup {
    gap: 0.62rem;
  }

  .logo-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .logo-title {
    font-size: 1.85rem;
  }

  .logo-subtitle {
    margin-top: 0.28rem;
    font-size: 0.78rem;
  }

  .status-summary-strip,
  .probe-gauges,
  .probe-traffic,
  .probe-latency,
  .service-health-grid,
  .ssl-health-grid {
    grid-template-columns: 1fr;
  }

  .ssl-pill {
    grid-template-columns: 9px minmax(0, 1fr) auto;
  }

  .ssl-pill code,
  .ssl-pill b {
    grid-column: 2 / -1;
  }
}
