@import url("./complex-fit.css");
@import url("./solids-render.css");
html body.apps-preview{--dmr-stroke:2px}.apps-preview-banner{padding:8px 16px;text-align:center;background:#d8cfe7;color:#212121;font:13px/1.4 Verdana,sans-serif;border-bottom:2px solid #212121}.apps-preview-banner a{color:inherit}.apps-preview-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font:14px/1.5 Verdana,sans-serif}.apps-preview-summary{min-width:0;overflow-wrap:anywhere}.apps-preview-actions{display:flex;gap:8px;flex-shrink:0}html body.apps-preview .apps-preview-actions button{border:2px solid #212121!important;min-height:44px;padding:8px 12px!important;background:#d1e8ca!important;color:#212121;font:400 15px/1.4 Verdana,sans-serif!important;cursor:pointer}html body.apps-preview #appsPreviewQr{background:#bde7fb!important}.apps-preview-dialog{box-sizing:border-box;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:2px solid #212121;border-radius:0;background:#fffcf0;color:#212121;font:15px/1.5 Verdana,sans-serif}.apps-preview-dialog::backdrop{background:#21212165}.apps-preview-dialog header,.apps-preview-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.apps-preview-dialog h2{font:400 24px/1.3 Verdana,sans-serif;margin:0}.apps-preview-dialog button,.apps-preview-dialog select{border:2px solid #212121!important;border-radius:0;min-height:44px;font-weight:400!important;text-transform:none!important;padding:8px!important;box-shadow:none!important}.apps-preview-dialog [data-close]{background:#d1e8ca;cursor:pointer}.apps-preview-dialog header [data-close]{width:44px;flex-shrink:0;font-size:24px}.apps-preview-dialog footer{margin-top:24px;font-size:12px}.apps-preview-dialog .apps-preview-settings-panel{display:flex!important;flex-direction:column!important;gap:16px;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;position:static!important;overflow:visible!important}.apps-preview-dialog .apps-preview-settings-panel>div{max-width:100%;min-width:0}.apps-preview-dialog fieldset{min-width:0;max-width:100%;box-sizing:border-box}.apps-preview-dialog [class$="-option-strip"]{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important}.apps-preview-dialog [class$="-choice-row"]{flex-wrap:wrap!important}.apps-preview-dialog [class$="-separator"]{display:none}.apps-preview-account-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-top:20px}.apps-preview-account-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;border:2px solid #212121;border-radius:0;color:#212121;text-decoration:none;background:#fffcf0;font-weight:600}.apps-preview-account-actions [data-signup]{background:#d1e8ca}.apps-preview-dialog :focus-visible{outline:3px solid #315c9a;outline-offset:3px}html body.apps-preview .apps-preview-replaced{display:none!important}html body.apps-preview .apps-preview-frame{box-sizing:border-box;border-width:2px!important;margin-inline:auto!important;max-width:calc(100% - 24px)!important}html body.apps-preview .apps-preview-frame button,html body.apps-preview .apps-preview-frame input,html body.apps-preview .apps-preview-frame select,html body.apps-preview .apps-preview-frame fieldset{border-width:2px!important;font-weight:400!important}html body.apps-preview .apps-preview-frame h1{text-transform:none!important;font-weight:400!important;font-size:clamp(24px,3vw,36px)!important}html body.apps-preview .apps-preview-frame [class$="-layout"]:has(>.practice-stage){grid-template-columns:minmax(0,1fr)!important}html body.apps-preview .apps-preview-frame [class$="-layout"]:has(>#timeStage){grid-template-columns:minmax(0,1fr)!important}html body.apps-preview [data-dmr-focus-host]:fullscreen{box-sizing:border-box;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;overflow:auto!important}html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame{height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;margin:auto!important;max-width:min(1240px,100%)!important}html body.apps-preview .apps-preview-actions button[hidden]{display:none!important}@media(max-width:600px){.apps-preview-strip{flex-wrap:wrap}.apps-preview-actions{width:100%;justify-content:space-between}.apps-preview-dialog{padding:16px}.apps-preview-account-actions{grid-template-columns:1fr}html body.apps-preview .apps-preview-frame{padding:12px!important}.apps-preview-banner{font-size:11px}}
/* Strong enough to override older per-app stroke and uppercase rules. */
html body.apps-preview #appsPreviewDialog *,html body.apps-preview #appsPreviewQrDialog *{border-width:2px!important;box-sizing:border-box}
html body.apps-preview #appsPreviewDialog button,html body.apps-preview #appsPreviewQrDialog button,html body.apps-preview #appsPreviewOptions,html body.apps-preview #appsPreviewQr{text-transform:none!important;font-weight:400!important;box-shadow:none!important}
html body.apps-preview #appsPreviewDialog [class*="button-row"],html body.apps-preview #appsPreviewDialog [class*="button-grid"],html body.apps-preview #appsPreviewDialog [class*="choice-grid"],html body.apps-preview #appsPreviewDialog [role="group"]{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;max-width:100%!important}
html body.apps-preview #appsPreviewDialog [class*="button-row"]>button,html body.apps-preview #appsPreviewDialog [class*="button-grid"]>button{flex:0 1 auto!important;min-width:44px!important;max-width:100%!important;width:auto!important;white-space:normal!important}
html body.apps-preview .apps-preview-frame .heading,html body.apps-preview .apps-preview-frame [class$="-panel"],html body.apps-preview .apps-preview-frame [data-dmr-answer-pad],html body.apps-preview .apps-preview-frame [class*="heading-actions"] button,html body.apps-preview .apps-preview-frame [class*="head-actions"] button{border-width:2px!important}
html body.apps-preview #fullscreenButton{border-width:2px!important}
html body.apps-preview .apps-preview-frame{background:#fffcf0!important;border:2px solid #212121!important;width:calc(100% - 48px)!important;max-width:1240px!important;padding:20px!important;margin:24px auto!important}
html body.apps-preview .apps-preview-frame *{border-width:2px!important}
html body.apps-preview .apps-preview-frame .dmr-answer-pad__key{text-transform:none!important;font-weight:400!important;min-width:0!important}
html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-workspace"],html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-stage"],html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-answer-panel"]{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;grid-template-rows:auto!important}
@media(max-width:600px){html body.apps-preview .apps-preview-frame{width:calc(100% - 24px)!important;margin:12px auto!important;padding:12px!important}html body.apps-preview .apps-preview-frame [class$="-equation-panel"] .question{min-height:100px!important}}
/* On short screens the frame scrolls; inner grids must not shrink below their controls. */
html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-workspace"],html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-answer-panel"],html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame [class$="-stage"]{min-height:max-content!important;grid-auto-rows:max-content!important}
html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame{grid-template-rows:auto!important;grid-auto-rows:max-content!important;align-content:start!important}
@media(min-width:640px) and (max-height:600px){html body.apps-preview .addition-workspace,html body.apps-preview .subtraction-workspace,html body.apps-preview .division-facts-workspace{grid-template-columns:minmax(0,1fr) minmax(280px,40%)!important}html body.apps-preview [data-dmr-focus-host]:fullscreen .apps-preview-frame{padding:12px!important}html body.apps-preview .apps-preview-strip{margin:6px 0!important}html body.apps-preview .apps-preview-frame .heading{margin:0!important;padding:0 0 6px!important}}
html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) [data-dmr-focus-host]:not([data-dmr-focus-frame]){display:flex!important;align-items:center!important;justify-content:center!important;height:100dvh!important;padding:16px!important;overflow:auto!important}
html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame{height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;grid-template-rows:max-content!important;grid-auto-rows:max-content!important;align-content:start!important;margin:auto!important}
html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-workspace"],html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-answer-panel"],html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-stage"]{height:auto!important;max-height:none!important;min-height:max-content!important;overflow:visible!important;grid-template-rows:max-content!important;grid-auto-rows:max-content!important}
@media(min-width:640px) and (max-height:600px){
html body.apps-preview .apps-preview-frame .heading h1{font-size:24px!important;line-height:1.2!important;margin:0!important}
html body.apps-preview .apps-preview-frame .question{height:auto!important;min-height:100px!important;font-size:clamp(28px,5vw,44px)!important}
html body.apps-preview .apps-preview-frame #enterRow{height:auto!important;min-height:0!important}
html body.apps-preview .apps-preview-frame #submit{height:44px!important;min-height:44px!important;padding:6px!important}
html body.apps-preview .apps-preview-frame .feedback:empty{display:none!important}
html body.apps-preview .apps-preview-frame .dmr-answer-pad__key{height:44px!important;min-height:44px!important;padding:4px!important}
}
html body.apps-preview .apps-preview-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.apps-preview-actions svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:#212121;stroke-width:1.75}.apps-preview-actions circle{fill:#d1e8ca}
html body.apps-preview .apps-preview-actions button{min-width:0;flex:1 1 auto}
/* Fit pass: use the real activity frame, never a second box around its parent. */
html body.apps-preview:not(.dmr-practice-focus-mode-active):not([class*="-fullscreen-active"]) [data-dmr-focus-host]:not(body):not(.apps-preview-frame){height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
html body.apps-preview .apps-preview-frame{height:auto!important;min-height:0!important;grid-template-rows:max-content!important;grid-auto-rows:max-content!important;gap:8px!important}
html body.apps-preview .apps-preview-frame>[class$="-head"],html body.apps-preview .apps-preview-frame>[class$="-heading"],html body.apps-preview .apps-preview-frame>.heading{margin:0!important;padding:0 0 8px!important;gap:8px!important}
html body.apps-preview .apps-preview-frame h1{margin:0!important}
html body.apps-preview .apps-preview-strip{margin:4px 0!important}
html body.apps-preview .apps-preview-banner{margin:12px!important}
@media(min-width:800px){
html body.apps-preview .apps-preview-frame{padding:12px!important;margin:12px auto!important}
html body.apps-preview .apps-preview-frame h1{font-size:28px!important;line-height:1.2!important}
html body.apps-preview .line-stage{grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr)!important;height:auto!important;padding:8px!important;gap:8px!important;overflow:visible!important}
html body.apps-preview .line-question,html body.apps-preview .line-work{padding:8px!important;gap:6px!important;height:auto!important;min-height:0!important;overflow:visible!important}
html body.apps-preview .line-question h2{font-size:24px!important}
html body.apps-preview .line-work h2{font-size:20px!important}
html body.apps-preview .line-question-visual{padding:4px!important;height:auto!important;min-height:0!important}
html body.apps-preview .number-line-visual{max-height:160px!important}
html body.apps-preview .number-line-visual svg{height:160px!important;max-height:160px!important}
html body.apps-preview .line-target-card{min-height:120px!important;padding:10px!important}
html body.apps-preview .line-answer,html body.apps-preview .line-submit{min-height:44px!important;height:44px!important;padding:6px!important}
html body.apps-preview .line-feedback{min-height:32px!important;padding:6px!important;font-size:14px!important}
html body.apps-preview .angles-stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,38%)!important;grid-template-rows:auto auto auto!important;gap:8px!important;padding:8px!important;height:auto!important;min-height:0!important;overflow:visible!important}
html body.apps-preview .angles-prompt{grid-column:1/-1;grid-row:1}
html body.apps-preview .angles-prompt h2{font-size:24px!important}
html body.apps-preview .angles-visual{grid-column:1;grid-row:2/4;height:auto!important;min-height:220px!important}
html body.apps-preview .angles-diagram{min-height:0!important;height:220px!important;max-height:240px!important}
html body.apps-preview .angles-answer-grid{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;align-content:start}
html body.apps-preview .angles-answer-grid button{min-height:44px!important;padding:6px!important;font-size:16px!important}
html body.apps-preview .angles-feedback{grid-column:2;grid-row:3;min-height:0!important;padding:8px!important;font-size:14px!important}
html body.apps-preview .angles-submit-row{padding:0!important}
}
/* Keep the number-line entry and its actions on one row at laptop widths. */
@media(min-width:800px){
html body.apps-preview #linePractice #answerForm{grid-template-columns:minmax(90px,1fr) auto!important;gap:6px!important;align-items:center!important}
html body.apps-preview #linePractice #answerForm .dmr-answer-pad-display{height:44px!important;min-height:44px!important;padding:4px!important;font-size:24px!important}
html body.apps-preview #linePractice .dmr-new-question-actions{display:flex!important;gap:6px!important}
html body.apps-preview #linePractice .dmr-new-question-actions button{font-size:14px!important;min-height:44px!important;padding:6px!important}
html body.apps-preview #linePractice .dmr-answer-pad{padding:0!important;margin:0!important}
html body.apps-preview #linePractice .dmr-answer-pad__keys{gap:4px!important}
html body.apps-preview #linePractice .dmr-answer-pad__key{height:36px!important;min-height:36px!important;padding:3px!important;font-size:20px!important}
html body.apps-preview #linePractice .line-stage{padding:6px!important}
html body.apps-preview .apps-preview-frame .angles-stage{grid-template-rows:auto auto auto!important}
}
/* A laptop still has room for question and answer side by side. Mobile keeps
   its original single column and comfortable touch targets. */
