#aiCoachView .sectionhead h2,#aiCoachView .sectionhead small{color:#fff7db}#aiCoachView .coach-shell{background:#fffaf0;color:#173d37;border-radius:24px;padding:clamp(18px,4vw,36px);max-width:850px;margin:auto}#aiCoachView .coach-intro{display:flex;align-items:center;gap:20px}#aiCoachView .coach-intro img{object-fit:contain;border-radius:18px;max-width:28%;height:auto}#aiCoachView h3{font-size:24px;line-height:1.25}#aiCoachView p{line-height:1.6}#aiCoachView label{display:block;font-weight:bold;margin:18px 0 8px}#aiCoachView select,#aiCoachView textarea{width:100%;padding:14px;border:2px solid #99b5a7;background:white;border-radius:12px;font:inherit;color:#173d37}#aiCoachView .coach-check{display:flex;align-items:center;gap:12px}#aiCoachView input{width:22px;height:22px}#aiCoachView .coach-note{font-size:14px;color:#466359}#aiCoachView .coach-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}#aiCoachView .coach-bubble{padding:16px 20px;border-radius:16px;background:#e2f1e3;margin:14px 0}#aiCoachView .coach-bubble.user{background:#ede5f6;margin-left:32px}#aiCoachView .coach-bubble b,#aiCoachView .coach-bubble span{display:block}#aiCoachView .coach-bubble span{font-size:20px;margin-top:7px}#aiCoachView .coach-tip{border-left:4px solid #ac8126;padding-left:14px}#aiCoachView .coach-tip:empty{display:none}#aiCoachView details{margin:14px 0}#aiCoachView summary{cursor:pointer;font-weight:bold}#aiCoachView footer{border-top:1px solid #b9cabe;margin-top:28px;padding-top:18px}#aiCoachView button:disabled{opacity:.5;cursor:not-allowed}#aiCoachView [hidden],#homeAiCoach[hidden]{display:none!important}#aiCoachView :focus-visible{outline:3px solid #be8419;outline-offset:3px}
#aiCoachView .coach-speaker{position:sticky;bottom:12px;z-index:15;display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:12px;margin:16px 0;padding:16px;background:#f7f0dc;color:#173d37;border:2px solid #bd9237;border-radius:20px;box-shadow:0 8px 24px #153a3530}#aiCoachView .coach-speaker img{width:104px;height:104px;object-fit:contain;border-radius:14px}#aiCoachView .coach-speaker p{margin:7px 0;max-height:24vh;overflow:auto;font-size:18px;overflow-wrap:anywhere}#aiCoachView .coach-speaker button{grid-column:1/-1;justify-self:end}#aiCoachView .coach-speaker[data-state="speaking"] .coach-wave i{animation:coach-wave .7s ease-in-out infinite alternate}#aiCoachView .coach-correction{font-weight:700;background:#e2f1e3;border-radius:12px;padding:12px}#aiCoachView .coach-correction:empty{display:none}@media(max-width:450px){#aiCoachView .coach-speaker{grid-template-columns:76px minmax(0,1fr);padding:12px;bottom:8px}#aiCoachView .coach-speaker img{width:76px;height:90px}}@media(prefers-reduced-motion:reduce){#aiCoachView .coach-speaker .coach-wave i{animation:none!important}}

#aiCoachView .coach-bubble.assistant{display:flow-root}#aiCoachView .coach-bubble-portrait{float:left;width:64px;height:64px;object-fit:contain;margin:0 12px 8px 0;border-radius:14px;background:#fffaf0}#aiCoachView .coach-translation{background:#f5eedc;border-left:4px solid #b78e32;padding:12px 16px;border-radius:10px}#aiCoachView .coach-hints{padding:16px;background:#faf0d4;border:1px solid #cba857;border-radius:16px;margin-top:18px}#aiCoachView .coach-hints p{font-size:14px}#coachHintOptions{display:flex;flex-wrap:wrap;gap:10px}#coachHintOptions button{text-align:left;white-space:normal}

#aiCoachView .coach-review{margin:22px 0;padding:20px;background:#e7f2e7;border:2px solid #71966e;border-radius:18px;color:#173d37}#aiCoachView .coach-review h3{margin-top:0}#aiCoachView .coach-review h4{margin-bottom:4px}#aiCoachView .coach-review p{margin-top:5px}#aiCoachView #coachPractice{background:#fffaf0;padding:12px;border-radius:10px;font-weight:700}

#aiCoachView .coach-bubble.assistant{display:grid;grid-template-columns:88px minmax(0,1fr);gap:4px 14px;align-items:start}#aiCoachView .coach-bubble.assistant .coach-bubble-portrait{grid-column:1;grid-row:1/3;position:relative;float:none;display:block;width:88px;height:100px;overflow:hidden;margin:0;background:#fffaf0;border-radius:16px}#aiCoachView .coach-bubble-portrait img{position:absolute;display:block;width:176px;height:176px;max-width:none;left:-7px;top:-10px;object-fit:contain}#aiCoachView .coach-bubble.assistant>b,#aiCoachView .coach-bubble.assistant>span:not(.coach-bubble-portrait){grid-column:2;min-width:0;overflow-wrap:anywhere}@media(max-width:400px){#aiCoachView .coach-bubble.assistant{padding:12px;gap:4px 10px;grid-template-columns:76px minmax(0,1fr)}#aiCoachView .coach-bubble.assistant .coach-bubble-portrait{width:76px;height:94px}}

.coach-ai-disclosure{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:.3rem 1rem;padding:12px 16px;background:#173e36;color:#fff;border:2px solid #dfbf68;border-radius:12px;box-shadow:0 3px 12px #0002}.coach-ai-disclosure span{font-size:.9rem}
