@import url('/vendor/maplibre-gl.css');
:root{color-scheme:light;--ink:#142d40;--muted:#687c8a;--paper:#fff;--soft:#f1f6f8;--line:#e7eef2;--accent:#24c9f4;--blue:#087dba;--shadow:0 14px 50px #122d4314;--warning:#93630c;--warning-bg:#fff6de;--green:#167e59;--green-bg:#e6f7ee}
*{box-sizing:border-box}body{margin:0;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--soft);overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button{color:var(--ink)}[hidden]{display:none!important}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}h1,h2,p{margin:0}button{border:0}a{color:inherit}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#map{position:fixed;inset:0;background:#e7edf0}.topbar{height:88px;padding:0 38px;position:fixed;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;z-index:5;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:35px;line-height:1;font-weight:850;letter-spacing:-1.8px}.brand-icon{width:42px;height:46px;display:grid;place-items:center;background:var(--accent);border-radius:15px 15px 15px 5px;box-shadow:0 4px 14px #1a6d9b13}.brand-icon svg{width:27px;height:27px;stroke-width:2.5}.brand-dot{color:var(--blue)}.top-caption{position:absolute;left:50%;transform:translateX(-50%);padding:10px 20px;background:var(--paper);border-radius:24px;box-shadow:0 2px 12px #1232;font-size:14px;font-weight:600;letter-spacing:.1px}.top-actions{display:flex;gap:12px;align-items:center}.connection{border-radius:24px;padding:9px 15px;font-size:14px;font-weight:650;background:var(--paper);box-shadow:0 3px 15px #1231;display:flex;gap:8px;align-items:center}.connection::before{content:'';width:7px;height:7px;border-radius:50%;background:#92a3ad}.connection.online::before{background:#2ca77d}.connection.error::before{background:#d49b24}.icon-button{width:46px;height:46px;display:grid;place-items:center;background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 15px #1231;border-radius:17px}.icon-button:hover{background:var(--soft)}
.panel{position:fixed;z-index:4;left:28px;top:100px;bottom:28px;width:360px;max-height:900px;background:var(--paper);border:1px solid #ffffff80;border-radius:28px;box-shadow:var(--shadow);padding:27px 25px 17px;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column}.panel-grip{display:none}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:750;color:var(--muted)}.panel h1{font-size:37px;letter-spacing:-1.6px;line-height:1.4;font-weight:800}.small-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--accent);margin-left:4px}.spark{font-size:37px;color:#14aad4;transform:rotate(15deg);margin-right:8px}.device-picker{display:flex;align-items:center;gap:10px;margin-bottom:22px}.vehicle-icon{width:43px;height:43px;background:#e8f9fd;color:#087eac;border-radius:14px;display:grid;place-items:center;flex-shrink:0}.vehicle-icon svg{width:28px;height:28px}.device-picker select{min-width:0;flex:1;background:transparent;border:0;color:var(--ink);font-weight:700;padding:8px 17px 8px 0;font-size:16px}.pill{padding:5px 9px;border-radius:8px;font-size:12px;font-weight:650;white-space:nowrap}.pill.online{color:var(--green);background:var(--green-bg)}.pill.neutral{background:var(--soft);color:var(--muted)}.tabs{display:flex;gap:3px;padding:5px;background:var(--soft);border-radius:15px;margin-bottom:21px}.tabs button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;padding:10px 3px;border-radius:11px;color:var(--muted);font-size:13px;font-weight:650;white-space:nowrap;background:transparent}.tabs button svg{width:16px;height:16px}.tabs .active{background:var(--paper);color:var(--ink);box-shadow:0 2px 6px #122d4310}.notice{display:flex;gap:11px;padding:13px 12px;background:var(--warning-bg);border-radius:14px;color:var(--warning);margin-bottom:20px}.notice-symbol{height:23px;width:23px;flex-shrink:0;border:1.8px solid currentColor;border-radius:50%;text-align:center;font-weight:750;line-height:20px;margin-top:2px}.notice strong{display:block;font-size:14px}.notice p{font-size:12px;line-height:1.55;margin-top:3px}.notice.good{background:var(--green-bg);color:var(--green)}.notice.good .notice-symbol{border:0;font-size:20px}.speed-card{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.metric-label{font-size:11px;font-weight:750;letter-spacing:1.5px;color:var(--muted)}.speed-number{display:flex;align-items:baseline;gap:7px;line-height:1.1}.speed-number>span:first-child{font-size:65px;font-weight:800;letter-spacing:-4px}.speed-number>span:last-child{color:var(--muted);font-size:14px}.movement{background:var(--soft);color:var(--muted);font-size:12px;border-radius:20px;padding:7px 11px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{background:var(--soft);border-radius:17px;position:relative;display:flex;gap:9px;align-items:flex-start;padding:15px 12px;min-height:88px}.metric>svg{width:20px;height:20px;color:var(--muted);margin-top:4px}.metric strong{display:block;font-size:21px;font-weight:750;line-height:1.3;letter-spacing:-.5px}.metric span{font-size:11px;color:var(--muted)}.battery-track{position:absolute;width:34px;height:3px;left:42px;bottom:12px;border-radius:5px;background:#cddfe7;overflow:hidden}.battery-track i{display:block;height:100%;background:#2aa786;max-width:100%}.location-line{display:flex;gap:10px;padding:22px 0;align-items:flex-start}.location-line svg{width:19px;height:19px;color:var(--blue);margin-top:4px}.location-line span{font-size:12px;color:var(--muted)}.location-line strong{font-size:14px;display:block;letter-spacing:.1px}.location-line small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;min-height:48px;padding:12px 16px;font-size:14px;font-weight:750;transition:background .15s,transform .15s}.primary{background:var(--accent);color:#123548}.primary:hover{background:#4ed6f9}.primary:active,.secondary:active{transform:scale(.98)}.wide{width:100%}.secondary{border:1px solid var(--line);background:var(--paper);font-weight:650}.secondary:hover{background:var(--soft)}.secondary svg,.primary svg{width:18px;height:18px}.paired-actions{display:flex;gap:10px;margin-top:10px}.paired-actions>*{flex:1;font-size:13px}.panel-footer{margin-top:auto;padding-top:24px;display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:.4px}.panel-footer>span:first-child{font-weight:750;letter-spacing:1px}.map-tools{position:fixed;z-index:3;right:28px;bottom:64px;display:flex;flex-direction:column;gap:9px}.map-tools .zoom{font-size:28px;font-weight:400}.map-badge{position:fixed;z-index:2;top:108px;left:calc(50% + 180px);transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:var(--paper);box-shadow:0 4px 20px #1231;padding:10px 17px;border-radius:25px;font-size:13px;font-weight:600;max-width:40vw;white-space:nowrap}.badge-dot{width:8px;height:8px;background:#d6a02f;border-radius:50%}.map-badge.fresh .badge-dot{background:#27a47a}.maplibregl-ctrl-bottom-left{left:410px!important;bottom:15px!important}.maplibregl-ctrl-bottom-right{bottom:12px!important;right:14px!important}.vehicle-marker{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;position:relative;background:var(--accent);color:#123548;box-shadow:0 0 0 9px #24c9f426,0 6px 18px #172b4450;border:4px solid white}.vehicle-marker svg{width:34px;height:34px;stroke-width:1.9}.vehicle-marker.stale{background:#fff0cc;color:#876015;box-shadow:0 0 0 9px #d9a43520,0 6px 18px #172b4430}.vehicle-label{position:absolute;top:70px;background:var(--paper);border-radius:8px;padding:4px 10px;white-space:nowrap;color:var(--ink);font-size:11px;box-shadow:0 3px 10px #1232;font-weight:650}.route-marker{width:28px;height:28px;display:grid;place-items:center;background:#087dba;border:3px solid white;border-radius:50%;color:white;font-size:11px;font-weight:750;box-shadow:0 2px 8px #1234}
.section-intro{margin:2px 0 20px}.section-intro h2{font-size:22px;letter-spacing:-.7px}.section-intro p{font-size:13px;color:var(--muted);margin-top:7px}label{font-size:13px;font-weight:650;display:block;margin-bottom:7px}input{background:var(--paper);border:1px solid var(--line);border-radius:12px;min-height:46px;padding:10px 12px;min-width:0;color:var(--ink);outline:0}input:focus{border-color:#149ac7;box-shadow:0 0 0 3px #24c9f425}.date-row{display:flex;gap:8px}.date-row input{width:100%;font-size:14px}.date-row button{white-space:nowrap}.helper{font-size:13px;color:var(--muted);margin:17px 0}.route-stats{background:var(--soft);border-radius:18px;margin:18px 0;padding:15px}.route-stats>div{display:flex;align-items:baseline;justify-content:space-between;padding:8px 0}.route-stats strong{font-size:21px}.route-stats span{font-size:12px;color:var(--muted)}#view-history .wide{margin-top:10px}.fine-print{font-size:11px;line-height:1.7;color:var(--muted);margin-top:19px}.details{margin:0 0 23px}.details>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);gap:15px}.details dt{color:var(--muted);font-size:13px}.details dd{margin:0;font-size:13px;font-weight:650;text-align:right;overflow-wrap:anywhere}.soft-note{background:var(--soft);display:flex;gap:12px;border-radius:15px;padding:14px;margin-bottom:18px}.soft-note svg{color:var(--blue);width:20px;height:20px}.soft-note p{font-size:12px;color:var(--muted);line-height:1.7}.text-button{display:flex;align-items:center;gap:8px;justify-content:center;width:100%;background:transparent;font-size:13px;margin-top:17px;padding:10px;color:var(--muted)}.text-button svg{width:17px;height:17px}
.login-screen{position:fixed;inset:0;z-index:6;display:grid;place-items:center;background:#edf5f2aa;backdrop-filter:blur(5px);padding:85px 20px 20px;overflow:auto}.login-card{background:var(--paper);padding:35px 40px 24px;border-radius:30px;width:430px;max-width:100%;box-shadow:0 25px 80px #143b4a25}.login-emblem{display:grid;place-items:center;width:60px;height:60px;background:#d9f8ff;border-radius:20px;margin-bottom:22px;color:#087dba}.login-emblem svg{width:38px;height:38px}.login-card h1{font-size:40px;letter-spacing:-1.7px;line-height:1.12;margin:12px 0 15px}.login-copy{color:var(--muted);font-size:14px;margin-bottom:25px;max-width:260px}.login-card input{width:100%;margin-bottom:17px}.password-wrap{position:relative}.password-wrap input{padding-right:55px}.password-wrap button{position:absolute;right:10px;top:10px;background:transparent;color:var(--blue);font-size:12px;padding:3px 5px}.form-error{font-size:13px;color:#bc4c41;min-height:20px;margin-bottom:10px}.login-footer{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-top:22px}.login-footer svg{width:14px;height:14px}.boot{position:fixed;inset:0;z-index:8;background:var(--paper);display:flex;gap:15px;align-items:center;justify-content:center;color:var(--muted);flex-direction:column}.loader{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#173244;color:white;border-radius:16px;box-shadow:0 5px 25px #1233;z-index:20;max-width:min(90vw,480px);font-size:14px;text-align:center}#map-fallback{position:fixed;inset:40% 25% auto 45%;z-index:2;color:var(--muted);background:var(--paper);padding:20px;border-radius:16px;font-size:14px}
body.dark{color-scheme:dark;--ink:#edf4fa;--muted:#9cadbb;--paper:#172b3b;--soft:#203747;--line:#2a4354;--blue:#63d4ff;--warning:#f4cc78;--warning-bg:#3d3628;--green:#8be0bc;--green-bg:#213f39;--shadow:0 15px 50px #0004}.dark .vehicle-icon,.dark .login-emblem{background:#1d465b;color:#6bdaf6}.dark .login-screen{background:#102533aa}.dark .vehicle-marker{color:#153243}.dark .brand-icon{color:#143548}.dark .vehicle-marker.stale{color:#876015}.dark #map{background:#172b3b}.dark .panel{border-color:#2b4453}
@media(min-width:1500px){.panel{left:42px;top:112px;bottom:40px;width:380px;padding:31px 29px 21px}.topbar{padding:0 48px}.maplibregl-ctrl-bottom-left{left:444px!important}}
@media(max-height:820px) and (min-width:701px){.panel{top:90px;bottom:18px;padding:20px 22px 13px}.panel-heading{margin-bottom:13px}.panel h1{font-size:32px}.device-picker{margin-bottom:15px}.tabs{margin-bottom:15px}.notice{margin-bottom:14px;padding:10px 12px}.speed-card{margin-bottom:15px}.speed-number>span:first-child{font-size:52px}.metric{min-height:78px;padding:12px}.location-line{padding:16px 0}.panel-footer{padding-top:18px}.primary,.secondary{min-height:43px;padding:10px 13px}}
@media(max-width:900px){.top-caption{display:none}.topbar{padding:0 24px}.panel{left:20px;width:335px;padding-left:22px;padding-right:22px}.map-badge{left:calc(50% + 155px);font-size:12px}.maplibregl-ctrl-bottom-left{left:375px!important}}
@media(max-width:700px){.topbar{height:76px;padding:0 19px}.brand{font-size:30px;gap:8px}.brand-icon{width:35px;height:38px;border-radius:12px 12px 12px 4px}.brand-icon svg{width:24px;height:24px}.top-actions{gap:8px}.connection{font-size:11px;padding:8px 10px}.icon-button{width:40px;height:40px;border-radius:14px}.panel{left:0;right:0;top:auto;bottom:0;width:100%;max-height:57dvh;border-radius:27px 27px 0 0;padding:9px 23px calc(17px + env(safe-area-inset-bottom));border:0;box-shadow:0 -8px 35px #1232;display:block}.panel-grip{display:block;width:35px;height:4px;border-radius:10px;background:var(--line);margin:0 auto 14px}.panel-heading{display:none}.device-picker{margin-bottom:14px}.vehicle-icon{width:37px;height:37px;border-radius:12px}.vehicle-icon svg{width:25px;height:25px}.tabs{margin-bottom:15px;padding:4px;border-radius:13px}.tabs button{padding:9px 5px}.notice{padding:10px 12px;margin-bottom:14px}.notice p{font-size:12px}.speed-card{margin-bottom:14px}.speed-number>span:first-child{font-size:46px;letter-spacing:-2px}.speed-number>span:last-child{font-size:12px}.metric-label{font-size:10px}.metric-grid{gap:10px}.metric{min-height:72px;padding:11px 12px}.metric strong{font-size:19px}.battery-track{bottom:8px}.location-line{padding:14px 0}.location-line small{font-size:11px}.primary,.secondary{min-height:45px;padding:10px 13px}.panel-footer{padding-top:19px;font-size:9px}.map-tools{bottom:calc(57dvh + 27px);right:17px;gap:7px}.map-tools .icon-button{width:38px;height:38px;border-radius:13px}.map-badge{top:85px;left:50%;font-size:11px;max-width:90vw;padding:8px 13px}.maplibregl-ctrl-bottom-left{left:10px!important;bottom:calc(57dvh + 3px)!important}.maplibregl-ctrl-bottom-right{bottom:calc(57dvh + 4px)!important;right:8px!important}.maplibregl-ctrl-attrib{font-size:9px!important}.login-screen{padding:90px 19px 20px;align-items:center}.login-card{padding:28px;border-radius:25px;max-width:380px}.login-card h1{font-size:37px}.login-emblem{width:50px;height:50px;border-radius:17px;margin-bottom:20px}.login-emblem svg{width:33px;height:33px}.login-card input{font-size:16px}.toast{bottom:24px;font-size:13px;width:max-content}#map-fallback{inset:18% 18px auto 18px}.section-intro h2{font-size:20px}.vehicle-marker{width:52px;height:52px}.vehicle-marker svg{width:29px;height:29px}.vehicle-label{top:60px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.pill,.tabs button,.notice p,.movement,.metric span,.location-line span,.location-line small,.paired-actions>*,.connection,.helper,label,.details dt,.details dd,.text-button,.map-badge{font-size:14px}.topbar{z-index:7}.boot{z-index:8}
