/* Лидер Автопарк v26 — компактный заголовок, настраиваемая главная. */
#app .bar.fleet-home-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;min-height:66px;margin:1px 0 12px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 22px #17202a0b}
#app .bar.fleet-home-topbar>div:first-child{flex:1;min-width:0}
#app .bar.fleet-home-topbar #pagetitle{font-size:clamp(19px,4vw,23px);line-height:1.1;font-weight:870;letter-spacing:-.5px;margin:0 0 4px}
#app .bar.fleet-home-topbar #subtitle{font-size:11px;color:var(--muted);display:block;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #counter.fleet-alert-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px;background:#fcf0e4;color:#865019;border:1px solid #edd5b1;border-radius:13px;box-shadow:none;font-size:11px;font-weight:790;padding:9px 10px;min-height:40px;white-space:normal;line-height:1.3;max-width:190px;flex:0 0 auto}
#app #counter.fleet-alert-button:hover{background:#f7e6cc;box-shadow:0 3px 12px #87571d1d}
#app #counter.fleet-alert-button:focus-visible{outline:3px solid #b32836;outline-offset:2px}
#fleetHomeGear{display:flex;align-items:center;justify-content:center;width:41px;height:41px;flex:0 0 41px;border:1px solid var(--line);border-radius:12px;background:var(--shade);color:inherit;padding:0;box-shadow:none}
#fleetHomeGear .tile-icon{width:20px;height:20px;color:#b6222d;transition:transform .4s ease}
#fleetHomeGear:hover .tile-icon{transform:rotate(70deg)}
.fleet-home-layout{display:grid;gap:14px;margin-top:0}
.fleet-home-part{display:block;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:14px 15px 16px;box-shadow:0 6px 20px #151c2510;animation:fleet-home-appear .28s ease both}
.fleet-home-part-shortcuts{border:0;background:transparent;box-shadow:none;padding:0}
.fleet-home-part-summary{border:0;background:transparent;box-shadow:none;padding:0}
.fleet-home-block-head{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 12px}
.fleet-home-block-head h3{font-size:15px;font-weight:860;line-height:1.35;letter-spacing:-.16px;margin:0;overflow-wrap:anywhere}
.fleet-home-part-shortcuts .fleet-home-block-head{margin:1px 2px 10px}
.fleet-home-part-summary .fleet-home-block-head{margin:1px 2px 10px}
.fleet-home-mini-button{display:grid;place-items:center;width:36px;height:36px;padding:0;background:var(--shade);border:1px solid var(--line);border-radius:11px;color:inherit;box-shadow:none}
.fleet-home-mini-button svg{width:18px;height:18px}
.fleet-home-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.fleet-home-shortcut{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-width:0;min-height:91px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:inherit;font-size:12px;font-weight:780;padding:11px 5px;box-shadow:0 6px 18px #141e290c;white-space:normal;line-height:1.3}
.fleet-home-shortcut>.tile-icon{width:28px;height:28px;color:#c22634}
.fleet-home-shortcut.selected{background:linear-gradient(120deg,#cf222e,#a9111e);color:white;border-color:#ba1724}
.fleet-home-shortcut.selected>.tile-icon{color:#fff}
.fleet-home-shortcut:hover{transform:translateY(-2px);box-shadow:0 7px 19px #111c2a20}
.fleet-home-shortcut:active{transform:scale(.97)}
.fleet-home-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.fleet-home-counter{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;min-width:0;padding:14px 14px 13px;background:var(--surface);border:1px solid var(--line);border-left:3px solid #ca2b34;color:inherit;border-radius:16px;box-shadow:0 5px 18px #1119230a}
.fleet-home-counter strong{font-weight:880;font-size:27px;line-height:1.2;font-variant-numeric:tabular-nums}
.fleet-home-counter span{font-size:11px;font-weight:650;line-height:1.35;color:var(--muted)}
.fleet-home-counter>.tile-icon{position:absolute;right:8px;top:10px;width:15px;height:15px;color:#b22a35;opacity:.58}
.fleet-home-counter:hover{box-shadow:0 6px 19px #111a281b}
.fleet-home-part-insights>.fleet-insight-grid{margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.fleet-home-part-insights .fleet-insight-tile{min-height:111px;padding:12px;box-shadow:none;border-radius:13px}
.fleet-home-part-insights .fleet-insight-tile>strong{margin:8px 0 3px;font-size:27px}
.fleet-home-part-insights .fleet-insight-tile>small{font-size:10px}
.fleet-home-part-alerts>.fleet-action-panel{margin:0;border:none;box-shadow:none;overflow:visible}
.fleet-home-part-alerts .fleet-action-clear{padding:6px 3px}
.fleet-home-part-alerts .fleet-action-items{padding:0}
.fleet-home-part-expenses .fleet-cost-section{margin:0;box-shadow:none;padding:14px}
.fleet-home-part-expenses .fleet-cost-head{display:flex;align-items:flex-start}
.fleet-home-part-expenses .fleet-cost-head h3{font-size:13px}
.fleet-home-part-expenses .fleet-cost-grid strong{font-size:21px}
.fleet-home-part-repair_pulse>.repair-pulse{margin:0}
.fleet-home-upcoming{display:grid;gap:7px}
.fleet-home-upcoming-row{display:flex;align-items:center;gap:11px;text-align:left;color:inherit;background:var(--shade);border:1px solid var(--line);border-radius:12px;padding:11px;box-shadow:none;min-width:0}
.fleet-home-upcoming-row>.tile-icon{width:18px;height:18px;color:#bf2a32;flex:0 0 18px}
.fleet-home-upcoming-row>.tile-icon:last-child{width:15px;height:15px;margin-left:auto;color:var(--muted)}
.fleet-home-upcoming-row span{flex:1;min-width:0}
.fleet-home-upcoming-row strong{font-size:12px;font-weight:770;line-height:1.35;display:block;overflow-wrap:anywhere}
.fleet-home-upcoming-row small{font-size:11px;color:var(--muted);line-height:1.4;display:block;margin-top:4px}
.fleet-home-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fleet-home-work{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--shade);min-width:0}
.fleet-home-work>strong{display:block;font-size:13px;margin:0 0 7px;overflow-wrap:anywhere}
.fleet-home-work>.vehicle-reference{margin:4px 0;white-space:normal;max-width:100%}
.fleet-home-work>small{display:block;font-size:11px;color:var(--muted);line-height:1.35;margin-top:7px}
.fleet-home-text-link{display:inline-flex;align-items:center;gap:3px;padding:7px 9px;border-radius:10px;background:var(--shade);border:1px solid var(--line);font-size:11px;color:inherit;box-shadow:none;font-weight:750}
.fleet-home-text-link svg{width:14px;height:14px}
.fleet-home-empty{margin:0;color:var(--muted);font-size:12px;line-height:1.45;display:flex;align-items:center;gap:9px}
.fleet-home-empty svg{width:18px;height:18px;color:#388b62}
.fleet-home-empty-box{padding:30px 18px;text-align:center;color:var(--muted);font-size:13px;background:var(--surface);border:1px dashed var(--line);border-radius:15px}
@keyframes fleet-home-appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
body.fleet-home-modal-open{overflow:hidden}
#fleetHomeSettings{position:fixed;inset:0;z-index:210;display:flex;justify-content:center;align-items:center;padding:env(safe-area-inset-top,10px) 13px env(safe-area-inset-bottom,10px)}
#fleetHomeSettings.hidden{display:none!important}
.fleet-home-modal-backdrop{position:absolute;inset:0;background:#0d1019b9;backdrop-filter:blur(7px)}
.fleet-home-modal-panel{position:relative;z-index:1;background:var(--surface);color:inherit;border:1px solid var(--line);border-radius:23px;width:min(660px,100%);max-height:min(820px,92dvh);display:flex;flex-direction:column;box-shadow:0 25px 80px #03040866;overflow:hidden;animation:fleet-home-modal .25s ease both}
@keyframes fleet-home-modal{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.fleet-home-modal-header{display:flex;justify-content:space-between;gap:13px;align-items:flex-start;padding:18px 19px 12px;border-bottom:1px solid var(--line)}
.fleet-home-modal-header h2{font-size:19px;font-weight:850;letter-spacing:-.25px;margin:0 0 6px}
.fleet-home-modal-header p{font-size:12px;color:var(--muted);line-height:1.45;margin:0}
.fleet-home-modal-close{display:grid;place-items:center;flex:0 0 38px;height:38px;width:38px;border:1px solid var(--line);background:var(--shade);color:inherit;box-shadow:none}
.fleet-home-modal-close svg{width:20px;height:20px}
.fleet-home-modal-list{display:grid;gap:9px;overflow-y:auto;overscroll-behavior:contain;padding:12px 15px;flex:1}
.fleet-home-setting-row{display:flex;align-items:center;gap:11px;padding:10px 11px;background:var(--shade);border:1px solid var(--line);border-radius:13px;min-width:0}
.fleet-home-setting-row.is-hidden{opacity:.7}
.fleet-home-setting-row:has(input:focus){border-color:#c83742}
.fleet-home-handle{display:grid;place-items:center;flex:0 0 23px;color:#a1a4af;cursor:grab;touch-action:none}
.fleet-home-handle svg{width:22px;height:22px}
.fleet-home-setting-main{flex:1;min-width:0}
.fleet-home-setting-main label{font-size:10px;margin:0 0 5px;color:var(--muted)}
.fleet-home-setting-main input{width:100%;height:38px;min-height:38px;padding:7px 9px;font-size:12px;font-weight:750}
.fleet-home-setting-actions{display:flex;align-items:center;gap:5px}
.fleet-home-show-toggle{display:grid;place-items:center;height:36px;width:36px;position:relative;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);cursor:pointer}
.fleet-home-show-toggle input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}
.fleet-home-show-toggle span{display:grid;place-items:center;pointer-events:none}
.fleet-home-show-toggle svg{width:18px;height:18px}
.fleet-home-show-toggle:has(input:checked){color:#238356;border-color:#8fc5aa}
.fleet-home-move{display:grid;place-items:center;width:35px;height:36px;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:inherit;box-shadow:none}
.fleet-home-move .tile-icon{width:17px;height:17px}
.fleet-home-move:disabled{opacity:.3}
.fleet-home-modal-footer{border-top:1px solid var(--line);padding:13px 16px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.fleet-home-modal-footer>button{display:inline-flex;align-items:center;gap:7px;justify-content:center;font-size:12px;min-height:39px;padding:9px 13px}
.fleet-home-modal-footer svg{width:16px;height:16px}
@media(max-width:900px){.fleet-home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.fleet-home-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-home-part-insights>.fleet-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:590px){#app .bar.fleet-home-topbar{min-height:61px;padding:10px 11px;gap:8px}#app .bar.fleet-home-topbar #pagetitle{font-size:19px}#app #counter.fleet-alert-button{padding:7px 8px;font-size:10px;max-width:125px;min-height:39px}#fleetHomeGear{width:38px;flex-basis:38px;height:39px}.fleet-home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.fleet-home-shortcut{min-height:75px;gap:6px;padding:10px 5px;font-size:11px}.fleet-home-shortcut .tile-icon{width:24px;height:24px}.fleet-home-part{padding:11px 12px;border-radius:16px}.fleet-home-part-shortcuts,.fleet-home-part-summary{padding:0}.fleet-home-part-insights .fleet-insight-tile{min-height:107px}.fleet-home-part-insights .fleet-insight-tile>strong{font-size:25px}.fleet-home-counters{gap:8px}.fleet-home-counter{padding:11px}.fleet-home-counter strong{font-size:24px}.fleet-home-rows{grid-template-columns:1fr}.fleet-home-modal-list{padding:10px}.fleet-home-setting-row{padding:8px;gap:7px}.fleet-home-setting-actions{gap:3px}.fleet-home-handle{flex-basis:16px}.fleet-home-move{width:29px;min-height:34px}.fleet-home-show-toggle{width:31px;min-height:34px}.fleet-home-modal-header{padding:14px 14px 10px}.fleet-home-modal-footer{padding:10px}.fleet-home-modal-footer button{flex:1}}
@media(prefers-reduced-motion:reduce){.fleet-home-part,.fleet-home-modal-panel{animation:none}.fleet-home-shortcut,.fleet-home-counter{transition:none}}
body.lowmotion .fleet-home-part,body.lowmotion .fleet-home-modal-panel{animation:none}
