.connectivity-main { padding-bottom: 42px; }
.connectivity-page-header { min-height: 126px; }
.connectivity-header-actions { display: flex; align-items: center; gap: 10px; }

.health-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  white-space: nowrap;
}
.health-pill[data-state="healthy"] { border-color: rgb(0 230 118 / 32%); color: var(--secondary-soft); }
.health-pill[data-state="healthy"] .status-dot { background: var(--secondary); box-shadow: 0 0 0 4px rgb(0 230 118 / 8%); }
.health-pill[data-state="standby"], .health-pill[data-state="suspended"], .health-pill[data-state="degraded"] { border-color: rgb(254 201 49 / 36%); color: var(--tertiary-soft); }
.health-pill[data-state="standby"] .status-dot, .health-pill[data-state="suspended"] .status-dot, .health-pill[data-state="degraded"] .status-dot { background: var(--tertiary); }
.health-pill[data-state="down"] { border-color: rgb(255 127 135 / 38%); color: #ffb3b8; }
.health-pill[data-state="down"] .status-dot { background: var(--danger); }

.route-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(300px, 1.2fr);
  gap: 24px 36px;
  margin-top: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(135deg, rgb(0 229 255 / 8%), transparent 45%), var(--surface);
}
.route-summary__copy h2 { margin: 8px 0 7px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; }
.route-summary__copy > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.route-flow { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.route-flow span { border: 1px solid var(--border); border-radius: 7px; padding: 10px 13px; color: var(--text-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.route-flow span:nth-of-type(2) { border-color: rgb(0 229 255 / 35%); color: var(--primary-soft); }
.route-flow i { width: 24px; height: 1px; background: var(--border); }
.route-stats { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-soft); padding-top: 20px; }
.route-stats > div { border-right: 1px solid var(--border-soft); padding: 0 20px; }
.route-stats > div:first-child { padding-left: 0; }
.route-stats > div:last-child { border-right: 0; }
.route-stats span, .connection-card__heading p, .quota-block span, .service-grid article span, .connection-facts dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.route-stats strong { display: block; margin: 7px 0 4px; font-size: 22px; }
.route-stats small { color: var(--muted); font-size: 11px; }

.connectivity-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-heading h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.035em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.connection-card { min-width: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 21px; background: var(--surface); }
.connection-card__heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.connection-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(0 229 255 / 20%); border-radius: 9px; background: rgb(0 229 255 / 5%); color: var(--primary); }
.connection-icon svg { width: 20px; height: 20px; }
.connection-card__heading p, .connection-card__heading h3 { margin: 0; }
.connection-card__heading h3 { margin-top: 4px; font-size: 17px; }
.connection-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--border-soft); }
.connection-facts > div { min-width: 0; padding: 13px; background: #19191b; }
.connection-facts dt, .connection-facts dd { margin: 0; }
.connection-facts dd { overflow: hidden; margin-top: 6px; color: var(--text-soft); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quota-block { margin-top: 18px; }
.quota-block > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.quota-block strong { color: var(--primary-soft); font-size: 24px; }
.quota-meter { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #29292c; }
.quota-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #178dff, var(--primary)); transition: width .25s ease; }
.quota-block p { display: flex; justify-content: space-between; margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.check-list { display: grid; gap: 7px; margin-top: 17px; }
.check-list p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 11px; }
.check-list p > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.check-list p[data-result="pass"] { color: var(--secondary-soft); }
.check-list p[data-result="pass"] > span { background: var(--secondary); }
.check-list p[data-result="fail"] { color: #ffb3b8; }
.check-list p[data-result="fail"] > span { background: var(--danger); }
.check-list p[data-result="neutral"] { color: var(--tertiary-soft); }
.check-list p[data-result="neutral"] > span { background: var(--tertiary); }
.connection-note { min-height: 18px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-grid article { display: grid; min-width: 0; grid-template-columns: 38px minmax(0, 1fr) 8px; align-items: center; gap: 11px; border: 1px solid var(--border-soft); border-radius: 10px; padding: 16px; background: var(--surface); }
.service-grid article > svg { width: 20px; height: 20px; color: var(--primary); }
.service-grid strong, .service-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-grid strong { margin: 5px 0 3px; font-size: 14px; }
.service-grid small { color: var(--muted); font-size: 10px; }
.service-grid .status-dot[data-state="healthy"] { background: var(--secondary); }
.service-grid .status-dot[data-state="degraded"] { background: var(--tertiary); }
.service-grid .status-dot[data-state="down"] { background: var(--danger); }
.other-connections { margin-top: 16px; border: 1px solid var(--border-soft); border-radius: 10px; padding: 17px; background: var(--surface); }
#otherConnectionList { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#otherConnectionList span { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; color: var(--text-soft); font-size: 11px; }

@media (max-width: 980px) {
  .route-summary { grid-template-columns: 1fr; }
  .route-flow { justify-content: flex-start; }
  .connection-grid, .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .connectivity-page-header { align-items: flex-start; padding: 22px 0; }
  .connectivity-page-header .page-heading h1 { font-size: 34px; }
  .connectivity-header-actions { align-self: center; }
  .route-summary { padding: 19px; }
  .route-flow { overflow-x: auto; justify-content: flex-start; padding-bottom: 3px; }
  .route-stats { grid-template-columns: 1fr; gap: 14px; }
  .route-stats > div { border-right: 0; border-bottom: 1px solid var(--border-soft); padding: 0 0 14px; }
  .route-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .connection-card { padding: 17px; }
  .connection-card__heading { grid-template-columns: 38px minmax(0, 1fr); }
  .connection-card__heading .health-pill { grid-column: 1 / -1; justify-self: start; }
  .connection-facts { grid-template-columns: 1fr; }
}
