:root{--mint:#31e5e6;--text:#f1f6fa;--muted:#acbfcd}
.map-brand{position:absolute;top:calc(20px + env(safe-area-inset-top));left:18px;display:flex;gap:8px;align-items:center;z-index:5;pointer-events:none;text-shadow:0 2px 10px #000b}
.map-brand svg{width:25px;height:29px;fill:#31e5e6}.map-brand span{font-size:24px;font-weight:800;font-style:italic;letter-spacing:-.8px}
.map-status{top:auto;bottom:calc(4px + env(safe-area-inset-bottom));z-index:7;max-width:72%;overflow:hidden;text-overflow:ellipsis;font-size:9px;letter-spacing:.15px;opacity:.8}
.widget{background:linear-gradient(140deg,#142837ef,#081825f5);border:1px solid #7793a64d;box-shadow:0 6px 18px #02091245}
.widget[data-id=guidance]{padding:12px 14px;border-radius:23px;gap:5px;justify-content:center}
.maneuver-main{display:flex;align-items:center;gap:15px;min-height:54px;flex:1;min-width:0}
.maneuver-symbol{width:53px;height:56px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:6;stroke-linejoin:round;stroke-linecap:round;color:var(--accent,#31e5e6)}
.maneuver-main>.maneuver-symbol{color:inherit;margin-right:3px}
.maneuver-copy{border-left:1px solid #91a6b14d;padding-left:16px;min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;line-height:1.2}
.maneuver-copy strong{font-size:1.05em;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.maneuver-action{color:var(--accent,#31e5e6);font-size:1.14em;font-weight:750;letter-spacing:-.5px;line-height:1.13}
.maneuver-copy small{font-size:.56em;margin-top:3px}
.next-maneuver{display:flex;align-items:center;gap:7px;border-top:1px solid #7793a62b;padding-top:5px;font-size:.48em;line-height:1.2;min-width:0;white-space:nowrap;overflow:hidden}
.next-maneuver .maneuver-symbol{width:19px;height:20px;stroke-width:6}.next-maneuver>span:last-child{overflow:hidden;text-overflow:ellipsis}
.lane-guidance{margin-top:2px;gap:4px}.lane{padding:3px 2px;border-radius:6px;background:#7b91a32b;color:#92a2ae}.lane.active{background:#31e5e6;color:#09222b}.lane.valid{border:1px solid #31e5e6;color:#31e5e6;background:#13525c66}.lane svg{height:24px}
.widget[data-id=speed]{padding:0;overflow:visible;border:0;box-shadow:0 7px 15px #0005;background:#0a1c29;aspect-ratio:1}
.speed-dial{position:relative;width:100%;height:100%;display:grid;place-items:center}.speed-dial>svg{position:absolute;width:100%;height:100%;inset:0;transform:rotate(135deg)}
.speed-dial circle{fill:none;stroke-width:6;stroke-linecap:round}.dial-track{stroke:#4f6575;stroke-dasharray:203 270}.dial-value{stroke:var(--accent,#31e5e6)}
.speed-digits{display:flex;flex-direction:column;align-items:center;line-height:1}.speed-digits strong{font-size:clamp(20px,1.55em,48px);font-weight:750;line-height:1}.speed-digits small{font-size:clamp(8px,.53em,16px);opacity:.9;margin-top:2px}
.speed-limit{position:absolute;top:-4px;right:-13px;display:grid;place-items:center;width:32px;height:32px;border:3px solid #f14949;background:white;color:#15202a;border-radius:50%;font-weight:800;font-size:15px}
.widget[data-id=trip]{padding:12px 16px;border-radius:24px;min-height:0}.trip-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;align-items:center;width:100%;height:100%;gap:10px}
.trip-grid>div{min-width:0}.trip-grid>div+div{border-left:1px solid #79929f66;padding-left:14px}.trip-grid strong{font-size:clamp(13px,1.24em,28px);font-weight:750;white-space:nowrap}.trip-grid small{font-size:.62em;opacity:.85}.trip-grid em{font-style:normal;font-weight:500;font-size:.7em}
.vehicle-puck{position:relative;width:50px;height:58px;filter:drop-shadow(0 4px 4px #06141de0)}.vehicle-puck>svg{position:relative;z-index:1;transform-origin:50% 50%}.vehicle-halo{position:absolute;inset:4px -8px -8px;border-radius:50%;background:radial-gradient(ellipse,#00dfff25 15%,#00dfff07 55%,transparent 72%);border:1px solid #56dce620}
.phone-actions button{border-radius:50%;border-color:#7892a53b;background:linear-gradient(140deg,#183142ef,#091d2bf5);color:#eef9ff}
#zoom-in,#zoom-out{position:absolute;width:44px;height:44px;border-radius:50%;padding:0}
.navigation-controls{bottom:calc(120px + env(safe-area-inset-bottom))!important;max-width:210px;width:calc(100% - 175px);gap:5px!important}
.navigation-controls button{min-height:34px;padding:7px 8px;border-radius:20px;font-size:10px;background:#0c2132ed;white-space:nowrap}
.roundabout-exit{background:#f2ffff;color:#0759c8;border:2px solid #087fff;border-radius:13px;padding:5px 10px;font-weight:800;font-size:13px;box-shadow:0 3px 10px #071b2a55}
.home-dock{padding:20px 18px calc(22px + env(safe-area-inset-bottom));background:linear-gradient(145deg,#162c3bf5,#081b29fa);border-color:#8198a54d;border-radius:28px 28px 0 0}
.home-dock:before{content:'';display:block;width:43px;height:5px;margin:-9px auto 17px;background:#7e929f;border-radius:6px}
.home-search{border-radius:26px;min-height:52px;background:linear-gradient(135deg,#304458,#22364a);font-weight:500;color:#b9cbd6}
.home-quick{display:grid;grid-template-columns:1fr;gap:8px}.home-place{display:flex!important;justify-content:flex-start!important;text-align:start;border-radius:18px;min-height:61px;background:#1b3040}.home-place .icon{width:27px;height:27px;color:#31e5e6;margin-right:9px}.home-place span{flex:1;min-width:0}.home-place strong{display:block;font-size:16px}.home-place small{display:block;color:#aabecd;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-tools{display:flex;gap:8px;margin-top:9px}.home-tools button{flex:1;padding:7px;min-height:34px;font-size:11px;background:#173040;border-radius:12px}
.home-recent{display:none}.home-state .phone-actions{bottom:calc(305px + env(safe-area-inset-bottom))!important}
.appearance-sample-host{display:none}.appearance-map-label{color:#31e5e6;font-size:12px;padding:5px 0}
.shell.phone.appearance-open .stage{height:53dvh;flex:0 0 53dvh}.appearance-open .map-status{bottom:4px}.appearance-open .map-brand{display:none}
.appearance-editor .sheet{height:47dvh;max-height:47dvh;max-width:none;width:100%;overflow:auto;border-radius:24px 24px 0 0;background:#102536f7;backdrop-filter:none}
.appearance-open .widget.selected{outline:2px solid #31e5e6!important;outline-offset:3px;z-index:10;box-shadow:0 0 0 6px #31e5e611}
.appearance-open .widget .maneuver-copy{border:0;padding-left:4px}.appearance-open .widget .maneuver-symbol{width:28px;height:32px}.appearance-open .widget .maneuver-main{gap:4px;min-height:0}.appearance-open .widget .maneuver-copy strong{font-size:.8em}.appearance-open .widget .maneuver-action{font-size:.8em}.appearance-open .widget .next-maneuver{display:none}
.appearance-open .phone-actions{inset:10px!important}.appearance-open .home-dock,.appearance-open .navigation-controls{display:none!important}
@media(min-width:900px){.shell.phone.appearance-open .stage{height:100%;flex:1;width:calc(100% - 400px);align-self:flex-start}.appearance-editor .sheet{width:400px;height:100dvh;max-height:100dvh;margin:0 0 0 auto;border-radius:0;border-left:1px solid #4c6c8055}.appearance-open .widget .maneuver-copy strong,.appearance-open .widget .maneuver-action{font-size:1em}}

.home-state #search-open{display:none}.appearance-open .phone-actions button[data-style-selected]{outline:2px solid #31e5e6;outline-offset:3px}

.lane{position:relative;min-height:34px;background:linear-gradient(#455968,#304652);border:1px solid #8297a744;border-radius:6px 6px 3px 3px;color:#d4e1e9;padding-top:7px}
.lane.active{background:linear-gradient(var(--accent,#31e5e6),#15b9ce);color:#072736;border-color:#b7ffffaa;box-shadow:0 0 13px #25dadd22}
.lane.valid{background:#284f5e;border-color:var(--accent,#31e5e6);color:var(--accent,#31e5e6)}
.lane-number{position:absolute;top:1px;left:5px;font-size:8px;font-weight:700;line-height:1;opacity:.7}

.warning-main{display:flex;gap:12px;align-items:center;min-width:0}.warning-main>.icon{width:32px;height:36px;flex-shrink:0;color:var(--accent,#ffce78)}.warning-main>div{min-width:0}.warning-main strong{font-size:1em;line-height:1.2;display:block}.warning-main em{font-size:.6em;font-style:normal;font-weight:500}.warning-main small{font-size:.6em;opacity:.9;margin-top:3px}
.widget[data-id=alert]{border-left:3px solid #ffc879;background:#102635}.widget[data-id=guidance]:has(.lane-guidance){min-height:145px}.widget[data-id=guidance]:has(.next-maneuver){min-height:140px}

.alert-option{display:flex!important;align-items:center;gap:8px;padding:7px 0;color:#e2eef4}

/* Reference composition: compact glass instruction, full road scene, clear lower HUD. */
.map-brand{top:calc(19px + env(safe-area-inset-top));left:20px;gap:7px;pointer-events:auto;cursor:pointer;outline-offset:5px}.map-brand span{font-size:23px;font-style:italic;letter-spacing:-.6px}.map-brand svg{width:23px;height:26px}
.viewport:after{content:'';position:absolute;inset:0 0 auto;height:78px;background:linear-gradient(#081923f2,#0a1e2bd9 75%,transparent);pointer-events:none;z-index:4}.map-brand{z-index:7}
.widget[data-id=guidance]{padding:12px 17px;border-radius:24px;border-color:#7892a66b;box-shadow:inset 0 1px 0 #d0ebfa1a,0 8px 20px #0003}
.maneuver-main{gap:17px;min-height:56px}.maneuver-symbol{width:56px;height:56px;stroke-width:6.8}.maneuver-copy{border-left:1px solid #9bb8c68c;padding-left:19px;gap:3px}.maneuver-copy strong{font-size:clamp(20px,1.12em,29px);font-weight:750;letter-spacing:-.4px}.maneuver-action{font-size:clamp(24px,1.25em,32px);font-weight:750;letter-spacing:-.45px}.maneuver-copy small{font-size:11px;opacity:.8}
.trip-grid{grid-template-columns:1fr 1fr 1.1fr 37px;gap:10px}.trip-grid>div+div{padding-left:13px}.trip-grid strong{font-size:clamp(17px,1.05em,25px);letter-spacing:-.4px}.trip-grid small{font-size:12px}.trip-grid em{font-size:.73em}.trip-expand{width:37px;height:37px;min-height:37px;padding:0;border-radius:50%;background:#24394a;border:1px solid #60738666;display:grid;place-items:center}.trip-expand .icon{width:21px;height:21px;stroke:white}
.widget[data-id=trip]{padding:15px 22px;border-radius:25px 25px 0 0;box-shadow:inset 0 1px 0 #d4efff0c,0 -8px 30px #0002;border-color:#8196a65c}
.navigation-controls{display:none!important}.drive-actions-open .navigation-controls{display:flex!important;background:#0a1c2a;padding:10px;border:1px solid #6d8a9d66;border-radius:22px;bottom:calc(111px + env(safe-area-inset-bottom))!important;max-width:300px;width:calc(100% - 60px)}
.phone-actions button{box-shadow:inset 0 1px 0 #b4dae51c,0 4px 12px #0004;border-radius:50%!important}.phone-actions .icon{stroke:#e6f5fb;color:inherit}
.driving-state #menu-open,.driving-state #profile-open,.driving-state #search-open,.driving-state #report{display:none}.driving-state.drive-actions-open #menu-open,.driving-state.drive-actions-open #profile-open,.driving-state.drive-actions-open #search-open,.driving-state.drive-actions-open #report{display:flex}
.driving-state #gps{width:47px!important;height:47px!important}.driving-state .phone-actions{bottom:calc(122px + env(safe-area-inset-bottom))!important}
.focus-ring{opacity:.28}.vehicle-puck{width:45px;height:51px;filter:drop-shadow(0 2px 3px #0009)}.vehicle-puck>svg{width:45px;height:51px}.vehicle-halo{opacity:.6}
.maplibregl-ctrl-scale{display:none}.maplibregl-ctrl-attrib{font-size:8px;line-height:13px!important;background:#06131c88!important;color:#b4c9d2!important}.map-status{bottom:1px;left:50%;transform:translateX(-50%);font-size:8px;opacity:.7}
.appearance-open .phone-actions button,.layout-editing .phone-actions button{display:flex!important}.appearance-open .widget[data-id=trip]{padding:8px}.appearance-open .trip-grid{gap:5px;grid-template-columns:1fr 1fr 1fr}.appearance-open .trip-expand{display:none}.appearance-open .maneuver-copy strong,.appearance-open .maneuver-action{font-size:inherit}

.speed-flash .widget[data-id=speed]{box-shadow:0 0 0 3px #ff3a5380,0 0 24px #ff29476b!important}.speed-flash .dial-value{stroke:#ff354f!important}.speed-flash .speed-digits{color:#ff7186}

#gps .icon{fill:var(--accent,#31e5e6);stroke:none!important}.vehicle-puck path:first-of-type{stroke-width:1.65px}.maneuver-symbol{shape-rendering:geometricPrecision}

.maneuver-lane{font-size:13px;font-weight:650;line-height:1.3;margin-top:3px;color:inherit}.maneuver-lane:before{content:'';display:inline-block;width:5px;height:14px;background:var(--accent,#31e5e6);border-radius:2px;margin-inline-end:7px;vertical-align:-2px}

/* Keep the three trip values in separate measured columns, even in a saved small widget. */
.widget[data-id=trip]{min-width:min(290px,100%);min-height:88px;max-width:100%;max-height:100%;padding:14px 12px;container-type:inline-size}
.trip-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1.12fr) 40px;gap:6px}
.trip-grid>div{overflow:hidden;min-width:0}.trip-grid>div+div{padding-left:8px}
.trip-grid strong{display:block;font-size:22px;font-size:clamp(12px,6.2cqw,25px);line-height:1.2;overflow:hidden;text-overflow:ellipsis}
.trip-grid small{font-size:11px;line-height:1.4}.trip-expand{width:40px;height:40px;min-height:40px}
.widget[data-id=guidance]{min-width:min(240px,100%);min-height:98px;max-width:100%;max-height:100%}
.widget[data-id=alert]{min-width:min(220px,100%);min-height:75px;max-width:100%;max-height:100%}
.widget[data-id=clock]{min-width:min(170px,100%);min-height:100px;max-width:100%;max-height:100%;padding:10px 14px;container-type:inline-size}
.clock-content{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;overflow:hidden}
.clock-content strong{font-size:clamp(20px,15cqw,32px);font-variant-numeric:tabular-nums;line-height:1.1}
.clock-content span,.clock-content small{font-size:clamp(11px,7cqw,15px);line-height:1.3;white-space:normal;overflow-wrap:anywhere}

.combined-navigation .widget[data-id=guidance]{min-height:168px;gap:7px;container-type:inline-size}
.guidance-trip{border-top:1px solid #8aa3b64d;margin-top:4px;padding-top:9px;width:100%}
.guidance-trip .trip-grid{height:auto;gap:5px}.guidance-trip .trip-grid strong{font-size:clamp(12px,5.4cqw,20px);font-weight:700}
.guidance-trip .trip-grid small{font-size:10px;line-height:1.3}.guidance-trip .trip-grid>div+div{padding-left:7px}
.guidance-trip .trip-expand{transform:rotate(180deg)}
.crossing-barrier{stroke:#e45561;stroke-width:2.3}

.combined-navigation .widget[data-id=guidance]:has(.next-maneuver){min-height:190px}

.guidance-trip .trip-expand .icon{transform:none}

/* Resize changes the real box; the complete content fits inside that box. */
.viewport .widget[data-id]{min-width:0!important;min-height:0!important}
.widget-content{position:absolute;display:flex;flex-direction:column;justify-content:center;gap:inherit;padding:inherit;box-sizing:border-box;transform-origin:0 0;container-type:inline-size;pointer-events:auto}
.widget-resize-handle{position:absolute;z-index:15;width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;background:#31e5e6;color:#071c29;display:grid!important;place-items:center;touch-action:none;cursor:nwse-resize;box-shadow:0 2px 10px #0006}
.widget-resize-handle .icon{width:25px;height:25px;stroke-width:2.3}
.layout-edit-bar{z-index:19;pointer-events:auto}.layout-edit-bar button{min-height:48px;touch-action:manipulation}

.shell.phone.appearance-open .stage{height:100%;flex:1}

.home-search-row{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:8px}#home-voice{width:52px;height:52px;padding:0;border-radius:50%;color:var(--mint)}.home-state #voice-open{display:none}
/* Map gestures change the camera; fixed controls keep their chosen CSS size. */
#viewport{touch-action:none;overscroll-behavior:contain}
.shell.phone .sheet input:not([type=range]):not([type=color]),.shell.phone .sheet select,.shell.phone .sheet textarea{font-size:16px}
#gps.return-pending{color:#31e5e6;border-color:#31e5e6;box-shadow:0 0 0 2px #31e5e633}
:fullscreen .shell.phone{height:100dvh;min-height:0}
@media(display-mode:standalone),(display-mode:fullscreen){.shell.phone{height:100dvh;min-height:0}.shell.phone .map-brand{top:calc(18px + env(safe-area-inset-top))}.shell.phone .stage{padding-top:0;padding-bottom:0}}

/* GaPeS navigation shell: a clear map between fixed header and journey footer. */
.map-brand{pointer-events:auto;cursor:pointer;user-select:none}.map-brand span{letter-spacing:-.5px}
.viewport.driving-state .widget[data-id=guidance]{border-radius:24px;padding:13px 17px;box-shadow:inset 0 1px 0 #d4efff16,0 7px 24px #02091255}
.viewport.driving-state .widget[data-id=trip]{border-radius:26px 26px 0 0;padding:14px 20px;background-image:linear-gradient(145deg,#152b3b,#071721)}
.viewport .widget[data-auto-layout=true] .maneuver-copy strong{font-size:clamp(21px,7cqw,30px)}
.viewport .widget[data-auto-layout=true] .maneuver-action{font-size:clamp(23px,8cqw,32px);line-height:1.1}
.viewport .widget[data-auto-layout=true] .maneuver-symbol{width:51px;height:57px;stroke-width:5.5}
.viewport .widget[data-auto-layout=true] .maneuver-copy small{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vehicle-puck{will-change:transform;pointer-events:none}.vehicle-puck>svg{will-change:transform}
.home-dock{background:linear-gradient(145deg,#142838f5,#091924f7);border-color:#8fa6b34a}.home-place{min-height:65px!important;border-radius:18px!important}
.route-option.chosen{background:#31e5e6;color:#06202e;border-color:#9af7f8}.route-options{padding:3px 0}.route-preview .sheet{background:linear-gradient(145deg,#142838f5,#091924f7)}
@media(orientation:landscape) and (max-height:520px){.home-dock{left:auto;width:min(45vw,380px);padding:12px}.home-dock .home-place{min-height:48px!important}.home-dock .home-tools{margin-top:7px}.map-brand{top:14px}.route-preview .sheet{width:min(50vw,500px);max-height:80dvh;margin-left:auto}.home-tools button{min-height:36px}}

.viewport .widget[data-auto-layout=true] .maneuver-copy[data-gps=true] .maneuver-action{font-size:20px;line-height:1.16;letter-spacing:0}
.viewport .widget[data-auto-layout=true] .maneuver-copy[data-gps=true] strong{font-size:24px}
