:root{font:16px "Avenir Next",Avenir,"Segoe UI",sans-serif;color:#172b46;background:#f3f6fa;font-synthesis:none;--blue:#215be2;--muted:#607189;--line:#e1e7ef;--nav-height:76px}*{box-sizing:border-box}body{margin:0}body:has(#portal:not([hidden])){padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}[hidden]{display:none!important}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{min-height:46px;cursor:pointer;font-weight:600;font-size:.9rem;border:0;border-radius:10px}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82a6ff;outline-offset:3px}.top{height:76px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:1.05rem;font-weight:700;white-space:nowrap}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:var(--blue);color:white;border-radius:11px;font-size:2rem;font-weight:400}.top-caption{font-size:.8rem;color:var(--muted)}.quiet{background:transparent;color:var(--blue);padding:10px 5px}.primary,.secondary{padding:13px 18px}.primary{background:var(--blue);color:white}.secondary{background:white;border:1px solid #cbd7e7}.link-button{display:flex;min-height:46px;align-items:center;justify-content:center;border-radius:10px;font-size:.9rem;font-weight:600}.muted{color:var(--muted);font-size:.9rem;line-height:1.7}.intro{font-size:1rem;color:var(--muted);line-height:1.8}.help,.field-help{font-size:.85rem;color:var(--muted);line-height:1.65}.help{margin:26px 0}.field-help{margin:8px 0 20px}h1{font-size:2.4rem;line-height:1.15;letter-spacing:-1.2px;font-weight:650;margin:20px 0 16px;overflow-wrap:anywhere}h2{font-size:1.1rem;letter-spacing:-.25px;margin:0}p{overflow-wrap:anywhere}label{font-size:.9rem;font-weight:550;display:block}input,select{width:100%;min-height:54px;border-radius:10px;border:1px solid #cbd7e7;background:white;padding:12px 14px;margin-top:8px;min-width:0}input::placeholder{color:#8795a9}form{margin-top:28px}form label:not(:first-child){margin-top:22px}form .primary{width:100%;margin-top:20px}form label input{margin-top:8px}.access-view{max-width:430px;padding:24px;margin:0 auto}.login-route{width:230px;margin:12px 0 28px}.login-route svg{display:block;width:100%}.password-field{position:relative}.password-field input{padding-right:90px}.password-field button{position:absolute;right:12px;top:4px;font-size:.8rem}.large-symbol{display:block;font-size:3rem;color:var(--blue);margin:18px 0}.error{font-size:.9rem;line-height:1.7;color:#ac363d}.error:empty{display:none}.global-error{max-width:650px;padding:0 24px;margin:24px auto}.notice{background:#eaf0fb;border-radius:9px;padding:13px 15px;color:#486083;font-size:.875rem;line-height:1.7}.connection{margin:0;background:#fff0cd;color:#644b10;padding:12px 22px;font-size:.875rem;line-height:1.6}.vehicle-toolbar{padding:18px 22px;display:flex;align-items:center;gap:18px;justify-content:space-between;background:white}.vehicle-toolbar>div{min-width:0;flex:1}.vehicle-toolbar label{font-size:.8rem;color:var(--muted)}.vehicle-toolbar select{border:0;border-radius:0;padding:0 28px 0 0;min-height:34px;font-size:1.15rem;font-weight:650;letter-spacing:-.3px;margin:0;max-width:100%;text-overflow:ellipsis}.plate{font-size:.85rem;padding:6px 10px;border:1px solid var(--line);border-radius:5px;white-space:nowrap;max-width:40%;overflow:hidden;text-overflow:ellipsis}.map-wrap{position:relative;isolation:isolate;height:43svh;min-height:260px;max-height:560px}.map{height:100%;width:100%;background:#e6edf1;z-index:0}.map-cover{position:absolute;inset:0;background:#edf1f5;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px}.map-cover .large-symbol{color:#7a8da6}.map-cover p{font-size:.9rem;color:var(--muted);max-width:300px;line-height:1.7}.map-button{position:absolute;right:16px;bottom:32px;z-index:500;width:46px;background:white;box-shadow:0 2px 10px #172b4626;font-size:1.8rem;color:var(--blue)}.tile-error{position:absolute;top:8px;left:12px;right:12px;z-index:500;background:white;padding:10px;border-radius:8px;font-size:.8rem;color:#8b4f1e}.position-sheet{background:white;padding:25px 22px 24px;border-top:1px solid var(--line)}.sheet-title{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.sheet-title h1{font-size:1.4rem;letter-spacing:-.5px;margin:0}.sheet-title p{margin:6px 0 0}.badge{display:inline-block;padding:6px 9px;border-radius:6px;font-size:.8rem;background:#edf1f6;color:#4b607b;white-space:nowrap}.success{color:#077257;background:#e7f5ef}.position-stats{display:grid;grid-template-columns:1fr 1.3fr;gap:18px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.position-stats span{display:block;font-size:.8rem;color:var(--muted);margin-bottom:9px}.position-stats strong{font-size:1rem;line-height:1.5}.coordinates{font-size:.85rem;color:var(--muted);margin:20px 0}.position-sheet .primary,.position-sheet .link-button{width:100%;margin-top:10px}.position-sheet>.field-help{margin-bottom:0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:900;display:flex;justify-content:center;border-top:1px solid var(--line);background:white;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.bottom-nav button{background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:5px;flex:1;max-width:180px;border-radius:8px;font-size:.8rem;min-height:58px;padding:6px}.bottom-nav button.active{color:var(--blue);background:#edf3ff}.bottom-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.section-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:25px}.section-heading h1{font-size:1.9rem;letter-spacing:-.7px;margin:0 0 8px}.section-heading p{margin:0}.history-view,.account-view{padding:30px 22px;max-width:900px;margin:auto}.day-picker{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;margin-bottom:20px}.day{border:1px solid #cbd7e7;background:white;padding:10px 14px}.day.active{background:#172b46;color:white;border-color:#172b46}.date-label{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted);flex:1;min-width:190px}.date-label input{margin:0;font-size:.875rem;min-height:46px;flex:1}.history-map-wrap{position:relative;height:34svh;min-height:240px;border-radius:12px;overflow:hidden;isolation:isolate}.history-map-empty{position:absolute;inset:0;background:#edf1f5;display:grid;place-items:center;margin:0;text-align:center;padding:30px;font-size:.9rem;color:var(--muted)}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px}.history-list{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.history-item{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;gap:16px;justify-content:space-between;align-items:center}.history-item:last-child{border-bottom:0}.history-item p{margin:4px 0 0;font-size:.8rem;color:var(--muted)}.history-item strong{font-size:.9rem}.history-item button{white-space:nowrap;font-size:.85rem}.history-pagination{display:flex;justify-content:space-between;gap:16px;margin-top:18px}.empty{padding:22px;line-height:1.7;font-size:.9rem;color:var(--muted)}.account-view{max-width:630px}.account-avatar{background:#e1eaff;width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:1.1rem;color:var(--blue);font-weight:650}.account-identity{padding:10px 0 24px}.account-identity h2{font-size:1.25rem}.account-identity p{margin:8px 0 0}.subscription{padding:24px;background:#172b46;border-radius:15px;color:white}.subscription-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.subscription>p{font-size:.875rem;color:#c3d0e1}.subscription>.muted{display:block;margin-top:24px;color:#c3d0e1}.subscription>strong{display:block;font-size:1.4rem;margin-top:8px;font-weight:600}.subscription .field-help{margin-bottom:0}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 0;border-bottom:1px solid #d9e1eb}.settings-row strong{font-size:.95rem}.settings-row p{margin:6px 0 0;font-size:.85rem}.settings-row .secondary{flex-shrink:0}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:1100;border-radius:10px;box-shadow:0 3px 20px #172b4620;background:#172b46;color:white;padding:14px 20px;width:max-content;max-width:calc(100% - 40px);font-size:.9rem}.vehicle-marker{display:grid;place-items:center;width:36px;height:36px;border:4px solid white;border-radius:50%;background:var(--blue);box-shadow:0 2px 12px #172b464d}.vehicle-marker svg{width:20px;height:20px;stroke:white;fill:none;stroke-width:1.8}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:11px!important;line-height:1.7!important}.leaflet-control-attribution a{color:#1743ac}.leaflet-popup-content{font-size:.9rem;line-height:1.6}.leaflet-control-zoom a{color:#172b46}@media(min-width:850px){body:has(#portal:not([hidden])){padding-bottom:0}.top{padding:0 40px;height:82px}.top-caption{margin-left:auto;margin-right:35px}.access-view{padding-top:45px;max-width:440px}.login-route{margin-top:0;margin-bottom:32px}.vehicle-toolbar{padding:22px 40px}.vehicle-toolbar>div{max-width:480px}.tracking-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:calc(100svh - 244px);border-bottom:1px solid var(--line)}.map-wrap{height:100%;max-height:none;min-height:520px}.position-sheet{border-top:0;border-left:1px solid var(--line);padding:30px 25px}.position-stats{grid-template-columns:1fr}.bottom-nav{position:relative;border-top:0;border-bottom:1px solid var(--line);padding:8px 35px;justify-content:flex-start;gap:8px}.bottom-nav button{flex-direction:row;justify-content:center;min-height:46px;gap:10px;font-size:.9rem;max-width:160px}#portal{display:flex;flex-direction:column}.bottom-nav{order:-2}.vehicle-toolbar{order:-1}.history-view{width:100%;padding:35px 30px}.account-view{width:100%;padding:40px 25px}.history-map-wrap{height:360px}.toast{bottom:30px}}@media(max-width:360px){.top{padding:0 16px}.top-caption{display:none}.vehicle-toolbar,.position-sheet,.history-view,.account-view{padding-left:16px;padding-right:16px}.sheet-title{flex-wrap:wrap}h1{font-size:2.1rem}.position-stats{gap:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

form label.remember-control{display:flex;align-items:center;gap:12px;min-height:44px;margin:18px 0 4px;font-size:.9rem;font-weight:500;cursor:pointer}.remember-control input{width:20px;height:20px;min-height:20px;margin:0;padding:0;flex-shrink:0;accent-color:var(--blue)}

/* A compact login: visible labels, one action, no promotional illustration. */
body:has(#login-view:not([hidden])){background:#fff;min-height:100svh}
body:has(#login-view:not([hidden])) .top{height:64px;border-bottom:0}
body:has(#login-view:not([hidden])) .top-caption{display:none}
body:has(#login-view:not([hidden])) .brand-mark{width:32px;height:32px;border-radius:10px;font-size:1.85rem}
.login-panel{max-width:424px;padding:24px 24px 20px}
.login-panel h1{font-size:2rem;line-height:1.2;letter-spacing:-.7px;margin:0 0 24px}
.login-panel form{margin:0}
.login-panel form label{margin:0}
.login-field-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.login-field-heading span{color:var(--muted);font-size:.875rem;line-height:1.5}
.login-panel input{min-height:52px;height:52px}
.login-panel #phone{margin:8px 0 20px;font-variant-numeric:tabular-nums}
.login-panel .password-field{margin-top:8px}
.login-panel .password-field input{margin-top:0}
.login-panel .password-field .quiet{top:3px;min-width:70px;min-height:46px}
.login-panel form label.remember-control{margin:8px 0 0;min-height:44px}
.login-panel .remember-control input{width:20px;min-height:20px;height:20px}
.login-panel form .primary{margin-top:8px;min-height:52px}
.login-panel .forgot-pin{display:block;min-height:44px;margin:8px auto 0;padding:10px 18px;font-weight:500}
.login-help{color:#172b46;border:0;border-radius:16px;padding:24px;width:min(400px,calc(100% - 32px));box-shadow:0 12px 60px #172b4630}
.login-help::backdrop{background:#172b4666}
.login-help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.login-help h2{font-size:1.25rem}
.login-help p{font-size:1rem;line-height:1.7;color:var(--muted);margin:14px 0 24px}
.login-help .link-button,.login-help>.secondary{width:100%;min-height:48px;margin-top:10px}
@media(min-width:850px){.login-panel{padding-top:56px}}
@media(max-height:650px) and (max-width:849px){
 body:has(#login-view:not([hidden])) .top{height:56px}
 .login-panel{padding-top:16px;padding-bottom:16px}
 .login-panel h1{font-size:1.75rem;margin-bottom:18px}
 .login-panel input{height:48px;min-height:48px}
 .login-panel #phone{margin-bottom:16px}
 .login-panel .password-field .quiet{top:1px}
 .login-panel form label.remember-control{margin-top:4px}
 .login-panel .remember-control input{height:20px;min-height:20px}
 .login-panel form .primary{min-height:48px}
 .login-panel .forgot-pin{margin-top:4px}
}

.login-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.login-panel .login-heading h1{margin:0}
.login-gps-art{display:block;width:128px;height:68px;flex-shrink:0}
@media(max-height:650px) and (max-width:849px){.login-panel{padding-top:12px;padding-bottom:12px}.login-heading{margin-bottom:16px}.login-gps-art{width:108px;height:56px}}

/* Tracking gives the viewport to the map; normal operation needs no explanatory banner. */
.tracking-page .top{height:56px;padding:0 18px}
.tracking-page .top-caption,.tracking-page #logout{display:none}
.tracking-page .bottom-nav{height:calc(76px + env(safe-area-inset-bottom))}
.tracking-page .tracking-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,1fr) auto;height:calc(100dvh - 56px - 76px - env(safe-area-inset-bottom));min-height:0;border:0}
.tracking-page .map-wrap{height:auto;min-height:0;max-height:none}
.tracking-page .map-cover{padding:24px}
.tracking-page .map-button{display:grid;place-items:center;width:46px;height:46px;min-height:46px;right:14px;bottom:28px;padding:11px;border-radius:12px;color:#215be2}
.tracking-page .map-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tracking-page .refresh-map{top:14px;bottom:auto}
.tracking-page .position-sheet{padding:13px 18px 5px;border:0;border-top:1px solid #e1e7ef;background:white;min-width:0}
.sheet-vehicle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.sheet-vehicle-name{min-width:0;flex:1}
.sheet-vehicle-name h1{font-size:1.05rem;font-weight:650;line-height:1.4;letter-spacing:-.25px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-vehicle-row .plate{margin:0;font-size:.8rem;max-width:40%;padding:4px 7px}
.sheet-vehicle-name select{font-size:1.05rem;font-weight:650;letter-spacing:-.25px;min-height:40px;margin:0;padding:5px 26px 5px 0;border:0;background:white;overflow:hidden;text-overflow:ellipsis}
.position-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px}
.position-age{background:transparent;border:0;text-align:left;padding:0;min-height:48px;min-width:0;color:#172b46}
.position-age>span{display:block;font-weight:400;font-size:.8rem;color:#607189;margin-bottom:3px}
.position-age strong{font-size:1.2rem;line-height:1.4;letter-spacing:-.3px;font-weight:650;display:block}
.position-age.is-old strong{color:#8a5412}
.position-age:disabled{opacity:1}
.position-speed{flex-shrink:0;text-align:right}
.position-speed strong{font-size:1.2rem;line-height:1.4;letter-spacing:-.3px;font-weight:650;display:block}
.position-speed span{display:block;font-size:.75rem;color:#607189;margin-top:3px}

.position-sheet>.error{margin:10px 0 0;font-size:.85rem}
#position-details{margin-top:2px}

.position-details-content{border-top:1px solid #e1e7ef;padding:12px 0;font-size:.875rem;line-height:1.6}
.position-details-content>span{display:block;color:#607189;font-size:.8rem}
.position-details-content time{display:block;margin-top:4px;font-weight:600}
.position-details-content .coordinates{margin:8px 0 0}
.position-details-content .map-link{padding:5px 0;min-height:44px}
.tracking-page .tile-error{top:64px;right:14px;left:14px;max-width:380px;box-shadow:0 2px 12px #172b461a}
.tracking-page .tracking-layout:has(#position-details:not([hidden])){height:auto;grid-template-rows:minmax(240px,48svh) auto}

@media(min-width:850px){
 .tracking-page .top{height:64px;padding:0 32px}
 .tracking-page .bottom-nav{height:64px;padding:8px 24px}
 .tracking-page .tracking-layout,.tracking-page .tracking-layout:has(#position-details:not([hidden])){position:relative;display:block;height:calc(100dvh - 128px);min-height:420px}
 .tracking-page .map-wrap{height:100%;min-height:0}
 .tracking-page .position-sheet{position:absolute;z-index:600;left:24px;bottom:24px;width:380px;max-height:calc(100% - 48px);overflow:auto;box-shadow:0 4px 24px #172b4626;border:1px solid #e1e7ef;border-radius:15px;padding:16px 20px 7px}
 .tracking-page .map-button{right:24px}
 .tracking-page .refresh-map{top:20px}
}
@media(max-width:360px){.tracking-page .position-sheet{padding-left:14px;padding-right:14px}.position-overview{gap:10px}.position-age strong,.position-speed strong{font-size:1.1rem}}
@media(prefers-reduced-motion:no-preference){.is-refreshing svg{animation:map-refresh 1.1s linear infinite}@keyframes map-refresh{to{transform:rotate(360deg)}}}

/* Client wording and disclosure stay focused on the recorded position. */
.position-overview{padding-bottom:9px}
#position-details.position-details-content{margin-top:8px}
.position-age>span{font-size:.8rem}
.position-age strong::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:10px;vertical-align:.2em;opacity:.65}
.position-age[aria-expanded=true] strong::after{transform:rotate(225deg);vertical-align:0}

.position-address{font-size:.875rem;line-height:1.5;color:#4b607b;margin:0 0 9px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* History: choose a day, see the route, open individual positions only on request. */
.history-page .top{height:56px;padding:0 18px}
.history-page .top-caption,.history-page #logout{display:none}
.history-view{padding:18px 16px 24px;max-width:1100px;width:100%}
.history-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}
.history-header h1{font-size:1.65rem;line-height:1.25;letter-spacing:-.6px;margin:0}
.history-icon-button{display:grid;place-items:center;width:44px;min-height:44px;padding:10px}
.history-icon-button svg,.history-calendar svg,.history-map-wrap .map-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.history-view .vehicle-toolbar{background:transparent;padding:0;margin:0 0 16px;gap:10px}
.history-view .vehicle-toolbar label{display:none}
.history-view .vehicle-toolbar select{font-size:1rem;min-height:38px;font-weight:550;background:transparent}
.history-view .vehicle-toolbar select:disabled{appearance:none;opacity:1;padding-right:0;color:#172b46}
.history-view .vehicle-toolbar .plate{background:white;font-size:.8rem;padding:5px 8px}
.history-view .day-picker{display:grid;grid-template-columns:1fr .65fr 1.2fr;gap:8px;margin:0 0 16px}
.history-view .day{min-width:0;padding:10px 6px;font-size:.875rem;min-height:46px}
.history-view .day.active{background:#215be2;border-color:#215be2;color:white}
.history-calendar{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;background:white;border:1px solid #cbd7e7;border-radius:10px;font-size:.875rem;font-weight:550;margin:0;overflow:hidden;cursor:pointer}
.history-calendar input{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;cursor:pointer}
.history-calendar:focus-within{outline:3px solid #82a6ff;outline-offset:3px}
.history-view .history-map-wrap{height:clamp(280px,calc(100svh - 350px),620px);min-height:280px;border:1px solid #e1e7ef;border-radius:12px;position:relative}
.history-map-wrap .map-button{display:grid;place-items:center;right:12px;bottom:28px;width:44px;height:44px;min-height:44px;padding:10px;border-radius:11px;color:#215be2;z-index:500}
.history-loading{font-size:.85rem;line-height:1.6;color:#607189;margin:12px 0 0}
.history-view>.error{margin:12px 0 0;font-size:.9rem}
.history-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 0 12px;border-bottom:1px solid #e1e7ef}
.history-endpoint{display:block;text-align:left;border:0;background:transparent;padding:0;min-height:48px;min-width:0}
.history-endpoint>span,.history-speed>span{display:block;font-size:.78rem;color:#607189;font-weight:400;margin-bottom:4px;white-space:nowrap}
.history-endpoint strong,.history-speed strong{font-size:1.15rem;line-height:1.35;letter-spacing:-.3px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.history-speed{text-align:right;flex-shrink:0;min-height:48px}
.history-positions{margin-top:10px}
.history-positions summary{font-size:.9rem;line-height:1.5;min-height:46px;width:max-content;max-width:100%;padding:13px 0;color:#215be2;cursor:pointer}
.history-positions .history-list{margin-top:8px;border-radius:10px;background:white}
.history-position-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;border-radius:0;border-bottom:1px solid #e1e7ef;width:100%;min-height:52px;padding:10px 14px;font-weight:500;text-align:left}
.history-position-row:last-child{border-bottom:0}
.history-position-main{min-width:0;flex:1}
.history-position-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.history-position-row time{font-size:.875rem;color:#172b46;font-variant-numeric:tabular-nums}
.history-position-speed{font-size:.8rem;font-weight:600;color:#4b607b;white-space:nowrap}
.history-position-address{display:block;font-size:.8rem;font-weight:400;line-height:1.4;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.history-position-address:empty{display:none}
.history-position-action{font-size:.82rem;color:#215be2;flex-shrink:0}
.history-positions>.quiet{display:block;margin:10px auto 0;min-height:44px}
.history-continue{margin:16px 0 0;min-height:46px;width:100%}
.history-positions summary:focus-visible{outline:3px solid #82a6ff;outline-offset:1px;border-radius:5px}
@media(min-width:850px){
 .history-page .top{height:64px;padding:0 32px}
 .history-view{padding:26px 32px 35px}
 .history-header h1{font-size:1.85rem}
 .history-view .day-picker{max-width:430px}
 .history-view .vehicle-toolbar>div{max-width:540px}
 .history-view .history-map-wrap{height:clamp(360px,calc(100svh - 410px),660px)}
 .history-summary{max-width:500px}
}
@media(max-width:360px){.history-view{padding-left:14px;padding-right:14px}.history-view .day-picker{gap:6px}.history-calendar{gap:5px}.history-calendar svg{width:19px}.history-calendar span{font-size:.8rem}}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.history-page .bottom-nav{height:calc(76px + env(safe-area-inset-bottom))}
.history-view{display:flex;flex-direction:column;height:calc(100dvh - 56px - 76px - env(safe-area-inset-bottom));padding:12px 16px 8px}
.history-header{flex-shrink:0;min-height:44px;margin:0 0 8px;gap:10px}
.history-header .vehicle-toolbar{flex:1;min-width:0;margin:0}
.history-view .day-picker{flex-shrink:0;margin-bottom:8px}
.history-view .history-map-wrap{flex:1;height:auto;min-height:120px}
.history-playback{display:flex;align-items:center;gap:10px;padding:8px 0 4px;border-bottom:1px solid #e1e7ef}
.history-play{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;flex-shrink:0;color:var(--blue)}
.history-play svg{width:18px;height:18px;fill:currentColor}
.history-scrubber{flex:1;min-width:0}
.history-scrubber input[type=range]{width:100%;min-height:28px;height:28px;margin:0;padding:0;border:0;background:transparent;accent-color:var(--blue);cursor:pointer}
.history-scale{display:flex;justify-content:space-between;font-size:.7rem;line-height:1;color:var(--muted);margin-top:-2px}
.history-slider-time{font-size:.95rem;font-weight:650;font-variant-numeric:tabular-nums;min-width:58px;text-align:right;flex-shrink:0}
.playback-marker{display:grid;place-items:center;width:24px;height:24px;border:3px solid white;border-radius:50%;background:#172b46;box-shadow:0 2px 10px #172b4660}
.playback-marker span{width:8px;height:8px;border-radius:50%;background:#66a3ff}
.history-summary{flex-shrink:0;padding:8px 0 4px}
.history-positions{flex-shrink:0;margin-top:0}
.history-positions summary{min-height:44px;padding:8px 0;line-height:24px}
.history-loading{flex-shrink:0;margin-top:8px}
.history-view:has(#history-positions[open]){height:auto;min-height:calc(100dvh - 132px)}
.history-view:has(#history-positions[open]) .history-map-wrap{flex:none;height:42svh;min-height:220px}
.history-view>.error{flex-shrink:0}
.history-results{flex-shrink:0;min-height:112px}
.history-results>.error{margin:8px 0 0;font-size:.85rem}
.history-map-wrap .history-loading{position:absolute;top:12px;right:12px;z-index:500;margin:0;padding:7px 11px;border-radius:8px;background:#fffffff0;box-shadow:0 1px 5px #172b461a;font-size:.8rem;pointer-events:none}
.history-continue{flex-shrink:0;min-height:44px;margin-top:8px}
.account-page .top{height:56px;padding:0 18px}
.account-page .top-caption{display:none}
.account-page .bottom-nav{height:calc(76px + env(safe-area-inset-bottom))}
.account-view{display:flex;flex-direction:column;min-height:calc(100dvh - 132px - env(safe-area-inset-bottom));padding:20px 20px 12px;max-width:520px;width:100%}
.account-view>h1{font-size:1.6rem;line-height:1.2;letter-spacing:-.5px;margin:0 0 12px}
.account-view .account-identity{padding:0;margin:0 0 12px}
.account-view .account-identity h2{font-size:1.05rem;line-height:1.4}
.account-view .account-identity p{font-size:.9rem;line-height:1.5;margin:4px 0 0}
.account-view .subscription{padding:13px 15px;border-radius:12px;margin-bottom:6px}
.account-view .subscription-heading h2{font-size:.9rem;font-weight:550}
.account-view .subscription>strong{font-size:1.05rem;line-height:1.5;margin-top:7px}
.account-view .settings-row{flex-shrink:0;min-height:clamp(56px,10dvh,88px);padding:10px 0;gap:14px}
.account-view .settings-row>strong,.account-view .settings-row strong{font-size:.9rem;font-weight:550;line-height:1.4}
.account-view .settings-row p{font-size:.8rem;margin:2px 0 0;line-height:1.5}
.account-view .settings-row .secondary{padding:8px 14px;min-height:44px;font-size:.85rem}
.account-view .settings-row:has(#install[hidden]){display:none}
.account-footer{margin-top:auto;padding-top:16px}
.account-support{display:block;width:100%;min-height:46px;margin-top:0}
.account-logout{display:block;width:100%;min-height:44px;margin-top:4px;color:#607189;font-weight:500}
@media(min-width:850px){
 .history-page .top,.account-page .top{height:64px;padding:0 32px}
 .history-page .bottom-nav,.account-page .bottom-nav{height:64px;padding:8px 24px}
 .history-view{height:calc(100dvh - 128px);padding:22px 32px 14px}
 .history-header .vehicle-toolbar>div{max-width:600px}
 .history-view .history-map-wrap{height:auto;min-height:260px}
 .history-view:has(#history-positions[open]){height:auto}
 .history-view:has(#history-positions[open]) .history-map-wrap{height:50svh;min-height:320px}
 .account-view{min-height:calc(100dvh - 128px);padding:28px 24px}
}
@media(max-width:360px){.history-view{padding-left:14px;padding-right:14px}.account-view{padding-left:18px;padding-right:18px}}
.history-calendar.active{border-color:#215be2;background:#edf3ff;color:#215be2}
.engine-dialog{color:#172b46;border:0;border-radius:16px;padding:20px;width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 12px 60px #172b4630}
.engine-dialog::backdrop{background:#172b4680}
.engine-dialog h2{font-size:1.2rem}
.engine-dialog .login-help-heading{margin-bottom:16px}
.engine-dialog #close-engine{min-width:44px;min-height:44px;font-size:1.5rem}
.engine-dialog label{display:block;font-size:.9rem}
.engine-dialog select,.engine-dialog input{display:block;width:100%;min-height:46px;margin-top:6px}
.engine-dialog p{font-size:.9rem;line-height:1.5;margin:14px 0}
#engine-status:empty{display:none}
#engine-actions{display:grid;gap:12px;margin-top:20px}
#engine-actions button{width:100%;min-height:46px}
.engine-confirm-actions{display:flex;gap:10px;margin-top:16px}
.engine-dialog form{margin-top:16px}
.engine-confirm-actions button{flex:1;min-width:0;min-height:46px;padding:10px 12px}
.engine-dialog .engine-confirm-actions .primary{width:auto;margin-top:0}
.engine-danger{color:#ae2937;border-color:#d6a0a7}
.primary.engine-danger{background:#ae2937;color:white;border-color:#ae2937}
.pin-page .top{height:56px;padding:0 18px}
.pin-page .top-caption{display:none}
.pin-page .bottom-nav{height:calc(76px + env(safe-area-inset-bottom))}
.pin-panel{padding:12px 20px 16px;max-width:430px}
.page-back{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:8px 12px;font-size:.85rem;color:#215be2}
.page-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pin-panel h1{font-size:1.6rem;margin:16px 0 8px;letter-spacing:-.5px}
.pin-panel>.muted{font-size:.85rem;line-height:1.5;margin:0 0 16px}
.pin-panel form{margin-top:0}
.pin-panel form label:not(:first-child){margin-top:12px}
.pin-panel input{min-height:46px;margin-top:6px;padding:10px 12px}
.pin-panel form .primary{min-height:46px;margin-top:16px}
.engine-dialog #close-engine.dialog-back{font-size:.85rem;white-space:nowrap;padding:10px 5px}
#expired-view>.primary,#expired-view>.secondary{display:block;width:100%;margin-top:12px}
@media(max-height:650px) and (max-width:849px){.pin-panel{padding-top:6px;padding-bottom:8px}.pin-panel h1{font-size:1.5rem;margin-top:8px}.pin-panel>.muted{margin-bottom:10px}.pin-panel form label:not(:first-child){margin-top:6px}.pin-panel input{min-height:44px;padding-top:9px;padding-bottom:9px}.pin-panel form .primary{margin-top:12px}}
@media(max-height:650px) and (max-width:849px){.account-view{padding:8px 18px 6px}.account-view>h1{margin-bottom:4px}.account-view .account-identity{margin-bottom:4px}.account-view .subscription{padding-top:9px;padding-bottom:9px;margin-bottom:4px}.account-view .settings-row{min-height:46px;padding-top:1px;padding-bottom:1px}.account-footer{padding-top:8px}.account-support{margin-top:0}.history-view{padding:8px 14px 4px}.history-header{margin-bottom:4px}.history-view .day-picker{margin-bottom:6px}.history-playback{padding:5px 0 3px;gap:8px}.history-summary{padding:5px 0 3px;gap:8px}.history-endpoint,.history-speed{min-height:44px}.history-endpoint>span,.history-speed>span{font-size:.72rem}.history-endpoint strong,.history-speed strong{font-size:1.05rem}.history-results{min-height:142px}}
