/* A small, quiet companion. Stage text and real progress remain the source of truth. */
.subtitle-buddy{width:252px;height:180px;flex:none;pointer-events:none;contain:layout style;margin:18px 0 12px}
.subtitle-buddy svg{width:100%;height:100%;overflow:visible}
.subtitle-buddy .buddy-character{transform-origin:140px 164px}
.subtitle-buddy .buddy-face{transform-origin:140px 100px}
.subtitle-buddy .buddy-eyes{transform-origin:140px 96px}
.subtitle-buddy .buddy-wave{transform-origin:189px 125px}
.subtitle-buddy .buddy-pencil{transform-origin:180px 145px}
.subtitle-buddy .buddy-card{transform-origin:136px 148px}
.subtitle-buddy .buddy-pencil,.subtitle-buddy .buddy-check,.subtitle-buddy .buddy-sparkles{opacity:0}
.subtitle-buddy[data-pose="listen"] .buddy-character{animation:buddyNod 2.8s ease-in-out infinite}
.subtitle-buddy[data-pose="listen"] .buddy-note-a{animation:buddyFloat 3.2s ease-in-out infinite}
.subtitle-buddy[data-pose="listen"] .buddy-note-b{animation:buddyFloat 3.2s -.9s ease-in-out infinite}
.subtitle-buddy[data-pose="listen"] .buddy-card{animation:buddyCard 3.6s ease-in-out infinite}
.subtitle-buddy[data-pose="listen"] .buddy-eyes,.subtitle-buddy[data-pose="write"] .buddy-eyes{animation:buddyBlink 5.6s infinite}
.subtitle-buddy[data-pose="write"] .buddy-notes,.subtitle-buddy[data-pose="write"] .buddy-wave{opacity:0}
.subtitle-buddy[data-pose="write"] .buddy-pencil{opacity:1;animation:buddyWrite 1.8s ease-in-out infinite}
.subtitle-buddy[data-pose="write"] .buddy-face{transform:translateY(3px) rotate(3deg)}
.subtitle-buddy[data-pose="write"] .buddy-card{transform:rotate(-3deg)}
.subtitle-buddy[data-pose="complete"] .buddy-notes,.subtitle-buddy[data-pose="complete"] .buddy-lines{opacity:0}
.subtitle-buddy[data-pose="complete"] .buddy-check,.subtitle-buddy[data-pose="complete"] .buddy-sparkles{opacity:1}
.subtitle-buddy[data-pose="complete"] .buddy-wave{animation:buddyWave .65s ease-in-out 4}
.subtitle-buddy[data-pose="complete"] .buddy-card{animation:buddyPresent .55s ease-out both}
.subtitle-buddy[data-pose="stopped"] .buddy-notes{opacity:0}
.processing-screen:not([open]) .subtitle-buddy *{animation-play-state:paused!important}
.processing-screen.has-error .subtitle-buddy *{animation-play-state:paused!important}
#job .subtitle-buddy{display:none;width:76px;height:55px;margin:-7px -4px -7px -8px}
#job.complete .subtitle-buddy{display:block}
#job.complete .job-orb{display:none}
#job[hidden] .subtitle-buddy *{animation-play-state:paused!important}
@keyframes buddyNod{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(3px) rotate(2deg)}}
@keyframes buddyFloat{0%,100%{transform:translateY(3px);opacity:.45}50%{transform:translateY(-5px);opacity:1}}
@keyframes buddyCard{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-3px) rotate(1deg)}}
@keyframes buddyBlink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}
@keyframes buddyWrite{0%,100%{transform:translate(0,0) rotate(-3deg)}25%{transform:translate(3px,-1px) rotate(3deg)}50%{transform:translate(5px,1px) rotate(-2deg)}75%{transform:translate(2px,0) rotate(3deg)}}
@keyframes buddyWave{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(13deg)}}
@keyframes buddyPresent{from{transform:translateY(6px) scale(.94)}to{transform:translateY(0) scale(1)}}
@media(max-width:600px),(max-height:760px){.processing-screen .subtitle-buddy{width:210px;height:150px;margin:12px 0 8px}}
@media(prefers-reduced-motion:reduce){.subtitle-buddy *{animation:none!important}}
