/* New learning tools only. Existing mobile page layout remains authoritative. */
.finish-question-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:20px 0;max-height:34dvh;overflow:auto;padding:3px}
.finish-question-grid .finish-question{min-height:48px;padding:9px 10px;border:1px solid #c7cbc7;border-radius:10px;background:#fffefa;color:#344950;font:500 13px/1.6 'DM Sans','Noto Sans Myanmar',sans-serif;cursor:pointer;text-align:left}
.finish-question-grid .answered{background:#eef3ee;border-color:#a9b7ab}.finish-question-grid .unanswered{background:#f7f0e2;border-color:#c6b28a}.finish-question-grid button:disabled{opacity:.55;cursor:default}
.finish-question-grid button:focus-visible,.math-methods button:focus-visible,.video-knowledge-check button:focus-visible{outline:3px solid #947b49;outline-offset:2px}
#submit-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}
.exam-source{min-width:0;max-width:100%;border:1px solid #d3d4cb;border-radius:14px;background:#f9f7f1;margin:16px 0;padding:14px}
.exam-source>summary{font-weight:600;min-height:44px;line-height:1.8;cursor:pointer;color:#344950}
.exam-answer-pane,.exam-task{min-width:0}.exam-source .rla-passage{border:0;padding:0;margin:0}.exam-source .source-text{white-space:pre-line}
.timing-analysis,.math-methods,.video-knowledge-check{margin:24px 0;padding:22px;border:1px solid #d3d4cb;border-radius:16px;background:#fffefa;color:#344950;min-width:0}
.timing-analysis h2,.math-methods h3,.video-knowledge-check h4{margin:0 0 12px;line-height:1.6}.timing-analysis p,.math-methods p,.math-methods li,.video-knowledge-check p{line-height:1.9;overflow-wrap:anywhere}
.timing-table-wrap{overflow-x:auto}.timing-analysis table{width:100%;border-collapse:collapse;font-size:14px}.timing-analysis th,.timing-analysis td{text-align:left;padding:12px 10px;border-bottom:1px solid #e0dfd7}.timing-analysis th{color:#75613d;font-weight:600}.timing-analysis summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600}
.math-method-switch,.video-check-options{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.math-method-switch button,.video-check-options button,.video-check-replay{min-height:48px;border:1px solid #c9c7ba;border-radius:10px;background:#f7f4ed;padding:10px 14px;color:#344950;font:500 14px/1.8 'DM Sans','Noto Sans Myanmar',sans-serif;cursor:pointer}
.math-method-switch button[aria-pressed=true]{background:#eadfc8;border-color:#ad9360;color:#344950}.math-methods ol{padding-left:24px}.math-methods li+li{margin-top:10px}.math-method-note{border-left:3px solid #b49a66;padding-left:12px;font-size:14px}
.video-check-options{flex-direction:column}.video-check-options button{text-align:left;width:100%}.video-check-options button[aria-pressed=true]{background:#eadfc8;border-color:#947b49}.video-check-feedback{padding:12px;background:#f2f4ef;border-radius:10px;line-height:1.9}.video-check-replay{margin-top:12px}.video-check-status{font-size:13px;color:#637177}.video-knowledge-check[hidden],.timing-analysis[hidden],.math-methods[hidden],.exam-source[hidden]{display:none!important}
@media(min-width:1024px){
  .sc-soft-ui .hub-frontdoor,.sc-soft-ui .video-card,.sc-soft-ui .test-card,.sc-soft-ui .lesson-card{border-color:#d9d9d0;border-radius:18px;box-shadow:0 8px 28px #34495006}
  .sc-soft-ui .hub-frontdoor:hover,.sc-soft-ui .video-card:hover,.sc-soft-ui .lesson-card:hover{border-color:#b9aa89;box-shadow:0 12px 32px #3449500a}
  .sc-soft-ui :is(.video-library,.instructions,.test-list-section){line-height:1.75}
  .sc-soft-ui .video-library h1,.sc-soft-ui .instructions h1{font-size:clamp(36px,3.1vw,48px);letter-spacing:-1.2px;line-height:1.3}
  .sc-soft-ui .video-card-body{padding:22px}.sc-soft-ui .video-grid{gap:22px}.sc-soft-ui .video-filters{gap:16px;margin-block:24px 16px}
  .sc-soft-ui .video-watch,.sc-soft-ui .test-card .button,.sc-soft-ui .lesson-card .button{border-radius:10px;min-height:46px}
  #view-exam .exam-grid{grid-template-columns:minmax(0,1fr) 220px;align-items:start;gap:20px}
  #view-exam .question-card{padding:28px;min-width:0;border-color:#d0d3c9;border-radius:18px}
  #view-exam .exam-task.has-source{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:26px;align-items:start}
  #view-exam .exam-task.has-source .exam-source{margin:0;position:sticky;top:104px;max-height:calc(100dvh - 140px);overflow:auto;overscroll-behavior:contain}
  #view-exam .exam-answer-pane h2{margin-top:0;font-size:22px;line-height:1.7}
  #view-exam .exam-answer-pane .question-footer{gap:10px;flex-wrap:wrap}
  #view-exam .map-panel{position:sticky;top:104px;border-radius:16px}
  .sc-soft-ui #view-results:focus{outline:none}.sc-soft-ui .result-hero{padding-block:40px 30px}.sc-soft-ui .result-hero h1{font-size:clamp(40px,4vw,56px);line-height:1.2;letter-spacing:-1.5px}
  .sc-soft-ui .result-stats{border-radius:16px;overflow:hidden;border-color:#d0d3c9}.sc-soft-ui .result-stats>div{padding-block:26px}
  .sc-soft-ui .class-summary{gap:24px}.sc-soft-ui .class-summary article{border:1px solid #d9d9d0;box-shadow:0 8px 24px #34495005}
}
@media(min-width:1024px) and (max-width:1199px){#view-exam .exam-grid{grid-template-columns:minmax(0,1fr) 176px;gap:16px}#view-exam .exam-task.has-source{gap:18px}#view-exam .question-card{padding:20px}}
