.koru-avatar{display:inline-grid;place-items:center;position:relative;isolation:isolate;width:var(--avatar-size,90px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#35583b,#1b3326 68%);box-shadow:inset 0 0 0 1px #41664b;overflow:hidden;flex:none}
.koru-avatar img{width:73%;height:auto;position:absolute;top:10%;transform-origin:center 82%}
.koru-avatar[data-state=idle] img{animation:koru-breathe 4s ease-in-out infinite}
.koru-avatar[data-state=thinking] img{animation:koru-ponder 1.6s ease-in-out infinite}
.koru-avatar[data-state=replying] img{animation:koru-reply .65s ease-in-out 3}
.koru-avatar[data-state=success] img{animation:koru-pop .7s cubic-bezier(.25,.8,.4,1) both}
.koru-avatar[data-state=thinking]::after{content:'•••';letter-spacing:.13em;position:absolute;bottom:8%;color:#152214;background:var(--lime,#a4db43);border-radius:20px;padding:0 .35em;animation:koru-pulse 1s alternate infinite}
@keyframes koru-breathe{50%{transform:translateY(2%) scale(1.025)}}
@keyframes koru-ponder{50%{transform:rotate(-7deg) translateY(4%)}}
@keyframes koru-reply{50%{transform:translateY(-5%) rotate(3deg)}}
@keyframes koru-pop{40%{transform:translateY(-10%) scale(1.08) rotate(-5deg)}}
@keyframes koru-pulse{to{opacity:.62}}
@media(prefers-reduced-motion:reduce){.koru-avatar img,.koru-avatar::after{animation:none!important}}

/* Added for Gardener: the visually-hidden live region KoruAvatar emits.
   clip-path rather than display:none or visibility:hidden — both of those
   remove the element from the accessibility tree, which would defeat the
   point of a live region. */
.koru-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
