.pet-assistant{position:fixed;right:20px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:95;color:#253749;font-family:inherit}.pet-assistant[hidden],.pet-chat[hidden]{display:none}.pet-launcher{width:76px;height:76px;border:2px solid #c7b8e0;border-radius:50%;background:#faf5ff;box-shadow:0 5px 22px #24344825;cursor:pointer;animation:pet-idle 4s ease-in-out infinite}.pet-launcher svg,.pet-picker svg,.pet-tour-avatar svg{width:100%;height:100%}.pet-greeting{animation:pet-wave .7s ease-in-out 2}.pet-answering{animation:pet-answer-dance 1.8s ease-in-out}.pet-asking{animation:pet-question-dance 1.8s ease-in-out}.pet-chat{position:absolute;right:0;bottom:76px;width:min(370px,calc(100vw - 24px));max-height:min(680px,calc(100dvh - 176px - env(safe-area-inset-bottom,0px)));display:flex;flex-direction:column;background:#fff;border:1px solid #cfc5df;border-radius:20px;box-shadow:0 12px 42px #24344830;overflow:hidden}.pet-chat-header{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:14px;gap:8px;background:#f3eefb}.pet-chat button,.pet-settings button{cursor:pointer;border:1px solid #cfc5df;border-radius:10px;background:#f6f2fc;color:#253749;padding:8px 10px;font:inherit}.pet-chat button:focus-visible,.pet-launcher:focus-visible,.pet-picker input:focus-visible{outline:3px solid #5279b0;outline-offset:3px}.pet-notice{font-size:12px;margin:9px 14px}.pet-log{flex:1 1 auto;overflow-y:auto;min-height:0;padding:0 12px;overscroll-behavior:contain}.pet-message{background:#f3f0f8;border-radius:12px;padding:10px;margin:8px 0;font-size:14px;white-space:pre-line;overflow-wrap:anywhere}.pet-message p{margin:0 0 5px}.pet-message button{display:block;margin:6px 0;text-align:left;width:100%}.pet-user{background:#eaf3f5;margin-left:28px}.pet-prompts{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px}.pet-prompts button{font-size:12px;padding:8px 3px;min-width:0;line-height:1.25;white-space:normal}.pet-input{flex-shrink:0;display:flex;gap:6px;padding:12px;border-top:1px solid #ddd}.pet-input input{min-width:0;flex:1;border:1px solid #bcb2cc;border-radius:10px;padding:9px;color:#253749;background:#fff;font:inherit}.pet-picker{border:1px solid #cfc5df;border-radius:14px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pet-picker label{display:flex;align-items:center;flex-direction:column;flex:1;min-width:55px;border-radius:10px;padding:5px;cursor:pointer}.pet-picker label:has(input:checked){background:#ece5fc;outline:2px solid #8c73b6;color:#253749}.pet-picker label>span:first-of-type{width:55px;height:55px}.pet-picker input{margin:3px}.pet-settings{margin:20px 0;padding:18px;border:1px solid #cfc5df;border-radius:16px}.pet-settings>button{display:block;margin-top:12px}.pet-tour-avatar{width:76px;height:76px;margin:auto;animation:pet-hop .6s ease-in-out}.v2-tour-panel #v2-tour-copy{border-radius:14px;background:#f3eefb;color:#253749;padding:12px}.pet-settings label{cursor:pointer}@keyframes pet-idle{50%{transform:translateY(-4px)}}@keyframes pet-wave{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}@keyframes pet-hop{50%{transform:translateY(-9px)}}@media(max-width:760px){.pet-assistant{right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px))}.pet-launcher{width:62px;height:62px}.pet-chat{bottom:60px;max-height:calc(100dvh - 154px - env(safe-area-inset-bottom,0px))}}@media(prefers-reduced-motion:reduce){.pet-launcher,.pet-tour-avatar{animation:none!important}}

.pet-celebration{animation:pet-wave .6s ease-in-out 3}

.pet-message .pet-agenda-item{display:flex;flex-direction:column;gap:5px;padding:12px;margin:10px 0;background:#fff;white-space:normal;text-align:left;border-color:#ddd5e8;line-height:1.4}.pet-agenda-item strong{font-size:14px;font-weight:650}.pet-agenda-item>span{font-size:12px;color:#526176}.pet-agenda-item .pet-agenda-destination{color:#665080;font-weight:600;font-size:11px}.pet-agenda-item:hover{border-color:#8c73b6;background:#fcfaff}.pet-message:has(.pet-agenda-item)>p{font-weight:650;font-size:14px;margin-bottom:12px}

.pet-target-highlight{outline:3px solid #8c73b6!important;outline-offset:4px;box-shadow:0 0 0 7px #b6a1e633!important;scroll-margin:100px}.pet-completion-picker{padding:12px;margin:8px 12px;border:1px solid #cfc5df;border-radius:12px;background:#f6f2fc}.pet-completion-picker label{display:flex;flex-direction:column;gap:8px;font-size:13px}.pet-completion-picker select{width:100%;min-width:0;padding:10px;border:1px solid #cfc5df;border-radius:8px;background:white;color:#253749;font:inherit}.pet-completion-picker button{margin-top:10px;width:100%}

.pet-message input[type="color"]{display:block;width:64px;height:44px;padding:3px;border:1px solid #bcb2cc;border-radius:8px;background:#fff;cursor:pointer}
@media(max-width:760px){.pet-input input{font-size:16px}}

/* Animate the pet independently so the chat and its controls stay steady. */
@keyframes pet-answer-dance{
  0%,100%{transform:translate(0,0) rotate(0)}
  12%{transform:translate(-3px,2px) rotate(-3deg)}
  30%{transform:translate(-13px,-18px) rotate(-9deg)}
  45%{transform:translate(-20px,0) rotate(3deg)}
  52%{transform:translate(-20px,2px) rotate(3deg)}
  69%{transform:translate(-9px,-12px) rotate(8deg)}
  84%{transform:translate(0,1px) rotate(-3deg)}
  93%{transform:translate(0,-3px) rotate(1deg)}
}
@keyframes pet-question-dance{
  0%,100%{transform:translate(0,0) rotate(0)}
  18%{transform:translate(-6px,-5px) rotate(-6deg)}
  38%,52%{transform:translate(-9px,-8px) rotate(-14deg)}
  70%{transform:translate(-5px,-4px) rotate(6deg)}
  86%{transform:translate(0,-2px) rotate(-3deg)}
}
.pet-launcher svg{transform-origin:50% 78%}
.pet-answering svg{animation:pet-speaking-body 1.8s ease-in-out}
.pet-asking svg{animation:pet-curious-body 1.8s ease-in-out}
@keyframes pet-speaking-body{
  0%,100%{transform:scale(1,1)}
  12%,48%{transform:scale(1.1,.9)}
  28%,67%{transform:scale(.94,1.08)}
  42%,83%{transform:scale(1.06,.94)}
  93%{transform:scale(.98,1.02)}
}
@keyframes pet-curious-body{
  0%,100%{transform:scale(1) rotate(0)}
  22%{transform:scale(1.03) rotate(-3deg)}
  38%,52%{transform:scale(1.08) rotate(-5deg)}
  72%{transform:scale(1.02) rotate(3deg)}
}
@media(prefers-reduced-motion:reduce){.pet-launcher svg{animation:none!important}}
