:root{color-scheme:dark;--paper:#0d2335;--ink:#f4f7fb;--muted:#a4b5c6;--line:#203c53;--soft:#0a2a4a;--accent:#16a34a;--green:#4ade80;--shadow:0 8px 30px #0a2a4a26;--navy:#0a2a4a}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Manrope,system-ui,sans-serif;background:#f5f5f2;color:var(--ink);-webkit-text-size-adjust:100%}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a4c637;outline-offset:3px}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
#map{position:fixed!important;inset:0;width:100%;height:100dvh;background:#f5f5f2}.top{position:fixed;top:calc(env(safe-area-inset-top,0px) + 16px);left:18px;right:18px;z-index:4;display:flex;align-items:center;gap:12px;pointer-events:none}.brand{display:flex;align-items:center;gap:5px;color:var(--ink);text-decoration:none;font-weight:800;font-size:22px;letter-spacing:-1px;pointer-events:auto;background:#fffffff5;padding:10px 15px 10px 10px;border-radius:18px;box-shadow:var(--shadow)}.brand-light{font-weight:500}.brand-icon{width:32px;height:32px;background:var(--accent);border-radius:11px;display:grid;place-items:center;margin-right:4px}.brand-icon svg{width:22px;height:22px}.area-name{background:#fffffff5;border-radius:16px;padding:12px;font-size:12px;font-weight:700;box-shadow:var(--shadow)}.clock{margin-left:auto;font-size:12px;font-weight:700;background:#fffffff5;padding:10px;border-radius:12px;box-shadow:var(--shadow)}
.map-meta{position:fixed;top:calc(env(safe-area-inset-top,0px) + 87px);left:18px;z-index:4;display:flex;align-items:center;gap:7px;border-radius:30px;background:#fffffff5;box-shadow:var(--shadow);padding:8px 9px 8px 12px;font-size:11px;font-weight:700;max-width:calc(100% - 36px)}.live-dot{width:6px;height:6px;border-radius:50%;background:#839c3b}.map-meta button{background:var(--soft);border:0;border-radius:50%;width:21px;height:21px;font-size:12px;font-weight:800;color:var(--muted)}.map-msg{position:fixed;top:calc(env(safe-area-inset-top,0px) + 135px);left:18px;right:18px;padding:12px 15px;background:#fff7e7;color:#715524;border-radius:14px;z-index:5;font-size:12px;box-shadow:var(--shadow)}.map-actions{position:fixed;right:18px;top:calc(env(safe-area-inset-top,0px) + 140px);z-index:4;display:grid;gap:10px}.map-action{height:46px;width:46px;border:1px solid #eeeeea;background:white;box-shadow:var(--shadow);border-radius:16px;display:grid;place-items:center;color:#444a3a}.map-action.is-active{background:var(--accent);border-color:var(--accent)}
main{position:fixed;inset:0;pointer-events:none;z-index:3}.screen{display:none;position:absolute;inset:0;pointer-events:none}.screen.active{display:block}.sheet{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 87px);left:12px;right:12px;border-radius:27px;background:#fff;box-shadow:0 12px 48px #2531221c;pointer-events:auto;overflow:hidden;max-height:calc(100dvh - 240px);transition:max-height .22s}.handle{display:block;width:54px;height:22px;margin:0 auto;border:0;background:transparent;position:relative;touch-action:none}.handle:after{content:'';display:block;position:absolute;top:9px;left:8px;width:38px;height:4px;border-radius:8px;background:#dfe2d9}.sheet-content{padding:0 20px 18px;overflow:auto;max-height:calc(100dvh - 265px);scrollbar-width:thin;scrollbar-color:#e6e8e1 transparent}.sheet.collapsed .sheet-content{display:none}.sheet.collapsed{max-height:30px}.sheet.collapsed .handle{height:29px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-top:2px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.6px;color:#92968b;margin:0 0 7px}h1,h2,h3{margin:0;font-weight:800;letter-spacing:-.7px}h1,h2{font-size:25px}h3{font-size:17px;line-height:1.5}.heading-bus{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;color:#7f876e}.heading-bus svg{width:22px;height:22px}.sub{font-size:12px;color:var(--muted);line-height:1.5;margin:5px 0}.origin-details{margin:15px 0 10px;font-size:12px}.origin-details summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;min-height:25px}.origin-dot{width:7px;height:7px;border-radius:50%;background:#94b630;box-shadow:0 0 0 3px #f0f5e3}.change{margin-left:auto;color:#7c836b;font-size:11px;font-weight:700}.origin-details .ac{margin:10px 0 6px}.text-button{background:transparent;border:0;padding:5px 0;color:#647a30;font-size:12px;font-weight:800}.destination-field{background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:4px;min-height:56px}.ac{min-width:0;flex:1}gmp-place-autocomplete{display:block;width:100%;color-scheme:light;--gmpx-color-surface:#f5f6f2;--gmpx-color-on-surface:#222521;--gmpx-color-on-surface-variant:#777b73;--gmpx-color-outline:transparent;--gmpx-font-family-base:Manrope,system-ui,sans-serif;--gmpx-font-size-base:15px;border:0;border-radius:12px;background:var(--soft)}gmp-place-autocomplete::part(input){font-family:inherit;background:var(--soft);color:var(--ink)}
.cta{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:12px;width:100%;min-height:51px;border:0;border-radius:15px;background:var(--accent);color:#293015;font-weight:800;font-size:14px;padding:14px 16px}.cta span{font-size:22px;line-height:14px}.cta:hover{background:#d2ec54}.cta.ghost{background:var(--soft);color:#53613c;border:1px solid var(--line);font-size:12px;min-height:42px}.source-link{display:inline-block;margin:12px 0;color:#637633;font-size:12px}.next{display:flex;align-items:center;gap:11px;width:100%;padding:14px 0 0;margin-top:12px;background:transparent;color:var(--ink);border:0;border-top:1px solid var(--line);text-align:left}.badge{display:grid;place-items:center;min-width:43px;height:38px;border-radius:11px;background:#f1f4e8;color:#52692b;font-weight:800;font-size:14px}.next-copy{display:grid;gap:4px;min-width:0;flex:1}.next-copy strong{font-size:12px;font-weight:800}.next-copy>span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{font-size:11px;font-weight:800;white-space:nowrap;padding:5px 8px;border-radius:8px;background:#f1f4e8;color:#687937}.chevron{width:16px;height:16px;color:#92968c}.quiet-details{margin-top:14px;border-top:1px solid var(--line);padding-top:11px}.quiet-details>summary,.itinerary>summary{font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:24px}.quiet-details>summary:after,.itinerary>summary:after{content:'+';font-size:17px;color:#7d876b}.quiet-details[open]>summary:after,.itinerary[open]>summary:after{content:'−'}.list{padding:0;list-style:none;margin:8px 0}.item{display:flex;align-items:center;gap:10px;padding:9px 2px;font-size:12px;cursor:pointer}.ico{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--soft);color:#798166}.item .t{font-weight:700}.item .s{font-size:10px;color:var(--muted)}.section{font-size:10px;font-weight:800;color:#939987;letter-spacing:1px;margin:18px 0 8px}
.tabbar{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);height:57px;z-index:6;display:flex;background:#fff;border:1px solid #f2f3ee;border-radius:20px;box-shadow:var(--shadow);padding:6px}.tab{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:14px;background:white;color:#92968c;font-size:10px;font-weight:700}.tab svg{width:18px;height:18px}.tab.on{color:#52682b;background:#f0f5e3}.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 96px);transform:translate(-50%,20px);opacity:0;pointer-events:none;max-width:calc(100% - 40px);width:max-content;background:#fff;color:#495139;border:1px solid #e4e8db;box-shadow:0 8px 32px #24311f26;border-radius:14px;padding:12px 16px;font-size:12px;z-index:12;transition:opacity .2s,transform .2s}.toast.show{transform:translate(-50%,0);opacity:1}.filter-label{display:flex;align-items:center;gap:10px;background:var(--soft);border-radius:13px;padding:10px 12px;margin:15px 0}.filter-label svg{width:17px;height:17px;color:#8c9480}.filter-label input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px;min-width:0}.line-card{display:flex;gap:12px;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);background:white;text-align:left;color:var(--ink);padding:14px 0;font-family:inherit}.line-card>span:nth-child(2){flex:1;min-width:0}.line-card .t{display:block;font-size:12px;font-weight:800;line-height:1.5}.line-card .s{display:block;font-size:10px;color:var(--muted);margin-top:3px}.line-card.selected .badge{background:var(--accent)}.control{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:11px;font-weight:700;color:var(--muted)}.control select,.control input{padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);min-width:0;width:100%;font-size:12px}.big{font-size:35px;font-weight:800;letter-spacing:-1px;margin:12px 0 0}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.chip{font-size:11px;font-weight:700;padding:6px 9px;border-radius:9px;background:var(--soft);color:#707665}.chip.past{opacity:.45}.chip.next-chip{background:var(--accent);color:#2c3a17}.chip sup{margin-left:2px;font-size:8px}.data-status{font-size:10px;line-height:1.7;color:#939887;margin:10px 0}.estimate{font-size:11px;line-height:1.6;background:var(--soft);border-radius:12px;padding:12px;margin-top:12px}.estimate p{margin:6px 0 0;color:var(--muted)}.itinerary{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}.itinerary ol{font-size:11px;color:#79816d;line-height:1.8;padding-left:20px}.route-sum{font-size:12px;color:var(--muted);margin-top:6px}.route-cards{margin-top:15px;display:grid;gap:8px}.route-card{display:flex;gap:12px;align-items:center;background:var(--soft);border-radius:14px;padding:12px}.route-card .route-copy{flex:1;min-width:0}.route-card strong{font-size:13px}.route-card p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.5}.route-card time{font-size:13px;font-weight:800;align-self:start}.steps{list-style:none;padding:0;font-size:11px;line-height:1.7}.steps li{padding:9px 0;border-bottom:1px solid var(--line)}.tag{font-size:9px;background:#f0f4e7;padding:3px 6px;border-radius:6px;margin-right:6px;color:#728044;font-weight:800}.info-dialog{max-width:360px;width:calc(100% - 40px);border:0;border-radius:24px;padding:24px;background:white;color:var(--ink);box-shadow:var(--shadow)}.info-dialog::backdrop{background:#26301a33;backdrop-filter:blur(3px)}.info-dialog h2{font-size:20px}.info-dialog p{font-size:12px;line-height:1.7;color:var(--muted)}
.map-pin{position:absolute;transform:translate(-50%,-50%);will-change:left,top}.bus-pin{display:grid;justify-items:center;gap:3px;filter:drop-shadow(0 3px 3px #29351f26);cursor:pointer}.vehicle-body{height:38px;width:21px;display:block;background:var(--accent);border:2px solid white;border-radius:6px;box-shadow:0 0 0 1px #798b49;position:relative;transform:rotate(var(--bearing,0deg))}.vehicle-body:before{content:'';position:absolute;left:2px;right:2px;top:4px;height:7px;border-radius:2px;background:#404932;box-shadow:0 13px 0 #7b9349}.vehicle-body:after{content:'';position:absolute;left:4px;right:4px;bottom:2px;height:2px;background:#fcffff}.bus-line{padding:2px 5px;background:white;border-radius:5px;font-size:9px;font-weight:800;color:#4b5a2f;line-height:14px;border:1px solid #e4e7d9}.user-dot{width:17px;height:17px;border-radius:50%;background:#4d92f4;border:3px solid #fff;box-shadow:0 0 0 6px #4d92f42b,0 2px 8px #26497c22}.endpoint{height:22px;width:22px;border-radius:50%;background:#fff;border:5px solid #95b03d;box-shadow:0 2px 8px #28381733}.endpoint.destination{border-radius:7px;border-color:#31392a}.sheet.collapsed+.sheet-content{display:none}
@media(min-width:760px){.top{left:28px;right:28px;top:24px}.map-meta{left:28px;top:99px}.map-actions{right:28px;top:auto;bottom:40px}.map-msg{left:450px;right:28px;top:24px}.sheet{left:28px;right:auto;width:370px;bottom:110px;max-height:calc(100dvh - 260px)}.sheet-content{max-height:calc(100dvh - 286px);padding:0 22px 20px}.tabbar{left:28px;right:auto;width:370px;bottom:38px}.toast{left:213px;bottom:118px;max-width:340px}.home-sheet{bottom:110px}.map-meta #busStatus{max-width:300px}.area-name{font-size:12px}.clock{padding:13px}}
@media(max-width:360px){.area-name{display:none}.sheet-content{padding-left:15px;padding-right:15px}h1,h2{font-size:22px}.pill{font-size:10px}.next{gap:7px}.tab{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.bus-pin{border:0;background:transparent;padding:0;margin:0;font-family:inherit}
/* Controles próprios, áreas de toque e altura real do Safari/iPhone. */
html,body{height:100vh}#map{height:var(--app-height,100vh)}
.sheet{max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 235px);left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px))}.sheet-content{max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 261px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.stop-pin{height:44px;width:44px;border:0;background:transparent;padding:6px;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 2px 3px #22567030)}.stop-pin svg{width:31px;height:31px;padding:5px;border:2px solid white;border-radius:50%;background:#4195d4;stroke-width:2}.stop-pin:hover svg,.stop-pin:focus-visible svg{background:#176ba7}
.stop-pin.stop-terminal svg{background:#eab308;color:#fff;border-color:#fff}.stop-pin.stop-terminal:hover svg{background:#ca8a04}
.stop-heading{display:flex;align-items:center;gap:12px}.stop-heading>div{flex:1;min-width:0}.stop-heading h2{font-size:19px;line-height:1.3}.stop-heading .text-button{white-space:nowrap;font-size:11px}.stop-actions{display:flex;gap:8px}.stop-actions .cta{font-size:12px;min-height:44px}.stop-line{display:flex;border-top:1px solid var(--line);align-items:center}.stop-line-main{flex:1;min-width:0;display:flex;align-items:center;gap:9px;border:0;background:white;text-align:left;padding:12px 0;color:var(--ink)}.stop-line-copy{flex:1;min-width:0}.stop-line-copy strong{display:block;font-size:11px;line-height:1.5}.stop-line-copy small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.arrival-pill{font-size:12px;color:#64802c;font-weight:800;white-space:nowrap}.alarm-button{width:44px;min-height:44px;background:transparent;border:0;color:#647d27;font-size:24px;padding:4px}.favorite-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink);padding:12px 0;font-size:11px;min-height:44px}.favorite-row small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.favorite-row button{height:44px;width:44px;border:0;border-radius:12px;background:var(--soft);font-size:20px}.alarm-thresholds{display:flex;gap:8px;justify-content:space-between;margin:18px 0}.alarm-thresholds label{display:flex;align-items:center;gap:4px;border-radius:12px;background:var(--soft);padding:12px 8px;font-size:12px;min-height:44px}.alarm-thresholds input{accent-color:#698632;width:17px;height:17px}
.report-button{min-height:34px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--green);padding:5px 8px;font-size:9px;font-weight:800;white-space:nowrap}.report-button:disabled{opacity:.65}
.trip-live{position:fixed;z-index:5;top:calc(env(safe-area-inset-top,0px) + 123px);left:18px;right:75px;max-width:370px;background:white;border-radius:16px;padding:13px 40px 13px 14px;box-shadow:var(--shadow)}.trip-live strong{display:block;font-size:12px}.trip-live span{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.trip-live button{position:absolute;right:2px;top:2px;height:44px;width:36px;border:0;background:transparent;font-size:22px;color:var(--muted)}
input,select,gmp-place-autocomplete::part(input){font-size:16px!important}.text-button,summary{min-height:44px}.map-meta button{min-width:32px;min-height:32px}
.board-line{border:0;border-radius:9px;padding:8px 10px;margin-top:6px;min-height:44px;background:#eaf0d9;color:#50662a;font-size:10px;font-weight:800;text-align:left}
@media(max-height:500px) and (orientation:landscape){.clock{display:none}}
.keyboard-open .tabbar,.keyboard-open .map-actions,.keyboard-open .map-meta{display:none}.keyboard-open .sheet{bottom:calc(100vh - var(--app-height) + 8px);max-height:calc(var(--app-height) - 100px)}.keyboard-open .sheet-content{max-height:calc(var(--app-height) - 126px)}
@media(min-width:760px){.sheet{left:28px;right:auto;max-height:calc(var(--app-height,100vh) - 260px)}.sheet-content{max-height:calc(var(--app-height,100vh) - 286px)}.trip-live{left:440px;top:24px}}
@media(max-height:500px) and (orientation:landscape){.top{top:max(20px,env(safe-area-inset-top,0px));left:calc(env(safe-area-inset-left,0px) + 12px)}.sheet{left:calc(env(safe-area-inset-left,0px) + 12px);right:auto;width:330px;bottom:65px;max-height:calc(var(--app-height,100vh) - 130px)}.sheet-content{max-height:calc(var(--app-height,100vh) - 156px)}.tabbar{left:calc(env(safe-area-inset-left,0px) + 12px);right:auto;width:330px;bottom:5px}.map-meta{left:auto;right:80px;top:25px}.map-actions{right:calc(env(safe-area-inset-right,0px) + 15px);top:25px}.area-name{display:none}}

/* Acabamento mobile: a busca continua visível quando o teclado sobe. */
html,body,#map,button,a{touch-action:manipulation}
body{overscroll-behavior:none;background:var(--navy)}
.app-intro{position:fixed;inset:0;z-index:100;background:var(--navy);display:grid;place-items:center;gap:22px;align-content:center;transition:opacity .28s ease,visibility .28s ease}
.app-intro.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.intro-mark{display:flex;align-items:center;gap:10px;color:white;font-size:29px;letter-spacing:-1.5px}
.intro-mark strong span{color:var(--green)}
.intro-mark .brand-icon{width:48px;height:48px;border-radius:15px}
.intro-mark .brand-icon svg{width:29px;height:29px}
.intro-loader{width:34px;height:3px;border-radius:8px;background:var(--green);animation:introPulse 1s ease-in-out infinite}
@keyframes introPulse{0%,100%{opacity:.3;transform:scaleX(.55)}50%{opacity:1;transform:scaleX(1)}}

/* Elementos de contexto que poluem a home ficam disponíveis em telas específicas. */
.top,.map-meta,#fleetBtn,.heading-bus,.home-shortcuts,#useLocation{display:none!important}
.map-actions{top:calc(env(safe-area-inset-top,0px) + 24px);right:16px}
.map-actions #stopsBtn{display:grid}
.map-actions #locateBtn{display:grid}
.clear-bus-path{position:fixed;z-index:7;top:calc(env(safe-area-inset-top,0px) + 24px);left:50%;transform:translateX(-50%);min-height:42px;border:1px solid #35516a;border-radius:22px;padding:8px 15px;background:var(--navy);color:white;box-shadow:var(--shadow);font-size:11px;font-weight:800}
.home-sheet{bottom:var(--sheet-bottom)}

/* Safari reduz a viewport quando o teclado aparece; o painel ocupa somente o espaço restante. */
.keyboard-open #map{height:var(--app-height)!important}
.keyboard-open .sheet{top:calc(env(safe-area-inset-top,0px) + 10px);bottom:auto!important;max-height:calc(var(--app-height) - env(safe-area-inset-top,0px) - 20px)!important}
.keyboard-open .sheet-content{max-height:calc(var(--app-height) - env(safe-area-inset-top,0px) - 78px)!important;padding-bottom:24px}
.keyboard-open .tabbar{display:none}
.keyboard-open .screen.active .sheet{border-radius:22px}
@media(max-width:380px){.sheet{left:10px;right:10px}.sheet-content{padding-left:15px;padding-right:15px}.cta{min-height:48px}.destination-field{min-height:54px}}

/* Identidade original GV Ponto: azul-marinho, branco e verde; mapa claro. */
.brand,.area-name,.clock,.map-meta{background:var(--navy);color:var(--ink)}
.brand-icon{background:white;color:var(--accent)}.brand-light{color:var(--green);font-weight:700}
.sheet,.info-dialog,.tabbar,.trip-live{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.sheet{box-shadow:0 12px 48px #0a2a4a30}.handle:after{background:#35516a}.sheet-content{scrollbar-color:#35516a transparent}
.live-dot,.origin-dot{background:var(--green)}.origin-dot{box-shadow:0 0 0 3px #4ade801a}
.map-action{background:var(--navy);border-color:var(--line);color:white}.map-action.is-active{background:var(--accent);color:white}
.eyebrow,.section{color:#a4b5c6}.heading-bus,.change,.chevron,.ico{color:#a4b5c6}
.cta{background:var(--accent);color:white}.cta:hover{background:#15803d}.cta.ghost{background:var(--soft);color:var(--green)}
.text-button,.source-link,.alarm-button,.arrival-pill{color:var(--green)}
.badge{background:var(--navy);color:white}.line-card.selected .badge{background:var(--accent);color:white}
.pill,.tag,.chip.next-chip{background:#e7f7ee;color:#15743a}.chip{background:var(--soft);color:#a4b5c6}.chip.next-chip{background:#e7f7ee;color:#15743a}
.tab{background:var(--paper);color:var(--muted)}.tab.on{background:var(--navy);color:var(--green)}
.line-card,.stop-line-main,.favorite-row{background:var(--paper);color:var(--ink)}
.toast{background:var(--navy);color:white;border-color:#35516a;box-shadow:0 8px 32px #0a2a4a33}
.quiet-details>summary:after,.itinerary>summary:after{color:var(--green)}.filter-label svg,.estimate p,.itinerary ol,.route-card p,.data-status{color:var(--muted)}
.board-line{background:#113c37;color:var(--green)}.alarm-thresholds input{accent-color:var(--accent)}
gmp-place-autocomplete{color-scheme:dark;--gmpx-color-surface:#0a2a4a;--gmpx-color-on-surface:#f4f7fb;--gmpx-color-on-surface-variant:#a4b5c6;background:var(--soft)}
.vehicle-body{background:#1685d8;box-shadow:0 0 0 1px #075b9a}.vehicle-body:before{background:#0a2a4a;box-shadow:0 13px 0 #75c7ff}.bus-line{color:#075b9a;border-color:#b8ddf4}.endpoint{border-color:var(--accent)}.endpoint.destination{border-color:var(--navy)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--green)}
/* Layout do PWA: mapa visível, painel recuperável e créditos livres. */
:root{--nav-bottom:calc(env(safe-area-inset-bottom,0px) + 28px);--sheet-bottom:calc(env(safe-area-inset-bottom,0px) + 102px)}
body{background:var(--navy);overscroll-behavior:none}#map{height:calc(var(--app-height,100vh) - env(safe-area-inset-bottom,0px))}
.tabbar{bottom:var(--nav-bottom);height:62px}.tab{flex-direction:column;gap:3px;font-size:10px;min-width:0}.tab svg{width:19px;height:19px}
.sheet{bottom:var(--sheet-bottom);max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 252px);border-radius:24px}
.sheet-content{max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 284px);padding:0 18px 16px}
.handle{height:30px;width:100%;min-height:30px}.handle:after{left:calc(50% - 19px);top:11px}.sheet.collapsed{max-height:74px}.sheet.collapsed .handle{height:22px;min-height:22px}.sheet-peek{display:none;background:transparent;color:var(--ink);border:0;width:100%;min-height:44px;padding:0 18px 12px;font-size:13px;font-weight:800;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sheet.collapsed .sheet-peek{display:block}
.home-sheet .eyebrow{display:none}.home-sheet h1{font-size:25px}.home-sheet .heading-bus{width:34px;height:34px}.home-sheet .origin-details{margin:8px 0}.home-shortcuts{display:flex;gap:8px;margin-top:10px}.home-shortcuts button{flex:1;min-width:0;min-height:44px;background:var(--soft);color:var(--muted);border:1px solid var(--line);border-radius:12px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:11px;font-weight:700}.home-shortcuts svg{width:17px;height:17px}
.panel-toolbar,.route-tools{display:flex;justify-content:space-between;gap:12px;align-items:center}.panel-toolbar{margin-top:-6px;margin-bottom:4px}.panel-toolbar .text-button{font-size:11px}.route-tools:has([hidden]):not(:has(button:not([hidden]))){display:none}
.stop-heading{align-items:start}.stop-heading .text-button{flex-shrink:0;width:46px;white-space:normal;font-size:11px}.stop-heading h2{overflow-wrap:anywhere}.stop-line-main:disabled{opacity:.7}.stop-line-main:focus-visible{outline-offset:-3px}
.map-actions{top:calc(env(safe-area-inset-top,0px) + 139px);gap:8px}.map-action{width:44px;height:44px;border-radius:14px}.map-meta{font-size:11px;padding:5px 6px 5px 11px}.map-meta button{min-height:34px;min-width:34px}
.info-dialog{max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 40px);overflow-y:auto;overscroll-behavior:contain}.toast{bottom:calc(env(safe-area-inset-bottom,0px) + 106px);max-height:40vh;overflow:auto;pointer-events:none}
.connection-status,.update-notice{position:fixed;z-index:9;left:18px;right:18px;top:calc(env(safe-area-inset-top,0px) + 78px);background:var(--navy);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:11px;box-shadow:var(--shadow)}.is-offline .map-meta{visibility:hidden}.update-notice{top:auto;bottom:var(--sheet-bottom);display:flex;align-items:center;justify-content:space-between;gap:10px}.update-notice button{min-height:44px;padding:8px 14px;border:0;background:var(--accent);color:white;border-radius:9px}
.favorite-link{flex:1;border:0;background:transparent;color:var(--ink);text-align:left;min-height:44px;padding:3px 0;font-size:12px}.favorite-row .favorite-link{width:auto;border-radius:0;background:transparent;font-size:12px;height:auto}.favorite-remove{flex-shrink:0}.empty-note{padding:16px 0;color:var(--muted);font-size:12px;line-height:1.6}
.route-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.round-close{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--ink);font-size:27px;line-height:1}.condition-panel{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.condition-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.condition-title strong{font-size:13px}.condition-title span,.condition-status{font-size:10px;color:var(--muted)}.condition-options{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:11px}.condition-options button{min-height:42px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:800}.condition-options button:active,.condition-options button:focus-visible{border-color:var(--green);color:var(--green)}.condition-status{margin:9px 0 0;line-height:1.4}
.trip-live{top:calc(env(safe-area-inset-top,0px) + 122px)}
@media(min-width:760px){.tabbar{bottom:35px;height:62px}.tab{flex-direction:row;font-size:10px}.sheet{bottom:110px;max-height:calc(var(--app-height,100vh) - 255px)}.sheet-content{max-height:calc(var(--app-height,100vh) - 287px)}.map-actions{top:auto;bottom:45px}.connection-status,.update-notice{left:440px;right:auto;width:330px}.trip-live{top:24px}.update-notice{bottom:45px}}
@media(max-height:500px) and (orientation:landscape){.sheet{bottom:90px;max-height:calc(var(--app-height,100vh) - 170px)}.sheet-content{max-height:calc(var(--app-height,100vh) - 202px)}.tabbar{bottom:24px;height:58px}.map-actions{top:25px;bottom:auto}.map-meta{top:25px}.trip-live{left:365px;top:85px}.connection-status{left:365px;right:70px}.top .clock{display:none}}
.keyboard-open .sheet{bottom:calc(100vh - var(--app-height) + 8px);max-height:calc(var(--app-height) - env(safe-area-inset-top,0px) - 80px)}.keyboard-open .sheet-content{max-height:calc(var(--app-height) - env(safe-area-inset-top,0px) - 112px)}.keyboard-open .top{display:none}
.update-notice{top:calc(env(safe-area-inset-top,0px) + 132px);bottom:auto;right:74px;left:18px;padding:7px 9px;gap:6px;font-size:10px}.update-notice button{padding:7px 9px;font-size:10px}.update-notice #dismissUpdate{background:var(--soft);color:var(--muted)}
@media(min-width:760px){.update-notice{left:440px;right:auto;top:100px;width:330px}}
