/* Tabs return without any motion. */
html body .app>#nav,html body.v37-modal-active .app>#nav{transition:none!important;will-change:auto!important}
/* Media occupies the complete viewport. Controls float above it. */
html body #modal:has(.v40-media-viewer){padding:0!important;background:#fff!important;align-items:stretch!important;justify-content:stretch!important}
html body #modal:has(.v40-media-viewer) #modalbox{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;overflow:hidden!important;animation:none!important}
.v40-media-viewer,.v40-media-stage{position:absolute;inset:0;width:100%;height:100%;background:#fff;overflow:hidden}
.v40-media-stage>img,.v40-media-stage>video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;background:#fff}
.v40-media-toolbar{position:absolute;inset:0 0 auto;z-index:3;display:flex;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 34px;background:linear-gradient(#0005,transparent);pointer-events:none}
.v40-media-toolbar button,.v40-video-controls button{pointer-events:auto;border:0;border-radius:50%;background:#0004;color:#fff!important;width:44px;height:44px;display:grid;place-items:center;font-size:24px;padding:0}
.v40-video-controls{position:absolute;inset:auto 0 0;z-index:3;display:flex;align-items:center;gap:8px;padding:26px 12px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#0008);color:#fff!important}
.v40-video-controls input{min-width:0;flex:1;width:0;height:30px;padding:0;accent-color:#fff;background:transparent;border:0}
.v40-video-controls button{flex:0 0 38px;width:38px;height:38px;font-size:19px}.v40-video-controls span{font-size:10px!important;color:#fff!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.v40-media-spinner{position:absolute;top:calc(50% - 17px);left:calc(50% - 17px);width:34px;height:34px;border:3px solid #aaa5;border-top-color:#555;border-radius:50%;animation:v40-spin .8s linear infinite;pointer-events:none}
@keyframes v40-spin{to{transform:rotate(360deg)}}
.v40-media-retry,.v40-tap-play{position:absolute;top:calc(50% - 28px);left:calc(50% - 28px);width:56px;height:56px;border:0;border-radius:50%;background:#0007;color:#fff!important;font-size:28px}
.v40-upload-progress{background:#f3f5f3;border-radius:10px;padding:10px 12px;margin:7px 0 3px}.v40-upload-progress>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.v40-upload-progress strong{font-size:12px;color:#111!important}.v40-upload-progress span{font-size:11px;color:#666!important;white-space:nowrap;font-variant-numeric:tabular-nums}.v40-upload-progress progress{display:block;width:100%;height:5px;margin-top:8px;accent-color:#242c27;border:0;border-radius:3px;overflow:hidden}
/* Fleet: a plain heading and one clear information block per car. */
html body .fleet-head.v40-fleet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;background:#fff!important;color:#111!important;padding:2px 0 18px!important;margin:0!important;border:0!important;border-radius:0!important;min-height:0!important;box-shadow:none!important}
.v40-fleet-head h1{font-size:26px!important;letter-spacing:-1px!important;color:#111!important;margin:0!important;font-weight:780!important;line-height:1.2!important}
.v40-fleet-tools{display:flex;gap:9px;align-items:center}.v40-fleet-tools button{min-height:38px!important;border-radius:10px!important;padding:8px 11px!important;font-size:12px!important;font-weight:650!important}
.v40-history{border:0;background:#f1f3f1;color:#111!important}.v40-fleet-tools .btn{background:#222b25!important;color:#fff!important}
html body .v40-vehicle-card{border:1px solid #e3e7e3!important;border-radius:16px!important;padding:18px 16px!important;margin:12px 0!important;box-shadow:none!important;background:#fff!important}
.v40-vehicle-card .vehicle-card-head{gap:9px!important;align-items:center!important;margin:0 0 14px!important}
.v40-vehicle-card .car-sticker{display:none!important}.v40-vehicle-card .car-ident{gap:0!important;flex:1;min-width:0}
.v40-vehicle-card .car-title-row{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:7px!important}
.v40-vehicle-card .car-title-row h3{font-size:19px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.6px!important;margin:0!important}
.v40-vehicle-card .car-plate{font-size:12px!important;color:#666!important;font-weight:450!important}
.v40-vehicle-card .chip{background:#f0f3f0!important;color:#111!important;font-size:11px!important;font-weight:600!important;padding:5px 8px!important;white-space:nowrap}
.v40-vehicle-card .v28-car-edit{background:transparent!important;border:0!important;padding:5px 2px!important;font-size:11px!important;color:#666!important}
.v40-vehicle-card .vehicle-position{background:transparent!important;border:0!important;border-radius:0!important;padding:0 0 15px!important;margin:0!important;min-height:0!important;box-shadow:none!important;display:block!important}
.v40-vehicle-card .vehicle-position strong{font-size:15px!important;font-weight:550!important;line-height:1.5!important;color:#111!important}
.v40-vehicle-card .position-hint{font-size:10px!important;color:#999!important;margin-top:3px!important;display:block!important}
.v40-vehicle-card .car-driver-line{padding:10px 0 14px!important;margin:0!important;border:0!important;font-size:12px!important;line-height:1.6!important;background:transparent!important}
.v40-vehicle-card .car-usage-highlight{background:#f4f6f4!important;padding:13px!important;border:0!important;border-radius:11px!important;margin:0 0 14px!important}
.v40-vehicle-card .car-usage-highlight strong{font-size:15px!important;color:#111!important;font-weight:650!important}.v40-vehicle-card .car-usage-highlight span{font-size:11px!important;color:#777!important}
.v40-vehicle-card .vehicle-direct-actions{gap:7px!important;margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.v40-vehicle-card .vehicle-direct-actions button{min-height:44px!important;border:0!important;border-radius:10px!important;padding:9px 4px!important;font-size:12px!important;font-weight:650!important;line-height:1.3!important;background:#f0f3f0!important;color:#111!important}
.v40-vehicle-card .vehicle-direct-actions .vehicle-primary{background:#263c30!important;color:#fff!important}
.v40-vehicle-card .vehicle-direct-actions:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.v40-vehicle-card .vehicle-direct-actions:has(>button:only-child){grid-template-columns:1fr!important}
.v31-fleet-tabs{margin:0 0 17px!important}.v31-list-header{margin-top:12px!important;margin-bottom:4px!important}
/* All date/event hits in a grid open one date agenda. */
.cal-week{cursor:pointer}.cal-date.v40-selected-day{background:#e6ede7!important;color:#111!important;border-radius:9px!important}
html body #modal:has(.v40-day-screen){padding:0!important;align-items:flex-end!important;background:#13231b30!important}
html body #modal:has(.v40-day-screen) #modalbox{width:min(100%,650px)!important;max-width:650px!important;height:min(62dvh,620px)!important;max-height:62dvh!important;border-radius:22px 22px 0 0!important;padding:0!important;min-height:0!important;margin:0 auto!important;overflow:hidden!important;background:#fff!important}
.v40-day-screen{height:100%;display:flex;flex-direction:column;min-height:0;background:#fff}.v40-day-handle{width:36px;height:4px;border-radius:3px;background:#d9dfda;margin:9px auto 1px;flex-shrink:0}
.v40-day-screen>header{display:flex;justify-content:space-between;align-items:center;padding:13px 18px 17px;gap:8px;border-bottom:1px solid #edf0ed}.v40-day-screen>header span{font-size:11px;color:#888!important}.v40-day-screen h2{font-size:22px;font-weight:750;letter-spacing:-.7px;margin:3px 0 0;color:#111!important}.v40-day-screen>header>div:last-child{display:flex;gap:3px}.v40-day-screen>header button{width:42px;height:42px;min-height:42px;border:0;background:transparent;font-size:23px;color:#111!important}
.v40-day-list{flex:1;min-height:0;overflow:auto;padding:7px 18px calc(20px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}.v40-day-event{display:flex;align-items:center;gap:12px;width:100%;min-height:86px;border:0;border-bottom:1px solid #eff2ef;background:#fff;text-align:left;padding:15px 0;color:#111!important}.v40-day-time{width:45px;flex-shrink:0;font-size:13px;font-weight:700;color:#111!important;font-variant-numeric:tabular-nums}.v40-day-time small{display:block;font-size:11px;color:#888!important;margin-top:4px;font-weight:450}.v40-day-event>i{width:4px;height:39px;border-radius:3px;flex-shrink:0}.v40-day-event>span:nth-last-child(2){flex:1;min-width:0}.v40-day-event strong{display:block;font-size:16px;line-height:1.5;font-weight:650;color:#111!important}.v40-day-event>span:nth-last-child(2)>small{font-size:12px;color:#888!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-top:4px}.v40-day-event>span:last-child{font-size:22px;color:#aaa!important}.v40-day-empty{padding:40px 0;text-align:center;color:#888;font-size:14px}
/* Release motion is separate from finger tracking. */
.swipe-row27{overflow:hidden!important;border-radius:0!important;touch-action:pan-y!important}.swipe-actions27{width:96px!important;background:#fff!important}.swipe-inner27{transition:transform .28s cubic-bezier(.22,.72,.2,1)!important;background:#fff!important;will-change:transform}.swipe-row27.dragging29 .swipe-inner27{transition:none!important}.swipe-row27.v40-swipe-open .swipe-inner27{transform:translate3d(-96px,0,0)}
.swipe-actions27 .swipe-exit27{width:54px!important;height:54px!important;border-radius:50%!important;background:#ee544a!important;color:#fff!important;font-size:11px!important;font-weight:650!important;box-shadow:none!important;transition:transform .2s ease,opacity .18s ease}.swipe-row27.dragging29 .swipe-exit27{transition:none!important}
body.v40-keyboard-open.is-room23 .room-bottom23{padding-bottom:6px!important}
body.is-room23 .app{transition:none!important}.v40-page-snapshot{pointer-events:none!important;background:#fff!important}.app.v40-route-live{z-index:8}
@media(prefers-reduced-motion:reduce){.swipe-inner27,.swipe-actions27 .swipe-exit27{transition:none!important}.v40-media-spinner{animation:none!important}}
.app.v40-route-live{background:transparent!important;box-shadow:none!important}
html body #modal.v29-exiting:has(.v40-media-viewer) #modalbox{animation:v40-media-out .16s ease-out both!important}
@keyframes v40-media-out{to{opacity:0}}
@media(prefers-reduced-motion:reduce){html body #modal.v29-exiting:has(.v40-media-viewer) #modalbox{animation:none!important}}
