@charset "UTF-8";
:root{color-scheme:light;--ink:#163c39;--muted:#506b62;--accent:#087e67;--mint:#c5f26f;--surface:#ffffff;--line:#e2ebe6;--shadow:0 14px 60px #1c423c16;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#e9eeec}button,input,select{font:inherit}button{color:inherit;border:0;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1ba98d;outline-offset:3px}button,.icon{flex-shrink:0}button:hover{filter:brightness(.97)}a{color:inherit}h1,h2,h3,p{margin:0}button svg{pointer-events:none}.icon{width:24px;height:24px;display:block}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}.muted{color:var(--muted);font-size:13px;line-height:1.7}[hidden]{display:none!important}#app{height:100dvh;min-height:360px;overflow:hidden;position:relative}#map{position:absolute;inset:0}.map-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#e8f0edaa,transparent 24%,transparent 84%,#e8f0ed55)}.brand-bar{position:absolute;top:calc(26px + var(--safe-top));left:30px;display:flex;align-items:center;gap:32px}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:23px;letter-spacing:-1px;font-weight:800}.brand small{font-weight:500;display:block;font-size:10px;letter-spacing:2px;margin-top:2px}.brand-mark{background:var(--ink);color:var(--mint);border-radius:15px;width:46px;height:46px;display:grid;place-items:center;font-size:37px;position:relative;padding-bottom:5px;font-weight:650}.brand-mark span{font-size:19px;position:absolute;right:5px;top:2px}.top-status{font-size:11px;display:flex;align-items:center;gap:6px;background:var(--surface);padding:8px 12px;border-radius:25px}.status-light,.live-dot{width:6px;height:6px;border-radius:50%;background:#20ba88;display:inline-block}.map-meta{position:absolute;right:30px;top:42px;display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:1px;color:#526c64;font-weight:700}.meta-divider{height:11px;width:1px;background:#9cb7aa}.panel{background:var(--surface);box-shadow:var(--shadow);border:1px solid #ffffffaa;border-radius:25px}.home-panel{position:absolute;top:112px;left:30px;width:340px;padding:28px}.eyebrow{color:var(--accent);font-size:9px;letter-spacing:2.1px;font-weight:800}.home-panel h1{font-size:28px;letter-spacing:-1.2px;margin:10px 0 7px}.intro{font-size:12px}.search-box{display:flex;gap:10px;align-items:center;background:#f0f5f2;border:1px solid #e4ece5;border-radius:13px;margin:24px 0 18px;padding:5px 5px 5px 13px}.search-box .icon{width:19px;height:19px}.search-box input{width:100%;min-width:0;border:0;background:none;font-size:13px;height:42px;outline:none}.search-box button{width:38px;height:38px;border-radius:10px;background:var(--ink);color:white;font-size:22px}.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.quick-links button{display:flex;align-items:center;flex-direction:column;gap:7px;background:none;font-size:11px;min-height:60px}.quick-links .icon{width:20px;height:20px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 15px}.section-title h2{font-size:13px}.section-title>span{font-size:8px;letter-spacing:1.5px;color:#8a9a94}.categories{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.categories button{background:none;font-size:9px;display:flex;align-items:center;flex-direction:column;gap:7px}.categories button>span{background:#f0f5f2;width:45px;height:45px;border-radius:15px}.categories .icon{width:20px;height:20px}.demo-card{margin-top:27px;border-radius:17px;background:#e4eedc;position:relative;overflow:hidden;padding:21px 17px;min-height:132px;display:flex;align-items:center;justify-content:space-between}.demo-card>div:first-child{position:relative;z-index:1}.demo-card .eyebrow{font-size:7px;letter-spacing:1px}.demo-card h2{font-size:18px;margin:8px 0}.demo-card p{font-size:9px;color:#60766a}.demo-play{background:var(--ink);color:var(--mint);width:43px;height:43px;border-radius:50%;z-index:1;display:grid;place-items:center}.demo-play .icon{width:20px}.demo-road{position:absolute;width:250px;height:110px;border:22px solid #b7c8a944;border-radius:70px;transform:rotate(-45deg);right:-120px;top:-5px}.home-footer{margin-top:26px;display:flex;align-items:center;justify-content:space-between;color:#8a9a94;font-size:9px;letter-spacing:1px}.home-footer button{display:flex;align-items:center;gap:8px;background:none;font-size:11px;letter-spacing:0;color:var(--ink)}.home-footer .icon{width:17px;height:17px}.resume-card{margin-top:15px;font-size:12px;display:grid;gap:7px}.resume-card button{border-radius:8px;padding:10px;background:#e6f5ee}.mobile-settings{display:none!important}.map-controls{position:absolute;right:27px;top:115px;display:flex;flex-direction:column;gap:14px}.control-group{display:flex;flex-direction:column;gap:2px;border-radius:19px;background:var(--surface);box-shadow:0 5px 20px #28493610;padding:3px}.round-button{background:var(--surface);width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;position:relative;font-size:24px}.control-group .round-button{box-shadow:none;background:none}.round-button small{font-size:8px;position:absolute;top:3px;right:5px}.text-control{font-size:14px;font-weight:800}.locate-button{background:var(--ink);color:#d4ff8b;box-shadow:0 5px 15px #16403728}.locate-button.detached{background:#fff;color:#1389c0}.desktop-settings{box-shadow:0 5px 20px #28493610}.guidance-stack{position:absolute;top:112px;left:30px;width:350px;display:flex;flex-direction:column;gap:8px}.guidance-card{padding:24px 22px;background:var(--ink);color:white;display:flex;align-items:center;gap:23px;border-radius:24px;box-shadow:0 18px 40px #173c3a25;position:relative;min-height:169px}.maneuver-icon{color:var(--mint);align-self:center}.maneuver-icon .icon{width:72px;height:72px;stroke-width:2.7}.guidance-copy{min-width:0}.guidance-distance{display:flex;gap:6px;align-items:baseline}.guidance-distance strong{font-size:48px;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums}.guidance-distance>span{font-size:18px;color:#c5d5cb}.guidance-copy h1{font-size:20px;margin-top:9px}.guidance-copy p{font-size:11px;margin-top:7px;color:#b9d3c6;max-width:180px;overflow-wrap:anywhere}.guidance-repeat{position:absolute;top:14px;right:14px;background:none;color:#b8d4c8;padding:4px}.guidance-repeat .icon{width:18px;height:18px}.direction-sign{background:#0b8769;color:#fff;border:1px solid #e7fff269;border-radius:13px;padding:13px 16px;display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700;box-shadow:0 5px 20px #16443315}.direction-sign>span:nth-child(2){flex:1}.sign-ref{font-size:11px;border:1px solid #9fcbbc;padding:4px;border-radius:5px}.sign-ref:empty{display:none}.lanes{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow)}.lane{display:flex;align-items:center;justify-content:center;gap:0;min-width:60px;padding:8px 11px;border-radius:10px;color:#a5b1ab}.lane.active{background:#d7f1e4;color:#057d61}.lane .icon{width:23px;height:27px;stroke-width:2.4}.next-step{display:flex;align-items:center;gap:13px;background:var(--surface);padding:15px 18px;border-radius:14px;font-size:12px}.next-step .icon{width:20px;height:20px}.next-step small{color:var(--muted)}.drive-badge{position:absolute;left:35px;bottom:143px;font-size:11px;display:flex;align-items:center;gap:8px;background:var(--surface);padding:10px 15px;border-radius:30px}.demo-controls{position:absolute;bottom:143px;left:50%;transform:translateX(-25%);display:flex;align-items:center;gap:12px;background:var(--surface);padding:8px 10px 8px 16px;border-radius:30px;font-size:11px;box-shadow:var(--shadow)}.demo-controls small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.demo-controls button{width:35px;height:35px;background:#e6eee7;border-radius:50%;font-size:11px;display:grid;place-items:center}.demo-controls .icon{width:17px;height:17px}.trip-bar{position:absolute;bottom:calc(28px + var(--safe-bottom));left:30px;right:30px;height:94px;border-radius:23px;display:flex;align-items:center;gap:25px;padding:18px 25px;overflow:hidden}.trip-exit{background:#f1f4f0;display:flex;gap:8px;align-items:center;border-radius:13px;padding:14px 18px;font-size:12px}.trip-exit .icon{width:16px;height:16px}.trip-main{flex:1;display:flex;flex-direction:column;gap:7px}.trip-main strong{font-size:28px;letter-spacing:-1px}.trip-main>span{font-size:11px;color:var(--muted);max-width:230px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.trip-stat{display:flex;flex-direction:column;gap:7px;min-width:105px}.trip-stat strong{font-size:23px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.trip-stat>span{font-size:10px;color:var(--muted)}.trip-detail{width:47px;height:47px;background:none;display:grid;place-items:center}.trip-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:#e6eee7}.trip-progress>span{display:block;height:100%;background:#1ab98a;width:0;transition:width .7s linear}.speed-meter{position:absolute;right:103px;bottom:154px;display:grid;text-align:center;background:var(--surface);width:68px;padding:10px 7px;border-radius:19px;box-shadow:var(--shadow)}.speed-meter strong{font-size:29px;font-weight:650;line-height:1.1;font-variant-numeric:tabular-nums}.speed-meter>span{font-size:9px;color:var(--muted);margin-top:3px}.speed-meter small{font-size:7px;color:#8ea69b;margin-top:5px;letter-spacing:1px}.results-panel,.route-panel{position:absolute;left:30px;top:112px;width:350px;max-height:calc(100dvh - 140px);padding:23px;overflow:auto}.panel-title{display:flex;gap:12px;align-items:center;margin-bottom:20px}.panel-title h2{font-size:18px;flex:1}.panel-title>span{font-size:11px;color:var(--muted)}.icon-button{background:#f2f6f3;width:40px;height:40px;border-radius:12px;display:grid;place-items:center}.icon-button .icon{width:20px;height:20px}.result{background:none;text-align:left;width:100%;padding:18px 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center}.result-number{width:30px;height:30px;border-radius:10px;background:#e8f1e5;display:grid;place-items:center;font-size:12px}.result-copy{min-width:0}.result h3{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.result p{font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}.result small{font-size:8px;color:#90a79a}.empty{padding:24px 0;font-size:13px;line-height:1.9;color:var(--muted)}.route-place{display:flex;gap:14px;align-items:center;margin:10px 0 22px}.route-place>.icon{color:var(--accent)}.route-place small{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.route-place h3{font-size:18px;margin:6px 0;overflow-wrap:anywhere}.route-place p{font-size:10px}.route-options{display:flex;flex-direction:column;gap:12px;font-size:12px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px;vertical-align:middle}.route-choice{display:block;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px;width:100%;margin-top:12px}.route-choice.selected{border:2px solid var(--accent);background:#f1f9f3;padding:14px}.route-choice strong{font-size:23px}.route-choice span{font-size:12px;color:var(--muted);margin-left:10px}.route-choice small{display:block;font-size:10px;color:var(--accent);margin-top:7px}.route-secondary{display:flex;justify-content:space-around;margin:19px 0}.route-secondary button{background:none;font-size:11px;display:flex;gap:6px;align-items:center}.route-secondary .icon{width:17px;height:17px}.primary{background:var(--ink);color:#e7ffd4;border-radius:13px;min-height:50px;padding:14px 20px;font-size:14px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:10px}.route-panel>.primary{width:100%}.route-note{font-size:9px;color:var(--muted);line-height:1.8;margin-top:12px;text-align:center}.secondary{background:#eff4ef;color:var(--ink);border:1px solid var(--line);padding:13px 18px;border-radius:12px;font-size:13px}.full{width:100%}.pick-notice{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:16px;padding:15px 20px;display:flex;align-items:center;gap:20px;font-size:13px;max-width:90vw;width:max-content}.pick-notice button{background:#ffffff22;color:white;border-radius:8px;padding:10px}.toast,.busy,.map-error,.update-notice{position:absolute;z-index:20;background:var(--ink);color:white;border-radius:13px;box-shadow:var(--shadow);padding:15px 22px;font-size:12px;line-height:1.6;max-width:min(90vw,500px)}.toast{bottom:calc(136px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:max-content}.busy{top:90px;left:50%;transform:translateX(-50%)}.busy:before{content:'';width:12px;height:12px;border:2px solid #fff5;border-top-color:white;display:inline-block;border-radius:50%;margin-right:10px;animation:spin 1s linear infinite}.map-error{top:80px;right:25px;background:#fff7e1;color:#75622e;max-width:290px;font-size:10px}.update-notice{bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:15px;align-items:center}.update-notice button{background:white;border-radius:6px;padding:6px;color:var(--ink)}.sheet-dialog{border:0;border-radius:26px;padding:0;color:var(--ink);background:var(--surface);width:min(520px,calc(100vw - 28px));max-height:85dvh;box-shadow:0 25px 100px #09282040}.sheet-dialog::backdrop,.compact-dialog::backdrop{background:#0d29274a;backdrop-filter:blur(7px)}.dialog-heading{padding:26px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:22px;margin-top:5px}.settings-content,.list-body{padding:10px 28px 27px}.settings-content h3{font-size:11px;color:var(--accent);margin:25px 0 10px;letter-spacing:1px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-row small{display:block;color:var(--muted);font-size:10px;margin-top:6px;line-height:1.6;max-width:240px}.setting-row select{max-width:175px;border:1px solid var(--line);background:#f3f7f3;border-radius:8px;padding:8px;color:var(--ink);font-size:12px}.setting-row input{flex-shrink:0}.setting-link{background:none;border-bottom:1px solid var(--line);font-size:13px;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:17px 0}.setting-link .icon{width:17px;height:17px}.settings-note{color:var(--muted);font-size:10px;line-height:1.9;margin-top:18px}.version-row{display:flex;justify-content:space-between;font-size:9px;margin-top:25px;color:var(--muted);letter-spacing:1px}.compact-dialog{border:0;border-radius:22px;padding:28px;background:var(--surface);color:var(--ink);width:min(380px,90vw)}.compact-dialog h2{font-size:20px}.compact-dialog p{font-size:12px;color:var(--muted);margin:15px 0 24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.history-entry{padding:18px 0;border-bottom:1px solid var(--line)}.history-entry h3{font-size:14px}.history-entry time{font-size:10px;color:var(--muted)}.history-entry li{font-size:12px;line-height:1.9;margin-top:7px}.step-row{display:flex;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.step-row h3{font-size:14px}.step-row p{font-size:11px;color:var(--muted);margin-top:5px}.place-marker{width:33px;height:33px;border:3px solid white;border-radius:50%;background:#087e67;color:#fff;font-size:12px;box-shadow:0 4px 15px #17352d44}.destination-marker{background:#163c39;color:white;padding:10px 15px;border:2px solid white;border-radius:13px;font-size:12px;box-shadow:0 8px 20px #1234;max-width:180px;overflow-wrap:anywhere}.position-dot{width:20px;height:20px;background:#20ad9c;border:3px solid white;border-radius:50%;box-shadow:0 0 0 10px #20ad9c22}.maplibregl-ctrl-bottom-right{bottom:3px!important}.maplibregl-ctrl-attrib{font-size:9px!important;background:#ffffffb0!important}body.night{--ink:#d7ede5;--muted:#b8cdc6;--surface:#192d30;--line:#46635f;--accent:#9bddb7;background:#17232e}body.night .brand-mark,body.night .guidance-card,body.night .primary,body.night .locate-button{background:#133d39;color:#d8fcae}body.night .map-vignette{background:linear-gradient(#15282a90,transparent 30%)}body.night .search-box,body.night .quick-links button,body.night .icon-button,body.night .secondary,body.night .setting-row select,body.night .trip-exit,body.night .demo-controls button,body.night .categories button>span{background:#28443f;color:var(--ink)}body.night .demo-card{background:#294c3d}body.night input{color:var(--ink)}body.night .route-choice{background:#223e39;color:var(--ink)}body.night .route-choice.selected{background:#2b5347}body.night .lane.active{background:#315746;color:#b9f29f}body.night .map-meta{color:#a0c1b2}body.night .settings-content .secondary{border-color:#416252}body.night .toast,body.night .busy{background:#295849}body.night .demo-play{background:#163c39}body.reduce-motion *{scroll-behavior:auto!important;transition:none!important;animation:none!important}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1400px){.home-panel{width:365px;padding:30px}.guidance-stack{width:370px}.guidance-card{min-height:183px}.map-controls{right:35px}.trip-bar{right:130px;max-width:1000px}.speed-meter{right:35px;bottom:40px}}
@media(min-width:760px) and (max-height:750px){.home-panel{top:90px;padding:20px;max-height:calc(100dvh - 110px);overflow:auto}.home-panel h1{font-size:24px}.intro{display:none}.section-title{margin-top:15px}.demo-card{margin-top:18px;min-height:102px}.home-footer{margin-top:16px}.search-box{margin-top:15px}.guidance-stack{top:100px}.guidance-card{min-height:145px}.map-controls{top:95px;gap:8px}.round-button{width:43px;height:43px}.trip-bar{bottom:15px;height:80px}.demo-controls,.drive-badge{bottom:112px}.speed-meter{bottom:118px}}
@media(max-width:759px){.brand-bar{top:calc(16px + var(--safe-top));left:19px;right:19px;justify-content:space-between;gap:10px}.brand{font-size:20px;gap:8px}.brand-mark{width:37px;height:37px;font-size:30px;border-radius:12px}.brand-mark span{font-size:15px}.brand small{font-size:8px}.top-status{margin-left:auto;font-size:9px;padding:7px 9px}.mobile-settings{display:flex!important;width:39px;height:39px;border-radius:13px}.mobile-settings .icon{width:20px}.desktop-settings{display:none}.map-meta{top:calc(72px + var(--safe-top));right:21px;font-size:8px;gap:6px}.home-panel{left:12px;right:12px;top:auto;bottom:calc(12px + var(--safe-bottom));width:auto;padding:17px 20px;border-radius:26px;max-height:65dvh;overflow:auto}.panel-handle{width:30px;height:4px;background:#c4d4c9;border-radius:5px;margin:-7px auto 16px}.home-panel .eyebrow{font-size:7px}.home-panel h1{font-size:25px;margin-top:6px}.intro{display:none}.search-box{margin:15px 0}.quick-links{gap:6px}.quick-links button{min-height:46px;font-size:10px;flex-direction:row;justify-content:center;gap:7px}.quick-links .icon{width:18px;height:18px}.section-title{margin:17px 0 12px}.section-title h2{font-size:12px}.categories button>span{width:43px;height:40px;border-radius:12px}.demo-card{margin-top:18px;min-height:84px;padding:13px 16px}.demo-card h2{font-size:17px;margin:5px 0}.demo-card .eyebrow{font-size:6px}.demo-card p{font-size:8px}.demo-play{width:37px;height:37px}.home-footer{display:none}.map-controls{right:16px;top:calc(104px + var(--safe-top));gap:10px}.round-button{width:43px;height:43px;border-radius:14px}.round-button .icon{width:21px;height:21px}.control-group{border-radius:17px}.zoom-group{display:none}.guidance-stack{top:calc(75px + var(--safe-top));left:12px;right:72px;width:auto;gap:6px}.guidance-card{padding:18px 18px;gap:16px;border-radius:20px;min-height:131px}.maneuver-icon .icon{width:51px;height:51px}.guidance-distance strong{font-size:39px}.guidance-distance>span{font-size:15px}.guidance-copy h1{font-size:17px;margin-top:7px}.guidance-copy p{font-size:10px;margin-top:5px;max-width:170px}.guidance-repeat{right:10px;top:9px}.guidance-repeat .icon{width:16px;height:16px}.direction-sign{padding:10px 12px;font-size:13px;border-radius:11px}.direction-sign .icon{width:19px;height:19px}.lanes{padding:5px;gap:5px;border-radius:11px}.lane{padding:4px 8px;min-width:45px}.lane .icon{width:19px;height:23px}.next-step{font-size:10px;padding:10px 12px;gap:9px}.trip-bar{left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));height:88px;padding:12px;gap:10px;border-radius:20px}.trip-exit{width:39px;height:48px;padding:8px;flex-direction:column;gap:4px;border-radius:11px;font-size:8px}.trip-exit .icon{width:15px;height:15px}.trip-main{gap:6px;min-width:65px}.trip-main strong{font-size:22px}.trip-main>span{font-size:8px;max-width:90px}.trip-stat{min-width:57px;gap:7px}.trip-stat strong{font-size:17px}.trip-stat>span{font-size:8px}.trip-detail{width:26px;height:42px}.trip-detail .icon{width:20px;height:20px}.drive-badge{left:17px;bottom:calc(115px + var(--safe-bottom));padding:7px 10px;font-size:9px;max-width:150px}.demo-controls{left:17px;bottom:calc(151px + var(--safe-bottom));transform:none;gap:8px;padding:6px 7px 6px 12px;font-size:10px}.demo-controls small{font-size:8px}.demo-controls button{width:29px;height:29px}.speed-meter{right:17px;bottom:calc(113px + var(--safe-bottom));width:58px;border-radius:16px;padding:9px 6px}.speed-meter strong{font-size:24px}.speed-meter small{display:none}.results-panel,.route-panel{top:auto;bottom:calc(12px + var(--safe-bottom));left:12px;right:12px;width:auto;max-height:72dvh;padding:20px}.route-place{margin:4px 0 14px}.route-options{flex-direction:row;gap:12px;font-size:11px;flex-wrap:wrap;padding:12px 0}.route-choice{padding:12px}.route-choice.selected{padding:11px}.route-choice strong{font-size:21px}.route-secondary{margin:14px 0}.route-note{margin-top:8px}.busy{top:calc(65px + var(--safe-top));font-size:10px;padding:11px 15px}.toast{bottom:calc(110px + var(--safe-bottom));font-size:11px;padding:12px 17px}.map-error{top:calc(84px + var(--safe-top));right:76px;font-size:9px;padding:8px 11px;max-width:250px}#app[data-mode=navigation] .map-meta{display:none}#app[data-mode=navigation] .map-error{top:auto;bottom:calc(201px + var(--safe-bottom))}.sheet-dialog{max-height:90dvh}.dialog-heading{padding:20px}.settings-content,.list-body{padding:8px 20px 22px}.setting-row select{max-width:145px}.setting-row small{max-width:160px}.pick-notice{bottom:calc(25px + var(--safe-bottom));font-size:11px;padding:11px 14px;gap:10px}.maplibregl-ctrl-attrib{font-size:8px!important}.maplibregl-ctrl-bottom-right{bottom:0!important}.maplibregl-ctrl-attrib-button{width:17px!important;height:17px!important}}
@media(max-width:759px) and (max-height:690px){.home-panel{max-height:60dvh}.demo-card{min-height:69px}.section-title{margin-top:12px}.home-panel h1{font-size:23px}.guidance-card{min-height:110px;padding:14px}.guidance-distance strong{font-size:33px}.next-step{display:none}.map-controls{gap:6px}.round-button{height:39px;width:39px}.nav-only{gap:0}.drive-badge{max-width:135px}.demo-controls{bottom:calc(147px + var(--safe-bottom))}}
@media(orientation:landscape) and (max-height:520px){.brand-bar{top:10px;left:15px;right:auto}.brand small,.top-status{display:none}.brand{font-size:17px}.brand-mark{width:31px;height:31px;font-size:25px}.home-panel{top:60px;bottom:12px;left:15px;width:300px;max-height:none;padding:18px;overflow:auto}.panel-handle{display:none}.home-panel .intro{display:none}.home-panel h1{font-size:23px}.home-panel .eyebrow{font-size:7px}.guidance-stack{top:58px;left:15px;width:275px;right:auto}.guidance-card{min-height:109px;padding:14px;gap:15px}.maneuver-icon .icon{width:49px;height:49px}.guidance-distance strong{font-size:32px}.guidance-copy h1{font-size:16px}.guidance-copy p{font-size:9px}.next-step{display:none}.direction-sign{padding:8px 12px;font-size:12px}.lanes{padding:4px}.lane{padding:3px 9px}.map-controls{top:55px;right:15px;gap:7px}.round-button{width:37px;height:37px;border-radius:12px}.round-button .icon{width:19px;height:19px}.zoom-group,.desktop-settings{display:none}.map-meta{top:20px;right:20px}.trip-bar{left:15px;right:68px;bottom:10px;height:64px;gap:18px;padding:9px 15px;border-radius:16px}.trip-main strong{font-size:22px}.trip-stat strong{font-size:18px}.trip-stat{min-width:80px}.trip-exit{padding:8px 12px;height:39px;width:auto;flex-direction:row}.trip-main>span,.trip-stat>span{font-size:8px}.drive-badge{bottom:85px;left:18px;font-size:9px;padding:7px 10px}.demo-controls{bottom:85px;left:320px;transform:none;font-size:9px}.speed-meter{bottom:87px;right:75px;width:51px;padding:6px}.speed-meter strong{font-size:23px}.speed-meter small{display:none}.results-panel,.route-panel{top:55px;bottom:12px;left:15px;width:315px;max-height:none;padding:17px}.toast{bottom:83px}.mobile-settings{display:none!important}.sheet-dialog{max-height:93dvh}.map-error{top:50px;right:65px}.busy{top:10px}.trip-detail{width:30px}.demo-controls button{width:27px;height:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Route alternatives stay readable over the full-route map. */
.route-choice{border-left:5px solid var(--route-color,#10866d);padding-left:11px}
.route-choice.selected{border-left:5px solid var(--route-color,#10866d);padding-left:10px}
.route-choice small{color:var(--ink);font-weight:700}
.route-choice-cost{display:block;margin-top:7px;font-size:12px;line-height:1.5;color:#415d55;font-weight:700}
.route-map-marker{position:absolute;width:0;height:0;isolation:isolate}
.route-map-marker::before{content:"";position:absolute;left:0;top:0;width:var(--leader-length,36px);height:4px;transform-origin:left center;transform:rotate(var(--leader-angle,-1.57rad));background:var(--route-color,#10866d);border:1px solid #fff;box-shadow:0 1px 4px #153e3866;z-index:0;pointer-events:none}
.route-map-marker::after{content:"";position:absolute;left:0;top:0;width:14px;height:14px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:var(--route-color,#10866d);box-shadow:0 1px 5px #153e3866;z-index:2;pointer-events:none}
.route-map-bubble{position:absolute;left:var(--bubble-x,0px);bottom:var(--bubble-gap,36px);transform:translateX(-50%);display:flex;flex-direction:column;align-items:stretch;gap:4px;width:215px;min-height:66px;padding:7px 10px;border:2px solid var(--route-color,#10866d);border-radius:13px;background:#fff;color:#173c39;box-shadow:0 3px 12px #153e3860;text-align:left;white-space:normal;line-height:1.3;cursor:pointer;z-index:1}
.route-map-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.route-map-bubble strong{font-size:13px;overflow-wrap:anywhere}.route-map-bubble small{font-size:11px;white-space:nowrap;color:#426157;font-weight:700}.route-map-amounts{display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:700;color:#3a5a53}.route-map-ferry{font-size:11px;font-weight:700;color:#a55225}
.route-map-bubble.selected{background:#173c39;color:#fff;border-color:#173c39;z-index:2}.route-map-bubble.selected small{color:#d8f7e9}
.route-map-bubble.selected .route-map-amounts,.route-map-bubble.selected .route-map-ferry{color:#e0f2e9}
@media(max-width:759px){.route-map-bubble{width:180px;min-height:60px;padding:6px 8px;gap:3px}.route-map-bubble strong{font-size:11px}.route-map-bubble small,.route-map-amounts,.route-map-ferry{font-size:10px}.route-choice-cost{font-size:11px}}

@media(orientation:landscape) and (max-height:520px){.brand-bar .mobile-settings{display:flex!important;position:fixed;right:17px;top:8px;width:34px;height:34px}.map-meta{right:66px}}
/* Navigation prioritizes directions; branding appears only outside guidance. */
.brand-icon{display:block;width:46px;height:46px;border-radius:12px;object-fit:contain}
#app[data-mode=navigation] .brand-bar .brand,#app[data-mode=navigation] .top-status,#app[data-mode=navigation] .map-meta{display:none}
#app[data-mode=navigation] .guidance-stack{top:calc(24px + var(--safe-top))}
#app[data-mode=navigation] .map-controls{top:calc(24px + var(--safe-top))}
.junction-toggle{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;padding:9px;background:var(--surface);font-size:11px;min-height:38px}
.junction-toggle .icon{width:17px;height:17px}.has-junction .junction-toggle{display:none}
.junction-panel{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.junction-heading{display:flex;align-items:center;gap:12px;padding:7px 12px;font-size:12px}.junction-heading>span{margin-left:auto;font-weight:750}.junction-heading button{background:transparent;padding:4px;min-width:30px;min-height:30px}.junction-heading .icon{width:17px;height:17px}
#junctionMap{height:174px;width:100%;background:#cfe5f6;position:relative;overflow:hidden}.junction-art{position:absolute;inset:0;width:100%;height:100%;display:block}.junction-vehicle{pointer-events:none}.junction-position{width:13px;height:13px;border-radius:50%;background:#1248b5;border:3px solid white;box-shadow:0 0 0 3px #1248b540}
.junction-status{position:absolute;bottom:20px;left:10px;font-size:10px;background:var(--surface);padding:6px;border-radius:6px}.junction-panel .maplibregl-ctrl-attrib{font-size:8px!important}.junction-panel .maplibregl-ctrl-bottom-right{bottom:0!important}
@media(max-width:759px){.brand-icon{width:38px;height:38px}#app[data-mode=navigation] .guidance-stack{top:calc(12px + var(--safe-top))}#app[data-mode=navigation] .brand-bar{top:calc(12px + var(--safe-top));left:auto;right:18px}#app[data-mode=navigation] .map-controls{top:calc(70px + var(--safe-top))}.has-junction .next-step{display:none}#junctionMap{height:135px}.junction-heading{padding:3px 9px;font-size:11px}.junction-panel{border-radius:13px}.junction-toggle{padding:5px}}
@media(orientation:landscape) and (max-height:520px){.brand-icon{width:31px;height:31px}#app[data-mode=navigation] .guidance-stack{top:calc(12px + var(--safe-top))}#app[data-mode=navigation] .map-controls{top:55px}.junction-panel{position:absolute;top:0;left:290px;width:min(275px,calc(100vw - 385px))}#junctionMap{height:185px}.junction-toggle{min-height:30px;padding:5px}.has-junction .next-step{display:none}}
@media(max-width:759px) and (max-height:690px) and (orientation:portrait){#junctionMap{height:105px}.has-junction .guidance-card{min-height:95px;padding:10px}.has-junction .guidance-distance strong{font-size:30px}.has-junction .lanes{padding:2px}}
@media(orientation:landscape) and (max-height:520px) and (max-width:759px){#app[data-mode=navigation] .guidance-stack{width:225px}.junction-panel{left:237px;width:180px}.guidance-card{gap:9px}.guidance-distance strong{font-size:29px}.guidance-copy p{max-width:130px}.demo-controls{left:255px}.trip-bar{gap:9px}.trip-stat{min-width:65px}}
.guidance-stack.has-junction ~ .drive-badge{display:none}
@media(min-width:760px) and (min-height:521px) and (max-height:680px){.has-junction .guidance-card{min-height:120px;padding:16px}.has-junction .guidance-distance strong{font-size:37px}.has-junction .next-step{display:none}.has-junction #junctionMap{height:125px}.has-junction .lanes{padding:5px}}
.real-highway-course{margin-top:10px;padding:10px 12px;background:transparent;border:1px solid var(--line);border-radius:12px;width:100%;text-align:left;font-size:11px}.real-highway-course span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.rehearsal-start{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}.rehearsal-start .icon{width:18px;height:18px}
.demo-controls{display:grid;grid-template-columns:1fr repeat(3,32px);border-radius:20px;min-width:250px;gap:8px;padding:10px 12px}.demo-controls b{font-size:11px}.demo-controls .next-turn{font-size:10px}.demo-controls #rehearsalSeek{grid-column:1/-1;width:100%;height:14px;accent-color:var(--accent);margin:0;cursor:pointer}.facility-button{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;font-weight:800}.facility-button small{font-size:7px;margin-top:2px}
.facility-note{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 18px}.facility-row{display:flex;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.facility-kind{min-width:45px;height:32px;display:grid;place-items:center;background:#d9eee4;color:#164e3c;border-radius:9px;font-size:11px;font-weight:800}.facility-row h3{font-size:15px;line-height:1.6}.facility-row p{color:var(--accent);font-size:12px;margin:5px 0}.facility-row small{font-size:11px;display:block;margin-bottom:6px}.facility-row a{font-size:10px;color:var(--muted)}
@media(max-width:759px){.demo-controls{min-width:235px;gap:6px;bottom:calc(148px + var(--safe-bottom));padding:8px 10px}.demo-controls b{font-size:10px}.real-highway-course{padding:8px 10px}.home-panel .demo-card{margin-top:12px}.rehearsal-start{margin-top:8px}}
@media(orientation:landscape) and (max-height:520px){.demo-controls{bottom:84px;left:310px;min-width:230px;padding:6px 8px;gap:4px}.demo-controls small{font-size:7px}.demo-controls b{font-size:9px}#app[data-mode=navigation] .map-controls{top:48px;gap:4px}.map-controls .round-button{width:32px;height:32px}.map-controls .round-button .icon{width:17px;height:17px}.speed-meter{right:65px}}
@media(orientation:landscape) and (max-height:520px) and (max-width:759px){.demo-controls{left:250px;min-width:205px;grid-template-columns:1fr repeat(3,27px)}}
.facility-button small{position:static!important;line-height:1;margin-top:2px}.demo-controls .next-turn{white-space:nowrap;font-size:9px}
/* Readable type and touch targets, including short phone viewports. */
:root{--muted:#506d64}
.night{--muted:#aac7bc}
.edit-route{margin-bottom:8px}
.trip-exit span{white-space:nowrap}
.signs-button{box-shadow:0 3px 14px #153c3920}
.sign-stack-count{position:absolute;right:-5px;top:-5px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#163c39;color:white;border:2px solid white;font-size:12px;font-weight:800}
.sheet-dialog .dialog-heading{position:sticky;top:0;background:var(--surface);z-index:2}
.route-signs{margin-bottom:8px}.signs-button{font-size:14px;font-weight:750}.signs-content{padding:16px 20px}.signs-note{font-size:14px;line-height:1.8;color:var(--muted);margin:0 0 16px}.signs-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.signs-filters button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;min-height:44px;padding:10px 12px;font-size:15px;background:var(--surface)}.signs-filters button[aria-pressed=true]{background:var(--accent);color:var(--surface)}.signs-filters span{font-weight:800}.sign-row{display:flex;align-items:flex-start;gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}.sign-row>svg{width:64px;min-width:64px;height:64px}.sign-row>div{min-width:0}.sign-row h3{font-size:19px;line-height:1.5;margin:5px 0}.sign-row small,.sign-row p,.sign-row summary,.sign-row a{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.sign-row small{color:var(--muted)}.sign-row details{margin-top:10px}.sign-row summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--accent)}.sign-row details p{margin:8px 0}.sign-applicability{color:var(--muted)}.road-sign-marker{width:44px;height:44px;padding:2px;background:white;border-radius:10px;box-shadow:0 2px 8px #1235}.road-sign-marker svg{width:40px;height:40px}
.editor-content{padding:20px 24px 24px}.editor-endpoints{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;margin-bottom:22px}.editor-endpoints>button:not(.editor-swap){grid-column:1;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-width:0}.editor-endpoints>button[aria-pressed=true]{border:2px solid var(--accent);padding:11px 13px}.editor-endpoints small{display:block;font-size:14px;color:var(--accent);margin-bottom:5px}.editor-endpoints strong{font-size:17px;overflow-wrap:anywhere;line-height:1.5}.editor-swap{grid-column:2;grid-row:1/3;align-self:center;height:48px;border-radius:12px;background:var(--line);font-size:28px}.editor-search-row{display:flex;gap:8px;margin:8px 0 12px}.editor-search-row input{width:0;flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface);color:var(--ink);font-size:16px}.editor-search-row .primary{padding:12px 16px}#editorSearchLabel{font-size:16px;font-weight:700}.editor-status,.editor-note{font-size:14px;line-height:1.7;margin:14px 0;color:var(--muted)}.editor-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:8px}.editor-actions button{font-size:16px;min-height:48px}#editorResults .result{width:100%}#editorResults .result-copy strong{font-size:17px;line-height:1.5}#editorResults .result-copy>span{display:block;font-size:14px;margin-top:5px;color:var(--muted);line-height:1.6}
.guidance-copy p{font-size:16px;color:#d3e9dc;line-height:1.4}.guidance-copy h1{font-size:24px}.direction-sign{font-size:18px}.next-step{font-size:14px}.guidance-repeat{width:44px;height:44px;right:3px;top:3px;display:grid;place-items:center}.guidance-repeat .icon{width:21px;height:21px}.junction-heading{font-size:14px;gap:8px;padding:2px 10px}.junction-heading button{min-width:44px;min-height:44px}.junction-toggle{min-height:44px;font-size:14px}.icon-button{min-width:44px;min-height:44px}
.search-box input,.primary,.secondary,.setting-row,.setting-link{font-size:16px}.search-box button{min-width:44px;min-height:44px}.route-note,.route-choice small,.route-choice span,.route-options,.route-secondary button,.result-copy p,.settings-note,.setting-row small,.facility-note,.facility-row p,.facility-row small,.facility-row a,.step-row p{font-size:14px}.route-options label,.route-secondary button{min-height:44px;display:flex;align-items:center;gap:7px}.route-options input{width:20px;height:20px}.route-place h3,.result-copy h3,.step-row h3{font-size:19px}.route-place .muted{font-size:14px}.setting-row select{font-size:16px;min-height:44px}.setting-row{flex-wrap:wrap}.settings-content h3{font-size:15px}.settings-note{line-height:1.8}.toast,.busy{font-size:14px}.round-button{min-width:44px;min-height:44px}.demo-controls{grid-template-columns:1fr repeat(3,44px);gap:6px}.demo-controls button{width:44px;height:44px;font-size:16px}.demo-controls b{font-size:14px}.demo-controls small{font-size:12px}.demo-controls .next-turn{font-size:14px}.demo-controls #rehearsalSeek{height:24px}.facility-button{font-size:15px}.facility-button small{font-size:9px}
@media(max-width:759px){
 .home-panel{max-height:68dvh}.quick-links button{font-size:14px;gap:4px;min-height:48px}.quick-links .icon{width:16px}.section-title h2{font-size:16px}.categories button{font-size:13px}.categories button>span{height:44px}.demo-card h2{font-size:21px}.demo-card p,.real-highway-course,.real-highway-course span{font-size:14px}.demo-play{width:44px;height:44px}.real-highway-course{min-height:48px}
 .route-options{gap:4px 12px;padding:6px 0}.route-secondary{margin:8px 0}.route-choice strong{font-size:26px}.route-choice small{line-height:1.6}.route-note{line-height:1.6}.route-panel,.results-panel{padding:18px}.mobile-settings{width:44px;height:44px}.map-controls{right:12px;gap:6px}.round-button{width:44px;height:44px}.round-button .icon{width:23px;height:23px}
 .guidance-stack{left:10px;right:66px;gap:6px}.guidance-card,.has-junction .guidance-card{padding:16px 12px;gap:10px;min-height:154px}.maneuver-icon .icon{width:45px;height:45px}.guidance-distance strong,.has-junction .guidance-distance strong{font-size:46px;letter-spacing:-2px}.guidance-distance>span{font-size:20px}.guidance-copy{flex:1}.guidance-copy h1{font-size:24px;margin-top:4px}.guidance-copy p{font-size:16px;max-width:none;margin-top:6px}.direction-sign{font-size:17px;padding:10px;line-height:1.4}.next-step{font-size:14px;padding:10px}.lane{min-width:42px;padding:4px 6px}.lane .icon{width:24px;height:27px}.junction-heading{font-size:14px}.junction-heading>span{white-space:nowrap}.junction-heading strong{font-size:14px}#junctionMap{height:120px}
 .trip-bar{left:10px;right:10px;height:104px;padding:12px 8px;gap:6px;display:grid;grid-template-columns:44px repeat(3,minmax(0,1fr)) 44px}.trip-exit{width:44px;height:56px;font-size:12px}.trip-exit .icon{width:20px;height:20px}.trip-main,.trip-stat{min-width:0;gap:7px}.trip-main strong{font-size:25px;white-space:nowrap}.trip-stat strong{font-size:21px;white-space:nowrap}.trip-main>span,.trip-stat>span{font-size:12px;max-width:100%;white-space:nowrap}.trip-detail{width:44px;height:44px}.trip-detail .icon{width:25px;height:25px}.drive-badge{bottom:calc(133px + var(--safe-bottom));font-size:12px;max-width:220px}.speed-meter{bottom:calc(137px + var(--safe-bottom));right:12px;width:58px}.speed-meter strong{font-size:28px}.speed-meter small{display:block;font-size:11px}.demo-controls{left:10px;bottom:calc(175px + var(--safe-bottom));width:calc(100vw - 84px);min-width:0;padding:8px;grid-template-columns:minmax(0,1fr) repeat(3,44px)}.demo-controls b{font-size:13px}.demo-controls small{font-size:11px}.demo-controls>span{min-width:0}.demo-controls #rehearsalSeek{height:24px}.demo-controls .next-turn{font-size:14px}.editor-content{padding:16px}.sheet-dialog{width:calc(100vw - 20px)}.dialog-heading{padding:16px}.toast{font-size:14px}
}
@media(max-width:759px) and (max-height:740px) and (orientation:portrait){
 #junctionMap{height:95px}.guidance-card,.has-junction .guidance-card{min-height:144px;padding:12px;gap:8px}.guidance-distance strong,.has-junction .guidance-distance strong{font-size:42px}.has-junction .next-step{display:none}.demo-controls{bottom:calc(134px + var(--safe-bottom))}.demo-controls small{display:none}.demo-controls~.speed-meter{bottom:calc(118px + var(--safe-bottom))}#app[data-mode=navigation] .map-controls{top:calc(64px + var(--safe-top))}.drive-badge{display:none}.direction-sign{font-size:16px;padding:6px 8px}
}
@media(orientation:landscape) and (max-height:520px){
 #app[data-mode=navigation] .guidance-stack{width:260px;left:10px;right:auto}.guidance-card,.has-junction .guidance-card{min-height:146px;padding:12px;gap:10px}.guidance-distance strong,.has-junction .guidance-distance strong{font-size:42px}.guidance-copy h1{font-size:22px}.guidance-copy p{font-size:16px;max-width:none}.direction-sign{font-size:16px}.junction-panel{left:272px;width:190px}#junctionMap{height:120px}.junction-heading{font-size:14px;gap:5px;padding:2px 5px}.junction-heading strong{font-size:13px}.junction-heading button{min-width:44px}.junction-heading>span{white-space:nowrap}
 #app[data-mode=navigation] .map-controls{right:10px;top:62px;width:94px;display:grid;grid-template-columns:44px 44px;gap:6px}.map-controls .round-button{width:44px;height:44px}.map-controls .round-button .icon{width:22px;height:22px}#app[data-mode=navigation] .control-group:not(.zoom-group){display:contents}.brand-bar .mobile-settings{width:44px;height:44px;right:10px}.trip-bar{left:10px;right:10px;bottom:10px;height:88px;padding:10px;gap:14px;display:flex}.trip-main strong{font-size:26px}.trip-stat strong{font-size:23px}.trip-main>span,.trip-stat>span{font-size:13px}.trip-main{min-width:0}.trip-stat{min-width:85px}.trip-exit{width:70px;height:48px;font-size:14px}.trip-detail{width:44px;height:44px}.demo-controls{left:282px;bottom:110px;width:300px;min-width:0;padding:8px;grid-template-columns:minmax(0,1fr) repeat(3,44px);gap:6px}.demo-controls b{font-size:13px}.demo-controls small{font-size:11px}.speed-meter{right:115px;bottom:115px;width:58px}.speed-meter strong{font-size:28px}.drive-badge{display:none}.next-step{display:none}.guidance-stack:not(.has-junction) .junction-toggle{min-height:44px}
}
@media(max-width:759px){.trip-main strong.long-duration{font-size:20px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}}
@media(min-width:760px) and (min-height:521px) and (max-height:850px){#app[data-mode=navigation] .map-controls{gap:6px}#app[data-mode=navigation] .map-controls .round-button{width:44px;height:44px}#app[data-mode=navigation] .map-controls .control-group{gap:0}}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] .control-group .round-button{background:var(--surface);border-radius:12px}}
@media(orientation:landscape) and (max-height:520px) and (max-width:700px){.demo-controls{left:10px;width:260px;bottom:108px}.junction-panel{width:min(190px,calc(100vw - 390px))}.trip-bar{gap:8px}.trip-stat{min-width:68px}.trip-main>span{max-width:110px}}
/* Navigation essentials: contextual information, only menu and recenter on map. */
#app[data-mode=navigation] .brand-bar,#app[data-mode=navigation] .map-meta,#app[data-mode=navigation] .map-controls .control-group,#app[data-mode=navigation] .map-controls .desktop-settings{display:none!important}
#app[data-mode=navigation] .map-controls{display:flex;width:auto;top:calc(20px + var(--safe-top));right:14px;gap:10px}
.drive-menu-button{font-size:25px;box-shadow:var(--shadow)}
.drive-menu-grid{display:grid;grid-template-columns:1fr 1fr;padding:20px;gap:12px}.drive-menu-grid button{background:var(--surface);border:1px solid var(--line);border-radius:16px;min-height:88px;padding:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;font-size:16px}.drive-menu-grid .icon{color:var(--accent)}
.editor-stop{border:1px solid var(--line);border-radius:12px;padding:8px;margin:8px 0;display:flex;gap:6px;align-items:center}.editor-stop>button{flex:1;min-width:0;text-align:left;padding:10px;border-radius:8px;background:var(--surface)}.editor-stop small,.editor-stop strong{display:block;overflow-wrap:anywhere}.editor-stop small{font-size:14px;color:var(--muted);margin-bottom:6px}.editor-stop strong{font-size:17px}.editor-stop>div{display:flex}.editor-stop>div button{width:44px;height:44px;font-size:22px;background:var(--surface)}.editor-stop [aria-pressed=true]{outline:2px solid var(--accent)}
.recovery-panel{background:var(--surface);border-radius:14px;padding:14px;font-size:16px;line-height:1.6}.recovery-panel button{margin-top:8px}.parking-row{padding:20px 0;border-bottom:1px solid var(--line)}.parking-row h3{font-size:20px}.parking-row p,.parking-row a{font-size:15px;line-height:1.7;margin:10px 0}.parking-row a{display:block}.diagnostic-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.diagnostic-grid>div{padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.diagnostic-grid dt{font-size:14px;color:var(--muted)}.diagnostic-grid dd{margin:8px 0 0;font-size:18px;font-weight:700}#diagEvents{padding-left:20px;font-size:14px;line-height:1.8}.sign-no-art{width:56px;color:var(--muted);font-size:13px;text-align:center;padding:8px;flex-shrink:0}.sign-row>div{min-width:0}
@media(max-width:759px){#app[data-mode=navigation] .guidance-stack{top:calc(12px + var(--safe-top));right:70px}.editor-stop{flex-wrap:wrap}.editor-stop>button{flex-basis:100%}.editor-stop>div{margin-left:auto}}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] .map-controls{top:14px;right:12px;display:flex;width:auto}.guidance-stack{top:12px!important}}
/* Contextual destination board; never an always-on facilities toolbar. */
.direction-sign{gap:10px;padding:12px 14px;background:#087a62;border:2px solid #e9fff2;border-radius:15px;box-shadow:0 5px 20px #16443324}.sign-copy{flex:1;min-width:0}.sign-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px;font-weight:600;margin-bottom:6px;line-height:1.3}.sign-meta .sign-ref{font-size:14px;padding:2px 5px}#signRoadRef:empty{display:none}#signToward{display:block;font-size:19px;line-height:1.5;overflow-wrap:anywhere}#signArrow .icon{width:32px;height:36px}.lane-panel{background:var(--surface);border-radius:14px;padding:9px 10px;box-shadow:var(--shadow)}.lane-panel>p{font-size:14px;font-weight:600;text-align:center;margin:0 0 6px}.lane-panel .lanes{padding:0;gap:4px;box-shadow:none;background:none}.lane-panel .lane{flex:1;min-width:0;flex-wrap:wrap;gap:0;padding:6px 2px}.lane-panel .lane.active{background:#d7f1e4;color:#00614e;border-bottom:3px solid #087e67}.lane-panel .lane:not(.active){opacity:.6}.lane-panel .lane .icon{width:22px;height:25px}.has-route-board .next-step{display:none}body.night .direction-sign{background:#174e43;border-color:#5c9982}body.night .lane-panel .lane.active{background:#395f4d;color:#dcffad}
@media(max-width:759px){.direction-sign{padding:10px 12px}#signToward{font-size:18px;line-height:1.4}.guidance-copy h1{line-height:1.35;overflow-wrap:anywhere}}
@media(max-width:759px) and (max-height:740px) and (orientation:portrait){.direction-sign{padding:7px 10px}#signToward{font-size:17px}.sign-meta{margin-bottom:4px}.has-route-board #junctionMap{height:85px}.has-route-board .guidance-card{min-height:132px}}
@media(orientation:landscape) and (max-height:520px){.direction-sign{padding:7px 10px}#signToward{font-size:17px}.sign-meta{margin-bottom:4px}.guidance-stack:has(.lane-panel:not([hidden])) .junction-panel{left:272px}.guidance-stack:has(.lane-panel:not([hidden])) .lane-panel{position:absolute;left:272px;top:175px;width:190px}.guidance-stack:has(.lane-panel:not([hidden]))~.demo-controls{left:480px;width:270px}}

#directionSign #signArrow{flex:0 0 32px}

@media(max-width:759px) and (max-height:740px) and (orientation:portrait){.has-junction #lanePanel{display:none}}

.toward-part{display:inline-block;max-width:100%;vertical-align:top}
@media(orientation:landscape) and (max-height:520px){.guidance-stack:has(.lane-panel:not([hidden]))~.speed-meter{top:14px;bottom:auto;right:68px}}
@media(orientation:landscape) and (max-height:520px) and (min-width:660px) and (max-width:799px){.guidance-stack:has(.lane-panel:not([hidden]))~.demo-controls{left:auto;right:12px;width:180px;grid-template-columns:repeat(3,44px)}.guidance-stack:has(.lane-panel:not([hidden]))~.demo-controls>span{display:none}.guidance-stack:has(.lane-panel:not([hidden]))~.demo-controls:before{content:'試走（GPS未使用）';grid-column:1/-1;font-size:12px}}

/* v2.0.6 — two-row guidance and forward junction preview. */
#app[data-mode=navigation] .guidance-stack{top:calc(10px + var(--safe-top));left:10px;right:10px;width:auto;gap:7px;pointer-events:none}
#guidance>*{pointer-events:auto}
#guidance .guidance-card{width:100%;min-height:94px;padding:12px 14px;gap:12px;border-radius:20px}
#guidance .maneuver-icon .icon{width:42px;height:48px}
#guidance .guidance-copy{flex:1;display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:16px;row-gap:3px}
#guidance .guidance-distance{grid-column:1;grid-row:1;gap:4px;white-space:nowrap}
#guidance .guidance-distance strong{font-size:42px;letter-spacing:-1.5px;line-height:1.1}
#guidance .guidance-distance>span{font-size:18px}
#guidance .guidance-copy h1{grid-column:2;grid-row:1;font-size:24px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#guidance .guidance-copy p{grid-column:1/-1;grid-row:2;font-size:16px;line-height:1.5;margin:0 40px 0 0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#guidance .guidance-repeat{top:auto;bottom:2px;right:4px;width:44px;height:44px}
#guidance .direction-sign{padding:9px 12px;gap:8px}
#guidance .sign-copy{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 9px;align-items:end}
/* Keep grouped destination refs above their names; allow long lists to wrap. */
#guidance .sign-destination{display:flex;flex-direction:column-reverse;min-width:0;gap:1px}
#guidance #signToward[hidden]{display:none}
#guidance .sign-meta{margin:0;font-size:14px;gap:5px}
#guidance #signToward{font-size:20px;line-height:1.35}
#guidance .sign-road-refs{display:block;text-align:left;font-size:14px;line-height:1.25;font-weight:500;color:#e2f7ed;overflow-wrap:anywhere}
#guidance .sign-road-refs:empty{display:none}
#guidance .junction-panel{position:relative;top:auto;left:auto;width:100%;border-radius:16px}
#guidance .junction-heading{font-size:15px;padding:0 8px 0 12px;min-height:44px;gap:8px}
#guidance .junction-heading strong{font-size:15px}
#guidance .junction-heading button{min-width:44px;min-height:44px}
#guidance #junctionMap{height:230px}
#app[data-mode=navigation] .map-controls{top:auto;bottom:calc(140px + var(--safe-bottom));right:20px;display:flex;flex-direction:column;gap:8px;width:auto}
#app[data-mode=navigation] .map-controls .round-button{width:48px;height:48px;border-radius:16px}
#app[data-mode=navigation] .speed-meter{top:auto;bottom:calc(140px + var(--safe-bottom));right:80px;left:auto}
@media(min-width:760px) and (min-height:521px){
 #app[data-mode=navigation] .guidance-stack{left:24px;right:24px;top:24px}
 #guidance .guidance-card{padding:14px 22px;min-height:104px;gap:20px}
 #guidance .guidance-copy{column-gap:22px}
 #guidance .guidance-copy h1{font-size:30px}
 #guidance .guidance-distance strong{font-size:48px}
 #guidance>.direction-sign,#guidance>.junction-panel,#guidance>.lane-panel,#guidance>.junction-toggle,#guidance>.next-step,#guidance>.recovery-panel{width:360px}
 #guidance #junctionMap{height:250px}
}
@media(max-width:759px) and (orientation:portrait){
 #guidance .guidance-card{padding:10px;gap:8px;min-height:90px}
 #guidance .maneuver-icon .icon{width:34px;height:42px}
 #guidance .guidance-copy{column-gap:10px}
 #guidance .guidance-distance strong{font-size:36px}
 #guidance .guidance-copy h1{font-size:clamp(18px,5.2vw,23px)}
 #guidance #signToward{font-size:18px}
 #guidance #junctionMap{height:210px}
 #app[data-mode=navigation] .map-controls{bottom:calc(130px + var(--safe-bottom));right:10px;flex-direction:row;gap:8px}
 #app[data-mode=navigation] .speed-meter{bottom:calc(188px + var(--safe-bottom));right:10px;width:104px;height:44px;padding:4px 8px;display:flex;align-items:center;justify-content:center;gap:4px;border-radius:12px}
 #app[data-mode=navigation] .speed-meter strong{font-size:25px}
 #app[data-mode=navigation] .speed-meter span{font-size:11px;margin:0}
 #app[data-mode=navigation] .speed-meter small{font-size:10px;margin:0;letter-spacing:0}
 #app[data-mode=navigation] .demo-controls{left:10px;right:auto;bottom:calc(130px + var(--safe-bottom));width:calc(100vw - 134px);min-width:0;grid-template-columns:repeat(3,minmax(44px,1fr));padding:6px;gap:3px}
 #app[data-mode=navigation] .demo-controls>span{grid-column:1/-1;font-size:12px;display:block;white-space:nowrap}
 #app[data-mode=navigation] .demo-controls>span small{display:none}
 #app[data-mode=navigation] .demo-controls b{font-size:12px}
 #app[data-mode=navigation] .demo-controls button{justify-self:center;width:44px;height:44px}
 #app[data-mode=navigation] .demo-controls #rehearsalSeek{height:20px}
}
@media(max-width:759px) and (max-height:740px) and (orientation:portrait){
 #guidance #junctionMap{height:150px}
 #guidance .guidance-card{min-height:84px;padding:8px 10px}
 #guidance .direction-sign{padding:6px 9px}
 #guidance .sign-road-refs{font-size:13px}
}
@media(orientation:landscape) and (max-height:520px){
 #guidance .guidance-card{min-height:78px;padding:7px 14px;gap:16px}
 #guidance .guidance-distance strong{font-size:36px}
 #guidance .guidance-copy h1{font-size:24px}
 #guidance .guidance-copy p{font-size:15px}
 #guidance>.direction-sign,#guidance>.lane-panel,#guidance>.recovery-panel,#guidance>.junction-toggle{width:255px}
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{position:absolute;top:85px;left:267px;width:240px}
 #guidance #junctionMap{height:140px}
 #guidance .junction-heading{padding-left:8px;gap:4px}
 #guidance .junction-heading strong{font-size:14px}
 #guidance:has(.lane-panel:not([hidden])) .lane-panel{position:relative;left:auto;top:auto;width:255px}
 #app[data-mode=navigation] .map-controls{bottom:110px;right:10px;flex-direction:row}
 #app[data-mode=navigation] .speed-meter{top:auto;bottom:168px;right:10px;width:58px}
 #app[data-mode=navigation] .demo-controls{left:10px;right:auto;bottom:110px;width:245px;grid-template-columns:minmax(0,1fr) repeat(3,44px);gap:3px;padding:6px}
 #app[data-mode=navigation] .demo-controls>span{display:block}
 #app[data-mode=navigation] .demo-controls:before{display:none}
 #app[data-mode=navigation] .demo-controls b{font-size:12px}
 #app[data-mode=navigation] .demo-controls small{display:none}
}
@media(orientation:landscape) and (max-height:520px) and (max-width:720px){
 #guidance>.direction-sign,#guidance>.lane-panel,#guidance>.recovery-panel,#guidance>.junction-toggle{width:225px}
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{left:237px;width:210px}
 #app[data-mode=navigation] .demo-controls{width:225px}
}
@media(orientation:landscape) and (max-height:520px){
 #guidance .direction-sign #signArrow{display:none}
 #guidance .direction-sign{padding:7px 9px}
 #guidance #signToward{font-size:17px}
 #guidance .sign-road-refs{font-size:12px}
}
@media(orientation:landscape) and (max-height:520px){
 #guidance #junctionMap{height:min(140px,calc(100dvh - 250px))}
}
/* v2.0.7: a contextual sequence replaces unrelated controls near a toll plaza. */

/* v2.1: regional word units, departure calendar and traffic observations. */
.dialect-select{align-items:flex-start;flex-wrap:wrap;gap:10px}.dialect-select select{max-width:100%;min-height:44px;font-size:16px}
.voice-book{border:1px solid var(--line);border-radius:16px;padding:14px;margin:12px 0}.voice-book summary{font-size:17px;font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}.voice-book p{margin:10px 0}.voice-book h4{margin:18px 0 10px;font-size:16px}
.dialect-word{display:flex;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.dialect-word>div{flex:1;min-width:0}.dialect-word strong{display:block;font-size:20px}.dialect-word span{display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-top:4px}.dialect-word button{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--mint)}.dialect-word label{font-size:14px;display:flex;align-items:center;min-height:44px;gap:3px}.dialect-word input{width:20px;height:20px}
.voice-segments{display:flex;gap:6px;flex-wrap:wrap}.voice-token{min-height:44px;padding:8px 10px;border-radius:10px;background:#eef2f0;color:#244941;font-size:16px}.voice-token.regional{background:#d7f4ae;border:1px solid #6d9248}
.today-card{padding:18px;background:#edf4e8;color:#254537;border-radius:16px;display:grid;gap:10px;margin:12px 0}.today-card p{font-size:15px}.today-card strong{font-size:21px}.today-card a{font-size:13px}
.traffic-summary{position:absolute;bottom:6px;left:20px;font-size:13px;line-height:1.3;color:var(--muted);max-width:calc(100% - 40px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.trip-bar:has(.traffic-summary:not([hidden])){padding-bottom:28px}
.traffic-legend{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0;font-size:14px;font-weight:700}.traffic-legend span:nth-child(1){color:#bc5648}.traffic-legend span:nth-child(2){color:#cf483c}.traffic-legend span:nth-child(3){color:#ad2638}.traffic-row{padding:16px 0;border-bottom:1px solid var(--line)}.traffic-row strong{font-size:19px;display:block}.traffic-row p{font-size:15px;margin:8px 0;line-height:1.6}#trafficStatus{font-size:20px;font-weight:700}
body.night .voice-token{background:#294439;color:#e0eee4}
/* Regional welcome: a short, secondary postcard below the primary instruction. */
.region-card{position:absolute;z-index:9;left:24px;width:326px;border-radius:22px;background:#fffaf0;color:#234d45;border:1px solid #d8e3d5;box-shadow:0 12px 32px #173b3322;overflow:hidden}.region-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px 12px 5px 16px}.region-heading small{display:block;font-size:12px;color:#63796a;margin-bottom:3px}.region-heading strong{display:block;font-size:23px;line-height:1.3}.region-heading button{width:44px;min-width:44px;height:44px;border-radius:50%;background:#eaf0e4;font-size:27px;color:#46675b}.region-card svg{display:block;width:100%;height:130px}.region-card p{margin:0;padding:9px 14px 13px;font-size:16px;font-weight:700;line-height:1.4}.region-book{margin:12px 0 24px;border:1px solid var(--line);border-radius:16px;padding:14px}.region-book summary{font-size:17px;font-weight:700;cursor:pointer;min-height:36px}.region-book label{display:block;margin:12px 0 8px}.region-book select{width:100%;padding:12px;font-size:18px;border-radius:10px}.region-book svg{display:block;width:100%;margin-top:16px;border-radius:20px}.region-book>p{font-size:16px;line-height:1.7;margin:12px 0}.region-book>p.settings-note{font-size:13px}.night .region-card{background:#223e3c;color:#f0f1d8;border-color:#42625b}.night .region-heading small{color:#c1d2c3}
@media(max-width:759px){.region-card{left:12px;width:min(310px,calc(100vw - 24px))}.region-heading{padding-top:8px}.region-heading strong{font-size:21px}.region-card svg{height:112px}.region-card p{padding:7px 14px 10px;font-size:15px}}
@media(orientation:landscape) and (max-height:520px){.region-card{left:12px;width:278px}.region-heading{padding:6px 9px 2px 12px}.region-heading small{display:none}.region-heading strong{font-size:19px}.region-card svg{height:74px}.region-card p{font-size:13px;padding:4px 12px 7px}}
.region-active .next-step,.region-active .junction-toggle{display:none!important}
@media(max-width:759px) and (max-height:740px) and (orientation:portrait){.region-card{width:calc(100vw - 24px);display:grid;grid-template-columns:1fr 125px}.region-heading{grid-column:1/-1}.region-heading small{display:none}.region-card #regionArt{grid-column:2;grid-row:2}.region-card svg{height:65px}.region-card p{grid-column:1;grid-row:2;align-self:center;font-size:16px}}
@media(orientation:landscape) and (max-height:520px){.region-card{left:auto;right:12px}}
@media(orientation:landscape) and (max-height:520px){.region-card{width:320px;max-width:calc(100vw - 24px);display:grid;grid-template-columns:1fr 112px}.region-heading{grid-column:1/-1}.region-card #regionArt{grid-column:2;grid-row:2}.region-card svg{height:56px}.region-card p{grid-column:1;grid-row:2;align-self:center;font-size:14px}}
#autoDialectStatus{padding:10px 12px;border-radius:12px;background:var(--surface);font-size:15px;line-height:1.6}#settingDialect:disabled{opacity:.65}.region-card .region-dialect{font-size:14px;color:#47715d;background:#e8efde;padding:7px 14px;grid-column:1/-1;grid-row:auto}.night .region-card .region-dialect{background:#294e43;color:#dfefd3}
@media(orientation:landscape) and (max-height:520px){.region-card .region-dialect{font-size:12px;padding:4px 12px}}
#settingAutoDialect{appearance:none;-webkit-appearance:none;position:relative;width:54px;height:32px;border:0;border-radius:20px;background:#b7c7bd;cursor:pointer}#settingAutoDialect:before{content:'';position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #163b3926}#settingAutoDialect:checked{background:#147f69}#settingAutoDialect:checked:before{transform:translateX(22px)}#settingAutoDialect:focus-visible{outline:3px solid #8bbeae;outline-offset:3px}
@media(orientation:landscape) and (max-height:520px){.region-card:has(.region-dialect:not([hidden])) svg{height:44px}.region-card .region-dialect{line-height:1.2;padding:3px 12px}}

/* v2.1.4 — keep settings accessible without app branding or connection badges. */
.brand-bar{justify-content:flex-end}
.home-footer{justify-content:flex-end}

/* v2.1.5 — reserve the centre of the map for the road ahead. */
#guidance .guidance-copy:has(.direction-sign:not([hidden]))>p{display:none}
#guidance .guidance-copy>.direction-sign{grid-column:1/-1;grid-row:2;min-width:0;width:auto;margin-right:32px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
#guidance .direction-sign .sign-copy{display:flex;align-items:end;gap:6px;min-width:0}
#guidance .direction-sign .sign-destination{min-width:0;flex:1}
#guidance .direction-sign .sign-meta{font-size:13px;flex-shrink:0}
#guidance .direction-sign .sign-meta:has(.sign-ref:empty),#guidance .direction-sign #signKind,#guidance .direction-sign #signArrow{display:none}
#guidance .direction-sign #signToward{font-size:17px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#guidance .direction-sign .sign-road-refs{font-size:12px;line-height:1.2}
#guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{position:relative;top:auto;left:auto;width:220px;max-width:42vw;align-self:flex-start;border-radius:14px}
#guidance #junctionMap{height:120px}
#guidance .junction-heading{padding:0 2px 0 8px;gap:0;min-height:44px}
#guidance .junction-heading .junction-size{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:3px 0;background:none;color:inherit;border-radius:6px}
#guidance .junction-size strong{font-size:14px;line-height:1.35;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
#guidance .junction-size span{font-size:12px;line-height:1.2}
#guidance .junction-heading>button{padding:0;width:44px;flex-shrink:0}
#guidance>.junction-toggle{width:fit-content;max-width:42vw;padding:6px 10px;font-size:14px}
#guidance.expanded-junction .junction-panel{width:360px;max-width:100%}
#guidance.expanded-junction #junctionMap{height:min(250px,32dvh)}
@media(max-width:759px) and (orientation:portrait){
 #guidance .guidance-card{min-height:84px;padding:8px 10px}
 #guidance .guidance-copy{column-gap:8px;row-gap:1px}
 #guidance .guidance-distance strong{font-size:34px}
 #guidance .direction-sign #signToward{font-size:16px}
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{max-width:42vw}
 #guidance.expanded-junction .junction-panel{max-width:100%}
 #guidance .lane-panel{padding:5px 8px}
 #guidance .lane-panel>p{display:none}
 #guidance .lane-panel .lane{padding:4px 2px}
}
@media(orientation:landscape) and (max-height:520px){
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{position:relative;top:auto;left:auto;width:200px;max-width:29vw}
 #guidance #junctionMap{height:70px}
 #guidance .junction-size span{display:none}
 #guidance:has(.lane-panel:not([hidden])) .lane-panel{position:relative;top:auto;left:auto;width:200px;align-self:flex-end}
 #guidance .lane-panel>p{display:none}
 #guidance.expanded-junction .junction-panel{width:300px;max-width:45vw}
 #guidance.expanded-junction #junctionMap{height:110px}
}
@media(orientation:landscape) and (max-height:520px){
 #app[data-mode=navigation] .demo-controls{left:calc(min(29vw,200px) + 20px);right:auto;width:150px;grid-template-columns:repeat(3,44px)}
 #app[data-mode=navigation] .demo-controls>span{display:none}
 #app[data-mode=navigation] .demo-controls:before{content:"試走・GPS未使用";display:block;grid-column:1/-1;font-size:11px}
}
/* Compact lane indications: meaning is carried by the arrows and contrast. */
#guidance .lane-panel,#guidance:has(.lane-panel:not([hidden])) .lane-panel{width:fit-content;max-width:min(320px,100%);padding:4px 6px;align-self:flex-start;border-radius:10px}
#guidance .lane-panel .lanes{gap:3px}
#guidance .lane-panel .lane{min-width:32px;flex:0 1 auto;padding:3px 5px;gap:0;border-radius:6px}
#guidance .lane-panel .lane .icon{width:18px;height:22px}

/* Readable surfaces and controls in both day and night themes. */
.panel{border-color:var(--line)}
.search-box input{color:var(--ink)}
.search-box input::placeholder,.editor-search-row input::placeholder{color:var(--muted);opacity:1}
.search-box button{background:#163c39;color:#ffffff}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.quick-links button{border:1px solid var(--line);border-radius:12px;font-size:14px;line-height:1.4;padding:8px 4px}
.categories button{font-size:13px;line-height:1.4}
.section-title h2{font-size:16px}
.home-panel>.eyebrow,.demo-card .eyebrow,.section-title>span{display:none}
.demo-card p{font-size:14px;line-height:1.6;color:var(--muted)}
.demo-card h2{font-size:21px;line-height:1.4}
.real-highway-course{font-size:16px;line-height:1.5;padding:12px}
.real-highway-course span{font-size:14px;line-height:1.6}
.map-meta{background:var(--surface);border:1px solid var(--line);padding:7px 10px;border-radius:12px;color:var(--muted)}
body.night .search-box{border-color:#6a9185}
body.night .search-box button,body.night .primary{background:#c5f26f;color:#163c39}
body.night .demo-card p{color:#c4d9cb}
body.night .demo-road{border-color:#b7c8a922}
body.night .result-number,body.night .resume-card button{background:#28443f;color:var(--ink)}
body.night .result small,body.night .home-footer{color:var(--muted)}
body.night .map-meta{color:var(--muted)}
.categories button{min-width:0;padding:0}
@media(max-width:359px){
 .quick-links button{flex-direction:column;gap:4px;font-size:13px}
 .demo-card h2{font-size:18px}
}
@media(min-width:760px){.home-panel{max-height:calc(100dvh - 136px);overflow:auto}}

#guidance .toll-preview .junction-size{flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}
#guidance .toll-preview .junction-size strong{width:auto;flex-shrink:0}
#guidance .toll-preview .junction-size span{display:block;white-space:nowrap;font-size:14px}
/* Forward preview: larger picture, with the road corridor left visible. */
#guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{width:320px;max-width:56vw}
#guidance #junctionMap{height:clamp(150px,21dvh,220px)}
#guidance.expanded-junction .junction-panel{width:440px;max-width:calc(100vw - 20px)}
#guidance.expanded-junction #junctionMap{height:min(300px,34dvh)}
#junctionMap .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){min-height:24px;width:24px;padding:0!important}
#junctionMap .maplibregl-ctrl-attrib-inner{font-size:10px;line-height:1.4}
#app[data-mode=navigation] .speed-meter{--speed-color:#16a986;--speed-arc:0deg;width:104px;height:auto;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);background:var(--surface);border-radius:20px;bottom:calc(192px + var(--safe-bottom));right:10px;box-shadow:var(--shadow)}
#app #speedMeter[data-level=near]{--speed-color:#d58b13}#app #speedMeter[data-level=over]{--speed-color:#de4e48}#app #speedMeter[data-level=unknown]{--speed-color:#8a9a98}
#speedMeter .speed-limit{display:flex;align-items:center;justify-content:center;gap:5px;width:100%}
#speedMeter .speed-limit small{font-size:10px;color:var(--muted);margin:0;letter-spacing:0}
#speedLimit{width:30px;height:30px;border:3px solid #d75050;border-radius:50%;background:#fff;color:#273b46;display:grid;place-items:center;font-size:16px}
#speedMeter .speed-ring{width:76px;height:76px;padding:4px;border-radius:50%;background:conic-gradient(from 225deg,var(--speed-color) var(--speed-arc),var(--line) 0);display:grid;place-items:center}
#speedMeter .speed-ring>div{width:100%;height:100%;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
#speedMeter .speed-ring strong{font-size:27px;line-height:1.1}
#speedMeter .speed-ring span,#speedMeter .speed-ring small{font-size:10px;line-height:1.2;color:var(--muted);margin:0;letter-spacing:0;display:block}
#vehiclePreview{display:block;width:240px;height:150px;max-width:100%;margin:0 auto;background:radial-gradient(ellipse,#9bbcaf50,transparent 70%);border-radius:20px}
@media(min-width:760px) and (min-height:521px){#app[data-mode=navigation] .speed-meter{bottom:140px;right:88px}}
@media(orientation:landscape) and (max-height:520px){
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{width:260px;max-width:33vw}
 #guidance #junctionMap{height:110px}
 #app[data-mode=navigation] .speed-meter{bottom:108px;right:10px;width:96px;padding:5px;gap:3px}
 #speedMeter .speed-ring{width:64px;height:64px}#speedMeter .speed-ring strong{font-size:24px}
 #app[data-mode=navigation] .map-controls{right:116px;bottom:108px}
}

#speedMeter:not(.limit-known) #speedLimit{border-color:#8b9f9a;color:#637970}
#speedMeter .speed-limit small{display:block}
@media(orientation:landscape) and (max-height:520px){
 #app[data-mode=navigation] .demo-controls{left:calc(min(33vw,260px) + 20px)}
 #guidance.expanded-junction .junction-panel{width:340px;max-width:40vw}
 #app[data-mode=navigation]:has(#guidance.expanded-junction) .demo-controls{left:calc(min(40vw,340px) + 20px)}
}

/* Contextual cautions: one compact item, no persistent category panel. */
#guidance .road-caution{display:flex;align-items:center;gap:8px;align-self:flex-start;max-width:100%;padding:4px 12px 4px 5px;border-radius:12px;background:#fff3cc;color:#303c37;box-shadow:0 2px 8px #193a3920;font-size:16px;line-height:1.3;pointer-events:none}
#guidance .road-caution[hidden]{display:none}
.road-caution svg{width:32px;height:32px;display:block}
@media(max-height:500px) and (orientation:landscape){#guidance .road-caution{padding:2px 8px;font-size:15px}.road-caution svg{width:26px;height:26px}}

/* Prefecture photography: preserve the whole landmark and local specialty. */
.region-photo{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;background:#e4eee1}
.region-card .region-photo{height:auto;max-height:none}
.region-book .region-photo{margin-top:16px;border-radius:14px}
@media(max-width:759px) and (max-height:740px) and (orientation:portrait){.region-card #regionArt{align-self:center}.region-card .region-photo{height:auto;min-height:0}}
@media(orientation:landscape) and (max-height:520px){.region-card #regionArt{align-self:center}.region-card .region-photo{height:auto;min-height:0}}

/* Cardinal labels remain upright while their geographic positions follow the map. */
.vehicle-compass{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.vehicle-compass[hidden],.vehicle-compass span[hidden]{display:none}
/* The arrival card replaces guidance; keep the map's compass off the card. */
#app[data-mode="arrival"] .vehicle-compass{display:none}
.vehicle-compass span{position:absolute;left:0;top:0;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;font-size:12px;font-weight:800;line-height:1;color:#22574b;background:#ffffffd9;text-shadow:0 1px 1px #fff;box-shadow:0 0 3px #173e3220}
.vehicle-compass span[data-direction="N"]{color:#b12b3e}

.vehicle-compass-indicator{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.compass-ring{fill:none;stroke:#c5cdd0;stroke-width:4;stroke-linejoin:round;opacity:.96}
.compass-north{fill:#bf3547;stroke:#fff;stroke-width:.5}
.vehicle-compass span{width:16px;height:16px;font-size:11px}

.route-method{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:12px;margin:12px 0;font-size:16px}.route-method select{min-width:0;min-height:44px;font:inherit;border:1px solid #a9bfb8;border-radius:10px;padding:8px;background:var(--surface,#fff);color:inherit}.route-extra{font-size:16px;margin:8px 0 16px}.route-extra summary{cursor:pointer;padding:10px 0}.route-extra label{display:block;padding:8px 0}.route-options{flex-wrap:wrap}

/* Keep imagery visible and its full attribution available on demand. */
.aerial .map-vignette{background:none}.aerial #map .maplibregl-ctrl-attrib.maplibregl-compact-show{max-width:min(340px,calc(100vw - 30px));max-height:150px;overflow:auto}

/* Search and route comparison keep the map visible above the results. */
.results-panel{display:flex;flex-direction:column;overflow:hidden}
.results-panel .scroll-list{overflow:auto;min-height:0;overscroll-behavior:contain}
.results-tools{display:flex;justify-content:space-between;gap:8px;margin:0 0 8px}
.results-tools button{background:var(--surface);color:var(--accent);min-height:44px;font-size:15px;border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.results-origin-note{font-size:12px;line-height:1.4;color:var(--muted);margin:0 0 8px}
.recent-destinations{margin-top:18px}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.recent-heading h2{font-size:17px;line-height:1.4}
.recent-heading button{background:none;color:var(--accent);font-size:13px;font-weight:700;padding:8px 2px}
.recent-list{display:grid;gap:8px}
.recent-item{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.recent-item:first-child{background:#e7f1df}
.recent-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:11px;background:#d7eade;color:#0d755f}
.recent-icon .icon{width:19px;height:19px}
.recent-copy{display:grid;gap:2px;min-width:0;flex:1}
.recent-copy strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-copy small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-arrow{font-size:20px;color:var(--accent)}
.recent-empty{padding:14px;border-radius:14px;background:#e7f1df;font-size:13px;line-height:1.5;color:var(--muted)}
body.night .recent-item:first-child,body.night .recent-empty{background:#294c3d}
body.night .recent-icon{background:#365a4a;color:#c5f26f}
.search-origin-marker{z-index:8;display:flex;flex-direction:column;align-items:center;gap:3px;white-space:nowrap;pointer-events:none}
.search-origin-dot{width:20px;height:20px;border:4px solid #fff;border-radius:50%;background:#1779d3;box-shadow:0 0 0 5px #1779d344,0 2px 8px #123c4e77}
.search-origin-caption{font-size:13px;font-weight:800;color:#075c6b;background:#fff;padding:3px 7px;border-radius:7px;box-shadow:0 2px 8px #123c4e33}
.results-panel.map-expanded .scroll-list{display:none}
.place-marker{width:44px;height:48px;border:0;background:none;box-shadow:none;color:white;font-size:15px;font-weight:800;isolation:isolate;padding:0 0 10px}
.place-marker:before{content:'';position:absolute;z-index:-1;left:6px;top:2px;width:32px;height:32px;transform:rotate(-45deg);border-radius:50% 50% 50% 0;background:#087e67;border:2px solid white;box-shadow:0 3px 8px #17352d66}
.place-marker:hover:before,.place-marker:focus-visible:before{background:#bc4b16}
.search-conditions>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:15px}
.route-confirm h3{font-size:21px;line-height:1.5}.confirm-summary{font-size:23px;font-weight:800;margin:14px 0 8px}
.route-confirm .primary,.route-confirm .rehearsal-start{margin-top:12px}
.route-confirm{display:flex;flex-direction:column;overflow:hidden}
.confirm-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none;padding-top:12px;background:var(--surface)}
.route-confirm .confirm-actions button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin:0;font-size:15px;font-weight:750;white-space:nowrap}
.confirm-actions .icon{width:20px;height:20px}
#app:is([data-mode=results],[data-mode=route],[data-mode=confirm]) .map-controls .control-group{display:none}
#app:is([data-mode=results],[data-mode=route],[data-mode=confirm]) .map-controls{top:20px}
@media(max-width:759px) and (orientation:portrait){
 .results-panel,.route-panel{top:auto;bottom:calc(12px + var(--safe-bottom));max-height:48dvh;padding:14px 16px}
 .results-panel{height:auto;max-height:44dvh}.results-panel.map-expanded{height:auto}
 .panel-title{margin-bottom:8px}.results-panel .panel-title h2{font-size:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .route-confirm .route-note{font-size:13px}.route-confirm .confirm-summary{margin:8px 0;font-size:21px}
 .route-panel .route-place{margin:0 0 4px}.route-panel .route-secondary{margin-bottom:0}
}
@media(orientation:landscape) and (max-height:520px){.route-confirm{top:16px;bottom:16px;max-height:none;width:315px}}

/* A compact home dock leaves the map as the main waiting screen. */
#homePanel{top:auto;bottom:calc(18px + var(--safe-bottom));left:20px;width:380px;padding:12px 18px 14px;max-height:66dvh;overflow:auto}
.home-toggle{display:flex;position:relative;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 0 0;background:none;text-align:left}
.home-toggle .panel-handle{display:block;position:absolute;top:0;left:calc(50% - 17px);width:34px;height:4px;margin:0}
.home-title{font-size:22px;font-weight:800;letter-spacing:-.5px}#homeToggleLabel{font-size:13px;color:var(--muted);white-space:nowrap}
#homePanel .search-box{margin:10px 0 6px}#homePanel .search-box input{font-size:16px;min-height:44px}
.standby-status{font-size:13px;color:var(--muted);line-height:1.5;margin:2px 0 0}
#homeMenu{padding-top:14px}#homePanel.expanded .standby-status{display:none}
#app[data-mode=home] .map-controls{top:auto;bottom:calc(26px + var(--safe-bottom));right:18px}
@media(max-width:759px){
 #homePanel{left:12px;right:12px;width:auto;bottom:calc(12px + var(--safe-bottom));padding:10px 16px 12px;max-height:65dvh}
 #app[data-mode=home] .map-controls{bottom:calc(200px + var(--safe-bottom));right:12px}
 #app[data-mode=home] .map-controls .control-group,#app[data-mode=home]:has(#homePanel.expanded) .map-controls{display:none}
 #homeToggleLabel{font-size:12px}.home-title{font-size:21px}
}
@media(orientation:landscape) and (max-height:520px){
 #homePanel{left:12px;right:auto;bottom:12px;top:auto;width:320px;max-height:calc(100dvh - 24px)}
 #homePanel .home-title{font-size:20px}
 #app[data-mode=home] .map-controls{bottom:20px;right:15px}
 #app[data-mode=home] .map-controls .control-group{display:none}
}

/* Preserve a visible road corridor beside the enlarged junction. */
@media(max-width:759px) and (orientation:portrait){
 #guidance .junction-panel,#guidance:has(.lane-panel:not([hidden])) .junction-panel{width:min(300px,calc(100vw - 92px));max-width:calc(100vw - 92px)}
 #guidance #junctionMap{height:clamp(195px,29dvh,260px)}
 #guidance.expanded-junction .junction-panel{width:min(340px,calc(100vw - 40px));max-width:calc(100vw - 40px)}
 #guidance.expanded-junction #junctionMap{height:min(320px,38dvh)}
}

/* A one-way sign shares the primary guidance card; it takes no extra map row. */
#guidance .guidance-caution{position:absolute;right:12px;top:10px;width:32px;height:36px;line-height:0}
#guidance .guidance-caution svg{width:100%;height:100%}
#guidance .guidance-card:has(.guidance-caution:not([hidden])) h1{padding-right:36px}

.vehicle-picker-open{display:flex;align-items:center;gap:12px;width:100%;padding:16px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left;font-size:16px}
.vehicle-picker-open>span:first-child{flex:1}.vehicle-picker-open strong{font-size:14px;color:var(--muted)}
.vehicle-picker-dialog{width:min(840px,calc(100vw - 24px))}
.vehicle-picker-dialog .dialog-heading{position:sticky;top:0;background:var(--surface);z-index:1}
.vehicle-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 20px}
.vehicle-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 6px 12px;min-height:122px;background:#edf5f3;border:2px solid #dce8e5;border-radius:14px;font-size:14px;line-height:1.35;color:#28443f}
.vehicle-choice img{display:block;object-fit:contain;width:100%;height:84px;filter:drop-shadow(0 3px 3px #173c3925)}
.vehicle-choice[aria-pressed="true"]{border-color:#087e8a;background:#e1f2f1;color:#086575;font-weight:750}
.vehicle-selected{display:none;position:absolute;top:6px;right:7px;width:21px;height:21px;border-radius:50%;background:#087e8a;color:white}
.vehicle-choice[aria-pressed="true"] .vehicle-selected{display:block}
.vehicle-choice-status{position:sticky;bottom:0;padding:16px 20px;background:var(--surface);border-top:1px solid var(--line);font-size:16px}
body.night .vehicle-choice{background:#294640;border-color:#45645c;color:#e3f1eb}body.night .vehicle-choice[aria-pressed="true"]{background:#315b53;border-color:#9bdece}
@media(max-width:520px){.vehicle-choices{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:8px}.vehicle-choice{min-height:112px;font-size:13px}.vehicle-choice img{height:72px}.vehicle-picker-open{flex-wrap:wrap}.vehicle-picker-open>span:first-child{flex-basis:100%}}

.departure-preview-text{white-space:pre-line;font-size:17px;line-height:1.8;margin:8px 0 24px}.today-card>button+button{margin-top:10px}

/* Compact, separate speed tiles share the navigation control column. */
#app[data-mode=navigation] .map-controls{--nav-control-size:52px;right:10px;bottom:calc(130px + var(--safe-bottom));top:auto;width:var(--nav-control-size);display:flex;flex-direction:column;gap:8px}
#app[data-mode=navigation] .map-controls .round-button,#app[data-mode=navigation] .map-controls #speedMeter,#app[data-mode=navigation] .map-controls #speedLimitBadge{position:static;width:var(--nav-control-size);height:var(--nav-control-size);min-height:var(--nav-control-size);padding:3px;margin:0;border-radius:15px;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);flex:none}
#app[data-mode=navigation] .map-controls .locate-button:not(.detached){background:var(--ink);color:var(--mint)}
#app[data-mode=navigation] .map-controls #speedLimitBadge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#speedLimitBadge>small{font-size:9px;line-height:1;color:var(--muted)}
#speedLimitBadge #speedLimit{width:34px;height:34px;flex:none;font-size:17px;line-height:1;border-width:3px;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
#speedLimitBadge #speedLimit.three-digits{font-size:13px;letter-spacing:-.6px}
#speedLimitBadge:not(.limit-known) #speedLimit{border-color:#8b9f9a;color:#637970}
#app[data-mode=navigation] .map-controls #speedMeter{display:grid;place-items:center;gap:0}
#app .map-controls #speedMeter .speed-ring{width:44px;height:44px;padding:3px}
#app .map-controls #speedMeter .speed-ring strong{font-size:19px;line-height:1.05}
#app .map-controls #speedMeter .speed-ring span{font-size:9px;line-height:1}
#app .map-controls #speedMeter #speedSource{display:none}
@media(min-width:760px) and (min-height:521px){#app[data-mode=navigation] .map-controls{right:20px;bottom:calc(140px + var(--safe-bottom))}}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] .map-controls{--nav-control-size:48px;bottom:108px;right:10px;gap:6px}#app .map-controls #speedMeter .speed-ring{width:40px;height:40px}}
#guidance>.highway-panel{width:clamp(200px,56vw,330px);max-width:calc(100vw - 92px);padding:0 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.highway-panel>strong{font-size:13px}.highway-panel article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:6px;padding:10px 0;border-top:1px solid var(--line);align-items:center}.highway-panel article:first-child{margin-top:6px}.highway-kind{font-size:11px;font-weight:800;color:#fff;background:#147761;padding:5px 2px;text-align:center;border-radius:6px}.highway-panel article>div>b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.highway-distance{text-align:right}.highway-distance small{font-size:11px;color:var(--muted);display:block}.highway-amenities{display:flex;gap:3px;margin-top:4px;flex-wrap:wrap}.highway-amenities svg{width:23px;height:23px;display:block}.highway-panel p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}
@media(min-width:760px){#guidance>.highway-panel{width:340px}}
/* Every facility up to the exit is listed; about three rows show at once and the rest scroll inside the panel. */
#highwayRows{max-height:min(214px,32dvh,var(--highway-list-room,100dvh));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin}
@media(orientation:landscape) and (max-height:520px){#guidance>.highway-panel{width:260px;max-width:33vw}.highway-panel article{padding:6px 0}#highwayRows{max-height:min(112px,var(--highway-list-room,100dvh))}}

.result-copy .result-address{color:var(--ink);font-size:15px;line-height:1.5;margin:6px 0;white-space:normal;overflow-wrap:anywhere}
.result-distance{display:block;color:var(--accent);font-size:16px;line-height:1.45;margin-top:2px;font-variant-numeric:tabular-nums}.result-distance span{font-size:12px;font-weight:500;color:var(--muted);margin-left:3px}

/* Installed iOS PWAs can report a shorter dynamic viewport than the screen. */
.standalone body{overflow:hidden}
.standalone #app{position:fixed;inset:0;height:auto;min-height:0}
@media(max-width:759px) and (orientation:portrait){.standalone #homePanel{bottom:calc(4px + var(--safe-bottom))}}

.launch-gate{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));background:linear-gradient(150deg,#eaf4ef,#f8faf6 60%,#d8eadd);overflow:auto}
.launch-card{width:min(430px,100%);max-height:100%;overflow:auto;background:#fff;border:1px solid #d9e9e1;border-radius:28px;box-shadow:0 22px 70px #173d3430;padding:24px;display:flex;flex-direction:column;align-items:center;text-align:center}
.launch-logo{width:76px;height:76px;object-fit:contain;border-radius:18px;box-shadow:0 4px 17px #173d3420}
.launch-name{font-size:24px;font-weight:800;margin-top:9px;line-height:1.2}.launch-name span{display:block;font-size:14px;font-weight:600;margin-top:3px}
.launch-version{font-size:13px;color:var(--muted);margin-top:5px}.launch-card h1{font-size:22px;margin:17px 0 12px}
.launch-points{width:100%;text-align:left;background:#edf6f1;border-radius:16px;margin:0;padding:14px 15px 14px 35px;font-size:15px;line-height:1.6}.launch-points li+li{margin-top:7px}
.launch-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 15px;margin:16px 0;font-size:13px}.launch-links a{color:#096e5f;text-underline-offset:3px}
.launch-agree{display:flex;gap:10px;align-items:center;width:100%;text-align:left;font-size:15px;line-height:1.5;cursor:pointer}.launch-agree input{width:24px;height:24px;accent-color:#087e67;flex:none}
.launch-start{width:100%;min-height:54px;margin-top:16px;background:#163c39;color:#fff;border-radius:14px;font-size:17px;font-weight:750}.launch-start:disabled{background:#a7bab2;color:#f7faf8;opacity:1}
@media(max-width:759px){#settingsDialog{position:fixed;top:calc(var(--safe-top) + 32px);bottom:auto;left:0;right:0;margin:0 auto;max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 48px)}}
@media(max-height:650px){.launch-card{padding:16px}.launch-logo{width:56px;height:56px}.launch-card h1{margin:9px 0}.launch-points{font-size:13px;padding:10px 13px 10px 30px}.launch-links{margin:10px 0}.launch-start{margin-top:10px}}

/* 地図を手で動かしたときの中心と現在地からの距離 */
.browse-overlay{position:absolute;inset:0;pointer-events:none}
.browse-line{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.browse-line line{stroke:#2e847a;stroke-width:2;stroke-opacity:.45;stroke-linecap:round}
.browse-center{position:absolute;left:50%;top:50%;width:42px;height:42px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#123c39c9;box-shadow:0 0 0 2px #287f76b3,0 4px 16px #173b3440;display:grid;place-items:center}
.browse-center:before,.browse-center:after{content:"";position:absolute;background:#edfff2;border-radius:2px}.browse-center:before{width:19px;height:2px}.browse-center:after{width:2px;height:19px}
.browse-center span{width:5px;height:5px;background:#c9f383;border-radius:50%;z-index:1}
.browse-heading{position:absolute;left:50%;top:calc(50% - 34px);transform:translate(-50%,-100%);max-width:calc(100% - 24px);display:flex;align-items:center;gap:5px;pointer-events:none}
.browse-readout{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:25px;padding:9px 15px;background:#173c39f2;color:#fff;font-size:15px;font-weight:750;line-height:1.25;box-shadow:0 4px 18px #173b3433;font-variant-numeric:tabular-nums}
#browseInfoButton{pointer-events:auto;display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;border:2px solid #fff;background:#173c39;color:#fff;font-size:21px;font-weight:800;font-family:Georgia,serif;line-height:1;box-shadow:0 4px 18px #173b3433}

/* 地図の長押しで選んだ地点 */
.inspection-marker{width:26px;height:26px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#0b806e;transform:rotate(-45deg);box-shadow:0 3px 13px #123b3b66;position:relative}
.inspection-marker:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}
.point-dialog{position:fixed;top:auto;bottom:calc(12px + var(--safe-bottom));left:0;right:0;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - var(--safe-top) - 24px);margin:0 auto;border-radius:24px}
.point-dialog::backdrop{background:#0d292740;backdrop-filter:blur(2px)}
.point-dialog .dialog-heading{padding:15px 18px}
.point-dialog .dialog-heading h2{font-size:20px}
.point-details{padding:17px 19px 10px}
.point-section-label{font-size:12px;color:var(--accent);font-weight:750;margin-bottom:5px}
.point-address{font-size:18px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;min-height:26px}
.point-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0 8px}
.point-coordinates div{background:var(--soft);padding:8px 11px;border-radius:10px;min-width:0}
.point-coordinates dt{font-size:11px;color:var(--muted)}
.point-coordinates dd{margin:3px 0 0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.point-note,.point-waypoint-hint{font-size:12px;color:var(--muted);line-height:1.45}
.point-actions{padding:8px 19px 16px;display:grid;gap:8px}
.point-actions button{min-height:48px;border-radius:12px;font-size:16px;font-weight:750}
.point-actions button:disabled{opacity:.45}
.point-waypoint-hint:empty{display:none}

/* 拡大図は道路面を広く見せ、操作と残距離を地図上に重ねる。 */
#guidance .junction-panel{background:#39464d;border-color:#87969a;box-shadow:0 10px 24px #07191e55}
#guidance .junction-panel .junction-expand,#guidance .junction-panel .junction-close{position:absolute;top:8px;z-index:5;display:grid;place-items:center;width:42px;height:42px;padding:9px;border:1px solid #b5c6c9a8;border-radius:12px;background:#1e3038df;color:#fff;box-shadow:0 2px 9px #0c19244d}
#guidance .junction-panel .junction-expand{left:8px}
#guidance .junction-panel .junction-close{right:8px}
#guidance .junction-panel .junction-expand svg,#guidance .junction-panel .junction-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#guidance .junction-panel .junction-distance{position:absolute;right:10px;bottom:13px;z-index:5;min-width:48px;padding:5px 9px;border:1px solid #b5c6c9a8;border-radius:9px;background:#1e3038df;color:#fff;text-align:center;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2;box-shadow:0 2px 9px #0c19244d;pointer-events:none}
#guidance .junction-panel .junction-progress{position:absolute;left:0;right:0;bottom:0;z-index:5;height:6px;background:#173c3970;pointer-events:none}
#guidance .junction-panel .junction-progress span{display:block;height:100%;width:100%;background:#a4ff35;box-shadow:0 0 7px #a4ff35a0;transition:width .3s linear}
#guidance .junction-panel .maplibregl-ctrl-bottom-left{bottom:7px}

/* 連続する分岐: 拡大図の中で次の動作を先に示す */
.junction-next{position:absolute;left:10px;bottom:13px;z-index:5;display:flex;align-items:center;gap:6px;max-width:calc(100% - 96px);padding:5px 10px 5px 7px;border:2px solid #ffd84a;border-radius:10px;background:#1e3038eb;color:#fff;font-size:15px;font-weight:800;line-height:1.15;box-shadow:0 2px 9px #0c19244d;pointer-events:none}
.junction-next[hidden]{display:none}
.junction-next .icon{flex:none;width:24px;height:24px;color:#ffd84a;stroke-width:2.6}
.junction-next small{display:block;font-size:11px;font-weight:700;color:#ffe992}
/* 拡大図の上端は方面看板。操作ボタンは半透明にして看板の文字を隠さない */
#guidance .junction-panel .junction-expand,#guidance .junction-panel .junction-close{width:38px;height:38px;padding:8px;top:6px;border-color:#ffffff59;background:#1e30387a;box-shadow:none}
#guidance .junction-panel .junction-expand{left:6px}
#guidance .junction-panel .junction-close{right:6px}
#guidance .junction-panel .junction-expand svg,#guidance .junction-panel .junction-close svg{filter:drop-shadow(0 1px 1px #000a)}

/* Compact arrival information and a persistent current-road strip. */
#app .trip-bar{height:auto;min-height:88px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:37px 10px 10px;border-radius:18px}
#app .trip-bar .current-road{position:absolute;top:0;left:0;right:0;min-height:28px;display:flex;align-items:center;gap:8px;padding:5px 12px;background:var(--ink);color:var(--surface);font-size:14px}
.current-road>span{font-size:10px;flex:none;opacity:.75}.current-road strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
#app .trip-main{background:transparent;text-align:left;min-width:0;width:100%;gap:4px;padding:0;min-height:44px}
.trip-timing{display:flex;align-items:baseline;gap:7px;white-space:nowrap}#app .trip-timing #eta{font-size:25px;letter-spacing:-.5px}#app .trip-timing #remainingTime{font-size:21px;letter-spacing:-.5px}.trip-timing small{font-size:10px;color:var(--muted)}
.trip-summary{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}#tripDestination{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}#remainingDistance{white-space:nowrap;flex:none}
#app .trip-exit{width:44px;min-height:44px;height:44px;font-size:10px}#app .trip-detail{width:44px;height:44px}
.destination-info{padding:18px;line-height:1.65}.destination-info h3,.destination-info p{overflow-wrap:anywhere}.destination-info p{margin-top:12px;color:var(--muted)}
@media(min-width:760px){#app .trip-bar{min-height:88px;padding-top:37px}#app .trip-main{max-width:none}.trip-timing{gap:12px}}
@media(orientation:landscape) and (max-height:520px){#app .trip-bar{min-height:80px;padding-top:31px}.trip-summary{font-size:11px}#app .trip-timing #eta{font-size:21px}#app .trip-timing #remainingTime{font-size:19px}}

/* Keep every arrival value with its own label; the exit label stays inside its button. */
#app .trip-bar{max-width:700px;min-height:98px}
#app .trip-exit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;overflow:hidden}
#app .trip-exit .icon{width:20px;height:20px}
#app .trip-timing{display:grid;grid-template-columns:minmax(54px,.95fr) minmax(0,1.7fr) minmax(44px,.95fr);gap:6px;width:100%;align-items:start}
#app .arrival-item{display:flex;flex-direction:column;gap:2px;min-width:0}
#app .arrival-item small{font-size:10px;line-height:1.2;color:var(--muted)}
#app .trip-timing strong{font-size:22px!important;line-height:1.15;letter-spacing:-.5px;white-space:normal;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}
#app .trip-timing #eta{white-space:nowrap}
#app .trip-timing .duration-unit{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#app .trip-timing .arrival-distance strong{font-size:17px!important;padding-top:4px}
#app .trip-main #tripDestination{display:block;width:100%;font-size:11px;line-height:1.3;color:var(--muted);margin-top:3px}
@media(max-width:359px){#app .trip-bar{padding:10px 8px;gap:6px}#app .trip-timing{gap:4px}#app .trip-timing strong{font-size:19px!important}#app .trip-timing .arrival-distance strong{font-size:15px!important}}

#app .trip-main #tripDestination{flex:none;min-height:15px}#app .trip-main{height:auto;min-height:52px}#app .trip-main>.trip-timing{flex:none}

.settings-section{border-top:1px solid var(--line,#dce5df);padding:6px 0}.settings-section>summary{cursor:pointer;min-height:52px;display:flex;align-items:center;font-size:19px;font-weight:750;list-style:none}.settings-section>summary::after{content:'＋';margin-left:auto;font-size:23px;font-weight:400}.settings-section[open]>summary::after{content:'−'}.settings-section>h3:first-of-type{margin-top:8px}.settings-explanation{margin:10px 0;color:var(--muted);font-size:13px}.settings-explanation>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;list-style:none;font-size:14px;font-weight:650}.settings-explanation>summary::-webkit-details-marker{display:none}.settings-explanation>summary::after{content:"＋";margin-left:auto;font-size:20px;flex-shrink:0}.settings-explanation[open]>summary::after{content:"−"}.settings-explanation p{margin:6px 0 14px}.data-freshness{padding:10px 0 18px}.data-date-row{display:block;margin:9px 0;font-size:13px;line-height:1.6}.route-difference{display:block;font-size:13px;line-height:1.6;color:var(--ink);padding:5px 0;font-weight:600}
.arrival-card{position:absolute;left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));max-width:560px;padding:22px;border-radius:22px;max-height:70dvh;overflow:auto}.arrival-card h2{font-size:17px;color:var(--muted)}.arrival-card h3{font-size:25px;margin:10px 0;overflow-wrap:anywhere}.arrival-card p{line-height:1.65;font-size:15px;overflow-wrap:anywhere}.arrival-card #arrivalStatus{margin:12px 0;color:var(--muted);font-size:13px}.arrival-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.arrival-actions button{min-height:48px;white-space:normal}.arrival-actions #arrivalReplay{grid-column:1/-1}
body[data-text-size=large] .settings-content,body[data-text-size=large] .list-body,body[data-text-size=large] .highway-row{font-size:18px}
body[data-text-size=large] .setting-row{gap:10px;flex-wrap:wrap}body[data-text-size=large] .setting-row>span{font-size:18px}body[data-text-size=large] .setting-row select{font-size:16px;min-height:44px;max-width:100%}
body[data-text-size=large] .settings-note,body[data-text-size=large] .setting-row small,body[data-text-size=large] .result-address,body[data-text-size=large] .result-copy small,body[data-text-size=large] .route-choice small{font-size:15px;line-height:1.65}
body[data-text-size=large] .guidance-copy h1{font-size:28px}body[data-text-size=large] #turnRoad{font-size:20px}body[data-text-size=large] #turnDistance{font-size:52px}body[data-text-size=large] .current-road strong{font-size:18px}
body[data-text-size=large] .result-copy h3,body[data-text-size=large] .highway-row strong,body[data-text-size=large] .highway-distance{font-size:20px}
body[data-text-size=large] .highway-panel,body[data-text-size=large] .highway-list,body[data-text-size=large] .route-difference{font-size:16px}
body[data-text-size=large] #app .trip-timing{grid-template-columns:minmax(70px,.95fr) minmax(0,1.7fr) minmax(44px,.95fr)}body[data-text-size=large] #app .trip-timing strong{font-size:25px!important}body[data-text-size=large] #app .trip-timing small{font-size:12px}body[data-text-size=large] #app .trip-timing .arrival-distance strong{font-size:19px!important}body[data-text-size=large] #app .trip-main #tripDestination{font-size:14px}
body[data-text-size=large] .arrival-card p{font-size:18px}body[data-text-size=large] .arrival-card #arrivalStatus{font-size:16px}
@media(max-width:359px){body[data-text-size=large] #app .trip-timing{grid-template-columns:minmax(60px,.95fr) minmax(0,1.7fr) minmax(44px,.95fr)}body[data-text-size=large] #app .trip-timing strong{font-size:21px!important}body[data-text-size=large] #app .trip-timing small{font-size:11px}body[data-text-size=large] #app .trip-timing .arrival-distance strong{font-size:17px!important}}
@media(max-width:359px){body:not(.raku)[data-text-size=large] #app .trip-timing #remainingTime:has(.duration-unit-wide){font-size:18px!important}}

/* The current road stays at a stable screen position in both apps. */
#app #currentRoadBadge{z-index:5;max-width:min(270px,calc(100vw - 96px));padding:5px 12px;background:#fff;color:#203b67;border:1px solid #b6c2d1;border-radius:18px;box-shadow:0 2px 7px #14294130;pointer-events:none;line-height:1.25;text-align:center;font-size:16px;height:auto;min-height:0}
#app #currentRoadBadge strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:750}
#app #currentRoadBadge[hidden]{display:none!important}
#app .trip-bar{padding-top:10px;min-height:76px}
#guidance .road-caution:has(#roadCautionIcon svg){font-size:18px;font-weight:750;line-height:1.4}
/* Keep mapped labels beneath the guidance and other map panels. */
#map{isolation:isolate}

/* Navigation searches and road selection preserve the running guidance. */
.drive-search-form{padding:0 20px 12px}.drive-search-form label{display:block;font-weight:800;margin-bottom:8px}.drive-search-form .search-box{display:flex;gap:8px}.drive-search-form input{min-width:0;flex:1;width:100%}.drive-search-status{padding:0 20px;font-size:15px;font-weight:750}.drive-search-result{padding:14px 0;border-bottom:1px solid var(--line)}.drive-search-result h3{font-size:19px}.drive-search-result p{margin:8px 0;color:var(--muted)}.drive-search{max-height:85dvh;overflow:auto}.road-mode-choices{display:grid;gap:14px}.road-mode-choices [aria-pressed=true]{outline:3px solid var(--mint);background:var(--ink);color:#fff}
#app[data-mode=navigation] .road-mode-button{font-size:13px;font-weight:850;line-height:1.1}
.highway-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:4px 2px;background:none;color:var(--ink);border:0;border-radius:6px;font-weight:700;text-align:left;line-height:1.3}
.highway-panel-title{font-size:14px;font-weight:700;white-space:nowrap}
.highway-toggle-chevron{display:grid;place-items:center;flex:none;width:14px;height:14px;color:var(--accent)}
.highway-toggle-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.highway-toggle[aria-expanded=true] .highway-toggle-chevron svg{transform:rotate(180deg)}
#highwayPanel:has(#highwayRows[hidden]){width:max-content;max-width:calc(100vw - 92px);padding:0 8px}
body[data-text-size=large] .highway-panel-title{font-size:15px}
#app[data-mode=navigation] .demo-controls{position:absolute;left:14px;right:80px;bottom:calc(122px + var(--safe-bottom));width:auto;min-width:0;padding:8px 10px;border-radius:14px;display:grid;grid-template-columns:1fr;gap:6px;pointer-events:auto;font-size:12px}
#app[data-mode=navigation] .demo-controls>span{display:block;min-width:0}#app[data-mode=navigation] .demo-controls>span small{display:none}#app[data-mode=navigation] .demo-controls input{width:100%;grid-column:auto;min-width:0;margin:0}
#app[data-mode=navigation] .demo-controls .playback-buttons{position:fixed;right:10px;bottom:calc(440px + var(--safe-bottom));display:flex;flex-direction:column;gap:6px;width:52px}
#app[data-mode=navigation] .playback-buttons button{width:52px;height:44px;min-height:44px;margin:0;padding:4px;border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-size:16px;flex:none}
@media(max-height:730px){#app[data-mode=navigation] .map-controls{--nav-control-size:44px;gap:5px}#app[data-mode=navigation] .demo-controls .playback-buttons{bottom:calc(376px + var(--safe-bottom));width:44px}#app[data-mode=navigation] .playback-buttons button{width:44px;height:40px;min-height:40px}}
@media(max-height:610px) and (orientation:portrait){#app[data-mode=navigation] .demo-controls .playback-buttons{right:62px;bottom:calc(225px + var(--safe-bottom))}}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] .map-controls{--nav-control-size:40px;gap:4px;bottom:90px}#app[data-mode=navigation] .demo-controls{left:12px;right:160px;bottom:90px;max-width:260px}#app[data-mode=navigation] .demo-controls .playback-buttons{right:60px;bottom:100px;width:40px}#app[data-mode=navigation] .playback-buttons button{width:40px;height:40px;min-height:40px}}
@media(max-height:610px) and (orientation:portrait){#app[data-mode=navigation] .demo-controls{right:120px}}
.drive-search .search-box button{width:72px;min-width:72px;min-height:48px;flex:0 0 72px;font-size:17px;white-space:nowrap;padding:6px}

/* The following maneuver occupies the right end of the main guidance card. */
#guidance .guidance-card>.next-step{position:static;flex:0 0 62px;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:0;padding:5px 4px;background:#ffffffed;color:#153e3a;border:1px solid #90b7af;border-radius:10px;box-shadow:none;text-align:center}
#guidance .guidance-card>.next-step>.icon{width:21px;height:21px;flex:none}#guidance .guidance-card>.next-step>span{display:grid;gap:2px;white-space:normal}#guidance .next-step small{font-size:10px;font-weight:850;line-height:1.15}#guidance .next-step strong{font-size:15px;line-height:1.15;white-space:nowrap}#guidance .next-action{font-size:11px;font-weight:850;line-height:1.2}
#guidance .guidance-card:has(>.next-step:not([hidden])){gap:7px;padding-right:8px}#guidance .guidance-card:has(>.next-step:not([hidden]))>.maneuver-icon{width:25px;min-width:25px}#guidance .guidance-card:has(>.next-step:not([hidden])) .guidance-copy{min-width:0;column-gap:6px}#guidance .guidance-card:has(>.next-step:not([hidden])) h1{font-size:clamp(16px,4.8vw,22px);white-space:normal;line-height:1.2}#guidance .guidance-card:has(>.next-step:not([hidden])) .guidance-distance strong{font-size:clamp(28px,8.4vw,38px)}
@media(max-width:350px){#guidance .guidance-card>.next-step{flex-basis:54px}#guidance .next-step strong{font-size:13px}#guidance .guidance-card:has(>.next-step:not([hidden]))>.maneuver-icon{width:20px;min-width:20px}#guidance .guidance-card:has(>.next-step:not([hidden])){gap:5px}}
#guidance .guidance-card:has(>.next-step:not([hidden]))>.maneuver-icon .icon{width:25px;height:25px}
@media(max-width:350px){#guidance .guidance-card:has(>.next-step:not([hidden]))>.maneuver-icon .icon{width:20px;height:20px}}
#app .trip-main>.trip-timing{max-width:none}
#guidance .hazard-caution{align-items:flex-start;white-space:normal;line-height:1.4;padding:8px 10px;background:#fff2be;color:#313923;max-width:100%;font-size:15px;font-weight:750}
#guidance .hazard-caution>span:first-child{flex:none;width:28px;height:28px}#guidance .hazard-caution svg{width:28px;height:28px}#guidance .hazard-caution #roadCautionText{white-space:normal;overflow-wrap:anywhere}
#app .route-proposal{position:absolute;z-index:11;left:10px;right:76px;bottom:calc(122px + var(--safe-bottom));padding:12px;border:2px solid #388574;border-radius:14px;background:#fff;color:#193c35;box-shadow:0 6px 24px #183d3540;pointer-events:auto}
.proposal-heading{display:flex;flex-direction:column;gap:3px}.proposal-heading>strong{font-size:19px}.proposal-estimate{font-size:11px;color:#506964}.proposal-reason{font-size:15px;font-weight:750;line-height:1.4;margin:7px 0}.proposal-status{font-size:12px;line-height:1.35;margin:5px 0 9px}.proposal-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.proposal-actions button{position:relative;min-width:0;min-height:52px;padding:8px;font-size:15px;line-height:1.3;font-weight:800}.proposal-switch{display:flex;align-items:center;justify-content:center;gap:6px;overflow:hidden}.proposal-count{font-size:15px;position:relative;z-index:1}.proposal-ring{width:30px;height:30px;flex:none;border-radius:50%;background:conic-gradient(#fff calc(var(--proposal-progress,1)*1turn),#ffffff40 0);position:absolute;right:5px;opacity:.7}.proposal-ring:after{content:'';position:absolute;inset:5px;background:#13846b;border-radius:50%}.proposal-switch>span:first-child{position:relative;z-index:1}.proposal-switch:after{content:'';position:absolute;left:0;bottom:0;height:5px;width:calc(var(--proposal-progress,1)*100%);background:#ffdc70;transition:width .2s linear}.proposal-count{margin-right:24px}
#app:has(.route-proposal:not([hidden])) .demo-controls{visibility:hidden}
@media(max-width:350px){#app .route-proposal{left:8px;right:62px;padding:9px}.proposal-reason{font-size:14px}.proposal-actions{grid-template-columns:1fr}.proposal-actions button{min-height:44px}.proposal-heading>strong{font-size:17px}}
@media(orientation:landscape) and (max-height:520px){#app .route-proposal{left:10px;right:155px;bottom:90px;padding:10px}.proposal-actions{grid-template-columns:1fr 1fr}.proposal-reason{font-size:14px;margin:4px 0}.proposal-heading{flex-direction:row;align-items:center;gap:10px}.proposal-status{margin:3px 0 6px}.proposal-actions button{min-height:44px}}

/* Proposals stay between maneuver guidance and the arrival card. */
#app .route-proposal{right:10px;bottom:calc(108px + var(--safe-bottom))}
.proposal-count{width:30px;flex:none;text-align:center;margin-right:0}.proposal-ring{right:8px}.proposal-switch{gap:10px}
@media(max-width:350px){#app .route-proposal{left:8px;right:8px}.proposal-actions{grid-template-columns:1fr 1fr}.proposal-actions button{min-height:50px;font-size:14px}.proposal-reason{font-size:14px}}
@media(orientation:landscape) and (max-height:520px){
 #app .route-proposal{right:10px;bottom:calc(102px + var(--safe-bottom));display:grid;grid-template-columns:minmax(0,1fr) 248px;column-gap:10px;padding:6px 8px}
 .proposal-heading{grid-column:1;flex-direction:row;align-items:center;gap:8px}.proposal-heading>strong{font-size:17px;white-space:nowrap}.proposal-estimate{font-size:10px}.proposal-reason{grid-column:1;font-size:14px;line-height:1.3;margin:2px 0}
 .proposal-status{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.proposal-actions{grid-column:2;grid-row:1/3;align-self:center;gap:6px}.proposal-actions button{min-height:50px;font-size:14px}
}

.proposal-switch>span:first-child{white-space:nowrap}.proposal-count{position:relative;display:grid;place-items:center;width:36px;height:36px;flex:none;margin:0;line-height:1;white-space:nowrap}.proposal-count-text{position:relative;z-index:1;font-size:12px}.proposal-count .proposal-ring{inset:0;width:36px;height:36px;opacity:1;z-index:0}.proposal-switch{gap:6px}
@media(orientation:landscape) and (max-height:520px){.proposal-actions .proposal-switch{padding:4px}.proposal-count-text{font-size:12px}}

#app .route-proposal{overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}.proposal-reason{min-height:0;overflow:auto}
@media(orientation:landscape) and (max-height:520px){#app .route-proposal{grid-template-rows:auto minmax(0,1fr)}}

/* Keep repeat and restriction icons clear of the following maneuver. */
#guidance .guidance-card:has(>.next-step:not([hidden]))>.guidance-repeat,#guidance .guidance-card:has(>.next-step:not([hidden]))>.guidance-caution{right:80px}
@media(max-width:350px){#guidance .guidance-card:has(>.next-step:not([hidden]))>.guidance-repeat,#guidance .guidance-card:has(>.next-step:not([hidden]))>.guidance-caution{right:72px}}

#app #currentRoadBadge{position:absolute;transform:translateX(-50%);margin:0}
#guidance .junction-vehicle{filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 2px 2px #183330c0)}
/* Keep a clear, fixed road-name row above the arrival information. */
#app[data-mode=navigation] .demo-controls{bottom:calc(140px + var(--safe-bottom))}
.auto-update-notice{position:fixed;z-index:20000;left:50%;top:calc(20px + env(safe-area-inset-top,0px));transform:translateX(-50%);width:min(520px,calc(100vw - 32px));padding:22px;background:#173c39;color:#fff;border-radius:18px;box-shadow:0 10px 35px #1236;display:flex;align-items:center;gap:16px;font-size:18px;line-height:1.5}.auto-update-notice:not(.complete)::before{content:'';width:20px;height:20px;border:3px solid #fff5;border-top-color:#fff;border-radius:50%;flex-shrink:0;animation:spin 1s linear infinite}.auto-update-notice button{margin-left:auto;background:#ffffff22;color:#fff;border-radius:10px;min-height:44px;padding:8px 12px;white-space:nowrap}.drive-log-dialog{width:min(800px,calc(100vw - 24px))}.drive-log-note,.drive-log-gap,.drive-log-save-status{font-size:14px;line-height:1.7;margin:12px 0;color:var(--muted)}.drive-log-list{display:grid;gap:12px;margin:20px 0}.drive-log-row{display:grid;gap:8px;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--surface);color:var(--ink);overflow-wrap:anywhere}.drive-log-row small{font-size:13px}.drive-log-row strong{font-size:18px;line-height:1.5}.drive-log-row span{font-size:15px}.drive-log-map{height:300px;width:100%;border-radius:16px;overflow:hidden;position:relative;margin:12px 0}.drive-log-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.drive-log-fields>div{min-width:0}.drive-log-fields>div:nth-child(-n+2){grid-column:1/-1}.drive-log-fields dt{font-size:13px;color:var(--muted);margin-bottom:6px}.drive-log-fields dd{margin:0;font-size:19px;font-weight:700;overflow-wrap:anywhere;line-height:1.5}.drive-log-state{font-size:15px;font-weight:700}.drive-export-map{position:fixed;left:-10000px;top:0;width:1360px;height:720px}.drive-log-save-status a{display:inline-block;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px}.raku .drive-log-dialog .list-body{overflow-y:auto;max-height:calc(85dvh - 100px)}.raku .drive-log-row,.raku .drive-log-fit,.raku .drive-log-save{font-weight:750}@media(max-width:359px){.drive-log-dialog .list-body{padding:10px 16px 24px}.drive-log-map{height:240px}.drive-log-fields dd{font-size:17px}}

/* Keep the drive-log entry accessible in the expanded mobile home menu. */
body:not(.raku) #homeMenu .home-footer{display:flex;justify-content:space-between;gap:10px}body:not(.raku) #homeMenu .home-footer button{min-height:44px;padding:8px 10px;font-size:14px;background:var(--surface);border:1px solid var(--line);border-radius:10px}

/* One playback dock: its controls and progress track share the same box. */
#app[data-mode=navigation] #demoControls{position:absolute;left:auto;right:74px;top:auto;bottom:calc(122px + var(--safe-bottom));width:86px;max-width:none;min-width:0;padding:6px;border-radius:12px;grid-template-columns:24px 44px;grid-template-rows:auto 144px;gap:4px;z-index:7}
#app[data-mode=navigation] #demoControls::before{display:none}
#app #demoControls>span{display:block;grid-column:1/-1;grid-row:1;text-align:center;white-space:normal;line-height:1.3}
#app #demoControls b{display:block;font-size:12px;font-weight:800}
#app #demoControls small{display:block;font-size:10px;white-space:nowrap}
#app #demoControls .playback-buttons{position:static;inset:auto;grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:center;gap:6px;width:44px;align-self:center}
#app #demoControls .playback-buttons button{width:44px;height:44px;min-height:44px;border-radius:10px;padding:4px;margin:0;font-size:15px;justify-self:center}
#app #demoControls #rehearsalSeek{grid-column:1;grid-row:2;width:144px;height:24px;min-width:0;margin:0;align-self:center;justify-self:center;transform:rotate(-90deg);transform-origin:center;touch-action:none}
body.raku #app[data-mode=navigation] #demoControls{right:86px;bottom:calc(120px + var(--safe-bottom))}
@media(max-height:610px) and (orientation:portrait){#app[data-mode=navigation] #demoControls{right:60px;bottom:calc(116px + var(--safe-bottom))}body.raku #app[data-mode=navigation] #demoControls{right:72px;bottom:calc(112px + var(--safe-bottom))}}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] #demoControls,body.raku #app[data-mode=navigation] #demoControls{right:52px;bottom:calc(100px + var(--safe-bottom));width:80px;padding:4px;grid-template-columns:22px 44px}}

@media(orientation:landscape) and (max-height:520px){
 #app[data-mode=navigation]:has(#demoControls:not([hidden])) #guidance .guidance-card{max-width:calc(100vw - 154px)}
 body.raku #app[data-mode=navigation]:has(#demoControls:not([hidden])) #guidance:not(.expanded-junction) .junction-panel{max-width:calc(100vw - 468px)}
}

@media(orientation:landscape) and (max-height:520px){body.raku #app[data-mode=navigation] #demoControls{right:64px}body.raku #app[data-mode=navigation]:has(#demoControls:not([hidden])) #guidance .guidance-card{max-width:calc(100vw - 166px)}}

/* Put the picture at the top while it is the primary maneuver guidance. */
#app[data-mode=navigation] #guidance.has-junction{top:calc(8px + var(--safe-top))!important;left:10px;right:10px;width:auto}
#app[data-mode=navigation] #guidance.has-junction>.guidance-card{display:none}
#app[data-mode=navigation] #guidance.has-junction #junctionPanel{position:relative;left:auto;top:auto;order:-1}
#app[data-mode=navigation]:has(#junctionPanel:not([hidden])) #rakuDestinationBanner{display:none}
#app[data-mode=navigation] #guidance .road-caution{max-width:calc(100% - 68px);position:relative;z-index:12}
#app[data-mode=navigation] .map-controls{z-index:13}
.results-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.results-tools button{min-width:0;font-weight:750;padding:8px}
.results-tools button:last-child{grid-column:1/-1}
#app #resultsPanel.list-expanded{inset:calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom));width:auto;height:auto;max-height:none;z-index:40;border-radius:16px}
#app #resultsPanel.list-expanded .scroll-list{flex:1;display:block}
#app:has(#resultsPanel.list-expanded:not([hidden])) .map-controls{display:none}
@media(orientation:landscape) and (max-height:520px){#app[data-mode=navigation] #guidance.has-junction #junctionMap{height:160px}}
/* Leave a readable road area below the signs in both navigation profiles. */
#app[data-mode=navigation] #guidance.has-junction #junctionMap{min-height:160px}
