.pet-widget{position:fixed;right:26px;bottom:22px;z-index:80;font-family:inherit;color:var(--ink);font-size:13px}.pet-widget button:focus-visible,.pet-widget textarea:focus-visible{outline:3px solid #0a827780;outline-offset:3px}.pet-launcher{position:relative;width:104px;margin-left:auto}.pet-toggle{display:flex;align-items:center;justify-content:center;position:relative;width:104px;height:116px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer}.pet-toggle:hover{background:transparent}.pet-art{width:102px;height:110px;position:relative;display:block;filter:drop-shadow(0 6px 7px #153c3a25);animation:pet-float 4.8s ease-in-out infinite;transform-origin:50% 80%}.pet-greeting{position:absolute;right:6px;bottom:116px;white-space:nowrap;padding:7px 12px;border:1px solid #d3e8e1;border-radius:16px 16px 3px 16px;background:#fff;box-shadow:0 4px 18px #103c3510;font-size:11px;color:#367465;opacity:0;transform:translateY(5px);transition:.18s;pointer-events:none}.pet-toggle:hover .pet-greeting,.pet-toggle:focus-visible .pet-greeting{opacity:1;transform:none}.pet-motion,.pet-minimize{position:absolute;z-index:1;top:0;width:23px;height:23px;padding:0;border:1px solid #dce7e5;border-radius:50%;font-size:12px;background:#fffffff2;color:#66857c;box-shadow:0 2px 8px #12322812;opacity:0;transition:opacity .2s}.pet-motion{left:0}.pet-minimize{right:0}.pet-launcher:hover .pet-motion,.pet-launcher:hover .pet-minimize,.pet-launcher:focus-within .pet-motion,.pet-launcher:focus-within .pet-minimize{opacity:1}.pet-mini-label{display:none}.pet-dot{width:9px;height:9px;position:absolute;right:10px;top:12px;border-radius:50%;background:#dbad57;border:2px solid white}.pet-window{width:390px;max-height:min(680px,calc(100dvh - 160px));height:620px;border:1px solid #d9e8e3;border-radius:19px;background:#fff;box-shadow:0 20px 65px #112f3933;overflow:hidden;display:flex;flex-direction:column;margin-bottom:8px}.pet-window[hidden]{display:none}.pet-header{display:flex;align-items:center;padding:12px 14px;background:linear-gradient(120deg,#eaf6ef,#f7fbfa);gap:9px;border-bottom:1px solid #e0ede7;flex-shrink:0}.pet-header>img{width:43px;height:47px;object-fit:contain}.pet-header>div{flex:1;min-width:0}.pet-header strong{font-size:16px}.pet-header strong span{font-size:10px;font-weight:400;color:#5d8377;margin-left:7px}.pet-header small{display:block;font-size:10px;color:#749085;margin-top:4px}.pet-header button{width:27px;height:30px;padding:4px;color:#567b70}.pet-header .icon{width:16px;height:16px}.pet-context{display:flex;align-items:center;gap:7px;padding:9px 17px;font-size:11px;color:#5c7a71;background:#fafcfb;flex-shrink:0}.pet-context .live-dot{width:5px;height:5px;margin:0}.pet-chat{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:16px;background:#f7faf9;scrollbar-width:thin}.pet-bubble{padding:15px;margin-bottom:14px;border:1px solid #e1eae6;background:#fff;border-radius:3px 14px 14px 14px;overflow-wrap:anywhere;line-height:1.85}.pet-bubble-label{font-size:10px;color:#488978;display:block;margin-bottom:6px}.pet-bubble h3{font-size:13px;line-height:1.7;margin:8px 0 5px}.pet-bubble p{margin:6px 0 10px;color:#405c54;font-size:12px;white-space:pre-line}.pet-bubble small{font-size:10px;color:#85938c;line-height:1.8;display:block}.pet-bubble ol{padding-left:20px;font-size:12px;color:#405c54}.pet-bubble li{margin:6px 0}.pet-bubble dl{border-top:1px solid #edf2ef;padding-top:8px;font-size:12px}.pet-bubble dl>div{display:flex;justify-content:space-between;gap:12px}.pet-bubble dd{margin:0;font-weight:600;color:#247764}.pet-user{margin:0 0 12px 36px;background:#e5f2ed;padding:12px 14px;border-radius:14px 3px 14px 14px;overflow-wrap:anywhere}.pet-user span{font-size:10px;color:#6f9085}.pet-user p{margin:5px 0 0;line-height:1.75;font-size:12px}.pet-status{font-size:10px;line-height:1.6;min-height:21px;max-height:52px;overflow:auto;color:#7a8e85;padding:4px 16px;background:#fff;flex-shrink:0}.pet-shortcuts{display:flex;gap:6px;padding:4px 14px 9px;flex-shrink:0}.pet-shortcuts button{padding:6px 9px;border-color:#e0eae5;font-size:10px;flex:1;background:#f9fbfa;color:#4c7668}.pet-widget #pet-form{display:flex;align-items:flex-end;gap:8px;padding:0 14px 8px;flex-shrink:0}.pet-widget textarea{width:100%;resize:none;border:1px solid #dce9e2;border-radius:9px;padding:10px;line-height:1.7;font-size:12px;min-height:59px;max-height:110px;background:#fcfdfc}.pet-widget #pet-form>button{width:36px;height:36px;flex-shrink:0;padding:8px;margin-bottom:2px}.pet-widget #pet-form .icon{width:18px;height:18px}.pet-footer{display:flex;align-items:center;justify-content:space-between;padding:0 15px 10px;font-size:9px;color:#93a199;gap:8px;flex-shrink:0}.pet-footer>button,.pet-detail{border:0;padding:5px 0;background:transparent;font-size:10px;color:#14816c;font-weight:500}.pet-footer .icon,.pet-detail .icon{width:12px;height:12px}.pet-time{display:block;color:#9aa79f;font-size:9px;margin-top:6px}.pet-thinking{color:#16816b!important}.pet-error{color:#9f6343!important;font-size:11px!important}.pet-thinking-state .pet-art{animation:pet-think 2.1s ease-in-out infinite}.pet-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pet-compact .pet-launcher{width:84px}.pet-compact .pet-toggle{width:84px;height:38px;background:#eef8f3;border:1px solid #d2e8dd;border-radius:22px;box-shadow:0 5px 20px #194e3c13}.pet-compact .pet-art{display:none}.pet-compact .pet-mini-label{display:flex;align-items:center;gap:5px;color:#1b7866;font-size:12px}.pet-mini-label .icon{width:15px;height:15px}.pet-compact .pet-greeting{display:none}.pet-compact .pet-motion{display:none}.pet-compact .pet-minimize{right:-7px;top:-12px}.pet-paused .pet-art,.pet-background .pet-art{animation:none!important}.pet-open .pet-toggle{height:76px}.pet-open .pet-art{width:68px;height:76px}.pet-open .pet-greeting{display:none}.pet-open.pet-compact .pet-toggle{height:38px}.pet-window:focus{outline:none}
@keyframes pet-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}@keyframes pet-wave{0%,100%{transform:rotate(0)}30%{transform:rotate(-8deg)}70%{transform:rotate(7deg)}}@keyframes pet-think{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.pet-art{animation:none!important}.pet-greeting{transition:none}}
@media(max-width:600px){.pet-widget{right:12px;bottom:max(10px,env(safe-area-inset-bottom));}.pet-launcher{width:72px}.pet-toggle{width:72px;height:80px}.pet-art{width:70px;height:77px}.pet-motion,.pet-minimize{opacity:1;width:20px;height:20px;top:-3px}.pet-window{width:calc(100vw - 24px);height:560px;max-height:calc(100dvh - 112px);border-radius:16px}.pet-open .pet-toggle{height:62px}.pet-open .pet-art{width:56px;height:62px}.pet-shortcuts button{font-size:10px;padding:6px 5px}.pet-header{padding:9px 12px}.pet-header strong span{font-size:9px}}

