.speedtest-main { max-width: 1080px; }
.sp-hero { padding-top: 32px; padding-bottom: 24px; position: relative; }
.sp-hero h1 { max-width: 16em; }
.sp-intro { font-size: 20px; line-height: 1.45; letter-spacing: -0.02em; max-width: 42em; }
.sp-section { padding: 28px 0; border-top: 1px solid var(--line); }
.sp-section h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.03em; }
.sp-section p, .sp-section li { font-size: 16px; line-height: 1.6; max-width: 46em; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.sp-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.sp-box h3 { font-size: 16px; margin: 0 0 12px; line-height: 1.4; letter-spacing: -0.02em; }
.sp-code {
 display: block; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
 background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
 max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
}
.sp-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; }
.sp-link { font-size: 14px; font-weight: 500; text-decoration: none; padding-block: 4px; }
.sp-link:hover { text-decoration: underline; }
.sp-status { font-size: 13px; color: var(--muted); min-height: 22px; margin: 12px 0 4px; }

.sp-sim-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 16px 0 20px; }
.sp-sim-field { display: grid; gap: 6px; min-width: 220px; }
.sp-sim-field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.sp-gauge-card {
 padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
 display: grid; gap: 20px; justify-items: center; text-align: center;
}
.sp-gauge-wrap { position: relative; width: min(320px, 100%); }
.sp-gauge-svg { width: 100%; height: auto; display: block; }
.sp-gauge-track { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.sp-gauge-fill { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; }
.sp-gauge-readout { margin-top: -20px; }
.sp-gauge-value { font-family: var(--font-mono); font-size: 36px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0; }
.sp-gauge-unit { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin: 4px 0 0; }
.sp-sim-metrics { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.sp-sim-tile { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.sp-sim-tile span { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.sp-sim-tile strong { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; }

.sp-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 0; }
.sp-metrics-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sp-metrics-grid dt { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.sp-metrics-grid dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.sp-list { padding-left: 20px; margin: 12px 0 0; }
.sp-list li { margin-bottom: 8px; }

html[lang="hi"] .sp-hero h1 { letter-spacing: 0; line-height: 1.4; }
html[lang="hi"] .sp-section h2 { line-height: 1.45; }

@media (max-width: 720px) {
 .sp-hero { padding-top: 24px; }
 .sp-intro { font-size: 18px; }
 .sp-grid, .sp-metrics-grid { grid-template-columns: 1fr; }
 .sp-sim-metrics { grid-template-columns: 1fr 1fr; }
 .sp-sim-controls .copy-prompt { width: 100%; }
 .sp-sim-field { width: 100%; }
 .sp-box .copy-prompt { width: 100%; }
}
@media (max-width: 440px) {
 .sp-sim-metrics { grid-template-columns: 1fr; }
}

.sp-video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid var(--line);border-radius:var(--radius);background:#0b0e14;margin:0 0 14px}
.sp-box-wide { grid-column: 1 / -1; }
.sp-open { margin-top: 16px; font-size: 16px; font-weight: 500; }
.sp-open a { text-decoration: underline; text-underline-offset: 3px; }
