*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{--toolbar-h:56px;--left-pct:50%;--bg:#05080f;--panel:#090f1a;--panel2:#0b1320;--line:rgba(255,255,255,.12);--text:#f5f7fb;--muted:#91a0b6;--blue:#3a8dff;--yt:#ff0033}
html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:3px solid rgba(94,166,255,.72);outline-offset:2px}button:disabled{cursor:wait;opacity:.65}
.hidden{display:none!important}
.toolbar{height:var(--toolbar-h);display:grid;grid-template-columns:auto minmax(145px,1fr) auto;align-items:center;gap:12px;padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));background:rgba(4,8,15,.97);border-bottom:1px solid var(--line);position:relative;z-index:20;transition:transform .18s ease}
.toolbar.hidden-toolbar{position:absolute;left:0;right:0;transform:translateY(-100%)}
.brand{display:flex;gap:9px;align-items:center;min-width:0}.logo{width:38px;height:38px;border:1px solid rgba(255,255,255,.18);border-radius:10px;display:grid;place-items:center;overflow:hidden;background:#fff;box-shadow:0 5px 16px rgba(255,35,45,.2)}.logo img{width:100%;height:100%;display:block;object-fit:cover}.brand-name{font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toolbar-center{justify-self:center;display:flex;align-items:center;gap:7px}.layout-switch{display:flex;padding:3px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.04)}.layout-btn{height:37px;padding:0 12px;border:0;border-radius:9px;background:transparent;display:flex;align-items:center;gap:7px;color:var(--muted);cursor:pointer}.layout-btn.active{background:#19253a;color:#fff}.layout-icon{width:19px;height:14px;display:inline-block;border:1.5px solid currentColor;border-radius:3px}.layout-icon.two{background:linear-gradient(90deg,transparent 47%,currentColor 47%,currentColor 53%,transparent 53%)}
.toolbar-actions{justify-self:end;display:flex;gap:7px;align-items:center}.app-clock{height:42px;padding:0 5px;display:flex;align-items:center;color:#e7edf7;font-size:13px;font-weight:720;font-variant-numeric:tabular-nums;letter-spacing:.01em;line-height:1;white-space:nowrap}.icon-btn,.mini-btn,.donate-btn,.support-btn{border:1px solid var(--line);background:rgba(255,255,255,.05);border-radius:10px;cursor:pointer}.icon-btn{width:42px;height:42px}.mini-btn{width:40px;height:40px}.donate-btn,.support-btn{height:42px;padding:0 12px;display:flex;align-items:center;gap:7px;font-weight:760;white-space:nowrap}.donate-btn{border-color:rgba(255,86,117,.38);background:rgba(255,0,51,.12);color:#ffd7df}.donate-btn span:first-child{color:#ff4d70;font-size:17px}.support-btn{border-color:rgba(72,157,255,.42);background:rgba(45,126,247,.13);color:#d7eaff}.support-btn svg{width:18px;height:18px;fill:none;stroke:#68b2ff;stroke-width:1.8;stroke-linecap:round}
.floating-toolbar-btn{position:fixed;top:10px;right:10px;z-index:30;width:44px;height:36px;border-radius:12px;border:1px solid var(--line);background:rgba(5,8,15,.85);cursor:pointer}
.workspace{height:calc(100% - var(--toolbar-h));display:grid;overflow:hidden}.workspace.layout-2{grid-template-columns:minmax(0,var(--left-pct)) 7px minmax(0,calc(100% - var(--left-pct) - 7px))}.workspace.layout-1{grid-template-columns:1fr}.workspace.layout-1 .right-pane,.workspace.layout-1 .divider{display:none}body.toolbar-off .workspace{height:100%}
.pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--panel)}.right-pane{background:var(--panel2)}
.sponsored-ad-slot{overflow:hidden;border:1px solid rgba(98,151,208,.38);background:linear-gradient(145deg,#0a1b2d,#050b14);box-shadow:0 12px 34px rgba(0,0,0,.3);transition:height .2s ease,width .2s ease}.sponsored-ad-slot[hidden]{display:none}.ad-box-bar{height:32px;min-height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 7px 0 10px;border-bottom:1px solid rgba(98,151,208,.22);background:rgba(8,22,37,.96)}.ad-sponsored-label{color:#8ea5bc;font-size:9px;font-weight:750;letter-spacing:.05em}.ad-box-actions{display:flex;align-items:center;gap:5px}.ad-collapse,.ad-close{width:25px;height:25px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(3,10,18,.72);color:#d7e5f5;line-height:1;cursor:pointer}.ad-collapse{font-size:16px}.ad-close{font-size:18px}.ad-collapse:hover,.ad-close:hover{border-color:rgba(98,174,255,.42);background:rgba(27,55,84,.94)}.ad-frame-wrap{overflow:hidden;background:rgba(2,8,14,.72)}.sponsored-ad-slot iframe{display:block;width:100%;height:100%;border:0;background:transparent}.sponsored-ad-slot.is-collapsed .ad-frame-wrap{display:none}.sponsored-ad-slot.is-collapsed .ad-box-bar{border-bottom:0}
.bottom-ad-slot{position:relative;z-index:16;width:100%;height:calc(var(--ad-slot-height,90px) + 32px);min-height:calc(var(--ad-slot-height,90px) + 32px);border-width:1px 0 0;border-radius:0;box-shadow:0 -8px 26px rgba(0,0,0,.24)}.bottom-ad-slot .ad-frame-wrap{height:var(--ad-slot-height,90px)}.bottom-ad-slot.is-collapsed{height:32px;min-height:32px}
.square-ad-slot{position:relative;z-index:2;width:min(var(--ad-square-size,250px),42vw,38vh);min-width:150px;flex:0 0 auto;margin-top:18px;border-radius:16px}.square-ad-slot .ad-frame-wrap{width:100%;aspect-ratio:1}.square-ad-slot.is-collapsed{width:180px;min-width:180px}
@media(orientation:landscape) and (max-height:610px){.bottom-ad-slot .ad-frame-wrap{max-height:90px}.ad-collapse,.ad-close{width:24px;height:24px}.square-ad-slot{width:min(var(--ad-square-size,250px),34vh)}}
.pane-bar{height:52px;min-height:52px;display:grid;grid-template-columns:auto minmax(130px,1fr) auto;gap:9px;align-items:center;padding:6px 9px;border-bottom:1px solid var(--line);background:rgba(8,14,24,.98)}.youtube-searchbar{grid-template-columns:minmax(0,1fr) auto}
.search-form{height:40px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#050a13}.search-mark{padding-left:11px;color:#b8cae4;font-size:18px;transform:rotate(-15deg)}.search-form input{min-width:0;height:38px;border:0;outline:0;background:transparent;color:#fff;padding:0 10px}.search-form button{height:38px;min-width:66px;border:0;background:#246fe8;font-weight:750;cursor:pointer}
.search-meta{display:flex;gap:7px;align-items:center}
.youtube-content{flex:1;min-height:0;position:relative;overflow:hidden}.search-home{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:22px;overflow:auto;background:radial-gradient(circle at 50% 20%,rgba(255,0,51,.1),transparent 27%),linear-gradient(140deg,#080d17,#05070c)}.hero-play{width:64px;height:46px;min-height:46px;border-radius:14px;display:grid;place-items:center;background:var(--yt);font-size:20px;box-shadow:0 16px 40px rgba(255,0,51,.22)}.search-home h1{margin:9px 0 4px}.search-home p{max-width:560px;color:var(--muted);margin:0 0 10px}.search-chip-group{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:6px}.search-chip-label{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.recent-searches{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-width:660px}.recent-searches button{min-height:36px;border:1px solid var(--line);background:rgba(255,255,255,.05);border-radius:999px;padding:7px 11px;cursor:pointer}.recent-searches .suggestion-chip{border-color:rgba(255,77,112,.34);background:rgba(255,0,51,.1);color:#ffe5ea}.recent-searches button:hover{border-color:rgba(103,174,255,.58);background:rgba(46,113,223,.17)}.cached-video-section{width:min(900px,100%);margin-top:17px;text-align:left}.cached-video-heading{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}.cached-video-heading strong{font-size:15px}.cached-video-heading-actions,.results-heading-actions{display:flex;align-items:center;gap:7px}.cached-video-heading span{color:var(--muted);font-size:11px}.cached-video-heading-actions button,.shuffle-results-btn{min-height:30px;padding:0 10px;border:1px solid rgba(73,152,237,.32);border-radius:999px;background:rgba(24,88,157,.17);color:#9dccff;font-size:10px;font-weight:760;cursor:pointer;white-space:nowrap}.cached-video-heading-actions button:hover,.shuffle-results-btn:hover{border-color:rgba(86,171,255,.58);background:rgba(31,111,199,.3);color:#fff}.cached-video-heading-actions button:disabled{display:none}.cached-video-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}.cached-video-pick{min-width:0;display:flex;flex-direction:column;gap:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.cached-video-thumb{width:100%;aspect-ratio:16/9;position:relative;display:block;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#151c29,#05070b)}.cached-video-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}.cached-video-play{position:absolute;left:50%;top:50%;width:42px;height:30px;display:grid;place-items:center;border-radius:9px;background:rgba(255,0,51,.9);color:#fff;font-size:13px;transform:translate(-50%,-50%);opacity:0;transition:opacity .18s ease,transform .18s ease;box-shadow:0 7px 20px rgba(0,0,0,.38)}.cached-video-pick:hover .cached-video-thumb img,.cached-video-pick:focus-visible .cached-video-thumb img{transform:scale(1.035)}.cached-video-pick:hover .cached-video-play,.cached-video-pick:focus-visible .cached-video-play{opacity:1;transform:translate(-50%,-50%) scale(1.05)}.cached-video-copy{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;padding:9px 2px 0}.cached-channel-avatar{width:34px;height:34px;display:grid!important;place-items:center;border-radius:50%;background:linear-gradient(145deg,#2668d8,#6d4bc5);color:#fff!important;font-size:13px!important;font-weight:850}.cached-video-details{min-width:0}.cached-video-details strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.3;color:#f6f7fb}.cached-video-details>span{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.cached-video-empty{grid-column:1/-1;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px;text-align:center}
.results-view{position:absolute;inset:0;overflow:auto;padding:12px}.results-view.with-mini-player{padding-bottom:268px}.results-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:2px 2px 10px}.results-heading>div:first-child{display:flex;flex-direction:column;gap:3px}.eyebrow{color:#6faeff;font-size:10px;font-weight:850;letter-spacing:.12em}.results-info{color:var(--muted);font-size:11px;white-space:nowrap}
.results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.video-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:rgba(255,255,255,.04);cursor:pointer;text-align:left;padding:0}.video-card:active{transform:scale(.99)}.skeleton-card{min-height:150px;opacity:.34;background:linear-gradient(105deg,rgba(255,255,255,.03) 30%,rgba(255,255,255,.09) 45%,rgba(255,255,255,.03) 60%);background-size:220% 100%;animation:skeleton 1.4s ease-in-out infinite}.empty-results{color:var(--muted);padding:20px}.thumb-wrap{aspect-ratio:16/9;background:#000;position:relative;overflow:hidden}.thumb-wrap img{width:100%;height:100%;object-fit:cover;display:block}.video-text{padding:9px}.video-title{font-size:13px;line-height:1.28;font-weight:760;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.channel{display:block;margin-top:5px;color:var(--muted);font-size:11px}@keyframes skeleton{to{background-position-x:-220%}}@media(prefers-reduced-motion:reduce){.skeleton-card{animation:none}.toolbar,.toast{transition:none}}
.player-view{position:absolute;inset:0;z-index:3;background:#000;display:flex;flex-direction:column}.player-view.mini-player{inset:auto 12px 12px auto;width:min(360px,calc(100% - 24px));height:min(250px,calc(100% - 24px));z-index:8;border:1px solid rgba(255,255,255,.2);border-radius:15px;overflow:hidden;box-shadow:0 18px 54px rgba(0,0,0,.68)}.youtube-player-host,.player-view iframe{width:100%;flex:1;min-height:0;border:0;background:#000}.player-bottom{height:50px;min-height:50px;background:#080d16;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 9px}.mini-player .player-bottom{height:46px;min-height:46px}.player-title-wrap{min-width:0;display:flex;flex-direction:column}.player-title-wrap strong,.player-title-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-title-wrap strong{font-size:12px}.player-title-wrap span{font-size:10px;color:var(--muted);margin-top:2px}.player-actions{flex:0 0 auto;display:flex;align-items:center;gap:7px}.player-results-btn,.player-next-btn{height:36px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.06);padding:0 11px;cursor:pointer;white-space:nowrap}.player-next-btn{border-color:rgba(255,60,101,.42);background:linear-gradient(135deg,rgba(255,23,79,.2),rgba(104,11,46,.35));color:#ffe5ec;font-weight:780}
.player-transport{flex:0 0 auto;padding:7px 10px 8px;border-top:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(14,20,30,.98),rgba(6,10,17,.99));user-select:none}.player-progress-row{height:25px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px}.player-time{color:#cad5e5;font-size:10px;font-weight:720;font-variant-numeric:tabular-nums;text-align:center}.player-progress-wrap{position:relative;height:18px;display:flex;align-items:center}.player-progress-wrap:before,.player-buffered{content:"";position:absolute;left:0;right:0;height:4px;border-radius:99px;pointer-events:none}.player-progress-wrap:before{background:rgba(255,255,255,.17)}.player-buffered{right:auto;width:0;background:rgba(255,255,255,.36)}.player-seek{position:relative;z-index:2;width:100%;height:18px;margin:0;appearance:none;background:transparent;cursor:pointer;touch-action:none}.player-seek::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(90deg,#ff174f 0 var(--seek-progress,0%),transparent var(--seek-progress,0%))}.player-seek::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6px;appearance:none;border:3px solid #fff;border-radius:50%;background:#ff174f;box-shadow:0 2px 8px rgba(0,0,0,.45)}.player-seek::-moz-range-track{height:4px;border:0;border-radius:99px;background:rgba(255,255,255,.17)}.player-seek::-moz-range-progress{height:4px;border-radius:99px;background:#ff174f}.player-seek::-moz-range-thumb{width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#ff174f}.player-touch-controls{display:flex;align-items:center;justify-content:center;gap:7px}.player-touch-controls button{height:38px;min-width:42px;padding:0 10px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(255,255,255,.07);color:#f5f8fc;font-size:12px;font-weight:750;cursor:pointer}.player-touch-controls button:hover{border-color:rgba(94,166,255,.55);background:rgba(50,113,190,.22)}.player-touch-controls .player-primary-control{width:48px;border-color:rgba(255,49,91,.55);background:linear-gradient(145deg,#fa174b,#b40c36);font-size:16px}.player-volume{width:min(105px,15vw);accent-color:#ff174f;cursor:pointer}.player-channel-link{max-width:100%;margin:2px 0 0;padding:0;border:0;background:transparent;color:#8eb9ef;font-size:10px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.player-channel-link:hover{text-decoration:underline;color:#c9e2ff}.player-youtube-btn{height:36px;padding:0 10px;border:1px solid rgba(255,53,83,.45);border-radius:10px;background:rgba(255,0,51,.13);color:#ffdce4;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.mini-player .player-transport,.mini-player .player-youtube-btn{display:none}.mini-player .player-channel-link{pointer-events:none;color:var(--muted)}
.pane-title{display:flex;gap:7px;align-items:center;white-space:nowrap}.site-dot{color:#52dc8a}.url-form{display:grid;grid-template-columns:1fr auto;min-width:0}.url-form input{min-width:0;height:35px;border:1px solid var(--line);border-right:0;border-radius:10px 0 0 10px;outline:0;background:#050a13;color:#fff;padding:0 10px}.url-form button{height:35px;border:0;border-radius:0 10px 10px 0;background:#246fe8;font-weight:750;padding:0 12px;cursor:pointer}
.maps-controls{flex:0 0 auto;padding:9px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#0b1523,#080f1a);box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:4}.maps-search-form,.maps-directions-form{display:flex;align-items:center;gap:7px}.maps-search-form input,.maps-directions-form input{height:44px;min-width:0;border:1px solid rgba(255,255,255,.14);border-radius:14px;outline:0;background:#fff;color:#172033;padding:0 13px;font-size:16px!important;line-height:normal;box-shadow:0 4px 16px rgba(0,0,0,.16);touch-action:manipulation}.maps-search-form input::placeholder,.maps-directions-form input::placeholder{color:#6f7785}.maps-search-form input{flex:1 1 160px}.maps-search-form button,.maps-directions-form button,.maps-open-link{height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.13);border-radius:13px;background:#2169d4;color:#fff;font-weight:750;padding:0 12px;cursor:pointer;text-decoration:none;white-space:nowrap;touch-action:manipulation}.maps-search-form button:disabled,.maps-directions-form button:disabled{cursor:wait;opacity:.68}.maps-direction-toggle{background:#192b44!important}.maps-open-link{width:44px;padding:0}.maps-recent-searches{display:flex;gap:6px;margin-top:7px;overflow-x:auto;scrollbar-width:thin}.maps-recent-searches:before{content:"Gần đây";flex:0 0 auto;align-self:center;color:var(--muted);font-size:10px}.maps-recent-searches button{flex:0 0 auto;max-width:180px;height:30px;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.05);color:#dbe7f8;font-size:11px;cursor:pointer;touch-action:manipulation}.maps-directions-form{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}.maps-directions-form input{flex:1 1 150px}.maps-current-location{gap:5px;background:#0b845f!important;border-color:rgba(82,220,138,.38)!important}.maps-current-location>span:first-child{font-size:17px}.maps-directions-close{width:44px;padding:0!important;background:rgba(255,255,255,.06)!important}
.right-stage{position:relative;flex:1;min-height:0}.right-frame{width:100%;height:100%;border:0;background:#fff}.right-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;background:radial-gradient(circle at 50% 40%,rgba(58,141,255,.12),transparent 32%),linear-gradient(140deg,#0a111d,#060a11)}.right-empty h2{margin:10px 0 5px}.right-empty p{margin:0 0 12px;color:var(--muted)}.web-icon{width:62px;height:62px;border-radius:17px;display:grid;place-items:center;background:#163154;font-size:30px}.quick-sites button{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.06);cursor:pointer}.maps-navigation-card{position:absolute;z-index:5;left:12px;right:12px;bottom:max(42px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(7,15,27,.96);box-shadow:0 14px 42px rgba(0,0,0,.42);backdrop-filter:blur(12px)}.maps-route-summary{min-width:0;display:flex;flex-direction:column}.maps-route-mode{color:#65dda2;font-size:10px;font-weight:800}.maps-route-summary strong,.maps-route-summary small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maps-route-summary strong{margin-top:3px;font-size:14px}.maps-route-summary small{margin-top:3px;color:var(--muted);font-size:10px}.maps-route-actions{flex:0 0 auto;display:flex;gap:7px}.maps-route-actions button,.maps-route-actions a{height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:12px;font-weight:780;text-decoration:none;white-space:nowrap;cursor:pointer}.maps-route-actions button{border:1px solid var(--line);background:rgba(255,255,255,.06)}.maps-route-actions a{border:0;background:#168a58;color:#fff}
.hybrid-map-shell{position:absolute;inset:0;overflow:hidden;background:#dce5ed}.vietmap-map-canvas{position:absolute;inset:0}.map-search-card{position:absolute;z-index:6;top:12px;left:12px;right:76px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;pointer-events:none}.maps-autocomplete-host,.map-route-retry,.maps-recent-places{pointer-events:auto}.maps-autocomplete-host{min-width:0;min-height:48px;border-radius:16px;background:#fff;box-shadow:0 5px 22px rgba(17,35,56,.3);overflow:visible}.maps-autocomplete-host>input{width:100%;height:48px;border:0;border-radius:16px;padding:0 15px;color:#5d6876;background:#fff;font-size:16px!important}.map-route-retry{height:48px;padding:0 14px;border:0;border-radius:14px;background:#1769db;color:#fff;font-weight:780;box-shadow:0 5px 20px rgba(17,35,56,.28);cursor:pointer}.maps-recent-places{grid-column:1/-1;display:flex;gap:6px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:none}.maps-recent-places::-webkit-scrollbar{display:none}.maps-recent-places button{flex:0 0 auto;max-width:190px;height:32px;padding:0 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid rgba(255,255,255,.62);border-radius:999px;background:rgba(10,23,40,.88);color:#fff;font-size:11px;box-shadow:0 4px 14px rgba(0,0,0,.2);cursor:pointer}.map-control-stack{position:absolute;z-index:6;top:12px;right:12px;display:flex;flex-direction:column;gap:7px}.map-control-stack button{width:52px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;border:1px solid rgba(20,37,58,.12);border-radius:14px;background:rgba(255,255,255,.96);color:#1a2d45;box-shadow:0 4px 18px rgba(17,35,56,.24);cursor:pointer;touch-action:manipulation}.map-control-stack button>span:first-child{font-size:19px;line-height:1}.map-control-stack button.active{background:#1769db;color:#fff}.map-control-stack button.busy{animation:map-pulse 1s ease-in-out infinite}.map-control-label{font-size:8px;font-weight:760;line-height:1.05}.maps-status{position:absolute;z-index:8;left:50%;top:78px;max-width:calc(100% - 32px);transform:translateX(-50%);padding:10px 14px;border-radius:12px;background:rgba(8,18,32,.93);color:#fff;font-size:12px;text-align:center;box-shadow:0 6px 24px rgba(0,0,0,.3)}.maps-status[data-type=error]{background:rgba(126,24,42,.96)}.maps-status[data-type=loading]:before{content:"";display:inline-block;width:10px;height:10px;margin-right:7px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:map-spin .8s linear infinite}.maps-route-card{position:absolute;z-index:7;left:12px;right:76px;bottom:max(42px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px;border:1px solid rgba(255,255,255,.3);border-radius:20px;background:rgba(7,16,29,.96);color:#fff;box-shadow:0 14px 42px rgba(0,0,0,.42);backdrop-filter:blur(12px)}.maps-route-copy{min-width:0;display:flex;flex-direction:column}.maps-route-mode{color:#6ee7a8;font-size:10px;font-weight:800}.maps-route-copy>strong,.maps-route-copy>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maps-route-copy>strong{margin-top:4px;font-size:15px}.maps-route-copy>small{margin-top:3px;color:#aebcd0;font-size:10px}.maps-route-loading{margin-top:7px;color:#9ec7ff;font-size:11px}.maps-route-metrics{display:flex;gap:18px;margin-top:11px}.maps-route-metrics>span{display:flex;flex-direction:column}.maps-route-metrics b{font-size:16px}.maps-route-metrics small{margin-top:2px;color:#91a0b6;font-size:9px}.maps-route-actions{display:grid;grid-template-columns:repeat(2,minmax(88px,1fr));gap:7px;align-content:center}.maps-route-actions button{min-height:42px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;font-weight:760;cursor:pointer;touch-action:manipulation}.maps-route-actions .maps-start-navigation{grid-column:1/-1;border:0;background:#158653;font-size:14px}.map-vehicle-marker{width:34px;height:34px;display:grid;place-items:center;border:4px solid #fff;border-radius:50%;background:#1677ff;color:#fff;box-shadow:0 3px 13px rgba(0,0,0,.36)}.map-vehicle-marker span{display:block;transform:rotate(calc(var(--vehicle-heading,0deg) - 45deg));font-size:17px;line-height:1;transition:transform .2s ease}@keyframes map-spin{to{transform:rotate(360deg)}}@keyframes map-pulse{50%{opacity:.55}}
.maps-placeholder{position:absolute;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;background:radial-gradient(circle at 50% 36%,rgba(48,119,215,.2),transparent 32%),linear-gradient(145deg,#0b1727,#08101c);color:#fff}.maps-placeholder-icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:14px;border:1px solid rgba(132,190,255,.34);border-radius:20px;background:rgba(39,113,211,.2);color:#8ec5ff;font-size:31px}.maps-placeholder strong{font-size:20px}.maps-placeholder p{max-width:390px;margin:8px 0 17px;color:#aebdd1;font-size:13px;line-height:1.45}.maps-placeholder button{min-width:150px;min-height:48px;border:0;border-radius:14px;background:#1769db;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 8px 26px rgba(24,105,219,.32)}
.embed-hint{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(4,8,15,.9);color:#c3ccda;font-size:11px;box-shadow:0 8px 24px rgba(0,0,0,.3);opacity:1;transform:translateY(0);transition:opacity .45s ease,transform .45s ease}.embed-hint.fading{opacity:0;transform:translateY(8px);pointer-events:none}.embed-hint button{width:32px;height:32px;flex:0 0 auto;border:0;border-radius:8px;background:rgba(255,255,255,.08);cursor:pointer}
.divider{background:#111a29;cursor:col-resize;position:relative;touch-action:none}.divider:after{content:"";width:3px;height:48px;border-radius:99px;background:rgba(255,255,255,.2);position:absolute;left:2px;top:50%;transform:translateY(-50%)}
.settings-dialog{width:min(590px,calc(100vw - 24px));max-height:calc(100vh - 24px);border:1px solid var(--line);border-radius:20px;padding:0;color:#fff;background:#0b1220;box-shadow:0 28px 90px rgba(0,0,0,.55)}.settings-dialog::backdrop{background:rgba(0,0,0,.66);backdrop-filter:blur(6px)}.settings-card{padding:19px;overflow:auto;max-height:calc(100vh - 24px)}.settings-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.settings-header h2{margin:4px 0 0}.close-btn{border:0;background:transparent;color:#b8c2d2;font-size:29px;cursor:pointer}.setting-group{margin:17px 0}.setting-group>label,.cache-maintenance strong{display:block;font-weight:700;margin-bottom:8px}.setting-group>input[type=text]{width:100%;height:45px;border-radius:12px;border:1px solid var(--line);background:#060b14;color:#fff;padding:0 12px;outline:0}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:7px}.segmented button,.preset-row button{min-height:43px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.05);cursor:pointer}.segmented button.active{border-color:#3b8dff;background:#15366a}.preset-row{display:flex;gap:8px;margin-top:8px}.range-heading{display:flex;justify-content:space-between;margin-bottom:8px}#splitRange{width:100%}.checkbox-row{display:flex!important;gap:10px;align-items:center;font-weight:500!important}.cache-maintenance{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid rgba(255,91,111,.25);border-radius:14px;background:rgba(255,61,87,.055)}.cache-maintenance>div{min-width:0}.cache-maintenance strong{margin-bottom:4px}.cache-maintenance p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.danger-secondary{flex:0 0 auto;min-height:40px;padding:0 13px;border:1px solid rgba(255,91,111,.55);border-radius:11px;background:rgba(255,61,87,.12);color:#ffd8dd;font-weight:750;cursor:pointer}.danger-secondary:hover{background:rgba(255,61,87,.22)}.danger-secondary:disabled{cursor:wait;opacity:.65}.bookmark-box{padding:13px;border:1px solid var(--line);border-radius:14px;background:#070d17}.bookmark-box strong{display:block;margin-bottom:8px}.bookmark-box code{display:block;color:#9fc5ff;word-break:break-all;font-size:11px;margin-bottom:9px}.bookmark-box button{min-height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.06);cursor:pointer}.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}.settings-actions button{height:44px;border-radius:12px;font-weight:750;cursor:pointer}.secondary{border:1px solid var(--line);background:rgba(255,255,255,.05)}.primary{border:0;background:#2a78f3}
.donate-dialog,.support-dialog{width:min(430px,calc(100vw - 24px));max-height:calc(100vh - 20px);border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:0;color:#fff;background:#0b1220;box-shadow:0 28px 90px rgba(0,0,0,.62)}.donate-dialog::backdrop,.support-dialog::backdrop{background:rgba(0,0,0,.74);backdrop-filter:blur(7px)}.donate-card,.support-card{padding:16px;display:flex;flex-direction:column;align-items:stretch;max-height:calc(100vh - 20px);overflow:auto}.donate-header,.support-header{display:flex;align-items:start;justify-content:space-between;margin-bottom:10px}.donate-header h2,.support-header h2{margin:3px 0 0}.donate-card img,.support-card img{display:block;width:100%;max-height:66vh;object-fit:contain;border-radius:14px}.donate-card img{background:#5c1010}.support-card img{background:#0a4ead}.donate-card p,.support-card p{text-align:center;color:var(--muted);font-size:12px;margin:10px 0}.donate-done,.support-done{height:44px;border-radius:11px;color:#fff;font-weight:760;cursor:pointer}
.toast{position:fixed;bottom:15px;left:50%;transform:translate(-50%,12px);z-index:100;opacity:0;pointer-events:none;padding:10px 14px;border-radius:11px;background:rgba(2,5,10,.95);border:1px solid var(--line);transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:850px){.brand-name,.layout-btn span:last-child,.donate-label,.support-label{display:none}.donate-btn,.support-btn{width:42px;padding:0;justify-content:center}.toolbar{grid-template-columns:auto 1fr auto}.toolbar-center{justify-self:center}.results-grid{grid-template-columns:1fr}.pane-bar:not(.youtube-searchbar){grid-template-columns:auto 1fr}.pane-bar:not(.youtube-searchbar) .mini-btn{display:none}.cached-video-list{grid-template-columns:1fr}.search-chip-group{align-items:flex-start;flex-direction:column;gap:5px}.search-chip-label{align-self:center}.maps-search-form,.maps-directions-form{flex-wrap:wrap}.maps-search-form input{flex-basis:100%}.maps-directions-form input{flex-basis:calc(50% - 4px)}.maps-location-label{display:none}.maps-current-location{width:44px;padding:0!important}.maps-navigation-card{align-items:stretch;flex-direction:column}.maps-route-actions{display:grid;grid-template-columns:1fr 1.35fr}.maps-route-actions button,.maps-route-actions a{width:100%}}
@media(max-width:620px){.app-clock{display:none}.toolbar{gap:6px}.toolbar-actions{gap:4px}.icon-btn,.donate-btn,.support-btn{width:38px}.layout-switch{padding:2px}.layout-btn{padding:0 8px}.player-view.mini-player{left:8px;right:8px;bottom:8px;width:auto;height:min(220px,calc(100% - 16px))}.results-view.with-mini-player{padding-bottom:232px}}
@media(max-width:850px),(hover:none){input,textarea,select{font-size:16px!important}}
@media(orientation:landscape) and (max-height:610px){:root{--toolbar-h:48px}.toolbar{padding-top:4px;padding-bottom:4px}.pane-bar{height:43px;min-height:43px;padding-top:4px;padding-bottom:4px}.search-form,.search-form input,.search-form button,.url-form input,.url-form button{height:36px}.maps-controls{padding-top:5px;padding-bottom:5px}.maps-search-form input,.maps-search-form button,.maps-open-link,.maps-directions-form input,.maps-directions-form button{height:38px}.search-home{padding:12px}.hero-play{display:none}.search-home h1{margin-top:0}.search-home p{margin-bottom:7px}.cached-video-section{margin-top:9px}.cached-video-list{gap:12px 8px}.cached-video-copy{grid-template-columns:28px minmax(0,1fr);gap:7px;padding-top:7px}.cached-channel-avatar{width:28px;height:28px}.results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.video-text{padding:7px}.video-title{font-size:11px}.channel{font-size:9px}.player-bottom{height:44px;min-height:44px}.maps-navigation-card{left:9px;right:9px;bottom:9px;padding:9px}.maps-route-actions button,.maps-route-actions a{height:38px}.donate-card img,.support-card img{max-height:58vh}}
@media(orientation:landscape) and (max-height:610px){.player-transport{padding:4px 8px 5px}.player-progress-row{height:20px}.player-touch-controls{gap:5px}.player-touch-controls button{height:32px;min-width:37px;padding:0 8px}.player-volume{width:min(88px,13vw)}.player-youtube-btn{height:32px}.player-actions{gap:4px}.player-results-btn,.player-next-btn{height:32px;padding:0 8px}}
@media(max-width:850px){.map-search-card{left:8px;top:8px;right:64px}.map-control-stack{top:8px;right:8px}.map-control-stack button{width:48px;min-height:46px}.maps-route-card{left:8px;right:64px;bottom:36px;grid-template-columns:1fr;gap:9px;padding:11px}.maps-route-actions{grid-template-columns:repeat(3,1fr)}.maps-route-actions .maps-start-navigation{grid-column:auto}.maps-route-metrics{margin-top:8px}.maps-status{top:70px}}
@media(max-width:620px){.map-search-card{right:58px}.map-control-stack button{width:44px}.map-control-label{display:none}.maps-route-card{right:58px}.maps-route-actions{grid-template-columns:1fr}.maps-route-actions .maps-start-navigation{grid-column:auto}.maps-route-copy>small{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.maps-route-metrics{gap:10px}.maps-placeholder{padding:18px}.maps-placeholder-icon{width:52px;height:52px;margin-bottom:10px}.maps-placeholder strong{font-size:17px}.maps-placeholder p{margin:6px 0 12px;font-size:11px}}
@media(max-width:620px) and (orientation:portrait){.workspace.layout-2{grid-template-columns:1fr;grid-template-rows:minmax(0,var(--left-pct)) 7px minmax(0,calc(100% - var(--left-pct) - 7px))}.workspace.layout-2 .divider{cursor:row-resize}.workspace.layout-2 .divider:after{width:48px;height:3px;left:50%;top:2px;transform:translateX(-50%)}.workspace.layout-2 .pane{width:100%;min-width:0}.workspace.layout-2 .map-search-card{right:58px}.workspace.layout-2 .maps-route-card{max-height:calc(100% - 74px);overflow:auto}}
@media(orientation:landscape) and (max-height:610px){.map-search-card{top:7px;left:7px;right:59px}.maps-autocomplete-host,.maps-autocomplete-host>input,.map-route-retry{min-height:42px;height:42px}.map-control-stack{top:7px;right:7px;gap:5px}.map-control-stack button{width:46px;min-height:38px}.map-control-label{display:none}.maps-route-card{left:7px;right:59px;bottom:34px;padding:9px;gap:9px}.maps-route-copy>strong{font-size:13px}.maps-route-metrics{margin-top:6px}.maps-route-metrics b{font-size:14px}.maps-route-actions button{min-height:36px}}
.maps-autocomplete-host{position:relative}
.maps-autocomplete-host>input{color:#172033;outline:0}

/* Vehicle profile and map switcher */
.maps-pane-bar{grid-template-columns:minmax(0,1fr) auto}
.vehicle-view-switcher{width:126px;display:grid;grid-template-areas:"switch";flex:0 0 126px}
.vehicle-view-switcher>.vehicle-pane-switch{grid-area:switch}
.vehicle-pane-switch{width:126px;min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid rgba(61,153,255,.42);border-radius:11px;background:rgba(27,91,163,.22);color:#dcecff;font-size:11px;font-weight:780;cursor:pointer;white-space:nowrap}
.vehicle-pane-switch b{font:inherit}
.vehicle-map-switch-icon{font-size:14px;transform:rotate(-35deg)}
.vehicle-pane-switch:hover{background:rgba(35,112,203,.34)}
.right-stage{container-type:inline-size;container-name:rightstage}
.vehicle-panel{position:absolute;inset:0;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;padding:clamp(16px,2.2vw,32px);overflow:hidden;background:radial-gradient(circle at 76% 24%,rgba(34,138,245,.24),transparent 34%),radial-gradient(circle at 14% 80%,rgba(21,201,153,.13),transparent 30%),linear-gradient(145deg,#081a2e,#04101d 64%,#020a13)}
.vehicle-panel:before{content:"";position:absolute;inset:0;z-index:-2;opacity:.32;background-image:linear-gradient(rgba(78,146,215,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(78,146,215,.075) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,transparent 3%,#000 35%,#000 85%,transparent)}
.vehicle-panel:after{content:"";position:absolute;left:7%;right:7%;bottom:17%;z-index:-1;height:18%;border-radius:50%;background:radial-gradient(ellipse,rgba(34,130,232,.23),transparent 68%);filter:blur(18px)}
.vehicle-ambient{position:absolute;z-index:-1;border-radius:50%;filter:blur(1px);pointer-events:none}.vehicle-ambient-one{width:180px;height:180px;right:-70px;top:-70px;border:1px solid rgba(69,164,255,.2);box-shadow:0 0 80px rgba(30,119,225,.2)}.vehicle-ambient-two{width:100px;height:100px;left:-45px;bottom:18%;border:1px solid rgba(37,219,167,.15);box-shadow:0 0 70px rgba(26,186,145,.12)}
.vehicle-panel-copy{position:relative;z-index:2}.vehicle-eyebrow{display:block;margin-bottom:7px;color:#65aefb;font-size:10px;font-weight:850;letter-spacing:.16em}.vehicle-panel-copy h2{margin:0;font-size:clamp(23px,2.4vw,38px);line-height:1.02;letter-spacing:-.035em}.vehicle-facts{display:flex;gap:8px;margin-top:10px}.vehicle-facts span{min-height:28px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(105,158,215,.2);border-radius:999px;background:rgba(12,31,52,.72);color:#bcd0e6;font-size:10px}.vehicle-facts i{width:10px;height:10px;border:1px solid rgba(255,255,255,.65);border-radius:50%;box-shadow:0 0 10px currentColor}.vehicle-facts b{font-weight:730}
.vehicle-visual{position:relative;align-self:stretch;justify-self:stretch;width:100%;height:100%;min-width:0;min-height:0}.vehicle-artwork{position:absolute;isolation:isolate;left:50%;top:51%;width:min(80%,720px);aspect-ratio:1491/1055;transform:translate(-50%,-50%);filter:drop-shadow(0 20px 26px rgba(0,0,0,.34))}.vehicle-artwork:before,.vehicle-artwork:after{content:"";position:absolute;z-index:-1;pointer-events:none;will-change:transform,opacity}.vehicle-artwork:before{inset:7% -7% 2% -10%;border-radius:48%;background:radial-gradient(ellipse at 46% 72%,rgba(29,157,255,.34),transparent 53%),radial-gradient(ellipse at 76% 45%,rgba(25,229,194,.16),transparent 42%);filter:blur(15px);animation:vehicle-energy-flash 2.2s ease-in-out infinite}.vehicle-artwork:after{left:-12%;top:31%;width:76%;height:42%;background:repeating-linear-gradient(171deg,transparent 0 18px,rgba(75,183,255,.42) 19px 21px,transparent 22px 38px);filter:blur(2px);opacity:.44;transform:skewX(-18deg);animation:vehicle-speed-streak 1.35s linear infinite}.vehicle-artwork img{position:absolute;z-index:1;inset:0;width:100%;height:100%;display:block;object-fit:contain;transition:filter .3s ease;animation:vehicle-road-motion 2.6s ease-in-out infinite}.vehicle-visual[data-color=white] img{filter:none}.vehicle-visual[data-color=silver] img{filter:grayscale(.58) brightness(.94) contrast(.96)}.vehicle-visual[data-color=gray] img{filter:grayscale(.72) brightness(.72) contrast(1.08)}.vehicle-visual[data-color=black] img{filter:grayscale(.78) brightness(.42) contrast(1.18)}.vehicle-visual[data-color=red] img{filter:sepia(.72) saturate(3.8) hue-rotate(310deg) brightness(.78) contrast(1.08)}.vehicle-visual[data-color=blue] img{filter:sepia(.7) saturate(3.5) hue-rotate(168deg) brightness(.78) contrast(1.08)}
.vehicle-plate-preview{position:absolute;z-index:3;left:var(--plate-left,50%);top:var(--plate-top,68.35%);width:var(--plate-width,23%);aspect-ratio:520/110;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 7%;transform:translate(-50%,-50%);border:clamp(1px,.2cqw,2px) solid #111;border-radius:clamp(2px,.3cqw,4px);background:linear-gradient(180deg,#fff 0%,#f7f7f4 68%,#e7e7e2 100%);color:#090909;box-shadow:0 2px 5px rgba(0,0,0,.48),inset 0 0 0 1px rgba(0,0,0,.08);font-family:"Arial Narrow","Roboto Condensed",Arial,sans-serif;font-size:clamp(9px,2.45cqw,20px);font-stretch:condensed;font-weight:900;line-height:1;letter-spacing:-.055em;text-shadow:0 .3px 0 #000;white-space:nowrap}
.vehicle-plate-preview:before,.vehicle-plate-preview:after{content:"";position:absolute;top:50%;width:clamp(2px,.45cqw,5px);aspect-ratio:1;transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle at 38% 35%,#eee 0 14%,#515151 34%,#111 72%);box-shadow:0 0 0 1px rgba(0,0,0,.38)}
.vehicle-plate-preview:before{left:3.5%}.vehicle-plate-preview:after{right:3.5%}
.vehicle-plate-preview.is-empty{color:#6d6d69;font-size:clamp(6px,1.65cqw,13px);letter-spacing:.08em;text-shadow:none}
@keyframes vehicle-energy-flash{0%,100%{opacity:.42;transform:scale(.97)}48%{opacity:.9;transform:scale(1.025)}62%{opacity:.58;transform:scale(1.005)}}
@keyframes vehicle-speed-streak{0%{opacity:0;transform:translate3d(18%,0,0) skewX(-18deg)}18%{opacity:.5}78%{opacity:.26}100%{opacity:0;transform:translate3d(-24%,0,0) skewX(-18deg)}}
@keyframes vehicle-road-motion{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-1.5px,0)}}
@media(prefers-reduced-motion:reduce){.vehicle-artwork:before,.vehicle-artwork:after,.vehicle-artwork img{animation:none}.vehicle-artwork:before{opacity:.56}.vehicle-artwork:after{opacity:.18}}
.vehicle-image-caption{position:absolute;right:3%;bottom:7%;padding:5px 8px;border:1px solid rgba(118,170,226,.23);border-radius:999px;background:rgba(4,14,25,.78);color:#9eb8d4;font-size:8px;font-weight:720;backdrop-filter:blur(8px)}
.vehicle-panel-footer{position:relative;z-index:2;display:flex;align-items:end;gap:20px;padding-top:11px;border-top:1px solid rgba(114,168,224,.16)}.vehicle-identity{min-width:0;display:flex;flex-direction:column}.vehicle-identity>span{color:#6e91b8;font-size:8px;font-weight:850;letter-spacing:.13em}.vehicle-identity strong{margin-top:3px;overflow:hidden;color:#fff;font-size:18px;letter-spacing:.045em;text-overflow:ellipsis;white-space:nowrap}.vehicle-identity small{margin-top:2px;color:#758ca7;font-size:8px}

.vehicle-settings{padding:14px;border:1px solid rgba(74,153,235,.25);border-radius:15px;background:rgba(20,57,96,.12)}.vehicle-settings-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px}.vehicle-settings-heading>div{display:flex;flex-direction:column;gap:4px}.vehicle-settings-heading strong{font-size:16px}.vehicle-settings-heading small{max-width:310px;color:#879bb4;font-size:9px;line-height:1.4;text-align:right}.vehicle-settings-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:11px}.vehicle-settings-grid label{min-width:0;display:flex;flex-direction:column;gap:6px}.vehicle-settings-grid label>span{color:#aebfd3;font-size:10px;font-weight:720}.vehicle-settings-grid select,.vehicle-settings-grid input{width:100%;height:43px;padding:0 11px;border:1px solid rgba(107,158,214,.25);border-radius:11px;outline:0;background:#06101c;color:#fff}.vehicle-settings-grid select:focus,.vehicle-settings-grid input:focus{border-color:#3f97f6}.vehicle-plate-field{grid-column:1/-1}.vehicle-plate-field input{text-transform:uppercase;font-weight:820;letter-spacing:.06em}.vehicle-template-note{margin:10px 0 0;padding:8px 10px;border-radius:9px;background:rgba(255,181,58,.08);color:#e7bd78;font-size:9px;line-height:1.4}

@container rightstage (max-width:560px){.vehicle-panel{padding:14px;gap:2px}.vehicle-panel-copy h2{font-size:24px}.vehicle-facts{margin-top:7px}.vehicle-panel-footer{gap:10px}.vehicle-identity small{display:none}}
@media(orientation:landscape) and (max-height:610px){.vehicle-panel{grid-template-columns:minmax(0,1fr) minmax(150px,.42fr);grid-template-rows:auto minmax(0,1fr);column-gap:14px;padding:12px 16px}.vehicle-panel-copy{grid-column:1;grid-row:1}.vehicle-visual{grid-column:1;grid-row:2;width:100%;height:100%}.vehicle-panel-footer{grid-column:2;grid-row:1/3;align-self:stretch;flex-direction:column;align-items:stretch;justify-content:end;border-top:0;border-left:1px solid rgba(114,168,224,.16);padding:0 0 0 14px}}
@media(max-width:620px){.vehicle-settings-heading{align-items:start;flex-direction:column}.vehicle-settings-heading small{text-align:left}.vehicle-settings-grid{grid-template-columns:1fr}.vehicle-plate-field{grid-column:auto}}

.vietmap-search-results{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:min(330px,55vh);overflow:auto;padding:6px;border:1px solid rgba(24,45,70,.14);border-radius:14px;background:#fff;box-shadow:0 12px 34px rgba(17,35,56,.34)}
.vietmap-search-result{width:100%;display:flex;flex-direction:column;gap:3px;padding:10px 11px;border:0;border-radius:10px;background:transparent;color:#172033;text-align:left;cursor:pointer}
.vietmap-search-result:hover,.vietmap-search-result.active{background:#eaf3ff}
.vietmap-search-result strong{font-size:13px}.vietmap-search-result small{overflow:hidden;color:#637083;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.map-destination-marker{width:28px;height:28px;display:grid;place-items:center;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#e52234;color:#fff;box-shadow:0 3px 13px rgba(0,0,0,.36);transform:rotate(-45deg)}
.map-destination-marker span{transform:rotate(45deg);font-size:13px}
.vietmapgl-ctrl-bottom-left,.vietmapgl-ctrl-bottom-right{z-index:5}
.hybrid-map-shell>.vietmap-map-canvas.vietmapgl-map{position:absolute;inset:0;width:100%;height:100%}
.map-route-inputs{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:8px;pointer-events:auto}
.map-route-inputs .maps-autocomplete-host{min-width:0}
.maps-autocomplete-host>.map-input-badge{position:absolute;z-index:1;left:11px;top:50%;width:24px;height:24px;display:grid;place-items:center;transform:translateY(-50%);border-radius:50%;background:#1769db;color:#fff;font-size:11px;font-weight:900;pointer-events:none}
.maps-autocomplete-host[data-route-point=destination]>.map-input-badge{background:#e52234}
.maps-autocomplete-host>.map-input-badge+input{padding-left:43px}
.map-swap-route{width:42px;height:48px;border:0;border-radius:14px;background:#fff;color:#1769db;font-size:21px;font-weight:900;box-shadow:0 5px 22px rgba(17,35,56,.3);cursor:pointer;pointer-events:auto;touch-action:manipulation}
.map-swap-route:disabled{cursor:not-allowed;opacity:.55}
.map-origin-marker,.map-destination-marker{width:30px;height:30px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;font-size:12px;font-weight:900;box-shadow:0 3px 13px rgba(0,0,0,.36)}
.map-origin-marker{background:#1769db}.map-destination-marker{background:#e52234;transform:none}.map-destination-marker span{transform:none}
@media(max-width:1200px){.map-route-inputs{grid-template-columns:minmax(0,1fr) 42px;grid-template-rows:48px 48px}.map-route-inputs .maps-autocomplete-host[data-route-point=origin]{grid-column:1;grid-row:1}.map-route-inputs .maps-autocomplete-host[data-route-point=destination]{grid-column:1;grid-row:2}.map-swap-route{grid-column:2;grid-row:1/3;align-self:center}.maps-status{top:126px}.workspace.layout-2 .maps-route-card{max-height:calc(100% - 126px)}}
@media(orientation:landscape) and (max-height:610px){.map-swap-route{height:42px}.map-route-inputs{grid-template-rows:42px 42px;gap:5px}.maps-status{top:103px}.workspace.layout-2 .maps-route-card{max-height:calc(100% - 103px)}}
.maps-route-card{padding:10px 12px;gap:10px;border-radius:16px;transition:transform .28s ease,opacity .2s ease}
.maps-route-card.route-panel-collapsed{transform:translateX(calc(100% + 100px));opacity:0;pointer-events:none}
.maps-route-panel-toggle{position:absolute;z-index:10;right:68px;bottom:84px;width:36px;height:46px;border:1px solid rgba(255,255,255,.24);border-radius:13px 0 0 13px;background:rgba(7,16,29,.97);color:#fff;font-size:25px;font-weight:800;line-height:1;box-shadow:-5px 6px 18px rgba(0,0,0,.3);cursor:pointer;transition:right .28s ease,background .2s ease}
.maps-route-panel-toggle.collapsed{right:0;background:#1769db;border-color:rgba(255,255,255,.5)}
.maps-route-copy>strong{margin-top:2px;font-size:14px}.maps-route-copy>small{margin-top:2px}
.maps-route-metrics{gap:15px;margin-top:7px}.maps-route-metrics b{font-size:15px}
.maps-route-actions{grid-template-columns:minmax(132px,1.45fr) repeat(2,minmax(82px,1fr));gap:6px}.maps-route-actions .maps-start-navigation{grid-column:auto;font-size:13px}.maps-route-actions button{min-height:40px;padding:0 10px}
.maps-route-meta{margin-top:5px;color:#9fc5ff;font-size:9px;line-height:1.25}
.maps-route-card.navigation-active .maps-route-mode,.maps-route-card.navigation-active .maps-route-copy>small,.maps-route-card.navigation-active .maps-route-meta{display:none}
.maps-navigation-lite{margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12)}
.maps-next-instruction{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center}
.maps-next-instruction-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#1769db;color:#fff;font-size:19px;font-weight:900}
.maps-next-instruction-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.maps-next-instruction-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.maps-next-instruction-copy small{color:#9ec7ff;font-size:9px}
.maps-off-route-warning{margin:5px 0 0;padding:5px 7px;border:1px solid rgba(255,177,72,.36);border-radius:8px;background:rgba(133,70,0,.28);color:#ffd39a;font-size:9px}
@media(max-width:850px){.maps-route-card{padding:9px 10px;gap:7px}.maps-route-actions{grid-template-columns:1.35fr 1fr 1fr}.maps-route-panel-toggle{right:56px;bottom:88px}.maps-route-panel-toggle.collapsed{right:0}}
@media(max-width:620px){.maps-route-actions{grid-template-columns:1.35fr 1fr 1fr}.maps-route-actions button{min-width:0;padding:0 5px;font-size:11px}.maps-route-panel-toggle{right:50px}}
@media(orientation:landscape) and (max-height:610px){.maps-route-card{padding:7px 9px}.maps-route-metrics{margin-top:4px}.maps-navigation-lite{margin-top:4px;padding-top:4px}.maps-route-panel-toggle{right:51px;bottom:61px;height:42px}.maps-route-panel-toggle.collapsed{right:0}}

/* Route card: wide in-car dashboard layout */
.hybrid-map-shell{container-type:inline-size;container-name:mapstage}
.maps-route-card{left:18px;right:28px;bottom:max(16px,env(safe-area-inset-bottom));min-height:156px;display:grid;grid-template-columns:68px minmax(0,1fr) minmax(360px,42%);grid-template-rows:minmax(62px,auto) auto;column-gap:18px;row-gap:12px;align-items:center;padding:18px 20px 18px 18px;overflow:visible;border:2px solid rgba(87,174,255,.7);border-radius:26px;background:linear-gradient(112deg,rgba(6,18,35,.985),rgba(10,25,46,.97) 58%,rgba(5,18,34,.985));box-shadow:0 18px 38px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.14),0 0 18px rgba(23,116,217,.2);isolation:isolate}
.maps-route-card:after{content:"";position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:24px;background:linear-gradient(128deg,transparent 48%,rgba(20,105,170,.11) 70%,rgba(34,149,231,.17));pointer-events:none}
.maps-route-vehicle-icon{grid-column:1;grid-row:1/3;align-self:start;width:64px;height:64px;display:grid;place-items:center;border:2px solid rgba(74,255,177,.65);border-radius:18px;background:linear-gradient(145deg,#0a9e61,#087244);color:#fff;box-shadow:0 8px 24px rgba(0,192,111,.24),inset 0 1px 0 rgba(255,255,255,.28)}
.maps-route-vehicle-icon svg{width:38px;height:38px;fill:currentColor}
.maps-route-copy{grid-column:2;grid-row:1/3;align-self:stretch;position:relative;z-index:2;justify-content:flex-start}
.maps-route-mode{display:block;color:#57e6a1;font-size:12px;font-weight:750;letter-spacing:.01em}.maps-route-mode b{color:#69f3b0}
.maps-route-copy>strong{max-width:100%;margin-top:7px;font-size:20px;line-height:1.12;letter-spacing:-.015em}
.maps-route-copy>small{max-width:100%;margin-top:5px;color:#b4c3d8;font-size:12px}
.maps-route-metrics{display:flex;align-items:center;gap:22px;margin-top:auto;padding-top:15px}
.maps-route-metric{min-width:0;display:grid!important;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center}
.maps-route-metric+.maps-route-metric{padding-left:20px;border-left:1px solid rgba(181,209,238,.3)}
.maps-route-metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:#fff;box-shadow:0 7px 18px rgba(0,0,0,.25)}
.maps-route-metric-icon.distance{background:linear-gradient(145deg,#38a4ff,#1769db)}.maps-route-metric-icon.duration{background:linear-gradient(145deg,#ffc229,#f29b00)}
.maps-route-metric-icon svg{width:24px;height:24px;fill:currentColor}
.maps-route-metric-copy{min-width:0;display:flex!important;flex-direction:column}.maps-route-metrics .maps-route-metric-copy b{font-size:22px;line-height:1.05;white-space:nowrap}.maps-route-metrics .maps-route-metric-copy small{margin-top:4px;color:#91a4bc;font-size:10px;white-space:nowrap}
.maps-route-loading{margin-top:7px;color:#9ec7ff;font-size:11px}
.maps-route-ornament{grid-column:3;grid-row:1;align-self:stretch;position:relative;z-index:0;min-height:60px;opacity:.88;pointer-events:none}
.maps-route-ornament svg{width:100%;height:100%;overflow:visible}.maps-route-ornament .route-glow{fill:none;stroke:#2489ff;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 5px #1480ff)}.maps-route-ornament .route-start{fill:#2bdd97;stroke:#d8fff0;stroke-width:3;filter:drop-shadow(0 0 7px #20cf84)}.maps-route-ornament .route-mid{fill:#fff;stroke:#3097ff;stroke-width:3}.maps-route-ornament .route-pin{fill:#ff3f50;filter:drop-shadow(0 4px 5px rgba(255,51,72,.5))}
.maps-route-card .maps-route-actions{grid-column:3;grid-row:2;position:relative;z-index:2;display:grid;grid-template-columns:minmax(145px,1.5fr) repeat(2,minmax(86px,1fr));gap:10px;align-self:end}
.maps-route-card .maps-route-actions button{min-width:0;min-height:52px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:7px;overflow:hidden;border:2px solid rgba(166,192,220,.34);border-radius:16px;background:linear-gradient(145deg,rgba(42,59,82,.94),rgba(21,34,52,.96));color:#fff;font-size:12px;font-weight:820;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);white-space:nowrap}
.maps-route-card .maps-route-actions button:before{font-size:20px;line-height:1}.maps-route-card .maps-route-actions .maps-start-navigation:before{content:"➤";transform:rotate(-35deg)}.maps-route-card.navigation-active .maps-route-actions .maps-start-navigation:before{content:"■";transform:none;font-size:14px}.maps-route-action-icon{width:21px;height:21px;flex:0 0 auto;fill:currentColor}
.maps-route-card .maps-route-actions .maps-start-navigation{border-color:rgba(62,239,166,.6);background:linear-gradient(145deg,#22be79,#0b985a);font-size:13px;box-shadow:0 8px 20px rgba(0,181,105,.22),inset 0 1px 0 rgba(255,255,255,.22)}
.maps-route-card .maps-route-actions button:hover{filter:brightness(1.1)}.maps-route-card .maps-route-actions button:active{transform:translateY(1px)}
.maps-route-meta{margin-top:6px;color:#9fc5ff;font-size:9px;line-height:1.25}
.maps-navigation-lite{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}
.maps-route-card.navigation-active{min-height:132px}.maps-route-card.navigation-active .maps-route-copy>strong{font-size:17px}.maps-route-card.navigation-active .maps-route-metrics{padding-top:8px}.maps-route-card.navigation-active .maps-route-ornament{opacity:.45}
.maps-route-panel-toggle{right:0;bottom:70px;width:45px;height:70px;border:2px solid rgba(88,177,255,.8);border-right:0;border-radius:17px 0 0 17px;background:rgba(7,20,39,.98);font-size:31px;box-shadow:-7px 7px 20px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.12)}
.maps-route-panel-toggle.collapsed{right:0;background:linear-gradient(145deg,#2484ed,#1259bd)}

@container mapstage (max-width:760px){.maps-route-card{left:10px;right:18px;min-height:148px;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:10px;padding:13px 14px 12px;border-radius:21px}.maps-route-vehicle-icon{width:52px;height:52px;border-radius:15px}.maps-route-vehicle-icon svg{width:31px;height:31px}.maps-route-copy{grid-column:2;grid-row:1}.maps-route-copy>strong{margin-top:4px;font-size:16px}.maps-route-copy>small{margin-top:3px;font-size:10px}.maps-route-mode{font-size:10px}.maps-route-ornament{display:none}.maps-route-metrics{gap:12px;margin-top:9px;padding-top:0}.maps-route-metric{grid-template-columns:32px minmax(0,1fr);gap:7px}.maps-route-metric+.maps-route-metric{padding-left:12px}.maps-route-metric-icon{width:32px;height:32px}.maps-route-metric-icon svg{width:18px;height:18px}.maps-route-metrics .maps-route-metric-copy b{font-size:16px}.maps-route-card .maps-route-actions{grid-column:1/3;grid-row:2;grid-template-columns:1.25fr 1fr 1fr;gap:7px}.maps-route-card .maps-route-actions button{min-height:42px;padding:0 8px;border-radius:12px;font-size:11px}.maps-route-card .maps-route-actions button:before{font-size:16px}.maps-route-card .maps-route-actions .maps-start-navigation{font-size:12px}.maps-route-panel-toggle{bottom:59px;width:38px;height:58px;border-radius:14px 0 0 14px}.maps-route-card.navigation-active .maps-route-copy{grid-column:2}.maps-route-card.navigation-active .maps-navigation-lite{margin-top:5px;padding-top:5px}}
@container mapstage (max-width:480px){.maps-route-card{grid-template-columns:44px minmax(0,1fr);padding:10px;column-gap:9px}.maps-route-vehicle-icon{width:42px;height:42px;border-radius:13px}.maps-route-vehicle-icon svg{width:26px;height:26px}.maps-route-copy>strong{font-size:14px}.maps-route-copy>small{display:none}.maps-route-metric-icon{display:none}.maps-route-metric{display:block!important}.maps-route-metric+.maps-route-metric{padding-left:10px}.maps-route-metrics .maps-route-metric-copy b{font-size:14px}.maps-route-card .maps-route-actions button{min-height:38px;padding:0 5px}.maps-route-card .maps-route-actions button:before,.maps-route-card .maps-route-action-icon{display:none}.maps-route-panel-toggle{bottom:53px;height:52px}}
@media(orientation:landscape) and (max-height:610px){.maps-route-card{bottom:8px;min-height:124px;padding-top:10px;padding-bottom:10px}.maps-route-vehicle-icon{width:50px;height:50px}.maps-route-copy>strong{font-size:16px}.maps-route-metrics{padding-top:8px}.maps-route-metric-icon{width:34px;height:34px}.maps-route-metrics .maps-route-metric-copy b{font-size:17px}.maps-route-card .maps-route-actions button{min-height:42px}.maps-route-panel-toggle{bottom:36px;height:58px}}

/* Minimal in-car navigation */
.map-vehicle-marker span{transform:rotate(calc(var(--vehicle-heading,0deg) - 90deg))}
.hybrid-map-shell.navigation-mode .map-search-card{display:none}
.maps-turn-prompt{position:absolute;z-index:10;top:14px;left:14px;min-width:150px;display:flex;align-items:center;gap:13px;padding:10px 18px 10px 11px;border:1px solid rgba(100,180,255,.5);border-radius:18px;background:rgba(6,17,31,.94);color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(10px);pointer-events:none}
.maps-turn-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#28b9ff,#1670ea);color:#fff;font-size:43px;font-weight:900;line-height:1;text-shadow:0 3px 8px rgba(0,0,0,.25)}
.maps-turn-distance{min-width:70px;font-size:29px;font-weight:900;line-height:1;letter-spacing:-.035em;white-space:nowrap}
.maps-route-dock{position:absolute;z-index:9;left:50%;bottom:max(14px,env(safe-area-inset-bottom));display:flex;gap:7px;padding:7px;transform:translateX(-50%);border:1px solid rgba(126,175,226,.32);border-radius:16px;background:rgba(6,17,31,.9);box-shadow:0 10px 30px rgba(0,0,0,.35);backdrop-filter:blur(10px);transition:opacity .24s ease,transform .24s ease}
.hybrid-map-shell.navigation-controls-hidden .maps-route-dock.navigation-active{opacity:0;transform:translate(-50%,calc(100% + 28px));pointer-events:none}
.maps-route-dock button{min-width:92px;height:42px;padding:0 14px;border:1px solid rgba(151,187,225,.26);border-radius:11px;background:rgba(31,50,73,.92);color:#fff;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.maps-route-dock .maps-start-navigation{min-width:116px;border-color:rgba(61,238,165,.55);background:linear-gradient(145deg,#20b974,#0a9255)}
.maps-route-dock.navigation-active .maps-start-navigation{border-color:rgba(255,100,113,.65);background:linear-gradient(145deg,#e94150,#a91f31)}
.maps-route-dock button:active{transform:translateY(1px)}
.maps-route-dock button:disabled{cursor:wait;opacity:.55}
.maps-off-route-toast{position:absolute;z-index:10;top:92px;left:14px;display:flex;align-items:center;gap:10px;padding:8px 9px 8px 12px;border:1px solid rgba(255,172,76,.55);border-radius:13px;background:rgba(100,49,5,.94);color:#ffe0b7;font-size:11px;font-weight:750;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.maps-off-route-toast button{height:32px;padding:0 10px;border:0;border-radius:9px;background:#ffad37;color:#221300;font-size:10px;font-weight:850;cursor:pointer}
@media(max-width:620px){.maps-turn-prompt{top:10px;left:10px;min-width:128px;padding:8px 13px 8px 8px;border-radius:15px}.maps-turn-icon{width:49px;height:49px;border-radius:12px;font-size:36px}.maps-turn-distance{min-width:62px;font-size:24px}.maps-route-dock{bottom:8px;gap:5px;padding:5px}.maps-route-dock button{min-width:72px;height:38px;padding:0 9px;font-size:10px}.maps-route-dock .maps-start-navigation{min-width:93px}.maps-off-route-toast{top:72px;left:10px}}
@media(orientation:landscape) and (max-height:610px){.maps-turn-prompt{top:8px}.maps-route-dock{bottom:7px}.maps-route-dock button{height:36px}.maps-off-route-toast{top:70px}}

/* Modern media + map dashboard */
:root{--toolbar-h:76px;--bg:#030812;--panel:#07111f;--panel2:#061321;--line:rgba(124,170,220,.18);--muted:#8fa5bf;--blue:#287ef1;--yt:#ff174f}
html,body{background:radial-gradient(circle at 22% 0,rgba(127,22,107,.2),transparent 28%),radial-gradient(circle at 82% 5%,rgba(0,105,190,.17),transparent 25%),#030812}
button{transition:background-color .18s ease,border-color .18s ease,filter .18s ease,transform .12s ease}button:hover{border-color:rgba(92,166,255,.52)}
.toolbar{grid-template-columns:minmax(230px,auto) minmax(200px,1fr) auto;gap:18px;padding:10px 16px;background:linear-gradient(90deg,rgba(43,4,38,.96),rgba(7,11,31,.98) 42%,rgba(3,16,29,.98));border-bottom:1px solid rgba(94,155,222,.2);box-shadow:0 12px 36px rgba(0,0,0,.28)}
.brand{gap:12px}.logo{width:48px;height:48px;border:0;border-radius:13px;background:linear-gradient(145deg,#ff174f,#e6003d);box-shadow:0 10px 26px rgba(255,0,69,.28)}.brand-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.brand-name{display:block;font-size:19px;font-weight:850;letter-spacing:-.02em}.brand-copy small{display:block;overflow:hidden;color:#8798b1;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.layout-switch{padding:3px;border-color:rgba(60,145,246,.42);border-radius:14px;background:rgba(5,18,35,.88);box-shadow:0 0 28px rgba(19,111,224,.13)}.layout-btn{height:42px;padding:0 16px;border-radius:11px;font-weight:750}.layout-btn.active{background:linear-gradient(135deg,#2686fb,#155dd2);box-shadow:0 7px 20px rgba(24,111,229,.35)}
.toolbar-actions{gap:10px}.app-clock{min-width:178px;justify-content:center;color:#f2f6ff;font-size:12px}.icon-btn,.donate-btn,.support-btn{height:46px;border-radius:13px;background:rgba(10,23,40,.8)}.icon-btn{width:46px}.donate-btn,.support-btn{padding:0 17px}.donate-btn{border-color:rgba(255,49,101,.5);background:linear-gradient(145deg,rgba(92,13,45,.72),rgba(36,10,30,.78))}.support-btn{border-color:rgba(45,133,238,.55);background:linear-gradient(145deg,rgba(16,57,105,.72),rgba(7,28,52,.82))}
.workspace{padding:12px 12px 11px;background:transparent}.workspace.layout-2{grid-template-columns:minmax(0,var(--left-pct)) 10px minmax(0,calc(100% - var(--left-pct) - 10px))}.pane{overflow:hidden;border:1px solid rgba(61,119,179,.22);border-radius:18px;background:linear-gradient(155deg,rgba(8,19,34,.97),rgba(3,11,21,.99));box-shadow:0 14px 36px rgba(0,0,0,.28)}.right-pane{border-color:rgba(38,142,236,.42);background:#071321;box-shadow:0 0 24px rgba(23,119,211,.12),0 14px 36px rgba(0,0,0,.28)}
.divider{background:transparent}.divider:after{background:rgba(70,143,218,.55);box-shadow:0 0 12px rgba(49,141,232,.45)}
.youtube-pane{position:relative;container-type:inline-size;container-name:media-pane;display:grid;grid-template-columns:52px minmax(0,1fr)}.youtube-main{position:relative;z-index:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.media-sidebar{position:relative;z-index:12;width:52px;min-height:0;display:flex;flex-direction:column;gap:4px;padding:9px 5px;overflow-x:hidden;overflow-y:auto;border-right:1px solid rgba(92,142,196,.18);background:linear-gradient(180deg,rgba(6,18,32,.62),rgba(3,12,23,.48));box-shadow:7px 0 22px rgba(0,0,0,.08);backdrop-filter:blur(10px) saturate(1.18);scrollbar-width:none;transition:width .2s ease,background .2s ease,box-shadow .2s ease}.media-sidebar::-webkit-scrollbar{display:none}.media-sidebar.expanded{width:158px;background:linear-gradient(180deg,rgba(6,18,32,.96),rgba(3,12,23,.92));box-shadow:14px 0 34px rgba(0,0,0,.48),inset -1px 0 rgba(101,170,239,.15)}.media-sidebar button{width:100%;min-height:40px;display:grid;grid-template-columns:1fr;gap:7px;align-items:center;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#c9d5e5;cursor:pointer;text-align:left;transition:background .16s ease,border-color .16s ease,opacity .16s ease}.media-sidebar button>span{font-size:18px;line-height:1;text-align:center}.media-sidebar button>b{display:none;overflow:hidden;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.media-sidebar.expanded button{grid-template-columns:27px minmax(0,1fr);padding:0 10px}.media-sidebar.expanded button>b{display:block}.media-sidebar:not(.expanded) button:not(.active):not(:focus-visible){opacity:.68}.media-sidebar:not(.expanded):hover button{opacity:1}.media-sidebar button:hover{background:rgba(33,102,178,.2)}.media-sidebar button.active{border-color:rgba(65,155,255,.48);background:linear-gradient(135deg,rgba(37,127,233,.96),rgba(21,88,189,.92));color:#fff;box-shadow:0 7px 18px rgba(14,91,186,.24);opacity:1}.media-sidebar .media-sidebar-toggle{position:sticky;top:0;z-index:2;margin-bottom:3px;border-color:rgba(82,158,235,.28);background:rgba(12,35,61,.9);color:#9fcbff;box-shadow:0 5px 15px rgba(0,0,0,.22)}.media-sidebar .media-sidebar-toggle>span{font-size:25px;font-weight:350}.media-sidebar.expanded .media-sidebar-toggle{background:linear-gradient(135deg,rgba(29,100,182,.92),rgba(13,54,104,.94));color:#fff}
.pane-bar{height:66px;min-height:66px;padding:10px 13px;border-bottom:1px solid rgba(88,145,205,.16);background:rgba(6,17,31,.9)}.youtube-searchbar{grid-template-columns:minmax(0,1fr) auto}.search-form{height:46px;border-color:rgba(92,145,204,.24);border-radius:14px;background:linear-gradient(145deg,rgba(5,16,30,.98),rgba(10,25,43,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.search-mark{padding-left:15px;color:#d6e5f5;font-size:20px}.search-form input{height:44px;padding:0 13px;color:#fff;font-size:14px}.search-form button{height:44px;min-width:76px;border-radius:12px;background:linear-gradient(135deg,#ff1c55,#ec0042);box-shadow:0 7px 20px rgba(255,0,65,.24);font-size:13px}.mini-btn{border-radius:12px;background:#0c1d33}.cache-badge{border-color:rgba(53,150,255,.34);background:#0c2746}
.youtube-content{background:radial-gradient(circle at 42% 12%,rgba(65,23,91,.12),transparent 26%),linear-gradient(155deg,#06101d,#030a13)}.search-home,.results-view{scrollbar-width:none}.search-home::-webkit-scrollbar,.results-view::-webkit-scrollbar{display:none}.search-home{padding:13px 15px 22px;align-items:stretch;text-align:left;background:transparent}.search-home>.hero-play,.search-home>h1{display:none}.search-chip-group{justify-content:flex-start;gap:10px;margin:0 0 10px}.search-chip-label{display:none}.recent-searches{max-width:none;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;padding:1px 1px 4px;scrollbar-width:none}.recent-searches::-webkit-scrollbar{display:none}.recent-searches button{flex:0 0 auto;min-height:36px;padding:0 14px;border-color:rgba(99,147,200,.22);background:rgba(15,31,51,.82);color:#d6e2f1;font-size:11px}.recent-searches .suggestion-chip:first-child{border-color:rgba(255,66,100,.52);background:linear-gradient(135deg,#ff305f,#dc1649);color:#fff}.recent-searches .suggestion-chip{border-color:rgba(88,145,204,.25);background:rgba(14,29,48,.88);color:#d9e6f5}
.search-chip-rail{width:100%;min-height:41px;display:flex;align-items:center;gap:8px;flex:0 0 auto;margin:0 0 10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.search-chip-rail::-webkit-scrollbar{display:none}.search-chip-rail .search-chip-group,.search-chip-rail .recent-searches{display:contents}.search-chip-rail .recent-searches button{flex:0 0 auto}
.cached-video-section{width:100%;max-width:none;margin-top:1px}.cached-video-heading{margin:2px 2px 11px}.cached-video-heading strong{font-size:15px}.cached-video-heading span{padding:4px 8px;border-radius:999px;background:rgba(39,126,229,.12);color:#79b7ff;font-size:10px}.cached-video-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.cached-video-pick{gap:0}.cached-video-pick:first-child{grid-column:1/-1}.cached-video-thumb{border:1px solid rgba(89,147,211,.2);border-radius:14px;background:#081422;box-shadow:0 10px 28px rgba(0,0,0,.2)}.cached-video-pick:first-child .cached-video-thumb{aspect-ratio:2.35/1;max-height:340px}.cached-video-pick:first-child .cached-video-play{width:55px;height:39px;border-radius:11px;font-size:17px;opacity:1}.cached-video-pick:first-child .cached-video-details strong{font-size:14px}.cached-video-pick:first-child .cached-video-copy{grid-template-columns:40px minmax(0,1fr);padding-top:10px}.cached-video-pick:first-child .cached-channel-avatar{width:40px;height:40px}.cached-video-play{background:linear-gradient(135deg,#ff174f,#ef003f)}.cached-video-copy{grid-template-columns:31px minmax(0,1fr);gap:8px;padding-top:8px}.cached-channel-avatar{width:31px;height:31px;background:linear-gradient(145deg,#2782e9,#6c42c2)}.cached-video-details strong{font-size:11px}.cached-video-details>span{color:#7f94ad;font-size:9px}
.results-view{padding:15px;background:linear-gradient(155deg,#06101d,#030a13)}.results-heading{margin-bottom:12px}.results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}.video-card{border-color:transparent;border-radius:13px;background:transparent}.video-card:hover{border-color:rgba(70,146,230,.45);background:rgba(17,37,61,.62);transform:translateY(-1px)}.thumb-wrap{border-radius:13px}.video-text{padding:8px 3px}.video-title{font-size:12px}.channel{color:#8298b1;font-size:9px}
.player-view{background:#02070d}.player-bottom{border-top:1px solid rgba(83,143,204,.2);background:rgba(5,15,28,.97)}.player-results-btn{border-color:rgba(53,139,232,.4);background:#0d294a}.mini-player .player-actions{gap:4px}.mini-player .player-results-btn,.mini-player .player-next-btn{height:34px;padding:0 8px;font-size:10px}
.maps-pane-bar{padding:0 17px;background:linear-gradient(90deg,rgba(5,22,39,.98),rgba(5,16,30,.96))}.pane-title{font-size:18px}.site-dot{color:#28dd93;text-shadow:0 0 12px rgba(32,224,142,.75)}.right-stage{background:#071321}.map-search-card{top:14px;left:14px;right:74px}.maps-autocomplete-host{border:1px solid rgba(68,139,211,.25);background:rgba(246,250,255,.97);box-shadow:0 10px 30px rgba(2,12,23,.25)}.maps-autocomplete-host>input{background:transparent}.map-route-retry{background:linear-gradient(135deg,#2e8cff,#155ecb)}.map-control-stack{top:14px;right:13px}.map-control-stack button{border-color:rgba(57,119,184,.2);background:rgba(5,18,33,.92);color:#eaf4ff;box-shadow:0 8px 22px rgba(0,0,0,.28)}.map-control-stack button.active{background:#1769db}.maps-placeholder{background:radial-gradient(circle at 50% 42%,rgba(29,126,219,.2),transparent 32%),linear-gradient(145deg,#071728,#030b14)}
.settings-card,.donate-card,.support-card{border:1px solid rgba(72,143,219,.34);background:linear-gradient(155deg,#0b1a2e,#050d18);box-shadow:0 24px 70px rgba(0,0,0,.6)}

@container media-pane (max-width:760px){.cached-video-list,.results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cached-video-pick:first-child{grid-column:1/-1}.cached-video-pick:first-child .cached-video-thumb{aspect-ratio:16/7}.pane-bar{padding-left:9px;padding-right:9px}}
@container media-pane (max-width:480px){.youtube-pane{grid-template-columns:46px minmax(0,1fr)}.media-sidebar{width:46px;padding:8px 4px}.media-sidebar.expanded{width:150px}.media-sidebar button>span{font-size:17px}.cached-video-list,.results-grid{grid-template-columns:1fr}.cached-video-pick:first-child{grid-column:auto}.cached-video-pick:first-child .cached-video-thumb{aspect-ratio:16/9}.search-form button{min-width:58px}.search-meta{display:none}}
@media(max-width:1180px){.brand-copy small{display:none}.brand-name{font-size:16px}.toolbar{grid-template-columns:auto minmax(160px,1fr) auto}.app-clock{min-width:0;font-size:10px}.donate-btn,.support-btn{padding:0 12px}.support-label,.donate-label{display:none}}
@media(max-width:850px){:root{--toolbar-h:62px}.toolbar{padding:7px 9px}.logo{width:42px;height:42px}.layout-switch{padding:2px}.layout-btn{height:38px;padding:0 10px}.workspace{padding:7px}.pane{border-radius:14px}.media-sidebar{border-radius:13px 0 0 13px}.pane-bar{height:58px;min-height:58px}.app-clock{display:none}}
@media(orientation:landscape) and (max-height:610px){:root{--toolbar-h:54px}.toolbar{padding-top:5px;padding-bottom:5px}.logo{width:40px;height:40px}.brand-name{font-size:15px}.layout-btn{height:36px}.icon-btn,.donate-btn,.support-btn{height:38px}.workspace{padding:6px}.pane-bar{height:50px;min-height:50px}.media-sidebar{padding-top:7px}.media-sidebar button{min-height:37px}.search-home{padding-top:8px}.cached-video-pick:first-child .cached-video-thumb{max-height:250px}}

/* Large, glanceable in-car navigation controls */
.maps-turn-prompt{min-width:242px;max-width:calc(100% - 94px);gap:15px;padding:12px 20px 12px 12px;border-radius:20px}
.maps-turn-icon{width:72px;height:72px;flex:0 0 72px;border-radius:18px;font-size:52px}
.maps-turn-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:7px}
.maps-turn-distance{min-width:92px;font-size:36px;line-height:.95}
.maps-turn-road{max-width:220px;overflow:hidden;color:#d9ebff;font-size:17px;font-weight:800;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.maps-route-dock{width:min(430px,calc(100% - 18px));gap:8px;padding:8px;border-radius:18px}
.maps-route-dock button{min-width:0;height:52px;flex:1 1 0;padding:0 10px;border-radius:13px;font-size:14px}
.maps-route-dock .maps-start-navigation{min-width:0;flex-grow:1.18;font-size:15px}
.hybrid-map-shell.navigation-mode .map-control-stack{gap:9px}
.hybrid-map-shell.navigation-mode .map-control-stack button{width:60px;min-height:58px;padding:6px;border-radius:16px}
.hybrid-map-shell.navigation-mode .map-control-stack button>span:first-child{font-size:24px}
.hybrid-map-shell.navigation-mode .map-control-label{font-size:10px;line-height:1.12}
.hybrid-map-shell.navigation-mode .map-vehicle-marker{width:40px;height:40px}
.hybrid-map-shell.navigation-mode .map-vehicle-marker span{font-size:21px}
.maps-off-route-toast{font-size:13px}
.maps-off-route-toast button{height:38px;padding:0 13px;font-size:12px}
@container mapstage (max-width:560px){.maps-turn-prompt{top:10px;left:10px;min-width:208px;max-width:calc(100% - 82px);gap:11px;padding:10px 14px 10px 10px;border-radius:17px}.maps-turn-icon{width:62px;height:62px;flex-basis:62px;border-radius:15px;font-size:46px}.maps-turn-copy{gap:5px}.maps-turn-distance{min-width:78px;font-size:32px}.maps-turn-road{max-width:155px;font-size:15px}.maps-route-dock{bottom:8px;width:calc(100% - 16px);gap:6px;padding:6px}.maps-route-dock button{height:46px;padding:0 6px;font-size:12px}.maps-route-dock .maps-start-navigation{font-size:13px}.hybrid-map-shell.navigation-mode .map-control-stack{right:8px;gap:7px}.hybrid-map-shell.navigation-mode .map-control-stack button{width:54px;min-height:52px}.hybrid-map-shell.navigation-mode .map-control-stack button>span:first-child{font-size:22px}.hybrid-map-shell.navigation-mode .map-control-label{display:block;font-size:9px}}
@container mapstage (max-width:380px){.maps-turn-prompt{min-width:190px;max-width:calc(100% - 70px)}.maps-turn-icon{width:56px;height:56px;flex-basis:56px;font-size:41px}.maps-turn-distance{font-size:29px}.maps-turn-road{max-width:120px;font-size:13px}.maps-route-dock button{height:44px;font-size:11px}.maps-route-dock .maps-start-navigation{font-size:12px}.hybrid-map-shell.navigation-mode .map-control-stack button{width:49px;min-height:48px}.hybrid-map-shell.navigation-mode .map-control-label{display:none}}

/* Swappable split panes; --left-pct stores the YouTube share */
.workspace.layout-2.youtube-first{grid-template-columns:minmax(0,var(--left-pct)) 10px minmax(0,calc(100% - var(--left-pct) - 10px))}
.workspace.layout-2.map-first{grid-template-columns:minmax(0,calc(100% - var(--left-pct) - 10px)) 10px minmax(0,var(--left-pct))}
.workspace.youtube-first .youtube-pane,.workspace.map-first .right-pane{order:1}
.workspace .divider{order:2}
.workspace.youtube-first .right-pane,.workspace.map-first .youtube-pane{order:3}
.swap-panes-btn{font-size:24px;font-weight:800;color:#9fcbff}
.pane-order-segmented button{padding:0 10px;font-size:12px;font-weight:750}
@media(max-width:620px) and (orientation:portrait){.workspace.layout-2.youtube-first{grid-template-rows:minmax(0,var(--left-pct)) 7px minmax(0,calc(100% - var(--left-pct) - 7px))}.workspace.layout-2.map-first{grid-template-rows:minmax(0,calc(100% - var(--left-pct) - 7px)) 7px minmax(0,var(--left-pct))}}

/* Compact remaining-trip information for web navigation */
.maps-route-dock{width:min(760px,calc(100% - 18px));align-items:center}
.maps-trip-status{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));flex:1 1 390px;gap:4px;padding:3px 8px 3px 3px;border-right:1px solid rgba(151,187,225,.22)}
.maps-trip-status>span{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:2px 7px}
.maps-trip-status b{overflow:hidden;color:#fff;font-size:17px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.maps-trip-status small{margin-top:4px;color:#8fa5bd;font-size:9px;font-weight:750;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}
@container mapstage (max-width:650px){.maps-route-dock{flex-wrap:wrap}.maps-trip-status{flex:1 0 100%;padding:2px 3px 6px;border-right:0;border-bottom:1px solid rgba(151,187,225,.22)}.maps-trip-status>span{align-items:center;text-align:center}.maps-trip-status b{font-size:16px}.maps-route-dock button{flex:1 1 0}}
@container mapstage (max-width:380px){.maps-trip-status{grid-template-columns:repeat(4,minmax(0,1fr))}.maps-trip-status>span{padding:2px}.maps-trip-status b{font-size:12px}.maps-trip-status small{font-size:7px}}

/* Single settings scroller + selectable alternative routes */
.settings-dialog{overflow:hidden}
.settings-card{box-sizing:border-box;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.maps-route-dock{flex-wrap:wrap;width:min(860px,calc(100% - 18px))}
.maps-route-options{order:-1;flex:1 0 100%;display:flex;gap:7px;overflow-x:auto;padding:0 0 2px;scrollbar-width:none}
.maps-route-options::-webkit-scrollbar{display:none}
.maps-route-dock .maps-route-option{height:auto;min-width:170px;flex:1 0 170px;display:flex;align-items:flex-start;justify-content:center;gap:2px;padding:7px 10px;text-align:left;white-space:normal}
.maps-route-option strong,.maps-route-option span,.maps-route-option small{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.maps-route-option strong{color:#cae2ff;font-size:11px}.maps-route-option span{font-size:11px}.maps-route-option small{color:#8fa5bd;font-size:9px}
.maps-route-dock .maps-route-option.active{border-color:#4da3ff;background:linear-gradient(145deg,rgba(31,112,217,.96),rgba(17,71,145,.96));box-shadow:0 0 0 2px rgba(49,148,255,.16)}
.maps-route-dock.navigation-active .maps-route-options{display:none}
@container mapstage (max-width:560px){.maps-route-dock .maps-route-option{min-width:148px;flex-basis:148px;padding:6px 8px}.maps-route-option strong,.maps-route-option span{font-size:10px}.maps-route-option small{font-size:8px}}

/* Nearby POI search and Route v4 toll details */
.maps-nearby-places{grid-column:1/-1;display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;padding:1px 0 2px;pointer-events:auto;scrollbar-width:none}
.maps-nearby-places::-webkit-scrollbar{display:none}.maps-nearby-places>span{flex:0 0 auto;padding:0 3px;color:#fff;font-size:10px;font-weight:850;text-shadow:0 1px 4px rgba(0,0,0,.6);text-transform:uppercase;letter-spacing:.045em}
.maps-nearby-places button{flex:0 0 auto;min-height:34px;padding:0 11px;border:1px solid rgba(255,255,255,.42);border-radius:999px;background:rgba(7,22,39,.9);color:#fff;font-size:11px;font-weight:760;box-shadow:0 5px 16px rgba(0,0,0,.24);cursor:pointer;touch-action:manipulation;white-space:nowrap}
.maps-nearby-places button:hover,.maps-nearby-places button:focus-visible{border-color:#66b5ff;background:#12599e;outline:0}.maps-nearby-places button:active{transform:translateY(1px)}
.vietmap-search-result-meta{color:#1671cb;font-size:10px;font-weight:780}
.maps-status{top:145px}
.maps-route-dock #mapsTollDetailsBtn{border-color:rgba(255,190,55,.45);background:linear-gradient(145deg,rgba(123,80,9,.94),rgba(73,45,5,.96));color:#fff2bd}
.maps-toll-panel{position:absolute;z-index:12;right:14px;bottom:88px;width:min(470px,calc(100% - 28px));max-height:min(520px,calc(100% - 120px));overflow:hidden;border:1px solid rgba(102,174,244,.45);border-radius:20px;background:linear-gradient(155deg,rgba(7,23,42,.985),rgba(4,13,25,.985));color:#fff;box-shadow:0 22px 58px rgba(0,0,0,.52);backdrop-filter:blur(15px)}
.maps-toll-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid rgba(128,179,229,.2)}.maps-toll-panel>header>div{min-width:0;display:flex;flex-direction:column}.maps-toll-panel>header small{color:#ffcd62;font-size:9px;font-weight:850;letter-spacing:.055em}.maps-toll-panel>header strong{margin-top:5px;font-size:25px;line-height:1.05}.maps-toll-panel>header span{margin-top:5px;color:#a8bdd3;font-size:11px}.maps-toll-panel>header button{width:42px;height:42px;flex:0 0 auto;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font-size:25px;cursor:pointer}
.maps-toll-list{max-height:300px;overflow:auto;padding:8px 10px}.maps-toll-station{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 6px;border-bottom:1px solid rgba(135,181,226,.14)}.maps-toll-station:last-child{border-bottom:0}.maps-toll-order{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#1769db;color:#fff;font-size:12px;font-weight:900}.maps-toll-station>div{min-width:0;display:flex;flex-direction:column;gap:3px}.maps-toll-station strong,.maps-toll-station small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maps-toll-station strong{font-size:12px}.maps-toll-station small{color:#8ea5bd;font-size:10px}.maps-toll-station em{width:max-content;padding:2px 6px;border-radius:999px;background:rgba(46,161,111,.2);color:#73e0ad;font-size:8px;font-style:normal;font-weight:800}.maps-toll-station>b{color:#ffd46e;font-size:13px;white-space:nowrap}.maps-toll-empty{padding:24px 12px;color:#9bb0c7;font-size:12px;text-align:center}.maps-toll-panel>p{margin:0;padding:10px 16px 14px;border-top:1px solid rgba(128,179,229,.15);color:#7189a2;font-size:9px;line-height:1.45}
@container mapstage (max-width:760px){.maps-recent-places{display:none}.maps-toll-panel{right:8px;bottom:74px;width:calc(100% - 16px);max-height:calc(100% - 94px)}.maps-toll-panel>header{padding:12px}.maps-toll-panel>header strong{font-size:21px}.maps-toll-list{max-height:240px}}
@media(max-width:1200px){.maps-status{top:168px}}
@media(orientation:landscape) and (max-height:610px){.maps-nearby-places button{min-height:30px;padding:0 9px;font-size:10px}.maps-status{top:140px}.maps-toll-panel{bottom:58px;max-height:calc(100% - 74px)}.maps-toll-list{max-height:190px}}

/* XMap destination-first search */
.map-search-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;max-width:760px}
.xmap-search-bar{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) 44px 44px;align-items:center;border:1px solid rgba(69,137,207,.28);border-radius:18px;background:rgba(250,253,255,.98);box-shadow:0 10px 32px rgba(2,12,23,.3);pointer-events:auto}
.xmap-search-icon{display:grid;place-items:center;color:#1769db;font-size:27px;font-weight:900;line-height:1}
.xmap-search-bar .maps-autocomplete-host{min-height:52px;border:0;border-radius:0;background:transparent;box-shadow:none}
.xmap-search-bar .maps-autocomplete-host>input{height:52px;padding:0 7px;border-radius:0;background:transparent;font-size:17px!important;font-weight:650}
.xmap-search-bar .maps-autocomplete-host>input::placeholder{color:#66768b;font-weight:560}
.xmap-search-toggle{width:38px;height:38px;margin-right:5px;border:0;border-radius:12px;background:#e8f2ff;color:#1769db;font-size:22px;font-weight:900;cursor:pointer;touch-action:manipulation}
.xmap-search-toggle:active{transform:scale(.96)}
.xmap-search-bar .vietmap-search-results{z-index:4;top:calc(100% + 10px);left:-42px;right:-88px}
.xmap-search-panel{grid-column:1/-1;max-height:min(520px,calc(100vh - 120px));overflow:auto;margin-top:2px;padding:15px;border:1px solid rgba(90,157,222,.28);border-radius:20px;background:rgba(5,18,33,.96);color:#fff;box-shadow:0 18px 44px rgba(0,0,0,.4);backdrop-filter:blur(18px);pointer-events:auto;scrollbar-width:thin}
.xmap-search-panel-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:13px}.xmap-search-panel-title strong{font-size:18px}.xmap-search-panel-title small{color:#9cb0c7;font-size:10px}
.xmap-search-panel .maps-nearby-places{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:9px;padding:0;overflow:visible}
.xmap-search-panel .maps-nearby-places button{min-width:0;min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:8px 5px;border-color:rgba(104,158,214,.2);border-radius:16px;background:rgba(16,38,62,.9);box-shadow:none;white-space:normal}
.xmap-search-panel .maps-nearby-places button>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#246fbe,#123e72);font-size:19px;line-height:1}
.xmap-search-panel .maps-nearby-places button>b{font-size:11px;line-height:1.15}.xmap-search-panel .maps-nearby-places button:hover,.xmap-search-panel .maps-nearby-places button:focus-visible{background:#164f85}
.xmap-recent-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:16px 2px 8px}.xmap-recent-heading strong{font-size:13px}.xmap-recent-heading small{color:#8194aa;font-size:9px}
.xmap-search-panel .maps-recent-places{display:flex;flex-direction:column;gap:6px;padding:0;overflow:visible}
.xmap-search-panel .maps-recent-places button{width:100%;max-width:none;height:auto;min-height:52px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:7px 10px;border:0;border-radius:13px;background:rgba(255,255,255,.055);color:#fff;text-align:left;box-shadow:none;white-space:normal}
.xmap-search-panel .maps-recent-places button>span:first-child{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(68,139,211,.18);color:#8ac7ff;font-size:17px}.xmap-search-panel .maps-recent-places button>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.xmap-search-panel .maps-recent-places strong,.xmap-search-panel .maps-recent-places small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xmap-search-panel .maps-recent-places strong{font-size:12px}.xmap-search-panel .maps-recent-places small{color:#91a4b9;font-size:9px}
.xmap-recent-empty{margin:0;padding:13px;border:1px dashed rgba(125,166,207,.25);border-radius:13px;color:#8fa1b5;font-size:11px;text-align:center}
.map-destination-marker{font-size:8px}
@container mapstage (max-width:620px){.xmap-search-panel .maps-nearby-places{grid-template-columns:repeat(4,minmax(58px,1fr))}.xmap-search-panel .maps-nearby-places button{min-height:72px}.xmap-search-panel{padding:12px}.xmap-search-panel-title small{display:none}}
@media(orientation:landscape) and (max-height:610px){.xmap-search-bar .maps-autocomplete-host,.xmap-search-bar .maps-autocomplete-host>input{height:46px;min-height:46px}.xmap-search-panel{max-height:calc(100vh - 76px);padding:10px}.xmap-search-panel .maps-nearby-places{grid-template-columns:repeat(8,minmax(56px,1fr));gap:6px}.xmap-search-panel .maps-nearby-places button{min-height:64px;padding:5px 3px}.xmap-search-panel .maps-nearby-places button>span{width:30px;height:30px;font-size:16px}.xmap-search-panel .maps-nearby-places button>b{font-size:9px}.xmap-recent-heading{margin-top:10px}}

/* Keep the toolbar expand/collapse control in one consistent far-right position. */
.toolbar-toggle-btn,.floating-toolbar-btn{display:grid;place-items:center;padding:0;border:1px solid rgba(99,151,207,.3);border-radius:13px;background:rgba(10,23,40,.9);color:#d8eaff;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 7px 18px rgba(0,0,0,.2);cursor:pointer}
.toolbar-toggle-btn:hover,.floating-toolbar-btn:hover{border-color:rgba(92,166,255,.62);background:rgba(16,42,72,.96);color:#fff}
.toolbar-chevron{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.floating-toolbar-btn{top:15px;right:16px;width:46px;height:46px;z-index:30;position:fixed}
@media(max-width:620px){.floating-toolbar-btn{width:38px}}
@media(orientation:landscape) and (max-height:610px){.floating-toolbar-btn{top:8px;height:38px}}

/* Modern sponsored cards: float above content instead of consuming pane space. */
.pane{position:relative}
.sponsored-ad-slot{border:1px solid rgba(104,181,255,.32);background:rgba(3,12,22,.88);box-shadow:0 18px 52px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:width .22s ease,height .22s ease,opacity .2s ease,transform .22s ease}
.sponsored-ad-slot:after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);pointer-events:none}
.ad-box-bar{position:absolute;z-index:4;top:8px;left:8px;right:8px;height:30px;min-height:30px;padding:0;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;pointer-events:none}
.ad-sponsored-label{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(2,10,18,.74);color:#b6c7d9;font-size:8px;font-weight:720;letter-spacing:.035em;box-shadow:0 4px 14px rgba(0,0,0,.24);backdrop-filter:blur(10px)}
.ad-sponsored-label:before{content:"";width:5px;height:5px;border-radius:50%;background:#55dca0;box-shadow:0 0 9px rgba(85,220,160,.8)}
.ad-box-actions{display:flex;gap:5px;padding:2px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(2,10,18,.76);box-shadow:0 4px 14px rgba(0,0,0,.26);backdrop-filter:blur(10px);pointer-events:auto}
.ad-collapse,.ad-close,.maps-placeholder .sponsored-ad-slot .ad-collapse,.maps-placeholder .sponsored-ad-slot .ad-close{min-width:26px!important;width:26px!important;min-height:26px!important;height:26px!important;padding:0!important;display:grid!important;place-items:center;border:0!important;border-radius:7px!important;background:transparent!important;color:#cfdeed!important;font-size:15px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
.ad-close,.maps-placeholder .sponsored-ad-slot .ad-close{font-size:17px!important}
.ad-collapse:hover,.ad-close:hover{background:rgba(74,145,224,.22)!important;color:#fff!important}
.ad-close:hover{background:rgba(255,68,99,.2)!important;color:#ffb9c5!important}
.ad-frame-wrap{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,rgba(25,76,127,.12),transparent 55%),rgba(2,8,15,.9)}
.sponsored-ad-slot iframe{position:relative;z-index:0;width:100%;height:100%}
.bottom-ad-slot{position:absolute;z-index:18;left:50%;right:auto;bottom:12px;width:min(760px,calc(100% - 24px));height:var(--ad-slot-height,90px);min-height:0;border-width:1px;border-radius:16px;transform:translateX(-50%);box-shadow:0 18px 52px rgba(0,0,0,.5),0 0 0 1px rgba(16,111,205,.08)}
.bottom-ad-slot .ad-frame-wrap{height:100%}
.bottom-ad-slot.is-collapsed{left:auto;right:12px;width:168px;height:40px;min-height:0;transform:none;border-radius:13px}
.square-ad-slot{width:min(var(--ad-square-size,250px),38vw,34vh);height:min(var(--ad-square-size,250px),38vw,34vh);min-width:170px;min-height:170px;margin-top:18px;border-radius:20px;box-shadow:0 22px 58px rgba(0,0,0,.48),0 0 0 1px rgba(24,128,230,.1)}
.square-ad-slot .ad-frame-wrap{height:100%;aspect-ratio:auto}
.square-ad-slot.is-collapsed{width:168px;height:40px;min-width:168px;min-height:40px;border-radius:13px}
.sponsored-ad-slot.is-collapsed .ad-box-bar{inset:4px 5px auto 8px;height:30px;min-height:30px}.sponsored-ad-slot.is-collapsed .ad-sponsored-label{border:0;background:transparent;box-shadow:none;padding-left:2px}.sponsored-ad-slot.is-collapsed .ad-close{display:none!important}
@media(max-width:620px){.bottom-ad-slot{bottom:8px;width:calc(100% - 16px)}.square-ad-slot{width:min(var(--ad-square-size,250px),58vw,30vh);height:min(var(--ad-square-size,250px),58vw,30vh)}}
@media(orientation:landscape) and (max-height:610px){.bottom-ad-slot{bottom:7px}.square-ad-slot{width:min(var(--ad-square-size,250px),29vh);height:min(var(--ad-square-size,250px),29vh);min-width:140px;min-height:140px;margin-top:10px}.maps-placeholder-icon{width:48px;height:48px;margin-bottom:8px}.maps-placeholder p{margin:5px 0 10px}.maps-placeholder #mapsOpenBtn{min-height:42px}}

/* Voice search for YouTube and XMap */
.search-form{grid-template-columns:auto minmax(0,1fr) auto auto}
.search-form .voice-search-button{width:42px;min-width:42px;background:linear-gradient(145deg,#15385d,#0c2745)!important;color:#d9ecff!important}
.voice-search-button.unsupported{opacity:.48}
.voice-search-button{position:relative;width:42px;min-width:42px;height:42px!important;display:grid;place-items:center;padding:0!important;border:1px solid rgba(113,166,222,.25)!important;border-radius:12px!important;background:rgba(17,39,64,.95)!important;color:#bcdcff!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation}.voice-search-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.voice-search-button:hover{border-color:#4fa5ff!important;color:#fff!important}.voice-search-button.listening{border-color:#ff4b70!important;background:#d81043!important;color:#fff!important;animation:voice-listening-pulse 1.15s ease-in-out infinite}.voice-search-button.listening:after{position:absolute;inset:-5px;border:2px solid rgba(255,62,104,.45);border-radius:16px;content:"";animation:voice-listening-ring 1.15s ease-out infinite}.xmap-voice-button{margin:0 3px;border-color:transparent!important;background:#e8f2ff!important;color:#1769db!important}.xmap-voice-button.listening{background:#d81043!important;color:#fff!important}@keyframes voice-listening-pulse{50%{transform:scale(.94)}}@keyframes voice-listening-ring{from{opacity:.8;transform:scale(.88)}to{opacity:0;transform:scale(1.15)}}@media(prefers-reduced-motion:reduce){.voice-search-button.listening,.voice-search-button.listening:after{animation:none}}@container media-pane (max-width:480px){.voice-search-button{width:38px;min-width:38px}.search-form input{padding-left:7px;padding-right:7px}}

