/* ROTAS+ Passenger 2026 — non-destructive UX layer over the production bundle. */
:root{--rotas-accent:#FFE52B;--rotas-bg:#f7f8f5;--rotas-card:#fff;--rotas-ink:#151815;--rotas-muted:#656b66;--rotas-line:#dde2dc}
html[data-app-role="passenger"] .mobile-shell{height:100dvh;min-height:100dvh;background:var(--rotas-bg);color:var(--rotas-ink);overflow:hidden}
html[data-app-role="passenger"] .mobile-content{height:100dvh;min-height:0;overscroll-behavior:none}
html[data-app-role="passenger"] .mobile-header{padding-top:max(10px,env(safe-area-inset-top));transition:transform .22s ease,opacity .18s ease,padding .22s ease}
html[data-app-role="passenger"] .destination-box,html[data-app-role="passenger"] .ride-sheet{transition:transform .24s cubic-bezier(.2,.8,.2,1),border-radius .2s ease}
html[data-app-role="passenger"].rotas-passenger-map-ready .mobile-content{padding:0!important;overflow:hidden!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .mobile-header,html[data-app-role="passenger"].rotas-passenger-ride-focus .mobile-header,html[data-app-role="passenger"].rotas-passenger-destination-focus .mobile-header{opacity:0!important;transform:translateY(calc(-100% - 24px))!important;pointer-events:none!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .mobile-header,html[data-app-role="passenger"].rotas-passenger-map-ready .bottom-nav,html[data-app-role="passenger"].rotas-passenger-ride-focus .mobile-header,html[data-app-role="passenger"].rotas-passenger-ride-focus .bottom-nav{display:none!important}
html[data-app-role="passenger"].rotas-passenger-destination-selected .mobile-header,html[data-app-role="passenger"].rotas-passenger-destination-selected .bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-app-role="passenger"].rotas-passenger-destination-selected .mobile-content{position:relative!important;height:100dvh!important;padding:0!important;overflow:hidden!important;background:transparent!important}
html[data-app-role="passenger"].rotas-passenger-destination-selected .mobile-map-frame{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .mobile-map-frame{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;border-radius:0!important;background:#e9eee9!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .ride-sheet{position:absolute!important;z-index:20!important;left:0;right:0;bottom:0;margin:0!important;max-height:min(54dvh,520px);overflow:auto;overscroll-behavior:contain;padding:12px 0 calc(18px + env(safe-area-inset-bottom))!important;border-radius:26px 26px 0 0!important;box-shadow:0 -10px 40px #1b241817!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .bottom-nav,html[data-app-role="passenger"].rotas-passenger-ride-focus .bottom-nav,html[data-app-role="passenger"].rotas-passenger-destination-focus .bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-app-role="passenger"].rotas-passenger-destination-focus .mobile-content{padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
html[data-app-role="passenger"].rotas-passenger-ride-focus .mobile-map-frame{position:absolute!important;inset:0!important;height:100dvh!important;min-height:100dvh!important;border-radius:0!important}
html[data-app-role="passenger"].rotas-passenger-ride-focus .ride-sheet{position:absolute!important;z-index:20!important;left:0;right:0;bottom:0;margin:0!important;max-height:min(52dvh,500px);overflow:auto;padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;border-radius:26px 26px 0 0!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .category{min-height:82px!important;grid-template-columns:92px minmax(0,1fr) auto!important;padding:9px 14px!important;border-radius:16px!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .category img{width:88px!important;height:60px!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .category b{font-size:17px!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .category strong{font-size:16px!important}
html[data-app-role="passenger"].rotas-passenger-map-ready .category.selected{border-color:var(--rotas-ink)!important;box-shadow:0 0 0 1px var(--rotas-ink)!important}
html[data-app-role="passenger"] .confirm-ride{min-height:52px;border-radius:14px!important;margin-bottom:max(4px,env(safe-area-inset-bottom));font-weight:800}
html[data-app-role="passenger"] .rotas-passenger-home{background:var(--rotas-bg)!important;color:var(--rotas-ink)!important}
html[data-app-role="passenger"] .rotas-home-search,html[data-app-role="passenger"] .rotas-home-places>button,html[data-app-role="passenger"] .rotas-home-tabs{background:var(--rotas-card)!important;border-color:var(--rotas-line)!important;box-shadow:0 8px 28px #2732260a}
html[data-app-role="passenger"] #destination{background:#e9ece8!important;color:var(--rotas-ink)!important;border:0!important;min-height:54px}
html[data-app-role="passenger"][data-app-theme="dark"] #destination,html[data-app-role="passenger"][data-app-theme="dark"] .route-field input{background:#222824!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #465048!important;caret-color:#FFE52B!important}
html[data-app-role="passenger"][data-app-theme="dark"] #destination::placeholder,html[data-app-role="passenger"][data-app-theme="dark"] .route-field input::placeholder{color:#c5cbc7!important;opacity:1!important;-webkit-text-fill-color:#c5cbc7!important}
html[data-app-role="passenger"][data-app-theme="light"] #destination,html[data-app-role="passenger"][data-app-theme="light"] .route-field input{background:#e9ece8!important;color:#161a17!important;-webkit-text-fill-color:#161a17!important;border:1px solid #cfd6d0!important;caret-color:#111!important}
html[data-app-role="passenger"] #destination:focus{outline:3px solid color-mix(in srgb,var(--rotas-accent) 34%,transparent)}
html[data-app-role="passenger"][data-app-theme="light"] .route-field>span:first-child,html[data-app-role="passenger"][data-app-theme="light"] .route-copy>small,html[data-app-role="passenger"][data-app-theme="light"] .route-fields label,html[data-app-role="passenger"][data-app-theme="light"] .destination-box .muted{color:#343a35!important;opacity:1!important;text-shadow:none!important;font-weight:850!important}
html[data-app-role="passenger"][data-app-theme="dark"] .route-field>span:first-child,html[data-app-role="passenger"][data-app-theme="dark"] .route-copy>small,html[data-app-role="passenger"][data-app-theme="dark"] .route-fields label,html[data-app-role="passenger"][data-app-theme="dark"] .destination-box .muted{color:#FFE52B!important;opacity:1!important;text-shadow:0 1px 0 #000!important;font-weight:850!important}
html[data-app-role="passenger"] .ride-state{padding:4px 20px 10px;text-align:left}
html[data-app-role="passenger"] .ride-state h2{font-size:22px;letter-spacing:-.03em}
html[data-app-role="passenger"] .vehicle-summary{border:1px solid var(--rotas-line);border-radius:18px;background:var(--rotas-card);padding:12px}
html[data-app-role="passenger"] button,html[data-app-role="passenger"] a{touch-action:manipulation}
html[data-app-role="passenger"] .maplibregl-canvas{filter:saturate(.78) contrast(.96) brightness(1.04)}
html[data-app-role="passenger"][data-app-theme="dark"]{--rotas-bg:#070909;--rotas-card:#111514;--rotas-ink:#f7f8f5;--rotas-muted:#a8afaa;--rotas-line:#303632}
html[data-app-role="passenger"][data-app-theme="dark"] .maplibregl-canvas{filter:none}
@media(max-width:360px){html[data-app-role="passenger"].rotas-passenger-map-ready .ride-sheet{max-height:58dvh}html[data-app-role="passenger"].rotas-passenger-map-ready .category{grid-template-columns:78px minmax(0,1fr) auto!important}html[data-app-role="passenger"].rotas-passenger-map-ready .category img{width:74px!important}.rotas-home-suggestions small{display:none}}
@media(min-width:700px){html[data-app-role="passenger"].rotas-passenger-map-ready .ride-sheet{left:50%;right:auto;width:min(520px,45vw);bottom:18px;transform:translateX(-50%);border-radius:26px!important}html[data-app-role="passenger"].rotas-passenger-map-ready .mobile-map-frame{height:100dvh!important}}
@media(prefers-reduced-motion:reduce){html[data-app-role="passenger"] *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Início editorial: sem barras fixas. A logo é discreta e rola para fora. */
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-shell{height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-bottom:0!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-header{position:absolute!important;z-index:8!important;top:max(6px,env(safe-area-inset-top))!important;left:clamp(12px,3vw,30px)!important;right:auto!important;width:auto!important;min-height:0!important;padding:4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-header img{width:46px!important;height:46px!important;object-fit:contain!important;filter:drop-shadow(0 5px 12px rgba(0,0,0,.16))}
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-header button{display:none!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .mobile-content{height:auto!important;min-height:0!important;padding-top:70px!important;padding-bottom:20px!important;overflow:visible!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .bottom-nav{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:70px!important;margin:0!important;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;border-top:1px solid var(--rotas-line)!important;background:var(--rotas-card)!important;color:var(--rotas-ink)!important;box-shadow:none!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .bottom-nav button{color:var(--rotas-muted)!important;background:transparent!important}
html[data-app-role="passenger"].rotas-passenger-map-pending .bottom-nav button.active{color:var(--rotas-ink)!important}

/* Perfil premium consistente nos dois temas. */
.rotas-profile-modal{width:min(620px,calc(100% - 24px))!important;max-height:min(88dvh,780px)!important;padding:0!important;border-radius:28px!important;overflow:auto!important;border:1px solid var(--rotas-line)!important;background:var(--rotas-card)!important;color:var(--rotas-ink)!important;box-shadow:0 32px 100px rgba(0,0,0,.28)!important}
.rotas-profile-modal>h2,.rotas-profile-modal>p,.rotas-profile-modal>button,.rotas-profile-modal>form{margin-left:clamp(18px,5vw,34px)!important;margin-right:clamp(18px,5vw,34px)!important}
.rotas-profile-modal>h2{margin-top:30px!important;margin-bottom:4px!important;font-size:clamp(25px,5vw,34px)!important;letter-spacing:-.045em!important}
.rotas-profile-modal>p{color:var(--rotas-muted)!important}
.rotas-profile-modal form{gap:14px!important;margin-top:22px!important;margin-bottom:30px!important}
.rotas-profile-modal .rotas-passenger-profile{gap:18px!important;margin:0 0 8px!important;padding:20px!important;border:1px solid var(--rotas-line)!important;border-radius:22px!important;background:color-mix(in srgb,var(--rotas-card) 84%,var(--rotas-bg) 16%)!important}
.rotas-profile-modal .rotas-profile-photo{padding-bottom:16px;border-bottom:1px solid var(--rotas-line)}
.rotas-profile-modal .rotas-profile-photo img{width:78px!important;height:78px!important;border:3px solid var(--rotas-ink)!important;box-shadow:0 0 0 5px color-mix(in srgb,var(--rotas-ink) 8%,transparent)!important}
.rotas-profile-modal .rotas-profile-photo label{min-height:44px;align-items:center;padding:10px 15px!important;border:1px solid var(--rotas-line)!important;border-radius:13px!important;background:var(--rotas-card)!important;color:var(--rotas-ink)!important}
.rotas-profile-modal .rotas-profile-grid label{display:grid;gap:7px;color:var(--rotas-muted)!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.06em}
.rotas-profile-modal .rotas-profile-grid input{min-height:50px!important;padding:12px 14px!important;border:1px solid var(--rotas-line)!important;border-radius:13px!important;background:var(--rotas-bg)!important;color:var(--rotas-ink)!important;-webkit-text-fill-color:var(--rotas-ink)!important;font-size:15px!important;text-transform:none;letter-spacing:0}
.rotas-profile-modal .rotas-save-complete{min-height:52px!important;border-radius:14px!important;background:var(--rotas-ink)!important;color:var(--rotas-card)!important;-webkit-text-fill-color:var(--rotas-card)!important;box-shadow:none!important}
.rotas-profile-modal .rotas-passenger-profile>small{color:var(--rotas-muted)!important}
html[data-app-theme="dark"] .rotas-profile-modal .rotas-save-complete{background:#FFE52B!important;color:#11140f!important;-webkit-text-fill-color:#11140f!important}
@media(max-width:520px){.rotas-profile-modal{width:100%!important;max-height:94dvh!important;margin-top:auto!important;border-radius:26px 26px 0 0!important}.rotas-profile-modal .rotas-passenger-profile{padding:16px!important}.rotas-profile-modal .rotas-profile-photo img{width:68px!important;height:68px!important}}
