:root{--overview-route-width:2px;--guidance-route-width:8px;--current-route-color:#b47712;--paper:#f7f5ef;--surface:#fffefa;--ink:#22372e;--muted:#737f73;--green:#284f3d;--soft:#e8eee4;--line:#dfe4d8;--gold:#ae8960;--danger:#9e4939;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--app-height:100dvh;--composer-height:104px}*{box-sizing:border-box}html,body{margin:0;overflow:hidden;height:100%;background:#eaece5;color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button,textarea,input,summary{-webkit-tap-highlight-color:transparent}:where(button,textarea,input,summary,[tabindex]):focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}button:hover:not(:disabled){filter:brightness(.96)}svg{display:block}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#conversation-shell{position:relative;display:flex;flex-direction:column;max-width:760px;height:var(--app-height);margin:auto;background:var(--paper);overflow:hidden}.conversation-header{flex:none;min-height:80px;padding:16px 24px;padding-top:calc(16px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.identity{display:flex;gap:12px;align-items:center;min-width:0}.brand-mark{flex:none;border:1px solid var(--green);border-radius:12px 12px 3px 12px;width:42px;height:42px;display:grid;place-items:center;font-family:var(--font-display);font-size:24px;color:var(--green)}.identity h1{font-size:17px;font-weight:600;margin:0;line-height:1.4}.identity p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.5}.header-actions{display:flex;gap:8px}.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:14px;background:transparent;color:var(--green)}#timeline{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:28px 32px 24px;outline:none}.message{max-width:100%;margin:0 0 16px;scroll-margin-bottom:24px;min-width:0}.message[data-role=user]{display:flex;justify-content:flex-end;margin-top:24px}.message[data-role=user] .bubble{background:var(--green);color:#fffefa;border-radius:18px 18px 4px 18px;max-width:86%;padding:13px 17px}.message[data-role=assistant]>.bubble{padding:0 2px;max-width:95%}.message-text{font-size:16px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere;margin:0}.message[data-role=system]{text-align:center;font-size:12px;color:var(--muted);margin:16px 0}.assistant-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-bottom:7px}.assistant-label:before{content:'';width:5px;height:5px;background:var(--gold);border-radius:50%}.welcome-title{font-family:var(--font-display);font-size:30px;font-weight:500;letter-spacing:-.025em;margin:6px 0 16px;line-height:1.35}.quick-replies{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}.chip{min-height:44px;border:1px solid #cbd7c4;background:#fafcf5;color:var(--green);padding:8px 15px;border-radius:999px;font-size:14px;line-height:1.5}.attachment{border:1px solid var(--line);border-radius:18px;background:var(--surface);margin:14px 0 0;padding:20px;min-width:0;overflow:hidden}.attachment h2,.attachment h3{font-size:17px;font-weight:600;margin:0 0 10px;line-height:1.55;overflow-wrap:anywhere}.attachment p{font-size:14px;line-height:1.7;margin:0 0 12px;color:#667561;white-space:pre-line;overflow-wrap:anywhere}.attachment .eyebrow{font-size:12px;letter-spacing:.06em;color:var(--muted);margin-bottom:6px}.card-metadata{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 12px;color:#65755b;font-size:14px}.card-metadata strong{font-size:18px;font-weight:600;color:var(--green)}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.card-actions>button{flex:1;min-width:120px}.primary,.secondary,.quiet-button,.text-button{min-height:44px;border-radius:14px;padding:10px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:15px;line-height:1.5}.primary{border:1px solid var(--green);background:var(--green);color:#fffefa;font-weight:550}.secondary{border:1px solid #ced9c6;background:#f6f9f1;color:var(--green)}.quiet-button{border:1px solid var(--line);background:transparent;color:var(--green);font-size:14px}.text-button{padding:8px 0;border:0;background:transparent;color:#537345;font-size:14px}.wide{width:100%}.receipt{font-size:14px;color:#72806b;padding:12px 0 0}.receipt:before{content:'✓ ';color:#779867}.receipt.old:before{content:'— ';color:#9d9f93}.foldout{margin-top:13px;color:#6d7c63}.foldout summary,#map-stops summary{cursor:pointer;font-size:14px;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}.foldout summary:before,#map-stops summary:before{content:'＋';font-size:18px;color:#819379}.foldout[open] summary:before,#map-stops[open] summary:before{content:'−'}.foldout summary::-webkit-details-marker,#map-stops summary::-webkit-details-marker{display:none}.foldout p{font-size:16px;line-height:1.8;color:#52694e}.foldout ol{padding-left:23px;font-size:14px;line-height:1.8}.foldout li{margin:8px 0}.route-stops small{display:block;font-size:12px;color:#829176}.route-stops button{background:none;border:0;color:inherit;padding:4px;text-align:left;min-height:44px}.route-notes{font-size:12px!important;line-height:1.6!important;color:#89917f!important;border-top:1px solid #e7ecdf;padding-top:12px;margin-top:8px!important}.arrival-card{border-left:3px solid #acc39b}.arrival-check{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:#78876b;margin-top:12px}.arrival-check input{flex:none;accent-color:var(--green);width:17px;height:17px;margin-top:3px}.guidance-steps{font-size:14px;line-height:1.8;padding-left:24px;color:#5d7052}.audio-row{display:flex;gap:12px;align-items:center;padding:13px;background:#eff3e8;border-radius:14px;margin:15px 0 0}.audio-toggle{flex:none;border:0;border-radius:50%;width:46px;height:46px;color:#fff;background:var(--green);display:grid;place-items:center;font-size:18px}.audio-meta{min-width:0;flex:1}.audio-status{font-size:14px;font-weight:550;display:block}.audio-caption{font-size:12px;color:#879678;display:block;margin-top:4px}.audio-progress-track{height:3px;background:#dbe4d1;border-radius:2px;margin-top:8px;overflow:hidden}.audio-progress{display:block;width:0;height:100%;background:#91aa81}.audio-rate{border:0;background:transparent;color:#6f855b;font-size:14px;min-height:44px;max-width:66px}.playback-error,.error-copy{font-size:14px!important;color:var(--danger)!important;margin-top:12px!important}.narration-section{border-top:1px solid #e4e9dc;padding:17px 0 8px}.narration-section h3{font-size:16px;margin:0 0 7px}.narration-section .where{font-size:14px;color:#7e845f}.source-list{padding:0;list-style:none}.source-list li{border-left:2px solid #dce5d1;padding-left:12px;margin:16px 0}.source-list strong{font-size:14px}.source-list p{font-size:14px;line-height:1.8;white-space:pre-line}.verification-note{font-size:12px!important;color:#8b7859!important}.question-target{border-top:1px solid #e3e8dc;padding:16px 0 2px}.question-target h3{font-size:16px;margin:0 0 5px}.target-actions{display:flex;gap:8px;flex-wrap:wrap}.target-actions button{font-size:14px;padding:8px 12px;min-height:44px}.location-search{width:100%;border:1px solid #cad8c1;background:#fafcf6;border-radius:12px;padding:12px 14px;font-size:16px;min-height:48px;color:var(--ink)}.location-results{max-height:310px;overflow:auto;overscroll-behavior:contain;margin-top:12px}.location-option{margin-bottom:8px}.location-choice{display:block;width:100%;min-height:48px;text-align:left;border:1px solid #e0e8d7;border-radius:12px;padding:11px 13px;background:#fbfdf7;color:var(--ink);font-size:14px}.location-choice.selected{border-color:#91a77e;background:#edf3e5}.location-choice small{font-size:12px;color:#839175;display:block;margin-top:4px}.location-confirm{padding:9px 0}.location-confirm p{font-size:12px;margin-bottom:8px}.inline-error{border-left:3px solid #c5917b;background:#fff8f1}.loading-message{padding:16px 0;color:#7a896f;font-size:14px;display:flex;align-items:center;gap:9px}.loading-dot{width:8px;height:8px;border-radius:50%;background:#9cad8e;display:inline-block;animation:pulse 1.1s ease-in-out infinite}@keyframes pulse{50%{opacity:.3}}#composer{flex:none;padding:12px 24px;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);position:relative;z-index:2}.composer-row{display:flex;align-items:flex-end;gap:8px;max-width:100%}#message-input{display:block;resize:none;flex:1;min-width:0;min-height:48px;max-height:104px;overflow-y:auto;border:1px solid #cbd5c2;border-radius:16px;background:var(--surface);color:var(--ink);font-size:16px;line-height:24px;padding:11px 14px}#message-input::placeholder{color:#95a08c}.send-button{height:48px;width:48px;flex:none;border:0;border-radius:16px;background:var(--green);color:white;display:grid;place-items:center}.send-button[data-mode=stop]{background:#63765a}.composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;color:#8c9682;font-size:12px;line-height:18px}.composer-foot button{border:0;background:none;color:#6b7f5f;font-size:12px;min-height:26px;padding:0 2px}.latest-message{position:absolute;z-index:3;bottom:calc(var(--composer-height) + 14px);left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #c8d5bd;border-radius:999px;min-height:44px;padding:10px 18px;background:#fffefa;color:var(--green);box-shadow:0 8px 24px #27423012;font-size:14px}.toast{position:fixed;z-index:1000;bottom:calc(var(--composer-height) + 18px);left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:12px 18px;border-radius:14px;background:#284f3df5;color:#fffefa;font-size:14px}dialog{border:1px solid #d1dcc5;border-radius:20px;padding:0;background:var(--paper);color:var(--ink);max-width:min(720px,94vw);width:680px;max-height:90dvh;overflow:hidden;box-shadow:0 8px 24px #18302220}dialog::backdrop{background:#26382fc0;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:18px;margin:0;line-height:1.5}.dialog-header p{font-size:12px;color:var(--muted);margin:3px 0 0}.map-body{padding:18px 24px 24px;overflow-y:auto;max-height:calc(90dvh - 80px)}.map-context{font-size:14px;line-height:1.8;margin-bottom:12px;white-space:pre-line}.map-controls{display:flex;gap:8px;margin:10px 0}.conversation-map{height:380px;border:1px solid #d6dfcc;border-radius:16px;background:#edf0e6;overflow:hidden;padding:12px}.venue-map{height:100%;width:100%;display:block;overflow:visible}.venue-floor{fill:#fffefa;stroke:#c4caba;stroke-width:.12}.fixture{stroke-width:.055;stroke:#b6bdae}.fixture.wall{fill:#aeb7a1;stroke:#9ba58e}.fixture.case{fill:#c5d7d0;stroke:#96b4a7}.fixture.model{fill:#d7be96;stroke:#ad956f}.fixture.panel{fill:#d4cebd;stroke:#bdb49e}.selected-route{fill:none;stroke:#3d7250;stroke-linejoin:round;stroke-linecap:round}.route-halo{fill:none;stroke:#fff;stroke-linejoin:round;stroke-linecap:round;opacity:.8}.stop-marker{cursor:pointer;outline:none}.stop-marker .marker-halo{fill:#fff;opacity:.9;stroke:none}.stop-marker [data-route-marker=stop]{fill:var(--green);stroke:#fff;stroke-width:.055}.stop-marker text{fill:#fff;text-anchor:middle;font-family:var(--font);font-weight:600;pointer-events:none}.stop-marker:hover [data-route-marker=stop],.stop-marker:focus [data-route-marker=stop],.stop-marker.active [data-route-marker=stop]{fill:#af8249}.stop-marker.active .marker-halo{fill:#e7c997}.stop-marker.visited [data-route-marker=stop]{fill:#91aa91}.group-dot{fill:#d3b681;stroke:#fff;stroke-width:.05}.terminal circle{fill:#fff;stroke:#608463;stroke-width:.14}.terminal text{fill:#516345;paint-order:stroke;stroke:#f1f2e9;stroke-width:.17;stroke-linejoin:round}.terminal.exit circle{fill:#9aa18b;stroke:#fff}.view-direction{stroke:#b89055;stroke-width:.055;stroke-dasharray:.12 .11;opacity:.7;pointer-events:none}.map-center-label text{fill:#939e88}.map-legend{display:flex;gap:16px;font-size:12px;color:#738364;margin:12px 0}.map-legend span{display:flex;align-items:center;gap:7px}.map-legend i{display:inline-block}.legend-route{width:18px;height:2px;background:#3d7250}.legend-case{width:12px;height:9px;background:#c5d7d0;border:1px solid #96b4a7}.legend-model{width:12px;height:9px;background:#d7be96;border:1px solid #ad956f}.map-note{font-size:12px;color:#839177;line-height:1.6}#map-stop-list{font-size:14px;line-height:1.8;padding-left:24px}#map-stop-list button{border:0;background:none;color:var(--green);min-height:44px;text-align:left;padding:6px}.map-body>.primary{margin-top:20px}.small-dialog{max-width:400px}.menu-body{padding:20px}.menu-body button{margin-bottom:12px}.menu-body p{font-size:14px;color:var(--muted);margin:8px 0 0}
@media(max-width:600px){.conversation-header{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));min-height:72px}.brand-mark{height:36px;width:36px;font-size:22px}.identity{gap:9px}.identity h1{font-size:16px}.identity p{font-size:12px;max-width:210px}.header-actions{gap:4px}.header-actions .icon-button{min-width:40px;min-height:44px;padding:9px}.welcome-title{font-size:28px}#timeline{padding:24px 16px 20px}.attachment{padding:16px}.message[data-role=assistant]>.bubble{max-width:100%}.message[data-role=user] .bubble{max-width:90%;padding:12px 15px}.card-actions>button{min-width:110px;font-size:15px}.chip{padding:8px 13px}#composer{padding:10px 12px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.composer-foot{gap:6px;letter-spacing:-.02em}dialog#map-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}.dialog-header{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top))}.map-body{padding:16px;max-height:calc(100dvh - 74px - env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}.conversation-map{height:300px;padding:10px}.small-dialog{max-width:94vw}.audio-row{gap:9px;padding:11px}.audio-toggle{width:44px;height:44px}.audio-rate{max-width:62px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.loading-dot{animation:none}}

