/* Surfaces and type from the БОТГЕРЦ site: graphite, hairline, corporate blue. */
:root{--blue:#1E40AF;--border:#E5E7EB;--text:#1F2937;--muted:#4B5563;--surface:#F9FAFB;--canvas:#F3F4F6;color:var(--text)}
body,main,aside,#sidebar,#monitor-panel{background:var(--surface)}button,input,select,textarea{border-color:#bdcbd5;background:#f7f9fa;color:#263747}button:hover{background:#e0eaf0;border-color:#819bac}button.primary,.accent{background:#1E40AF!important;border-color:#1E40AF!important;color:#fff!important}button:disabled{color:#667887;opacity:.65}input::placeholder{color:#5e7080;opacity:1}label,.help{color:#526477}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1E40AF;outline-offset:2px}header{background:#1F2937;color:#F9FAFB;border-bottom:1px solid #111827;box-shadow:none}header button{color:#F9FAFB}header button:hover{background:rgb(255 255 255 / .08)}header nav button.active{background:#1E3A8A;color:#fff;box-shadow:inset 0 -3px #93C5FD}#selection-card,.leaflet-popup-content-wrapper{background:#f6f8f9;color:#263747}#selection-card .card-title{background:#f6f8f9}.popup-grid span,.sensor-row small,.popup-params small,.unit-main small{color:#526477}.desktop-unit-row.unit-row{background:#e8edf1}.desktop-unit-row.unit-row:hover{background:#dce7ed}.desktop-unit-row.unit-row.selected{background:#EFF6FF;box-shadow:inset 0 0 0 1px #1E40AF}.desktop-unit-icon{color:#526779}.desktop-row-actions button,.desktop-watch{color:#4d6275}.desktop-status .green,.desktop-recency .green{color:#238646}.desktop-status .gray,.desktop-recency .gray{color:#788692}.desktop-status .red,.desktop-recency .red{color:#c73f38}.yellow{color:#a17813}.orange{color:#b45e13}#sidebar-footer,#pagination,.list-caption,.desktop-list-caption{color:#536576;background:#e7edf1}.searchbar,.list-tools,.desktop-work-controls{background:#e7edf1}#tablewrap,.table-toolbar{background:#f1f4f6}th{background:#dee6ec;color:#354c60}tbody tr:nth-child(even){background:#edf1f4}tbody tr:hover{background:#dce9ef}dialog{background:#f1f4f6;color:#263747}.dialog-title{background:#dfe7ed}.fleet-card-body,.fleet-card-content,.fleet-profile-form{color:#263747}#toast{background:#eaf1f4;color:#263747;border-color:#99afbd}#monitor-tooltip{background:#f3f6f8;color:#263747}
/* A single, responsive identity shared by monitoring and CMS. */
#login.access-screen,#cms-login.access-screen{position:fixed;inset:0;z-index:2000;display:grid;grid-template-columns:minmax(340px,1fr) minmax(360px,460px);align-content:center;gap:64px;padding:clamp(24px,6vw,100px);overflow:auto;background:#F9FAFB;color:#1F2937}
.access-story{max-width:620px;justify-self:center;align-self:center;width:100%}.access-art{position:relative;text-align:center;padding:30px 20px}.access-art:before{content:'';position:absolute;inset:0;opacity:.28;background-image:linear-gradient(#7c9eac28 1px,transparent 1px),linear-gradient(90deg,#7c9eac28 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(ellipse,black,transparent 70%);pointer-events:none}.access-orbits img{width:84px;height:84px}.access-slogan{font-size:clamp(16px,2vw,23px);letter-spacing:.1px;color:#3e596e;margin:28px 0 8px}.access-wordmark{display:block;width:min(100%,400px);height:auto;margin:0 auto}.access-route{position:relative;height:22px;margin:24px auto;width:75%;border-top:1px solid #9aafbc}.access-route:before{content:'';position:absolute;top:-2px;left:0;width:83%;height:3px;background:linear-gradient(90deg,#2b8d9c30,#2b8d9c)}.access-route i{position:absolute;top:-4px;width:7px;height:7px;background:#6d909f;border-radius:50%}.access-route i:nth-child(2){left:40%}.access-route i:nth-child(3){left:80%}.access-route>span{position:absolute;left:82%;top:-22px;width:36px;color:#426578}.access-route svg{width:100%;height:27px}.access-caption{border-top:1px solid #acbec9;margin:20px 40px 0;padding-top:24px;color:#405d70}.access-caption>span{font-size:10px;letter-spacing:2.5px;font-weight:700}.access-caption p{font-size:15px;line-height:1.7;margin-bottom:0}
#login.access-screen form,#cms-login.access-screen form{background:#f1f4f6;border:1px solid #bfcdd7;border-radius:18px;padding:32px;width:100%;max-width:460px;box-shadow:0 18px 55px #233e5120;justify-self:center;align-self:center;border-top:3px solid #1E40AF}.access-form .brand{margin:0 0 12px!important}.access-form .brand-emblem{width:32px!important;height:32px!important;flex-basis:32px!important}.access-form .brand-wordmark{font-size:23px!important}.access-form .brand small{font-size:7px!important;letter-spacing:2px!important}.access-form h1{font-size:23px!important;font-weight:650!important;color:#273e52!important;margin:20px 0 8px!important}.access-lead{font-size:13px;line-height:1.5;color:#526b7e;margin:0 0 26px}.access-form label{font-weight:600!important;font-size:12px!important;color:#344e63!important;margin:16px 0 7px!important}.access-screen form input{height:46px!important;background:#e8eef2;border:1px solid #aebfcb!important;border-radius:8px!important;padding:10px 12px!important;margin:0!important;width:100%!important}.access-screen form button.primary{height:46px!important;border-radius:8px!important;margin-top:24px!important;font-weight:600!important;font-size:14px}.access-password{position:relative}.access-password input{padding-right:88px!important}.access-screen .access-password-toggle{position:absolute;right:4px;top:4px;min-height:38px;height:38px!important;width:78px!important;margin:0!important;border:0;background:transparent;color:#326277;font-size:11px;padding:4px!important}.access-screen .auth-links{padding-top:12px;border-top:1px solid #cdd7de;margin-top:24px!important;gap:12px!important}.access-screen .auth-links button{font-size:12px!important;color:#255d75!important;min-height:32px!important}.access-screen form>small{display:none}#error,#cms-login-error{color:#a52b34!important;line-height:1.5}
.web-entrance{position:fixed;inset:0;z-index:2100;pointer-events:none;background:radial-gradient(ellipse at center,#bfd7de,#dfe6eb 70%);display:grid;place-items:center;animation:entrance-out .6s 1.9s both}.web-entrance .access-art{width:min(520px,90vw)}.web-entrance .access-slogan{animation:entrance-text .55s .05s both}.web-entrance .access-wordmark{animation:entrance-brand .8s .55s both}.web-entrance .access-orbits{animation:entrance-brand .9s .7s both}.web-entrance .access-route{animation:entrance-text .5s 1s both}.web-entrance .access-route>span{animation:entrance-car 1.3s .6s both}@keyframes entrance-text{from{opacity:0}to{opacity:1}}@keyframes entrance-brand{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}@keyframes entrance-car{from{left:0}to{left:82%}}@keyframes entrance-out{to{opacity:0;visibility:hidden}}@media(max-width:900px){#login.access-screen,#cms-login.access-screen{grid-template-columns:1fr;padding:24px;gap:20px}.access-story{display:none}.access-screen form{max-width:440px!important}}@media(prefers-reduced-motion:reduce){.web-entrance{display:none}.access-orbits *{animation:none!important}}
#freshness-banner{position:fixed;top:62px;left:50%;transform:translateX(-50%);z-index:1900;max-width:90vw;border:1px solid #b9823e;border-radius:8px;padding:12px 20px;background:#f8e8d0;color:#71430d;box-shadow:0 3px 15px #442c1720;font-size:13px}.data-stale .desktop-statuses{opacity:.6}.track-sample-time{color:#4d6275;margin:5px 0 10px}.track-sample .popup-params{max-height:240px}
.vehicle-marker{font-size:0;line-height:0;filter:drop-shadow(0 1px 2px #29425260)}.vehicle-marker.offline{filter:grayscale(.85) opacity(.7)}.vehicle-marker svg{overflow:visible}

.app-downloads{border-top:1px solid #c7d1d9;margin-top:20px;padding-top:16px;display:grid;gap:10px}.app-downloads strong{font-size:12px;color:#344e63}.app-downloads a{padding:12px;border-radius:8px;background:#EFF6FF;color:#1E3A8A;text-decoration:none;font-weight:600;text-align:center}.app-downloads small{color:#526477;font-size:11px}
/* One static login layout from first paint; daily local vector route animation. */
.daily-journey{width:min(100%,440px);margin:16px auto 0;min-height:150px}.journey-scene{width:100%;height:auto;display:block}.journey-route{stroke-dasharray:700;animation:journey-draw 2s ease-out both}.journey-beacon{transform-box:fill-box;transform-origin:center;animation:journey-beacon 2s 1.6s ease-out infinite}.daily-entrance.web-entrance{animation:entrance-out .4s 2.2s both}.daily-entrance .access-art{width:min(620px,92vw);padding:24px}.daily-entrance .access-orbits img{width:64px;height:64px;margin-top:18px}.daily-entrance .daily-journey{min-height:150px}.daily-entrance .access-slogan{margin-top:0}.daily-entrance .access-wordmark{animation:entrance-brand .8s .4s both}.access-screen .access-art{padding-bottom:0}.access-screen .access-caption{margin-top:0}@keyframes journey-draw{from{stroke-dashoffset:700}to{stroke-dashoffset:0}}@keyframes journey-beacon{0%{opacity:.6;transform:scale(.8)}100%{opacity:0;transform:scale(1.6)}}@media(prefers-reduced-motion:reduce){.journey-route,.journey-beacon{animation:none}.journey-car{transform:translate(30px,90px)}}

.map-cache-settings{margin:18px 0 14px;padding:14px;border:1px solid #bdcbd5;border-radius:8px;background:#e7edf1}.map-cache-settings h3{font-size:14px;margin:0 0 12px}.map-cache-settings p{font-size:12px;line-height:1.6}.map-cache-settings .help{padding:0}.map-cache-settings button{font-size:12px}

.duotec-yandex-layer{position:absolute;left:0;top:0;overflow:hidden;z-index:0}.duotec-yandex-layer [class*=copyrights-pane]{pointer-events:auto}
/* Keep account access reachable while the section strip scrolls on narrow windows. */
header nav{min-width:0;flex:1 1 auto;overflow:hidden}header nav button{flex:none}#nav-back,#nav-more{flex:none;align-self:stretch;width:36px;padding:0;font-size:20px;line-height:1;letter-spacing:1px;border:0;border-radius:0;background:transparent}header .account{flex:0 0 auto;position:relative;z-index:2;background:inherit}.brand{flex-shrink:0}
@media(max-width:760px){header .brand{min-width:112px;padding-left:10px;padding-right:10px}header .brand-wordmark{font-size:20px}header .account{gap:4px;padding-right:4px}header .account #settings,header .account .cms-link{display:none}header nav button{padding-left:10px;padding-right:10px}}
@media(max-width:760px){header .account{display:flex}header .account #logout{font-size:12px}}

/* Шапка и тема рабочей области. Значения ставит настройка «Оформление». */
html[data-header=light] header{background:#fff;color:#1F2937;border-bottom:1px solid #E5E7EB}
html[data-header=light] header button{color:#1F2937}
html[data-header=light] header button:hover{background:#F3F4F6}
html[data-header=light] header nav button.active{background:#EFF6FF;color:#1E3A8A;box-shadow:inset 0 -3px #1E40AF}
html[data-header=light] .cms-top,html[data-header=light] .cms-link{color:#1F2937}
html[data-header=light] .cms-link:hover{background:#F3F4F6}
html[data-appearance=dark]{--text:#E5E7EB;--muted:#9CA3AF;--border:#374151;--surface:#111827;--canvas:#1F2937;color-scheme:dark}
html[data-appearance=dark] body,html[data-appearance=dark] main,html[data-appearance=dark] aside,html[data-appearance=dark] #sidebar,html[data-appearance=dark] #monitor-panel,html[data-appearance=dark] .cms-content{background:#111827;color:#E5E7EB}
html[data-appearance=dark] button,html[data-appearance=dark] input,html[data-appearance=dark] select,html[data-appearance=dark] textarea{background:#1F2937;color:#E5E7EB;border-color:#374151}
html[data-appearance=dark] button:hover{background:#374151;border-color:#4B5563}
html[data-appearance=dark] button.primary,html[data-appearance=dark] .accent{background:#1E40AF!important;border-color:#1E40AF!important;color:#fff!important}
html[data-appearance=dark] label,html[data-appearance=dark] .help,html[data-appearance=dark] .cms-side-title{color:#D1D5DB}
html[data-appearance=dark] .desktop-unit-row.unit-row{background:#1F2937;color:#E5E7EB}
html[data-appearance=dark] .desktop-unit-row.unit-row:hover{background:#374151}
html[data-appearance=dark] .desktop-unit-row.unit-row.selected{background:#1E3A8A;box-shadow:inset 0 0 0 1px #93C5FD}
html[data-appearance=dark] .searchbar,html[data-appearance=dark] .list-tools,html[data-appearance=dark] .desktop-work-controls,html[data-appearance=dark] #sidebar-footer,html[data-appearance=dark] footer,html[data-appearance=dark] .cms-sidebar{background:#0F172A;color:#E5E7EB}
html[data-appearance=dark] .cms-sidebar nav button{background:#1F2937;color:#E5E7EB;border-bottom-color:#374151}
html[data-appearance=dark] .cms-sidebar nav button.active{background:#1E3A8A;color:#fff;box-shadow:inset 3px 0 #93C5FD}
html[data-appearance=dark] dialog,html[data-appearance=dark] .dialog-title,html[data-appearance=dark] #tablewrap,html[data-appearance=dark] .table-toolbar{background:#1F2937;color:#E5E7EB}
html[data-appearance=dark] th{background:#111827;color:#E5E7EB}
html[data-appearance=dark] tbody tr:nth-child(even){background:#111827}
html[data-appearance=dark] tbody tr:hover{background:#1E3A8A}
html[data-header=dark] header button{color:#F9FAFB;background:transparent;border-color:transparent}
html[data-header=light] header button{color:#1F2937;background:transparent;border-color:transparent}
html[data-header=dark] header button:hover{background:rgb(255 255 255 / .08)}
html[data-header=light] header button:hover{background:#F3F4F6}

/* Vehicle pins and labels use the same compact footprint at every zoom. */
.vehicle-marker{display:grid;place-items:center;width:24px;height:24px;filter:drop-shadow(0 1px 1px #24394b55)}
.vehicle-marker svg.vehicle-art{width:22px;height:22px;display:block}
.vehicle-marker.offline{filter:grayscale(.85) opacity(.78)}
.leaflet-tooltip.unit-label{max-width:142px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 7px;border:1px solid #c6d2db;border-radius:6px;background:#f8fbfdef;color:#294356;font-size:11px;font-weight:600;line-height:1.2;box-shadow:0 1px 3px #23394b24}
.leaflet-tooltip.unit-label::before{display:none}
.leaflet-tooltip.unit-label-selected{border-color:#4c93a4;color:#165c70;background:#f0fbfe}
.leaflet-tooltip.unit-label-overlap{visibility:hidden}
