/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* Speedtest */
.st-app { gap: 18px; --st-down: #1E5AA8; --st-up: #D94A2B; --st-ping: #2E9B62; --st-c1: #3E8BFF; --st-c2: #1E5AA8; }
.st-app [hidden] { display: none !important; }
.st-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0; }
.st-dials { width: 100%; display: grid; grid-template-columns: 0.72fr 1.55fr 1fr; grid-template-areas: "ping down up"; align-items: end; gap: 6px 14px; }
.st-dial { position: relative; min-width: 0; transition: opacity .3s; }
.st-d-ping { grid-area: ping; --c1: #5CCB8F; --c2: #2E9B62; }
.st-d-down { grid-area: down; --c1: #3E8BFF; --c2: #1E5AA8; }
.st-d-up { grid-area: up; --c1: #FF9A76; --c2: #D94A2B; }
.st-dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-dial .s1 { stop-color: var(--c1); } .st-dial .s2 { stop-color: var(--c2); }
.st-track { fill: none; stroke: var(--line); stroke-width: 16; stroke-linecap: round; }
.st-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.st-ticks line { stroke: var(--ink-3, #8B97B0); stroke-width: 1.5; }
.st-ticks text { fill: var(--ink-2); font-family: var(--font-mono); font-weight: 600; text-anchor: middle; }
.st-needle path { fill: var(--ink); }
.st-d-ping .st-track, .st-d-ping .st-fill { stroke-width: 20; }
.st-readout { position: absolute; left: 0; right: 0; top: 42%; display: flex; flex-direction: column; align-items: center; line-height: 1; pointer-events: none; }
.st-title { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.st-tick { display: none; width: 16px; height: 16px; border-radius: 50%; background: #2E9B62; color: #fff; font-size: 12px; place-items: center; letter-spacing: 0; }
.st-dial.is-done .st-tick { display: inline-grid; }
.st-value { font: 700 30px var(--font-display, inherit); letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.st-unit { font-weight: 700; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.st-d-down .st-readout { top: 40%; }
.st-d-down .st-title { font-size: 14px; }
.st-d-down .st-value { font-size: clamp(40px, 7vw, 58px); letter-spacing: -1px; }
.st-d-down .st-unit { font-size: 15px; }
.st-d-ping .st-value { font-size: 24px; }
.st-d-ping .st-title, .st-d-ping .st-unit { font-size: 12px; }
/* While testing, the dial being measured stands out and the others step back a little */
.st-dials[data-phase="ping"] .st-dial:not(.is-active):not(.is-done), .st-dials[data-phase="down"] .st-dial:not(.is-active):not(.is-done), .st-dials[data-phase="up"] .st-dial:not(.is-active):not(.is-done) { opacity: .45; }
.st-dial.is-active .st-title { color: var(--c2); }
.st-dial.is-active .st-title::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); animation: st-pulse 1s infinite; }
.st-dial.is-active .st-track { stroke: color-mix(in srgb, var(--c1) 22%, var(--line)); }
@keyframes st-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .st-dial.is-active .st-title::after { animation: none; } }
.st-go { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); width: 42%; aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); font: 800 clamp(24px, 4.4vw, 34px) var(--font-display, inherit); letter-spacing: 2px; cursor: pointer; box-shadow: 0 0 0 10px rgba(30, 90, 168, .15), 0 10px 26px rgba(22, 35, 63, .25); transition: transform .15s; }
.st-go:hover { transform: translate(-50%, -50%) scale(1.05); }
.st-go:focus-visible { outline: 3px solid var(--focus, #1E5AA8); outline-offset: 6px; }
.st-d-down:has(.st-go:not([hidden])) .st-readout { display: none; }
.st-ctrl { display: flex; gap: 10px; }
.st-ctrl .btn { min-height: 48px; min-width: 150px; }
.st-msg { margin: 0; min-height: 1.4em; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ink-3); border-radius: 12px; min-width: 0; }
.st-c-down { border-top-color: var(--st-down); } .st-c-up { border-top-color: var(--st-up); } .st-c-ping { border-top-color: var(--st-ping); } .st-c-jit { border-top-color: #8B6BD6; }
.st-lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.st-num { font: 700 26px var(--font-display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.st-sub { font-size: 12.5px; color: var(--ink-2); }
.st-load { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; }
.st-load > div { display: flex; flex-direction: column; gap: 4px; }
.st-load strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.st-grade { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--line); font-size: 22px !important; cursor: help; }
.st-grade.g-A { background: #2E9B62; color: #fff; } .st-grade.g-B { background: #7BBF4A; color: #fff; } .st-grade.g-C { background: #E2B41B; color: #16233F; } .st-grade.g-D { background: #E8833A; color: #fff; } .st-grade.g-F { background: #C62828; color: #fff; }
.st-meta { margin: -4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: center; }
.st-meta:empty { display: none; }
.st-opts { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: end; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.st-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.st-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.st-seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--btn-radius); overflow: hidden; }
.st-seg label { cursor: pointer; }
.st-seg input { position: absolute; opacity: 0; pointer-events: none; }
.st-seg span { display: grid; place-items: center; min-height: 40px; padding: 0 14px; font-weight: 700; font-size: 14px; }
.st-seg input:checked + span { background: var(--ink); color: var(--surface); }
.st-seg input:focus-visible + span { outline: 3px solid var(--focus, #1E5AA8); outline-offset: -3px; }
.st-plan { grid-column: 1 / -1; }
.st-plan label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.st-planrow { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.st-planrow input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: var(--input-border); border-radius: var(--btn-radius); font-size: 16px; background: var(--surface); color: var(--ink); }
.st-planrow span { font-weight: 700; color: var(--ink-2); }
.st-note { margin: -8px 0 0; }
.st-results { display: flex; flex-direction: column; gap: 12px; }
.st-h { font-size: 17px; font-weight: 800; margin: 6px 0 0; }
.st-planbar { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: #E3F4EA; }
.st-planbar.low { background: #FDECE6; }
.st-pb { height: 10px; border-radius: 999px; background: rgba(22, 35, 63, .12); overflow: hidden; }
.st-pb span { display: block; height: 100%; background: var(--st-ping); border-radius: 999px; }
.st-planbar.low .st-pb span { background: var(--st-up); }
.st-can, .st-times, .st-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-can li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.st-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 14px; }
.st-can li.ok .st-mark { background: #DDF3E6; color: #1E7B4F; }
.st-can li.no .st-mark { background: #FDE4DE; color: #B3261E; }
.st-can strong { display: block; }
.st-why { display: block; font-size: 13.5px; color: var(--ink-2); }
.st-times li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px dashed var(--line); }
.st-times strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-tips { padding: 14px; border-radius: 12px; background: #FFF6D6; }
.st-tips .st-h { margin-top: 0; margin-bottom: 8px; }
.st-tips li { padding-left: 22px; position: relative; line-height: 1.45; }
.st-tips li::before { content: '→'; position: absolute; left: 0; font-weight: 800; color: var(--accent); }
.st-partner { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.st-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-share .btn { min-height: 46px; }
.st-shared { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.st-history { display: flex; flex-direction: column; gap: 10px; }
.st-histhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.st-histhead .st-h { margin: 0; }
.st-histbtns { display: flex; gap: 14px; }
.st-linkbtn { min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.st-pro { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 5px; border-radius: 5px; background: var(--ink); color: var(--surface); text-decoration: none; vertical-align: 2px; }
.st-chart { width: 100%; height: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.st-axis { stroke: var(--line); }
.st-ln-d, .st-ln-u { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.st-ln-d { stroke: var(--st-down); } .st-ln-u { stroke: var(--st-up); }
.st-pt-d { fill: var(--st-down); } .st-pt-u { fill: var(--st-up); }
.st-legend { margin: -4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.st-k { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-left: 8px; } .st-k:first-child { margin-left: 0; }
.st-k-d { background: var(--st-down); } .st-k-u { background: var(--st-up); }
.st-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th, .st-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table th { font-size: 12.5px; color: var(--ink-2); background: var(--bg); }
.st-table td:nth-child(2), .st-table td:nth-child(3), .st-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.st-tag { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
@media (max-width: 600px) {
  .st-dials { grid-template-columns: 0.85fr 1fr; grid-template-areas: "down down" "ping up"; gap: 4px 18px; }
  .st-d-down { width: min(100%, 360px); justify-self: center; }
  .st-d-ping { padding: 0 6px; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-load { grid-template-columns: 1fr 1fr; }
  .st-grade-wrap { grid-column: 1 / -1; flex-direction: row !important; align-items: center; justify-content: space-between; }
  .st-opts { grid-template-columns: 1fr; }
}
.st-histmsg { margin: 6px 0 0; font-weight: 600; font-size: 14px; color: var(--ink-2); } .st-histmsg:empty { display: none; } .st-histmsg a { color: var(--ink); font-weight: 700; }
