/* Shared with the native coach: a 78-point portrait, speech bubble and decisions. */
.af-weight-coach{display:flex;align-items:center;gap:3px;margin:20px 0;padding:8px 0;color:#fff}
.af-coach-character{display:flex;align-items:center;justify-content:center;flex:0 0 78px;width:78px;height:86px}
.af-coach-portrait{position:relative;display:block;width:100%;aspect-ratio:1}
.af-coach-portrait img,.af-coach-portrait>svg{display:block;width:100%;height:100%}
.af-coach-portrait>svg{position:absolute;inset:0;pointer-events:none}
.af-coach-mouth{transform-box:fill-box;transform-origin:center;animation:afCoachSpeak .86s steps(1,end) infinite;animation-play-state:paused}
.af-coach-teeth,.af-coach-tongue{animation:afCoachTeeth .86s steps(1,end) infinite;animation-play-state:paused}
.af-coach-tongue{animation-name:afCoachTongue}
.af-coach-character.is-speaking .af-coach-mouth,.af-coach-character.is-speaking .af-coach-teeth,.af-coach-character.is-speaking .af-coach-tongue{animation-play-state:running}
.af-coach-bubble{position:relative;display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:8px 7px 8px 15px;border:1px solid #a6ff0047;border-radius:15px;background:linear-gradient(135deg,#242424,#171717)}
.af-coach-bubble::before{content:"";position:absolute;left:-9px;top:calc(50% - 8px);width:10px;height:16px;background:#202020;clip-path:polygon(100% 0,100% 100%,0 55%)}
.af-coach-bubble p{flex:1;min-width:0;margin:0;color:#fff;font-size:11.5px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.af-weight-coach-actions{display:flex;flex:none;gap:6px}
.af-weight-coach-actions button{display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;padding:6px;border:1px solid;border-radius:50%;background:#242424}
.af-weight-coach-actions button.approve{color:#a6ff00;border-color:#a6ff00a6}
.af-weight-coach-actions button.decline{color:#ff4c39;border-color:#ff4c39a6}
.af-weight-coach-actions button:disabled{opacity:.45;cursor:wait}
.af-weight-coach-actions svg,.af-coach-approved svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.5}
.af-coach-approved{display:grid;place-items:center;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;padding:3px;border-radius:50%;background:#a6ff00;color:#000}
.workout-finish-character.af-coach-character{width:138px;height:152px;flex-basis:auto;margin-bottom:22px;animation:workoutFinishCharacter .48s ease both}
@keyframes afCoachSpeak{0%,100%{transform:scale(.8,.333)}16.67%{transform:scale(.85,.667)}33.33%{transform:scale(.95,1)}50%{transform:scale(.75,.533)}66.67%{transform:scale(.85,.267)}83.33%{transform:scale(1,.889)}}
@keyframes afCoachTeeth{0%,50%,66.67%,100%{opacity:0}33.33%,83.33%{opacity:1}}
@keyframes afCoachTongue{0%,100%{opacity:0}83.33%{opacity:1}}
@keyframes workoutFinishCharacter{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@media(min-width:800px){
  .af-weight-coach{align-self:flex-start;box-sizing:border-box;width:min(100%,640px)}
  #workouts .af-weight-coach{order:6}
  .af-trainer-workout .af-weight-coach{order:4}
  .af-coach-bubble p{font-size:12.5px}
  .af-weight-coach-actions button{width:32px;height:32px}
}
@media(prefers-reduced-motion:reduce){.af-coach-mouth,.af-coach-teeth,.af-coach-tongue,.workout-finish-character.af-coach-character{animation:none!important}.af-coach-teeth,.af-coach-tongue{opacity:0}}
