/* MontanaSky layout around LibreSpeed 6.3.1's modern CSS gauges. */
html,body { background:#f5f7fb; color:#14223e; }
body { font-family:Arial,Helvetica,sans-serif; font-size:16px; padding-bottom:32px; }
div#logo_wrap { background:#fff; padding:22px 16px 16px; margin:0 0 25px; }
#logo_wrap img { max-height:125px; max-width:85vw; height:auto; }
#ipArea { font-size:25px; font-weight:500; letter-spacing:-.5px; margin:22px 16px 0; padding:0; color:#14223e; overflow-wrap:anywhere; }
#startStopBtn { font:600 16px Arial,sans-serif; width:156px; height:48px; line-height:normal; border:0; border-radius:28px; background:#4263ad; color:white; box-shadow:0 4px 12px #14223e20; }
#startStopBtn:hover { background:#345297; box-shadow:0 5px 16px #14223e30; }
#startStopBtn.running { background:#bd354e; border:0; }
#startStopBtn:focus-visible { outline:3px solid #4263ad; outline-offset:4px; }
#resultStatus { font-size:14px; min-height:20px; line-height:1.5; margin:15px auto 18px; max-width:800px; color:#45536c; }
#test { margin:0 auto 24px; }
.modern-panel { box-sizing:border-box; width:calc(100% - 40px); max-width:920px; margin:0 auto; padding:42px 32px 24px; border-radius:24px; background:linear-gradient(135deg,#192b4b,#101b32); color:#fff; box-shadow:0 14px 36px #14223e15;
 --gauge-width:300px; --gauge-height:220px; --progress-width:6px; --speed-width:28px;
 --gauge-background-color:#34445f; --theme-pink:#789bf3; --theme-green:#5ad8e1;
 --gauge-pointer-pink:#c6d6ff; --gauge-pointer-green:#c5fbff;
 --primary-text-color:#fff; --secondary-text-color:#b1bed3;
}
.modern-panel .gauge-layout { --gauge-width:inherit; --gauge-height:inherit; --progress-width:inherit; --speed-width:inherit; display:flex; flex-direction:row; gap:64px; margin:0 auto 30px; align-items:start; }
.modern-panel div.gauge > h1,.modern-panel div.gauge > h2 { margin:0; font-family:Arial,Helvetica,sans-serif; letter-spacing:0; }
.modern-panel div.gauge > h1 { font-size:15px; font-weight:400; }
.modern-panel div.gauge > h1 > span { font-size:48px; font-weight:300; letter-spacing:-2px; line-height:1.16; margin-bottom:6px; }
.modern-panel div.gauge > h2 { font-size:14px; font-weight:600; letter-spacing:2px; }
.modern-panel .download > h2 { color:#a9c0fa; }
.modern-panel .upload > h2 { color:#85e5eb; }
.latency-row { display:flex; justify-content:center; gap:70px; padding-top:23px; border-top:1px solid #ffffff20; }
.latency-metric { font-size:14px; color:#b1bed3; }
.latency-metric .latency-value { color:#fff; font-size:23px; margin:0 5px 0 12px; font-variant-numeric:tabular-nums; }
#uaArea { font-size:11px; line-height:1.6; color:#64718a; max-width:820px; margin:8px auto 0; padding:0 22px; overflow-wrap:anywhere; }
#vpnWarning { box-sizing:border-box; width:calc(100% - 40px); margin-bottom:22px; }
@media(max-width:760px) {
 .modern-panel { padding:30px 18px 22px; border-radius:20px; --gauge-width:min(37vw,260px); --gauge-height:min(29vw,200px); --progress-width:5px; --speed-width:22px; }
 .modern-panel .gauge-layout { gap:7vw; margin-bottom:24px; }
 .modern-panel div.gauge > h1 { font-size:12px; bottom:calc(var(--gauge-height) - var(--gauge-width) / 2 - 15px); }
 .modern-panel div.gauge > h1 > span { font-size:clamp(25px,6.3vw,42px); letter-spacing:-1px; margin-bottom:3px; }
 .modern-panel div.gauge > h2 { font-size:11px; letter-spacing:1px; }
 .latency-row { gap:30px; padding-top:20px; }
 .latency-metric { font-size:12px; }
 .latency-metric .latency-value { font-size:20px; margin-left:7px; }
 #logo_wrap { padding-top:18px; }
 #logo_wrap img { max-height:110px; }
 #ipArea { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .modern-panel .gauge *:before,.modern-panel .gauge *:after { transition:none !important; } }
