:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1d3443;background:#eef2f5;font-size:16px;--navy:#142635;--blue:#1269e7;--muted:#71828f;--border:#dfe6ec}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #81b6ff;outline-offset:2px}a{color:var(--blue)}button{color:inherit}.header{height:80px;padding:0 28px;background:var(--navy);color:#fff;display:flex;align-items:center;gap:44px}.brand{display:flex;align-items:center;gap:12px;min-width:268px}.brand-icon{width:42px;height:42px;background:#2181f8;display:grid;place-items:center;border-radius:11px;font-size:27px;font-weight:800}.brand strong{display:block;font-size:18px;letter-spacing:1.2px}.brand span:not(.brand-icon){display:block;color:#b7c5d0;font-size:14px;margin-top:2px}.header-caption{display:flex;flex:1;flex-direction:column;gap:4px;font-size:13px;color:#a7bbc9}.header-label{color:#e7eff7;font-size:15px}.header-actions{display:flex;gap:10px}.button{border:1px solid #d9e1e7;background:#fff;border-radius:8px;padding:10px 15px;font-size:14px;font-weight:600;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:40px;text-decoration:none}.button-primary{border-color:var(--blue);background:var(--blue);color:#fff}.button-primary:hover{background:#0058d6}.button-dark{background:#203647;border-color:#345064;color:#dce6ee}.refresh-icon{font-size:20px;line-height:1}.summary{height:92px;padding:18px 28px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:28px}.summary-item{display:flex;flex-direction:column;gap:4px;padding-right:28px;border-right:1px solid var(--border);white-space:nowrap}.summary-item span{font-size:13px;color:#6d7c88}.summary-item strong{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.15}.sources{display:flex;gap:10px;margin-left:auto;flex-wrap:wrap;font-size:14px}.source-pill{border:1px solid var(--border);border-radius:8px;padding:9px 12px;background:#f8fafc;display:flex;flex-direction:column;gap:5px;max-width:200px}.source-pill strong{font-size:13px;font-weight:600;display:flex;gap:8px;align-items:center}.source-pill span{font-size:12px;color:#7b8791}.source-dot{width:6px;height:6px;border-radius:50%;background:#b5bec7;display:inline-block}.source-dot.good{background:#259b76}.source-dot.warning{background:#d3983d}.workspace{display:grid;grid-template-columns:355px minmax(0,1fr);height:calc(100dvh - 172px);min-height:550px}.fleet-panel{background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 16px}.panel-heading h1{font-size:20px;margin:0;font-weight:650}.text-button{font-size:12px;font-weight:600;text-decoration:none}.search{margin:0 16px;display:flex;align-items:center;gap:7px;border:1px solid #d9e2e9;background:#f7f9fb;border-radius:8px;padding:0 11px}.search span{font-size:26px;color:#8798a5}.search input{border:0;background:none;font-size:14px;padding:11px 0;min-width:0;outline:0;width:100%;color:inherit}.filters{display:flex;gap:8px;margin:12px 16px 0;align-items:center}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23677783' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center no-repeat;padding:8px 28px 8px 10px;border:1px solid var(--border);border-radius:7px;font-size:14px;min-width:0;color:inherit;flex:1}.checkbox{font-size:13px;display:flex;gap:4px;align-items:center;white-space:nowrap;color:#677b89}.checkbox input{accent-color:var(--blue);width:15px;height:15px}.list-count{font-size:12px;color:#7b8a96;padding:15px 20px 8px}.vehicle-list{flex:1;overflow:auto;padding:0 8px 10px}.vehicle-card{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:9px;background:#fff;padding:13px 12px;margin:2px 0;transition:background .15s}.vehicle-card:hover{background:#f5f8fc}.vehicle-card.selected{border-color:#bed6fa;background:#eef5ff}.vehicle-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.vehicle-name{font-size:15px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-speed{font-size:12px;color:#4b7192;white-space:nowrap}.vehicle-sub{font-size:12px;color:#768794;margin-top:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.vehicle-meta{font-size:12px;display:flex;justify-content:space-between;gap:6px;margin-top:10px;color:#7b8a96}.source-name{font-size:11px;letter-spacing:.2px;border-radius:4px;background:#f0f3f6;padding:2px 5px;color:#677985}.selected .source-name{background:#dceafa;color:#3d6d9e}.signal{display:flex;align-items:center;gap:5px}.signal:before{content:"";display:block;width:5px;height:5px;background:#b5bec7;border-radius:50%}.signal.fresh{color:#2e8c68}.signal.fresh:before{background:#2e8c68}.signal.delayed{color:#a17928}.signal.delayed:before{background:#c5943d}.list-footer{font-size:12px;color:#87949e;padding:12px 20px;border-top:1px solid #edf0f3}.map-column{display:flex;flex-direction:column;min-height:0;min-width:0}.map-wrap{flex:1;position:relative;min-height:280px;isolation:isolate;background:#e4edf1}#map{height:100%;width:100%;position:absolute;inset:0;background:#e4edf1}.map-toolbar{position:absolute;z-index:600;top:18px;left:18px;right:64px;display:flex;justify-content:space-between;pointer-events:none;gap:12px;align-items:flex-start}.map-caption,.map-button{background:#fff;box-shadow:0 3px 14px #233f581c;border:1px solid #d7e0e8;border-radius:7px;padding:9px 12px;font-size:13px;pointer-events:auto}.map-caption{color:#5c7283;max-width:70%}.map-button{font-weight:600;white-space:nowrap}.map-notice{position:absolute;z-index:600;left:18px;top:70px;background:#fff3d7;color:#88641c;border:1px solid #ead6a8;font-size:13px;padding:9px 12px;border-radius:7px;max-width:430px}.leaflet-container{font:inherit}.leaflet-control-attribution{font-size:11px!important}.leaflet-control-zoom{border:1px solid #d9e2e9!important;box-shadow:0 3px 14px #233f581c!important}.leaflet-control-zoom a{color:#395469!important}.car-icon{background:none;border:0}.car-pin{width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:#2679db;box-shadow:0 2px 10px #183a5e55;color:#fff;display:grid;place-items:center;font-size:15px}.car-pin.stale{background:#8798a8}.car-pin.active{background:#123f79;box-shadow:0 0 0 5px #277ae044,0 2px 10px #183a5e55;transform:scale(1.1)}.map-tooltip{font-family:inherit;font-size:13px;border-radius:6px}.yandex-logo-control{margin:0!important}.yandex-logo-control img{width:90px;height:auto;display:block}.history-legend{position:absolute;z-index:601;left:18px;bottom:24px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:10px 12px;box-shadow:0 2px 12px #233f5815;display:flex;align-items:center;gap:9px;font-size:13px}.history-legend[hidden]{display:none}.legend-line{height:3px;width:22px;background:#176de5}.history-legend button{border:0;background:none;color:#6e8190;font-size:20px;padding:0 0 0 7px}.detail-panel{background:#fff;border-top:1px solid var(--border);padding:18px 24px;min-height:156px;max-height:40%;overflow:auto}.detail-empty{display:flex;align-items:center;justify-content:center;gap:17px;padding:27px 8px;color:#8293a0}.detail-empty-icon{font-size:38px;color:#aec0ce}.detail-empty h2{font-size:17px;font-weight:600;margin:0 0 7px;color:#5f7584}.detail-empty p{font-size:14px;margin:0}.detail-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.detail-title h2{font-size:19px;margin:0 0 4px}.detail-title p{font-size:13px;color:#708493;margin:0}.history-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.history-controls label{font-size:13px;color:#708493}.history-controls input{font-size:13px;border:1px solid var(--border);border-radius:7px;padding:9px;color:#344d5f;max-width:160px}.detail-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.7fr;gap:20px;margin:19px 0 0}.detail-field{min-width:0}.detail-field span{display:block;font-size:12px;color:#85929d;margin-bottom:5px}.detail-field strong{font-size:14px;font-weight:600;word-break:break-word;line-height:1.45}.edit-driver{font-size:14px;font-weight:600;border:0;background:none;color:var(--blue);padding:0;text-align:left}.history-result{font-size:13px;padding-top:12px;color:#758693}.empty-state{text-align:center;color:#8394a0;padding:45px 24px;font-size:14px;line-height:1.6}.empty-state strong{display:block;color:#546e81;font-size:16px;font-weight:600;margin-bottom:8px}.loader{display:inline-block;width:23px;height:23px;border:2px solid #d5e2ef;border-top-color:#2b7ddd;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#globalError{padding:12px 28px;background:#fff0ec;color:#a24432;border-bottom:1px solid #e9c2b9;font-size:14px}#globalError:not([hidden])~.workspace{height:calc(100dvh - 215px)}#toast{position:fixed;z-index:10000;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:9px;background:#203747;color:#fff;font-size:14px;box-shadow:0 4px 20px #152c3a33;max-width:90vw}dialog{padding:25px;border:1px solid var(--border);border-radius:14px;width:480px;max-width:calc(100vw - 32px);box-shadow:0 15px 80px #122e3c55;color:inherit}dialog::backdrop{background:#10283877;backdrop-filter:blur(3px)}dialog h2{margin:0;font-size:21px}dialog p{font-size:15px;line-height:1.6;color:#6b7e8d}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.icon-button{padding:2px 7px;border:0;background:none;color:#80919e;font-size:26px}.field{display:flex;flex-direction:column;gap:9px;font-size:14px;color:#4b6374;font-weight:600}.field input{padding:12px;border:1px solid #ccd9e2;border-radius:8px;font-size:16px;min-width:0;color:#243d50}.help{font-size:13px!important}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-error{font-size:14px;color:#b4432e;margin:14px 0 0}.form-error:empty{display:none}.full-width{width:100%;margin-top:18px}.login-brand{letter-spacing:2px;color:#1269e7;font-size:14px;font-weight:700;margin-bottom:20px}.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}code{font-size:13px}button[hidden],div[hidden]{display:none}@media(max-width:1100px){.header{gap:20px;padding:0 20px}.brand{min-width:0}.header-caption{margin-left:auto}.summary{padding:15px 20px;gap:18px}.summary-item{padding-right:18px}.sources{gap:6px}.source-pill{padding:7px 8px}.workspace{grid-template-columns:310px minmax(0,1fr)}.detail-grid{grid-template-columns:repeat(3,1fr);gap:12px}.detail-top{flex-wrap:wrap}.history-controls{justify-content:flex-start}.detail-panel{max-height:42%}}@media(max-width:800px){.header-caption{display:none}.header{height:72px;padding:0 16px;justify-content:space-between}.brand strong{font-size:16px}.brand-icon{width:36px;height:36px;font-size:24px}.header-actions{gap:6px}.header-actions .button{padding:9px;font-size:12px}.summary{height:auto;min-height:88px;flex-wrap:wrap;gap:10px;padding:12px 16px}.summary-item{flex:1;padding-right:10px}.summary-item span{font-size:11px}.summary-item strong{font-size:22px}.sources{width:100%;margin-left:0;display:none}.workspace{height:auto;min-height:0;display:flex;flex-direction:column-reverse}.map-column{height:64dvh;min-height:440px}.map-wrap{min-height:250px}.detail-panel{padding:14px 16px;max-height:45%}.detail-empty{padding:10px 0;justify-content:flex-start}.detail-empty p{font-size:13px}.detail-grid{grid-template-columns:repeat(3,1fr);gap:8px}.detail-title h2{font-size:17px}.detail-top{gap:10px}.history-controls{gap:6px}.history-controls .button{padding:8px 10px}.fleet-panel{height:450px;border-top:1px solid var(--border)}.panel-heading{padding:17px 16px 12px}.map-toolbar{top:12px;left:12px}.map-notice{left:12px;right:12px;max-width:none}.detail-field strong,.edit-driver{font-size:13px}.history-controls label{display:none}.history-legend{left:10px;font-size:12px;max-width:85%}#globalError{padding:10px 16px}.detail-field span{font-size:11px}}
.vehicle-more{margin-top:12px;font-size:13px;border-top:1px solid #edf1f4;padding-top:12px}.vehicle-more summary{cursor:pointer;color:#3477ba;font-weight:600}.info-table{margin-top:12px}.info-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;padding:7px 0;border-bottom:1px solid #f1f4f7;font-size:13px}.info-row span{color:#7a8c99}.info-row strong{font-weight:500;overflow-wrap:anywhere}.source-detail h3{font-size:14px;margin:15px 0 7px}.source-detail p{font-size:13px;overflow-wrap:anywhere}.vehicle-note{font-size:13px;color:#946b2b;background:#fff9ed;border-radius:6px;padding:9px 12px;margin-bottom:0}
.vehicle-name{font-size:16px}.vehicle-sub,.vehicle-meta,.source-pill strong,.detail-field span,.summary-item span,.header-caption,.map-button,.map-caption,.history-controls label{font-size:14px}.source-pill span{font-size:13px}.vehicle-more,.info-row,.history-result,.history-legend,.history-controls input{font-size:14px}.detail-field strong,.edit-driver{font-size:15px}.source-name{font-size:12px}@media(max-width:800px){.summary-item span{font-size:12px}.detail-field span{font-size:13px}.detail-field strong,.edit-driver{font-size:14px}}
.daily-export{display:flex;align-items:center;gap:12px;margin-bottom:10px}.daily-export input{font-size:13px;border:1px solid var(--border);border-radius:6px;padding:6px;min-width:0;width:145px;color:#526a7b}.daily-export a{font-size:13px}.stop-row{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;width:100%;padding:10px 5px;border:0;border-top:1px solid #edf1f4;font-size:14px;color:#5c7587}.stop-row:hover{background:#f4f8fc}.stop-row span:last-child{color:#1269e7;font-size:12px}.stop-row strong{font-size:14px;color:#334e61}.history-controls .text-button{padding:10px 0;white-space:nowrap}

/* Vehicle management and fleet silhouettes */
[hidden]{display:none!important}.vehicle-silhouette{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#3977b5}.vehicle-silhouette svg{display:block;width:100%;height:100%}.vehicle-card-top{display:flex;align-items:center;gap:10px}.list-vehicle-icon{width:64px;height:40px}.vehicle-card-text{flex:1;min-width:0}.vehicle-card .vehicle-head{align-items:baseline}.vehicle-card .vehicle-speed{font-size:12px}.vehicle-card .vehicle-meta{margin-top:8px}.vehicle-card.selected .vehicle-silhouette{color:#1269e7}.car-pin{width:48px;height:36px;border:2px solid #2679db;border-radius:10px;background:#fff;color:#2679db;box-shadow:0 2px 10px #183a5e44}.car-pin::after{content:"";position:absolute;bottom:-4px;left:21px;width:6px;height:6px;border-radius:50%;background:currentColor}.car-pin.stale{background:#f6f8fa;border-color:#93a3b1;color:#8294a4;--vehicle-fill:#e6ebef;--vehicle-glass:#c7d3df}.car-pin.active{background:#eff6ff;color:#1269e7;border-color:#1269e7;box-shadow:0 0 0 5px #277ae033,0 2px 10px #183a5e55}.map-vehicle-icon{width:34px;height:22px;color:inherit}.detail-vehicle-heading{display:flex;align-items:center;gap:14px;min-width:0}.detail-vehicle-icon{width:82px;height:48px}.detail-edit-link{border:0;padding:0;margin-top:6px;background:none;color:var(--blue);font-size:13px;font-weight:600}.detail-title{min-width:0}.detail-title h2{overflow-wrap:anywhere}.settings-dialog{width:1120px;padding:0;max-height:calc(100dvh - 48px);overflow:hidden}.settings-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 28px 18px}.eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:1.3px;color:#8b9ba7;margin-bottom:6px}.settings-heading h2{font-size:24px}.settings-tabs{display:flex;gap:28px;padding:0 28px;border-bottom:1px solid var(--border)}.settings-tabs [role=tab]{position:relative;border:0;border-bottom:3px solid transparent;background:none;padding:13px 0 15px;font-size:16px;font-weight:600;color:#7b8d9b}.settings-tabs [aria-selected=true]{border-bottom-color:var(--blue);color:var(--blue)}.settings-tabs button span{display:inline-block;padding:2px 7px;margin-left:6px;border-radius:5px;background:#eaf2fd;color:#3974b7;font-size:12px}.vehicle-manager{display:grid;grid-template-columns:305px minmax(0,1fr);height:min(655px,calc(100dvh - 205px));min-height:350px}.manager-sidebar{background:#f7f9fc;border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.manager-toolbar{padding:20px 16px 12px;display:flex;flex-direction:column;gap:11px}.manager-toolbar .search{margin:0;background:#fff}.manager-toolbar>.button{width:100%}.manage-vehicle-list{overflow:auto;padding:0 8px;flex:1}.manage-vehicle-row{width:100%;text-align:left;border:1px solid transparent;border-radius:9px;display:flex;gap:9px;align-items:center;background:none;padding:12px 9px;margin:3px 0}.manage-vehicle-row:hover{background:#edf3fa}.manage-vehicle-row.selected{background:#eaf3ff;border-color:#bad4f6}.manage-vehicle-row>.vehicle-silhouette{width:56px;height:36px}.manage-row-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.manage-row-text strong{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manage-row-text>span{font-size:12px;color:#657b8c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manage-row-text small{font-size:11px;color:#8a9ba8}.manage-row-arrow{font-size:22px;color:#9bafbf}.manager-footnote{margin:0;padding:13px 18px;font-size:12px;line-height:1.5;border-top:1px solid #e6edf4;color:#8a9aa8}.manager-editor{overflow:auto;padding:24px 28px 0;background:#fff}.editor-heading{display:flex;align-items:center;gap:17px;margin-bottom:22px}.editor-vehicle-icon{width:94px;height:54px;padding:5px;border:1px solid #e4ebf2;border-radius:12px;background:#f8fbff}.editor-heading h3{font-size:22px;margin:0;line-height:1.3;overflow-wrap:anywhere}.editor-heading p{margin:5px 0 0;font-size:14px;color:#8293a1}.editor-heading .eyebrow{color:#5890be;font-size:10px}.manual-vehicle-note{display:flex;gap:10px;border:1px solid #dce8f5;background:#f2f7fd;padding:13px;border-radius:8px;margin-bottom:20px}.manual-status-dot{width:7px;height:7px;background:#8da7bf;border-radius:50%;margin-top:6px;flex-shrink:0}.manual-vehicle-note strong{font-size:14px;color:#526e87}.manual-vehicle-note p{font-size:13px;line-height:1.5;margin:4px 0 0;color:#70869a}.vehicle-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}.vehicle-fields .field{display:block;font-size:14px;color:#5d7384;line-height:1.5}.vehicle-fields input{display:block;width:100%;padding:10px 12px;font-size:15px;margin-top:6px;background:#fff}.vehicle-fields input::placeholder{color:#a1afbb}.vehicle-fields input:focus{border-color:#7baef0;outline:3px solid #e6f0ff;outline-offset:0}.field-wide{grid-column:1 / -1}.required-mark{color:#7893ab;font-weight:400}.vehicle-type-field{margin:24px 0 0;padding:0;border:0;min-width:0}.vehicle-type-field legend{padding:0;font-size:15px;font-weight:650}.vehicle-type-field>p{font-size:13px;margin:5px 0 13px;color:#8a9ca9}.vehicle-type-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.type-choice{position:relative;cursor:pointer}.type-choice input{position:absolute;opacity:0;width:1px;height:1px}.type-choice-face{height:104px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;border:1px solid #dce5ed;border-radius:9px;background:#fff;padding:9px 10px;position:relative;text-align:center;color:#668297;font-size:12px;font-weight:600;line-height:1.3}.type-choice-face>.vehicle-silhouette{width:100px;max-width:100%;height:55px;color:#7c9bb4}.type-choice-face>i{display:none;position:absolute;right:7px;top:7px;border-radius:50%;width:16px;height:16px;background:var(--blue);color:#fff;font-size:11px;font-style:normal;align-items:center;justify-content:center}.type-choice input:checked+.type-choice-face{border-color:#6aa2ed;box-shadow:0 0 0 1px #6aa2ed;background:#f0f6ff;color:#1762bb}.type-choice input:checked+.type-choice-face .vehicle-silhouette{color:#2676cc}.type-choice input:checked+.type-choice-face>i{display:flex}.type-choice input:focus-visible+.type-choice-face{outline:3px solid #9dc5fb;outline-offset:3px}.type-choice:hover .type-choice-face{border-color:#a9c5e4}.type-choice-unknown{grid-column:1 / -1}.type-choice-unknown .type-choice-face{height:39px;flex-direction:row;justify-content:flex-start;padding-left:12px;gap:9px;font-size:13px}.type-choice-unknown .vehicle-silhouette{width:29px;height:23px}.type-choice-unknown .type-choice-face>i{top:10px;right:11px}.editor-savebar{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:22px -2px 0;padding:16px 0;background:#fff;border-top:1px solid #e7edf2}.editor-savebar>span{font-size:12px;color:#8b9ca9;flex:1;line-height:1.4}.editor-savebar>span.unsaved{color:#ac812e}.editor-savebar .button{white-space:nowrap}.manager-editor .form-error{margin:0;padding:0 0 16px}.map-settings{padding:28px;max-height:calc(100dvh - 205px);overflow:auto}.map-settings form{max-width:690px}.map-settings h3{font-size:19px;margin:0}.map-settings .field{max-width:580px}.map-settings .dialog-actions{justify-content:flex-start}.map-settings-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.settings-map-toggle{display:flex;align-items:center;gap:10px;font-size:14px;color:#59748b}.map-toolbar-left{display:flex;gap:9px;align-items:flex-start;flex-wrap:wrap}.map-toolbar-left .map-caption{max-width:none}.map-yandex-toggle{display:flex;align-items:center;gap:7px;background:#fff;box-shadow:0 3px 14px #233f581c;border:1px solid #d7e0e8;border-radius:7px;padding:7px 9px;font-size:12px;pointer-events:auto;white-space:nowrap;min-height:35px}.map-yandex-toggle>span:last-child{color:#8799a7;font-size:11px;min-width:25px}.switch-control{display:inline-flex;position:relative;width:32px;height:19px;flex-shrink:0}.switch-control input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer}.switch-track{width:32px;height:19px;border-radius:12px;background:#bcc9d4;transition:background .15s}.switch-track::after{content:"";position:absolute;top:3px;left:3px;width:13px;height:13px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #183a5e33;transition:transform .15s}.switch-control input:checked+.switch-track{background:var(--blue)}.switch-control input:checked+.switch-track::after{transform:translateX(13px)}.switch-control input:focus-visible+.switch-track{outline:3px solid #81b6ff;outline-offset:3px}.switch-control input:disabled+.switch-track{opacity:.5}
/* Connected sources remain visible in the dark header. */
.header{gap:24px}.header .brand{min-width:205px}.header .sources{margin-left:0;margin-right:auto;display:flex;flex:1;gap:9px;flex-wrap:nowrap}.header .source-pill{padding:9px 12px;background:#203645;border-color:#344c5d;flex:1;max-width:190px;min-width:128px}.header .source-pill strong{color:#e6eff6;font-size:13px}.header .source-pill span{color:#9fb5c5;font-size:12px}.header .source-dot.good{background:#55cda4}.header .source-dot.warning{background:#f0bc69}.summary-updated{margin-left:auto;display:flex;flex-direction:column;gap:6px;text-align:right;color:#8b9ba7;font-size:13px}.summary-updated>span:first-child{color:#5b7385;font-size:14px}
@media(max-width:1100px){.header{gap:14px;padding:0 20px}.header .brand{min-width:175px}.header .source-pill{min-width:110px;padding:8px}.header .sources{gap:6px}.header .source-pill span{font-size:11px}.header-actions .button{padding:9px 10px}.settings-dialog{max-width:calc(100vw - 24px)}.vehicle-manager{grid-template-columns:275px minmax(0,1fr)}.manager-editor{padding:22px 22px 0}.type-choice-face{font-size:11px}.editor-savebar{flex-wrap:wrap}.editor-savebar>span{flex-basis:100%}}
@media(max-width:900px){.header{height:auto;min-height:120px;flex-wrap:wrap;padding-top:14px;padding-bottom:12px;gap:12px}.header .brand{flex:1;order:0}.header .header-actions{order:1}.header .sources{order:2;flex-basis:100%;margin:0}.header .source-pill{max-width:none;min-width:0;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:7px}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:11px}.workspace{height:calc(100dvh - 212px)}.vehicle-manager{grid-template-columns:235px minmax(0,1fr)}.manage-vehicle-row>.vehicle-silhouette{width:42px}.manager-editor{padding:20px 18px 0}.vehicle-type-choices{gap:7px}.type-choice-face{padding:7px;height:95px}.type-choice-face>.vehicle-silhouette{height:48px}.editor-heading{gap:12px}.editor-vehicle-icon{width:72px}.editor-heading h3{font-size:19px}.vehicle-fields{gap:12px}.vehicle-fields input{font-size:14px}}
@media(max-width:800px){.header .sources{display:flex}.summary{min-height:88px}.summary-updated{display:none}.workspace{height:auto}.map-toolbar-left{gap:5px}.map-toolbar-left .map-caption{font-size:11px;padding:9px}.map-yandex-toggle{font-size:11px;padding:6px}.settings-dialog{max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px)}.settings-heading{padding:18px 18px 12px}.settings-heading h2{font-size:21px}.settings-tabs{padding:0 18px}.vehicle-manager{height:calc(100dvh - 170px);grid-template-columns:200px minmax(0,1fr)}.manager-toolbar{padding:14px 10px 10px}.manager-toolbar>.button{font-size:12px;padding:9px 5px}.manager-toolbar .search input{font-size:12px}.manage-vehicle-row{padding:10px 6px;gap:7px}.manage-vehicle-row>.vehicle-silhouette{display:none}.manage-row-text strong{font-size:13px}.manage-row-text small{font-size:10px}.manager-footnote{font-size:11px;padding:11px}.manager-editor{padding:17px 14px 0}.vehicle-type-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-fields{grid-template-columns:1fr}.field-wide{grid-column:auto}.editor-savebar .button{padding:9px 10px;font-size:12px}.map-settings{padding:20px;max-height:calc(100dvh - 170px)}.map-settings-heading{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:560px){.header .source-pill{flex-direction:column;gap:3px}.header .source-pill strong{font-size:11px}.header .source-pill span{font-size:10px}.vehicle-manager{display:flex;flex-direction:column}.manager-sidebar{max-height:168px;min-height:168px;border-right:0;border-bottom:1px solid var(--border)}.manager-toolbar{padding:10px;flex-direction:row;align-items:center;gap:8px}.manager-toolbar .search{flex:1;min-width:0}.manager-toolbar>.button{width:auto;white-space:nowrap;font-size:11px}.manager-toolbar .search input{padding:8px 0}.manage-vehicle-list{display:flex;overflow:auto;padding:0 9px 9px;gap:5px}.manage-vehicle-row{min-width:170px;max-width:170px;margin:0;padding:8px 10px}.manage-row-arrow{display:none}.manager-footnote{display:none}.manager-editor{flex:1;min-height:0}.vehicle-fields{grid-template-columns:1fr 1fr}.field-wide{grid-column:1/-1}.vehicle-type-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.type-choice-face{height:92px;font-size:10px;padding:6px}.type-choice-unknown .type-choice-face{height:37px}.editor-heading h3{font-size:18px}.editor-savebar{gap:8px}.editor-savebar>span{font-size:11px}.map-toolbar{right:54px;left:10px}.map-toolbar-left{flex-direction:column}.map-notice{top:105px;left:10px;right:10px}.detail-vehicle-icon{width:64px;height:42px}}

/* Sliding vehicle card: the handle stays reachable when content is collapsed. */
.fleet-panel>.search{margin-top:18px;margin-bottom:12px}.detail-drawer{flex:0 0 auto;min-height:0;background:#fff;--detail-max-height:240px}.detail-drawer-handle{height:28px;border-top:1px solid var(--border);display:flex;justify-content:center;align-items:center;background:#fff}.detail-drawer-handle button{width:58px;height:26px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:0 0 8px 8px;background:#f2f6fa;color:#65849b;transition:background .15s,color .15s}.detail-drawer-handle button:hover{background:#e7f0fc;color:#1269e7}.detail-drawer-handle svg{transition:transform 220ms ease}.detail-drawer.is-collapsed .detail-drawer-handle svg{transform:rotate(180deg)}.detail-drawer-shell{display:grid;grid-template-rows:1fr;transition:grid-template-rows 220ms ease}.detail-drawer.is-collapsed .detail-drawer-shell{grid-template-rows:0fr}.detail-drawer-content{min-height:0;overflow:hidden}.detail-drawer .detail-panel{border-top:0;max-height:var(--detail-max-height);min-height:156px;overflow:auto}.detail-drawer.is-collapsed .detail-drawer-content{pointer-events:none}@media(max-width:800px){.detail-drawer .detail-panel{min-height:120px}.fleet-panel>.search{margin-top:16px}}@media(prefers-reduced-motion:reduce){.detail-drawer-shell,.detail-drawer-handle svg{transition:none}}

/* Fleet totals share the header; the map fills the remaining viewport. */
body{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.header{position:relative;z-index:1000;display:grid;grid-template-columns:205px minmax(345px,390px) minmax(370px,1fr) auto;grid-template-areas:"brand stats sources actions";align-items:center;gap:22px;height:auto;min-height:88px;padding:13px 26px;flex:none}.header .brand{grid-area:brand;min-width:0;order:0}.brand-updated{display:block;color:#829eaf;font-size:11px;font-weight:400;letter-spacing:0;line-height:1.3;margin-top:5px;white-space:nowrap}.header .header-actions{grid-area:actions;order:0;gap:9px;justify-content:flex-end}.header .sources{grid-area:sources;order:0;margin:0;display:flex;flex-wrap:nowrap;gap:8px;width:auto;min-width:0}.header .source-pill{min-width:0;max-width:none;flex:1;padding:9px 10px;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}.header .source-pill strong{font-size:13px;white-space:nowrap}.header .source-pill span{font-size:12px;white-space:nowrap}.header-stats{grid-area:stats;display:grid;grid-template-columns:1fr 1.2fr 1.45fr;gap:0;min-width:0;margin:0;align-self:center}.header-stat{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:2px 15px;border-left:1px solid #334b5b;cursor:help;outline:none}.header-stat:first-child{padding-left:0;border-left:0}.header-stat:last-child{padding-right:0}.header-stat .stat-label{font-size:12px;line-height:1.4;color:#9eb5c5;white-space:nowrap;text-decoration:underline dotted #4b6578;text-underline-offset:4px}.header-stat>strong{font-size:25px;font-weight:650;line-height:1.1;letter-spacing:-.6px;font-variant-numeric:tabular-nums;color:#f2f7fb}.header-stat:last-child>strong{color:#65d5b0}.header-stat:focus-visible{outline:2px solid #81b6ff;outline-offset:6px;border-radius:3px}.stat-tooltip{position:absolute;z-index:5;top:calc(100% + 13px);left:0;width:268px;padding:12px 14px;border:1px solid #d7e2eb;border-radius:9px;background:#fff;color:#38576d;box-shadow:0 7px 24px #10283833;font-size:13px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease}.stat-tooltip::before{content:"";position:absolute;top:-5px;left:20px;width:8px;height:8px;background:#fff;border-top:1px solid #d7e2eb;border-left:1px solid #d7e2eb;transform:rotate(45deg)}.header-stat:hover>.stat-tooltip,.header-stat:focus>.stat-tooltip{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}.header-stat::after{content:"";position:absolute;top:100%;left:0;right:0;height:15px}.workspace,#globalError:not([hidden])~.workspace{height:auto;min-height:0;flex:1 1 0;overflow:hidden}.fleet-panel,.map-column{min-height:0}#globalError{flex:none}.header-stats+.sources{margin:0}
@media(max-width:1450px) and (min-width:801px){.header{grid-template-columns:minmax(345px,1fr) minmax(370px,1.15fr);grid-template-areas:"brand actions" "stats sources";gap:13px 28px;padding:13px 22px 15px;min-height:0}.header .brand{min-width:0}.header .brand>div{display:grid;grid-template-columns:auto auto;column-gap:13px;align-items:center}.header .brand strong{grid-column:1}.header .brand span:not(.brand-icon){grid-column:1;font-size:12px;margin-top:2px}.header .brand .brand-updated{grid-column:2;grid-row:1 / 3;margin:0;padding-left:13px;border-left:1px solid #344c5d;font-size:11px}.header .brand-icon{width:37px;height:37px;font-size:24px}.header-stats{max-width:470px;grid-template-columns:1fr 1.2fr 1.45fr}.header-stat{padding-top:0;padding-bottom:0;gap:4px}.header-stat>strong{font-size:24px}.header .sources{gap:8px}.header .source-pill{padding:8px 11px;flex-direction:column;gap:4px}.header .header-actions .button{padding:9px 14px}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:11px}}
@media(max-width:1050px) and (min-width:801px){.header{grid-template-columns:minmax(325px,.95fr) minmax(330px,1fr);gap:13px 20px;padding-left:18px;padding-right:18px}.header-stat{padding-left:12px;padding-right:12px}.header-stat .stat-label{font-size:11px}.header .source-pill{padding:8px}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:11px}}
@media(max-width:800px){body{height:auto;min-height:100dvh;overflow:auto}.header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions" "stats stats" "sources sources";gap:13px 12px;height:auto;min-height:0;padding:14px 16px 13px;align-items:center}.header .brand{min-width:0}.header .brand-icon{width:36px;height:36px;font-size:24px}.header .brand strong{font-size:16px}.header .brand span:not(.brand-icon){font-size:12px}.brand-updated{font-size:10px;margin-top:3px}.header .header-actions{gap:6px;align-self:start;margin-top:1px}.header .header-actions .button{font-size:12px;padding:8px;min-height:36px}.header-stats{width:100%;grid-template-columns:1fr 1.2fr 1.4fr;padding:1px 0;max-width:none}.header-stat{gap:5px;padding:0 14px}.header-stat .stat-label{font-size:12px}.header-stat>strong{font-size:24px}.header .sources{display:flex;gap:6px;width:100%}.header .source-pill{padding:8px 9px;gap:4px;flex-direction:column;align-items:flex-start}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:11px}.header-stat:nth-child(2)>.stat-tooltip{left:50%;transform:translate(-50%,-3px)}.header-stat:nth-child(2):hover>.stat-tooltip,.header-stat:nth-child(2):focus>.stat-tooltip{transform:translate(-50%,0)}.header-stat:last-child>.stat-tooltip{left:auto;right:0}.header-stat:last-child>.stat-tooltip::before{left:auto;right:24px}.workspace,#globalError:not([hidden])~.workspace{flex:none;height:auto;min-height:0;overflow:visible}.map-column{height:64dvh;min-height:440px}.fleet-panel{height:450px;min-height:0}.stat-tooltip{max-width:calc(100vw - 32px)}}
@media(max-width:420px){.header{padding:12px;gap:12px 8px}.header .brand{gap:8px}.header .brand-icon{width:31px;height:31px;font-size:22px}.header .brand strong{font-size:14px;letter-spacing:.7px}.header .brand span:not(.brand-icon){font-size:11px}.header .header-actions .button{font-size:11px;padding:7px;gap:4px}.header-stat{padding:0 10px}.header-stat .stat-label{font-size:10px}.header-stat>strong{font-size:23px}.header .source-pill{padding:7px;gap:4px}.header .source-pill strong{font-size:11px;gap:5px}.header .source-pill span{font-size:10px}.stat-tooltip{font-size:12px;width:250px}}
@media(max-height:600px) and (min-width:801px){.map-wrap{min-height:180px}.detail-drawer .detail-panel{min-height:96px}}@media(prefers-reduced-motion:reduce){.stat-tooltip{transition:none}}

/* Compact vehicle strip and a separate archive workspace. */
.detail-drawer-handle{height:20px}.detail-drawer-handle button{height:19px;width:55px;border-radius:0 0 6px 6px}.detail-drawer-handle svg{width:17px;height:17px}.detail-drawer .detail-panel{min-height:85px;max-height:none;padding:10px 18px;overflow:hidden}.compact-vehicle{display:grid;grid-template-columns:110px minmax(120px,1fr) 90px 90px auto;align-items:center;gap:15px;min-width:0}.compact-photo{display:block;width:110px;height:65px;position:relative;flex-shrink:0;overflow:hidden;border-radius:7px;background:#f4f7fa;text-decoration:none;color:#55768c}.compact-photo img{display:block;width:100%;height:100%;object-fit:contain}.compact-photo>span:not(.vehicle-silhouette){position:absolute;left:0;right:0;bottom:0;line-height:1.3;text-align:center;padding:2px 3px;background:#ffffffd9;font-size:8px;letter-spacing:.2px;color:#7b909f}.compact-photo-fallback{padding:6px;color:#7294af}.compact-photo-fallback svg{width:100%;height:100%;display:block}.compact-identity{min-width:0}.compact-identity h2{font-size:18px;line-height:1.3;margin:0;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact-driver{font-size:13px;margin:4px 0 3px;color:#6c8292;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact-identity .signal{font-size:11px;line-height:1.4;color:#7d919f}.compact-identity .signal.fresh{color:#2e8c68}.compact-reading{min-width:0}.compact-reading>span{display:block;font-size:11px;color:#8b9ba7;margin-bottom:5px}.compact-reading>strong{display:block;font-size:14px;font-weight:600;white-space:nowrap}.compact-actions{display:flex;align-items:center;gap:7px}.button-compact{font-size:12px;min-height:32px;padding:7px 11px;border-radius:6px}.detail-drawer .detail-empty{padding:12px 0;min-height:65px}.detail-drawer .detail-empty h2{font-size:16px;margin-bottom:5px}.detail-drawer .detail-empty p{font-size:13px}.detail-drawer .detail-empty-icon{font-size:30px}
.statistics-dialog{width:1130px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 48px);padding:0;overflow:hidden}.statistics-heading{padding:23px 28px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5ecf2;background:#fff}.statistics-heading h2{font-size:23px}.statistics-heading .eyebrow{font-size:10px;margin-bottom:5px;color:#849eaf}.statistics-body{padding:22px 28px 24px;max-height:calc(100dvh - 145px);overflow:auto;background:#f8fafc}.statistics-filter{display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:17px 25px;align-items:end}.statistics-filter .field{font-size:13px;gap:7px}.statistics-filter select{width:100%;font-size:14px;min-height:40px;padding:10px 32px 10px 12px;background-color:#fff;flex:none}.statistics-filter input{padding:9px 11px;min-height:40px;font-size:14px;background:#fff;color:#39566a}.field-caption{display:block;font-size:13px;font-weight:600;color:#4b6374;margin-bottom:7px}.period-segments{display:flex;background:#e9eff5;padding:3px;border-radius:8px;gap:2px}.period-segments button{padding:8px 14px;border:0;background:none;border-radius:6px;font-size:13px;font-weight:600;white-space:nowrap;color:#758b9c;min-height:34px}.period-segments button[aria-pressed=true]{background:#fff;color:#246bc1;box-shadow:0 1px 4px #243f5a13}.statistics-date-row{grid-column:1/-1;display:flex;gap:11px;align-items:flex-end;flex-wrap:wrap}.statistics-date-row .button{min-height:40px;padding:9px 14px}.statistics-date-row .text-button{padding:12px 0;font-size:12px;white-space:nowrap}.statistics-range-fields{display:flex;gap:10px}.statistics-stop-field{width:126px}.statistics-month-caption{font-size:14px;font-weight:600;color:#52738c;padding:11px 0;margin-right:4px}.statistics-result-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 16px}.statistics-result-heading h3{margin:0 0 5px;font-size:17px;line-height:1.4;font-weight:650}.statistics-result-heading>div>span{display:block;font-size:12px;color:#8a9ca9}.statistics-result-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.statistics-result-actions .button{min-height:34px;font-size:12px;padding:8px 11px}.statistics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.statistics-metric{padding:16px 18px 13px;border:1px solid #e0e8ef;background:#fff;border-radius:9px;min-width:0}.statistics-metric>span{display:block;color:#7890a1;font-size:12px}.statistics-metric>strong{display:block;font-size:25px;line-height:1.2;margin:8px 0;color:#264b67;font-weight:650;letter-spacing:-.5px;overflow-wrap:anywhere}.statistics-metric>small{display:block;color:#93a3af;font-size:11px;line-height:1.4}.statistics-metric.metric-primary{background:#edf5ff;border-color:#c9ddf7}.statistics-metric.metric-primary>strong{color:#1b6bc9}.statistics-notes{font-size:12px;line-height:1.5;color:#8498a8;margin:13px 1px 18px}.statistics-table-wrap{border:1px solid #e0e8ef;border-radius:9px;background:#fff;overflow:auto;max-height:330px}.statistics-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}.statistics-table th{position:sticky;top:0;z-index:1;background:#f0f5f9;border-bottom:1px solid #dfe8ef;color:#7890a1;font-size:11px;font-weight:600;padding:12px 14px}.statistics-table td{padding:11px 14px;border-bottom:1px solid #edf2f6;color:#49687f;vertical-align:middle;font-variant-numeric:tabular-nums}.statistics-table tbody tr:last-child td{border-bottom:0}.statistics-table td strong{font-weight:600;color:#39566d}.statistics-table td:not(:first-child){text-align:right}.statistics-table th:not(:first-child){text-align:right}.statistics-table tbody tr:hover{background:#fafcff}.statistics-no-data td{color:#a7b4bf}.day-no-data{display:block;font-size:10px;color:#a0afba;margin-top:4px}.table-route-button{border:1px solid #d8e5f4;background:#f3f8ff;color:#3476bb;border-radius:5px;padding:5px 9px;font-size:11px;font-weight:600}.table-route-button:hover{background:#e5f0ff}.statistics-table-empty{text-align:center!important;padding:28px!important;color:#8ba0b0!important;white-space:normal}.statistics-vehicle-info{border:1px solid #e2eaf1;background:#fff;border-radius:9px;padding:15px 18px;margin-top:17px}.statistics-car-heading{display:flex;align-items:center;gap:13px}.statistics-car-photo{width:82px;height:46px}.statistics-car-heading>div{display:flex;flex-direction:column;gap:5px;min-width:0}.statistics-car-heading strong{font-size:15px;font-weight:600}.statistics-car-heading>div>span{font-size:12px;color:#8a9eac}.statistics-vehicle-info .vehicle-more{margin-top:12px;padding-top:12px;font-size:13px}.statistics-vehicle-info .info-row{font-size:13px;grid-template-columns:220px minmax(0,1fr)}.statistics-vehicle-info .vehicle-note{font-size:12px}.statistics-progress{padding:13px 15px;background:#edf5ff;border:1px solid #d5e5fa;border-radius:8px;margin:18px 0 0}.statistics-progress>div{display:flex;align-items:center;justify-content:space-between;gap:15px}.statistics-progress span{font-size:13px;color:#4e79a3}.statistics-progress button{border:0;background:none;color:#377ac2;padding:3px 0;font-size:12px}.statistics-progress progress{display:block;width:100%;height:5px;margin-top:12px;accent-color:#2678dd;border:0;border-radius:4px;overflow:hidden}.statistics-progress progress::-webkit-progress-bar{background:#d7e7f9}.statistics-progress progress::-webkit-progress-value{background:#2678dd}.statistics-body>.form-error{font-size:13px;padding:11px 13px;background:#fff1ed;border-radius:7px;border:1px solid #f0d5cc}.statistics-body>.form-error:empty{display:none}.is-disabled{pointer-events:none;opacity:.5}
.history-legend{flex-wrap:wrap;max-width:calc(100% - 40px);gap:8px 10px}.track-stops-summary{color:#bb742a;font-weight:600;font-size:12px;border-left:1px solid #e4eaf0;padding-left:10px}.possible-stops-toggle{font-size:11px;color:#8899a7;display:flex;align-items:center;gap:4px}.possible-stops-toggle input{accent-color:#8498aa;width:13px;height:13px;margin:0}.stop-map-icon{background:none;border:0}.stop-map-pin{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e99b45;border:2px solid #fff;color:#fff;font-size:12px;font-weight:700;box-shadow:0 2px 6px #7c531c55}.stop-map-pin.possible{background:#f3f5f7;color:#8494a1;border:2px dashed #aab6bf;box-shadow:0 2px 6px #243d5022}.stop-popup{display:flex;flex-direction:column;gap:7px;font-family:inherit;color:#637f93;font-size:12px;line-height:1.4}.stop-popup>strong{font-size:14px;color:#36566e;margin-bottom:3px}.stop-map-popup .leaflet-popup-content{margin:16px}
@media(min-width:1560px){.statistics-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.statistics-metric{padding:14px 12px}.statistics-metric>strong{font-size:23px}}
@media(max-width:1250px) and (min-width:801px){.compact-vehicle{grid-template-columns:100px minmax(100px,1fr) 70px 70px 92px;gap:10px}.compact-photo{width:100px}.compact-actions{flex-direction:column;align-items:stretch;gap:5px}.button-compact{min-height:28px;padding:5px 8px;font-size:11px}.compact-identity h2{font-size:16px}.compact-reading>strong{font-size:12px}.compact-driver{font-size:12px}.detail-drawer .detail-panel{padding:10px 14px}}
@media(max-width:1000px){.statistics-dialog{max-width:calc(100vw - 24px)}.statistics-heading{padding:20px 23px 16px}.statistics-body{padding:18px 22px 22px}.statistics-result-heading{align-items:flex-start}.statistics-result-actions{gap:6px}.statistics-metric{padding:14px}.statistics-metric>strong{font-size:23px}.statistics-table th,.statistics-table td{padding-left:11px;padding-right:11px}.statistics-filter{gap:15px}.period-segments button{padding:8px 10px;font-size:12px}}
@media(max-width:800px){.header{grid-template-areas:"brand brand" "actions actions" "stats stats" "sources sources";gap:10px 12px}.header .brand{justify-content:flex-start}.header .brand>div{display:grid;grid-template-columns:auto auto;column-gap:13px;align-items:center}.header .brand strong{grid-column:1}.header .brand span:not(.brand-icon){grid-column:1}.header .brand .brand-updated{grid-column:2;grid-row:1/3;margin:0;padding-left:13px;border-left:1px solid #344c5d}.header .header-actions{display:grid;grid-template-columns:repeat(3,1fr);width:100%;margin:0;gap:7px}.header .header-actions .button{padding:7px 10px;min-height:33px}.compact-vehicle{grid-template-columns:90px minmax(95px,1fr) auto;gap:8px 11px}.compact-photo{grid-row:1/3;width:90px;height:62px}.compact-identity{grid-row:1/3}.compact-identity h2{font-size:16px}.compact-driver{font-size:12px}.compact-reading{display:none}.compact-actions{grid-column:3;grid-row:1/3;flex-direction:column;align-items:stretch;gap:5px}.compact-actions .button{font-size:11px;min-height:28px;padding:5px 8px}.detail-drawer .detail-panel{min-height:82px;padding:10px 13px}.detail-drawer .detail-empty{min-height:62px;padding:10px 0}.statistics-dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px)}.statistics-heading{padding:17px 18px 14px}.statistics-heading h2{font-size:20px}.statistics-body{padding:16px 17px 18px;max-height:calc(100dvh - 108px)}.statistics-filter{grid-template-columns:1fr}.statistics-period{grid-column:1}.period-segments{width:100%}.period-segments button{flex:1}.statistics-date-row{gap:9px}.statistics-date-row .button{font-size:12px;padding:9px 11px}.statistics-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.statistics-metric{padding:13px 14px}.statistics-metric>strong{font-size:22px}.statistics-result-heading{flex-direction:column;gap:11px;margin-top:20px}.statistics-result-heading h3{font-size:16px}.statistics-result-actions{width:100%}.statistics-result-actions .button:first-child{flex:1}.statistics-vehicle-info{padding:13px}.statistics-vehicle-info .info-row{grid-template-columns:1fr 1.2fr;gap:10px}.statistics-notes{font-size:11px}.statistics-table-wrap{max-height:310px}.history-legend{max-width:calc(100% - 24px);font-size:11px}.track-stops-summary{font-size:11px}.statistics-stop-field{width:110px}.statistics-progress>div{align-items:flex-start}.statistics-progress span{font-size:12px}.statistics-progress button{font-size:11px;white-space:nowrap}}
@media(max-width:420px){.compact-vehicle{grid-template-columns:72px minmax(80px,1fr) auto;gap:8px}.compact-photo{width:72px;height:56px}.compact-identity h2{font-size:14px}.compact-driver{font-size:11px}.compact-identity .signal{font-size:10px}.detail-drawer .detail-panel{padding:9px 10px;min-height:76px}.compact-actions .button{font-size:10px;padding:5px 7px}.statistics-date-row .field>input{max-width:146px}.statistics-range-fields{gap:8px;width:100%}.statistics-range-fields .field{flex:1;min-width:0}.statistics-range-fields input{width:100%}.statistics-metric>strong{font-size:20px}.statistics-metric>small{font-size:10px}}

@media(max-width:800px){.compact-photo,.compact-identity{grid-row:1}.compact-reading{display:flex;align-items:baseline;gap:4px;grid-row:2}.compact-reading:nth-child(3){grid-column:1}.compact-reading:nth-child(4){grid-column:2}.compact-reading>span{font-size:9px;margin:0}.compact-reading>strong{font-size:10px}.compact-actions{grid-row:1/3}.compact-vehicle{row-gap:6px}.compact-photo{height:54px}}

.statistics-calculation-hint{font-size:12px;line-height:1.5;color:#8498a8;margin:13px 1px 18px}.statistics-method{margin:14px 1px 0}.statistics-method>summary{font-size:12px;color:#6d8eaa;cursor:pointer;line-height:1.5}.statistics-method .statistics-notes{margin:10px 0 0;padding:12px 15px;border:1px solid #e2eaf1;background:#fff;border-radius:8px;font-size:12px;line-height:1.6;color:#7b919f}.statistics-method .statistics-notes>p{font-size:12px;line-height:1.6;margin:0;color:inherit}.statistics-method .statistics-notes ul{margin:8px 0 0;padding-left:18px}.statistics-method .statistics-notes li+li{margin-top:6px}

/* Optional current-day route layer and the fuel information entry point. */
.today-routes-toggle{white-space:nowrap}.today-routes-toggle>span:nth-of-type(3){font-size:11px;color:#8799a7;min-width:25px}.fuel-information-footer{padding:12px 16px}.fuel-information-footer>.button{width:100%;font-size:14px;min-height:40px;color:#42759d;background:#f8fbff;border-color:#d8e5f1}.fuel-information-footer>.button:hover{background:#eaf3fe}.route-tooltip{font-weight:600}.map-toolbar-left{max-width:calc(100% - 115px)}@media(max-width:1100px){.map-toolbar-left{gap:6px}.map-toolbar-left .map-caption{font-size:12px}.today-routes-toggle{font-size:11px}}@media(max-width:800px){.map-toolbar-left{max-width:calc(100% - 95px)}.map-toolbar-left .map-caption{font-size:11px}.today-routes-toggle{font-size:11px}.fuel-information-footer{padding:12px 16px}}

@media(max-width:1100px){.map-notice{top:112px}}@media(max-width:560px){.map-notice{top:150px}}
.map-stop-setting{display:flex;align-items:center;gap:6px;min-height:35px;padding:5px 9px;background:#fff;border:1px solid #d7e0e8;border-radius:7px;box-shadow:0 3px 14px #233f581c;font-size:11px;color:#5e7b92;pointer-events:auto;white-space:nowrap}.map-stop-setting input{width:55px;min-width:0;border:1px solid #d9e4ee;border-radius:4px;background:#f8fbff;color:#3b6f9b;font-size:12px;font-weight:600;padding:3px 4px;font-variant-numeric:tabular-nums}.map-stop-setting input:invalid{border-color:#d7968c}.statistics-stop-field input{width:100%;max-width:126px}.statistics-stop-unit{font-size:11px;color:#8fa3b2;font-weight:400}.map-stop-setting .sr-only{white-space:normal}@media(max-width:560px){.map-stop-setting{font-size:10px;padding:5px 7px;gap:5px}.map-stop-setting input{width:48px;font-size:11px}.map-notice{top:192px}}
.track-quality{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.5;color:#ae925a;white-space:nowrap}.track-quality::before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:50%;background:#fbf2dd;color:#b1934e;font-size:10px;font-weight:700}.history-legend .track-quality[hidden],.history-legend .possible-stops-toggle[hidden]{display:none}

/* Realistic vehicle models are limited to map markers. The dot is the GPS anchor. */
.car-icon-real{background:transparent;border:0;overflow:visible;opacity:1;pointer-events:none}
.car-pin.car-pin-real{position:relative;display:block;width:80px;height:58px;padding:0;border:0;border-radius:0;background:transparent;color:#ff6a00;--car-outline:#ff6a00;box-shadow:none;transform:scale(var(--vehicle-map-scale,1));transform-origin:40px 54px;overflow:visible;opacity:1;pointer-events:auto}
.car-pin.car-pin-real::after{content:none}
.car-pin-real::before{content:"";position:absolute;left:8px;top:12px;width:64px;height:34px;border-radius:50%;background:transparent;pointer-events:none}
.car-pin-real .map-car-image{position:absolute;left:4px;top:0;width:72px;height:46px;max-width:none;object-fit:contain;object-position:center bottom;display:block;border:0;pointer-events:none;user-select:none}
.car-pin-real .map-car-fallback{position:absolute;left:11px;top:5px;width:58px;height:38px;display:none;color:inherit;pointer-events:none}
.car-pin-real .map-car-image,.car-pin-real .map-car-fallback{opacity:1;filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1.5px 0 0 var(--car-outline)) drop-shadow(-1.5px 0 0 var(--car-outline)) drop-shadow(0 1.5px 0 var(--car-outline)) drop-shadow(0 -1.5px 0 var(--car-outline)) drop-shadow(0 2px 2px #18304a88)}
.car-pin-real.art-unavailable .map-car-image{display:none}
.car-pin-real.art-unavailable .map-car-fallback{display:flex}
.car-pin-real .car-coordinate-dot{position:absolute;left:36px;top:50px;width:8px;height:8px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:currentColor;box-shadow:0 1px 4px #15395266;pointer-events:none}
.car-pin.car-pin-real.stale{background:transparent;color:#84939f;--car-outline:#84939f;opacity:1}
.car-pin-real.stale .map-car-image,.car-pin-real.stale .map-car-fallback{opacity:1}
.car-pin.car-pin-real.active{background:transparent;color:#005bff;--car-outline:#005bff;box-shadow:none;transform:scale(var(--vehicle-map-scale,1));opacity:1}
.car-pin-real.active::before{background:#0066ff26;box-shadow:0 0 8px 4px #0066ff40}
.car-pin-real.active.stale .map-car-image{opacity:1}
.car-pin-real.active .car-coordinate-dot{box-shadow:0 0 0 3px #2681ee30,0 1px 4px #15395266}
.car-icon-real:focus-visible{outline:none}
.car-icon-real:focus-visible .car-pin-real::before{outline:2px solid #1269e7;outline-offset:4px}

/* The same opaque model previews are used throughout the fleet and editor. */
.vehicle-model-art{display:block;position:relative;width:100%;height:100%;opacity:1;pointer-events:none}
.vehicle-model-art>img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;opacity:1;filter:drop-shadow(0 1px 1px #18304a33);user-select:none}
.vehicle-model-art>.vehicle-model-fallback{display:none;width:100%;height:100%}
.vehicle-model-art.is-fallback>img{display:none}
.vehicle-model-art.is-fallback>.vehicle-model-fallback{display:flex;align-items:center;justify-content:center}
.manage-vehicle-row>.vehicle-silhouette{display:inline-flex}
.compact-photo-model{padding:3px;background:#f4f7fa}

/* Branded header and the reserved source for our own trackers. */
.header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"brand monitoring actions";gap:16px}
.header .brand{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;justify-self:start;gap:4px;min-width:0}
.header .header-actions{justify-self:end}
.header .brand-logo{display:block;width:240px;max-width:100%;height:auto;flex:none;object-fit:contain;object-position:left center}
.header .brand .brand-updated{display:block;grid-area:auto;padding:0;border:0;margin:0;font-size:11px;line-height:1.3}
.header-monitoring{grid-area:monitoring;display:grid;grid-template-columns:156px 480px;gap:8px;align-items:stretch;justify-self:center;min-width:0}
.header .sources{grid-area:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:stretch;width:auto;min-width:0}
.header .source-pill{min-width:0;padding:7px 8px;gap:4px;justify-content:center}
.header .source-pill strong{gap:5px;font-size:12px;line-height:1.25}
.header .source-pill span{font-size:10px;line-height:1.3}
.header .source-dot.disconnected{background:#ff5d63}
.fleet-summary{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:0;padding:7px 12px;border:1px solid #344c5d;border-radius:8px;background:#203645;color:#e6eff6;cursor:help;outline:none}
.fleet-summary-label{font-size:11px;line-height:1.3;white-space:nowrap;color:#a9becd;text-decoration:underline dotted #5f7788;text-underline-offset:3px}
.fleet-summary>strong{font-size:20px;line-height:1.1;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;color:#f2f7fb}
.fleet-summary:focus-visible{outline:2px solid #81b6ff;outline-offset:3px}
.fleet-summary:hover>.stat-tooltip,.fleet-summary:focus>.stat-tooltip{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
.fleet-summary::after{content:"";position:absolute;top:100%;left:0;right:0;height:15px}
@media(max-width:1550px) and (min-width:801px){.header{grid-template-columns:minmax(240px,1fr) auto;grid-template-areas:"brand actions" "monitoring monitoring";gap:12px 24px;padding:12px 22px 14px;min-height:0}.header .brand{flex-direction:row;align-items:center;flex-wrap:wrap;gap:7px 15px}.header .brand-logo{width:230px}}
@media(max-width:1050px) and (min-width:801px){.header{gap:12px 20px;padding-left:18px;padding-right:18px}}
@media(max-width:800px){.header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand brand" "actions actions" "monitoring monitoring";gap:10px 12px}.header .brand{flex-direction:row;align-items:center;flex-wrap:wrap;gap:7px 15px}.header .brand-logo{width:230px}.header .brand .brand-updated{font-size:10px}.header-monitoring{width:100%;grid-template-columns:150px minmax(0,1fr)}.header .source-pill{padding:7px 8px}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:10px}}
@media(max-width:700px){.header .sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.header .source-pill{padding:7px 10px}.header .source-pill strong{font-size:12px}.header .source-pill span{font-size:10px}}
@media(max-width:560px){.header-monitoring{grid-template-columns:minmax(0,1fr);gap:6px}.fleet-summary{flex-direction:row;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px}.fleet-summary>strong{font-size:19px}}

/* Vehicle navigation stays outside the statistics sheet when space permits. */
.statistics-dialog{overflow:visible}
.statistics-heading{border-radius:13px 13px 0 0}
.statistics-body{border-radius:0 0 13px 13px}
.statistics-vehicle-picker{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.statistics-vehicle-picker .statistics-vehicle{min-width:0}
.statistics-vehicle-arrow{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:46px;height:56px;padding:0;border:1px solid #c8d8e7;border-radius:14px;background:#fffffff2;color:#4c7191;box-shadow:0 5px 22px #15374e26;transform:translateY(-50%);cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.statistics-vehicle-previous{left:-60px}
.statistics-vehicle-next{right:-60px}
.statistics-vehicle-arrow svg{display:block;width:25px;height:25px;pointer-events:none}
.statistics-vehicle-arrow:hover:not(:disabled){background:#edf5ff;color:#146bd2;box-shadow:0 5px 24px #15374e3d}
.statistics-vehicle-arrow:focus-visible{outline:3px solid #7eb7ff;outline-offset:3px}
.statistics-vehicle-arrow:disabled{opacity:.42;cursor:default;box-shadow:none}
.statistics-vehicle-arrow-inline{display:none}
@media(min-width:1001px){.statistics-dialog{max-width:calc(100vw - 160px)}}
@media(max-width:1000px){.statistics-vehicle-picker{grid-template-columns:38px minmax(0,1fr) 38px;align-items:end;gap:8px}.statistics-vehicle-arrow-outside{display:none}.statistics-vehicle-arrow-inline{display:flex;position:static;transform:none;width:38px;height:40px;border-radius:9px;background:#fff;box-shadow:none}.statistics-vehicle-arrow svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.statistics-vehicle-arrow{transition:none}}
.settings-session-actions{display:flex;align-items:center;gap:12px}.login-remember{display:flex;align-items:center;gap:9px;margin-top:16px;font-size:14px;cursor:pointer}.login-remember input{width:17px;height:17px;flex-shrink:0;margin:0;accent-color:var(--blue)}#loginDialog .login-remember-help{font-size:12px;line-height:1.5;margin:8px 0 20px;color:var(--muted,#748693)}
