.multiplication-advanced .t2-root{width:100%;height:100%;min-height:0;display:grid;place-items:center;overflow:hidden}
.multiplication-advanced .mult-advanced-canvas{display:block;width:100%;height:100%;max-height:100%;font-family:Nunito,Arial,sans-serif;fill:#244c45}
.multiplication-advanced .mult-advanced-canvas text{font-weight:750}
.multiplication-advanced{padding:0!important;background:#edf0e4!important}
.multiplication-advanced svg image,.multiplication-advanced svg use{pointer-events:none}
.multiplication-advanced .advanced-retry[hidden]{display:none!important}

/* Scoped short-phone shell: visible transcript, 44px controls, contain model. */
@media(max-width:760px) and (max-height:620px){
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-classroom{padding:2px 0 4px!important;gap:3px!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-teacher{grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:40px 44px!important;gap:3px!important;padding:0 0 55px!important;min-height:142px!important;flex-shrink:0;align-self:stretch;transform:none!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-avatar{width:52px!important;height:84px!important;grid-column:1;grid-row:1/3}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-state{display:none}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-bubble{position:relative!important;width:auto!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 6px!important;overflow:auto!important;grid-column:2;grid-row:1;clip-path:none!important;white-space:normal!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-transcript{display:block!important;font-size:14px!important;line-height:1.2!important;max-height:none!important;-webkit-line-clamp:unset!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-visual-cues{display:none!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .narration-controls{grid-column:2;grid-row:2;align-self:center;margin:0!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teaching-area{padding-top:0!important;margin-top:18px!important;min-height:0!important;transform:none!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) #teaching-board.multiplication-advanced{width:100%!important;height:calc(100dvh - 318px)!important;min-height:0!important;max-height:302px!important;aspect-ratio:auto!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) #teaching-board .t2-root,.topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) #teaching-board .mult-advanced-canvas{height:100%!important;max-height:100%!important;aspect-ratio:auto!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-footer{min-height:44px!important;padding-top:3px!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-footer button{height:44px!important;min-height:44px!important;padding:3px 5px!important;line-height:1.1!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-footer [data-topic-next]{height:44px!important;min-height:44px!important}
}
/* Short phones retain real touch targets and readable teaching space. */
@media(max-width:760px) and (max-height:620px){
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-header{gap:2px!important;padding:2px 9px!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-breadcrumb span{display:none!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teacher-classroom{justify-content:flex-start!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .lesson-teacher{top:0!important;bottom:auto!important;min-height:134px!important;padding-bottom:47px!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) :is(#lesson-support-dock,#lesson-support-dock>*,#lesson-support-dock button,#raise-hand){height:44px!important;min-height:44px!important;max-height:44px!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) .teaching-area{margin-top:0!important}
 .topic-lesson-shell[data-grade="3"]:has(#teaching-board.multiplication-advanced) #teaching-board.multiplication-advanced{height:calc(100dvh - 318px)!important;max-height:302px!important}
}


.multiplication-advanced .mult-records{position:absolute;inset:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;box-sizing:border-box}.multiplication-advanced .mult-records h2{font-size:20px;margin:0}.multiplication-advanced .mult-records p{font-size:14px;line-height:1.3;margin:0}.multiplication-advanced .mult-records button{flex-shrink:0;min-height:52px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;font:inherit;font-size:16px;padding:8px 12px;border-radius:12px;border:1px solid #b7cbbf;background:#fffdf4;color:#244c45}.multiplication-advanced .mult-records small{font-size:13px}.topic-lesson-shell:has(.multiplication-advanced) :is([data-mult-next],[data-mult-confirm]){min-height:44px;white-space:normal;line-height:1.2}.topic-lesson-shell:has(.multiplication-advanced) .lesson-footer button{min-height:44px}

.multiplication-advanced .mult-records button>span{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:0;overflow-wrap:anywhere}.multiplication-advanced .mult-records button>b{flex-shrink:0}
