:root { --fg:#222; --muted:#666; --accent:#2fa4e7; --bg:#fff; --well:#f5f5f5; --border:#e3e3e3; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif; color:var(--fg); background:var(--bg); }
.container { max-width:900px; margin:0 auto; padding:0 16px; }
.header { display:flex; align-items:center; gap:16px; padding:16px 0; }
.header h1 { margin:0; font-size:28px; font-weight:500; }
.logo { height:48px; width:auto; }
.well { background:var(--well); border:1px solid var(--border); border-radius:4px; padding:16px 19px; margin-bottom:20px; }
.legend { display:block; font-size:19px; margin-bottom:10px; }
.indent { margin-left:10px; }
.testfile { margin-right:8px; }
a { color:var(--accent); }
#host { width:260px; max-width:100%; padding:6px 8px; border:1px solid #ccc; border-radius:4px; }
select { padding:6px; margin-left:5px; border:1px solid #ccc; border-radius:4px; }
.btn { margin-left:10px; padding:7px 16px; color:#fff; background:var(--accent); border:1px solid #1d8fd0; border-radius:4px; cursor:pointer; font:inherit; }
.btn:disabled { opacity:.6; cursor:default; }
.btn.running { background:#e5473d; border-color:#c93a31; }
pre { background:#fff; border:1px solid var(--border); padding:10px; overflow:auto; white-space:pre-wrap; word-break:break-all; margin:0; font-size:13px; }
.error { color:#b94a48; font-weight:bold; }
.error.invalid { color:#b94a48; }
.footer { border-top:1px solid var(--border); margin-top:30px; padding:12px 0 24px; color:var(--muted); font-size:13px; }
.speedtest { text-align:center; }
.speedtest .btn { margin:0 0 20px; width:8em; height:3em; }
#progressBar { height:5px; background:#eee; margin:0 auto 24px; width:90%; }
#progress { height:100%; width:0; background:#90bbff; transition:width 2s; }
.meters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 24px; margin-bottom:20px; }
.meter { width:12em; }
.meter .name { font-size:1.2em; }
.meter .value { font-size:2.2em; }
#dlText { color:#6060aa; } #ulText { color:#309030; } #pingText, #jitText { color:#aa6060; }
.meter .unit { color:var(--muted); }
pre:empty { display:none; }
.loading { color:var(--muted); }
#testWrapper #progressBar { margin-top:8px; }
#server { max-width:100%; }
.linkbtn { display:inline-block; margin:0; text-decoration:none; width:auto; height:auto; padding:7px 16px; }
#shareArea { text-align:left; }
#resultsURL { width:100%; padding:6px 8px; border:1px solid #ccc; border-radius:4px; }
#resultsImg { max-width:100%; height:auto; margin-top:8px; }
.policy { text-align:left; font-size:13px; color:var(--muted); margin-top:16px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.tab { padding:8px 16px; background:var(--well); border:1px solid var(--border); border-bottom:none; border-radius:4px 4px 0 0; cursor:pointer; font:inherit; }
.tab.active { background:var(--accent); color:#fff; border-color:#1d8fd0; }
.note { background:#fff8e1; border:1px solid #f0d98a; border-radius:4px; padding:8px 12px; font-size:13px; }
[hidden] { display:none !important; }
