/* Final responsive rules, loaded after the existing app layers. */
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-shell{height:100dvh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
html[data-app-role="passenger"].rotas-passenger-map-pending #mobile-content{position:relative!important;inset:auto!important;flex:1!important;min-height:0!important;height:auto!important;max-height:100dvh!important;overflow-y:auto!important;overscroll-behavior-y:contain;padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
#rotas-route-review{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;max-width:620px;box-sizing:border-box;margin-inline:auto!important;padding:14px!important}
#rotas-route-review .rotas-route-back{display:none!important}
#rotas-route-review .rotas-review-copy{width:100%!important;min-width:0!important;display:block!important;padding:0!important}
#rotas-route-review .rotas-review-copy>span{font-size:9px;white-space:normal!important;letter-spacing:.06em}
#rotas-route-review .rotas-review-point b{white-space:normal!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.35}
#rotas-route-review .rotas-route-confirm{width:100%!important;min-width:0!important;white-space:normal!important;background:#FFE52B!important}
#booking .categories{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;min-width:0!important;gap:7px!important;overflow:visible!important}
#booking .category{min-width:0!important;width:auto!important;padding:10px 5px!important;white-space:normal!important;overflow-wrap:anywhere}
#booking .category img{width:100%!important;max-width:95px!important;height:48px!important;object-fit:contain}
#booking .category b,#booking .category strong{font-size:12px!important}#booking .category small{font-size:10px!important;line-height:1.3!important}
#ride-live .rotas-ride-notice{min-height:0!important;height:auto!important;border-radius:22px!important;margin:0!important}
#ride-live .rotas-notice-copy{padding:18px!important;min-height:0!important;max-width:none!important}
#ride-live .rotas-notice-copy h2{font-size:clamp(19px,5vw,26px)!important;line-height:1.2!important;margin:4px 0 8px!important}
#ride-live .rotas-notice-copy p{font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere}
#ride-live .rotas-notice-action,#ride-live .rotas-search-progress,#ride-live .rotas-search-label{display:none!important}
.rotas-single-spinner{width:23px!important;height:23px!important;margin:0 0 8px!important;border-width:3px!important}
.rotas-single-details{display:grid;gap:8px;margin-top:10px}.rotas-single-details [data-trip-summary]{display:flex;gap:12px;align-items:center;justify-content:space-between}.rotas-single-details p{margin:0!important}.rotas-single-details strong{white-space:nowrap;font-size:18px}.rotas-single-details #cancel{margin:0!important;padding:8px 12px;justify-self:start;font-size:11px}
.rotas-driver-identity{margin:8px 0!important}.rotas-driver-identity img{width:42px!important;height:42px!important}.rotas-approach{margin:6px 0!important}
.rotas-pix-content img{max-width:min(100%,280px)!important;height:auto!important}.rotas-payment-card{max-height:90dvh!important;overflow-y:auto!important;max-width:min(520px,100%)!important}.rotas-pix-content textarea{width:100%;min-width:0;overflow-wrap:anywhere}
html[data-app-role="driver"] .mobile-shell:has(#map) .mobile-header,html[data-app-role="driver"] .online-card,html[data-app-role="driver"] #rotas-driver-search,html[data-app-role="driver"] #rotas-driver-avatar,html[data-app-role="driver"] .driver-stats{display:none!important}
html[data-app-role="driver"] .mobile-shell:has(#map) #mobile-content{padding:0!important;inset:0!important;height:100%!important}
html[data-app-role="driver"] .mobile-map-frame{top:0!important;left:0!important;right:0!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;height:auto!important}
html[data-app-role="driver"] #driver-request:not(:has(#accept)):not(:has(#next-status)){display:none!important}
html[data-app-role="driver"] #driver-request{max-height:48dvh!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;overflow:auto!important}
html[data-app-role="driver"] .rotas-map-utility{top:90px!important;bottom:auto!important;right:12px!important}
.rotas-driver-tools{position:absolute;z-index:50;top:calc(12px + env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:6px;align-items:center;pointer-events:none}.rotas-driver-tools button{pointer-events:auto;background:#fff!important;color:#15201a!important;border:1px solid #d6dfd6!important;border-radius:14px!important;min-height:40px;padding:8px 11px!important;font-size:11px!important;box-shadow:0 3px 14px #17251720}.rotas-driver-tools button[aria-pressed=true]{background:#FFE52B!important}.rotas-driver-tools [data-driver-status]{margin-right:auto;display:flex;align-items:center;gap:7px}.rotas-driver-tools [data-driver-status]:before{content:'';width:8px;height:8px;border-radius:50%;background:#89958e}.rotas-driver-tools [data-driver-status].is-online:before{background:#148444}
.rotas-demand-caption{position:absolute;z-index:8;left:12px;bottom:12px;background:#ffffffed;color:#27382e;border-radius:10px;padding:7px 9px;font-size:10px;max-width:65%;pointer-events:none}.rotas-demand-caption:before{content:'';display:inline-block;width:34px;height:7px;margin-right:6px;background:linear-gradient(90deg,#fffbc6,#FFE52B,#c4a500);border-radius:4px}
html.rotas-driver-fullscreen .bottom-nav{display:none!important}html.rotas-driver-fullscreen .mobile-map-frame{bottom:0!important}html.rotas-driver-fullscreen .rotas-demand-caption{bottom:14px!important}html.rotas-driver-fullscreen .rotas-driver-tools [data-map-close]{display:inline-flex!important;align-items:center;justify-content:center;color:#b42318!important;font-size:23px!important;line-height:1}html.rotas-driver-fullscreen .rotas-driver-tools [data-map-restore]{display:none!important}html.rotas-driver-map-only .rotas-driver-tools>*:not([data-map-restore]),html.rotas-driver-map-only .rotas-demand-caption{display:none!important}html.rotas-driver-map-only .rotas-driver-tools{left:auto!important;right:12px!important;width:auto!important}html.rotas-driver-map-only .rotas-driver-tools [data-map-restore]{display:inline-flex!important;align-items:center;justify-content:center;width:42px!important;padding:0!important;font-size:17px!important}
.rotas-map-small .mobile-map-frame{bottom:28dvh!important}.rotas-driver-tools [data-map-size]{font-size:17px!important}
.rotas-carousel{position:relative;min-width:0;border-radius:20px;overflow:hidden;background:#121813}.rotas-carousel a,.rotas-carousel article{display:block;color:#fff;text-decoration:none;position:relative;min-height:190px;padding:25px;background:linear-gradient(90deg,#050a08e6,#050a0844),var(--banner-image) center/cover}.rotas-carousel h2{font-size:24px;margin:15px 0 8px}.rotas-carousel p{max-width:85%;font-size:13px}.rotas-carousel-nav{display:flex;justify-content:center;gap:8px;padding:9px}.rotas-carousel-nav button{width:28px;min-height:24px;padding:3px;background:#394237;border:0;color:#fff}.rotas-carousel-nav button[aria-current=true]{background:#FFE52B;color:#101710}
@media(max-width:360px){.rotas-driver-tools{gap:4px;left:8px;right:8px}.rotas-driver-tools button{padding:8px!important;font-size:10px!important}.rotas-single-details [data-trip-summary]{display:grid}.rotas-home-suggestions>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){.rotas-search-progress i{animation:none!important}}
html[data-app-role="passenger"].rotas-passenger-categories-open .ride-sheet{height:auto!important;max-height:58dvh!important;bottom:12px!important;padding:8px 0 0!important;display:flex!important;flex-direction:column!important}
html[data-app-role="passenger"].rotas-passenger-categories-open .rotas-sheet-scroll{height:auto!important;max-height:calc(58dvh - 36px)!important;min-height:0!important;padding:0 12px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;width:100%!important;box-sizing:border-box!important}
html[data-app-role="passenger"] #booking:not([hidden]){display:block!important;position:relative!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important}
html[data-app-role="passenger"] #rotas-vehicle-choice-title,html[data-app-role="passenger"] #booking .quick{display:none!important}
html[data-app-role="passenger"] #booking .categories{height:auto!important;margin:10px 0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important}
html[data-app-role="passenger"] #booking .category{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;height:auto!important;min-height:128px!important;max-height:none!important;grid-template-columns:none!important;border-radius:16px!important}
html[data-app-role="passenger"] #booking .category>*{position:static!important;grid-area:auto!important;transform:none!important;min-width:0!important;max-width:100%!important;margin:0!important;text-align:center!important}
html[data-app-role="passenger"] #booking .category strong{margin-top:auto!important}
html[data-app-role="passenger"] #booking>label{margin:10px 0!important;padding:0!important;width:100%!important}
html[data-app-role="passenger"] #booking #confirm{position:static!important;width:100%!important;margin:10px 0 0!important;padding:12px!important;min-height:48px!important}
.rotas-carousel h2,.rotas-carousel p,.rotas-carousel b{color:#fff!important;text-shadow:0 1px 5px #000}
.rotas-service-mode{font-size:11px!important;padding:7px 10px!important;background:#FFE52B!important;color:#172015!important;border:0!important;border-radius:12px!important;max-width:100%;white-space:normal}
/* Maintain contrast on the light card while keeping the exact brand accent. */
html[data-app-theme="light"][data-app-role="passenger"] #booking .category.selected strong{color:#172015!important}
html[data-app-role="driver"] .mobile-map-frame>.map-city,html[data-app-role="driver"] .mobile-map-frame>.map-label{display:none!important}
html[data-app-role="driver"] .mobile-map-frame .maplibregl-ctrl-top-right{top:58px!important}
html[data-app-role="driver"] #rotas-operation-back{top:66px!important}
html[data-app-role="driver"] #driver-request .rotas-sheet-scroll{display:flex!important;flex-direction:column!important;gap:10px!important;max-height:calc(48dvh - 40px)!important;padding:0 14px 18px!important;overflow:auto!important}
html[data-app-role="driver"] #driver-request .rotas-sheet-scroll>h2,html[data-app-role="driver"] #driver-request .rotas-sheet-scroll>.row,html[data-app-role="driver"] #driver-request .rotas-sheet-scroll>.rotas-delivery-details{order:0!important;font-size:18px!important}
html[data-app-role="driver"] #driver-request .rotas-sheet-scroll>p,html[data-app-role="driver"] #driver-request .rotas-sheet-scroll>.details,html[data-app-role="driver"] #rotas-navigation-status{order:1!important;margin:0!important}
html[data-app-role="driver"] #driver-request #next-status,html[data-app-role="driver"] #driver-request .driver-buttons{order:2!important;position:static!important;flex-shrink:0}
html[data-app-role="driver"] #rotas-safety-bar{order:3!important;padding:8px!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important}
html[data-app-role="driver"] #rotas-safety-bar button{font-size:11px!important;padding:8px!important;min-height:36px!important}
html[data-app-role="driver"] #rotas-safety-bar>small,html[data-app-role="driver"] #rotas-safety-bar>p{font-size:10px!important}
html[data-app-role="driver"] #driver-request .details{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html[data-app-role="driver"] #driver-request .details strong{font-size:15px!important}html[data-app-role="driver"] #driver-request .details p{font-size:11px!important}
html[data-app-role="passenger"].rotas-passenger-map-ready:not(.rotas-passenger-categories-open) .ride-sheet:has(#rotas-ride-notice){height:auto!important;max-height:48dvh!important;bottom:12px!important;padding:4px 0 8px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html[data-app-role="passenger"] .ride-sheet:has(#rotas-ride-notice) .rotas-sheet-scroll{height:auto!important;max-height:calc(48dvh - 42px)!important;min-height:0!important;padding:0 10px!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important}
#ride-live .rotas-notice-copy h2{font-size:20px!important}#ride-live .rotas-notice-brand{display:none!important}#ride-live .rotas-single-spinner{float:left;margin:0 9px 6px 0!important}#ride-live .rotas-single-details{clear:both}

html[data-app-role=driver] .mobile-map-frame>.city-label,html[data-app-role=driver] .mobile-map-frame>.map-expand{display:none!important}
html[data-app-role=driver] .rotas-map-utility button[title='Expandir ou recolher painel']{display:none!important}
/* Requested final placement and light-theme controls. */
html[data-app-role="passenger"] #rotas-operation-back{top:calc(64px + env(safe-area-inset-top))!important;left:14px!important}
html[data-app-role="passenger"][data-app-theme="light"] :is(.rotas-map-utility button,#locate,.locate){background:#fff!important;color:#17241c!important;border:1px solid #dce3de!important;box-shadow:0 4px 16px #0002!important}
html[data-app-role="passenger"][data-app-theme="light"] :is(#rotas-route-review,.rotas-review-copy){background:#fff!important;color:#17241c!important}
html[data-app-role="passenger"][data-app-theme="light"] #rotas-route-review :is(b,small){color:#17241c!important}
html[data-app-role="passenger"][data-app-theme="light"] #rotas-route-review .rotas-review-copy>span{color:#59651c!important}
html[data-app-role="driver"] .mobile-map-frame>.rotas-map-utility{top:170px!important;right:12px!important;bottom:auto!important}
html[data-app-role="driver"] .mobile-map-frame>.rotas-map-utility button[title="Expandir ou recolher painel"]{display:none!important}
html[data-app-role="driver"] .mobile-map-frame>.rotas-map-utility{display:none!important}
