#assistant-open{position:absolute;z-index:5;right:20px;bottom:161px;width:110px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 0 3px;background:transparent;isolation:isolate}
.guide-label{border:1px solid #f4cdc2;border-radius:14px;background:#542332;color:#fff7ef;padding:6px 9px;box-shadow:0 4px 14px #29191e55;font-size:12px;font-weight:700;white-space:nowrap}
#assistant-open.has-suggestion .guide-label::after{content:"";display:inline-block;width:7px;height:7px;margin-inline-start:5px;border-radius:50%;background:#f5a978}
.guide-robot{position:relative;width:86px;height:92px;display:block;transform-origin:50% 70%;animation:guide-bob 4s ease-in-out infinite;filter:drop-shadow(0 3px 4px #29191e55)}
.robot-antenna{position:absolute;top:6px;left:47px;width:3px;height:14px;transform:rotate(15deg);background:#c2ddea;z-index:1}
.robot-antenna::before{content:"";position:absolute;top:-5px;left:-3px;width:9px;height:9px;border-radius:50%;background:#ffc6ae}
.robot-head{position:absolute;top:17px;left:13px;width:59px;height:40px;border-radius:58% 58% 43% 43%;background:linear-gradient(140deg,#edf7fc,#b4d2e5);border:2px solid #d7e7ec;z-index:2}
.robot-visor{position:absolute;inset:6px 5px 12px;border-radius:53% 53% 38% 38%;background:linear-gradient(160deg,#422e68,#1d183c);display:flex;align-items:center;justify-content:center;gap:7px}
.robot-visor i{width:9px;height:11px;border:2px solid #9ddff4;border-radius:50%;background:#dffbff;box-shadow:0 0 7px #a4f0ff88;animation:guide-blink 5s infinite}
.robot-smile{position:absolute;bottom:4px;left:23px;width:11px;height:6px;background:#542332;border-radius:0 0 10px 10px}
.robot-body{position:absolute;top:58px;left:20px;width:46px;height:26px;border-radius:12px 12px 50% 50%;background:linear-gradient(145deg,#e1f4fa,#a5c5da);z-index:2}
.robot-badge{position:absolute;top:5px;left:17px;width:12px;height:12px;border-radius:50%;background:#a64e64;border:2px solid #ffd7bf}
.robot-arm{position:absolute;top:61px;width:24px;height:8px;border-radius:9px;background:linear-gradient(#e7f3f7,#adc9de)}
.robot-arm-point{left:-2px;transform-origin:right center;animation:guide-wave 5.5s infinite}
.robot-arm-rest{right:-1px;transform:rotate(27deg);transform-origin:left center}
.pointing .robot-arm-point{animation:none;transform:rotate(10deg) translateX(-2px)}
#assistant-open.walking-guide .guide-robot{opacity:0}
#assistant-walker{position:absolute;z-index:4;pointer-events:none;transform:translate(-50%,-50%) scale(.74);transform-origin:center}
#assistant-walker.is-speaking .robot-smile{animation:guide-greet .35s ease-in-out infinite alternate}
@media(max-width:600px){#assistant-walker{transform:translate(-50%,-50%) scale(.64)}}
@media(prefers-reduced-motion:reduce){#assistant-walker.is-speaking .robot-smile{animation:none}}
.robot-shadow{position:absolute;left:24px;bottom:2px;width:38px;height:4px;background:#4b2b3d55;border-radius:50%;filter:blur(1px)}
@keyframes guide-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes guide-blink{0%,41%,46%,100%{transform:scaleY(1)}43%,44%{transform:scaleY(.13)}}
@keyframes guide-wave{0%,60%,100%{transform:rotate(-33deg)}69%,83%{transform:rotate(24deg)}76%,88%{transform:rotate(8deg)}}
#assistant-dialog{position:fixed;inset:auto 16px 291px auto;margin:0;width:min(335px,calc(100% - 27px));max-height:calc(100dvh - 325px);z-index:7;overflow:auto}
#assistant-dialog .panel{padding:14px}
#assistant-dialog.checkout-review{position:static;width:100%;max-height:none;margin:8px 0 16px;border:1px solid #c18c9c;border-radius:12px;background:#321f28;color:#fff7ef}
#assistant-dialog.checkout-review .panel{padding:12px}
#assistant-dialog.checkout-review #assistant-status{margin-top:8px}
.assistant-header,.assistant-actions{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.assistant-header h2{margin:0;font-size:17px}
#assistant-close{background:transparent;font-size:25px}
.assistant-actions button{padding:8px 10px;border-radius:8px;background:#843d52;font-size:12px}
.assistant-actions button:disabled{opacity:.5}
#assistant-links a{display:block;margin:7px 0;color:#ffc7b5;font-size:12px}
#assistant-disclosure,#assistant-status{margin:4px 0 8px;font-size:12px}
#assistant-dialog[data-voice-state="recording"] #assistant-status,
#assistant-dialog[data-voice-state="thinking"] #assistant-status{display:flex;align-items:center;gap:.5em;font-weight:700}
#assistant-dialog[data-voice-state="recording"] #assistant-status::before,
#assistant-dialog[data-voice-state="thinking"] #assistant-status::before{content:"";flex:none;width:.65em;height:.65em;border-radius:50%;background:#18846b}
#assistant-dialog[data-voice-state="thinking"] #assistant-status::before{background:#ac7312;animation:assistant-wait 1s ease-in-out infinite alternate}
@keyframes assistant-wait{to{opacity:.4}}
@media(prefers-reduced-motion:reduce){#assistant-dialog[data-voice-state="thinking"] #assistant-status::before{animation:none}}
#assistant-disclosure{color:#ddbbc6}
@media(max-width:600px){#assistant-open{right:9px;bottom:153px;width:96px}.guide-robot{scale:.83;transform-origin:top center;height:76px}#assistant-dialog{right:9px;bottom:265px;max-height:calc(100dvh - 285px)}}
@media(max-height:520px){#assistant-open{bottom:106px}.guide-robot{scale:.76;transform-origin:top center;height:70px}#assistant-dialog{bottom:32px;right:112px;max-height:calc(100dvh - 90px)}}
@media(prefers-reduced-motion:reduce){.guide-robot,.robot-visor i,.robot-arm-point{animation:none}}

@media(max-width:600px){#assistant-dialog.camera-result{right:auto;left:9px;bottom:118px;width:min(225px,58vw);max-height:165px}}

.greeting .robot-smile{animation:guide-greet .35s ease-in-out infinite alternate}
@keyframes guide-greet{from{transform:scaleY(.65)}to{transform:scaleY(1.28)}}
@media(prefers-reduced-motion:reduce){.greeting .robot-smile{animation:none}}

#assistant-dialog.has-video{max-height:min(70dvh,570px)}
#assistant-videos:empty{display:none}
#assistant-videos{margin-top:12px}
#assistant-videos video,#assistant-videos iframe{display:block;width:100%;aspect-ratio:16/9;background:#201819;border:0;border-radius:7px}
#assistant-videos .assistant-video-title{margin:11px 0 5px;font-size:12px;line-height:1.3}
#assistant-videos a{display:block;margin:5px 0 9px;color:#ffc7b5;font-size:12px}
@media(max-width:600px){#assistant-dialog.camera-result.has-video{width:min(290px,calc(100% - 20px));max-height:min(53dvh,415px)}}

#assistant-text-form{margin:12px 0 8px;text-align:start}#assistant-text-label{display:block;font-size:13px;margin-bottom:6px}.assistant-text-row{display:flex;gap:6px;min-width:0}#assistant-text-input{min-width:0;width:100%;flex:1;border:1px solid #b995a1;border-radius:8px;padding:10px;font:inherit;font-size:16px;color:#251b20;background:#fff}#assistant-text-send{flex-shrink:0;border-radius:8px;padding:8px 12px}#assistant-text-answer{font-size:14px;line-height:1.65;white-space:pre-wrap;text-align:start}#assistant-dialog.camera-result{max-height:min(65dvh,480px)}
/* Primary conversation control stays prominent on desktop and mobile. */
#assistant-dialog .assistant-actions{display:flex;flex-wrap:wrap;gap:8px}
#assistant-dialog #assistant-mic{flex:0 0 100%;width:100%;min-height:56px;padding:14px 18px;border:2px solid #f4d3a4;border-radius:12px;background:#f4d3a4;color:#421729;font-size:20px;font-weight:800;line-height:1.3;box-shadow:0 3px 10px #0003;cursor:pointer}
#assistant-dialog #assistant-mic:hover{background:#ffe4bf}
#assistant-dialog #assistant-mic:focus-visible{outline:3px solid white;outline-offset:3px}
#assistant-dialog #assistant-mic[aria-pressed="true"]{background:#6b233b;color:#fff;border-color:#e6a9bb}
#assistant-dialog #assistant-mic:disabled{opacity:.65;cursor:wait}

/* Keep the shop visible during mobile voice conversations. */
#assistant-size{display:none}
@media(max-width:600px),(max-height:520px) and (pointer:coarse){
  #assistant-dialog:not(.checkout-review){width:min(300px,calc(100vw - 20px));max-height:50dvh;bottom:170px;right:10px;left:auto;box-shadow:0 4px 18px #150a1340}
  #assistant-dialog:not(.checkout-review) #assistant-size{display:block;background:transparent;color:#ffddc4;font-size:12px;min-height:36px;padding:5px 8px;margin-inline-start:auto}
  #assistant-dialog:not(.checkout-review) #assistant-close{min-width:36px;min-height:36px;padding:0}
  #assistant-dialog.mobile-compact:not(.checkout-review){inset:auto auto max(195px,calc(env(safe-area-inset-bottom) + 180px)) 10px;width:min(190px,calc(100vw - 140px));max-height:145px;border-radius:15px;overflow:auto}
  #assistant-dialog.mobile-compact:not(.checkout-review) .panel{padding:5px 7px}
  #assistant-dialog.mobile-compact:not(.checkout-review) .assistant-header{gap:0;flex-wrap:nowrap}
  #assistant-dialog.mobile-compact:not(.checkout-review) h2,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-disclosure,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-text-form,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-text-answer,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-links,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-videos,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-replay,
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-suggestion{display:none}
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-status{font-size:12px;line-height:1.4;margin:0 0 6px}
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-mic{min-height:44px;padding:8px 5px;font-size:14px;border-radius:9px;box-shadow:none}
}
@media(max-height:520px) and (pointer:coarse){
  #assistant-dialog.mobile-compact:not(.checkout-review){bottom:16px;left:120px;width:230px;max-height:145px}
}

@media(max-width:600px),(max-height:520px) and (pointer:coarse){
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-size{min-height:28px;padding:2px 5px;font-size:11px}
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-close{min-width:32px;min-height:28px;font-size:22px}
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-status{font-size:11px;line-height:1.35;margin:0 0 4px}
  #assistant-dialog.mobile-compact:not(.checkout-review) #assistant-mic{min-height:44px;padding:6px 3px;font-size:13px}
}
@media(max-height:520px) and (pointer:coarse){#assistant-dialog.mobile-compact:not(.checkout-review){width:190px;max-height:135px}}

#assistant-mic{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* Keep stop-reply directly accessible without expanding the mobile panel. */
@media(max-width:600px),(max-height:520px) and (pointer:coarse){
  #assistant-dialog.mobile-compact:not(.checkout-review):is([data-voice-state="speaking"],[data-voice-state="guiding"]) #assistant-replay:not([hidden]){display:block;flex:0 0 62px;min-height:44px;padding:6px 4px;font-size:12px;line-height:1.35;border:1px solid #e6a9bb;background:#6b233b;color:white}
  #assistant-dialog.mobile-compact:not(.checkout-review):is([data-voice-state="speaking"],[data-voice-state="guiding"]) #assistant-mic{flex:1 1 0;width:auto;min-width:0;font-size:12px}
}

/* Compact assistant shares the bottom row with the joystick, with a safe gap. */
@media(max-width:600px),(max-height:520px) and (pointer:coarse){
  #assistant-dialog.mobile-compact:not(.checkout-review){bottom:max(25px,calc(env(safe-area-inset-bottom) + 12px));left:10px;right:auto;width:min(190px,calc(100vw - 180px));max-height:180px}
  #app:has(#assistant-dialog.mobile-compact[open]:not(.checkout-review)) .zoom-controls{bottom:max(220px,calc(env(safe-area-inset-bottom) + 207px));left:10px}
}

#tour-invitation{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(420px,calc(100vw - 36px));box-sizing:border-box;padding:23px;border:1px solid #bca184;border-radius:18px;background:#fff8ec;color:#4d182b;z-index:80;text-align:center;box-shadow:0 12px 45px #0005}
#tour-invitation h2{margin:0 0 20px;font-size:21px;line-height:1.6}
.tour-invitation-actions{display:flex;gap:12px;justify-content:center}
.tour-invitation-actions button{min-height:46px;flex:1;padding:10px;border-radius:12px;border:1px solid #651d36;font:inherit;font-weight:700;cursor:pointer}
#tour-invitation-yes{background:#651d36;color:#fff8ec}
#tour-invitation-no{background:#fff8ec;color:#651d36}
@media(max-width:600px){#tour-invitation{padding:18px}#tour-invitation h2{font-size:18px}.tour-invitation-actions button{font-size:14px}}
