.coach-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.coach-panel{padding:25px}.coach-messages{height:440px;overflow:auto;padding:20px 0;display:flex;flex-direction:column;gap:15px;scroll-behavior:smooth}.coach-welcome{margin:auto;text-align:center;max-width:420px}.coach-welcome p{line-height:1.7;color:var(--muted,#677267)}.chat-bubble{background:#eef2e7;padding:16px 20px;border-radius:18px 18px 18px 3px;max-width:94%;align-self:flex-start}.chat-bubble.from-you{background:#f1e6d8;align-self:flex-end;border-radius:18px 18px 3px 18px}.chat-bubble strong{font-size:12px;letter-spacing:.05em}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:15px;margin:7px 0 0}#coach-form textarea{display:block;width:100%;min-height:95px;border:1px solid #d5dccd;border-radius:12px;padding:14px;font:inherit;margin:10px 0 14px;resize:vertical;background:#fffef9}#coach-form label{font-size:13px;font-weight:600}.coach-aside{display:grid;gap:18px}.coach-aside .button{margin-top:12px;width:100%;text-align:left;white-space:normal}.coach-aside p{line-height:1.65;margin-top:10px}@media(max-width:1000px){.coach-layout{grid-template-columns:1fr}.coach-aside{grid-template-columns:1fr 1fr}.coach-aside>p{grid-column:1/-1}}@media(max-width:600px){.coach-aside{grid-template-columns:1fr}.coach-panel{padding:16px}.coach-messages{height:390px}.sidebar nav{grid-template-columns:repeat(6,1fr)}.nav-item span{font-size:10px}}
.curriculum-group{background:#fffef9;border:1px solid #dde1d5;border-radius:14px;padding:20px;margin:15px 0}.curriculum-group>summary{font-weight:600;cursor:pointer;line-height:1.7}.curriculum-group>summary span{font-size:12px;margin-left:10px}.curriculum-group .module-list{margin-top:15px}.session-group{border-top:1px solid #e5e8df;margin-top:15px;padding-top:15px}.session-group summary{cursor:pointer;font-size:14px}.curriculum-group ol{padding:18px 24px;font-size:14px;line-height:1.8}.curriculum-group>p{margin-top:15px}

.lesson-card>.scenario{white-space:pre-line}
/* One scroll region for messages; the composer stays mounted and stationary. */
.teaching-example{margin:20px 0;padding:18px;background:#eef2e7;border-radius:12px}.teaching-example .scenario{margin:10px 0 0;font-size:22px;line-height:1.5}.optional-practice{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.optional-practice summary{cursor:pointer;font-size:13px}.optional-practice p,.optional-practice form{margin-top:12px}.audio-dialog{width:min(480px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);padding:22px}.audio-dialog::backdrop{background:#16271da8}.audio-dialog h2{font-size:28px;overflow-wrap:anywhere}.audio-dialog p{margin:16px 0;line-height:1.6}.audio-dialog audio{width:100%;margin:10px 0}.audio-dialog audio[hidden]{display:none}.audio-credit a{text-decoration:underline}
.coach-panel{display:flex;flex-direction:column;height:min(720px,85dvh);min-height:340px;overflow:hidden}
.coach-panel>.row,#coach-form{flex:none}
.coach-messages{height:auto;min-height:0;flex:1;overscroll-behavior-y:contain;overflow-anchor:none;scroll-behavior:auto;scrollbar-gutter:stable}
.chat-bubble,.coach-messages>[role=status]{flex-shrink:0}
#coach-form{border-top:1px solid var(--line);padding-top:12px;background:var(--white)}
#coach-form textarea{min-height:56px;height:70px;max-height:120px;resize:none;font-size:16px;margin:8px 0}
#coach-form label::after{content:' · Enter to send · Shift+Enter for a new line';font-size:10px;font-weight:400;color:var(--muted)}
@media(max-width:600px){.coach-panel{height:calc(100dvh - 100px);min-height:300px;padding:14px}.coach-panel>.row{gap:6px;flex-wrap:wrap}.coach-messages{height:auto;padding:12px 0}#coach-form .row{gap:6px}.chat-bubble{padding:12px 14px}}
