#dmTeacherOral{position:fixed;inset:0;z-index:2147483642;display:flex;align-items:center;justify-content:center;background:#071d39bd;backdrop-filter:blur(7px);padding:16px;font-family:Nunito,system-ui,sans-serif;color:#17344a;overflow:auto;overscroll-behavior:contain}#dmTeacherOral *{box-sizing:border-box}#dmTeacherOral [hidden]{display:none!important}.dm-oral-panel{position:relative;width:min(100%,620px);max-height:calc(100dvh - 32px);overflow:auto;background:linear-gradient(145deg,#fffdf3,#ecf9fd);border:2px solid #d8eef7;border-radius:26px;padding:30px;box-shadow:0 18px 70px #03162e70}.dm-oral-panel h1{margin:8px 0;font-size:30px}.dm-oral-panel>p{font-size:14px;line-height:1.5}.dm-oral-eyebrow{color:#17727f;font-weight:900;letter-spacing:2px}.dm-oral-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#dceaf0;color:#1c4960;font-size:20px;cursor:pointer}.dm-oral-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.dm-oral-fields label{font-size:13px;font-weight:850;display:grid;gap:7px}.dm-oral-fields select{width:100%;min-width:0;height:44px;border:1px solid #accbd6;border-radius:12px;background:#fff;color:#183e55;padding:7px;font:inherit}#dmTeacherOral button{font-family:inherit;cursor:pointer;touch-action:manipulation}#dmTeacherOral button:disabled{opacity:.5;cursor:default}.dm-oral-main{width:100%;min-height:50px;border:1px solid #ffe78e;border-radius:15px;background:linear-gradient(#ffdd57,#ffb92d);color:#563a0c;font-size:19px;font-weight:900;box-shadow:0 4px 0 #ce8b1c}.dm-oral-card{margin-top:24px;border:2px solid #bbdfeb;border-radius:22px;padding:22px;text-align:center;background:white;box-shadow:0 8px 20px #173e5510}.dm-oral-card>small{font-size:11px;font-weight:850;letter-spacing:1px;color:#618496}.dm-oral-card h2{font-size:clamp(27px,7vw,48px);overflow-wrap:anywhere;margin:16px 0;color:#125c79}.dm-oral-card>button{border:0;border-radius:10px;padding:9px 14px;background:#edf4f8;color:#40687c;min-height:42px}.dm-oral-card>p{font-weight:850;font-size:21px;color:#186b61;overflow-wrap:anywhere}.dm-oral-grades{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.dm-oral-grades button{min-height:48px;border:0;border-radius:13px;padding:10px;font-size:15px;font-weight:900;color:#fff;background:#178678}.dm-oral-grades button+button{background:#a94655}.dm-oral-status{min-height:24px;font-weight:850;color:#14536a}.dm-oral-note{font-size:12px!important;color:#66808d}.dm-oral-panel :focus-visible{outline:3px solid #158baa;outline-offset:3px}@media(max-width:480px){.dm-oral-panel{padding:24px 16px}.dm-oral-fields{grid-template-columns:1fr;gap:9px;margin:16px 0}.dm-oral-panel h1{font-size:26px}.dm-oral-card{padding:18px 12px}}@media(max-height:600px){#dmTeacherOral{align-items:flex-start}.dm-oral-panel{padding-top:18px}.dm-oral-fields{margin:10px 0}}