.marker-hit-area{fill:transparent;stroke:none;pointer-events:all}.selected-route{stroke-width:var(--overview-route-width);vector-effect:non-scaling-stroke}.route-halo{stroke-width:calc(var(--overview-route-width) + 2px);vector-effect:non-scaling-stroke}.stop-marker [data-route-marker=stop]{stroke-width:1px;vector-effect:non-scaling-stroke}
.opening-card{margin-top:10px}.opening-card fieldset{border:0;padding:0;margin:0;min-width:0}.opening-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px}.opening-grid label,.opening-extra{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:14px;font-weight:550}.opening-grid select,.opening-extra textarea,.opening-number{width:100%;min-width:0;border:1px solid #cbd5c2;border-radius:12px;background:#fafcf6;color:var(--ink);font-size:16px;font-weight:400}.opening-grid select{min-height:46px;padding:9px 10px}.opening-number{display:flex;align-items:center;padding-right:12px;gap:6px}.opening-number input{width:100%;min-width:0;height:44px;border:0;background:transparent;padding:9px 10px;color:var(--ink);font-size:16px;border-radius:12px}.opening-number>span{flex:none;font-size:13px;color:var(--muted)}.opening-extra textarea{resize:vertical;min-height:86px;max-height:180px;line-height:1.6;padding:10px 12px}.opening-extra textarea::placeholder,.opening-number input::placeholder{color:#8b9681}.opening-card .opening-hint{font-size:12px;margin:8px 0 14px;line-height:1.6;color:var(--muted)}.opening-card .opening-intro{margin-bottom:16px}.opening-card .primary{margin-top:16px}.opening-card .opening-error{font-size:14px;color:var(--danger);margin:10px 0 0}.opening-receipt .receipt{padding-top:0}.opening-grid select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:420px){.opening-grid{gap:12px 10px}.opening-grid select{padding-left:8px;padding-right:5px}.opening-card .opening-intro{font-size:14px}}

.model-caption{font-size:12px;color:#7b8970;margin:-7px 0 18px;letter-spacing:.02em}.ai-receipt-label{font-size:12px;color:#7d8c72;border-left:1px solid #cfdac7;padding-left:8px;margin-left:2px}.composer-foot>span{min-width:0;overflow-wrap:anywhere}
.route-stop-point circle{fill:var(--green);stroke:#fff;stroke-width:1px;vector-effect:non-scaling-stroke}.route-stop-point.active circle{fill:#ad7c3a}.route-stop-point.visited circle{fill:#91aa91}.number-badge{fill:var(--green);stroke:#fff;stroke-width:1.7px;vector-effect:non-scaling-stroke}.stop-marker.active .number-badge{fill:#a27c42}.stop-marker.visited .number-badge{fill:#7d947a}.stop-marker:hover .number-badge,.stop-marker:focus .number-badge{stroke:#b59c6a;stroke-width:2.4px}.stop-marker text.stop-number{font-weight:600;pointer-events:none;letter-spacing:0}.marker-leader{fill:none;stroke:#6f8965;stroke-width:1px;vector-effect:non-scaling-stroke;pointer-events:none}.map-numbering-note{font-size:12px;color:#718369;line-height:1.7;margin:11px 0 0}

.route-stops .route-exhibit{margin:0 0 14px;overflow-wrap:anywhere}.route-stops .route-exhibit:last-child{margin-bottom:0}

.guidance-map{margin:14px 0 18px}.guidance-map svg{display:block;width:100%;height:260px;background:#eef1e7;border:1px solid var(--line);border-radius:16px;overflow:hidden}.guidance-direction{fill:none;stroke:#284f3d;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.guidance-pin circle{fill:var(--green);stroke:#fffefa;stroke-width:2px;vector-effect:non-scaling-stroke}.guidance-pin.origin circle{fill:var(--gold)}.guidance-pin text{fill:#fffefa;stroke:none;font-weight:650}.guidance-map figcaption{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;color:var(--muted);font-size:12px}.guidance-map figcaption span{display:flex;align-items:center;gap:6px}.guidance-map figcaption i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold)}.guidance-map figcaption .guidance-destination-key{background:var(--green)}.route-map-unavailable{font-size:13px;color:var(--muted)}
.panel-neighbors{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:stretch;gap:8px;padding:14px 10px;background:#eef1e7;border:1px solid var(--line);border-radius:16px}.adjacent-panel{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:14px 10px;border:1px solid #d5ddce;border-radius:12px;background:var(--surface)}.adjacent-panel span{font-size:12px;color:var(--muted)}.adjacent-panel strong{font-size:14px;line-height:1.6;font-weight:550;overflow-wrap:anywhere}.adjacent-panel.destination{border-color:var(--green);background:var(--green);color:var(--surface)}.adjacent-panel.destination span{color:#dce8df}.adjacent-panel-arrow{align-self:center;text-align:center;font-size:26px;color:var(--green);line-height:1}

.message-voice{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:12px;color:var(--muted);font-size:12px}.message-voice-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid #d5decd;border-radius:20px;background:#f4f7ee;color:var(--green);padding:7px 12px;min-height:38px;font-size:13px}.message-voice-icon{flex:none;display:block;width:16px;height:18px;background:currentColor;-webkit-mask:url('/assets/figma/01977.svg') center/contain no-repeat;mask:url('/assets/figma/01977.svg') center/contain no-repeat}.message-voice:is([data-state="playing"],[data-state="loading"]) .message-voice-icon{-webkit-mask:none;mask:none;background:linear-gradient(to right,currentColor 0 3px,transparent 3px 8px,currentColor 8px 11px);width:11px;height:15px;margin:0 2.5px}.message-voice-error{flex-basis:100%;margin:2px 0 0;color:var(--danger);font-size:12px}

/* Generation duration stays beside the active status on small screens. */
.generation-wait-note{margin:-4px 0 14px;color:var(--muted);font-size:13px;line-height:1.65}
.loading-message:has(.generation-elapsed){display:flex;align-items:center;gap:8px}.generation-copy{min-width:0;flex:1}.generation-elapsed{flex:none;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);padding:2px 7px;border-radius:8px;background:var(--soft)}

/* Route metrics share one baseline, numeric style and nonbreaking groups. */
.card-metadata{align-items:baseline;column-gap:16px;row-gap:8px}.card-metadata>span{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.4}.card-metadata strong{line-height:inherit;font-variant-numeric:tabular-nums}

/* Authored viewing rays are distinct from solid walking paths and badge leaders. */
.view-direction,.view-arrow{fill:none;stroke:#a66c25;stroke-width:1.6px;opacity:1;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.view-direction{stroke-dasharray:4px 3px}.view-arrow{stroke-dasharray:none}.map-legend{flex-wrap:wrap;gap:8px 14px}.legend-view{display:inline-block;width:19px;height:0!important;border-top:2px dashed #a66c25;position:relative;vertical-align:middle}.legend-view:after{content:"";position:absolute;right:0;top:-4px;width:5px;height:5px;border-top:2px solid #a66c25;border-right:2px solid #a66c25;transform:rotate(45deg)}

.narration-transcript{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.85;color:var(--ink);margin:0 0 18px}

.map-controls button[aria-pressed="true"]{background:var(--green);color:var(--surface);border-color:var(--green)}
#map-stop-list{list-style:none;margin:12px 0 0;padding:0}
#map-stop-list li+li{border-top:1px solid var(--line)}
#map-stop-list .map-stop-button{width:100%;display:flex;align-items:flex-start;gap:12px;padding:15px 4px;text-align:left;line-height:1.65}
.map-stop-number{flex:none;display:grid;place-items:center;width:25px;height:25px;margin-top:2px;border-radius:50%;background:var(--green);color:var(--surface);font-size:12px;font-variant-numeric:tabular-nums}
.map-stop-content{flex:1;min-width:0}.map-stop-group{display:block}.map-stop-group+.map-stop-group{margin-top:8px}.map-stop-site{display:block;font-size:12px;font-weight:600;color:#738364;margin:4px 0 0}.map-stop-names{display:block;font-size:14px;color:var(--ink);overflow-wrap:anywhere}

.route-introduction .message-text{margin:0 0 16px;line-height:1.85}.route-introduction .message-text:last-child{margin-bottom:0}

#timeline{overflow-anchor:none}#timeline::after{content:"";display:block;height:var(--conversation-end-space,0px);pointer-events:none}

#conversation-shell,#app-frame{overflow:clip}

.part-floors{pointer-events:none}.part-room{stroke:none;fill-opacity:.82}
.map-parts-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 18px}.part-legend-item{display:flex;width:100%;min-height:56px;gap:8px;align-items:center;text-align:left;color:inherit;border:1px solid transparent;border-radius:10px;padding:7px;background:color-mix(in srgb,var(--part-fill) 48%,transparent)}.part-legend-item.selected{border-color:var(--part-ink)}.part-legend-item i{width:12px;height:12px;border-radius:4px;background:var(--part-fill);border:1px solid var(--part-ink);flex:none}.part-legend-item strong{font-size:12px;color:var(--part-ink);display:block}.part-legend-item small{font-size:11px;color:var(--muted);display:block}.part-leg-caption{flex-basis:100%;font-weight:600;color:var(--green)}

.narration-transcript{white-space:normal;display:flex;flex-direction:column;gap:16px}.narration-transcript>p{margin:0;font-size:inherit;line-height:inherit;color:inherit;white-space:pre-wrap}

.message-paragraphs{display:flex;flex-direction:column;gap:16px}.message-paragraphs>.message-text{margin:0;line-height:1.85}

.source-terms{margin:12px 0 0;padding-left:22px;color:var(--muted)}.source-terms li{font-size:13px;line-height:1.65;margin:8px 0;overflow-wrap:anywhere}

/* Keep walking directions and the local map together in the first screen. */
.guidance-instructions{height:clamp(100px,calc(var(--timeline-height,600px) * .28),200px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#9aaa92 transparent;scrollbar-gutter:stable;padding:14px 12px 14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);-webkit-overflow-scrolling:touch}
.message[data-message-type="guidance"] .attachment{padding:14px;margin-top:12px}
.message[data-message-type="guidance"] .guidance-map{margin:10px 0 12px}
.message[data-message-type="guidance"] .guidance-map svg{height:clamp(140px,calc(var(--timeline-height,600px) * .4),250px)}

.narration-media{margin:14px 0 20px}.exhibit-photo-button{display:grid;place-items:center;width:100%;height:240px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#f1f2eb;overflow:hidden;cursor:zoom-in}.exhibit-photo-window{display:block;position:relative;width:min(100%,calc(220px * var(--photo-ratio)));aspect-ratio:var(--photo-ratio);overflow:hidden}.exhibit-photo-window .exhibit-photo{position:absolute;left:var(--photo-left);top:var(--photo-top);width:var(--photo-width);height:var(--photo-height);max-width:none;object-fit:fill}.narration-media figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;color:var(--muted)}.photo-zoom-hint{flex:none;font-size:11px}.exhibit-photo-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:8px}.exhibit-photo-controls .quiet-button{padding:4px 16px;font-size:22px}.exhibit-photo-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.exhibit-image-dialog{width:min(94vw,900px);max-width:900px;max-height:92dvh;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--paper)}#exhibit-image-content{display:grid;place-items:center;padding:16px;overflow:auto}#exhibit-image-content .exhibit-photo-window{width:min(100%,calc((80dvh - 100px) * var(--photo-ratio)))}

.guidance-target-area{fill:rgba(36,78,60,.08);stroke:var(--green,#284f40);stroke-width:2;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;pointer-events:none}

.visit-recap{padding:22px!important;background:#fffefa;border-color:#c9d7c1;overflow:hidden}.recap-heading{padding-bottom:18px;border-bottom:1px solid #e2e8db}.recap-date{font-size:12px;color:#7a886d;letter-spacing:.06em}.recap-heading h2{font-size:24px;margin:8px 0 6px;color:var(--green);line-height:1.3}.recap-heading p{font-size:14px;margin:0;color:#728069;line-height:1.7}.recap-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.recap-metric{background:#f0f3e9;border-radius:13px;padding:15px 12px;min-width:0}.recap-metric:nth-child(2){background:#eaf1ed}.recap-metric dt{font-size:12px;color:#768268;margin-bottom:8px}.recap-metric dd{margin:0;display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;color:var(--green)}.recap-metric strong{font-size:26px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.recap-metric dd>span{font-size:12px;color:#7c896f}.recap-metric:nth-child(n+3) strong{font-size:21px}.recap-sites h3{font-size:14px!important;margin:20px 0 11px!important}.recap-sites ul{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}.recap-sites li{border:1px solid #dce4d3;border-radius:9px;padding:6px 10px;background:#fafbf5;font-size:13px;color:#5b7154;line-height:1.5}.recap-sites p{font-size:13px;color:#7d8a73}.recap-stops{margin:20px 0 0;border-top:1px solid #e2e8db;padding-top:14px}.recap-stops summary{font-size:14px;color:var(--green);min-height:32px;cursor:pointer}.recap-stops summary span{float:right;font-size:12px;color:#7b896f}.recap-stops ol{padding-left:21px;margin:12px 0 0}.recap-stops li{padding:7px 0 9px;font-size:14px;line-height:1.6}.recap-stops small{display:block;color:#7e8b73;font-size:12px}.recap-note{font-size:11px!important;line-height:1.7!important;color:#8b947f!important;margin:16px 0!important}.visit-recap>.primary{margin-top:2px;min-height:46px;width:100%}@media(max-width:360px){.visit-recap{padding:16px!important}.recap-metric{padding:12px 10px}.recap-metric:nth-child(n+3) strong{font-size:19px}}

.exhibit-photo-crop{position:absolute;left:50%;top:50%;display:block;width:var(--photo-inner-width,100%);height:var(--photo-inner-height,100%);overflow:hidden;transform:translate(-50%,-50%) rotate(var(--photo-rotation,0deg));transform-origin:center}
.photo-source-fill .exhibit-photo-crop{overflow:visible}

/* The expanded leg uses the same SVG, coordinates and legend as its chat card. */
.conversation-map.guidance-leg-view{height:auto;padding:0;border:0;background:transparent;overflow:visible}
.guidance-leg-view .guidance-map{margin:0}
.guidance-leg-view .guidance-map svg{height:min(50dvh,440px)}

.voice-input-button{height:48px;width:44px;flex:none;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--green);display:grid;place-items:center}
.voice-input-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.voice-input-button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.voice-input-button[aria-pressed=true] svg{fill:currentColor;stroke:none}
.voice-input-status{margin:7px 2px 0;font-size:12px;line-height:1.6;color:var(--green)}
.voice-input-status[data-state=error],.voice-input-status[data-state=unsupported]{color:var(--danger)}

.target-preview-media{margin:12px 0 14px}.target-preview-media figcaption{margin-top:6px;font-size:12px;color:var(--muted)}.target-preview-media .exhibit-photo-button{height:180px}
.target-preview-media .exhibit-photo-window{width:min(100%,calc(160px * var(--photo-ratio)))}

.tour-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.tour-photo-tile{margin:0;min-width:0}
.tour-photo-tile .exhibit-photo-button{height:100px;padding:6px;border-radius:10px}
.tour-photo-tile .exhibit-photo-window{width:min(100%,calc(86px * var(--photo-ratio)))}
.tour-photo-tile figcaption{margin-top:5px;font-size:11px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.tour-photo-grid:has(>.tour-photo-tile:only-child){grid-template-columns:minmax(0,1fr)}
.tour-photo-grid:has(>.tour-photo-tile:only-child) .exhibit-photo-button{height:150px}
.tour-photo-grid:has(>.tour-photo-tile:only-child) .exhibit-photo-window{width:min(100%,calc(136px * var(--photo-ratio)))}
.tour-photo-grid:has(>.tour-photo-tile:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.destination-photos{margin:12px 0 16px}
.arrival-carrier-photos{display:grid;gap:12px;margin-top:12px}
.destination-photos .arrival-carrier-photos .exhibit-photo-button{height:auto;padding:6px;border-radius:10px}
.destination-photos .arrival-carrier-photos .exhibit-photo-window{width:min(100%,calc(300px * var(--photo-ratio)))}
.photo-section-label{margin:0!important;font-size:12px!important;color:var(--muted)!important}
.route-photo-grid{margin:12px 0 8px}
.recap-photos h3{font-size:14px!important;margin:20px 0 12px!important}
.recap-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.recap-photo-grid .exhibit-photo-button{height:125px}
.recap-photo-grid .exhibit-photo-window{width:min(100%,calc(111px * var(--photo-ratio)))}
.photo-follow-button{display:block;margin:8px auto 0;font-size:12px}
.photo-perspective .exhibit-photo-crop{left:0;top:0;width:100%;height:100%;transform:none;transform-origin:0 0}
@media(max-width:360px){.tour-photo-grid{gap:6px}.tour-photo-tile .exhibit-photo-button{height:85px}.tour-photo-tile .exhibit-photo-window{width:min(100%,calc(71px * var(--photo-ratio)))}.recap-photo-grid .exhibit-photo-button{height:115px}.recap-photo-grid .exhibit-photo-window{width:min(100%,calc(101px * var(--photo-ratio)))}}

.stop-marker.context .number-badge{fill:#f3f5ee;stroke:#698475;stroke-width:.055}.stop-marker.context .stop-number{fill:#456654}.context-stop-dot{fill:#7b9684;stroke:#fff;stroke-width:.055}
/* Expanded leg figures own their full height; the return button follows them. */
#map-dialog[open]{display:flex;flex-direction:column}
#map-dialog[open]>.dialog-header{flex:none}
#map-dialog[open]>.map-body{flex:1;min-height:0;max-height:none;overflow-y:auto}
#map-dialog .conversation-map.guidance-leg-view{height:auto;min-height:0}
#map-dialog #return-conversation{position:static;display:block;margin-top:20px}

.guidance-pin.area-reference circle{fill:var(--paper);stroke:#708878;stroke-dasharray:3 3}.guidance-pin.area-reference text{fill:var(--green)}.arrival-area-caption{flex-basis:100%;color:var(--green);font-size:13px}

.guidance-map .arrival-target{stroke:#39764e;stroke-width:3px;vector-effect:non-scaling-stroke}

/* One screen-space width for all human walking routes. */

.guidance-walk-band{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}
.guidance-walk-band{stroke:var(--current-route-color);stroke-width:var(--guidance-route-width)}
.guidance-direction.walking-direction{stroke:var(--surface);stroke-width:2.4px}
.walking-route-caption{flex-basis:100%}
.guidance-map figcaption .legend-view{width:19px;border-radius:0;background:transparent}

.source-entry{margin:12px 0 20px}.source-entry h4{margin:0 0 5px;font-size:15px;color:var(--ink)}.source-entry-meta{font-size:13px;color:var(--muted);margin:0 0 10px}.source-entry-label{font-size:13px;margin:0 0 5px}.source-entry-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:10px 12px;border-left:2px solid var(--line);font-size:14px;line-height:1.75;color:var(--ink)}
.source-object-fields{margin:0 0 12px;padding:8px 12px;border-left:2px solid var(--line);font-size:14px;line-height:1.75}.source-object-fields>div{display:grid;grid-template-columns:5em minmax(0,1fr);gap:10px;margin:5px 0}.source-object-fields dt{color:var(--muted)}.source-object-fields dd{margin:0;overflow-wrap:anywhere;font-weight:600}

.related-exhibit-scroll{display:flex;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--muted,#8b9b83) transparent;padding:0 0 14px;}
.related-exhibit-scroll>.question-target{flex:0 0 min(100%,320px);min-width:0;scroll-snap-align:start;}
.related-exhibit-scroll>.question-target:only-child{flex-basis:100%;}
.related-exhibit-scroll .target-actions{flex-wrap:wrap;}
.related-exhibit-scroll::-webkit-scrollbar{height:8px;}
.related-exhibit-scroll::-webkit-scrollbar-track{background:#eef1e9;border-radius:8px;}
.related-exhibit-scroll::-webkit-scrollbar-thumb{background:#a4b29b;border-radius:8px;}
.route-attachment .card-actions>button:last-child:nth-child(3){flex-basis:100%;}
.location-search-form{display:flex;gap:8px;align-items:center;margin:12px 0;}
.location-search-form .location-search{min-width:0;flex:1;}
.location-search-form>button{flex:none;min-height:48px;padding:8px 14px;}
.location-picker .location-results{max-height:330px;overflow-y:auto;}
.location-picker .location-choice{display:flex;gap:12px;align-items:center;margin-bottom:8px;}
.location-choice>span:last-child{min-width:0;}
.location-choice-photo{display:grid;place-items:center;width:68px;height:68px;flex:none;border-radius:8px;overflow:hidden;background:#f0f1e9;}
.location-choice-photo .exhibit-photo-window{width:min(100%,calc(68px * var(--photo-ratio)));}
.location-catalog>details{padding:8px 0;border-top:1px solid var(--line);}
.location-catalog>details>summary{font-size:14px;line-height:1.7;min-height:44px;padding:9px 0;}
.location-next-actions .location-choice{margin-top:10px;}
.location-next-actions .location-choice:disabled{opacity:.6;cursor:default;}

.related-exhibit-scroll{overflow-x:scroll;scrollbar-width:auto;scrollbar-color:auto;}

.recap-photo-grid.related-exhibit-scroll{display:flex;gap:12px;}
.recap-photo-grid.related-exhibit-scroll>.tour-photo-tile{flex:0 0 min(70%,240px);}
.recap-photo-grid.related-exhibit-scroll>.tour-photo-tile:only-child{flex-basis:100%;}

.menu-body{display:flex;flex-direction:column;gap:12px;}
.menu-body button{margin-bottom:0;}
.menu-action-row{position:relative;}
.menu-action-row>.secondary{padding-inline:52px;}
.menu-action-row>.menu-help{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--green);}
.menu-help-icon{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:13px;line-height:1;font-weight:600;}
.menu-help:hover .menu-help-icon{background:var(--green);color:var(--paper);}
.menu-tooltip{position:absolute;right:0;top:calc(100% - 2px);z-index:2;width:max-content;max-width:min(100%,320px);padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 6px 20px #213e3026;font-size:14px;line-height:1.6;overflow-wrap:anywhere;pointer-events:none;}
.menu-tooltip[hidden]{display:none;}
