.eqs2-cloze-question{--cloze:#b77913;background:#fffdf7;border-color:#e9d7b5}
.eqs2-cloze-passage{padding:clamp(18px,3vw,32px);border:1px solid #dce5de;border-radius:16px;background:#fff;color:#27392f;font-size:20px;font-weight:600;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.eqs2-cloze-blank{display:inline-block;min-width:8ch;height:1.55em;margin:0 .18em;vertical-align:middle;border:1px solid #cbd4ce;border-radius:8px;background:#f0f3f1}
.eqs2-cloze-blank.active{border:2px solid var(--cloze);background:#fff0c9;box-shadow:0 0 0 3px #dca84125}
.eqs2-cloze-note{color:var(--cloze);font-size:14px;font-weight:700}
.eqs2-cloze-question .eqs2-option{border-color:var(--cloze);color:#172b4d}
.eqs2-cloze-question .eqs2-option:has(input:checked){border-color:var(--cloze);background:#fff0c9}
.eqs2-cloze-question .eqs2-option input{accent-color:var(--cloze)}
@media (min-width:601px){.eqs2 .eqs2-images img{height:150px}}
.eqs2-question-enter{animation:eqs2-question-enter .42s cubic-bezier(.22,.72,.2,1) both}
@keyframes eqs2-question-enter{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.eqs2-question-enter{animation:none}}
.eqs2 .eqs2-number-nav button.result-correct{background:#168455;color:#fff;border-color:#168455;box-shadow:0 0 0 4px #31c77838,0 0 14px #31c77888}
.eqs2 .eqs2-number-nav button.result-wrong{background:#c43b35;color:#fff;border-color:#c43b35;box-shadow:0 0 0 4px #ef5a5433,0 0 14px #ef5a5488}
.eqs2-translation-question .eqs2-prompt{max-width:620px;margin:12px auto 32px;padding:22px 30px;border:3px solid #d9e7ff;border-radius:999px;background:#f8fbff;color:#123272;text-align:center;font-size:clamp(30px,5vw,52px);font-weight:800;line-height:1.25}
.eqs2-reading-image{display:block;width:auto;max-width:100%;max-height:260px;aspect-ratio:auto;object-fit:contain;margin:0 auto 24px;border-radius:12px}
.eqs2-prompt-image{max-height:220px!important;max-width:min(100%,391px)!important}
@media(min-width:601px){.eqs2 .eqs2-images img{height:140px}}
.eqs2-library-locked{border-top-color:#7b8794!important;background:linear-gradient(145deg,#fbfbfc,#eef0f3)!important}.eqs2-library-locked .eqs2-primary{background:#596674}.eqs2-locked{padding:24px;border:2px solid #cbd2da;border-radius:16px;background:#f7f8fa}.eqs2-locked b{font-size:22px;color:#465260}

/* Reading and Reading Cloze share the same passage typography and media layout. */
.eqs2 .eqs-passage,.eqs2 .eqs2-cloze-passage{font-size:20px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}
.eqs2 .eqs-passage p,.eqs2 .eqs2-cloze-passage p{margin:0 0 1.25em;white-space:pre-wrap}
.eqs2 .eqs-passage p:last-child,.eqs2 .eqs2-cloze-passage p:last-child{margin-bottom:0}
.eqs2 .eqs-passage figure,.eqs2 .eqs2-cloze-passage figure{max-width:100%;margin:1.15em auto;padding:0}
.eqs2 .eqs2-passage-image img{display:inline-block;width:auto;max-width:100%;max-height:260px;object-fit:contain;border-radius:12px;vertical-align:middle}
.eqs2 .eqs2-passage-video{width:100%;max-width:720px}
.eqs2 .eqs2-passage-video-screen{width:100%;aspect-ratio:16/9;min-height:170px;border-radius:12px;overflow:hidden;background:#152939}
.eqs2 .eqs2-passage-video-screen iframe{display:block;width:100%;height:100%;min-height:170px;border:0}
.eqs2 .eqs2-passage-video-play{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:170px;padding:20px;border:0;background:linear-gradient(135deg,#142f42,#244e60);color:#fff;font-size:20px;font-weight:800}
.eqs2 .eqs2-passage-video-play:hover{background:linear-gradient(135deg,#1a4057,#2f6674)}
.eqs2 .eqs2-passage-video-link{display:inline-block;margin-top:8px;font-size:14px}
@media(max-width:600px){.eqs2 .eqs-passage,.eqs2 .eqs2-cloze-passage{font-size:20px}.eqs2 .eqs2-passage-image img{max-height:220px}}