.dm-oral-timer{display:grid;gap:7px;margin-top:15px;color:#12697a;font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}.dm-oral-timer>div{height:8px;background:#e2edf2;border-radius:9px;overflow:hidden}.dm-oral-timer i{display:block;height:100%;width:100%;background:#16a292;transition:width .1s linear}.dm-oral-timer.urgent{color:#b52c45}.dm-oral-timer.urgent i{background:#cf4359}.dm-oral-retry{margin-top:14px;min-height:44px;border:1px solid #b3495d;border-radius:10px;background:#fff0f2;color:#98273e;padding:10px}

.dm-oral-fields{grid-template-columns:1fr}.dm-oral-native{display:none}.dm-oral-choices{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto;padding:5px 3px;color:#66808d}.dm-oral-choices button{border:2px solid #c6e0e9;border-radius:13px;padding:10px 15px;min-height:46px;background:#fff;color:#214e66;font-size:15px;font-weight:850;box-shadow:0 3px 0 #d3e7ed}.dm-oral-choices button[aria-pressed="true"]{background:#147c91;border-color:#086175;color:white;box-shadow:0 3px 0 #064d60;transform:translateY(-1px)}.dm-oral-card[data-result="correct"]{border-color:#1ca681;animation:dm-oral-pop .35s ease}.dm-oral-card[data-result="wrong"]{border-color:#ce536d;animation:dm-oral-pop .35s ease}@keyframes dm-oral-pop{50%{transform:scale(1.025)}}@media(prefers-reduced-motion:reduce){.dm-oral-card{animation:none!important}}

.dm-time-celebration{text-align:center;padding:24px 12px}.dm-time-prize{font-size:100px;filter:drop-shadow(0 8px 15px #e9a82970);animation:dm-chest-bounce 1.6s ease-in-out infinite}.dm-time-celebration button{background:linear-gradient(135deg,#ffda54,#f8a925);border:2px solid #fff1aa;border-radius:16px;padding:14px 24px;color:#624208;font:900 18px Nunito,system-ui;cursor:pointer;min-height:48px}.dm-time-celebration.is-open .dm-time-prize{animation:dm-chest-reveal .7s ease-out both}.dm-time-celebration [data-chest-result]{font-size:21px;font-weight:900;color:#158168}@keyframes dm-chest-bounce{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(6deg) translateY(-12px)}}@keyframes dm-chest-reveal{0%{transform:scale(.6) rotate(-15deg);opacity:.2}60%{transform:scale(1.3) rotate(10deg)}100%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.dm-time-prize{animation:none!important}}


/* Oral question is a separate, centered full-screen stage; the picker remains mounted beneath it. */
#dmTeacherOral .dm-oral-question-screen[hidden]{display:none!important}
#dmTeacherOral .dm-oral-question-screen{
 position:fixed;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;
 padding:calc(16px + env(safe-area-inset-top,0px)) calc(14px + env(safe-area-inset-right,0px))
 calc(16px + env(safe-area-inset-bottom,0px)) calc(14px + env(safe-area-inset-left,0px));
 overflow:auto;background:linear-gradient(135deg,#e5f8fc,#f6fcf3 56%,#e9f5ff);
}
#dmTeacherOral .dm-oral-question-stage{
 position:relative;display:flex;flex-direction:column;justify-content:center;align-items:stretch;
 width:min(100%,730px);max-height:100%;min-height:min(490px,calc(100dvh - 40px));
 padding:clamp(18px,4vw,38px);border-radius:26px;background:#fffefa;
 border:2px solid #bedfe9;box-shadow:0 18px 65px #173e552b;text-align:center;overflow:auto;
}
#dmTeacherOral .dm-oral-question-back{
 position:absolute;right:12px;top:12px;z-index:2;display:grid;place-items:center;
 width:44px;height:44px;border-radius:13px;border:1px solid #bad5df;background:#e9f2f5;
 color:#16465a;font-size:24px;font-weight:800;cursor:pointer;
}
#dmTeacherOral .dm-oral-question-heading{padding:16px 42px 0;color:#245b70}
#dmTeacherOral .dm-oral-question-heading small{letter-spacing:2px;font-weight:900;color:#188596}
#dmTeacherOral .dm-oral-question-heading h2{font-size:clamp(22px,4vw,32px);margin:6px 0}
#dmTeacherOral .dm-oral-question-heading p{font-size:13px;margin:0;color:#66808d}
#dmTeacherOral .dm-oral-question-stage .dm-oral-card{margin-top:16px;box-shadow:none}
#dmTeacherOral .dm-oral-question-stage .dm-oral-card h2{font-size:clamp(34px,7vw,58px)}
#dmTeacherOral .dm-oral-resume{margin-top:10px;min-height:44px;border:1px solid #a4cfda;
 border-radius:12px;background:#ebf9fa;color:#15556b;font-weight:850;width:100%}
@media(max-width:480px){
 #dmTeacherOral .dm-oral-question-screen{padding:8px}
 #dmTeacherOral .dm-oral-question-stage{border-radius:18px;padding:18px 10px;min-height:min(440px,calc(100dvh - 16px))}
 #dmTeacherOral .dm-oral-question-heading{padding:22px 40px 0}
 #dmTeacherOral .dm-oral-question-stage .dm-oral-grades{gap:7px}
 #dmTeacherOral .dm-oral-question-stage .dm-oral-grades button{font-size:13px;padding:8px 4px}
}

/* Standalone oral word screen, outside all teacher dialog stacking contexts. */
#dmTeacherOralQuestion{position:fixed!important;inset:0!important;z-index:2147483647!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 background:linear-gradient(135deg,#e5f8fc,#f6fcf3 56%,#e9f5ff)!important;
 overflow:auto;box-sizing:border-box;color:#17344a;font-family:Nunito,system-ui,sans-serif;
 padding:calc(12px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px))
 calc(12px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));}
#dmTeacherOralQuestion[hidden]{display:none!important}
#dmTeacherOralQuestion *{box-sizing:border-box}
#dmTeacherOralQuestion .dm-oral-question-stage{position:relative;width:min(100%,760px);max-height:100%;overflow:auto;
 min-height:min(520px,calc(100dvh - 40px));display:flex;flex-direction:column;justify-content:center;
 padding:clamp(18px,4vw,40px);background:#fffefa;border:2px solid #b7dce9;border-radius:24px;
 box-shadow:0 15px 50px #173e5529;text-align:center}
#dmTeacherOralQuestion .dm-oral-question-back{position:absolute;top:12px;right:12px;z-index:2;
 display:grid;place-items:center;width:44px;height:44px;border:1px solid #bad5df;border-radius:12px;
 background:#e9f2f5;color:#16465a;font-size:24px;font-weight:800;cursor:pointer}
