.speed-page { max-width: 1160px; }
.speed-console { padding: clamp(18px,3vw,32px); margin: 24px 0; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(ellipse at top left,#e5f7ef,transparent 65%),var(--surface); box-shadow: var(--shadow); }
.speed-console-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.speed-console-heading h2 { margin: 4px 0; font-size: clamp(1.4rem,3vw,2rem); }
.speed-provider { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; color: var(--green-dark); }
.speed-display { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; align-items: center; margin: 28px 0; }
.speed-dial { --speed-fill: 0turn; width: min(100%,300px); aspect-ratio: 1; padding: 12px; border-radius: 50%; margin: auto; background: conic-gradient(from 220deg,#15956b var(--speed-fill),#dce9e3 0); box-shadow: 0 0 0 10px #edf5f0,0 20px 50px #174c3320; }
.speed-dial-face { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 100%; padding: 16px; border-radius: 50%; background: var(--surface); color: var(--green-dark); text-align: center; overflow-wrap: anywhere; }
.speed-dial-face > strong { max-width: 100%; font-size: clamp(2.2rem,7vw,3.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.speed-dial-face small { font-size: 1rem; }
.speed-measurements { min-width: 0; }
.speed-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.speed-metrics > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.speed-metrics dt { font-size: 1rem; color: var(--muted); line-height: 1.5; }
.speed-metrics dd { margin: 8px 0 0; color: var(--green-dark); }
.speed-metrics strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.speed-metrics dd span { font-size: 1rem; }
.speed-chart { margin-top: 16px; }
.speed-chart p { display: flex; flex-wrap: wrap; gap: 18px; font-size: 1rem; font-weight: 700; }
.speed-chart svg { display: block; width: 100%; height: 150px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.speed-chart small { display: block; font-size: 1rem; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.speed-chart-grid { stroke: var(--line); fill: none; }
.speed-chart polyline { stroke-width: 3; vector-effect: non-scaling-stroke; fill: none; stroke-linejoin: round; }
.speed-down-line { stroke: #137250; }
.speed-up-line { stroke: #3266a8; stroke-dasharray: 6 4; }
.speed-down-key { color: #137250; }
.speed-up-key { color: #3266a8; }
.speed-settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.speed-settings { margin-top: 20px; }
.speed-budget-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 1rem; }
.speed-budget-details p { padding-top: 12px; }
.speed-display { scroll-margin-top: var(--speed-scroll-top,120px); }
#speed-panel .speed-go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: min(100%,300px); min-height: 90px; margin: 0 auto; border-radius: 24px; background: linear-gradient(130deg,#12664c,#13866b); color: #fff; box-shadow: 0 8px 20px #12664c24; }
#speed-panel .speed-go strong { font-size: 2rem; line-height: 1.1; letter-spacing: .08em; }
#speed-panel .speed-go span { font-size: 1rem; }
#speed-panel #speed-stop { grid-column: 1 / -1; min-height: 50px; width: 100%; font-size: max(16px,1rem); white-space: normal; }
.native-app [data-page="internet-speed"] .page-intro { padding: 12px 16px; margin: 8px 0; }
.native-app [data-page="internet-speed"] .page-intro > img,
.native-app [data-page="internet-speed"] .page-intro .eyebrow,
.native-app [data-page="internet-speed"] .page-intro p:not(.eyebrow) { display: none; }
.native-app [data-page="internet-speed"] .speed-console { padding: 16px; margin: 12px 0; }
.native-app [data-page="internet-speed"] .speed-console-heading .eyebrow { display: none; }
.native-app [data-page="internet-speed"] .speed-console-heading h2 { font-size: 1.25rem; }
.native-app [data-page="internet-speed"] .speed-settings { gap: 6px; padding: 12px; margin-top: 12px; }
.native-app [data-page="internet-speed"] .speed-consent { margin: 14px 0; }
.native-app [data-page="internet-speed"] .speed-actions { margin: 14px 0; }
.speed-settings label, .speed-console > label { font-size: 1rem; }
.speed-settings select { min-width: 0; min-height: 50px; font-size: max(16px,1rem); }
.speed-settings p { margin: 0; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.speed-consent { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; font-size: 1rem; line-height: 1.7; }
.speed-consent input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; margin-top: 3px; }
.speed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 24px; }
.speed-actions .button { min-height: 52px; max-width: 100%; font-size: max(16px,1rem); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.speed-page :focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.speed-page progress { display: block; width: 100%; height: 12px; accent-color: var(--green); }
.speed-result-note, #speed-status { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.speed-result-note { color: var(--muted); }
.speed-page [hidden] { display: none !important; }
.speed-help { margin: 28px 0; padding: clamp(18px,3vw,28px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.speed-help h2 { font-size: 1.5rem; }
.speed-help p, .speed-help li { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.speed-help li { margin: 12px 0; }
.speed-help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.speed-help summary { padding: 16px 0; min-height: 52px; cursor: pointer; font-size: 1rem; font-weight: 750; }
.speed-help details { border-top: 1px solid var(--line); }
.speed-back { margin: 28px 0; }
@media (max-width: 800px) {
  .speed-display { grid-template-columns: minmax(0,1fr); }
  .speed-settings, .speed-help-grid { grid-template-columns: minmax(0,1fr); }
  .speed-dial { width: min(80%,260px); }
  .speed-actions .button { flex: 1 1 220px; }
}
@media (max-width: 380px) { .speed-metrics { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .speed-page *, .home-speed-feature { scroll-behavior: auto; transition: none; } }
html[data-theme="dark"] .speed-console {
  border-color: #292c2e;
  background: #111315;
  background-image: none;
}
html[data-theme="dark"] .speed-dial {
  background: conic-gradient(from 220deg, #15956b var(--speed-fill), #303936 0);
  box-shadow: 0 0 0 10px #171a18, 0 20px 50px rgba(0,0,0,.35);
}
html[data-theme="dark"] :is(.speed-down-key, .speed-down-line) { color: #75d6aa; stroke: #75d6aa; }
html[data-theme="dark"] :is(.speed-up-key, .speed-up-line) { color: #9db6ff; stroke: #9db6ff; }
