.guide-trigger { flex:none; white-space:nowrap; }
#guidePanel {
  width:min(410px,calc(100vw - 28px)); max-width:410px; gap:0;
  max-height:calc(100dvh - 115px - var(--guide-keyboard,0px)); overflow:auto;
  padding:20px; color:#27382c; background:#faf9f2;
  overscroll-behavior:contain; scrollbar-width:thin;
}
#guidePanel > * { flex-shrink:0; }
#guidePanel :is(.panel-header,.panel-head) button { min-width:38px; min-height:38px; }
#guidePanel .guide-location {
  margin:7px 0 14px; display:flex; align-items:center; gap:5px;
  font-size:12px; line-height:17px; font-weight:600; color:#51674f;
}
#guidePanel .guide-location :is(svg,.icon) { width:16px; height:16px; }
#guidePanel .guide-language {margin-left:auto;display:inline-flex;align-items:center;gap:6px}
#guidePanel .guide-language select {max-width:105px;color:#314434;background:#fff;border:1px solid #cbd5c7;border-radius:7px;min-height:34px;padding:3px 5px;font:inherit}
#guidePanel button:focus-visible {
  outline:2px solid #53815a; outline-offset:2px;
}
#guidePanel :is(.chat,.conversation) {
  flex-shrink:1; min-height:57px; max-height:clamp(85px,23dvh,230px);
  margin:12px 0 0; padding:0 3px 0 0; border:0;
  overflow:auto; line-height:1.45; overscroll-behavior:contain;
}
#guidePanel :is(.chat,.conversation):empty { display:none; }
#guidePanel .message { overflow-wrap:anywhere; }
.guide-room-divider {
  display:flex; align-items:center; gap:8px; margin:12px 0 6px; font-size:11px; color:#61735d;
}
.guide-room-divider::after { content:""; height:1px; flex:auto; background:#dde1d5; }
#guidePanel [data-guide-prompts] {
  display:flex; gap:6px; flex-wrap:wrap; margin:12px 0 10px;
}
#guidePanel [data-guide-prompts] button {
  margin:0; min-height:34px; padding:4px 10px; border-radius:16px; border:1px solid #cdd5c4;
  font:inherit; font-size:12px; line-height:1.25; color:#405a41;
  background:transparent; text-align:left;
}
#guidePanel [data-guide-prompts] button:hover { background:#e8eddf; }
#guidePanel :is(#guideForm,#questionForm){ min-height:43px; }
#guidePanel #question { flex:1; min-width:0; }
#guidePanel :is(.voice-controls,.voice-row) { display:flex; align-items:center; gap:8px; margin:6px 0 0; min-height:34px; }
#guidePanel :is(#voiceStatus,#guideStatus){ flex:1; font-size:11px; line-height:1.3; color:#53644f; }
#guidePanel :is(#micButton,#micBtn) {
  min-height:34px; padding:4px 10px; color:#37513d; font-size:12px;
  background:#e6ebdf; border-radius:18px;
}
#guidePanel[data-voice-state="listening"] :is(#micButton,#micBtn) { color:#823b31; background:#f6e5de; }
#guidePanel :is(#muteButton,#muteBtn){ width:34px; height:34px; margin-left:auto; }
#guidePanel :is(#muteButton,#muteBtn)[aria-pressed="true"] { opacity:.66; background:#e8ebdf; }
@media(max-width:640px) {
  #guidePanel {
    right:max(10px,env(safe-area-inset-right)); width:calc(100% - 20px);
    bottom:max(80px,calc(env(safe-area-inset-bottom) + 59px),calc(var(--guide-keyboard,0px) + 5px));
    max-height:calc(100dvh - max(95px,calc(var(--guide-keyboard,0px) + 22px)));
    padding:16px; border-radius:16px;
  }
  #guidePanel #question { font-size:16px; }
  #guidePanel [data-guide-prompts] button { min-height:38px; }
  #guidePanel :is(#micButton,#micBtn) { min-height:40px; }
  #guidePanel :is(#muteButton,#muteBtn,.send){ min-width:38px; min-height:38px; }
}
@media(max-width:365px) {
  #guidePanel { padding:12px; }
}
.project-questions {margin:6px 0 10px;font-size:13px;color:#35553e}
.project-questions summary {cursor:pointer;padding:5px 0;font-weight:600}
.project-questions > div {display:flex;flex-wrap:wrap;gap:6px;margin:5px 0}
.project-questions button {border:1px solid #cbd5c7;border-radius:14px;padding:6px 9px;color:#35553e;background:#f4f6ee;text-align:left}
#guidePanel .message small a {color:inherit;text-decoration:underline;text-underline-offset:2px}
#guidePanel .route-controls {margin:0 0 9px;color:#35553e;font-size:13px}
#guidePanel .route-controls summary {cursor:pointer;padding:6px 0;font-weight:600}
#guidePanel .route-controls form {display:grid;gap:6px;margin:5px 0 10px}
#guidePanel .route-controls p {margin:0 0 2px;font-size:12px;color:#526050}
#guidePanel .route-controls label {font-weight:600}
#guidePanel .route-controls input,#guidePanel .route-controls select {box-sizing:border-box;min-width:0;min-height:40px;padding:7px 10px;color:#213b2e;border:1px solid #b5c3b4;border-radius:8px;background:white;font:inherit;font-size:16px}
#guidePanel .route-mode-row {display:flex;align-items:stretch;gap:8px}
#guidePanel .route-mode-row select {flex:1}
#guidePanel .route-mode-row button {min-height:40px;padding:7px 14px;border:0;border-radius:8px;background:#35553e;color:white;font:inherit;font-weight:600}
#guidePanel .route-controls a,#guidePanel .route-reply a {color:#31573d;text-decoration:underline;text-underline-offset:2px}
#guidePanel .route-controls a {justify-self:start;font-size:12px}
#guidePanel .route-reply {padding:9px 11px;border:1px solid #cfdbce;border-radius:10px;background:#fff;color:#27382c}
#guidePanel .route-reply > p {margin:0 0 3px;font-size:12px;line-height:1.4}
#guidePanel .route-reply > p:first-child {font-size:14px;font-weight:600}
#guidePanel .route-reply > a {display:inline-block;margin:3px 0;font-size:13px}
#guidePanel .route-choices {display:grid;gap:5px}
#guidePanel .route-choices button {width:100%;padding:7px 9px;min-height:40px;text-align:left;font:inherit;font-size:13px;background:#f6f8f3;color:#20372a;border-radius:7px;border:1px solid #cbd7c9}
#guidePanel .route-choices button span,#guidePanel .route-choices > div > span {display:block;font-size:12px}
#guidePanel .route-credits {display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;color:#353535;font:12px/1.4 sans-serif}
#guidePanel .route-credits img {display:block;height:16px;width:auto;margin:10px 10px 5px}
#guidePanel .travel-tools {margin:3px 0 0;padding:9px 10px 3px;background:#edf1e8;border:1px solid #d3dccd;border-radius:12px}
#guidePanel .visit-property {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;color:#234631;text-decoration:none;font-size:14px;font-weight:650}
#guidePanel .visit-property:hover {text-decoration:underline;text-underline-offset:3px}
#guidePanel .visit-property img {box-sizing:content-box;height:16px;width:auto;padding:6px 2px 6px 6px}
#guidePanel .transit-prompts {display:flex;flex-wrap:wrap;gap:5px;margin:3px 0 2px}
#guidePanel .transit-prompts button {font:inherit;font-size:12px;background:#fafbf6;color:#34563f;border:1px solid #bfceba;border-radius:14px;padding:5px 9px;min-height:32px}
#guidePanel .travel-tools .route-controls {margin:2px 0 0}
#guidePanel .route-reply .guide-action,#guidePanel .message .guide-action {display:inline-flex;align-items:center;margin:4px 0 5px;padding:6px 11px;min-height:32px;box-sizing:border-box;font:600 13px/1.35 system-ui,sans-serif;background:#35553e;border-radius:8px;color:#fff;text-decoration:none}
#guidePanel .guide-action::after,#guidePanel .visit-property::after {content:"↗";font:normal 15px/1 sans-serif}
#guidePanel .guide-action::after {margin-left:7px}
#guidePanel .visit-property img {margin-left:auto}
#guidePanel .route-legs {padding-left:17px;margin:6px 0;color:#314434;font-size:12px}
#guidePanel .route-legs li {padding:3px 0}
#guidePanel .route-legs p {margin:1px 0;line-height:1.4}
#guidePanel .route-reply .route-walk {margin-top:5px;line-height:1.5}
#guidePanel .route-legs time {white-space:nowrap}
@media(max-width:640px) {
  #guidePanel[data-conversation="active"] .guide-location {margin:4px 0 6px}
  #guidePanel[data-conversation="active"] :is(.chat,.conversation) {min-height:clamp(112px,22dvh,195px);max-height:36dvh;margin-top:6px}
  #guidePanel[data-conversation="active"] [data-guide-prompts] {flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;margin:6px 0;scrollbar-width:thin}
  #guidePanel[data-conversation="active"] [data-guide-prompts] button {flex-shrink:0;max-width:85%;min-height:34px}
  #guidePanel[data-conversation="active"] .project-questions {margin:4px 0}
}
