:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #252b28;
  background: #f7f7f2;
  font-synthesis: none;
  --blue: #216754;
  --green: #216754;
  --deep: #252b28;
  --soft: #edf2ec;
  --muted: #6d746d;
  --line: #dce0d7;
  --subtle: #f1f3ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: var(--green); }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1[tabindex="-1"]:focus, #current-direction:focus { outline: none; }
button svg { flex: 0 0 auto; width: 20px; height: 20px; }
button { transition: color .12s, border-color .12s, background-color .12s; }
.shell { max-width: 1800px; min-height: 100vh; padding: 0 30px 14px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 40px; height: 68px; border-bottom: 1px solid var(--line); }
.brand-home { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.brand { display: flex; align-items: center; gap: 10px; }
.brandmark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--green); }
.brandmark svg { width: 31px; height: 31px; }
.brand-copy { display: flex; gap: 19px; align-items: baseline; }
.brand-copy strong { font-size: 21px; font-weight: 650; letter-spacing: -.8px; }
.brand-copy small { padding-left: 18px; border-left: 1px solid #d1d5cc; font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.header-nav { display: flex; align-self: stretch; align-items: stretch; margin-right: auto; }
.nav-link { padding: 1px 0 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.nav-link.is-active { border-bottom-color: var(--deep); color: var(--deep); }
.nav-link:hover { color: var(--green); }
.topmeta { display: flex; align-items: center; gap: 16px; margin-left: auto; color: var(--muted); font-size: 12px; min-width: 0; }
.location-chip { padding-right: 16px; border-right: 1px solid var(--line); white-space: nowrap; }
.account-name { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.quiet { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 7px 11px; border: 1px solid #c7cfc3; border-radius: 3px; background: transparent; color: #4d5d50; font-size: 12px; white-space: nowrap; }
.quiet:hover { background: #eaf0e5; border-color: #a7b5a1; }
.back { display: inline-flex; align-items: center; min-height: 32px; border: 0; background: transparent; padding: 0; margin: 0 0 10px; color: var(--muted); font-size: 12px; text-align: left; }
.back:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.connection-state { margin-top: 14px; padding: 11px 14px; border: 1px solid #dfd1b4; background: #faf6e9; color: #755d2d; font-size: 12px; line-height: 1.5; }
.workspace { padding-top: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.breadcrumb button { border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; }
.breadcrumb button:hover { text-decoration: underline; }
.titlebar, .page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
h1 { margin: 0; font-size: 26px; line-height: 1.25; letter-spacing: -.7px; font-weight: 550; }
h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: -.35px; font-weight: 550; }
h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.subtitle { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.eyebrow { margin: 0 0 12px; font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.page-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.steps { display: none; }
.layout { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 25px; align-items: start; }
.layout > * { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.panelpad { padding: 22px; }
.side-panel { min-width: 0; }
.directory-panel { display: flex; flex-direction: column; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.directory-controls { padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.inputlabel { display: block; margin: 0 0 8px; color: #4e594f; font-size: 12px; font-weight: 500; line-height: 1.4; }
.inputlabel > span { font-weight: 400; color: var(--muted); }
.searchwrap { display: flex; align-items: center; min-height: 45px; gap: 10px; padding: 0 12px; border: 1px solid #b9c3b5; border-radius: 3px; background: #fff; }
.searchwrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.searchwrap > svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--muted); }
.searchwrap input { flex: 1; width: 100%; min-width: 0; height: 43px; padding: 0; border: 0; outline: 0; color: var(--deep); background: transparent; font-size: 13px; }
.searchwrap input:focus-visible { outline: 0; }
.searchwrap input::placeholder { color: #81887f; }
.search-clear { display: grid; place-items: center; flex: 0 0 29px; min-height: 36px; margin-right: -5px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.search-clear svg { width: 16px; height: 16px; }
.filters { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 0; margin: 13px 0 0; }
.chip { min-height: 35px; padding: 5px 0 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); background: transparent; font-size: 12px; line-height: 1.35; }
.chip:hover { color: var(--green); }
.chip.on { color: var(--deep); border-bottom-color: var(--green); font-weight: 600; }
.startbox { margin-top: 18px; }
.startbox .inputlabel { margin-bottom: 7px; }
.field { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #c7cfc3; border-radius: 3px; color: #354337; background: #fff; font-size: 13px; line-height: 1.45; }
select.field { padding-right: 27px; }
.startbox .field { border-color: #d1d8ca; background: #f7f8f3; font-size: 12px; }
.fieldrow { margin-bottom: 17px; }
.directory-results { padding-top: 16px; }
.sectionrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sectionrow h2 { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 12px; font-weight: 600; }
.sectionrow small, .sectionrow h2 small { color: var(--muted); font-size: 11px; font-weight: 400; }
.result-tools { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
#result-floor { min-height: 32px; min-width: 61px; padding: 3px 6px; border: 1px solid #d5dbcf; border-radius: 2px; background: #fff; color: #4f5c4f; font-size: 11px; }
.places { display: flex; flex-direction: column; }
.directory-results .places { max-height: calc(100vh - 459px); min-height: 258px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c1cabe transparent; }
.place { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 65px; padding: 11px 4px 11px 0; border: 0; border-bottom: 1px solid #e0e5da; border-radius: 0; color: var(--deep); background: transparent; text-align: left; }
.place:hover { background: #edf2e9; }
.place:last-child { border-bottom: 0; }
.place-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 31px; color: #727e6b; }
.place-icon svg { width: 19px; height: 19px; }
.place-copy { flex: 1; min-width: 0; }
.place-copy b { display: block; font-size: 13px; line-height: 1.4; font-weight: 550; }
.place-copy small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.floorlabel { font-size: 11px; color: var(--muted); padding: 0 3px; font-variant-numeric: tabular-nums; }
.arrow { color: #8d9786; font-size: 19px; line-height: 1; }
.empty { padding: 27px 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty b { display: block; color: #485546; font-weight: 600; }
.empty p { margin: 5px 0 0; }
.empty .btn { margin-top: 15px; }
.smallnote { color: var(--muted); font-size: 11px; line-height: 1.65; }
.map-panel { position: relative; background: #eeeee6; border-color: #d5dacf; }
.maptop { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 19px; border-bottom: 1px solid var(--line); background: #fafbf7; }
.mallname { min-width: 0; }
.mallname b { display: block; color: #343f33; font-size: 14px; font-weight: 600; line-height: 1.4; }
.mallname small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.floors { display: flex; gap: 3px; padding: 3px; border: 1px solid #ccd4c5; border-radius: 3px; background: #fff; }
.floors button { min-width: 40px; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 1px; background: transparent; color: #707b69; font-size: 12px; }
.floors button.on { background: #334b3a; color: #fff; }
.floors button:not(.on):hover { background: #eff3e9; }
.mapwrap { position: relative; overflow: hidden; }
.map-viewport { position: relative; width: 100%; height: clamp(490px, calc(100vh - 319px), 820px); overflow: hidden; background: #e9eae0; }
#mall-scene { width: 100%; height: 100%; }
.map-viewport canvas { display: block; }
.map-tools { position: absolute; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 1px; right: 15px; bottom: 15px; max-width: calc(100% - 30px); padding: 3px; border: 1px solid #cbd3c5; border-radius: 4px; background: #fffffff5; box-shadow: 0 2px 8px #34412d12; }
.map-tools button, .map-tools output { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; min-height: 35px; border: 0; border-radius: 2px; padding: 6px 8px; background: transparent; color: #4a5c42; font-size: 11px; line-height: 1.25; }
.map-tools button:hover { background: #eaf0e4; }
.map-tools button.on, .map-tools button[aria-pressed="true"] { background: #e5eddf; color: #244d32; font-weight: 600; }
.map-tools .icon-button svg { width: 17px; height: 17px; }
.map-tools output { min-width: 42px; font-size: 10px; color: var(--muted); }
.tool-divider { width: 1px; align-self: stretch; background: var(--line); margin: 5px; }
.icon-button { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 7px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #4a5c42; }
.map-floor-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; min-height: 43px; padding: 9px 18px; border-top: 1px solid #d4dacc; background: #fafbf7; color: #62705c; font-size: 11px; line-height: 1.5; }
.map-floor-note span { display: inline-flex; align-items: center; gap: 7px; }
.next-floor-action { min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.maplegend, .sample { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 43px; padding: 11px 16px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: #fff; font-size: 13px; font-weight: 550; line-height: 1.4; text-align: center; }
.btn:hover { background: #174f40; border-color: #174f40; }
.btn.secondary { border-color: #c1cbbb; background: transparent; color: #3c573e; font-weight: 500; }
.btn.secondary:hover { background: #e9f0e2; border-color: #99af91; }
.btn.full { display: flex; width: 100%; }
.btn svg { width: 17px; height: 17px; }
.route-summary { padding: 20px 21px 0; }
.route-options { padding: 0 21px; }
.route-actions { padding: 19px 21px 22px; }
.journey-editor { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; position: relative; padding-right: 34px; margin: 5px 0 19px; }
.endpoint .inputlabel { margin-bottom: 6px; font-size: 11px; }
.endpoint select { min-height: 41px; font-size: 12px; }
.swap-route { position: absolute; right: -5px; top: 45px; width: 31px; min-width: 31px; height: 35px; min-height: 35px; padding: 6px; border: 0; background: transparent; }
.swap-route svg { width: 18px; height: 18px; transform: rotate(90deg); }
.stats { display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 9px; margin: 0 0 17px; padding: 15px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.stats strong { display: block; font-size: 24px; font-weight: 550; letter-spacing: -.5px; line-height: 1.2; }
.stats strong small { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.route-options > h2 { margin-bottom: 5px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; cursor: pointer; font-size: 13px; line-height: 1.45; }
.toggle + .toggle { border-top: 1px solid #e7ebe0; }
.toggle input { appearance: none; flex: 0 0 31px; position: relative; width: 31px; height: 19px; margin: 2px 0 0; border: 1px solid #bec9b6; border-radius: 11px; background: #cad2c4; cursor: pointer; }
.toggle input::after { content: ""; display: block; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.toggle input:checked { background: var(--green); border-color: var(--green); }
.toggle input:checked::after { left: 14px; }
.toggle span { flex: 1; min-width: 0; }
.toggle small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.simulation-label { margin-left: 3px; color: #8b8370; font-size: 9px; font-style: normal; letter-spacing: .01em; }
.route-feedback { margin-top: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: #507048; font-size: 11px; line-height: 1.6; }
.route-feedback > small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.directions-wrap { padding: 0 21px 16px; border-top: 1px solid var(--line); }
.directions-wrap > summary { min-height: 43px; padding-top: 14px; font-size: 12px; color: #4e6447; cursor: pointer; }
.directions-wrap > summary span { float: right; font-size: 11px; color: var(--muted); }
.route-instructions { margin: 12px 0 0; padding: 0; list-style: none; }
.route-instructions li { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; color: #5b6855; font-size: 12px; line-height: 1.6; }
.route-instructions b { display: inline-grid; place-items: center; flex: 0 0 19px; min-height: 19px; border: 1px solid #d1dac9; border-radius: 2px; background: #f5f8f0; color: #7a8773; font-size: 10px; font-weight: 400; }
.directions-wrap .route-instructions { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.directions-wrap .smallnote { margin-bottom: 0; }
.nav-card { margin: 0 0 18px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.nav-card .turn { margin-bottom: 10px; color: var(--green); font-size: 39px; line-height: 1.2; }
.nav-step { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.nav-card h2 { margin: 0; font-size: 23px; line-height: 1.4; font-weight: 500; letter-spacing: -.4px; }
.nav-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-bottom: 20px; }
.nav-metrics > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.nav-metrics > span + span { border-left: 1px solid var(--line); padding-left: 18px; }
.nav-metrics b, .nav-metrics strong { display: block; margin-bottom: 5px; color: var(--deep); font-size: 23px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.progress { overflow: hidden; height: 4px; background: #e0e7d8; }
.progress > span { display: block; height: 100%; background: var(--green); }
.progressmeta { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 20px; font-size: 10px; color: var(--muted); }
.nav-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; }
.nav-actions .btn { padding: 11px 10px; font-size: 12px; }
.nav-position { display: grid; gap: 4px; padding-top: 16px; margin-top: 19px; border-top: 1px solid var(--line); }
.nav-position small { color: var(--muted); font-size: 10px; }
.nav-position p { margin: 0; font-size: 12px; line-height: 1.5; color: #4e6547; }
.demo-note, .nav-preview { color: var(--muted); font-size: 11px; line-height: 1.6; }
.demo-note { margin: 12px 0 14px; }
.nav-preview { margin: 0 0 12px; }
.nav-preview small { display: block; margin-bottom: 3px; font-size: 10px; color: #84907a; }
.restart { min-height: 30px; padding: 0; border: 0; background: transparent; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.restart:hover { background: transparent; color: var(--green); }
.nav-panel .directions-wrap { margin: 18px -22px -22px; padding: 0 22px 17px; }
.notice { padding: 11px 13px; margin: 14px 0; border: 1px solid #dfd2b5; background: #faf7ed; color: #7c683a; font-size: 11px; line-height: 1.6; }
.app-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-notice .quiet { flex: 0 0 auto; color: inherit; border-color: #d9caac; }
.checkcircle { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 21px; border: 1px solid #b6cdb1; border-radius: 50%; color: var(--green); background: #eff5e9; }
.checkcircle svg { width: 21px; height: 21px; }
.arrival-place { font-size: 25px; line-height: 1.35; font-weight: 500; }
.completion, .trip-receipt { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: #58724e; }
.trip-receipt > small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.arrived .sectionrow { margin-top: 22px; }
.arrived .place { min-height: 66px; }
.arrival-actions { display: grid; gap: 9px; margin-top: 23px; }
.authlayout { display: grid; grid-template-columns: minmax(0,1fr) 364px; align-items: center; gap: 74px; max-width: 1100px; margin: 0 auto; padding: 45px 0 35px; }
.authhero h1 { font-size: 35px; line-height: 1.2; max-width: 470px; font-weight: 450; letter-spacing: -1px; }
.authhero > .subtitle { max-width: 420px; margin-top: 18px; font-size: 14px; line-height: 1.75; }
.authhero .mini-map { position: relative; height: 330px; width: 100%; max-width: 610px; margin-top: 28px; overflow: hidden; background: #e9ece2; border: 1px solid #d3d9cb; border-radius: 3px; }
.mini-map svg { display: block; width: 100%; height: 100%; }
.mini-map #mall-scene, .mini-map .auth-scene { height: 100%; }
.auth-caption { display: flex; flex-wrap: wrap; gap: 7px 0; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-caption span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid #c7d1be; }
.authpanel { padding: 26px; background: #fdfefb; border-color: #d6ddcf; }
.authpanel h2 { font-size: 22px; font-weight: 500; }
.authpanel .subtitle { font-size: 12px; }
.auth-tabs { display: flex; margin: 21px 0 23px; border-bottom: 1px solid var(--line); }
.auth-tabs button { flex: 1; min-height: 43px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.auth-tabs button.on { border-bottom-color: var(--green); color: var(--green); font-weight: 600; }
.authpanel .field { min-height: 44px; }
.authpanel .btn { margin-top: 5px; }
.or { display: flex; align-items: center; gap: 12px; margin: 17px 0 11px; font-size: 10px; color: #8c9585; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.authfine { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.password-wrap { display: flex; position: relative; align-items: center; }
.password-wrap .field { padding-right: 55px; }
.password-wrap button { position: absolute; right: 3px; min-height: 36px; padding: 6px 9px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.password-wrap button:hover { background: #edf3e7; }
.error { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #e5c4b9; background: #fcf1ed; color: #9c523f; font-size: 12px; line-height: 1.6; }
.footnote { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 15px; color: #838c7e; font-size: 10px; line-height: 1.6; }
.prototype-info { max-width: 440px; font-size: 10px; line-height: 1.7; }
.prototype-info summary { text-align: right; cursor: pointer; white-space: nowrap; }
.prototype-info summary:hover { color: var(--green); }
.prototype-info p { padding: 12px 14px; margin: 9px 0 0; border: 1px solid var(--line); background: #fff; color: var(--muted); overflow-wrap: anywhere; }
.skip-link { position: absolute; z-index: 30; top: -80px; left: 30px; min-height: 44px; padding: 11px 15px; border: 1px solid var(--green); background: #fff; color: var(--green); font-size: 13px; text-decoration: none; }
.skip-link:focus { top: 10px; }
.loading-screen { display: grid; place-items: center; min-height: 360px; color: var(--muted); font-size: 14px; }
.directory-toggle { display: none; }
.segmented { gap: 3px; padding: 3px; border: 1px solid #cbd4c3; border-radius: 3px; background: #fff; }
.segmented button { min-height: 36px; min-width: 66px; padding: 8px 13px; border: 0; border-radius: 1px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button.on { background: #e8eee1; color: #305a35; font-weight: 600; }
.mobile-only { display: none; }
@media (min-width: 1400px) {
  .layout { grid-template-columns: 326px minmax(0,1fr); gap: 30px; }
  .map-viewport { min-height: 560px; }
}
@media (max-width: 1180px) {
  .shell { padding-right: 23px; padding-left: 23px; }
  .topbar { gap: 28px; }
  .brand-copy { gap: 12px; }
  .brand-copy small { padding-left: 12px; }
  .layout { grid-template-columns: 290px minmax(0,1fr); gap: 20px; }
  .filters { column-gap: 15px; }
  .authlayout { gap: 40px; }
  .map-tools { right: 10px; bottom: 10px; }
}
@media (max-width: 960px) {
  .shell { padding-right: 20px; padding-left: 20px; }
  .topbar { height: 64px; gap: 25px; }
  .brand-copy small { display: none; }
  .titlebar, .page-header { margin-bottom: 17px; }
  .layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .directory-panel { display: contents; }
  .directory-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.6fr); column-gap: 20px; padding-bottom: 17px; }
  .directory-controls > .inputlabel, .directory-controls > .searchwrap, .directory-controls > .filters { grid-column: 1; }
  .directory-controls > .startbox { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; }
  .directory-controls > .filters { margin-top: 8px; }
  .directory-controls .chip { min-height: 34px; padding-top: 5px; }
  .directory-results { padding: 0; }
  .directory-results .places { max-height: none; min-height: 0; overflow: visible; }
  .directory-toggle { display: inline-flex; margin: 0 0 15px; }
  .directory-layout > .map-panel { order: 1; }
  .directory-layout .directory-controls { order: 0; }
  .directory-layout .directory-results { order: 2; }
  .directory-layout[data-view="map"] .directory-results { display: none; }
  .directory-layout[data-view="list"] > .map-panel { display: none; }
  .directory-layout[data-view="list"] .directory-results { order: 1; }
  .directory-layout.is-filtered[data-view="map"] .directory-results { display: block; }
  .map-viewport { height: 510px; min-height: 0; }
  .route-summary { padding: 20px 22px 0; }
  .journey-editor { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; padding-right: 39px; }
  .swap-route { top: 19px; }
  .swap-route svg { transform: none; }
  .route-options { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 25px; padding: 0 22px; }
  .route-options > h2 { grid-column: 1 / -1; }
  .route-options > .toggle + .toggle { border-top: 0; }
  .route-options > .route-feedback, .route-options > .notice { grid-column: 1 / -1; }
  .route-actions { padding: 16px 22px 20px; }
  .stats { margin-bottom: 13px; }
  .nav-card { display: grid; grid-template-columns: 50px 1fr; column-gap: 12px; padding-bottom: 17px; }
  .nav-card .turn { grid-row: 1 / 3; margin-bottom: 0; }
  .nav-card .nav-step { grid-column: 2; }
  .nav-card h2 { grid-column: 2; }
  .nav-metrics { max-width: 420px; }
  .nav-actions { grid-template-columns: 140px minmax(0,1fr); }
  .authlayout { grid-template-columns: minmax(0,1fr) 340px; gap: 30px; }
  .authhero h1 { font-size: 30px; }
  .authhero .mini-map { height: 260px; }
  .authpanel { padding: 23px; }
}
@media (max-width: 640px) {
  .shell { padding: 0 14px 15px; }
  .topbar { height: 60px; gap: 22px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 20px; }
  .brandmark, .brandmark svg { width: 27px; height: 27px; }
  .nav-link { font-size: 12px; }
  .topmeta { gap: 10px; }
  .topmeta .location-chip, .account-name { display: none; }
  .quiet { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  .workspace { padding-top: 18px; }
  h1 { font-size: 24px; }
  .titlebar, .page-header { align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .page-meta { display: none; }
  .subtitle { font-size: 12px; }
  .breadcrumb { margin-bottom: 9px; font-size: 10px; }
  .directory-toggle { margin-bottom: 14px; }
  .directory-controls { display: block; padding-bottom: 17px; }
  .directory-controls .searchwrap { min-height: 46px; }
  .searchwrap input { font-size: 16px; height: 44px; }
  .filters { column-gap: 19px; }
  .directory-controls > .filters { margin-top: 9px; }
  .directory-controls .chip { min-height: 40px; font-size: 12px; }
  .directory-controls > .startbox { margin-top: 15px; }
  .startbox { display: grid; grid-template-columns: 103px minmax(0,1fr); align-items: center; column-gap: 10px; }
  .startbox .inputlabel { margin: 0; font-size: 11px; }
  .startbox .inputlabel span { display: block; margin-top: 2px; }
  .startbox .field { min-height: 42px; padding: 9px 11px; font-size: 12px; }
  .map-viewport { height: 360px; }
  .maptop { padding: 12px 13px; }
  .mallname b { font-size: 13px; }
  .mallname small { font-size: 10px; }
  .floors button { min-width: 37px; min-height: 35px; padding: 6px 9px; }
  .map-floor-note { padding: 9px 13px; font-size: 10px; }
  .map-floor-note > span { max-width: 100%; }
  .next-floor-action { min-height: 32px; }
  .map-tools { right: 9px; bottom: 10px; gap: 0; max-width: calc(100% - 18px); padding: 3px; }
  .map-tools button { min-height: 40px; min-width: 40px; padding: 6px 7px; font-size: 10px; }
  .map-tools .icon-button svg { width: 16px; height: 16px; }
  .map-tools output { min-width: 36px; min-height: 39px; font-size: 9px; }
  .tool-divider { margin: 5px 2px; }
  .directory-results .sectionrow { margin-top: 3px; }
  .place { min-height: 69px; padding-top: 13px; padding-bottom: 13px; gap: 12px; }
  .place-copy b { font-size: 14px; }
  .place-copy small { font-size: 12px; }
  .place-icon { flex-basis: 27px; }
  #result-floor { min-height: 40px; font-size: 12px; }
  .field { font-size: 16px; }
  .btn { min-height: 46px; font-size: 13px; }
  .panelpad { padding: 19px; }
  .route-summary { padding: 17px 18px 0; }
  .journey-editor { grid-template-columns: minmax(0,1fr); padding-right: 37px; gap: 10px; margin-top: 2px; margin-bottom: 16px; }
  .endpoint .inputlabel { margin-bottom: 5px; }
  .endpoint select { min-height: 43px; font-size: 13px; }
  .swap-route { top: 46px; right: -2px; min-height: 43px; }
  .swap-route svg { transform: rotate(90deg); }
  .stats { padding: 14px 0; }
  .stats strong { font-size: 25px; }
  .stats span { font-size: 10px; }
  .route-options { display: block; padding: 0 18px; }
  .route-options > .toggle + .toggle { border-top: 1px solid #e7ebe0; }
  .toggle { padding: 12px 0; }
  .toggle input { width: 34px; height: 21px; flex-basis: 34px; }
  .toggle input::after { width: 15px; height: 15px; }
  .toggle input:checked::after { left: 15px; }
  .toggle small { font-size: 11px; }
  .route-feedback { font-size: 11px; }
  .route-actions { padding: 15px 18px 19px; }
  .directions-wrap { padding-left: 18px; padding-right: 18px; }
  .directions-wrap > summary { min-height: 45px; }
  .nav-card { display: block; }
  .nav-card .turn { margin-bottom: 9px; font-size: 36px; }
  .nav-card h2 { font-size: 22px; }
  .nav-card .nav-step { margin-bottom: 8px; }
  .nav-actions { grid-template-columns: auto minmax(0,1fr); }
  .nav-actions .btn { padding-left: 11px; padding-right: 11px; font-size: 12px; }
  .nav-position small { font-size: 11px; }
  .nav-position p { font-size: 13px; }
  .demo-note, .nav-preview { font-size: 12px; }
  .nav-panel .directions-wrap { margin: 17px -19px -19px; padding: 0 19px 16px; }
  .arrival-place { font-size: 24px; }
  .arrived .place-copy b { font-size: 13px; }
  .arrived .place-copy small { font-size: 11px; }
  .authlayout { grid-template-columns: minmax(0,1fr); gap: 25px; max-width: 420px; padding: 27px 0 15px; }
  .authhero h1 { font-size: 29px; letter-spacing: -.8px; }
  .authhero > .subtitle { max-width: 360px; margin-top: 12px; font-size: 13px; }
  .authhero .mini-map { display: none; }
  .authhero .eyebrow { margin-bottom: 9px; }
  .auth-caption { margin-top: 13px; font-size: 10px; }
  .authpanel { padding: 22px; }
  .authpanel h2 { font-size: 21px; }
  .authpanel .field { font-size: 16px; }
  .footnote { padding-top: 15px; font-size: 9px; }
  .prototype-info { max-width: 100%; font-size: 10px; }
  .prototype-info p { max-width: 350px; }
  .skip-link { left: 14px; }
  .app-notice { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mobile-only { display: block; }
}
@media (max-width: 360px) {
  .shell { padding-left: 10px; padding-right: 10px; }
  .topbar { gap: 15px; }
  .brand { gap: 5px; }
  .brand-copy strong { font-size: 18px; }
  .brandmark, .brandmark svg { width: 25px; height: 25px; }
  .topmeta { gap: 5px; }
  .quiet { font-size: 10px; padding-left: 8px; padding-right: 8px; }
  .filters { column-gap: 15px; }
  .map-viewport { height: 360px; }
  .map-tools button { min-width: 39px; padding: 5px 6px; }
  .map-tools output { min-width: 33px; }
  .nav-actions .btn { padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .authpanel { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Map controls stay separate from the scene labels. */
.map-view-switch { position: absolute; z-index: 5; top: 15px; left: 15px; display: flex; gap: 2px; padding: 3px; border: 1px solid #c9d2c2; border-radius: 4px; background: #fffffff5; box-shadow: 0 2px 8px #34412d0c; }
.map-view-switch button { min-height: 33px; padding: 7px 12px; border: 0; border-radius: 2px; background: transparent; color: #687561; font-size: 11px; }
.map-view-switch button:hover { background: #edf2e7; }
.map-view-switch button.on { color: #2d5336; background: #e6eddf; font-weight: 600; }
.map-gesture-hint { position: absolute; z-index: 4; left: 18px; bottom: 23px; color: #798472; font-size: 10px; pointer-events: none; }
.map-gesture-hint span { margin: 0 4px; color: #a1aa99; }
.position-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.map-note-secondary { color: #89917f; font-size: 10px; }
@media (max-width: 1180px) {
  .map-gesture-hint { left: 14px; bottom: 20px; font-size: 9px; }
}
@media (max-width: 640px) {
  .map-view-switch { top: 10px; left: 10px; }
  .map-view-switch button { min-height: 36px; padding: 7px 10px; font-size: 10px; }
  .map-gesture-hint { left: 13px; bottom: 63px; font-size: 9px; }
  .map-note-secondary { display: none !important; }
}

.test-guide-link{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}.test-guide-link:hover{text-decoration:underline}

.auth-field { margin-bottom: 15px; }
.remember { display: flex; align-items: center; gap: 9px; margin: 2px 0 16px; color: #4e594f; font-size: 12px; line-height: 1.4; cursor: pointer; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.btn:disabled { opacity: .65; cursor: progress; }
.user-chip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topmeta #sign-out, .topmeta #sign-in { margin-left: 6px; }
@media (max-width: 600px) { .user-chip { max-width: 90px; } }