@media(min-width:800px){
html body.apps-preview .apps-preview-frame [class$="-stage"]:has(>[class$="-question"]):has(>[class$="-work"]){grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr)!important;height:auto!important;min-height:0!important;padding:8px!important;gap:8px!important;overflow:visible!important}
html body.apps-preview .apps-preview-frame [class$="-stage"]>[class$="-question"],html body.apps-preview .apps-preview-frame [class$="-stage"]>[class$="-work"]{padding:8px!important;gap:6px!important;min-height:0!important;height:auto!important}
html body.apps-preview .apps-preview-frame [class$="-stage"] h2{font-size:24px!important;margin:0!important}
html body.apps-preview .apps-preview-frame [class$="-feedback"]{min-height:32px!important;font-size:14px!important;padding:6px!important}
html body.apps-preview .apps-preview-frame .magic-grid-wrap{width:min(100%,260px)!important;margin-inline:auto!important}
html body.apps-preview .apps-preview-frame .magic-grid{width:100%!important}
html body.apps-preview .apps-preview-frame .quad-list #nameButtons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html body.apps-preview .apps-preview-frame .quad-list #nameButtons button{min-height:44px!important;padding:6px!important;font-size:14px!important}
html body.apps-preview .apps-preview-frame #visualPanel svg{height:240px!important;max-height:240px!important}
}
@media(min-width:800px) and (max-height:700px){
html body.apps-preview .apps-preview-frame .dmr-answer-pad__key{height:36px!important;min-height:36px!important;font-size:20px!important;padding:3px!important}
html body.apps-preview .apps-preview-frame .dmr-answer-pad__keys{gap:4px!important}
html body.apps-preview .apps-preview-frame .dmr-answer-pad{margin:0!important;padding:0!important}
}
@media(min-width:800px){
html body.apps-preview #linePractice #answerForm{grid-template-columns:minmax(70px,1fr) minmax(170px,1.7fr)!important}
html body.apps-preview #linePractice .dmr-new-question-actions{flex-direction:row!important;min-width:0!important;width:auto!important}
html body.apps-preview #linePractice .dmr-new-question-actions button{flex:1 1 0!important;min-width:0!important;width:auto!important}
html body.apps-preview #linePractice .line-stage{border-width:2px!important}
}
@media(min-width:800px) and (max-height:600px){
html body.apps-preview #linePractice{padding:8px!important}
html body.apps-preview #linePractice .line-stage{padding:4px!important}
html body.apps-preview #linePractice .line-question,html body.apps-preview #linePractice .line-work{padding:6px!important;gap:4px!important}
html body.apps-preview #linePractice .line-work h2{font-size:20px!important}
html body.apps-preview .angles-practice.apps-preview-frame{padding:8px!important}
}
/* Essential-content fit: cap decorative diagram growth, not the entire app. */
@media(min-width:800px){
html body.apps-preview .time-stage{grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr)!important;gap:8px!important;padding:8px!important}
html body.apps-preview .time-question-card,html body.apps-preview .time-answer-panel{padding:8px!important;gap:6px!important}
html body.apps-preview .time-clock{--time-clock-size:240px!important;width:min(100%,240px)!important}
html body.apps-preview .time-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html body.apps-preview .time-answer-grid button{min-height:44px!important;height:auto!important;font-size:18px!important;padding:8px!important}
html body.apps-preview .fractions-question-panel,html body.apps-preview .fractions-answer-panel{padding:8px!important;gap:6px!important}
html body.apps-preview .fractions-visual{min-height:180px!important;padding:8px!important}
html body.apps-preview .fraction-answer-display{font-size:32px!important;min-height:64px!important;padding:4px!important;min-width:84px!important}
html body.apps-preview .fractions-question-top{gap:6px!important}
html body.apps-preview .fractions-prompt{flex-basis:180px!important;font-size:22px!important}
html body.apps-preview .coordinates-stage{padding:8px!important;gap:8px!important;grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr)!important}
html body.apps-preview .coordinates-plane-panel,html body.apps-preview .coordinates-answer-panel{padding:8px!important;gap:6px!important}
html body.apps-preview .coordinate-plane{width:min(100%,300px)!important}
html body.apps-preview .coordinate-label{font-size:4.2px!important}
html body.apps-preview .coordinates-plane-wrap{padding:4px!important}
html body.apps-preview .calculator-stage,html body.apps-preview .calendar-stage{padding:8px!important;gap:8px!important}
html body.apps-preview .calculator-prompt{min-height:100px!important}
}
/* Old mobile shells reserved 150px for an 86px header. Measure the real nav. */
html body.apps-preview.has-dmr-shell:not(.dmr-practice-focus-mode-active):not([class*="-fullscreen-active"]):not(:fullscreen){padding-top:var(--apps-shell-height,88px)!important}
@media(max-width:600px){
html body.apps-preview .apps-preview-frame{padding:8px!important}
html body.apps-preview .apps-preview-frame [class$="-stage"]{padding:4px!important;gap:6px!important}
html body.apps-preview .apps-preview-frame [class$="-question"],html body.apps-preview .apps-preview-frame [class$="-work"]{padding:6px!important;gap:6px!important}
html body.apps-preview .apps-preview-frame [class$="-question"] h2,html body.apps-preview .apps-preview-frame [class$="-work"] h2{font-size:20px!important}
html body.apps-preview .apps-preview-frame [class$="-feedback"]{font-size:14px!important;min-height:32px!important;padding:6px!important}
}
@media(max-width:600px){
html body.apps-preview .fractions-question-panel,html body.apps-preview .fractions-answer-panel{padding:8px!important;gap:6px!important}
html body.apps-preview .fractions-question-top{gap:6px!important}
html body.apps-preview .fractions-prompt{flex-basis:140px!important;font-size:20px!important}
html body.apps-preview .fraction-answer-display{min-width:80px!important;min-height:88px!important;font-size:28px!important;padding:3px!important}
html body.apps-preview .fraction-answer-display__part{min-height:44px!important}
html body.apps-preview .fractions-visual{min-height:140px!important;padding:6px!important}
}
@media(max-width:600px){
html body.apps-preview .apps-preview-frame .dmr-answer-pad__key{min-height:44px!important;height:44px!important;font-size:18px!important;padding:4px!important}
html body.apps-preview .apps-preview-frame .dmr-answer-pad__keys{gap:4px!important}
}
@media(min-width:800px){
html body.apps-preview .time-question-card.is-clock-visual .time-visual{min-height:260px!important;padding:6px!important}
html body.apps-preview .time-question-card.is-clock-visual .time-clock{--time-number-radius:95px!important;--time-tick-radius:112px!important;--time-number-size:22px!important}
}
@media(max-width:600px){
html body.apps-preview .apps-preview-frame [class$="-stage"]{height:auto!important;min-height:0!important;grid-template-rows:none!important;grid-auto-rows:max-content!important}
html body.apps-preview .apps-preview-frame [class$="-stage"]>[class$="-question"],html body.apps-preview .apps-preview-frame [class$="-stage"]>[class$="-work"]{height:auto!important;min-height:0!important;overflow:visible!important}
}
@media(min-width:800px){
html body.apps-preview .coordinate-plane{width:min(100%,280px)!important}
html body.apps-preview #numberRiddlesPractice #answerForm{display:grid!important;grid-template-columns:minmax(80px,1fr) minmax(180px,1.7fr)!important;gap:6px!important}
html body.apps-preview #numberRiddlesPractice .dmr-new-question-actions{display:flex!important;flex-direction:row!important;gap:6px!important;min-width:0!important}
html body.apps-preview #numberRiddlesPractice .dmr-new-question-actions button{min-width:0!important;width:auto!important;min-height:44px!important;padding:6px!important;font-size:14px!important;flex:1 1 0!important}
html body.apps-preview #numberRiddlesPractice .dmr-answer-pad-display{min-height:44px!important;height:44px!important;padding:4px!important;font-size:24px!important}
}
/* Some apps fullscreen the body itself, not a descendant host. */
html body.apps-preview:fullscreen{box-sizing:border-box!important;min-height:0!important;height:100dvh!important;max-height:100dvh!important;padding:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:auto!important}
html body.apps-preview:fullscreen .apps-preview-frame{box-sizing:border-box!important;min-height:0!important;height:auto!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;overflow:auto!important}
html body.apps-preview:fullscreen .apps-preview-banner,html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-banner{display:none!important}
@media(min-width:800px) and (max-height:600px){
html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame{padding:6px!important}
html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-stage"]{padding:4px!important}
html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-stage"]>[class$="-question"],html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-stage"]>[class$="-work"],html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame [class$="-panel"]{padding:6px!important}
}
@media(min-width:800px) and (max-height:600px){
html body.apps-preview:is(:fullscreen,.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]),html body.apps-preview [data-dmr-focus-host]:fullscreen{padding:8px!important}
html body.apps-preview:is(:fullscreen,:has(:fullscreen),.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) .apps-preview-frame{max-height:calc(100dvh - 16px)!important}
html body.apps-preview:is(.dmr-practice-focus-mode-active,[class*="-fullscreen-active"]) [data-dmr-focus-host]:not(body):not(.apps-preview-frame){padding:8px!important}
}
@media(max-width:600px){
html body.apps-preview .apps-preview-frame :is(.calculator-key,.calculator-check-button,.calculator-next-button,.calendar-answer,.division-button){min-height:44px!important;height:auto!important;font-size:14px!important}
}
/* Sequences: supporting text belongs below the activity at every screen width. */
html body.apps-preview.number-sequence-practice-page:not(.number-sequence-fullscreen-active):not(.dmr-practice-focus-mode-active) .infoandapp{display:block!important}
html body.apps-preview.number-sequence-practice-page .info-panel{box-sizing:border-box;width:calc(100% - 48px)!important;max-width:1240px!important;margin:16px auto!important}
html body.apps-preview.number-sequence-practice-page #sequence{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;max-width:100%!important}
html body.apps-preview.number-sequence-practice-page #sequence .number-sequence-term{box-sizing:border-box;min-width:0!important;min-height:60px!important;padding:6px!important;font-size:clamp(24px,3.2vw,44px)!important}
html body.apps-preview.number-sequence-practice-page #sequence .number-sequence-term--missing{padding:0!important}
html body.apps-preview.number-sequence-practice-page #sequence .dmr-answer-pad-display,html body.apps-preview.number-sequence-practice-page #sequence .dmr-answer-pad-display__value{font-size:inherit!important;min-width:0!important;padding:0!important}
@media(max-width:600px){
html body.apps-preview.number-sequence-practice-page .info-panel{width:calc(100% - 24px)!important}
html body.apps-preview.number-sequence-practice-page #sequence{gap:4px!important}
html body.apps-preview.number-sequence-practice-page #sequence .number-sequence-term{min-height:48px!important;padding:3px!important;font-size:clamp(16px,4.5vw,22px)!important}
html body.apps-preview.number-sequence-practice-page .number-sequence-question{min-height:110px!important;padding:8px!important}
}
@media(max-width:360px){
html body.apps-preview.number-sequence-practice-page #sequence .number-sequence-term{padding:2px!important;font-size:14px!important}
}
html body.apps-preview.calendar-practice-page .calendar-day.is-highlighted{outline:none!important;box-shadow:none!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
html body.apps-preview.calendar-practice-page #calendarDays .calendar-day.is-highlighted{outline-width:0!important;outline-style:none!important;box-shadow:none!important}

.apps-preview-strip[hidden]{display:none!important}

html body.apps-preview #submit,html body.apps-preview #resetBtn{text-transform:none!important}
html body.apps-preview .dmr-tool-purpose,html body.apps-preview .dmr-tool-purpose summary:focus-visible{border-radius:0!important}

/* Centre the close icon independently of legacy button font and padding. */
html body.apps-preview :is(#appsPreviewDialog,#appsPreviewQrDialog) header [data-close]{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;line-height:1!important;flex:0 0 44px!important;text-decoration:none!important}
html body.apps-preview :is(#appsPreviewDialog,#appsPreviewQrDialog) header [data-close]:is(:hover,:focus,:active){text-decoration:none!important}
html body.apps-preview :is(#appsPreviewDialog,#appsPreviewQrDialog) header [data-close] svg{display:block!important;width:20px!important;height:20px!important;flex:none!important;margin:0!important;fill:none!important;stroke:currentColor!important;stroke-width:2;stroke-linecap:square;pointer-events:none}
html body.apps-preview :is(#appsPreviewDialog,#appsPreviewQrDialog) header [data-close]:focus-visible{outline:3px solid #315c9a!important;outline-offset:3px!important}
