.sa-avatar-video{aspect-ratio:1;isolation:isolate;width:100%;height:100%;position:relative;overflow:hidden}.sa-avatar-static,.sa-avatar-clip{object-fit:cover;width:100%;height:100%;margin:0;position:absolute;inset:0}.sa-avatar-static{object-fit:cover;z-index:0}.sa-avatar-original{object-position:center top;transform-origin:50% 10%;transform:scale(2.3)}.sa-avatar-clip{opacity:0;z-index:1;pointer-events:none;transition:opacity .18s}.sa-avatar-clip[data-visible=true]{opacity:1;z-index:2}.sa-avatar-clip[data-underlay=true]{opacity:1;z-index:1}.sa-avatar-video[data-avatar-transition=false] .sa-avatar-clip{transition:none}.sa-avatar-video:not([data-avatar-visible=static]) .sa-avatar-static{visibility:hidden}@media (prefers-reduced-motion:reduce){.sa-avatar-clip{transition:none}}.sa-character{flex:none;width:96px;max-width:96px;margin-inline:auto;position:relative}.sa-character-greet{aspect-ratio:1;cursor:pointer;touch-action:pan-y;background:0 0;border:0;border-radius:50%;width:100%;height:auto;padding:0;display:block;position:relative;overflow:hidden}.sa-character-greet:focus-visible{outline-offset:4px;outline:2px solid #665188}.sa-character-stage{justify-content:center;align-items:flex-start;display:flex;position:absolute;inset:0;overflow:hidden;transform:none}.sa-character-picture{pointer-events:none;transform-origin:50% 15%;flex-shrink:0;width:250%;max-width:none;height:auto;animation:5s ease-in-out infinite paused sa-character-breathe;display:block;position:relative;left:8%}.sa-character[data-character-playing=true] .sa-character-picture{animation-play-state:running}.sa-character[data-character-motion=thinking] .sa-character-picture{animation-name:sa-character-think;animation-duration:4.5s}.sa-character[data-character-motion=searching] .sa-character-picture{animation-name:sa-character-look;animation-duration:5s}.sa-character[data-character-motion=working] .sa-character-picture{animation-duration:3.8s}.sa-character[data-character-motion=done] .sa-character-picture{animation-name:sa-character-acknowledge;animation-duration:1s;animation-iteration-count:1}@keyframes sa-character-breathe{0%,to{transform:translateY(0)scale(1)}50%{transform:translateY(-2px)scale(1.012)}}@keyframes sa-character-think{0%,to{transform:rotate(0)}50%{transform:rotate(-1.5deg)translateY(-1px)}}@keyframes sa-character-look{0%,to{transform:translate(0)}35%{transform:translate(-2px)rotate(-.7deg)}70%{transform:translate(2px)rotate(.7deg)}}@keyframes sa-character-acknowledge{0%,to{transform:translateY(0)rotate(0)}45%{transform:translateY(-3px)rotate(1.5deg)}70%{transform:translateY(-1px)rotate(-.7deg)}}.sa-character-greeting{bottom:5px;text-align:center;color:#49365f;pointer-events:none;font-size:12px;position:absolute;inset-inline:0}.sa-character-greeting:empty{display:none}.sa-character-compact{width:72px;max-width:72px;margin:0}.sa-character-fullbody{width:280px;max-width:100%}.sa-character-fullbody .sa-character-greet{aspect-ratio:auto;background:0 0;border-radius:0;height:min(52dvh,450px);overflow:visible}.sa-character-fullbody .sa-character-stage{overflow:visible}.sa-character-fullbody .sa-character-picture{object-fit:contain;transform-origin:50% 85%;width:100%;max-width:100%;height:100%;animation:none;left:0;transform:none}.sa-character-compact .sa-character-greeting{background:#f6f3facf;font-size:11px}.sa-character-portrait{max-height:calc(100dvh - 2rem);overflow:auto}.sa-character-response{min-height:2.8em}.sa-character-portrait-greet{aspect-ratio:1;cursor:pointer;touch-action:pan-y;background:0 0;border:0;border-radius:20px;width:min(100%,460px);margin-inline:auto;padding:0;display:block;transform:none}.sa-character-portrait-greet:focus-visible{outline:2px solid var(--ring);outline-offset:4px}.sa-agent-identity:has(.sa-character){gap:10px;padding:14px 14px 18px}:is(.sa-agent-panel-chat .sa-agent-identity:has(.sa-character),.sa-agent-sheet-chat .sa-agent-identity:has(.sa-character)){gap:12px;padding:10px}@media (max-width:600px){.sa-character-compact{width:64px;max-width:64px}}@media (prefers-reduced-motion:reduce){.sa-character .sa-character-picture{animation:none!important}.sa-character-stage,.sa-character-portrait-greet{transition:none!important;transform:none!important}}.sa-character-portrait .sa-character-portrait-greet{cursor:default}
