.widget .icon{color:var(--accent,#79e8d2)}
.widget[data-id=speed] .row{gap:.3em;justify-content:center}
.widget[data-id=speed] .row .icon{width:.8em;height:.8em}
.widget[data-id=speed] strong{font-size:1.35em}
.widget[data-id=speed] small{text-align:center}
.focus-vignette{position:absolute;inset:0;z-index:2;pointer-events:none}
.focus-ring{position:absolute;border:1px solid #79e8d24d;border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);box-shadow:0 0 16px #0002}
.sheet-backdrop{background:#0002}
.sheet{background:rgb(13 28 43 / var(--panel-opacity,.8));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.sheet-backdrop.appearance-editor{pointer-events:none;background:transparent;align-items:flex-end}
.appearance-editor .sheet{pointer-events:auto;max-height:48svh;width:min(100%,650px);margin-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -8px 35px #0004;padding-top:12px}
.appearance-editor .head{margin-bottom:8px}
.appearance-editor .head h2{font-size:20px}
.appearance-editor .sheet h3{margin:12px 0 6px}
.appearance-editor .sheet input[type=range]{min-height:30px;margin:3px 0 10px}
.appearance-editor .sheet label{display:flex;justify-content:space-between;gap:12px;align-items:center}
.appearance-editor output{font-variant-numeric:tabular-nums;color:#dffcf7}
.appearance-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.appearance-toolbar button{padding:7px 10px;font-size:12px}
.appearance-sample-host{border:1px solid #ffffff29;background:rgb(10 22 34 / var(--panel-opacity,.8));border-radius:14px;padding:8px;margin:5px 0 12px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:65px}
.appearance-sample{border:1px solid #ffffff30;border-radius:14px;padding:9px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;min-width:45px}
.appearance-sample .icon{width:24px;height:24px;color:var(--accent);flex-shrink:0}
.appearance-sample .row{gap:8px}
.appearance-sample .row>div{min-width:0}
.appearance-sample strong{font-size:21px;line-height:1.1}
.appearance-sample small{font-size:10px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.appearance-sample-caption{max-width:80px;font-size:10px;color:#b7cbd5}
.appearance-editor .palette{grid-template-columns:repeat(8,1fr);gap:6px}
.appearance-editor .swatch{min-height:30px;height:30px}
.appearance-editor .swatch[aria-pressed=true]{outline:2px solid #79e8d2;outline-offset:2px}
.appearance-color-row{display:flex;gap:10px;align-items:center}
.appearance-color-row input[type=text]{flex:1;min-width:0;font-family:ui-monospace,monospace;max-width:145px}
.layout-edit-bar{display:flex;justify-content:center;gap:10px;padding:8px;background:#091725e8;z-index:12}
.layout-edit-bar[hidden]{display:none!important}
.control-resize-handle{position:absolute;right:-3px;bottom:-3px;border-radius:7px;background:#79e8d2;color:#07121c;width:22px;height:22px;display:none;place-items:center;font-size:14px;z-index:3;touch-action:none}
.layout-editing .control-resize-handle{display:grid}
.layout-editing .phone-actions button{outline:1px dashed #79e8d2;overflow:visible;touch-action:none}
.phone-actions button{position:absolute}
#viewport:not(.editing) .widget.selected{outline:none}
.sheet .group.settings-appearance{display:grid;grid-template-columns:1fr;gap:10px}
.settings-appearance button{display:block;width:100%;text-align:start;padding:15px 17px;border-color:#79e8d24d;background:linear-gradient(120deg,#163b4c,#0d1c2b)}
.settings-appearance strong{display:block;font-size:16px;color:#e8fff9}
.settings-appearance small{display:block;margin-top:5px;color:#b0cdd6;font-size:12px;line-height:1.4}
.settings-other{margin-top:15px}
.place-results{display:grid;gap:8px;margin-top:10px}
.place-result{width:100%;justify-content:flex-start;text-align:start;padding:13px 12px}
.place-result>span{min-width:0}
.place-result strong{display:block;font-size:15px;font-weight:600;line-height:1.35}
.place-result small{display:block;font-size:12px;color:#b0cdd6;margin-top:4px;line-height:1.4}
.sheet input[type=checkbox]{width:18px!important;height:18px;min-height:18px;margin:5px 8px 5px 0;padding:0;vertical-align:middle;accent-color:var(--mint)}
@media(min-width:760px){.appearance-editor .sheet{margin-right:18px;margin-left:auto;max-width:480px;max-height:62svh;border-radius:24px 24px 0 0}.appearance-editor .sheet-backdrop{justify-content:flex-end}}

#account-form{display:grid;gap:7px;margin-top:18px}
#account-form>button,#profile-form>button{width:100%;margin-top:14px}
.account-heading{display:flex;align-items:center;gap:10px}
.account-heading .icon{color:var(--mint);width:30px;height:30px}
.account-email{overflow-wrap:anywhere;color:var(--mint)!important}
.profile-photo{display:flex;flex-direction:column;gap:10px;margin:6px 0 18px}
.profile-photo img{width:86px;height:86px;border-radius:24px;object-fit:cover;border:1px solid #79e8d24d}
.profile-photo input[type=file]{font-size:13px}

.widget{ -webkit-touch-callout:none }
.editing .widget{outline:1px dashed #79e8d2;outline-offset:2px}
.widget .handle{width:38px;height:38px;font-size:23px}
.menu-list{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.menu-list>button{display:flex;width:100%;min-height:68px;padding:17px 18px;gap:16px;border-radius:18px;text-align:start;justify-content:flex-start;background:#172b3d;border:1px solid #a9bacb2b}
.menu-list>button>.icon:first-child{width:25px;height:25px;color:var(--mint)}
.menu-list>button>span{flex:1;font-size:16px;font-weight:600}
.menu-list .menu-chevron{width:18px;height:18px;color:var(--muted)}

.shell.phone{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;max-width:none;overflow:hidden}
.shell.phone .stage{padding:0;min-height:0;flex:1;width:100%;height:100%}
.shell.phone .viewport{width:100%;height:100%;max-width:none;border:0;border-radius:0;box-shadow:none}
.shell.phone .phone-actions{inset:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom))}
.phone-actions .profile{position:absolute;right:0;top:0;overflow:hidden}
#profile-open img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.layout-edit-bar{position:absolute;bottom:0;left:0;right:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.layout-editing .phone-actions{bottom:calc(86px + env(safe-area-inset-bottom))!important}

.editing .widget.selected{z-index:10}

.navigation-controls{width:calc(100% - 150px);max-width:360px;justify-content:center}
.navigation-controls button{font-size:12px;white-space:nowrap;min-height:49px;padding:10px 12px;flex:1}

.sheet textarea{width:100%;font:inherit;resize:vertical;border:1px solid #526575;border-radius:12px;background:#0a1420;padding:12px;color:var(--text);margin:6px 0}
.ai-remember{display:flex;gap:9px;align-items:center;margin-top:12px}.ai-remember input{width:auto!important}.ai-response{white-space:pre-wrap;line-height:1.6;color:var(--text)!important}#ai-ask{width:100%;margin-top:12px}

.lane-guidance{display:flex;gap:3px;width:100%;margin-top:8px}
.lane{flex:1;min-width:0;display:flex;justify-content:center;gap:1px;padding:5px 3px;border-radius:7px;background:#ffffff0c;color:#b0bfcc66}
.lane.active{color:#07131b;background:var(--accent,#79e8d2)}.lane.valid{color:var(--accent,#79e8d2);background:#79e8d21c}
.lane svg{width:100%;max-width:23px;min-width:0;height:23px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sheet-backdrop.route-preview{background:transparent;pointer-events:none;align-items:flex-end}
.route-preview .sheet{pointer-events:auto;border-radius:25px 25px 0 0;margin-bottom:0;max-height:44svh;background:#0d1c2bf2}
.route-preview .head{margin-bottom:6px}.route-preview .head h2{font-size:20px}.route-destination{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0 12px!important}
.route-options{display:flex;gap:8px}.route-option{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:10px 5px;border-radius:15px;background:#1b3045}
.route-option.chosen{background:#79e8d2;color:#08111d;border-color:#aaf8e7}.route-option small{font-size:10px;white-space:nowrap}.route-option strong{font-size:21px}.route-option span{font-size:12px}
.route-roads{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:10px 0!important}.route-actions{display:flex;gap:8px}.route-actions button{flex:1;font-size:12px;padding:10px 8px}.route-cancel{border:0;background:transparent;min-height:30px;font-size:12px;padding:6px;margin-top:4px}
.home-dock{position:absolute;z-index:11;bottom:0;left:0;right:0;padding:18px 16px calc(16px + env(safe-area-inset-bottom));background:#0d1c2bf2;backdrop-filter:blur(15px);border-radius:25px 25px 0 0;border-top:1px solid #a9bacb2b}
.home-dock[hidden]{display:none}.home-search{width:100%;justify-content:flex-start;font-size:18px;min-height:54px;border-radius:18px;background:#253a4d;color:#edf5fa}.home-search .icon{color:var(--mint);margin-right:4px}
.home-quick{display:flex;gap:8px;margin-top:12px}.home-quick button{flex:1;font-size:13px;padding:9px}.home-recent{display:flex;gap:6px;overflow:hidden}.home-recent:empty{display:none}.home-recent button{min-width:0;max-width:50%;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:9px;display:block}
.home-state .phone-actions{bottom:calc(180px + env(safe-area-inset-bottom))!important}

.lane-guidance{direction:ltr}

/* Image adjustments stop at the map canvas; safety markers and interface remain clear. */
#map .maplibregl-canvas{filter:var(--gapes-map-image-filter,none)}
.sheet-backdrop.map-display-editor{pointer-events:none;background:transparent;align-items:flex-end}
.map-display-editor .sheet{pointer-events:auto;width:100%;max-width:none;height:50dvh;max-height:50dvh;margin:0;border-radius:24px 24px 0 0;background:#102536f7;backdrop-filter:none;padding-top:12px;box-shadow:0 -8px 35px #0004}
.map-display-editor .head{margin-bottom:8px}.map-display-editor .head h2{font-size:20px}
.map-image-settings h3{margin:0 0 8px}.map-theme-control{padding:0;border:0;margin:0 0 10px;min-width:0}.map-theme-control legend{font-size:12px;color:var(--muted);margin-bottom:5px}
.map-theme-choices{display:flex;gap:7px}.map-theme-choices button{flex:1;min-height:40px;padding:8px 12px}.map-theme-choices button[aria-pressed=true]{background:#79e8d2;color:#08111d;font-weight:700;border-color:#b7fff0}
.map-image-range label{display:flex;align-items:center;justify-content:space-between;gap:14px}.map-image-range output{font-variant-numeric:tabular-nums;color:#edf5fa}.map-image-range input[type=range]{min-height:28px;margin:0 0 5px}
#map-image-reset{min-height:38px;padding:7px 12px}.map-image-settings .notice{margin:6px 0 12px}

/* Founders story keeps the complete photograph and a comfortable reading measure. */
.about-story{max-width:620px;margin:0 auto;text-align:start;overflow-wrap:break-word}
.about-founders{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:18px;border:1px solid #a9bacb26;box-shadow:0 10px 28px #0003;background:#102536}
.sheet .about-story h3{color:#edf5fa;font-size:clamp(22px,5.5vw,28px);line-height:1.25;letter-spacing:-.025em;margin:23px 0 19px;font-weight:750}
.sheet .about-story p{color:#c7d5df;font-size:15px;line-height:1.75;margin:0 0 18px}
.sheet .about-story .about-closing{color:#79e8d2;font-weight:650;font-size:17px;line-height:1.55;margin-top:25px;padding-inline-start:15px;border-inline-start:2px solid #79e8d280}
.sheet .about-story .about-signature{color:#edf5fa;font-size:14px;font-style:italic;margin:18px 0 25px}
.about-divider{height:1px;border:0;background:#a9bacb26;margin:28px 0}

.sheet:has(.about-story){background:#102333;backdrop-filter:none}

.own-voice-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.own-voice-actions button{min-width:0;white-space:normal;min-height:48px}.own-voice-actions input[type=file][hidden]{display:none}

/* Fullscreen vignette editor and the existing full-size map share saved geometry. */
.sheet-backdrop.vignette-editor .sheet,.sheet-backdrop.menu-screen .sheet{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(22px,env(safe-area-inset-bottom));background:#102333;backdrop-filter:none}
.vignette-editor .head,.menu-screen .head{position:sticky;top:-1px;z-index:2;background:#102333;padding-bottom:12px}
.vignette-preview-button{width:100%;margin-bottom:8px}
.vignette-preview-bar{position:absolute;z-index:25;bottom:calc(14px + env(safe-area-inset-bottom));left:14px;right:14px;display:flex;gap:10px;justify-content:center}
.vignette-preview-bar[hidden]{display:none!important}.vignette-preview-bar button{min-height:48px;background:#102333}.vignette-preview-bar .primary{background:#79e8d2;color:#08111d}
.vignette-preview .phone-actions,.vignette-preview .widget,.vignette-preview .map-brand,.vignette-preview .home-dock,.vignette-preview .map-status,.vignette-preview #restore-map-controls{display:none!important}.vignette-preview:after{display:none}
.controls-hidden .phone-actions,.controls-hidden .map-brand,.controls-hidden .home-dock{display:none!important}
#restore-map-controls{position:absolute;z-index:18;top:calc(10px + env(safe-area-inset-top));right:12px;width:46px;height:46px;padding:10px;border-radius:50%;background:#102333;color:#edf5fa}
#restore-map-controls[hidden]{display:none}

.sheet .head h2{flex:1;min-width:0}.sheet-back{width:44px;min-width:44px;height:44px;min-height:44px;padding:9px;margin-inline-end:10px}.sheet-back[hidden]{display:none}

.vignette-editor .sheet label{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0 4px;min-height:24px}.vignette-editor .sheet input[type=checkbox]{width:22px!important;height:22px;min-height:22px;margin:0 0 0 12px}.vignette-editor .sheet output{font-variant-numeric:tabular-nums;color:#edf5fa}.vignette-editor .sheet input[type=range]{min-height:30px;margin:2px 0 8px}

.sheet .head{position:sticky;top:-1px;z-index:4;background:rgb(16 35 51 / .97);padding-bottom:8px}
