/* FleetPulse inherits the existing Green Scooter shell and type family. */
.cr-shell{--cr-paper:var(--paper,#fff);--cr-ink:var(--ink,#0a0a0a);--cr-muted:var(--muted,#595959);--cr-line:var(--line,#d6d6d2);--cr-surface:var(--surface,#f5f5f3);--cr-camel:#c2a27a;--cr-normal:#257a4a;--cr-attention:#9a6500;--cr-critical:#b42318;--cr-offline:#595959;--cr-unknown:#6b7280;color:var(--cr-ink);background:var(--cr-paper);font-family:var(--body,'Karla',Arial,sans-serif);font-size:15px;line-height:1.45;min-width:0}
.cr-shell *{box-sizing:border-box}.cr-shell [hidden]{display:none!important}.cr-shell h2,.cr-shell h3,.cr-shell h4{letter-spacing:0;line-height:1.2;margin:0 0 12px}.cr-shell h2{font-size:28px}.cr-shell h3{font-size:20px}.cr-shell h4{font-size:16px}.cr-shell p{margin:0 0 12px}.cr-shell button,.cr-shell input,.cr-shell select{font:inherit}.cr-shell button,.cr-shell select,.cr-shell input{min-height:44px;border:1px solid var(--cr-line);border-radius:3px;padding:9px 12px;background:var(--cr-paper);color:var(--cr-ink)}.cr-shell button{cursor:pointer;font-weight:600}.cr-shell button:hover{background:var(--cr-surface)}.cr-shell button:disabled{cursor:not-allowed;opacity:.55}.cr-shell :is(button,select,input,a,[tabindex]):focus-visible{outline:3px solid var(--cr-ink);outline-offset:3px}.cr-shell .cr-primary{background:var(--cr-ink);border-color:var(--cr-ink);color:var(--cr-paper)}.cr-shell .cr-primary:hover{background:#333}.cr-shell label{display:block;font-size:14px;font-weight:600}.cr-shell select{max-width:100%}.cr-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:24px 0 16px;border-bottom:1px solid var(--cr-line)}.cr-header p{max-width:72ch;color:var(--cr-muted)}.cr-note,.cr-source,.cr-caption,.cr-meta{font-size:13px;color:var(--cr-muted);overflow-wrap:anywhere}.cr-toolbar{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-end;padding:20px 0}.cr-control{display:grid;gap:6px;min-width:0}.cr-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cr-clock{margin-left:auto;font-variant-numeric:tabular-nums}.cr-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--cr-line);border-bottom:1px solid var(--cr-line);margin:0 0 24px}.cr-stat{min-width:0;padding:16px 20px 16px 0}.cr-stat+.cr-stat{padding-left:20px;border-left:1px solid var(--cr-line)}.cr-stat span,.cr-stat dt{display:block;font-size:13px;color:var(--cr-muted)}.cr-stat strong,.cr-stat dd{display:block;margin:4px 0 0;font-size:28px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cr-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.cr-workspace>*{min-width:0}.cr-map{position:relative;height:480px;min-width:0;overflow:hidden;background:#ecefe7;border:1px solid var(--cr-line)}.cr-map>svg{display:block;width:100%;height:100%}.cr-map-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:12px}.cr-map-caption{padding-top:10px;color:var(--cr-muted);font-size:13px}.cr-map-overlay{position:absolute;left:12px;top:12px;max-width:calc(100% - 24px);padding:6px 9px;background:var(--cr-paper);font-size:13px;pointer-events:none}.cr-map-legend{display:flex;flex-wrap:wrap;gap:12px 20px;padding:12px 0;font-size:13px}.cr-map-legend span{display:inline-flex;align-items:center;gap:6px}.cr-record{min-width:0;padding:0 0 16px 20px;border-left:1px solid var(--cr-line);overflow-wrap:anywhere}.cr-record-id{font-size:24px;font-weight:700;line-height:1.2;margin-bottom:12px;font-variant-numeric:tabular-nums}.cr-record dl{margin:16px 0}.cr-record dl>div{padding:10px 0;border-bottom:1px solid var(--cr-line)}.cr-record dt{font-size:13px;color:var(--cr-muted)}.cr-record dd{margin:3px 0 0;font-size:15px;font-variant-numeric:tabular-nums}.cr-record-action{border-top:2px solid var(--cr-camel);padding-top:14px;margin-top:20px}.cr-status{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600}.cr-status::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;flex:0 0 auto}.cr-normal{color:var(--cr-normal)}.cr-attention{color:var(--cr-attention)}.cr-critical{color:var(--cr-critical)}.cr-offline{color:var(--cr-offline)}.cr-unknown{color:var(--cr-unknown)}.cr-bottom{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;margin-top:28px}.cr-bottom>*{min-width:0}.cr-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-top:1px solid var(--cr-line);scrollbar-gutter:stable}.cr-table{width:100%;min-width:620px;border-collapse:collapse;text-align:left;font-size:14px}.cr-table caption{text-align:left;padding:12px 0;color:var(--cr-muted)}.cr-table th{font-size:13px;font-weight:600;background:var(--cr-surface);white-space:nowrap}.cr-table th,.cr-table td{padding:12px 10px;border-bottom:1px solid var(--cr-line);vertical-align:top}.cr-table td{font-variant-numeric:tabular-nums}.cr-table button{padding:5px 8px;min-height:44px;border-color:transparent;background:transparent;text-align:left}.cr-table tr[aria-selected=true],.cr-table tr.is-selected{background:#f3eee7;box-shadow:inset 3px 0 var(--cr-camel)}.cr-table tbody tr:hover{background:var(--cr-surface)}.cr-queue{margin:0;padding:0;list-style:none;border-top:1px solid var(--cr-line)}.cr-event{padding:16px 0;border-bottom:1px solid var(--cr-line)}.cr-event-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.cr-event time{font-size:13px;white-space:nowrap;color:var(--cr-muted);font-variant-numeric:tabular-nums}.cr-event p{font-size:14px;margin:6px 0;color:var(--cr-muted)}.cr-event button{margin-top:6px}.cr-trace{display:flex;flex-wrap:wrap;gap:8px 16px;padding:12px 0;font-size:13px;border-top:1px solid var(--cr-line)}.cr-trace>span{border-bottom:2px solid var(--cr-camel);padding-bottom:4px}.cr-tabs{display:flex;gap:20px;border-bottom:1px solid var(--cr-line);margin-bottom:20px}.cr-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:12px 0}.cr-tabs button[aria-selected=true]{border-bottom-color:var(--cr-ink)}.cr-empty,.cr-loading,.cr-error{padding:24px 0;color:var(--cr-muted);font-size:15px}.cr-error{color:var(--cr-critical)}.cr-footer{display:flex;flex-wrap:wrap;gap:8px 24px;border-top:1px solid var(--cr-line);padding-top:16px;margin-top:24px;font-size:13px;color:var(--cr-muted)}.cr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Map classes express evidence, not an alternate brand. */
.cr-map .cr-land{fill:#ecefe7}.cr-map .cr-block{fill:#dfe2da;stroke:none}.cr-map .cr-road-edge{fill:none;stroke:#fff;stroke-width:10;stroke-linejoin:round;stroke-linecap:round}.cr-map .cr-road{fill:none;stroke:#a8ada5;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.cr-map .cr-route{fill:none;stroke:var(--cr-camel);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.cr-map .cr-road-label{font:13px var(--body,'Karla',Arial,sans-serif);fill:#595959;paint-order:stroke;stroke:#fff;stroke-width:4;stroke-linejoin:round}.cr-map .cr-vehicle-body{fill:var(--cr-normal);stroke:#fff;stroke-width:1.5}.cr-map .cr-vehicle-window{fill:#fff}.cr-map .cr-selection-ring{fill:#fff;stroke:var(--cr-ink);stroke-width:1.5}.cr-map .cr-stop{fill:#fff;stroke:var(--cr-camel);stroke-width:2}.cr-map .cr-stop-core{fill:var(--cr-camel)}.cr-map [role=button]{cursor:pointer}.cr-map [role=button]:focus-visible{outline:none;filter:drop-shadow(0 0 2px #0a0a0a)}.cr-map [role=button]:focus-visible .cr-selection-ring{stroke-width:4}.cr-map .cr-vehicle-offline .cr-vehicle-body{fill:var(--cr-offline)}.cr-map .cr-vehicle-attention .cr-vehicle-body{fill:var(--cr-attention)}
@media(min-width:1500px){.cr-map{height:540px}}
@media(max-width:1050px){.cr-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.cr-record{padding-left:16px}.cr-bottom{grid-template-columns:1fr}.cr-map{height:440px}}
@media(max-width:800px){.cr-workspace{grid-template-columns:1fr}.cr-record{border-left:0;border-top:1px solid var(--cr-line);padding:20px 0 0}.cr-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.cr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cr-stat:nth-child(4){padding-left:0;border-left:0}.cr-stat:nth-child(n+4){border-top:1px solid var(--cr-line)}.cr-header{flex-direction:column;gap:8px}.cr-clock{margin-left:0}.cr-map{height:420px}}
@media(max-width:480px){.cr-shell{font-size:14px}.cr-shell h2{font-size:24px}.cr-shell h3{font-size:20px}.cr-toolbar{gap:12px}.cr-control{flex:1 1 130px}.cr-control select{width:100%}.cr-actions{width:100%}.cr-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.cr-stat{padding:12px 10px 12px 0}.cr-stat+.cr-stat{padding-left:10px}.cr-stat:nth-child(odd){padding-left:0;border-left:0}.cr-stat:nth-child(even){border-left:1px solid var(--cr-line)}.cr-stat:nth-child(n+3){border-top:1px solid var(--cr-line)}.cr-stat strong,.cr-stat dd{font-size:24px}.cr-map{height:360px}.cr-record dl{gap:0 16px}.cr-event-heading{flex-wrap:wrap;gap:4px}.cr-tabs{gap:16px}.cr-map-heading{flex-direction:column;gap:4px}.cr-bottom{margin-top:24px}}
@media(prefers-reduced-motion:reduce){.cr-shell *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.cr-toolbar,.cr-tabs{display:none}.cr-workspace,.cr-bottom{display:block}.cr-map{height:360px;break-inside:avoid}.cr-record{border-left:0;padding:16px 0}.cr-table-wrap{overflow:visible}.cr-table{min-width:0}.cr-shell{font-size:12px}}
.cr-filterbar{border-bottom:1px solid var(--cr-line);margin-bottom:24px;padding-top:0}.cr-filterbar input[type=search]{min-width:220px}.cr-check{display:flex!important;gap:8px;align-items:center;font-weight:400!important}.cr-check input{min-height:20px;width:20px;flex:0 0 20px}.cr-record-action .cr-actions{margin:12px 0}.cr-record-action>.cr-check{margin:16px 0}.cr-list-mode{grid-template-columns:1fr}.cr-list-mode .cr-record{border:0;padding:0}.cr-list-mode .cr-record dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}.cr-history{margin-top:24px}.cr-history li{padding:6px 0}.cr-stats button{border:0;border-radius:0;text-align:left;background:transparent}.cr-clock>div{white-space:nowrap}.cr-footer{line-height:1.6}@media(max-width:600px){.cr-list-mode .cr-record dl{grid-template-columns:1fr}.cr-filterbar input[type=search]{min-width:0;width:100%}}
@media(min-width:801px){.cr-record{max-height:690px;overflow-y:auto;padding-right:12px;scrollbar-gutter:stable}.cr-record-action{margin-top:16px}.cr-record dl>div{padding:8px 0}}

.cr-shell label.cr-control{display:grid;gap:6px}

@media(max-width:480px){.cr-map{height:auto;aspect-ratio:4/3}}

/* Geographic overview and local replay share the same operating surface. */
.cr-geography{border-top:1px solid var(--cr-line);padding:16px 0}.cr-geography>p{margin:12px 0}.cr-place-form{display:flex;gap:12px;align-items:flex-end;margin:16px 0}.cr-place-form label{flex:1;min-width:0}.cr-place-form input{width:100%}.cr-place-results{display:grid;gap:8px;margin-bottom:12px}.cr-place-results button{text-align:left}.cr-shell .cr-map{height:520px;aspect-ratio:auto;isolation:isolate}.cr-bottom .cr-table-wrap,.cr-queue{max-height:540px;overflow:auto}.cr-table thead{position:sticky;top:0;z-index:1}.cr-shell .leaflet-container{font-family:var(--body,'Karla',Arial,sans-serif)}.cr-shell .leaflet-control-attribution{font-size:11px}.cr-shell .leaflet-control-attribution a{min-height:0}.cr-shell .leaflet-control button{min-height:44px}.cr-shell .leaflet-container a{color:var(--cr-ink)}
@media(max-width:480px){.cr-shell .cr-map{height:400px}.cr-place-form{align-items:stretch;flex-direction:column}.cr-geography select{width:100%}}