/* Independent layers keep blinking, breathing and interaction from fighting for transform. */
.pet-art{pointer-events:none}
.pet-pose,.pet-sway{position:absolute;inset:0;display:block;transform-origin:50% 80%}
.pet-pose{transition:transform .24s ease-out}
.pet-sway{animation:pet-breathe 3.8s ease-in-out infinite}
.pet-face{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none}
.pet-face-blink{opacity:0;transition:opacity 45ms ease-out;mask-image:radial-gradient(ellipse 11% 10% at 35% 42%,#000 82%,transparent 100%),radial-gradient(ellipse 11% 10% at 56% 46%,#000 82%,transparent 100%)}
.pet-blinking .pet-face-blink{opacity:1}
.pet-curious .pet-pose{transform:translateY(-2px) rotate(-4deg)}
.pet-look-left .pet-pose{transform:translateX(-2px) rotate(-5deg)}
.pet-look-right .pet-pose{transform:translateX(2px) rotate(5deg)}
.pet-react-hello .pet-sway{animation:pet-hello .85s ease-in-out}
.pet-react-tap .pet-sway{animation:pet-tap .7s ease-out}
.pet-react-done .pet-sway{animation:pet-delight .95s ease-out}
.pet-react-tap .pet-greeting,.pet-react-done .pet-greeting{opacity:1;transform:none}
.pet-thought{position:absolute;right:1px;top:2px;padding:8px 9px;gap:3px;border:1px solid #dcebe5;border-radius:12px 12px 12px 3px;background:#ffffffed;box-shadow:0 3px 12px #173d3010;display:none;pointer-events:none}
.pet-thought i{width:3px;height:3px;border-radius:50%;background:#458e76;animation:pet-thought 1.2s ease-in-out infinite}
.pet-thought i:nth-child(2){animation-delay:.15s}.pet-thought i:nth-child(3){animation-delay:.3s}
.pet-thinking-state .pet-thought{display:flex}
.pet-sparkles{position:absolute;inset:0;pointer-events:none;color:#b6994d;opacity:0}
.pet-sparkles i{position:absolute;font-style:normal;font-size:13px;left:7%;top:42%}
.pet-sparkles i:nth-child(2){left:82%;top:24%;font-size:11px;color:#369a80}.pet-sparkles i:nth-child(3){left:77%;top:66%;font-size:22px}
.pet-react-tap .pet-sparkles,.pet-react-done .pet-sparkles{animation:pet-sparkle .95s ease-out}
.pet-header [data-pet="close"]{width:36px;height:36px;flex:none;border:1px solid #d8e8e0;border-radius:50%;background:#ffffffb3}
.pet-compact .pet-thought,.pet-compact .pet-sparkles{display:none}
.pet-paused .pet-sway,.pet-background .pet-sway,.pet-paused .pet-thought i,.pet-background .pet-thought i{animation:none!important}
.pet-paused .pet-pose,.pet-background .pet-pose{transform:none;transition:none}
.pet-paused .pet-face-blink,.pet-background .pet-face-blink{opacity:0;transition:none}
@keyframes pet-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.015,1.025)}}
@keyframes pet-hello{0%,100%{transform:rotate(0)}30%{transform:rotate(-5deg)}65%{transform:rotate(4deg)}}
@keyframes pet-tap{0%,100%{transform:scale(1)}20%{transform:scale(1.04,.96)}55%{transform:translateY(-7px) scale(.98,1.035)}}
@keyframes pet-delight{0%,100%{transform:translateY(0)}28%{transform:translateY(-9px) rotate(-4deg)}60%{transform:translateY(-3px) rotate(3deg)}}
@keyframes pet-sparkle{0%{opacity:0;transform:translateY(3px) scale(.85)}30%{opacity:.85}100%{opacity:0;transform:translateY(-13px) scale(1.1)}}
@keyframes pet-thought{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.pet-sway,.pet-sparkles,.pet-thought i{animation:none!important}.pet-pose{transition:none!important;transform:none!important}.pet-face-blink{opacity:0!important;transition:none!important}}
