/* Compact discovery and a single teaching card with a private lesson outline. */
.mat-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.mat-grid>.mat-results-count,.mat-grid>.mat-load-more,.mat-grid>.empty-state { grid-column:1/-1; }
.mat-compact-card { display:flex;flex-direction:row;align-items:center;gap:14px;padding:14px;min-height:122px;box-shadow:none;border:1px solid #e1e7df;border-radius:13px;overflow:hidden; }
.mat-compact-art { width:92px;height:90px;border-radius:9px;flex-shrink:0;overflow:hidden;display:grid;place-items:center;color:#688271;font-size:27px;font-weight:600; }
.mat-compact-art img { width:100%;height:100%;object-fit:cover; }
.mat-compact-copy { flex:1;min-width:0; }
.mat-compact-copy .mat-title-button h3 { font:600 15px/1.35 'DM Sans',sans-serif;letter-spacing:0;margin:4px 0; }
.mat-compact-copy p { color:#788579;font-size:12px;line-height:1.4;margin:3px 0; }
.mat-compact-copy>small { color:#8b978b;font-size:11px; }
.mat-compact-meta { display:flex;gap:7px;flex-wrap:wrap;font-size:10px;color:#6d8270; }
.mat-compact-meta span:first-child { color:#365e46;font-weight:700; }
.mat-compact-actions { display:flex;align-items:center;gap:3px;flex-shrink:0; }
.mat-search-filters { flex-wrap:wrap;min-width:0;max-width:100%; }
.mat-search-filters select { font-size:12px;min-height:36px;min-width:0; }
.mat-picker-filters { min-width:0; }
.mat-picker-filters select { max-width:100%; }
.mat-toolbar { padding:14px 16px;margin-bottom:14px; }
.cl-lesson-layout,.cl-lesson-preview { display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100%; }
.cl-lesson-preview { grid-template-columns:250px minmax(0,1fr);border:1px solid #e4e8df;border-radius:12px;overflow:clip;margin-top:16px;min-height:65dvh; }
.modal:has(.cl-lesson-preview) { width:min(1480px,calc(100vw - 48px));max-width:calc(100vw - 48px); }
.cl-lesson-preview .cl-lesson-canvas { max-width:none; }
.cl-lesson-preview .cl-focus-card { padding:32px clamp(20px,3vw,44px) 24px; }
.cl-lesson-preview .cl-lesson-illustration { width:auto;max-width:100%;max-height:360px;object-fit:contain;margin-left:auto;margin-right:auto; }
.cl-lesson-student { grid-template-columns:minmax(0,1fr); }
/* Card navigation shares a class name with the teacher's material queue. */
nav.cl-lesson-plan { background:#fbfcf8;border-right:1px solid #e4e9df;min-width:0;align-self:stretch; }
.cl-plan-title { padding:22px 18px 17px;display:flex;flex-direction:column;gap:9px; }
.cl-plan-title strong { color:#426a53;font-size:13px; }
.cl-plan-title>span { font-size:13px;line-height:1.5;font-weight:600; }
.cl-plan-title>small { color:#8c978b;font-size:11px; }
nav.cl-lesson-plan ol { list-style:none;margin:0;padding:0 8px 18px; }
nav.cl-lesson-plan li { margin:3px 0; }
nav.cl-lesson-plan li button { width:100%;display:flex;align-items:center;gap:8px;min-height:43px;text-align:left;padding:8px 9px;border-radius:7px;font-size:12px;color:#526458; }
nav.cl-lesson-plan li button:hover { background:#edf3e9; }
nav.cl-lesson-plan li button[aria-current=step] { background:#e1f2e9;color:#236749; }
.cl-plan-number { width:14px;flex-shrink:0;color:#a0aaa0;font-size:11px; }
.cl-plan-type { font-size:14px;color:#9aaa9e;width:17px;flex-shrink:0; }
[aria-current=step] .cl-plan-type { color:#39826a; }
.cl-plan-name { flex:1;line-height:1.4; }
nav.cl-lesson-plan button>small { font-size:10px;color:#98a195; }
.cl-plan-done { color:#559357;font-size:12px; }
.cl-plan-progress { padding:16px;font-size:11px;color:#73846f;border-top:1px solid #e4e9df; }
.cl-lesson-canvas { min-width:0;max-width:1050px;width:100%;margin:0 auto; }
.cl-focus-card { padding:30px clamp(20px,4vw,56px) 20px; }
.cl-card-eyebrow { font-size:10px;letter-spacing:1px;color:#8a9b88;text-transform:uppercase;margin-bottom:15px; }
.cl-focus-card h2 { font:600 clamp(23px,2.5vw,34px)/1.2 'DM Sans',sans-serif;color:#244b3b;margin:0 0 25px;letter-spacing:-.8px; }
.cl-lesson-illustration { display:block;width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin:8px 0 25px; }
.cl-lesson-story-title { font:500 24px/1.3 Georgia,serif;color:#375a44;margin:14px 0; }
.cl-card-text { white-space:pre-line;font-size:16px;line-height:1.9;color:#425b4c; }
.cl-lesson-goals { border-radius:12px;background:#f0f5e8;padding:20px 25px;margin-top:22px; }
.cl-lesson-goals h3 { font-size:14px;margin-bottom:10px; }
.cl-lesson-goals ul { padding-left:20px;font-size:14px;line-height:1.9;color:#61765c; }
.cl-rule-card { background:#f5f4eb;border-left:3px solid #9bb18b;border-radius:0 10px 10px 0;padding:22px; }
.cl-wordlist { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:12px;background:#f2f5ef;padding:12px 20px;margin-top:20px;gap:0 24px; }
.cl-wordlist>div { display:grid;grid-template-columns:18px 1fr;gap:4px 9px;padding:14px 0;border-bottom:1px solid #e1e7da; }
.cl-wordlist>div>span { grid-row:span 2;font-size:11px;color:#94a18d; }
.cl-wordlist strong { font-size:16px;color:#3a5f48; }
.cl-wordlist small { font-size:12px;color:#829078; }
.cl-focus-card .learn-exercises { padding:0; }
.cl-focus-card .learn-exercise { border:0;padding:0;box-shadow:none;background:transparent;margin:0; }
.cl-focus-card .learn-exercise-head { align-items:flex-start; }
.cl-focus-card .learn-exercise-head h3 { font:600 clamp(22px,2.3vw,30px)/1.3 'DM Sans',sans-serif; }
.cl-focus-card .learn-passage { font-size:16px;line-height:1.9;background:#f5f6ef;padding:22px;border-radius:12px;white-space:pre-line; }
.cl-focus-card .learn-questions { padding:0;margin-top:22px; }
.cl-card-pager { display:flex;align-items:center;justify-content:center;gap:22px;padding:18px;margin:5px 25px 18px;border-top:1px solid #edf0e8;color:#94a18f;font-size:12px; }
.cl-card-pager button { height:34px;width:34px;border-radius:50%;font-size:22px;color:#3b8766; }
.cl-card-pager button:hover { background:#eaf2e6; }.cl-card-pager button:disabled { opacity:.3; }
.cl-lesson-canvas>.learn-summary,.cl-lesson-canvas>.learn-result { margin:10px 25px 25px; }
.learn-match-columns .learn-question-body { display:grid;grid-template-columns:minmax(100px,1fr) minmax(150px,1fr);gap:12px;align-items:center; }
.learn-match-columns select { width:100%;min-height:42px;border:1px solid #dce4d7;border-radius:8px;padding:8px;background:#fff;color:#3d6047;font-size:14px; }
.learn-match-columns .learn-feedback,.learn-match-columns .learn-teacher-answer,.learn-match-columns .learn-review { grid-column:1/-1; }
.cl-stage-switch { display:flex;gap:3px;padding:3px;background:#f0f4e9;border-radius:8px;margin-left:auto; }
.cl-stage-switch button { padding:5px 13px;border-radius:6px;font-size:12px; }.cl-stage-switch button[aria-pressed=true] { background:white;color:#35694f;box-shadow:0 1px 3px #24482b15; }
.cl-open-whiteboard { width:100%;margin-bottom:15px; }
/* Persistent SVG board. The shell is kept mounted across remote updates. */
.wb { display:flex;flex-direction:column;height:100%;min-height:550px;background:#fafbf8; }
.wb-toolbar { position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #e1e7dc;background:#fff; }
.wb-toolbar button { height:34px;min-width:34px;border-radius:7px;padding:5px;font-size:19px;color:#536b59; }
.wb [hidden] { display:none!important; }
.wb-toolbar .wb-labeled-button { font-size:12px;padding:6px 10px;white-space:nowrap; }
.wb-toolbar .wb-delete-button { color:#9b504a; }
.wb-toolbar button[aria-pressed=true] { background:#e0eee3;color:#29644b; }.wb-toolbar button:hover { background:#edf3e9; }.wb-toolbar button:disabled { opacity:.35; }
.wb-color { display:flex;align-items:center;gap:4px;font-size:12px; }.wb-color input { width:28px;height:30px;border:0;padding:2px;background:transparent;cursor:pointer; }
.wb-image { cursor:pointer;font-size:12px;border:1px solid #dce4d6;border-radius:7px;padding:8px 10px;color:#55704e;margin:0 5px; }
.wb-zoom { display:flex;align-items:center;gap:4px;margin-left:auto; }.wb-zoom output { font-size:11px;min-width:33px; }.wb-zoom [data-wb-zoom-reset] { min-width:48px; }
.wb-status { padding:8px 16px;font-size:11px;color:#7a8e73;background:#f5f8ef; }.wb-status[data-error=true] { color:#a34c3b;background:#fff0e8; }
.wb-stage { position:relative;display:flex;flex:1;min-height:0; }
.wb-workspace { position:relative;display:flex;flex:1;min-width:0;min-height:0; }
.wb-workspace>.wb-stage { min-width:0; }
.wb-call-slot { display:none; }
.wb-viewport { position:relative;overflow:hidden;flex:1;min-width:0;min-height:300px;max-height:65dvh;overscroll-behavior:contain;touch-action:none; }
.wb-surface { position:absolute;inset:0;overflow:hidden;background:#fafbf8; }
.wb-canvas { display:block;width:100%;height:100%;touch-action:none;max-width:none;user-select:none; }
.wb-node-text { padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-family:'DM Sans',sans-serif;font-size:22px;pointer-events:none; }
.wb-node-text.is-placeholder { opacity:.45; }
.wb-inline-editor { position:absolute;z-index:1;display:block;box-sizing:border-box;margin:0;border:0;border-radius:5px;outline:none;background:transparent;resize:none;line-height:1.5;font-family:'DM Sans',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:inset 0 0 0 1px #27887555; }
.wb-object-tools { position:absolute;z-index:2;display:flex;gap:2px;padding:3px;border:1px solid #dce6dc;border-radius:8px;background:#fff;box-shadow:0 3px 12px #253d3420; }
.wb-object-tools button { min-width:28px;height:25px;padding:3px 8px;font-size:12px;border-radius:5px;color:#3e6953; }.wb-object-tools button:hover { background:#eaf2e7; }.wb-object-tools [data-wb-delete] { color:#9b504a; }
.wb-context { position:absolute;z-index:3;left:12px;right:12px;bottom:12px;max-height:45%;overflow:auto;border:1px solid #dce6dc;border-radius:10px;box-shadow:0 4px 18px #253d3418;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 16px;border-bottom:1px solid #e1e7dc;background:#f8faf5;font-size:12px;color:#536b59; }
.wb-context>strong { font-size:12px; }.wb-context [data-wb-edit] { padding:5px 8px;border-radius:6px;background:#e7efe3;font-size:12px; }
.wb-note-colors { display:flex;gap:6px; }.wb-note-colors button { width:24px;height:24px;min-width:24px;background:var(--note-swatch);border:1px solid #294b3526;border-radius:50%;box-shadow:inset 0 1px 1px #ffffff99; }.wb-note-colors button[aria-pressed=true] { outline:2px solid #37816b;outline-offset:2px; }
.wb-size-fields { display:flex;gap:10px;margin-left:auto; }.wb-size-fields label { display:flex;align-items:center;gap:5px;font-size:11px; }.wb-size-fields input { width:62px;min-width:0;border:1px solid #d8e2d4;background:#fff;border-radius:5px;padding:5px;color:#45654e;font-size:12px; }
.wb-resize-nw,.wb-resize-se { cursor:nwse-resize; }.wb-resize-ne,.wb-resize-sw { cursor:nesw-resize; }
.wb-sticker-picker { padding:12px 16px;background:#fffefb;border-bottom:1px solid #e1e7dc;max-height:355px;overflow:auto;flex-shrink:0; }
.wb-pack-heading { display:flex;align-items:center;gap:12px;color:#355f4c; }.wb-pack-heading strong { font-size:14px; }.wb-pack-heading>span { font-size:11px;color:#87947e; }.wb-pack-heading>button { margin-left:auto;min-width:30px;font-size:22px; }
.wb-pack-tabs { display:flex;gap:4px;overflow-x:auto;padding:6px 2px; }.wb-pack-tabs button { display:flex;flex-direction:column;align-items:center;min-width:70px;padding:3px;border-radius:8px;color:#667b61;font-size:10px; }.wb-pack-tabs button[aria-selected=true] { background:#e7f0e4;color:#28694f; }.wb-pack-tabs svg { display:block;width:48px;height:48px; }
.wb-pack-emotions { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:6px; }.wb-pack-emotions button { display:flex;flex-direction:column;align-items:center;min-width:0;padding:5px;border:1px solid #e6ebdf;border-radius:10px;background:#f7f9f2;font-size:11px;color:#5d7556; }.wb-pack-emotions button:hover { background:#e9f2e3;border-color:#9dbf97; }.wb-pack-emotions svg { display:block;width:100%;max-width:100px;aspect-ratio:1; }
.wb-help { padding:10px 16px;font-size:11px;color:#8c9a85;margin:0; }
@media(max-width:700px) { .wb-context { padding:8px;gap:9px; }.wb-size-fields { margin-left:0; }.wb-sticker-picker { padding:10px;max-height:370px; }.wb-pack-emotions { grid-template-columns:repeat(3,minmax(0,1fr)); }.wb-pack-emotions svg { max-width:65px; }.wb-pack-heading { gap:6px; }.wb-pack-heading strong { font-size:12px; }.wb-toolbar .wb-labeled-button { padding:5px 7px; } }
.cl-studio-live .wb { min-height:0; }.cl-studio-live .wb-viewport { max-height:none; }
@media(min-width:1500px) { .cl-lesson-layout { grid-template-columns:255px minmax(0,1fr); }.cl-lesson-student { grid-template-columns:1fr; } }
@media(max-width:1100px) { .mat-grid { grid-template-columns:1fr; }.cl-lesson-layout,.cl-lesson-preview { grid-template-columns:185px minmax(0,1fr); }.cl-lesson-student { grid-template-columns:1fr; }.cl-plan-title { padding:16px 12px; }nav.cl-lesson-plan li button { gap:5px;font-size:11px; }.cl-plan-type { display:none; }.cl-focus-card { padding:24px 20px; } }
@media(max-width:700px) { .cl-lesson-layout,.cl-lesson-preview { display:flex;flex-direction:column; }nav.cl-lesson-plan { border-right:0;border-bottom:1px solid #e4e9df; }.cl-plan-title { padding:12px;gap:5px; }.cl-plan-title>span,.cl-plan-title>small { display:none; }nav.cl-lesson-plan ol { display:flex;overflow:auto;padding:0 8px 8px;gap:5px; }nav.cl-lesson-plan li { flex-shrink:0; }nav.cl-lesson-plan li button { width:auto;min-height:34px; }.cl-lesson-preview { max-height:none; }.cl-lesson-preview .cl-lesson-canvas { overflow:visible; }.cl-wordlist { grid-template-columns:1fr; }.mat-compact-art { width:65px;height:78px; }.mat-compact-card { gap:10px;padding:10px; }.mat-compact-actions { flex-direction:column; }.mat-compact-copy .mat-title-button h3 { font-size:13px; }.mat-compact-meta { font-size:9px; }.cl-stage-visibility { display:none; }.learn-match-columns .learn-question-body { grid-template-columns:1fr; }.wb { min-height:500px; }.wb-toolbar { padding:7px; }.wb-help { font-size:10px; } }
@media(max-width:700px) { .modal-overlay:has(.cl-lesson-preview) { padding:8px; }.modal:has(.cl-lesson-preview) { width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:16px; }.cl-lesson-preview .cl-focus-card { padding:22px 16px; } }

@media(max-width:460px){.mat-search-filters select{flex:1 1 140px;width:100%;max-width:100%}.mat-picker-filters select{flex:1 1 140px;width:100%;min-width:0}}

/* Picture-led children's pilot. A short prompt, a picture, one clear action. */
.cl-kids-visual { background:#fffcf4; }
.cl-kids-visual .cl-card-text { font-size:20px;line-height:1.5;max-width:38ch; }
.cl-kids-visual .cl-card-eyebrow { font-size:12px; }
.cl-picture-gallery { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0; }
.cl-picture-gallery figure { margin:0;background:#fff;border:1px solid #e8e4d7;border-radius:20px;overflow:hidden; }
.cl-picture-gallery img { display:block;width:100%;aspect-ratio:320/260;object-fit:contain; }
.cl-picture-gallery figcaption { text-align:center;padding:12px;font-size:20px;font-weight:600;color:#365c49; }
.cl-picture-gallery figcaption small { display:block;margin-top:5px;font-size:13px;font-weight:400;color:#6c776b; }
.cl-picture-vocabulary { grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px; }
.cl-picture-rule { display:flex;flex-wrap:wrap;gap:12px; }
.cl-picture-rule p { font-size:20px;margin:0;padding:16px 20px;border-radius:14px;background:#eaf0df;color:#365c49; }
.learn-visual-exercise .learn-questions { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px; }
.learn-visual-exercise .learn-question { display:block;border:2px solid #e7e4d8;border-radius:20px;padding:14px;background:#fff;min-width:0; }
.learn-visual-exercise .learn-question.is-correct { border-color:#86b899;background:#f3faf2; }
.learn-visual-exercise .learn-question.is-incorrect { border-color:#deaa85;background:#fffaf3; }
.learn-visual-exercise .learn-question-number { display:none; }
.learn-visual-exercise .learn-question-body,.learn-visual-exercise.learn-match-columns .learn-question-body { display:flex;flex-direction:column;gap:12px;align-items:stretch; }
.learn-question-picture { width:100%;max-height:260px;aspect-ratio:320/260;object-fit:contain;border-radius:12px; }
.learn-visual-exercise .learn-question-text { font-size:17px;line-height:1.5;text-align:center; }
.learn-picture-cue { align-self:center;color:#436754;background:#eaf0df;border-radius:30px;font-size:11px;letter-spacing:.08em;font-weight:700;padding:6px 12px; }
.learn-picture-choices { display:flex;flex-wrap:wrap;justify-content:center;gap:8px; }
.learn-picture-choices button { flex:1 1 95px;border:1px solid #d9e1d4;border-radius:12px;min-height:46px;padding:10px;background:#fff;font-size:15px;color:#375641; }
.learn-picture-choices button:hover { background:#edf3e8; }
.learn-picture-choices button[aria-pressed="true"] { background:#3d7257;color:#fff;border-color:#3d7257; }
.learn-picture-choices button:focus-visible { outline:3px solid #c7a74e;outline-offset:3px; }
.learn-visual-exercise .learn-feedback { font-size:13px;margin:0; }
.learn-visual-exercise .learn-teacher-answer { font-size:12px; }
.learn-auto-result { color:#42694e;font-size:14px;font-weight:600; }
.learn-live-tally { margin-left:auto; }
.learn-exercise-status { margin-top:16px; }
.learn-reset-confirm { padding:16px;background:#fff8e8;border:1px solid #e7d5aa;border-radius:12px;margin-top:12px; }
.learn-reset-confirm p { margin:0 0 12px; }
.learn-reset-confirm button { margin-right:8px; }
.mat-classelia-start { display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf4e7;border:1px solid #d9e5cf;border-radius:16px;padding:20px; }
.mat-classelia-start h3 { margin:6px 0;font-size:21px;color:#365c49; }
.mat-classelia-start p { margin:0;font-size:13px;line-height:1.6; }
.mat-classelia-start .btn { flex-shrink:0; }
.mat-lesson-picker { display:grid;gap:10px; }
.mat-lesson-picker .btn { display:flex;align-items:flex-start;flex-direction:column;text-align:left;white-space:normal; }
.mat-lesson-picker span { font-size:12px;font-weight:400; }
.cl-add-classelia { width:100%;margin:0 0 10px; }
@media(max-width:800px) {
 .cl-picture-gallery { gap:10px; }
 .mat-classelia-start { align-items:stretch;flex-direction:column; }
}
@media(max-width:520px) {
 .learn-visual-exercise .learn-questions { grid-template-columns:1fr; }
 .cl-picture-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .cl-picture-gallery figcaption { font-size:16px; }
 .learn-question-picture { max-height:240px; }
 .learn-visual-exercise .learn-question { padding:12px; }
}

/* Illustrated stories: short conversations and substantive language tasks. */
.kids-scene-viewport { display:block;position:relative;overflow:hidden;aspect-ratio:1;background:#f0eee3;border-radius:12px;isolation:isolate; }
.kids-scene-viewport img.kids-scene-art { position:absolute;width:200%;height:200%;max-width:none;max-height:none;object-fit:fill;aspect-ratio:auto;margin:0;border-radius:0; }
.kids-scene-viewport.kids-scene-context { aspect-ratio:3/2; }
.kids-scene-viewport.kids-scene-context img.kids-scene-art { position:static;width:100%;height:100%;object-fit:contain; }
.kids-scene-viewport.kids-scene-context.is-detail img.kids-scene-art { position:absolute;width:200%;height:200%;object-fit:fill; }
.cl-scene-vocabulary { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;margin-top:20px; }
.cl-scene-vocabulary .cl-wordlist { margin:0; }
.kids-dialogue-layout:has(.kids-scene-context) .cl-picture-gallery.is-dialogue-scene { grid-template-columns:1fr; }
@media(max-width:700px) { .cl-scene-vocabulary { grid-template-columns:1fr; } }
.cl-lesson-story-hero { max-width:620px;margin:18px auto; }
.cl-kids-visual:has(.kids-dialogue) .cl-card-text { font-size:17px; }
.kids-dialogue-layout { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:22px;align-items:start;margin-top:20px; }
.kids-dialogue-layout .cl-picture-gallery { display:grid;grid-template-columns:1fr;margin:0;gap:12px; }
.kids-dialogue-layout .cl-picture-gallery figcaption { font-size:13px;font-weight:500;padding:9px; }
.kids-dialogue { display:flex;flex-direction:column;gap:12px; }
.kids-dialogue-line { padding:12px 16px;border-radius:3px 16px 16px;background:#eef2e5;margin-right:18px; }
.kids-dialogue-line.speaker-1 { background:#f5ebdf;margin-left:18px;margin-right:0;border-radius:16px 3px 16px 16px; }
.kids-dialogue-line.speaker-2 { background:#e8eef3; }
.kids-dialogue-line strong { display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#57725a;margin-bottom:5px; }
.kids-dialogue-line p { font-size:17px;line-height:1.55;margin:0;color:#294b3a; }
.kids-dialogue-task { padding:14px 18px;background:#f1f3e9;border-left:3px solid #9eb395;font-size:14px;line-height:1.6;margin-top:22px; }
.learn-story-exercise .learn-questions { display:flex;flex-direction:column;gap:18px; }
.learn-story-exercise .learn-question-body,.learn-story-exercise.learn-match-columns .learn-question-body { display:grid;grid-template-columns:minmax(150px,32%) minmax(0,1fr);gap:12px 20px;align-items:start; }
.learn-story-exercise .learn-question-body>.learn-question-picture { grid-column:1;grid-row:1/span 5;width:100%;max-height:none; }
.learn-story-exercise .learn-question-body>:not(.learn-question-picture) { grid-column:2; }
.learn-story-exercise .learn-question-text { text-align:left;font-size:16px;line-height:1.6; }
.learn-story-exercise .learn-picture-choices { display:flex;flex-direction:column;align-items:stretch; }
.learn-story-exercise .learn-picture-choices button { flex:none;text-align:left;padding:11px 14px;line-height:1.5; }
.learn-story-exercise input,.learn-story-exercise textarea { width:100%;min-width:0; }
.learn-story-exercise .learn-answer-textarea { min-height:130px; }
.learn-word-order { min-width:0; }
.learn-built-sentence { display:flex;flex-wrap:wrap;gap:6px;min-height:66px;padding:12px;border:1px dashed #9fb39a;border-radius:12px;background:#f5f8f0;align-items:center; }
.learn-built-sentence>span { font-size:13px;color:#7c8c77; }
.learn-built-sentence button,.learn-token-bank button { padding:8px 12px;min-height:40px;border:1px solid #cad8c4;border-radius:8px;background:#fff;font-size:15px;color:#31553f; }
.learn-built-sentence button { background:#deebd7; }
.learn-token-bank { display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 10px; }
.learn-token-bank button:disabled { opacity:.3; }
.learn-word-order button:focus-visible { outline:3px solid #c5a24c;outline-offset:2px; }
@media(max-width:700px) {
 .learn-story-exercise .learn-question-body,.learn-story-exercise.learn-match-columns .learn-question-body { display:flex;flex-direction:column; }
 .learn-story-exercise .learn-question-body>.learn-question-picture { width:100%;max-width:390px;align-self:center; }
 .learn-story-exercise .learn-question-body>:not(.learn-question-picture) { width:100%; }
 .kids-dialogue-line p { font-size:16px; }
}
.kids-dialogue-layout .cl-picture-gallery.is-dialogue-scene { grid-template-columns:repeat(2,minmax(0,1fr)); }
.kids-scene-zoom { position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.9);color:#355e48;font-size:24px;box-shadow:0 1px 6px #0002; }
.kids-scene-zoom:hover { background:#fff; }
.kids-scene-zoom:focus-visible { outline:3px solid #c5a24c;outline-offset:-3px; }
.kids-scene-zoomed { width:min(100%,760px);margin:auto; }
.cl-teens-visual .cl-card-text { font-size:17px;line-height:1.65; }
.cl-teens-visual .kids-dialogue-line { border-radius:10px;background:#edf1f3; }
.cl-teens-visual .kids-dialogue-line.speaker-1 { border-radius:10px;background:#f3eee6; }
.cl-teens-visual .kids-dialogue-line p { font-size:17px; }
.cl-teens-visual .kids-dialogue-task { background:#edf1ed;border-left-color:#6e8c83; }
.cl-teens-visual .cl-picture-gallery:not(.is-dialogue-scene) { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:600px) { .cl-teens-visual .cl-picture-gallery:not(.is-dialogue-scene) { grid-template-columns:1fr; } }

/* Drawing tools stay within reach in the lesson and the expanded board. */
.wb-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:#fff;border-bottom:1px solid #e1e7dc;flex-shrink:0; }
.wb-heading strong { font-size:14px;color:#355f4c; }
.wb-heading button { display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid #cddfce;border-radius:9px;background:#eff6ed;color:#355f4c;font:500 13px/1.2 inherit;cursor:pointer; }
.wb-toolbar { flex-shrink:0;gap:6px; }
.wb-toolbar button { display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;cursor:pointer; }
.wb-drawing-tools { display:flex;gap:3px;padding:0 8px;border-left:1px solid #e1e7dc;border-right:1px solid #e1e7dc; }
.wb-drawing-tools button { flex-direction:column;gap:3px;height:52px;min-width:52px; }
.wb-drawing-tools span { font-size:10px;line-height:1.1; }
.wb-drawing-tools svg { flex-shrink:0; }
.wb-drawing-settings { display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:8px 14px;background:#fff;border-bottom:1px solid #e1e7dc;flex-shrink:0; }
.wb-palette { display:flex;gap:3px;flex-wrap:wrap; }
.wb-palette button { position:relative;display:grid;place-items:center;width:32px;height:36px;border:0;border-radius:7px;background:transparent;cursor:pointer; }
.wb-palette button::before { content:'';width:22px;height:22px;border-radius:50%;background:var(--ink);border:1px solid #253d3433; }
.wb-palette button[aria-pressed=true] { background:#e0eee3; }
.wb-palette button[aria-pressed=true]::before { outline:2px solid #355f4c;outline-offset:2px; }
.wb-stroke-size { display:flex;align-items:center;gap:10px;font-size:12px;color:#536b59; }
.wb-stroke-size input { width:110px;min-height:36px;accent-color:#476b58;cursor:pointer; }
.wb-stroke-size output { min-width:20px;font-variant-numeric:tabular-nums; }
.wb-stroke-size svg { border:1px solid #e1e7dc;border-radius:6px;background:#f6f8f4; }
.wb-eraser-hint { font-size:12px;color:#71826b; }
.wb-undo-erase { min-height:40px;padding:7px 10px;border:1px solid #cddfce;border-radius:7px;background:#eff6ed;color:#355f4c;font-size:12px;cursor:pointer; }
.wb-undo-erase:disabled { opacity:.45;cursor:wait; }
.wb button:focus-visible,.wb input:focus-visible { outline:2px solid #278875;outline-offset:2px; }
body:has(.wb.is-fullscreen) { overflow:hidden; }
.wb.is-fullscreen { position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;min-height:0!important;max-height:none;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);isolation:isolate; }
/* Fullscreen tools belong to the board's flow, not the room's scrollport. */
.wb.is-fullscreen>.wb-toolbar { position:relative;top:auto; }
.wb.is-fullscreen .wb-viewport { min-height:0;max-height:none; }
.wb.is-fullscreen .wb-stage { flex:1;min-height:0; }
.wb.is-fullscreen .wb-call-slot:not(:empty) { display:flex;position:absolute;z-index:8;min-width:0;min-height:0; }
.wb-call-slot>.cl-call-dock-area { display:flex;height:100%;min-height:0; }
.wb-call-slot .lesson-call-dock { display:flex;flex-direction:column;min-height:0;padding:7px 7px 22px;box-shadow:0 6px 26px #253d3426;overflow:auto; }
.wb-call-slot .lesson-call-dock .lesson-call-placement { display:none; }
.wb-call-slot .lesson-call-dock-header { flex-shrink:0;height:32px; }
.wb-call-slot .lesson-call-drag { height:32px;user-select:none; }
.wb-call-slot .lesson-call-size button { width:30px;height:30px; }
.wb-call-slot .lesson-call-dock .lesson-call-videos { flex:1;min-height:30px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr); }
.wb-call-slot .lesson-call-dock .lesson-call-tile { aspect-ratio:auto;min-height:0;max-height:none; }
.wb-call-slot .lesson-call-dock .lesson-call-tile video { position:absolute;inset:0;object-fit:contain; }
.wb-call-slot .lesson-call-controls { flex-shrink:0; }
.wb-call-slot .lesson-call-dock .lesson-call-controls .btn { min-height:36px;height:36px; }
.wb-call-slot .lesson-call-dock[data-call-locked=false] .lesson-call-resize { display:grid;width:28px;height:24px;bottom:0;right:0;cursor:nwse-resize;color:#476b58;font-size:16px; }
.wb-call-slot .lesson-call-moving { user-select:none; }
.wb.is-fullscreen .wb-sticker-picker,.wb.is-fullscreen .wb-material-picker { max-height:30dvh; }
.wb-upload-status:empty { display:none; }
@media(max-width:700px) {
  .wb-heading { padding:6px 8px; }
  .wb-toolbar { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 8px; }
  .wb-toolbar>* { flex-shrink:0; }
  .wb-toolbar .wb-zoom { margin-left:0; }
  .wb-drawing-settings { padding:6px 8px;gap:4px 12px; }
  .wb-palette { width:100%;flex-wrap:nowrap;overflow-x:auto; }
  .wb-palette button { flex-shrink:0; }
  .wb-eraser-hint { max-width:170px; }
  .wb.is-fullscreen .wb-help { display:none; }
  .wb.is-fullscreen .wb-status { padding:5px 8px; }
}
@media(max-height:500px) {
  .wb.is-fullscreen .wb-help { display:none; }
  .wb.is-fullscreen>.wb-toolbar { flex-wrap:nowrap;overflow-x:auto; }
  .wb.is-fullscreen>.wb-toolbar>* { flex-shrink:0; }
  .wb.is-fullscreen .wb-drawing-settings { flex-wrap:nowrap;overflow-x:auto; }
  .wb.is-fullscreen .wb-drawing-settings>* { flex-shrink:0; }
  .wb.is-fullscreen .wb-palette { width:auto; }
}
