.exam-dialog{width:min(900px,calc(100% - 40px));max-height:92dvh;padding:0;border:1px solid #e2e7e3;border-radius:26px;background:#fcfdfb;color:#263e35;box-shadow:0 24px 90px #193c3633;overflow:hidden;isolation:isolate}.exam-dialog::backdrop{background:#234b46a6}.exam-header{display:flex;justify-content:space-between;align-items:center;padding:26px 30px 22px;border-bottom:1px solid #e1e8df;background:#fff}.exam-header h2{margin:7px 0 0;font-size:25px}.exam-eyebrow{color:#738b7e;letter-spacing:2px;font-weight:700;font-size:12px}.exam-close{border:0;background:#eef3ee;color:#5a7365;border-radius:50%;width:44px;height:44px;font-size:29px;flex-shrink:0}.exam-content{padding:26px 30px;max-height:calc(92dvh - 120px);overflow:auto;overscroll-behavior:contain}.exam-dialog button,.exam-entry{font:inherit;cursor:pointer;touch-action:manipulation}.exam-content button{min-height:48px;border:1px solid #d8e3d5;border-radius:14px;background:white;color:#3b624e;padding:12px 18px;font-weight:600}.exam-content button:focus-visible,.exam-close:focus-visible{outline:3px solid #307d67;outline-offset:3px}.exam-content button:disabled{opacity:.45;cursor:default}.exam-content .exam-primary{background:#337b61;border-color:#337b61;color:white}.exam-content .exam-secondary{margin:8px 8px 8px 0}.exam-note{font-size:15px;line-height:1.8;color:#6b7e71;margin:12px 0}.exam-hero{text-align:center;margin:0 auto 24px}.exam-hero h3{font-size:24px;margin:12px 0}.exam-hero-star{font-size:40px;color:#c9a357}.exam-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.exam-card{border:1px solid #d7e5d4;border-radius:20px;padding:24px;background:#eef5e9}.exam-card h3{font-size:25px;margin:12px 0}.exam-card>p{margin:10px 0}.exam-final{background:#f0edf9;border-color:#ddd5ef}.exam-badge{font-size:14px;color:#63835b;font-weight:700}.exam-final .exam-badge{color:#8066aa}.exam-card button{width:100%;margin-top:10px}.exam-resume{padding:16px;display:flex;align-items:center;gap:16px;justify-content:space-between;background:#fff6e4;border-radius:15px;margin-bottom:20px}.exam-history{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e4eae1}.exam-meta{display:flex;justify-content:space-between;font-size:16px;color:#70826c}.exam-content progress{width:100%;height:9px;border:0;border-radius:9px;accent-color:#518564;margin-top:14px}.exam-content progress::-webkit-progress-bar{background:#e8eee5;border-radius:9px}.exam-content progress::-webkit-progress-value{background:#76a27b;border-radius:9px}.exam-prompt{text-align:center;font-size:clamp(23px,3.3vw,32px);line-height:1.6;min-height:76px;margin:24px 0 5px;outline:0}.exam-ipa{text-align:center;font-family:Arial,sans-serif;color:#6d638c;font-size:20px;margin:8px 0}.exam-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.exam-options button{min-height:90px;font-size:18px;line-height:1.6;text-align:left;padding:16px 20px}.exam-options button[aria-pressed=true]{background:#e9f3e3;border:2px solid #629468;padding:15px 19px;color:#26513b}.exam-answer-status{min-height:48px;font-size:15px;line-height:1.6;color:#687c6b;margin:20px 0}.exam-question-actions{display:flex;gap:12px;justify-content:space-between}.exam-question-actions .exam-primary{min-width:46%}.exam-content .exam-text-button{background:none;border:0;color:#708473;margin:14px 0 0;padding-left:0;font-size:14px}.exam-slots{min-height:120px;border:2px dashed #cadbc5;border-radius:18px;padding:16px;display:flex;flex-wrap:wrap;align-content:flex-start;gap:9px;background:#f4f8f0;margin-top:22px}.exam-placeholder{padding:20px;color:#83967a;font-size:16px}.exam-tiles{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:22px 0}.exam-slots button,.exam-tiles button{font-size:18px;min-width:55px}.exam-tiles button:disabled{visibility:hidden}.exam-result{text-align:center}.exam-result-stars{color:#c9a04b;font-size:35px;letter-spacing:10px}.exam-result h3{font-size:56px;color:#337b61;margin:12px 0}.exam-stats{display:flex;justify-content:center;gap:24px;background:#edf4e8;padding:18px;border-radius:14px;margin:22px 0}.exam-review{margin:24px 0;border:1px solid #dbe4d6;border-radius:15px;padding:16px}.exam-review summary{cursor:pointer;font-weight:700;min-height:32px}.exam-review article{padding:14px 0;border-top:1px solid #e1e7dc;margin-top:14px}.exam-review h4{font-size:20px;margin:4px 0}.exam-review p{line-height:1.8}.exam-correct{color:#277050;font-weight:700}.exam-entry{display:flex;align-items:center;gap:10px;border:1px solid #ddd6ee;background:#f4f1fb;color:#67518b;border-radius:12px;min-height:46px;padding:9px 16px;margin:0 0 16px auto}.exam-entry span{font-size:14px;color:#88759d}.exam-small-link{margin:10px 0 0;padding:10px 15px;min-height:44px;border:1px solid #d8cfee;border-radius:12px;background:#f3eff9;color:#705b94;font:inherit;cursor:pointer}
@media(max-width:1100px),(pointer:coarse){.exam-dialog{width:100%;height:100dvh;max-width:none;max-height:100dvh;border:0;border-radius:0;margin:0}.exam-header{padding:calc(16px + env(safe-area-inset-top)) 22px 16px}.exam-content{height:calc(100dvh - 108px - env(safe-area-inset-top));max-height:none;box-sizing:border-box;padding-bottom:calc(28px + env(safe-area-inset-bottom))}.exam-dialog:modal{inset:0}.exam-entry{margin-top:6px}.exam-content{max-width:850px;margin:auto}}
@media(max-width:600px){.exam-header{padding-left:18px;padding-right:18px}.exam-header h2{font-size:21px}.exam-eyebrow{font-size:10px;letter-spacing:1.5px}.exam-content{padding:20px 18px calc(30px + env(safe-area-inset-bottom))}.exam-hero h3{font-size:22px}.exam-cards{grid-template-columns:1fr;gap:14px}.exam-card{padding:20px}.exam-card h3{font-size:23px}.exam-resume{align-items:stretch;flex-direction:column;gap:10px}.exam-options{gap:10px;margin:20px 0}.exam-options button{font-size:17px;min-height:92px;padding:13px}.exam-options button[aria-pressed=true]{padding:12px}.exam-prompt{font-size:25px;min-height:72px;margin-top:20px}.exam-stats{gap:18px}.exam-history{font-size:14px}.exam-entry{width:100%;justify-content:center;margin-bottom:12px}.exam-entry span{font-size:13px}.exam-question-actions{position:sticky;bottom:-1px;background:#fcfdfb;padding:10px 0}.exam-answer-status{margin:16px 0 6px}}
