/* Speaker and learner stay distinct by position, label, and colour. */
.lesson-content .speech-bubble{position:relative;box-sizing:border-box;width:calc(100% - 24px);padding:14px 18px;margin:12px 0;border:1px solid;border-radius:22px;overflow-wrap:anywhere}
.lesson-content .speech-bubble.incoming{margin-right:24px;background:#eef5e8;border-color:#cadbc1;border-bottom-left-radius:5px}
.lesson-content .speech-bubble.outgoing{margin-left:24px;background:#fff0e9;border-color:#ebc2b2;border-bottom-right-radius:5px}
.speech-bubble:after{content:"";position:absolute;bottom:8px;width:10px;height:10px;background:inherit;border:inherit;transform:rotate(45deg)}
.speech-bubble.incoming:after{left:-6px;border-top:0;border-right:0}
.speech-bubble.outgoing:after{right:-6px;border-bottom:0;border-left:0}
.speaker-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.speaker-label{font-size:13px;font-weight:750;color:#416442}
.outgoing .speaker-label{color:#9d4935}
.lesson-content .bubble-georgian{font-size:clamp(22px,4vw,29px);line-height:1.4;margin:5px 0}
.lesson-content .bubble-translation{font-size:15px;line-height:1.35;margin:5px 0 0;color:#4e604c}
.lesson-content .reply-target{font-size:clamp(18px,3vw,24px);line-height:1.35;margin:7px 0;color:#343f3b}
.reply-hint{display:block;font-size:13px;color:#805d51;margin:6px 0}
.reply-bubble .typing-input{box-sizing:border-box;width:100%;margin:6px 0 0;background:#fff;font-size:23px;padding:10px 12px;min-height:46px}
.reply-bubble .build-area{margin:8px 0 0;min-height:52px;background:#fff}
.speaker-line .sound-controls{display:flex;gap:6px;align-items:center}
.speaker-line .sound-button{min-width:44px;min-height:44px;padding:7px 9px}
.speaker-line .sound-slow{font-size:12px}
.speaker-line .recording-pending{font-size:11px;text-align:right;max-width:110px}
.conversation-history{margin:8px 0;font-size:14px}
.conversation-history summary{cursor:pointer;color:#627a5e;padding:8px 0}
.conversation-history .speech-bubble p{margin:4px 0;font-size:18px}
@media(max-width:600px){
 .lesson-content .speech-bubble{padding:10px 12px;margin-top:9px;margin-bottom:9px;width:calc(100% - 16px);border-radius:17px}
 .lesson-content .speech-bubble.incoming{margin-right:16px;border-bottom-left-radius:4px}
 .lesson-content .speech-bubble.outgoing{margin-left:16px;border-bottom-right-radius:4px}
 .lesson-content:has(.reply-bubble)>.instruction{display:none}
 .lesson-content:has(.typing-input)>.eyebrow{display:none}
 .speaker-line .sound-slow{font-size:0}
 .speaker-line .sound-slow span{font-size:17px}
 .lesson-content .bubble-georgian{font-size:22px;margin:3px 0}
 .lesson-content .reply-target{font-size:18px;margin:5px 0}
 .lesson-content .bubble-translation{font-size:14px}
 .reply-bubble .typing-input{font-size:20px}
}
@media(max-width:600px){
 .lesson-content:has(.typing-input)>.word-bank{margin-top:8px;margin-bottom:0}
 .lesson-content:has(.typing-input){padding-top:8px;padding-bottom:8px}
 .lesson-content:has(.typing-input)>h1{font-size:21px;margin-bottom:8px}
}
@media(max-width:600px){
 .lesson-content:has(.typing-input):has(.incoming)>h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
