.shell{grid-template:"top""main"minmax(0,1fr)"nav"/minmax(0,1fr);height:100dvh;display:grid}.topbar{min-height:56px;padding:0 8px 0 16px;padding-top:env(safe-area-inset-top);background:var(--brand);color:var(--on-brand);grid-area:top;align-items:center;gap:4px;display:flex}.topbar .spacer{flex:1}.topbar .wordmark{min-height:var(--touch);align-items:center;display:inline-flex}.icon-link{width:var(--touch);height:var(--touch);color:var(--on-brand);border-radius:50%;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.icon-link:hover,.icon-link[aria-current=page]{background:#ffffff1f}.shell-main{grid-area:main;min-height:0;position:relative;overflow:auto}.nav{background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);grid-area:nav;display:flex}.nav a{min-height:58px;color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:600;text-decoration:none;display:flex}.nav a[aria-current=page]{color:var(--accent-text)}.nav a[aria-current=page] svg{stroke-width:2.2px}@media (width>=900px){.shell{grid-template:"top top""nav main"minmax(0,1fr)/13rem minmax(0,1fr)}.nav{border-top:0;border-right:1px solid var(--line);flex-direction:column;gap:4px;padding:12px 8px}.nav a{border-radius:var(--radius-small);flex-direction:row;flex:none;justify-content:flex-start;gap:12px;min-height:48px;padding:0 12px;font-size:.9375rem}.nav a:hover{background:var(--surface-2)}.nav a[aria-current=page]{background:var(--accent-soft)}}.signin{background:var(--brand);justify-content:center;align-items:center;min-height:100%;padding:24px 16px;display:flex}.signin-card{text-align:center;background:var(--surface);width:100%;max-width:22rem;box-shadow:var(--shadow);border-radius:20px;flex-direction:column;align-items:center;gap:16px;padding:32px 24px;display:flex}.signin-card .wordmark{color:var(--text);font-size:2.5rem}.signin-card .tagline{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin-top:-8px;font-size:.8125rem}.signin-card .btn{margin-top:8px}.signin-card .notice{width:100%}.live{color:var(--on-brand);white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:6px;min-width:0;padding:0 10px;font-size:.8125rem;font-weight:600;display:inline-flex;overflow:hidden}.live-dot{background:var(--state-moving);border-radius:50%;flex:none;width:8px;height:8px}.live-off{color:var(--on-brand-muted)}.live-off .live-dot{background:var(--state-idling)}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.tile{border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);min-width:0;box-shadow:var(--shadow);color:var(--text);flex-direction:column;gap:8px;padding:16px;text-decoration:none;display:flex}a.tile{transition:border-color .15s,transform .15s}a.tile:hover{border-color:var(--accent)}a.tile:active{transform:scale(.99)}.tile-body{flex-direction:column;gap:6px;min-width:0;display:flex}.tile h2{font-size:1.1875rem}.tile-art{width:100%;max-width:15rem;color:var(--text);margin:0 auto}.tile-art svg{width:100%;height:auto;display:block}.tile-art .accent{stroke:var(--accent)}.tile-art .accent-fill{fill:var(--accent)}.tile-art .paper{fill:var(--surface)}.tile-art .faint{opacity:.45}.tile-wide{flex-direction:row;grid-column:1/-1;align-items:flex-start;gap:12px}.tile-wide .tile-art{flex:0 0 34%;max-width:9.5rem;margin:0}.tile-wide .tile-body{flex:1}.tile-foot{border-top:1px solid var(--line);margin-top:4px;padding-top:10px}.at-ok{color:var(--ok);font-weight:600}.at-name{align-items:center;gap:10px;font-size:1.25rem;display:flex}.at-one{flex-direction:column;gap:4px;display:flex}.at-list{flex-direction:column;display:flex}.at-list li{border-top:1px solid var(--line);align-items:center;gap:10px;padding:8px 0;display:flex}.at-list li:first-child{border-top:0}.at-who{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.at-who strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.at-list .at-ok{text-align:right}@media (width>=900px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tile{padding:20px}.tile-wide{flex-direction:column;grid-column:auto;align-items:stretch}.tile-wide .tile-art{flex:none;max-width:15rem;margin:0 auto}}.choices{flex-direction:column;display:flex}.choice{cursor:pointer;border-top:1px solid var(--line);align-items:center;gap:12px;min-height:48px;padding:4px 0;display:flex}.choice:first-child{border-top:0}.choice input{width:22px;height:22px;accent-color:var(--accent);flex:none;margin:0}.saved{color:var(--ok);font-weight:600}.narrow{max-width:36rem}.facts{grid-template-columns:auto 1fr;gap:10px 16px;margin:0;display:grid}.facts dt{color:var(--text-muted)}.facts dd{overflow-wrap:anywhere;margin:0;font-weight:600}.logbook{max-width:48rem}.odometer{white-space:nowrap}.odometer strong{color:var(--text)}.controls{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.controls p.field{margin:0}.one-vehicle{min-height:var(--touch);align-items:center;display:flex}.range{grid-template-columns:minmax(0,1fr);align-items:end;gap:12px;display:grid}@media (width>=480px){.range{grid-template-columns:minmax(0,1fr) auto}}.range-custom{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.range-problem{grid-column:1/-1}@media (width>=700px){.controls{grid-template-columns:minmax(0,14rem) minmax(0,1fr);align-items:start}}.totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;display:grid}.totals-item{flex-direction:column;min-width:0;display:flex}.totals-item strong{font-size:1.125rem}.totals-all strong{color:var(--accent-text)}.totals-note{grid-column:1/-1}@media (width>=700px){.totals{grid-template-columns:repeat(4,minmax(0,1fr))}}.group{flex-direction:column;gap:8px;display:flex}.gbar{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:0 12px;padding:8px 4px 0;display:grid}.gbar h2{font-size:1rem}.gbar-main{text-align:right;font-weight:700}.gbar-split{text-align:right;grid-column:1/-1}.trips{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.trip{border-top:1px solid var(--line);flex-direction:column;gap:8px;padding:12px 12px 12px 16px;display:flex}.trip:first-child{border-top:0}.trip-main{min-height:var(--touch);color:var(--text);align-items:center;gap:8px;text-decoration:none;display:flex}.trip-main>svg{color:var(--text-muted);flex:none}.trip-ends{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.trip-end{align-items:baseline;gap:10px;min-width:0;padding-left:16px;display:flex;position:relative}.trip-end:before{content:"";background:var(--trip-start);border-radius:50%;width:8px;height:8px;position:absolute;top:.5em;left:0}.trip-to:before{background:var(--trip-end);border-radius:2px}.trip-time{flex:none;min-width:2.9em;font-weight:700}.trip-place{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.trip-stats{margin-top:2px;padding-left:16px}.trip .purpose{align-self:flex-start;margin-left:16px}.trip .purpose button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.trip.is-faulty .trip-main{color:var(--text-muted)}.trip.is-faulty .trip-end:before{background:var(--state-offline)}.trip.is-faulty .trip-time{font-weight:600}.trip-fault{color:var(--text-muted);margin-left:16px;font-weight:600}@media (width>=700px){.trip{flex-direction:row;align-items:center}.trip-main{flex:1;order:2;min-width:0}.trip .purpose,.trip>.trip-fault{flex:none;order:1;width:11.5rem;margin:0}.trip{padding-left:12px}}.trip-page{max-width:56rem}.back{padding:0 12px 0 8px}.trip-vehicle{font-weight:400}.trip-summary{font-weight:600}.trip-map{border-radius:var(--radius);border:1px solid var(--line);isolation:isolate;height:52vh;min-height:280px;position:relative;overflow:hidden}.legend{flex-wrap:wrap;gap:6px 16px;display:flex}.legend li{align-items:center;gap:6px;display:inline-flex}.swatch{border-radius:3px;width:18px;height:5px}.swatch-stop{background:var(--speed-stop)}.swatch-slow{background:var(--speed-slow)}.swatch-fast{background:var(--speed-fast)}.state-dot.end-start{background:var(--trip-start)}.state-dot.end-end{background:var(--trip-end);border-radius:3px}.card.ends{padding:0;overflow:hidden}.ends li+li{border-top:1px solid var(--line)}.end-row{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 16px;display:flex}.end-row:disabled{cursor:default}.end-text{flex-direction:column;flex:1;min-width:0;line-height:1.3;display:flex}.end-text strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.end-go{color:var(--accent-text);flex:none;font-weight:600}.map-screen{grid-template:"stage"minmax(0,1fr)"side"/minmax(0,1fr);height:100%;display:grid}.map-side{background:var(--surface);border-top:1px solid var(--line);grid-area:side;max-height:38vh;overflow:auto}.map-stage{isolation:isolate;grid-area:stage;min-height:0;position:relative}.leaflet-box{background:var(--surface-2);font:inherit;position:absolute;inset:0}.map-wait{color:var(--text-muted);background:var(--surface-2);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.map-fit{z-index:500;box-shadow:var(--shadow);position:absolute;top:12px;right:12px}@media (width>=900px){.map-screen{grid-template:"side stage"minmax(0,1fr)/20rem minmax(0,1fr)}.map-side{border-top:0;border-right:1px solid var(--line);max-height:none}}.vlist{flex-direction:column;display:flex}.vlist>.input{width:auto;margin:12px 12px 4px}.vlist-none{padding:12px 16px}.vrow{border-top:1px solid var(--line);align-items:center;display:flex}.vrow:first-child{border-top:0}.vrow.is-selected{background:var(--accent-soft)}.vrow-main{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;min-height:60px;padding:8px 4px 8px 16px;display:flex}.vrow-text{flex-direction:column;flex:1;min-width:0;line-height:1.3;display:flex}.vrow-text>*{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vrow-ago{text-align:right;flex:none}.vrow.is-off .vrow-text strong{color:var(--text-muted);font-weight:600}.switch{cursor:pointer;flex:none;justify-content:center;align-items:center;width:64px;height:60px;display:inline-flex;position:relative}.switch input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.switch-track{background:var(--state-offline);border-radius:13px;width:44px;height:26px;transition:background .15s;position:relative}.switch-track:after{content:"";background:var(--marker-edge);border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0000004d}.switch input:checked+.switch-track{background:var(--accent)}.switch input:checked+.switch-track:after{transform:translate(18px)}.switch input:focus-visible+.switch-track{outline:3px solid var(--accent);outline-offset:3px}.popup{z-index:600;border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow);border:1px solid var(--line);flex-direction:column;gap:12px;padding:14px 16px 16px;display:flex;position:absolute;bottom:8px;left:8px;right:8px}.popup-head{align-items:center;gap:10px;min-width:0;display:flex}.popup-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.popup-close{width:var(--touch);height:var(--touch);cursor:pointer;color:var(--text-muted);background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;margin:-10px -12px -10px auto;display:inline-flex}.popup-close:hover{background:var(--surface-2)}.popup-facts{grid-template-columns:auto 1fr;gap:4px 16px;margin:0;font-size:.9375rem;display:grid}.popup-facts dt{color:var(--text-muted)}.popup-facts dd{overflow-wrap:anywhere;margin:0;font-weight:600}.popup-actions{flex-wrap:wrap;gap:8px;display:flex}.popup-actions .btn{white-space:nowrap;flex:auto;padding:0 12px}@media (width>=900px){.popup{width:24rem;bottom:28px;left:auto;right:12px}}.vm-wrap{background:0 0;border:0}.vm{justify-content:center;align-items:center;width:44px;height:44px;display:flex;position:relative}.vm-shape{width:32px;height:32px;fill:var(--state-offline);stroke:var(--marker-edge);stroke-width:2.5px;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0006);overflow:visible}.vm-moving .vm-shape{fill:var(--state-moving)}.vm-idling .vm-shape{fill:var(--state-idling)}.vm-parked .vm-shape{fill:var(--state-parked)}.vm-offline .vm-shape{fill:var(--state-offline)}.vm-start .vm-shape{fill:var(--trip-start)}.vm-end .vm-shape{fill:var(--trip-end)}.vm-mark{fill:var(--marker-edge);stroke:none}.vm-selected .vm-shape{stroke:var(--accent);stroke-width:3.5px}.vm-label{white-space:nowrap;background:var(--surface);color:var(--text);border-radius:6px;padding:0 6px;font:600 12px/20px system-ui,sans-serif;position:absolute;top:12px;left:40px;box-shadow:0 1px 3px #0000004d}.route-stop{stroke:var(--speed-stop)}.route-slow{stroke:var(--speed-slow)}.route-fast{stroke:var(--speed-fast)}.route-edge{stroke:var(--marker-edge)}.leaflet-container a{color:var(--accent-text)}.leaflet-bar a,.leaflet-bar a:hover{width:40px;height:40px;line-height:40px}.leaflet-control-attribution{font-size:11px}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--brand:#0b1f3a;--on-brand:#fff;--on-brand-muted:#a9b8cf;--accent:#f26a1b;--on-accent:#0b1f3a;--accent-text:#b4480a;--accent-soft:#fdebdf;--bg:#f3f5f9;--surface:#fff;--surface-2:#e9edf4;--text:#0f1c2e;--text-muted:#56637a;--line:#d6dce6;--danger:#b3261e;--danger-soft:#fbe9e7;--ok:#17753a;--shadow:0 1px 2px #0b1f3a0f, 0 6px 20px #0b1f3a14;--state-moving:#1a9547;--state-idling:#c98a00;--state-parked:#2f6fde;--state-offline:#8a94a3;--speed-stop:#7c8798;--speed-slow:#2f6fde;--speed-fast:#f26a1b;--trip-start:#1a9547;--trip-end:#d93025;--marker-edge:#fff;--radius:14px;--radius-small:10px;--touch:44px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--brand:#0b1f3a;--on-brand:#fff;--on-brand-muted:#a9b8cf;--accent:#ff7d33;--on-accent:#0b1f3a;--accent-text:#ff9a5c;--accent-soft:#3a2616;--bg:#07111f;--surface:#10203a;--surface-2:#1a2e4f;--text:#e9eef6;--text-muted:#a3b3ca;--line:#2a3f62;--danger:#ff8a80;--danger-soft:#3b1a1a;--ok:#5fd08a;--shadow:0 1px 2px #0000004d, 0 6px 20px #00000059;--state-moving:#3ecb74;--state-idling:#f2b632;--state-parked:#6ea2ff;--state-offline:#8291a8;--speed-stop:#6f7c90;--speed-slow:#2f6fde;--speed-fast:#f26a1b;--trip-start:#1a9547;--trip-end:#d93025;--marker-edge:#fff}}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{letter-spacing:-.01em;font-size:1.375rem;font-weight:700;line-height:1.25}h2{font-size:1.0625rem;font-weight:700;line-height:1.3}a{color:var(--accent-text)}button,input,select{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}ul{margin:0;padding:0;list-style:none}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--text-muted)}.small{font-size:.875rem}.num{font-variant-numeric:tabular-nums}.page{flex-direction:column;gap:16px;max-width:62rem;margin:0 auto;padding:16px;display:flex}.page-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.page-head h1{flex:1;min-width:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.card>h2{margin-bottom:12px}.btn{min-height:var(--touch);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface);color:var(--text);cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn-primary:hover{background:var(--accent);filter:brightness(1.05)}.btn-wide{width:100%}.btn svg{flex:none}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>span,.field>label{color:var(--text-muted);font-size:.8125rem;font-weight:600}.input{min-height:var(--touch);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface);width:100%;color:var(--text);padding:0 12px}.segmented{background:var(--surface-2);border-radius:var(--radius-small);gap:2px;max-width:100%;padding:3px;display:inline-flex}.segmented button{min-height:calc(var(--touch) - 6px);color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;padding:0 12px;font-weight:600}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.notice{border-radius:var(--radius-small);background:var(--surface-2);padding:12px 14px}.notice-error{background:var(--danger-soft);color:var(--danger);font-weight:600}.notice-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.notice-row>:first-child{flex:1;min-width:12rem}.empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;display:flex}.empty h2{font-size:1.125rem}.empty p{color:var(--text-muted);max-width:26rem}.state-dot{background:var(--state-offline);border-radius:50%;flex:none;width:12px;height:12px}.state-moving{background:var(--state-moving)}.state-idling{background:var(--state-idling)}.state-parked{background:var(--state-parked)}.state-offline{background:var(--state-offline)}.wordmark{letter-spacing:-.03em;color:inherit;font-size:1.375rem;font-weight:800;line-height:1;text-decoration:none}.wordmark i{color:var(--accent);font-style:normal}.splash{background:var(--brand);height:100%;color:var(--on-brand);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.splash .wordmark{font-size:2.75rem}.splash p{color:var(--on-brand-muted);letter-spacing:.08em;text-transform:uppercase;font-size:.8125rem}.splash .notice{text-align:center;max-width:22rem;color:var(--on-brand);background:#ffffff1a;margin-top:24px}.splash .btn{margin-top:8px}@media (prefers-reduced-motion:no-preference){.fade-in{animation:.2s ease-out fade-in}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}
