.karez-companion{position:absolute;right:58px;bottom:98px;width:170px;z-index:8;display:flex;align-items:center;flex-direction:column;isolation:isolate}
.karez-companion .desktop-pet{position:relative;inset:auto;width:142px;height:145px;border:0;background:none;backdrop-filter:none;border-radius:40%;box-shadow:none;display:grid;place-items:center;filter:drop-shadow(0 15px 13px #102b6650);transition:filter .25s;animation:companion-float 6s ease-in-out infinite}
.karez-companion .desktop-pet:hover{transform:none;filter:drop-shadow(0 15px 22px #508eff80)}
.desktop-pet .companion-mark{position:relative;inset:auto;width:110px;height:116px;background:none;border:0;border-radius:0;display:block;transform:rotate(-5deg)}
.companion-dot{position:absolute;width:32px;height:32px;border-radius:11px;background:linear-gradient(145deg,#badcff 0%,#609fff 42%,#3471ef 85%);box-shadow:inset 1px 2px 2px #ffffffaa,inset -2px -3px 4px #1646aa66,0 6px 0 #285eca,0 9px 14px #0a285137;animation:companion-shimmer 5s ease-in-out infinite}
.dot-0{left:0;top:0}.dot-1{left:39px;top:0;animation-delay:.2s}.dot-2{left:78px;top:0;animation-delay:.4s}.dot-3{left:19px;top:39px;background:linear-gradient(145deg,#d4e9ff,#86b8ff 50%,#6197ee)}.dot-4{left:58px;top:39px;background:linear-gradient(145deg,#d4e9ff,#86b8ff 50%,#6197ee);animation-delay:.3s}.dot-5{left:39px;top:78px;background:linear-gradient(145deg,#fff1ac,#ffcd45 45%,#e6a815);box-shadow:inset 1px 2px 2px #fff9ce,inset -2px -3px 4px #b07b2050,0 6px 0 #c28a22,0 6px 26px #ffd34d75;animation-delay:.6s}
.companion-aura{position:absolute;top:10px;left:-20px;width:210px;height:160px;background:radial-gradient(ellipse,#72adff35,transparent 68%);filter:blur(10px);z-index:-1}
.companion-controls{display:flex;align-items:center;padding:5px 7px;border-radius:24px;background:linear-gradient(130deg,#15253de8,#08172edb);backdrop-filter:blur(24px);border:1px solid #ffffff35;box-shadow:inset 0 1px #ffffff20,0 9px 25px #06132d35;gap:6px}
.companion-controls>span{height:21px;width:1px;background:#ffffff25}.companion-controls button{height:37px;width:43px;display:flex;align-items:center;justify-content:center;color:#eef6ff;border-radius:16px;gap:3px}.companion-controls button:hover{background:#ffffff15}.companion-controls svg{width:19px;height:19px}.companion-controls i{width:3px;border-radius:3px;background:#dbeaff;height:8px}.companion-controls i:nth-child(2),.companion-controls i:nth-child(4){height:17px}.companion-controls i:nth-child(3){height:24px}
.companion-label{font-size:11px;font-weight:650;color:#f5f9ff;text-shadow:0 1px 8px #173b67;margin-top:12px;letter-spacing:.02em}.companion-label small{font-size:10px;font-weight:400;opacity:.7;margin-left:4px}.companion-label>span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#ffce45;margin-right:4px;box-shadow:0 0 8px #ffce4570}
.companion-hint{position:absolute;bottom:calc(100% + 8px);right:-12px;white-space:nowrap;padding:10px 14px;border:1px solid #ffffff45;border-radius:14px 14px 3px 14px;background:#f6faffdf;backdrop-filter:blur(15px);font-size:11px;color:#284260;box-shadow:0 8px 25px #19335215}.conversation-open .companion-hint{display:none}
#operator-desktop .pet-panel{right:30px;top:auto;bottom:325px;width:340px;max-height:calc(100% - 380px);border-radius:23px;background:linear-gradient(140deg,#fcfefff5,#e9f2fff2);border:1px solid #ffffffcc;box-shadow:0 18px 70px #12274640;padding:18px;z-index:9}.pet-panel .op-messages{min-height:40px}.pet-panel .pet-panel-head{margin-bottom:10px}.pet-panel .screen-context{font-size:8px}.pet-panel .op-message{font-size:11px;line-height:1.6}.pet-panel .pet-foot{font-size:8px}
#operator-desktop .app-window{width:calc(94% - 380px)}
.voice-preview{position:absolute;bottom:calc(100% + 12px);right:-15px;width:290px;background:#101f35ed;backdrop-filter:blur(24px);padding:20px;border:1px solid #a6c8ff50;border-radius:20px;color:#f2f7ff;box-shadow:0 20px 55px #07193340}.voice-preview>span{font-size:8px;letter-spacing:.12em;color:#aac7ee}.voice-preview strong{display:block;font-size:18px;line-height:1.5;font-weight:450;margin:15px 0}.voice-preview button{background:#ffce45;color:#12213a;border-radius:8px;padding:10px 13px;font-size:11px}.voice-active .companion-hint{display:none}.voice-active .companion-controls i{animation:voice-wave .8s ease-in-out infinite alternate}.voice-active .companion-controls i:nth-child(2n){animation-delay:.3s}.working .companion-mark{animation:companion-think 1.5s ease-in-out infinite}
@keyframes companion-float{50%{translate:0 -7px;rotate:3deg}}@keyframes companion-shimmer{50%{filter:brightness(1.12)}}@keyframes voice-wave{to{transform:scaleY(.4)}}@keyframes companion-think{50%{transform:rotate(5deg) scale(.94)}}
@media(max-width:760px){.karez-companion{right:25px;bottom:90px}#operator-desktop .pet-panel{right:15px;left:auto;bottom:322px;top:auto;width:min(340px,calc(100% - 30px));max-height:420px}#operator-desktop .app-window{width:calc(100% - 24px);left:12px;height:420px}.companion-hint{font-size:10px;right:0}.voice-preview{right:0;width:265px}}
@media(prefers-reduced-motion:reduce){.karez-companion *{animation:none!important;transition:none!important}}
#operator-desktop .pet-panel{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}#operator-desktop .pet-panel>*{flex-shrink:0}#operator-desktop .pet-panel .op-messages{max-height:125px;min-height:65px;overflow:auto}.karez-companion .desktop-pet:focus-visible{outline:2px solid #ffcf45;outline-offset:4px}
/* Compact desktop companion; preserve control hit areas. */
.karez-companion{width:138px}
.karez-companion .desktop-pet{width:106px;height:110px}
.desktop-pet .companion-mark{transform:rotate(-5deg) scale(.75)}
.companion-aura{width:160px;height:125px;left:-10px}
.companion-controls{padding:3px 5px;gap:4px}
.companion-controls button{width:38px;height:34px}
.companion-label{margin-top:8px;font-size:10px}
.companion-label small{font-size:9px}
@keyframes companion-think{0%,100%{transform:rotate(-5deg) scale(.75)}50%{transform:rotate(5deg) scale(.71)}}
