/* App2 web controls: match SVRoundButton, SVZoomControls and the Route pill. */
:root { --sv-control-ink:#3c4043; --sv-control-blue:#1a73e8; --sv-control-shadow:0 1px 5px rgba(0,0,0,.10); }
body .sv-home { background:#fff; color:var(--sv-control-ink); border-radius:999px; min-height:46px; padding:0 16px; box-sizing:border-box; box-shadow:var(--sv-control-shadow); }
body .sv-home img { display:none; }
.svmapengine-ctrl-top-right { top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); }
.svmapengine-ctrl-bottom-right { bottom:max(38px,env(safe-area-inset-bottom)); right:max(12px,env(safe-area-inset-right)); }
.svmapengine-ctrl-top-right .svmapengine-ctrl, .svmapengine-ctrl-bottom-right .svmapengine-ctrl { margin:0 0 14px; }
.svmapengine-ctrl-group:not(:empty) { background:#fff; border-radius:26px; box-shadow:var(--sv-control-shadow); overflow:hidden; }
.svmapengine-ctrl-group button { width:52px; height:54px; border:0; }
.svmapengine-ctrl-group button+button { border:0; position:relative; }
.svmapengine-ctrl-group button+button:before { content:""; position:absolute; width:32px; height:1px; background:#e5e5e5; top:0; left:10px; }
.svmapengine-ctrl-group:has(.svmapengine-ctrl-compass), .svmapengine-ctrl-group:has(.svmapengine-ctrl-geolocate) { border-radius:50%; }
.svmapengine-ctrl-group .svmapengine-ctrl-compass { width:46px; height:46px; }
.svmapengine-ctrl-group .svmapengine-ctrl-geolocate { width:50px; height:50px; }
.svmapengine-ctrl-group button:hover { background:#f1f5fa; }
.svmapengine-ctrl-group button:focus-visible, .sv-route-shell button:focus-visible, body .sv-home:focus-visible { outline:3px solid var(--sv-control-blue); outline-offset:-3px; }
.sv-route-toggle { left:50%; bottom:max(38px,env(safe-area-inset-bottom)); transform:translateX(-50%); height:46px; padding:0 16px; gap:7px; background:#fff; color:var(--sv-control-blue); box-shadow:var(--sv-control-shadow); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; font-weight:700; }
.sv-route-toggle .sv-route-toggle-icon { width:24px; height:24px; background:transparent; color:inherit; }
.sv-route-toggle .sv-route-toggle-icon svg { width:22px; height:22px; stroke-width:2; }
.sv-route-toggle.is-active { left:12px; top:max(72px,calc(env(safe-area-inset-top) + 60px)); bottom:auto; transform:none; background:var(--sv-control-blue); }
.sv-route-toggle.is-active .sv-route-toggle-icon { background:transparent; }
.sv-route-card { border:0; border-radius:16px; background:#fff; box-shadow:var(--sv-control-shadow); }
.sv-route-panel { width:min(720px,calc(100vw - 160px)); bottom:max(18px,env(safe-area-inset-bottom)); }
.sv-route-actions { justify-content:space-around; gap:4px; padding:8px; }
.sv-route-actions button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; min-width:52px; min-height:52px; height:auto; padding:6px 8px; border-radius:12px; color:var(--sv-control-ink); font-size:11px; font-weight:600; }
.sv-route-actions button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sv-route-actions .sv-route-accent { color:var(--sv-control-ink); }
.sv-route-actions .sv-route-primary { background:var(--sv-control-blue); color:white; }
.sv-route-actions .sv-route-danger { color:#d93025; }
.sv-route-actions button:disabled { color:#b8b8b8; }
.sv-route-detail button, .sv-route-manager button { min-height:44px; }
.sv-route-detail-close, .sv-route-manager-close { width:44px; }
.sv-route-detail,.sv-route-manager { box-shadow:0 3px 14px rgba(0,0,0,.12); }
@media (max-width:720px) {
 .sv-route-panel { width:calc(100vw - 20px); bottom:max(10px,env(safe-area-inset-bottom)); }
 body.sv-route-planning .svmapengine-ctrl-bottom-right { bottom:250px; }
 .sv-route-actions { justify-content:flex-start; }
 .sv-route-actions button { flex:1 0 44px; min-width:44px; padding:6px 4px; }
}
@media (max-height:500px) and (orientation:landscape) {
 .sv-route-panel { left:10px; transform:none; width:min(540px,calc(100vw - 100px)); }
 .sv-route-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
 body.sv-route-planning .svmapengine-ctrl-bottom-right { bottom:28px; }
}

/* Native SF Symbols rendered from the same symbol names used by iOS. */
body .sv-home { background:#000; color:#fff; gap:10px; }
body .sv-home img { display:block; width:120px; height:18px; }
.sv-ios-symbol { display:inline-block; width:24px; height:24px; flex-shrink:0; background:currentColor; -webkit-mask:var(--sv-symbol) center/contain no-repeat; mask:var(--sv-symbol) center/contain no-repeat; }
.sv-home .sv-ios-symbol { width:18px; height:18px; }
.svmapengine-ctrl-group button .svmapengine-ctrl-icon { background-image:none; background-color:#3c4043; -webkit-mask:var(--sv-symbol) center/28px 28px no-repeat; mask:var(--sv-symbol) center/28px 28px no-repeat; }
.svmapengine-ctrl-zoom-in { --sv-symbol:url(/static/home/icons/ios/plus.png); }
.svmapengine-ctrl-zoom-out { --sv-symbol:url(/static/home/icons/ios/minus.png); }
.svmapengine-ctrl-geolocate { --sv-symbol:url(/static/home/icons/ios/location.png); }
.svmapengine-ctrl-geolocate.svmapengine-ctrl-geolocate-active { --sv-symbol:url(/static/home/icons/ios/location.fill.png); background:#1a73e8; }
.svmapengine-ctrl-geolocate.svmapengine-ctrl-geolocate-active .svmapengine-ctrl-icon { background-color:#fff; }
.svmapengine-ctrl-group .svmapengine-ctrl-compass .svmapengine-ctrl-icon { background:transparent; -webkit-mask:none; mask:none; position:relative; }
.svmapengine-ctrl-compass .svmapengine-ctrl-icon:before,.svmapengine-ctrl-compass .svmapengine-ctrl-icon:after { content:""; position:absolute; left:calc(50% - 4.5px); width:0; height:0; border-left:4.5px solid transparent; border-right:4.5px solid transparent; }
.svmapengine-ctrl-compass .svmapengine-ctrl-icon:before { top:calc(50% - 12px); border-bottom:12px solid #e03b24; }
.svmapengine-ctrl-compass .svmapengine-ctrl-icon:after { top:50%; border-top:12px solid rgba(60,64,67,.5); }
.sv-route-detail-actions button { display:inline-flex; align-items:center; gap:5px; }
.sv-route-detail-actions button:before,.sv-route-detail-close:before,.sv-route-manager-close:before,.sv-route-row-delete:before,.sv-route-row-icon:before { content:""; display:inline-block; width:22px; height:22px; background:currentColor; -webkit-mask:var(--sv-symbol) center/contain no-repeat; mask:var(--sv-symbol) center/contain no-repeat; }
.sv-route-detail-close,.sv-route-manager-close,.sv-route-row-delete,.sv-route-row-icon { font-size:0; --sv-symbol:url(/static/home/icons/ios/xmark.png); }
.sv-route-row-delete { --sv-symbol:url(/static/home/icons/ios/trash.png); }
.sv-route-row-icon { --sv-symbol:url(/static/home/icons/ios/point.topleft.down.to.point.bottomright.curvepath.png); }
[data-route-detail-show] { --sv-symbol:url(/static/home/icons/ios/location.png); }
[data-route-detail-edit] { --sv-symbol:url(/static/home/icons/ios/pencil.png); }
[data-route-detail-reverse] { --sv-symbol:url(/static/home/icons/ios/arrow.left.arrow.right.png); }
[data-route-detail-save] { --sv-symbol:url(/static/home/icons/ios/checkmark.png); }
[data-route-detail-delete] { --sv-symbol:url(/static/home/icons/ios/trash.png); }
.svmapengine-ctrl-group .svmapengine-ctrl-compass .svmapengine-ctrl-icon { background-image:none !important; }

/* Align the zoom stack with the bottom Map Layers and Route controls. */
.svmapengine-ctrl-bottom-right .svmapengine-ctrl:last-child { margin-bottom:0; }