#dmTeacherOralQuestion .dm-oral-question-heading{padding:12px 42px 0;color:#245b70}
#dmTeacherOralQuestion .dm-oral-question-heading small{letter-spacing:2px;font-weight:900;color:#188596}
#dmTeacherOralQuestion .dm-oral-question-heading h2{font-size:clamp(22px,4vw,32px);margin:6px 0}
#dmTeacherOralQuestion .dm-oral-question-heading p{font-size:13px;color:#66808d;margin:0}
#dmTeacherOralQuestion .dm-oral-card{margin-top:15px;border:2px solid #bbdfeb;border-radius:22px;
 padding:clamp(18px,4vw,30px);text-align:center;background:white;box-shadow:none}
#dmTeacherOralQuestion .dm-oral-card h2{font-size:clamp(34px,8vw,64px);color:#125c79;overflow-wrap:anywhere}
#dmTeacherOralQuestion button{font-family:inherit;touch-action:manipulation;cursor:pointer}
#dmTeacherOralQuestion button:disabled{opacity:.5;cursor:default}
#dmTeacherOralQuestion .dm-oral-grades{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
#dmTeacherOralQuestion .dm-oral-grades button{min-height:48px;border:0;border-radius:13px;
 padding:10px;font-size:15px;font-weight:900;color:white;background:#178678}
#dmTeacherOralQuestion .dm-oral-grades button+button{background:#a94655}
#dmTeacherOralQuestion .dm-oral-card>button{border:0;border-radius:10px;padding:9px 14px;
 background:#edf4f8;color:#40687c;min-height:42px}
#dmTeacherOralQuestion .dm-oral-card>p{font-weight:850;font-size:21px;color:#186b61}
#dmTeacherOralQuestion .dm-oral-timer{display:grid;gap:7px;margin-top:15px;color:#12697a;font-weight:850}
#dmTeacherOralQuestion .dm-oral-timer>div{height:8px;background:#e2edf2;border-radius:9px;overflow:hidden}
#dmTeacherOralQuestion .dm-oral-timer i{display:block;height:100%;background:#16a292}
#dmTeacherOralQuestion .dm-oral-timer.urgent i{background:#cf4359}
#dmTeacherOralQuestion [hidden]{display:none!important}
#dmTeacherOralQuestion :focus-visible{outline:3px solid #158baa;outline-offset:3px}
@media(max-width:480px){#dmTeacherOralQuestion{padding:7px}
 #dmTeacherOralQuestion .dm-oral-question-stage{padding:16px 9px;min-height:min(460px,calc(100dvh - 14px))}
 #dmTeacherOralQuestion .dm-oral-grades button{font-size:13px;padding:8px 4px}
}


/* The question is a separate viewport, not a card under the class/student/unit form. */
#dmTeacherOralQuestion{height:100dvh!important;min-height:100vh!important;overscroll-behavior:contain}
#dmTeacherOralQuestion .dm-oral-question-stage{
 width:100%!important;max-width:1000px!important;height:100%!important;
 min-height:0!important;max-height:100%!important;
 display:flex!important;align-items:center;justify-content:center;
 gap:clamp(12px,3vh,26px);overflow:auto;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;
}
#dmTeacherOralQuestion .dm-oral-question-back{
 position:fixed!important;top:calc(16px + env(safe-area-inset-top,0px))!important;
 right:calc(16px + env(safe-area-inset-right,0px))!important;
 width:48px;height:48px;font-size:26px;
}
#dmTeacherOralQuestion .dm-oral-question-heading{padding:0 48px;text-align:center}
#dmTeacherOralQuestion .dm-oral-question-stage .dm-oral-card{
 width:min(100%,720px);margin:0!important;padding:clamp(20px,5vw,48px);
 border-radius:24px;box-shadow:0 18px 48px #173e5518!important
}
#dmTeacherOralQuestion .dm-oral-loading{padding:36px 12px;font-size:clamp(20px,4vw,30px);font-weight:900;color:#12697a}
@media(max-width:480px){
 #dmTeacherOralQuestion .dm-oral-question-stage{gap:14px}
 #dmTeacherOralQuestion .dm-oral-question-heading{padding:0 45px}
 #dmTeacherOralQuestion .dm-oral-question-back{top:calc(12px + env(safe-area-inset-top,0px))!important;right:calc(12px + env(safe-area-inset-right,0px))!important}
}

/* Leave breathing room below grading and emphasize the next word action. */
#dmTeacherOral .dm-oral-main{margin-top:14px}
#dmTeacherOralQuestion .dm-oral-card>.dm-oral-next{
 display:block;width:100%;margin-top:26px;min-height:54px;padding:14px 18px;
 border:1px solid #ffe78e;border-radius:15px;
 background:linear-gradient(135deg,#ffdf63,#ffb92d);color:#563a0c;
 font-size:clamp(16px,4vw,20px);font-weight:900;
 box-shadow:0 4px 0 #ce8b1c,0 8px 18px #eaa62c26;
}
#dmTeacherOralQuestion .dm-oral-card>.dm-oral-next:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #ce8b1c}
#dmTeacherOral .dm-oral-choices button:focus-visible{outline:3px solid #158baa;outline-offset:3px}
