:root {
  color-scheme: light;
  --page:#edf2ef; --surface:#fff; --soft:#f2f6f3; --ink:#1a302b; --text:#29413a; --muted:#53695e;
  --line:#d9e4de; --green:#12634f; --green-soft:#e0f2e9;
  --action:var(--green); --action-hover:#0c4c3c; --on-action:#fff;
  --selected-ink:#0c4c3c; --selected-line:#b2d6c5; --focus:#4f9e83;
  --gold:#c4a46e; --board:#e5efea; --shadow:0 12px 32px #243d3010;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif; color:var(--ink); background:var(--page);
}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.icon-defs{position:absolute;width:0;height:0;pointer-events:none}
.icon{display:inline-block;width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.topbar{background:#142d2b;color:#f3f6ef;border-bottom:1px solid #304946}
.topbar-inner{position:relative;min-height:89px;max-width:1470px;margin:auto;padding:0 clamp(16px,4vw,58px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.topbar-inner>button:last-child{justify-self:end}
.topbar-inner>button:first-child{justify-self:start}
.header-action,.brand{background:none;color:inherit;border:0;display:flex;align-items:center}
.header-action{gap:9px;border:1px solid #3a554f;padding:9px 12px;border-radius:11px;font-size:.89rem}
.header-action:hover,.brand:hover{background:#203b36}
.brand{padding:7px 10px;gap:11px;border-radius:12px;text-align:start}
.brand-seal{
  position:relative;flex:none;width:43px;aspect-ratio:25 / 33;
  clip-path:polygon(50% 0,65% 1.1%,77% 3.3%,87% 6%,95% 8.7%,100% 11.3%,100% 76%,50% 100%,0 76%,0 11.3%,5% 8.7%,13% 6%,23% 3.3%,35% 1.1%);
}
/* The attachment contains the shield and a separate wordmark. Show its shield next to the live title. */
.brand-seal img{position:absolute;width:320%;max-width:none;height:auto;left:-47%;top:-7.58%}
.brand strong{display:block;font-family:"Traditional Arabic","Segoe UI",Tahoma,sans-serif;font-size:clamp(1.55rem,2.6vw,2.25rem);font-weight:700;line-height:1.02;white-space:nowrap}
.brand small{display:block;color:#b9cec1;margin-top:5px;font-size:.73rem}
.brand-info{height:14px;width:14px;color:#adc9b6}
.shell{max-width:1470px;margin:auto;padding:29px clamp(15px,4vw,58px) 18px}
.page-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:22px}
.breadcrumb{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:.83rem;color:var(--muted)}
.breadcrumb .icon{width:15px;height:15px;color:var(--green)}
h1,h2,p{margin:0}
.page-heading h1{font-size:clamp(1.75rem,2.9vw,2.55rem);font-weight:750;line-height:1.2;letter-spacing:-.024em}
.neutral-button,.plain-button,.primary-button,.pill-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;border-radius:10px;min-height:42px;padding:8px 13px;border:1px solid var(--line)}
.neutral-button{background:var(--surface);color:var(--text)}
.neutral-button:hover,.pill-button:hover{background:var(--soft)}
.primary-button{background:var(--action);color:var(--on-action);border-color:var(--action)}
.primary-button:hover{background:var(--action-hover)}
.plain-button{background:none;border:0;color:var(--green);padding-inline:0}
:dir(rtl) .plain-button .icon{transform:rotate(180deg)}
.workspace{display:grid;grid-template-columns:minmax(286px,330px) minmax(0,1fr);grid-template-areas:"sidebar map";gap:18px;align-items:start}
.sidebar{grid-area:sidebar;display:grid;gap:13px;min-width:0}
.panel,.map-panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);min-width:0}
.panel{padding:15px 16px}
.panel h2{display:flex;align-items:center;gap:9px;font-size:1.06rem;margin-bottom:13px}
.panel h2>.icon{color:var(--green)}
.field{display:flex;background:var(--soft);border:1px solid var(--line);border-radius:10px;align-items:center;gap:7px;padding:0 10px;min-height:44px;color:var(--muted)}
.field input{margin:0;min-width:0;width:100%;border:0;background:transparent;color:var(--ink);padding:9px 0;outline:0!important}
.field:focus-within{outline:2px solid #5ca58e;outline-offset:1px}
.search-panel{padding:12px 14px}
.search-panel h2{margin-bottom:8px;font-size:.94rem}
.search-panel .field{min-height:40px}
.search-panel .field input{padding:7px 0;font-size:.86rem}
.room-picker{margin-top:7px;color:var(--muted);font-size:.76rem}
.room-picker summary{cursor:pointer;width:fit-content;padding:3px 0}
.room-picker select{width:100%;margin-top:4px}
select{appearance:none;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);min-height:38px;padding:7px 8px;padding-inline-end:22px;text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:left 11px center,left 7px center;background-size:4px 4px;background-repeat:no-repeat}
:dir(ltr) select{background-position:right 7px center,right 11px center}
.places-list,.search-results{display:grid;gap:6px}
.place-btn{margin:0;display:flex;align-items:center;gap:9px;width:100%;text-align:start;border:1px solid transparent;background:transparent;color:var(--ink);border-radius:10px;min-height:42px;padding:6px 8px}
.floor-btn:hover,.place-btn:hover{background:var(--soft)}
.floor-switcher{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.72rem;flex:none}
:dir(ltr) .floor-switcher{order:-1}
.floor-list{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.floor-btn{width:32px;height:31px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font-size:.87rem;font-weight:700}
.floor-btn[aria-pressed=true]{background:var(--action);color:var(--on-action);border-color:var(--action)}
.place-icon{display:grid;place-items:center;height:28px;width:28px;border-radius:7px;background:var(--soft);color:var(--green);flex:none;font-weight:700}
.place-caption{font-size:.87rem;flex:1}
.floor-detail{font-size:.75rem;color:var(--muted);white-space:nowrap}
.place-btn{min-height:36px;padding:3px 5px}
.place-icon .icon{width:16px;height:16px}
.place-btn .end-icon{width:13px;color:var(--muted)}
:dir(rtl) .place-btn .end-icon{transform:rotate(180deg)}
.places-panel>.plain-button{min-height:32px;font-size:.84rem;padding-block:5px;margin-top:5px}
.search-results{margin-top:11px;max-height:215px;overflow:auto;border-top:1px solid var(--line);padding-top:6px}
.empty{font-size:.88rem;color:var(--muted);padding:10px 0}
.destination{margin-top:13px;background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:11px}
.destination-top{display:flex;align-items:start;justify-content:space-between;gap:4px}
.destination strong{font-size:1rem}
.destination small{display:block;color:var(--muted);margin-top:4px}
.destination p{color:var(--muted);font-size:.83rem;margin:8px 0;line-height:1.5}
.destination-actions{display:flex;flex-wrap:wrap;gap:6px}
.destination-actions button{font-size:.82rem;padding:5px 8px;min-height:36px}
.destination-actions .icon{width:15px;height:15px}
.inline-close{border:0;background:none;color:var(--muted);padding:1px 2px}
.map-panel{grid-area:map;overflow:hidden}
.map-header{padding:13px 15px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.map-title{display:flex;align-items:center;gap:10px;min-width:0}
.map-title>div{min-width:0}
.map-heading-icon{border-radius:10px;color:var(--green);background:var(--green-soft);height:42px;width:42px;display:grid;place-items:center}
.map-heading-icon .icon{width:23px;height:23px}
.map-header h2{font-size:1.1rem}
.map-header p{font-size:.78rem;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.segmented{padding:3px;display:inline-flex;flex:none;border:1px solid var(--line);border-radius:9px;background:var(--soft);gap:3px}
.segmented button{background:none;border:0;min-height:31px;padding:4px 12px;color:var(--muted);font-weight:650;border-radius:6px;white-space:nowrap}
.segmented button[aria-pressed=true]{background:var(--action);color:var(--on-action)}
.map-title-line{display:flex;align-items:center;gap:8px}
.view-indicator{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;min-width:30px;border-radius:6px;background:var(--green-soft);color:var(--selected-ink);font-size:.73rem;font-weight:800;line-height:1.35;white-space:nowrap}
.map-stage{position:relative;isolation:isolate;background-color:#edf0f5;background-image:linear-gradient(180deg,#f6f8fcf2,#f5f6fb35 70%),linear-gradient(#8a9eb31d 1px,transparent 1px),linear-gradient(90deg,#8a9eb31d 1px,transparent 1px);background-size:auto,24px 24px,24px 24px;height:clamp(488px,61vh,670px);overflow:hidden}
#map-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
#map-canvas:active{cursor:grabbing}
#reference-map{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-stage.reference-map-active :is(#map-canvas,.route-overlay,.map-tags,.view-tools,.compass,.walk-chrome){visibility:hidden;pointer-events:none}
.map-stage.reference-routing{height:clamp(600px,79svh,920px)}
.map-stage.reference-routing .stage-top{display:none}
.route-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.active-route-flow{animation:route-flow .9s linear infinite}
@keyframes route-flow{to{stroke-dashoffset:-16}}
.stage-top{z-index:3}
.stage-top{position:absolute;top:14px;inset-inline:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.map-chip{background:var(--surface);border:1px solid var(--line);color:var(--text);box-shadow:0 4px 10px #17372b10;border-radius:9px;padding:7px 9px;font-size:.81rem;font-weight:700;display:flex;gap:6px;align-items:center;white-space:nowrap}
.map-chip .icon{width:16px;height:16px;color:var(--green)}
.map-chip.stack{pointer-events:auto}
.stage-modes{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.map-chip[aria-pressed=true]{background:var(--action);color:var(--on-action)}
.map-chip[aria-pressed=true] .icon{color:currentColor}
.map-tags{position:absolute;inset:0;pointer-events:none;z-index:2}
.map-tag{background:#fff;color:#273e57;border:1px solid #afbed0;border-radius:6px;padding:2px 6px;font-size:.73rem;font-weight:750;white-space:nowrap;position:absolute;transform:translate(-50%,-95%);box-shadow:0 2px 4px #29435f20;pointer-events:auto}
.map-tag.stair-tag{color:#f5dfae;background:#2f445c;border-color:#586b81;pointer-events:none}
.map-tag.entry{background:#0f5e4b;border-color:#b6e1cd;color:#fff;font-size:.73rem}
.map-tag.active-entry{outline:2px solid #7bcbb7;outline-offset:2px}
.map-tag.main-entry{display:inline-flex;align-items:center;gap:4px;border-color:#e4c691}
.map-tag.main-entry .icon{width:13px;height:13px}
.map-tag.chosen{background:#065a46;color:#fff;border-color:#b5e1c7;z-index:2}
.map-tag:focus-visible{outline-offset:1px}
.view-tools{display:grid;gap:8px;position:absolute;inset-inline-start:13px;bottom:14px;z-index:3}
.view-tools>div{display:grid;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 10px #163d3016}
.view-tools button{border:0;background:none;color:var(--ink);width:39px;height:35px;display:grid;place-items:center}
.view-tools button:hover{color:var(--green);background:var(--soft)}
.view-tools button+button{border-top:1px solid var(--line)}
.compass{position:absolute;inset-inline-end:15px;bottom:13px;display:grid;justify-items:center;gap:2px;color:#365548;font-weight:650;pointer-events:none}
.compass span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface);border:1px solid var(--line);color:var(--green);font-size:15px}
.compass small{font-size:.68rem}
.map-footer{min-height:47px;padding:9px 13px;display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap}
.legend{display:flex;align-items:center;flex-wrap:wrap;column-gap:13px;row-gap:4px}
.legend>span,.gps-status{display:flex;align-items:center;gap:5px;font-size:.74rem;color:var(--muted)}
.legend i,.gps-status i{display:inline-block;width:9px;height:9px;border-radius:3px;flex:none}
.legend-class{background:#c0945e}
.legend-office{background:#8aab9d}
.legend-entry{background:#12634f}
.gps-status i{background:#c3945e;border-radius:50%}
.gps-status.live i{background:#249b76}
.page-footer{margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.77rem;flex-wrap:wrap}
.page-footer span:first-child{display:flex;align-items:center;gap:5px}
.page-footer .icon{width:14px;height:14px}
.route-hud{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:10px 12px 2px;padding:11px 13px}
.route-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.78rem}
.route-head div{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px}
.route-head strong{color:var(--ink);font-size:.84rem}
.route-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px}
.route-destination{display:block;color:var(--muted);font-size:.76rem}
.route-mode{width:fit-content;margin-block:8px 4px}
.route-mode button{min-height:34px;font-size:.81rem}
.route-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-block:8px 4px}
.route-choice button{display:flex;align-items:center;gap:8px;text-align:start;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:9px;min-height:54px}
.route-choice button:hover,.route-choice button[aria-pressed=true]{background:var(--green-soft);border-color:var(--green);color:var(--selected-ink)}
.route-choice .icon{width:19px;height:19px;flex:none;color:var(--green)}
.route-choice small{display:block;font-size:.73rem;line-height:1.35;margin-top:2px;color:var(--muted)}
.route-choice strong{font-size:.87rem}
.route-where{margin:9px 0 0;color:var(--muted);font-size:.80rem}
.route-entry-choices{margin-top:9px}
.route-entry-choices [aria-pressed=true]{background:var(--green-soft);color:var(--selected-ink);border-color:var(--green)}
.route-speed{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.76rem}
.route-speed select{min-height:34px;padding-block:3px}
.route-simulation{display:block;color:var(--muted);font-size:.72rem;margin-top:3px}
.walk-active #map-canvas{cursor:default;touch-action:pan-y;pointer-events:none}
.map-stage.walk-active{background-image:linear-gradient(#edf2f8,#f7f9fc)}
.walk-active .stage-top,.walk-active .view-tools,.walk-active .compass{display:none}
.walk-chrome{position:absolute;z-index:2;inset:auto 12px 12px;display:flex;justify-content:space-between;align-items:center;gap:7px}
.walk-chrome span{background:var(--surface);color:var(--muted);padding:5px 8px;border-radius:7px;font-size:.74rem}
.route-progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:8px;overflow:hidden;background:var(--line);accent-color:var(--green);margin-block:5px 9px}
.route-progress::-webkit-progress-bar{background:var(--line)}
.route-progress::-webkit-progress-value{background:var(--green)}
.route-progress::-moz-progress-bar{background:var(--green)}
.route-start{display:flex;align-items:center;gap:5px;margin-block:5px;color:var(--muted);font-size:.76rem}
.route-start select{min-height:30px;max-width:72%;padding-block:3px}
.route-instruction{font-size:1rem;font-weight:700;line-height:1.35;margin:6px 0 10px;display:flex;gap:8px;align-items:center}
.route-instruction .icon{color:var(--green)}
.step-arrow{font-size:1.42rem;line-height:1;color:var(--green);direction:ltr;flex:none}
.route-actions{display:flex;gap:5px;flex-wrap:wrap}
.route-actions button{min-height:39px;font-size:.81rem;padding:5px 10px}
.route-actions .icon{width:14px;height:14px}
.route-overview{margin-top:8px;color:var(--muted);font-size:.8rem}
.route-overview summary{cursor:pointer;width:fit-content;padding:4px 0}
.route-overview ol{margin:5px 0;padding-inline-start:27px;max-height:180px;overflow:auto}
.route-overview li{padding:4px 5px}
.route-overview li[aria-current]{background:var(--green-soft);color:var(--selected-ink);border-radius:4px;font-weight:700}
.route-overview small{display:block;font-size:.73rem}
dialog{width:min(520px,calc(100% - 26px));max-height:calc(100% - 26px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 60px #0b292768}
dialog::backdrop{background:#102925ab;backdrop-filter:blur(3px)}
dialog[data-mode=guide]{width:min(760px,calc(100% - 26px))}
.modal-heading,.modal-body,.modal-footer{padding:16px 20px}
.modal-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:13px}
.modal-heading h2{font-size:1.35rem}
.modal-body{line-height:1.65;color:var(--text)}
.modal-body p+p{margin-top:10px}
.modal-body ul{margin-block:4px;padding-inline-start:22px}
.guide-movie{margin:0 0 14px}
.guide-movie video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#142d2b;border:1px solid var(--line);border-radius:12px}
.guide-movie figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:7px;color:var(--muted);font-size:.82rem}
.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:6px}
.modal-footer button{font-size:.9rem}
.settings-list{display:grid;gap:14px}
.setting{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.qr-open{text-decoration:none}
.setting button,.setting label{font-size:.9rem}
.switch input{width:18px;height:18px;accent-color:var(--action)}
.qr-body{display:grid;justify-items:center;gap:10px;text-align:center}
.qr-panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px}
.qr-panel canvas{display:block;max-width:100%;height:auto;image-rendering:pixelated}
.qr-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.toast{position:fixed;z-index:12;bottom:16px;left:50%;transform:translateX(-50%);background:#142d2b;color:#fff;padding:9px 14px;border-radius:10px;max-width:calc(100% - 20px);text-align:center;box-shadow:var(--shadow);font-size:.9rem}
html[data-theme=dark]{
  color-scheme:dark;
  --page:#0d1824; --surface:#182735; --soft:#213446; --ink:#f0f6fa;
  --text:#dce8f0; --muted:#aec0cf; --line:#354a5e; --green:#8fdac9;
  --green-soft:#203d46; --selected-ink:#c3f4e9; --selected-line:#527d83;
  --action:#8bdac9; --action-hover:#afe9dc; --on-action:#0c2928; --focus:#a2e6da;
  --board:#101c29; --shadow:0 12px 32px #0309124d;
}
html[data-theme=dark] body{background:radial-gradient(ellipse at top,#1c2c40 0%,var(--page) 65%);min-height:100dvh}
html[data-theme=dark] .topbar{background:#111d2a;color:var(--ink);border-color:#304457}
html[data-theme=dark] .header-action{border-color:#456075;color:var(--text)}
html[data-theme=dark] :is(.header-action,.brand):hover{background:#23374a}
html[data-theme=dark] .brand small{color:var(--muted)}
html[data-theme=dark] .brand-info{color:var(--green)}
html[data-theme=dark] :is(.field,select){border-color:#6b8499}
html[data-theme=dark] .field:focus-within{outline-color:var(--focus)}
html[data-theme=dark] .field input::placeholder{color:var(--muted);opacity:1}
html[data-theme=dark] .map-stage{
  background-color:var(--board);background-image:radial-gradient(ellipse at 50% 47%,#3a597748,transparent 72%),linear-gradient(#9ab8d124 1px,transparent 1px),linear-gradient(90deg,#9ab8d124 1px,transparent 1px);
}
html[data-theme=dark] .map-stage.walk-active{background-image:linear-gradient(#192b3f,#334959)}
html[data-theme=dark] .map-tag{background:#1d3043;color:#eaf4fa;border-color:#6b859b;box-shadow:0 2px 5px #050c14a0}
html[data-theme=dark] .map-tag.entry{background:#1b3c43;color:#c4f4e9;border-color:#679895}
html[data-theme=dark] .map-tag.main-entry{border-color:#e2c298}
html[data-theme=dark] .map-tag.chosen{background:#9de7d6;color:#0b2b28;border-color:#d0f8ef}
html[data-theme=dark] .map-tag.stair-tag{background:#283c50;color:#f5dfae}
html[data-theme=dark] .compass{color:var(--text)}
html[data-theme=dark] .legend-class{background:#b69370}
html[data-theme=dark] .legend-office{background:#8aabc5}
html[data-theme=dark] .legend-entry{background:var(--green)}
html[data-theme=dark] .gps-status i{background:#e0b888}
html[data-theme=dark] .gps-status.live i{background:var(--green)}
html[data-theme=dark] dialog{border-color:#49637a;box-shadow:0 20px 60px #030710bd}
html[data-theme=dark] dialog::backdrop{background:#080f1abb}
html[data-theme=dark] .guide-movie video{background:var(--page)}
html[data-theme=dark] .toast{background:#273e52;color:var(--ink);border:1px solid #547088}
@media(max-width:960px){
  .workspace{grid-template-columns:minmax(254px,286px) minmax(0,1fr);gap:12px}
  .shell{padding-inline:18px}
  .panel{padding-inline:12px}
  .floor-detail{font-size:.72rem}
}
@media(max-width:710px){
  .topbar-inner{min-height:68px;padding-inline:13px}
  .header-action{padding:8px;min-width:37px;justify-content:center}
  .header-action span{display:none}
  .brand{gap:6px;padding:5px}
  .brand strong{font-size:1.46rem}
  .brand-seal{width:34px}
  .brand small{font-size:.65rem;margin-top:3px}
  .brand-info{display:none}
  .shell{padding:12px 11px 14px}
  .page-heading{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .workspace{display:flex;flex-direction:column;gap:11px;align-items:stretch}
  .sidebar{gap:11px}
  .map-panel{scroll-margin-block-start:9px}
  #map-destination .destination{margin:0 9px 9px}
  .map-stage{height:clamp(320px,55vh,480px);height:clamp(320px,55svh,480px)}
  #map-canvas{touch-action:pan-y}
  .stage-top{top:9px;inset-inline:8px}
  .stage-modes .map-chip{padding-inline:6px;font-size:.70rem}
  .view-tools{bottom:8px;inset-inline-start:8px}
  .compass{bottom:8px;inset-inline-end:8px}
  .map-header{padding:9px}
  .map-header h2{font-size:1.01rem}
  .map-header p{font-size:.7rem}
  .map-heading-icon{height:34px;width:34px;flex:none}
  .map-heading-icon .icon{width:18px;height:18px}
  .map-footer{padding:7px 9px}
  .legend{column-gap:8px}
  .panel{padding:12px}
  .floor-btn{width:29px;height:29px}
  .floor-switcher>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .route-hud{margin-inline:7px;padding-inline:9px}
  .route-choice button{gap:5px;padding:7px}
  .route-choice button .icon{width:15px;height:15px}
  .map-panel:has(.route-hud:not([hidden])) #map-destination{display:none}
  .map-panel:has(.route-hud:not([hidden])) .map-stage{height:clamp(275px,45svh,400px)}
  .map-stage.reference-routing{height:clamp(570px,81svh,850px)}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.active-route-flow{animation:none}}

