.health-score > div { padding: 20px; }
.health-score strong {
  max-width: 100%;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.health-score small {
  display: block;
  max-width: 160px;
  margin: 10px auto 0;
  color: #68686d;
  font-size: 10px;
  line-height: 1.45;
}
.route-score strong { font-size: 21px; letter-spacing: -.04em; }
.reach-result { max-width: 260px; }
.reach-result small { text-align: right; line-height: 1.45; white-space: normal; }
.network-grid-compact { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.network-summary-card { min-height: 390px; }
.network-summary-card .network-protocols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 22px 88px;
}
.network-summary-card .protocol {
  margin: 0;
  padding: 17px 16px;
  border: 1px solid #1118270d;
  border-radius: 16px;
  background: #f8f9fb;
}
.network-summary-card .location { bottom: 24px; }

.health-note { cursor: pointer; color: #087af0; font-weight: 700; }
.test-mode-switch { position: absolute; z-index: 12; top: 22px; left: 50%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(430px, calc(100% - 32px)); padding: 4px; border: 1px solid #11182712; border-radius: 19px; background: #ffffffcf; box-shadow: 0 12px 34px #27466612; transform: translateX(-50%); }
.test-mode-switch button { cursor: pointer; padding: 10px 17px; border-radius: 15px; color: #68686d; text-align: left; transition: .2s ease; }
.test-mode-switch button span, .test-mode-switch button strong { display: block; }
.test-mode-switch button span { font-size: 8px; letter-spacing: .08em; }
.test-mode-switch button strong { margin-top: 4px; font-size: 11px; }
.test-mode-switch button.active { color: #fff; background: #087af0; box-shadow: 0 7px 18px #087af033; }
.speed-card-current { border-color: #087af04d !important; box-shadow: 0 22px 58px #087af019 !important; }
.speed-section .section-title p { margin: 8px 0 0; color: #86868b; font-size: 12px; }
.trend-section .section-title p, .reach-section .section-title p, #nodes .section-title p { margin: 8px 0 0; color: #86868b; font-size: 11px; }
.speed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.speed-card { padding: 26px; }
.speed-head { display: flex; align-items: center; gap: 14px; }
.speed-head > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #eaf4ff; color: #087af0; font: 700 11px/1 var(--font-geist-mono), monospace; }
.speed-head div { flex: 1; }
.speed-head small { color: #86868b; font-size: 9px; }
.speed-head h3 { margin: 4px 0 0; font-size: 19px; }
.speed-head b { color: #86868b; font-size: 10px; }
.speed-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.speed-values div { padding: 18px; border: 1px solid #1118270d; border-radius: 17px; background: #f8fafc; }
.speed-values span { display: block; color: #86868b; font-size: 10px; }
.speed-values strong { display: inline-block; margin-top: 8px; color: #087af0; font: 700 31px/1 var(--font-geist-mono), monospace; }
.speed-values small { margin-left: 6px; color: #86868b; font-size: 9px; }
.speed-note { margin: 16px 2px 0; color: #86868b; font-size: 11px; }

@media (max-width: 760px) {
  .health-score strong { font-size: 36px; }
  .health-score small { max-width: 130px; font-size: 9px; }
  .reach-result { max-width: 180px; }
  .network-grid-compact { grid-template-columns: 1fr; }
  .network-summary-card .network-protocols { grid-template-columns: 1fr; margin-bottom: 106px; }
  .speed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .health-score strong { font-size: 31px; }
  .route-score strong { font-size: 18px; }
  .reach-result { max-width: 145px; }
  .reach-result small { font-size: 8px; }
  .network-summary-card .network-protocols { margin: 24px 18px 116px; }
  .test-mode-switch { top: 11px; width: calc(100% - 16px); }
  .test-mode-switch button { padding: 8px 11px; }
  .test-mode-switch button strong { font-size: 10px; }
  .route-summary { width: 178px; }
  .route-rack { top: 88px; left: 8px; }
  .route-dmit { right: 8px; }
  .route-summary .route-name { grid-template-columns: 8px 65px; }
  .route-summary .route-name strong { font-size: 13px; }
  .route-summary .route-score { right: 10px; }
  .route-summary .route-score strong { font-size: 17px; }
}
