/* v22 — галерея фото и главная статистика, адаптивно до 320px. */
.fleet-gallery-open{overflow:hidden!important}
.fleet-gallery-thumb{width:55px;height:55px;flex:0 0 55px;padding:0;display:block;overflow:hidden;border-radius:11px;border:2px solid transparent;background:var(--surface);box-shadow:none}
.fleet-gallery-thumb .attachment-thumb{width:100%;height:100%;object-fit:cover}
.fleet-gallery-thumb:hover{border-color:#c92432;box-shadow:0 3px 16px #ba25372a}
.fleet-photo-viewer{position:fixed;inset:0;z-index:500;display:flex;flex-direction:column;color:#fff;background:rgba(9,11,15,.98);padding:env(safe-area-inset-top,0px) max(10px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(10px,env(safe-area-inset-left,0px));animation:fleet-view-enter .16s ease both}
.fleet-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:12px 14px;min-height:62px;border-bottom:1px solid #ffffff24}
.fleet-gallery-toolbar>div{min-width:0;flex:1}
.fleet-gallery-toolbar strong{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.fleet-gallery-toolbar small{display:block;font-size:11px;color:#aeb6c3;margin-top:4px}
.fleet-gallery-close,.fleet-gallery-arrow{display:grid;place-items:center;flex:0 0 auto;padding:0;color:#fff;background:#ffffff16;border:1px solid #ffffff28;box-shadow:none}
.fleet-gallery-close{width:42px;height:42px;border-radius:13px}
.fleet-gallery-arrow{width:41px;height:55px;border-radius:12px;position:relative;z-index:2}
.fleet-gallery-close .tile-icon,.fleet-gallery-arrow .tile-icon{width:22px;height:22px}
.fleet-gallery-arrow:disabled{opacity:.25;cursor:default}
.fleet-gallery-stage{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:0;flex:1;padding:8px 0;touch-action:pan-y}
.fleet-gallery-media{flex:1;min-width:0;min-height:0;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fleet-gallery-media img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-select:none}
.fleet-gallery-media.is-zoom{overflow:auto;display:block;text-align:center;touch-action:auto}
.fleet-gallery-media.is-zoom img{max-width:none;max-height:none;min-width:100%;min-height:100%;width:175%;height:auto;object-fit:contain;margin:auto}
.fleet-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 15px;border-top:1px solid #ffffff24;font-size:12px;color:#c0c7d1}
.fleet-gallery-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.fleet-gallery-footer button,.fleet-gallery-footer a{display:inline-flex;align-items:center;gap:7px;min-height:38px;color:#fff;background:#ffffff16;border:1px solid #ffffff28;border-radius:10px;padding:8px 11px;text-decoration:none;font-size:12px;font-weight:730}
.fleet-gallery-footer button .tile-icon,.fleet-gallery-footer a .tile-icon{width:16px;height:16px}
@keyframes fleet-view-enter{from{opacity:0}to{opacity:1}}
.fleet-dashboard-section{margin:0 0 16px}
.fleet-dash-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:2px 0 12px}
.fleet-dash-head h2{font-size:22px;line-height:1.2;letter-spacing:-.4px;font-weight:860;margin:0 0 5px}
.fleet-dash-head p{font-size:12px;color:var(--muted);line-height:1.4;margin:0}
.fleet-stats-refresh{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0}
.fleet-stats-refresh .tile-icon{width:20px;height:20px}
.fleet-insight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
.fleet-insight-tile{min-width:0;display:flex;flex-direction:column;text-align:left;align-items:flex-start;padding:16px 15px 15px;border:1px solid var(--line);background:var(--surface);color:inherit;box-shadow:0 7px 22px #111d290d;border-radius:17px;transition:transform .2s ease,box-shadow .2s ease}
.fleet-insight-tile:hover{box-shadow:0 10px 27px #12233717;transform:translateY(-2px)}
.fleet-insight-top{display:flex;gap:8px;align-items:center;min-width:0;width:100%;font-size:11px;font-weight:760;line-height:1.4;color:var(--muted)}
.fleet-insight-top .tile-icon{width:19px;height:19px;flex:0 0 19px;color:#c72733}
.fleet-insight-tile>strong{font-size:clamp(27px,3vw,35px);line-height:1.2;font-variant-numeric:tabular-nums;font-weight:860;color:inherit;margin:13px 0 6px}
.fleet-insight-tile>small{font-size:10.5px;line-height:1.45;color:var(--muted);font-weight:520}
.fleet-insight-tile.urgent{border-color:#e7a9ad;background:linear-gradient(130deg,var(--surface),#fff1f1)}
.fleet-insight-tile.urgent .fleet-insight-top .tile-icon,.fleet-insight-tile.urgent>strong{color:#c52430}
.fleet-insight-placeholder{padding:18px 15px;border:1px solid var(--line);border-radius:15px;background:var(--surface);font-size:12px;color:var(--muted);margin-bottom:11px}
.fleet-action-panel{overflow:hidden;border:1px solid var(--line);background:var(--surface);border-radius:17px;margin:10px 0 12px;box-shadow:0 7px 22px #151d250a}
.fleet-action-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line)}
.fleet-action-head h3{font-size:15px;margin:0;font-weight:840}
.fleet-action-head>span{font-size:11px;color:var(--muted)}
.fleet-action-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 9px;padding:3px 10px}
.fleet-action-item{display:flex;align-items:center;gap:9px;text-align:left;color:inherit;background:transparent;box-shadow:none;border-radius:9px;padding:11px 5px;font-size:12px;border-bottom:1px solid var(--line)}
.fleet-action-item:hover{box-shadow:none;background:var(--shade)}
.fleet-action-item .tile-icon{width:17px;height:17px;flex:0 0 17px;color:#c12731}
.fleet-action-item span{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}
.fleet-action-item strong{font-variant-numeric:tabular-nums;font-weight:800}
.fleet-action-item .tile-icon:last-child{color:var(--muted);width:14px;height:14px}
.fleet-action-clear{display:flex;align-items:center;gap:10px;padding:15px 17px;margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.fleet-action-clear .tile-icon{width:19px;height:19px;color:#2e8b55}
.fleet-cost-section{padding:16px;background:linear-gradient(120deg,#1b202a,#2c313d 68%,#3b252f);border-radius:18px;color:#fff;margin-bottom:15px;box-shadow:0 10px 27px #10162026}
.fleet-cost-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:13px}
.fleet-cost-head h3{font-size:16px;font-weight:840;color:#fff;margin:0 0 5px}
.fleet-cost-head small{font-size:11px;color:#c5cad3}
.fleet-cost-head button{background:#ffffff17!important;border:1px solid #ffffff40!important;color:#fff!important;min-height:36px}
.fleet-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fleet-cost-grid>div{min-width:0;padding:13px 14px;background:#ffffff12;border:1px solid #ffffff23;border-radius:12px}
.fleet-cost-grid small{display:block;color:#c5cad3;font-size:11px;line-height:1.45}
.fleet-cost-grid strong{display:block;font-size:clamp(21px,3vw,26px);line-height:1.25;font-weight:860;white-space:normal;overflow-wrap:anywhere;margin:9px 0 5px;font-variant-numeric:tabular-nums}
.fleet-cost-section>p{font-size:10.5px;line-height:1.5;color:#adb7c5;margin:12px 0 0}
body.dark .fleet-insight-tile.urgent{background:linear-gradient(130deg,var(--surface),#39252b);border-color:#873d4b}
body.dark .fleet-insight-tile.urgent>strong{color:#ff7c82}
@media(max-width:880px){.fleet-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:610px){.fleet-gallery-arrow{width:32px;height:48px}.fleet-gallery-arrow .tile-icon{width:19px;height:19px}.fleet-gallery-toolbar{padding:9px 5px}.fleet-gallery-footer{padding:10px 6px}.fleet-gallery-footer>div{width:100%}.fleet-gallery-footer button,.fleet-gallery-footer a{flex:1;justify-content:center}.fleet-action-items{grid-template-columns:1fr}.fleet-cost-grid{grid-template-columns:1fr}.fleet-cost-grid strong{font-size:24px}.fleet-insight-tile{padding:13px 11px}.fleet-dash-head h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.fleet-photo-viewer{animation:none}.fleet-insight-tile{transition:none}}
body.lowmotion .fleet-photo-viewer{animation:none}
