.quiz-launch-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 14px;border:2px solid #fff;border-radius:999px;background:linear-gradient(180deg,#188fa8,#096487);box-shadow:0 4px 0 #034461,0 7px 16px #0003;color:#fff;font:inherit;font-size:.78rem;font-weight:1000;white-space:nowrap;cursor:pointer}
.quiz-launch-button>span{color:#ffe080;font-size:1.2rem}.quiz-launch-button:hover{filter:brightness(1.08)}.quiz-launch-button:focus-visible{outline:3px solid #ffe080;outline-offset:3px}.quiz-launch-compact{display:none}
.quiz-screen{align-items:start;padding:clamp(12px,3vw,28px)}.quiz-shell{width:min(100%,760px);margin:3px auto 28px}.quiz-heading{display:flex;align-items:center;gap:15px;margin-bottom:18px}.quiz-heading>img{flex:none;object-fit:cover;border:3px solid #fff;border-radius:8px;box-shadow:0 4px 12px #082f492b;transform:rotate(-4deg)}.quiz-heading>div{flex:1;min-width:0}.quiz-eyebrow{display:block;color:#7a5c0a;font-size:.64rem;font-weight:1000;letter-spacing:.12em}.quiz-heading h1{margin:4px 0 6px;color:#0a568a;font-size:clamp(1.4rem,4vw,2.1rem);line-height:1.12}.quiz-heading p{display:inline-block;margin:0;padding:4px 9px;border:1px solid #c5e0ee;border-radius:999px;background:#ffffffb3;color:#486c82;font-size:.72rem;font-weight:800}.quiz-back{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 12px;border:1px solid #b2d4e7;border-radius:999px;background:#f5fbff;color:#145b83;font:inherit;font-size:.74rem;font-weight:900;cursor:pointer}.quiz-back:focus-visible{outline:3px solid #e7b43c;outline-offset:2px}
.quiz-progress-track{height:6px;margin-bottom:18px;overflow:hidden;border-radius:999px;background:#bddcec}.quiz-progress-track>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e9a82a,#ffd86b);transition:width .25s ease}
.quiz-question-panel,.quiz-results{padding:clamp(20px,4vw,38px);border:3px solid #fff;border-radius:26px;background:linear-gradient(145deg,#fffef8,#f3fbff);box-shadow:0 14px 34px #082f491b}.quiz-question-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px;color:#617f90;font-size:.78rem;font-weight:900}.quiz-question-meta>span:last-child{padding:5px 10px;border-radius:999px;background:#fff0b9;color:#805e12}.quiz-type-label{display:block;margin-bottom:10px;color:#147397;font-size:.65rem;font-weight:1000;letter-spacing:.14em}.quiz-question-panel h2{margin:0;color:#123e58;font-size:clamp(1.25rem,3vw,1.65rem);line-height:1.45}.quiz-instructions{margin:13px 0 21px;color:#5c7b8e;font-size:.83rem;line-height:1.6}.quiz-choice-group{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0;padding:0;border:0;min-width:0}.quiz-choice-group legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.quiz-choice{display:flex;align-items:center;justify-content:center;gap:10px;min-height:80px;padding:16px 12px;border:2px solid #bbd9e9;border-radius:17px;background:#fff;color:#174e6d;cursor:pointer;transition:background .15s,border-color .15s}.quiz-choice input{width:19px;height:19px;margin:0;accent-color:#0c6f98}.quiz-choice-symbol{font-size:1.5rem;line-height:1}.quiz-choice strong{font-size:1.08rem}.quiz-choice:has(input:checked){border-color:#dba225;background:#fff4ce;box-shadow:0 0 0 1px #e6be56}.quiz-choice:focus-within{outline:3px solid #a6d8f1;outline-offset:3px}.quiz-choice:has(input:disabled){cursor:default}
.quiz-correction-field{margin-top:21px}.quiz-correction-field label{display:block;margin-bottom:8px;color:#264f66;font-size:.82rem;font-weight:900;line-height:1.4}.quiz-correction-field textarea{display:block;width:100%;min-height:105px;max-height:240px;padding:13px;border:2px solid #bbd4e2;border-radius:13px;resize:vertical;background:#fff;color:#143f58;font:inherit;font-size:1rem;line-height:1.5}.quiz-correction-field textarea:focus{outline:3px solid #b4def1;border-color:#4299bc}.quiz-correction-field textarea:disabled{background:#edf3f6;color:#526b79}
.quiz-submit{display:block;width:100%;margin-top:24px;font-size:.82rem}.quiz-submit>span{margin-left:6px}.quiz-feedback{margin-top:22px;padding:19px;border:1px solid #c8dbd1;border-radius:18px;background:#edf8f1}.quiz-feedback[data-correct=false]{border-color:#e4d1a0;background:#fff6df}.quiz-feedback h3{margin:0 0 8px;color:#246548;font-size:1.12rem}.quiz-feedback[data-correct=false] h3{color:#88611a}.quiz-feedback p{margin:0 0 15px;color:#416654;font-size:.88rem;line-height:1.6}.quiz-feedback[data-correct=false] p{color:#735d30}.quiz-feedback .primary{font-size:.78rem}
.quiz-results{text-align:center}.quiz-result-star{display:block;color:#e9ae24;font-size:4rem;line-height:1.1;margin:8px 0 13px}.quiz-results h2{margin:9px 0 4px;color:#0a568a;font-size:1.8rem}.quiz-score{display:flex;align-items:baseline;justify-content:center;gap:9px;margin:20px 0;color:#0c668f;font-variant-numeric:tabular-nums}.quiz-score strong{font-size:4rem;line-height:1}.quiz-score span{font-size:1.4rem;color:#6c8d9e}.quiz-results p{margin:0 auto 23px;max-width:410px;color:#55758a;font-size:.9rem;line-height:1.6}.quiz-result-actions{display:flex;justify-content:center;gap:13px;flex-wrap:wrap}.quiz-result-actions button{min-width:150px;font-size:.8rem}
.quiz-question-meta{margin-bottom:25px}.quiz-question-badge{display:inline-flex;align-items:center;gap:11px;padding:11px 19px 12px;border:2px solid #fff;border-radius:19px;background:linear-gradient(135deg,#147eae,#08517f);box-shadow:0 4px 0 #053956,0 8px 18px #0a658025;color:#fff}.quiz-question-badge>span{color:#ffda6a;font-size:1.7rem;line-height:1}.quiz-question-badge strong{font-size:1.35rem;letter-spacing:.01em;line-height:1.2}.quiz-question-meta>span:last-child{padding:8px 13px;font-size:.9rem;border:1px solid #ffe08b;background:#fff1b9}.quiz-type-label{display:inline-flex;align-items:center;margin-bottom:17px;padding:8px 14px;border:1px solid #b8dce9;border-radius:999px;background:#e6f6fd;color:#086487;font-size:.9rem;letter-spacing:.08em}
.quiz-instructions{display:flex;align-items:flex-start;gap:12px;margin:20px 0 25px;padding:16px 18px;border-left:4px solid #efba39;border-radius:0 16px 16px 0;background:#e8f5fc;color:#234f69;font-size:1rem;line-height:1.55}.quiz-instructions>span{flex:none;color:#187798;font-size:1.8rem;line-height:1.25}.quiz-instructions strong{color:#105b80;font-size:1.04rem}.quiz-instructions p{margin:4px 0 0;font-size:.96rem;line-height:1.6}.quiz-choice strong{font-size:1.2rem}.quiz-correction-field label{font-size:.96rem}.quiz-marking-guide{margin-top:12px;padding:12px 14px;border:1px solid #d1e3eb;border-radius:13px;background:#edf7fc;color:#486d80;font-size:.84rem;line-height:1.6}.quiz-marking-guide summary{color:#215e7c;font-weight:800;cursor:pointer}.quiz-marking-guide p{margin:9px 0 0}
.quiz-feedback-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:13px;margin-bottom:9px}.quiz-feedback-heading h3{margin:0}.quiz-feedback-heading>strong{flex:none;padding:5px 9px;border-radius:999px;background:#fff;color:#1a5e75;font-size:.83rem;white-space:nowrap}.quiz-marking-breakdown{margin:0 0 18px;padding-left:21px;color:#735d30;font-size:.85rem;line-height:1.6}.quiz-feedback[data-correct=true] .quiz-marking-breakdown{color:#416654}.quiz-marking-breakdown li+li{margin-top:5px}
@media(max-width:760px){.quiz-launch-button{min-width:64px;min-height:40px;padding:5px 9px;gap:4px;font-size:.7rem}.quiz-launch-wide{display:none}.quiz-launch-compact{display:inline}}
@media(max-width:600px){.quiz-heading{gap:11px}.quiz-heading>img{width:42px;height:59px}.quiz-back{width:40px;min-width:40px;padding:8px;font-size:1.05rem}.quiz-back span{display:none}.quiz-question-meta{margin-bottom:21px}.quiz-choice{min-height:71px;padding:13px 9px}.quiz-question-panel,.quiz-results{border-radius:22px}.quiz-result-actions{flex-direction:column}.quiz-result-actions button{width:100%}}
@media(max-width:480px){.book-tools-open .topbar .brand{position:static;transform:none;min-width:0;flex:1;margin:0 6px}.book-tools-open .brand span{font-size:.56rem;letter-spacing:.06em;line-height:1.2}.book-tools-open .brand strong{display:none}.book-tools-open .topbar-actions{gap:6px;flex:none;margin-left:0}}
@media(max-width:480px){.book-tools-open .home-button,.app:has(.quiz-screen.active) .home-button{width:40px;min-width:40px;flex:none;justify-content:center}.book-tools-open .home-button strong,.book-tools-open .home-cue,.app:has(.quiz-screen.active) .home-button strong,.app:has(.quiz-screen.active) .home-cue{display:none}}
@media(max-width:360px){.quiz-heading h1{font-size:1.15rem}.quiz-eyebrow{font-size:.59rem}.quiz-heading p{font-size:.65rem}}
@media(max-width:480px){.quiz-question-badge{gap:7px;padding:10px 12px;border-radius:15px}.quiz-question-badge strong{font-size:1.05rem}.quiz-question-badge>span{font-size:1.4rem}.quiz-question-meta>span:last-child{font-size:.8rem;padding:6px 9px}.quiz-type-label{font-size:.85rem;padding:7px 11px}.quiz-instructions{padding:13px 12px;gap:9px}.quiz-instructions strong{font-size:1rem}.quiz-instructions p{font-size:.94rem}.quiz-feedback-heading{flex-wrap:wrap}.quiz-marking-guide{font-size:.83rem}}
@media(prefers-reduced-motion:reduce){.quiz-progress-track>span,.quiz-choice{transition:none}}

/* The extra quiz launch button shares the existing compact book toolbar. */
.quiz-launch-button .book-action-icon{display:grid;place-items:center;flex:none}
.quiz-launch-button .book-action-icon svg{display:block;width:20px;height:20px}
@media(min-width:481px) and (max-width:1000px){
 .book-tools-open .topbar .brand{position:static;left:auto;transform:none;min-width:0;flex:1;margin:0 12px;text-align:center}
}

.quiz-question-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:17px}
.quiz-question-context .quiz-type-label{margin-bottom:0}
.quiz-page-reference{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #d5dfd4;border-radius:999px;background:#fffaf0;color:#677243;font-size:.81rem;font-weight:800;line-height:1.2}
.quiz-page-reference svg{width:17px;height:17px;flex:none;color:#9a7a22}
.quiz-question-context .quiz-type-label,.quiz-question-context .quiz-page-reference{min-height:38px;padding:8px 14px;font-size:.9rem;line-height:1.2}
.quiz-question-context .quiz-page-reference{gap:8px;font-weight:900}
.quiz-page-reference svg{width:19px;height:19px}
#quizStatement,#quizCorrection{user-select:text;-webkit-user-select:text}

@media(max-width:480px){
 .quiz-question-context{gap:8px}
 .quiz-page-reference{padding:7px 9px;font-size:.78rem}
}

.quiz-screen{grid-template-columns:minmax(0,1fr)}
.quiz-shell,.quiz-heading{min-width:0}
.quiz-heading .quiz-eyebrow{display:inline-block;max-width:100%;padding:5px 9px;border:1px solid #e7cb7d;border-radius:8px;background:linear-gradient(135deg,#fffdf4,#fff1c7);color:#966409;font-size:clamp(.85rem,1.3vw,1rem);font-weight:900;letter-spacing:.07em;line-height:1.35}
.quiz-heading h1{margin:9px 0 3px}
.quiz-heading .quiz-back{min-width:170px;min-height:52px;gap:10px;padding:10px 17px;border:2px solid #fff;border-radius:18px;background:linear-gradient(145deg,#fff,#e5f5ff);box-shadow:0 3px 0 #93bed1,0 7px 15px #0a56791b;color:#0c5b84;font-size:.9rem;transition:transform .15s ease,filter .15s ease}
.quiz-heading .quiz-back .quiz-back-arrow{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#d9eff9;color:#0a6b96;font-size:1.18rem;line-height:1}
.quiz-heading .quiz-back:hover{filter:brightness(1.03);transform:translateY(-1px)}
.quiz-heading .quiz-back:active{transform:translateY(2px)}
@media(max-width:600px){
 .quiz-heading{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px 12px}
 .quiz-heading>div{grid-column:2}
 .quiz-heading h1{font-size:clamp(1.55rem,6vw,2rem);margin-top:7px}
 .quiz-heading .quiz-eyebrow{padding:5px 8px;font-size:.78rem;letter-spacing:.055em}
 .quiz-heading .quiz-back{grid-column:1/-1;justify-self:end;width:auto;min-height:49px;padding:8px 15px;font-size:.88rem}
 .quiz-heading .quiz-back span{display:inline}
}
@media(prefers-reduced-motion:reduce){.quiz-heading .quiz-back{transition:none}}

/* Readable, prominent quiz guidance and actions. */
.quiz-shell{width:min(100%,840px)}
.quiz-heading{gap:20px;margin-bottom:24px}
.quiz-heading>img{width:112px;height:156px;border:5px solid #fff;border-radius:14px;outline:3px solid #eab340;box-shadow:0 0 0 8px #ffffff80,0 9px 0 #4e93ad40,0 15px 28px #0a567938,0 0 28px #ffdf8d45;transform:rotate(-3deg)}
.quiz-heading h1{font-size:clamp(1.8rem,4vw,2.4rem)}
.quiz-question-meta{flex-wrap:wrap;row-gap:16px}
.quiz-question-badge strong{font-size:1.45rem}
.quiz-question-meta>.quiz-points:last-child{display:inline-flex;align-items:center;justify-content:center;min-height:52px;margin-left:auto;padding:11px 18px;border:2px solid #e8b44b;border-radius:18px;background:linear-gradient(135deg,#fff9de,#ffe49a);box-shadow:0 3px 0 #cf922d55,0 6px 14px #b67b1b14;color:#785013;font-size:1.16rem;font-weight:900;letter-spacing:.01em;line-height:1.2;white-space:nowrap}
.quiz-question-panel h2{font-size:clamp(1.35rem,3vw,1.85rem);line-height:1.45}
.quiz-match-prompt{margin:0 0 16px;padding:12px 16px;border-left:4px solid #eab63b;border-radius:0 13px 13px 0;background:#e7f5fc;color:#0b6388;font-size:clamp(1.05rem,2.2vw,1.2rem);font-weight:900;line-height:1.5}
.quiz-story-tip .quiz-exact-rule{margin-top:12px;padding-top:12px;border-top:1px solid #e7c66d;color:#805411;font-size:1.05rem;font-weight:800}
.quiz-story-tip #quizStoryTipSubject{font-weight:inherit}
.quiz-blank-field label{display:block;margin-bottom:12px;color:#155a7d;font-size:1.2rem;font-weight:900;line-height:1.4}
.quiz-blank-field input{display:block;width:100%;min-height:70px;padding:16px 19px;border:2px solid #acd5e8;border-radius:18px;background:#fff;color:#123e58;font:inherit;font-size:1.4rem;font-weight:800;line-height:1.4;box-shadow:inset 0 2px 4px #0a567908}
.quiz-blank-field input:focus{outline:3px solid #f3ca67;outline-offset:3px;border-color:#2085ad}
.quiz-blank-field input:disabled{background:#edf3f6;color:#526b79}
.quiz-story-tip{display:flex;align-items:flex-start;gap:15px;margin:-8px 0 27px;padding:20px;border:2px solid #eac46a;border-radius:20px;background:linear-gradient(120deg,#fffbec,#fff0c1);box-shadow:0 4px 0 #eac46a2b,0 9px 20px #a5701210;color:#644a1c}
.quiz-story-tip-icon{display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;border:1px solid #e8c56c;border-radius:14px;background:#fffdf4;color:#9d701c;box-shadow:0 3px 8px #aa7d1820}
.quiz-story-tip-icon svg{display:block;width:34px;height:34px}
.quiz-story-tip strong{display:block;color:#85570d;font-size:1.25rem;font-weight:900;line-height:1.35}
.quiz-story-tip p{margin:7px 0 0;font-size:1.06rem;line-height:1.6}
.quiz-story-tip p b{font-weight:900;color:#72500d}
.quiz-story-tip p span{font-weight:900}
.quiz-choice{min-width:0;min-height:88px}
.quiz-choice strong{font-size:1.35rem}
.quiz-choice input{width:22px;height:22px}
.quiz-choice-symbol{font-size:1.7rem}
.quiz-submit{display:flex;align-items:center;justify-content:center;gap:14px;min-height:68px;padding:17px 24px;font-size:1.2rem;font-weight:900;line-height:1.25;letter-spacing:.035em;text-shadow:0 1px 1px #8d400940}
.quiz-submit>span{margin-left:0;font-size:1.65rem;line-height:1}
.quiz-question-context .quiz-page-reference svg{width:23px;height:23px}
@media(max-width:600px){
 .quiz-heading{grid-template-columns:80px minmax(0,1fr);gap:15px 16px}
 .quiz-heading>img{width:80px;height:112px;border-width:4px;border-radius:12px;outline-width:2px;box-shadow:0 0 0 6px #ffffff80,0 7px 0 #4e93ad40,0 11px 22px #0a567938,0 0 22px #ffdf8d45}
 .quiz-heading h1{font-size:clamp(1.65rem,6.3vw,2rem);line-height:1.15}
 .quiz-heading .quiz-eyebrow{font-size:.8rem}
 .quiz-question-badge strong{font-size:1.2rem}
 .quiz-question-meta>.quiz-points:last-child{min-height:48px;padding:10px 13px;font-size:1.06rem}
 .quiz-story-tip{gap:12px;margin-bottom:24px;padding:16px 14px;border-radius:17px}
 .quiz-story-tip-icon{flex-basis:40px;width:40px;height:44px;border-radius:12px}
 .quiz-story-tip-icon svg{width:29px;height:29px}
 .quiz-story-tip strong{font-size:1.12rem}
 .quiz-story-tip p{font-size:1rem;line-height:1.55}
 .quiz-choice{min-height:82px}
 .quiz-choice strong{font-size:1.23rem}
 .quiz-submit{min-height:66px;padding:16px 12px;font-size:1.12rem}
}
@media(max-width:360px){.quiz-story-tip{gap:10px;padding:14px 12px}.quiz-story-tip-icon{flex-basis:34px;width:34px;height:40px}.quiz-story-tip-icon svg{width:26px;height:26px}.quiz-choice-group{grid-template-columns:minmax(0,1fr)}.quiz-choice{min-height:72px}}

/* Feedback distinguishes full credit, partial credit and zero credit. */
.quiz-feedback[data-outcome]{--feedback-bg:#edf9f0;--feedback-border:#8ac49d;--feedback-title:#1c663d;--feedback-text:#28543d;margin-top:28px;padding:clamp(22px,3vw,30px);border:2px solid var(--feedback-border);border-radius:24px;background:var(--feedback-bg);box-shadow:0 5px 0 #082f4909,0 12px 25px #082f490d}
.quiz-feedback[data-outcome=incorrect]{--feedback-bg:#fff0ef;--feedback-border:#e59b95;--feedback-title:#a02d2d;--feedback-text:#7d3531}
.quiz-feedback[data-outcome=partial]{--feedback-bg:#fff6dc;--feedback-border:#e3bb59;--feedback-title:#8a5d13;--feedback-text:#715625}
.quiz-feedback[data-outcome] .quiz-feedback-heading{align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.quiz-feedback-title{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:min(100%,250px)}
.quiz-feedback-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--feedback-border);border-radius:14px;background:#ffffffb3;color:var(--feedback-title);font-size:1.8rem;font-weight:900;line-height:1}
.quiz-feedback[data-outcome] h3{margin:3px 0 0;color:var(--feedback-title);font-size:clamp(1.55rem,2.6vw,1.85rem);font-weight:900;line-height:1.3}
.quiz-feedback[data-outcome] .quiz-feedback-heading>strong{margin-left:auto;padding:12px 16px;border:1px solid var(--feedback-border);border-radius:16px;background:#fff;color:var(--feedback-title);font-size:1.25rem;line-height:1.3;box-shadow:0 3px 8px #082f4908}
.quiz-feedback[data-outcome] p{margin:0 0 21px;color:var(--feedback-text);font-size:1.12rem;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.quiz-feedback-models{display:grid;gap:14px;margin:0 0 22px;padding:0}
.quiz-feedback-model{min-width:0;padding:19px 21px;border:1px solid var(--feedback-border);border-left:5px solid var(--feedback-title);border-radius:18px;background:linear-gradient(135deg,#ffffffed,#ffffff94);box-shadow:0 4px 12px #082f4908}
.quiz-feedback-model dt{display:table;max-width:100%;margin:0 0 10px;padding:6px 10px;border:1px solid var(--feedback-border);border-radius:10px;background:#fff;color:var(--feedback-title);font-size:1.16rem;font-weight:900;line-height:1.4;letter-spacing:.015em}
.quiz-feedback-model dd{margin:0;color:var(--feedback-text);font-size:1.4rem;font-weight:800;line-height:1.65;overflow-wrap:anywhere}
.quiz-feedback-answer dd{font-size:1.65rem;font-weight:900;line-height:1.45}
.quiz-feedback[data-outcome] .quiz-marking-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 24px;padding:0;list-style:none;color:var(--feedback-text);font-size:1.16rem;font-weight:700;line-height:1.65;overflow-wrap:anywhere}
.quiz-feedback[data-outcome] .quiz-marking-breakdown li{min-width:0;margin:0;padding:17px 19px;border:1px solid var(--feedback-border);border-radius:17px;background:#ffffffa6}
.quiz-feedback[data-outcome] .quiz-marking-breakdown li+li{margin-top:0}
.quiz-breakdown-label{display:block;margin-bottom:8px;color:var(--feedback-title);font-size:1.16rem;font-weight:900;line-height:1.45}
.quiz-breakdown-score>strong{display:block;font-size:1.4rem;font-weight:900;line-height:1.5}
.quiz-breakdown-note{grid-column:1/-1}
.quiz-breakdown-note>strong{display:block;font-size:1.16rem;font-weight:700;line-height:1.7}
.quiz-feedback[data-outcome] .quiz-next{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-width:230px;min-height:66px;padding:16px 24px;border:2px solid #fff8;border-radius:23px;font-size:1.1rem;font-weight:900;line-height:1.3;letter-spacing:.025em}
.quiz-next>span:last-child{font-size:1.7rem;line-height:1}
@media(max-width:600px){
 .quiz-feedback[data-outcome]{padding:20px 16px;border-radius:20px}
 .quiz-feedback-title{flex-basis:100%;min-width:0;gap:10px}
 .quiz-feedback-icon{flex-basis:34px;width:34px;height:36px;border-radius:12px;font-size:1.55rem}
 .quiz-feedback[data-outcome] h3{font-size:1.5rem}
 .quiz-feedback[data-outcome] p{font-size:1.05rem}
 .quiz-feedback-models{gap:12px;margin-bottom:20px}
 .quiz-feedback-model{padding:16px 12px;border-left-width:4px;border-radius:15px}
 .quiz-feedback-model dt{font-size:1.1rem;padding:5px 8px;border-radius:9px}
 .quiz-feedback-model dd{font-size:1.25rem;line-height:1.65}
 .quiz-feedback-answer dd{font-size:1.4rem;line-height:1.5}
 .quiz-feedback[data-outcome] .quiz-marking-breakdown{grid-template-columns:minmax(0,1fr);gap:12px;font-size:1.1rem}
 .quiz-feedback[data-outcome] .quiz-marking-breakdown li{padding:15px 12px;border-radius:14px}
 .quiz-breakdown-label{font-size:1.1rem}
 .quiz-breakdown-score>strong{font-size:1.3rem}
 .quiz-breakdown-note>strong{font-size:1.1rem}
 .quiz-feedback[data-outcome] .quiz-feedback-heading>strong{font-size:1.18rem;padding:11px 13px}
 .quiz-feedback[data-outcome] .quiz-next{width:100%;min-width:0;min-height:64px;padding:15px 12px;gap:10px;font-size:1.04rem}
}

/* Bring the story-wording reminder to the shared instruction scale. */
.quiz-story-tip{gap:18px;margin:-4px 0 30px;padding:22px 24px;border-color:#e5be58;border-radius:22px;background:linear-gradient(135deg,#fffdf4,#fff0c3);box-shadow:0 5px 0 #dcb85c26,0 10px 22px #9b6c1212}
.quiz-story-tip>div{min-width:0;flex:1}
.quiz-story-tip-icon{flex-basis:54px;width:54px;height:58px;border:2px solid #fff;border-radius:17px;background:linear-gradient(145deg,#fff,#ffedb5);box-shadow:0 4px 0 #dfc273;color:#926515}
.quiz-story-tip-icon svg{width:35px;height:35px}
.quiz-story-tip strong{font-size:clamp(1.25rem,2.2vw,1.4rem);line-height:1.4;letter-spacing:.01em}
.quiz-story-tip p{margin-top:8px;font-size:1.16rem;font-weight:700;line-height:1.7;overflow-wrap:break-word}
.quiz-story-tip #quizStoryTipPage{white-space:nowrap}
.quiz-story-tip .quiz-exact-rule{margin-top:16px;padding:13px 15px;border:1px solid #ddbb63;border-radius:14px;background:#fffdf3;color:#79520d;font-size:1.08rem;font-weight:800;line-height:1.65;box-shadow:inset 0 1px 0 #fff}
@media(max-width:600px){
 .quiz-story-tip{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;margin-bottom:26px;padding:18px 14px;border-radius:18px}
 .quiz-story-tip>div{display:contents}
 .quiz-story-tip-icon{grid-column:1;grid-row:1;flex-basis:42px;width:42px;height:47px;border-radius:13px}
 .quiz-story-tip-icon svg{width:29px;height:29px}
 .quiz-story-tip strong{grid-column:2;align-self:center;font-size:1.2rem;line-height:1.4}
 .quiz-story-tip p{grid-column:1/-1;margin-top:0;font-size:1.05rem;line-height:1.7}
 .quiz-story-tip .quiz-exact-rule{margin-top:0;padding:12px 10px;font-size:1.05rem;line-height:1.65;border-radius:12px}
}

/* Shared instruction cards for True/False, blanks and multiple choice. */
.quiz-instructions{align-items:flex-start;gap:18px;min-width:0;margin:24px 0 30px;padding:22px 24px;border:2px solid #b8dced;border-left:6px solid #edb62c;border-radius:22px;background:linear-gradient(135deg,#e4f4ff,#f2fbff);box-shadow:0 5px 0 #a8d0e329,0 10px 22px #0a567912;color:#285873}
.quiz-instructions>span{display:grid;place-items:center;flex:0 0 54px;width:54px;height:58px;margin-top:1px;border:2px solid #fff;border-radius:17px;background:linear-gradient(145deg,#fff,#d6eefb);box-shadow:0 4px 0 #b4d7e7;color:#137b9f;line-height:1}
.quiz-instructions>span svg{display:block;width:35px;height:35px}
.quiz-instructions>div{min-width:0;flex:1}
.quiz-instructions strong{display:block;color:#0c5b83;font-size:clamp(1.25rem,2.2vw,1.4rem);font-weight:900;letter-spacing:.01em;line-height:1.4}
.quiz-instructions p{margin:8px 0 0;color:#2d5c76;font-size:1.16rem;font-weight:700;line-height:1.7;overflow-wrap:break-word}
@media(max-width:600px){
 .quiz-instructions{gap:12px;margin:22px 0 26px;padding:18px 14px;border-left-width:5px;border-radius:18px}
 .quiz-instructions>span{flex-basis:42px;width:42px;height:47px;border-radius:13px}
 .quiz-instructions>span svg{width:29px;height:29px}
 .quiz-instructions strong{font-size:1.2rem;line-height:1.4}
 .quiz-instructions p{margin-top:8px;font-size:1.05rem;line-height:1.7}
}

/* Large, readable answer cards for story-wording multiple choice. */
.quiz-mcq-group{grid-template-columns:minmax(0,1fr);gap:16px}
.quiz-mcq-option{display:flex;align-items:flex-start;gap:15px;min-width:0;min-height:96px;padding:19px 21px;border:2px solid #b6d6e7;border-radius:20px;background:linear-gradient(145deg,#fff,#f8fcff);box-shadow:0 4px 0 #a9cddd26;color:#184d6a;cursor:pointer}
.quiz-mcq-option>input{flex:none;width:22px;height:22px;margin:10px 0 0;accent-color:#08759f}
.quiz-mcq-content{min-width:0;flex:1;font-size:1.18rem;font-weight:800;line-height:1.7;overflow-wrap:anywhere}
.quiz-mcq-letter{display:inline-grid;place-items:center;min-width:39px;min-height:39px;margin-right:8px;padding:0 7px;border:1px solid #c2dfe9;border-radius:12px;background:#e6f4fb;color:#106d94;font-size:1.28rem;font-weight:900;line-height:1.2;vertical-align:middle}
.quiz-mcq-option:has(input:checked){border-color:#ddb13f;background:linear-gradient(135deg,#fffdf1,#fff0c1);box-shadow:0 4px 0 #d0a7472b}
.quiz-mcq-option:has(input:checked) .quiz-mcq-letter{border-color:#dfbb5d;background:#ffdf83;color:#74500b}
.quiz-mcq-option:focus-within{outline:3px solid #8bcbe7;outline-offset:4px}
.quiz-mcq-option:has(input:disabled){cursor:default}
@media(max-width:600px){
 .quiz-mcq-group{gap:14px}
 .quiz-mcq-option{gap:11px;padding:16px 13px;border-radius:17px}
 .quiz-mcq-option>input{width:21px;height:21px;margin-top:8px}
 .quiz-mcq-content{font-size:1.07rem;line-height:1.7}
 .quiz-mcq-letter{min-width:34px;min-height:35px;margin-right:6px;border-radius:10px;font-size:1.18rem}
}

/* Completion progress only; the total score is revealed after question ten. */
.quiz-attempt-progress{margin:0 0 26px;padding:22px 24px;border:2px solid #b4d8e8;border-radius:23px;background:linear-gradient(135deg,#fffef8,#eaf7ff);box-shadow:0 5px 0 #a5cfe42b,0 10px 22px #0a567912;color:#245a76}
.quiz-attempt-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.quiz-attempt-heading>strong{display:flex;align-items:center;gap:11px;color:#0e6286;font-size:1.3rem;font-weight:900;line-height:1.4}
.quiz-attempt-heading>strong>span{display:grid;place-items:center;flex:none;width:36px;height:38px;border:1px solid #e6ca7e;border-radius:12px;background:#fff1c7;color:#a47b19;font-size:1.6rem}
.quiz-attempt-heading>span{padding:8px 13px;border:1px solid #b6d8e8;border-radius:999px;background:#fff;color:#35657d;font-size:1.05rem;font-weight:900;line-height:1.4;font-variant-numeric:tabular-nums}
.quiz-attempt-progress .quiz-progress-track{height:9px;margin:20px 0 14px;box-shadow:inset 0 1px 2px #235f7620}
.quiz-attempt-progress p{margin:0;color:#476e83;font-size:1.05rem;font-weight:700;line-height:1.65}
@media(max-width:600px){
 .quiz-attempt-progress{padding:18px 15px;border-radius:20px;margin-bottom:22px}
 .quiz-attempt-heading{gap:13px}
 .quiz-attempt-heading>strong{gap:9px;font-size:1.15rem}
 .quiz-attempt-heading>span{padding:7px 11px;font-size:1rem}
 .quiz-attempt-progress p{font-size:1rem;line-height:1.7}
 .quiz-question-meta{flex-wrap:wrap}
}

/* A readable, expandable guide with prominent point values. */
.quiz-marking-guide{margin-top:20px;padding:0;overflow:hidden;border:2px solid #b8dce9;border-radius:22px;background:linear-gradient(145deg,#f7fcff,#e9f5fc);box-shadow:0 5px 0 #b9d9e633,0 10px 22px #0a567912;color:#28556e;font-size:1.08rem;line-height:1.65}
.quiz-marking-guide summary{display:flex;align-items:center;gap:13px;min-height:70px;padding:16px 20px;list-style:none;color:#105d83;font-size:1.2rem;font-weight:900;line-height:1.35}
.quiz-marking-guide summary::-webkit-details-marker{display:none}
.quiz-marking-guide summary:focus-visible{outline:3px solid #0d79ab;outline-offset:-5px;border-radius:20px}
.quiz-guide-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:42px;border:1px solid #e3c165;border-radius:12px;background:#fff5d3;color:#9b6c12}
.quiz-guide-icon svg{width:26px;height:26px}
.quiz-guide-chevron{width:25px;height:25px;flex:none;margin-left:auto;transition:transform .2s ease}
.quiz-marking-guide[open] summary{border-bottom:1px solid #c8e2ed;background:#e3f2fb}
.quiz-marking-guide[open] .quiz-guide-chevron{transform:rotate(180deg)}
.quiz-guide-content{padding:22px}
.quiz-guide-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:20px}
.quiz-guide-point-card{display:flex;flex-direction:column;justify-content:center;gap:9px;padding:18px;border:2px solid #9dc9df;border-radius:18px;background:#fff;box-shadow:0 4px 0 #b5d8e72b;color:#155c81;text-align:center}
.quiz-guide-point-card>span{font-size:1.08rem;font-weight:800;line-height:1.4}
.quiz-guide-point-card>strong{font-size:1.95rem;font-weight:900;line-height:1.25;font-variant-numeric:tabular-nums}
.quiz-guide-point-card small{font-size:1.02rem;font-weight:800;white-space:nowrap}
.quiz-guide-correction-card{border-color:#e4c36a;background:linear-gradient(135deg,#fffef7,#fff4cf);color:#80580d}
.quiz-guide-rule{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #c3deeb;border-radius:16px;background:#ffffffb3}
.quiz-guide-rule+.quiz-guide-rule{margin-top:14px}
.quiz-guide-rule-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:34px;border-radius:11px;background:#d9eff9;color:#11678b;font-size:1.5rem;font-weight:900;line-height:1}
.quiz-guide-rule>div{min-width:0}
.quiz-guide-rule>div>strong{display:block;color:#155d82;font-size:1.13rem;line-height:1.4}
.quiz-marking-guide .quiz-guide-rule p{margin:7px 0 0;font-size:1.05rem;font-weight:600;line-height:1.7}
.quiz-guide-warning{border-color:#e7ca7c;background:#fff6dc;color:#765a20}
.quiz-guide-warning .quiz-guide-rule-icon{background:#ffe9a7;color:#8a600e}
.quiz-guide-warning>div>strong{color:#80580d}
@media(max-width:600px){
 .quiz-marking-guide{border-radius:18px}
 .quiz-marking-guide summary{gap:10px;min-height:70px;padding:14px 12px;font-size:1.1rem}
 .quiz-guide-icon{flex-basis:32px;width:32px;height:38px;border-radius:10px}
 .quiz-guide-icon svg{width:23px;height:23px}
 .quiz-guide-chevron{width:21px;height:21px}
 .quiz-guide-content{padding:16px 12px}
 .quiz-guide-points{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:16px}
 .quiz-guide-point-card{padding:16px 12px}
 .quiz-guide-point-card>strong{font-size:1.85rem}
 .quiz-guide-rule{gap:10px;padding:14px 11px}
 .quiz-guide-rule-icon{flex-basis:28px;width:28px;height:30px;font-size:1.3rem}
 .quiz-guide-rule>div>strong{font-size:1.08rem}
 .quiz-marking-guide .quiz-guide-rule p{font-size:1rem;line-height:1.65}
}
@media(prefers-reduced-motion:reduce){.quiz-guide-chevron{transition:none}}

/* Large, persistent quiz sound and navigation controls. */
.quiz-header-actions{display:flex;flex:none;flex-direction:column;gap:12px;min-width:170px}
.quiz-sound{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:10px 17px;border:2px solid #fff;border-radius:18px;background:linear-gradient(145deg,#fff5c9,#ffda72);box-shadow:0 3px 0 #c18d23,0 7px 15px #986b141b;color:#674808;font:inherit;font-size:.95rem;font-weight:900;line-height:1.25;cursor:pointer}
.quiz-sound svg{width:26px;height:26px;flex:none}
.quiz-sound[aria-pressed=false]{background:linear-gradient(145deg,#fff,#e5f0f6);box-shadow:0 3px 0 #93acb9,0 7px 15px #0a56791b;color:#4a6778}
.quiz-sound:hover{filter:brightness(1.04)}
.quiz-sound:focus-visible{outline:3px solid #0d79ab;outline-offset:4px}
@media(max-width:600px){
 .quiz-header-actions{grid-column:1/-1;flex-direction:row;gap:10px;min-width:0;width:100%;align-items:stretch}
 .quiz-header-actions .quiz-sound,.quiz-heading .quiz-header-actions .quiz-back{flex:1;min-width:0;min-height:54px;width:auto;gap:7px;padding:10px 7px;font-size:.9rem}
 .quiz-header-actions .quiz-sound svg{width:24px;height:24px}
}

/* A clear completion banner and one equal-size score display. */
.quiz-results{--quiz-result-accent:#126b9a;--quiz-result-tint:#eef7ff;--quiz-result-edge:#a7cee5;position:relative;overflow:hidden;padding:clamp(24px,4vw,44px);border-color:var(--quiz-result-edge);border-radius:30px;background:linear-gradient(145deg,#fffef8,var(--quiz-result-tint));box-shadow:0 18px 40px #082f4924}
.quiz-results:before{content:'';position:absolute;top:0;left:0;right:0;height:7px;background:linear-gradient(90deg,var(--quiz-result-accent),var(--quiz-result-edge),var(--quiz-result-accent))}
.quiz-completion-banner{display:inline-flex;align-items:center;justify-content:center;gap:13px;max-width:100%;min-height:70px;margin:8px 0 0;padding:16px 26px;border:3px solid #f0c767;border-radius:23px;background:linear-gradient(135deg,#1688b4,#07517f);box-shadow:0 5px 0 #063d5b,0 12px 24px #0c668322;color:#fff;font-size:clamp(1.35rem,2.8vw,1.8rem);font-weight:900;line-height:1.35;letter-spacing:.01em;text-align:center}
.quiz-completion-icon{flex:none;color:#ffdc77;font-size:2.1rem;line-height:1}
.quiz-results h2{margin:29px 0 25px;color:var(--quiz-result-accent);font-size:clamp(2rem,4.5vw,3rem);font-weight:900;line-height:1.25}
.quiz-score-card{width:min(100%,540px);margin:0 auto 28px;padding:23px 24px 29px;border:2px solid var(--quiz-result-edge);border-radius:25px;background:linear-gradient(135deg,#fff,var(--quiz-result-tint));box-shadow:0 5px 0 #082f4914,inset 0 1px 0 #fff}
.quiz-score-label{display:block;margin-bottom:18px;color:#173f57;font-size:1.5rem;font-weight:900;line-height:1.35;letter-spacing:.01em}
.quiz-results .quiz-score{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:18px;margin:0;color:#000;font-size:clamp(3.5rem,8vw,4.75rem);font-weight:900;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}
.quiz-results .quiz-score>strong,.quiz-results .quiz-score>.quiz-score-divider{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}
.quiz-results .quiz-score>#quizScoreValue{color:var(--quiz-result-accent)}
.quiz-results .quiz-score>.quiz-score-divider,.quiz-results .quiz-score>#quizScoreTotal{color:#000}
.quiz-results p{max-width:590px;margin:0 auto 29px;padding:20px 23px;border:1px solid var(--quiz-result-edge);border-radius:19px;background:var(--quiz-result-tint);color:#28526b;font-size:1.3125rem;font-weight:800;line-height:1.6}
.quiz-result-actions{gap:18px}
.quiz-result-actions button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:225px;min-height:72px;padding:17px 23px;border-radius:22px;font-size:1.25rem;font-weight:900;line-height:1.35}
.quiz-result-actions .primary{border:2px solid #ffe5a4}
.quiz-result-actions .secondary{border:2px solid #4a9dc4;background:linear-gradient(145deg,#fff,#e6f5ff);color:#0a608b;box-shadow:0 5px 0 #9fc5d7,0 10px 20px #0a567917}
.quiz-result-button-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #ffffff90;border-radius:11px;background:#ffffff35;font-size:1.6rem;line-height:1}
.quiz-result-actions .secondary .quiz-result-button-icon{border-color:#badce9;background:#d9eff9}
.quiz-result-actions button:focus-visible{outline:3px solid #e4ad2f;outline-offset:5px}
.quiz-question-panel[data-question-type=vocabulary] #quizStatement{display:block;margin:0 0 26px;padding:22px 26px;border:2px solid #dfb650;border-radius:22px;background:linear-gradient(135deg,#fffef6,#fff1c8);box-shadow:0 5px 0 #d6b15a33,0 10px 22px #88610d12;color:#0a6088;font-size:clamp(2.2rem,4.2vw,2.9rem);font-weight:900;line-height:1.3;letter-spacing:.015em;overflow-wrap:anywhere}
.quiz-meaning-field{min-width:0;margin:6px 0 0}
.quiz-meaning-field label{display:block;margin-bottom:13px;color:#155a7d;font-size:1.35rem;font-weight:900;line-height:1.5}
.quiz-meaning-field textarea{display:block;width:100%;min-height:180px;max-height:360px;padding:18px 20px;border:2px solid #acd5e8;border-radius:19px;resize:vertical;background:#fff;color:#123e58;font:inherit;font-size:1.3rem;font-weight:700;line-height:1.7;box-shadow:inset 0 2px 5px #0a567908}
.quiz-meaning-field textarea::placeholder{color:#688599;font-weight:600;opacity:1}
.quiz-meaning-field textarea:focus{outline:3px solid #f3ca67;outline-offset:3px;border-color:#2085ad}
.quiz-meaning-field textarea:disabled{background:#edf3f6;color:#526b79}
.quiz-meaning-field p{margin:14px 0 0;padding:13px 16px;border:1px solid #c3dfed;border-radius:14px;background:#edf8ff;color:#39647e;font-size:1.1rem;font-weight:700;line-height:1.6}
.quiz-story-tip .quiz-meaning-length-rule{padding:16px 18px;border:2px solid #d6ab38;background:linear-gradient(135deg,#fffef8,#ffedb2);font-size:1.18rem;font-weight:800;line-height:1.65}
.quiz-vocabulary-card{margin-top:20px;padding:22px 24px;border:2px solid #9bcce0;border-left:6px solid #2282a8;border-radius:19px;background:linear-gradient(135deg,#fff,#edf9ff);box-shadow:0 4px 0 #3e829c14,0 8px 18px #265c7310;color:#225d78}
.quiz-vocabulary-card h3{display:flex;align-items:center;gap:12px;margin:0 0 14px;color:#0c648c;font-size:1.5rem;font-weight:900;line-height:1.35;letter-spacing:.01em}
.quiz-vocabulary-card h3>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #bedfea;border-radius:11px;background:#e3f3fb;color:#11779e;font-size:1.65rem;line-height:1}
.quiz-story-tip .quiz-vocabulary-card p{margin:0;font-size:1.3rem;font-weight:700;line-height:1.7;color:inherit}
.quiz-story-tip .quiz-vocabulary-card .quiz-vocabulary-emphasis{margin-top:14px;padding-top:14px;border-top:1px solid #b9d9e7}
.quiz-vocabulary-card b{font-weight:900}
.quiz-vocabulary-reference{border-color:#8ec2d8;background:linear-gradient(135deg,#fffef8,#edf8ff);box-shadow:0 4px 0 #3e829c1c,0 10px 22px #265c7312}
.quiz-vocabulary-recommendation{display:inline-flex;align-items:center;min-height:32px;margin-bottom:15px;padding:5px 12px;border:1px solid #d4ab47;border-radius:10px;background:linear-gradient(135deg,#fff5d4,#ffe39a);color:#79500b;font-size:.96rem;font-weight:900;letter-spacing:.03em;line-height:1.3}
.quiz-vocabulary-reference h3{font-size:1.55rem;line-height:1.4}
.quiz-vocabulary-reference h3>span svg{display:block;width:25px;height:25px}
.quiz-story-tip .quiz-vocabulary-reference .quiz-vocabulary-emphasis{padding:15px 17px;border:1px solid #c1dce9;border-radius:13px;background:#ffffffc9;color:#325e76}
.quiz-vocabulary-marking{border-color:#e3bc57;border-left-color:#c68d19;background:linear-gradient(135deg,#fffef8,#fff3ce);color:#745014}
.quiz-vocabulary-marking h3{color:#82570c}
.quiz-vocabulary-marking h3>span{border-color:#e9ce86;background:#ffedb7;color:#926511}
.quiz-story-tip .quiz-vocabulary-marking .quiz-vocabulary-emphasis{border-color:#e5c978}
.quiz-rule-value{display:inline-block;padding:2px 9px;border:1px solid #d6a332;border-radius:9px;background:#ffe8a2;color:#674209;font-size:1.08em;line-height:1.5;white-space:nowrap}
.quiz-question-panel[data-question-type=vocabulary_word] #quizStatement{margin:0 0 28px;padding:24px 27px;border:2px solid #dfb650;border-radius:22px;background:linear-gradient(135deg,#fffef6,#fff1c8);box-shadow:0 5px 0 #d6b15a33,0 10px 22px #88610d12;color:#0b6088;font-size:clamp(1.65rem,3.5vw,2.15rem);font-weight:900;line-height:1.5;overflow-wrap:break-word}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-blank-field input{min-height:78px;font-size:1.65rem;font-weight:800}
.quiz-meaning-length-rule b{display:block;margin-bottom:5px;font-size:1.3rem;font-weight:900}
.quiz-meaning-field .quiz-meaning-validation{padding:16px 18px;border:2px solid #d6ab38;border-radius:16px;background:#fff4ce;color:#79520e;font-size:1.2rem;font-weight:900;line-height:1.6}
.quiz-meaning-field textarea[aria-invalid=true]{border-color:#c69a29}

/* Prominent, readable guidance for finding a vocabulary word. */
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions{gap:20px;padding:26px 27px;border-radius:25px;box-shadow:0 5px 0 #a8d0e333,0 12px 26px #0a567914}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions>span{flex-basis:62px;width:62px;height:66px;border-radius:19px}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions>span svg{width:40px;height:40px}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions strong{font-size:1.65rem;line-height:1.4}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions p{font-size:1.3rem;font-weight:800;line-height:1.65}
.quiz-word-tip{gap:20px;padding:26px 27px;border:2px solid #dfb64c;border-radius:25px;background:linear-gradient(135deg,#fffef7,#fff0bd);box-shadow:0 5px 0 #d9b24c33,0 12px 26px #8f650e12}
.quiz-word-tip>.quiz-story-tip-icon{flex-basis:62px;width:62px;height:66px;border-radius:19px}
.quiz-word-tip>.quiz-story-tip-icon svg{width:40px;height:40px}
.quiz-word-tip #quizWordTipTitle{font-size:1.65rem;font-weight:900;line-height:1.4}
.quiz-word-tip p{font-size:1.3rem;font-weight:800;line-height:1.65}
.quiz-word-rule{margin-top:22px;padding:21px 23px;border:2px solid #dfc16c;border-radius:19px;background:#fffdf5;box-shadow:inset 0 1px 0 #fff,0 4px 0 #c99e3220}
.quiz-word-rule h3{display:flex;align-items:center;gap:11px;margin:0 0 13px;color:#86590c;font-size:1.4rem;font-weight:900;line-height:1.4}
.quiz-word-rule h3>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:36px;border:1px solid #e8ce83;border-radius:11px;background:#ffedb6;color:#a47311;font-size:1.55rem;line-height:1}
.quiz-word-rule p{margin:0;font-size:1.3rem;font-weight:800;line-height:1.7}
.quiz-word-rule .quiz-word-capital-rule{margin-top:15px;padding-top:15px;border-top:1px solid #e9ce83;color:#6c5727}
.quiz-question-panel[data-question-type=vocabulary_word] .quiz-blank-field label{font-size:1.4rem;font-weight:900;line-height:1.5}
@media(max-width:600px){
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px 11px;padding:20px 14px;border-radius:20px}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions>span{width:46px;height:52px;border-radius:14px}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions>span svg{width:31px;height:31px}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions>div{display:contents}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions strong{grid-column:2;align-self:center;font-size:1.35rem;line-height:1.4}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-instructions p{grid-column:1/-1;margin:0;font-size:1.15rem;line-height:1.7}
 .quiz-word-tip{grid-template-columns:46px minmax(0,1fr);gap:13px 11px;padding:20px 14px;border-radius:20px}
 .quiz-word-tip>.quiz-story-tip-icon{width:46px;height:52px;border-radius:14px}
 .quiz-word-tip>.quiz-story-tip-icon svg{width:31px;height:31px}
 .quiz-word-tip #quizWordTipTitle{font-size:1.35rem;line-height:1.4}
 .quiz-word-tip p{font-size:1.15rem;line-height:1.7}
 .quiz-word-rule{grid-column:1/-1;margin-top:2px;padding:17px 12px;border-radius:16px}
 .quiz-word-rule h3{gap:8px;font-size:1.2rem;line-height:1.45}
 .quiz-word-rule h3>span{flex-basis:29px;width:29px;height:32px;font-size:1.3rem}
 .quiz-word-rule p{font-size:1.15rem;line-height:1.7}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-blank-field label{font-size:1.25rem}
}
@media(max-width:600px){
 .quiz-story-tip .quiz-meaning-length-rule{padding:14px 12px;font-size:1.05rem}
 .quiz-vocabulary-card{grid-column:1/-1;margin-top:6px;padding:17px 14px;border-left-width:5px;border-radius:16px}
 .quiz-vocabulary-card h3{gap:9px;margin-bottom:13px;font-size:1.25rem}
 .quiz-vocabulary-card h3>span{flex-basis:30px;width:30px;height:32px;border-radius:10px;font-size:1.4rem}
 .quiz-vocabulary-recommendation{min-height:31px;margin-bottom:14px;padding:5px 10px;font-size:.9rem}
 .quiz-vocabulary-reference h3{font-size:1.28rem}
 .quiz-vocabulary-reference h3>span svg{width:22px;height:22px}
 .quiz-story-tip .quiz-vocabulary-reference .quiz-vocabulary-emphasis{padding:13px 12px;border-radius:12px}
 .quiz-story-tip .quiz-vocabulary-card p{font-size:1.15rem;line-height:1.7}
 .quiz-story-tip .quiz-vocabulary-card .quiz-vocabulary-emphasis{margin-top:12px;padding-top:12px}
 .quiz-rule-value{padding:2px 6px}
 .quiz-question-panel[data-question-type=vocabulary_word] #quizStatement{padding:19px 16px;border-radius:18px;font-size:1.55rem;line-height:1.5}
 .quiz-question-panel[data-question-type=vocabulary_word] .quiz-blank-field input{min-height:72px;font-size:1.4rem}
 .quiz-meaning-length-rule b{font-size:1.2rem}
 .quiz-meaning-field .quiz-meaning-validation{padding:14px 12px;font-size:1.1rem}
 .quiz-question-panel[data-question-type=vocabulary] #quizStatement{padding:19px 16px;border-radius:18px;font-size:2rem;line-height:1.35}
 .quiz-meaning-field label{font-size:1.2rem}
 .quiz-meaning-field textarea{min-height:175px;padding:16px 13px;border-radius:16px;font-size:1.15rem}
 .quiz-meaning-field p{padding:12px;font-size:1.05rem}
 .quiz-results{padding:25px 18px 28px;border-radius:24px}
 .quiz-completion-banner{width:100%;min-height:74px;gap:10px;padding:15px 12px;border-radius:19px;font-size:1.3rem}
 .quiz-completion-icon{font-size:1.85rem}
 .quiz-results h2{margin:27px 0 23px;font-size:2rem}
 .quiz-score-card{padding:18px 13px 22px;border-radius:21px}
 .quiz-score-label{font-size:1.4rem}
 .quiz-results .quiz-score{gap:10px;font-size:3rem}
 .quiz-results p{padding:17px 13px;font-size:1.1875rem}
 .quiz-result-actions{gap:17px}
 .quiz-result-actions button{width:100%;min-width:0;min-height:70px;padding:16px 12px;gap:10px;font-size:1.15rem}
}


/* Shared focal hierarchy for every current and future question. */
#quizQuestionPanel #quizMatchPrompt{margin:0 0 24px;padding:18px 21px;border:1px solid #b7dcec;border-left:6px solid #e5b133;border-radius:0 19px 19px 0;background:linear-gradient(115deg,#dff2ff,#f0faff);box-shadow:0 4px 0 #a6d2e425;color:#0b628a;font-size:clamp(1.3rem,2.6vw,1.65rem);font-weight:900;letter-spacing:.005em;line-height:1.5;overflow-wrap:break-word}
#quizQuestionPanel #quizStatement{display:block;margin:0 0 30px;padding:25px 27px;border:2px solid #c3deeb;border-left:6px solid #d8a62c;border-radius:21px;background:linear-gradient(135deg,#fffef8,#f4fbff);box-shadow:0 5px 0 #8bb7cc24,0 12px 26px #164d6810;color:#123f59;font-family:'Trebuchet MS',Arial,sans-serif;font-size:clamp(1.8rem,3.7vw,2.55rem);font-weight:900;letter-spacing:.005em;line-height:1.48;overflow-wrap:anywhere}
#quizQuestionPanel[data-question-type=vocabulary] #quizStatement{font-size:clamp(2.6rem,4.3vw,3.2rem);color:#0a6088;border-color:#d9b24a;background:linear-gradient(135deg,#fffef6,#ffefc2)}
#quizQuestionPanel[data-question-type=vocabulary_word] #quizStatement{color:#0a6088;border-color:#d9b24a;background:linear-gradient(135deg,#fffef6,#ffefc2)}
.quiz-question-context .quiz-type-label,.quiz-question-context .quiz-page-reference{font-size:1rem;font-weight:900}
.quiz-comprehension-badge{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:2px solid #74bda9;border-radius:14px;background:linear-gradient(135deg,#e9fcf4,#d2f3e8);box-shadow:0 3px 0 #4b9a8226;color:#165f52;font-size:1rem;font-weight:900;line-height:1.25}
.quiz-comprehension-badge>span{color:#b18216;font-size:1.4rem;line-height:1}
.quiz-comprehension-tip{display:flex;align-items:flex-start;gap:18px;margin:0 0 30px;padding:25px 26px;border:2px solid #92c9b9;border-left:6px solid #329982;border-radius:23px;background:linear-gradient(135deg,#f3fff9,#e0f5ef);box-shadow:0 5px 0 #619d8a22,0 10px 22px #245b4810;color:#245f54}
.quiz-comprehension-tip>div{flex:1;min-width:0}
.quiz-comprehension-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:62px;border:2px solid #fff;border-radius:18px;background:linear-gradient(145deg,#fff,#d0f1e6);box-shadow:0 4px 0 #9ecbbb;color:#197a66}
.quiz-comprehension-icon svg{width:37px;height:37px}
.quiz-comprehension-kicker{display:block;margin-bottom:8px;color:#53796a;font-size:.87rem;font-weight:900;letter-spacing:.075em;line-height:1.4}
.quiz-comprehension-tip strong{display:block;color:#155f51;font-size:1.5rem;font-weight:900;line-height:1.4}
.quiz-comprehension-tip p{margin:12px 0 0;font-size:1.25rem;font-weight:700;line-height:1.7}
.quiz-comprehension-tip b{font-weight:900;color:#195e50}
.quiz-comprehension-tip .quiz-comprehension-emphasis{margin-top:18px;padding:16px 18px;border:1px solid #acd2c6;border-radius:16px;background:#ffffffbd;font-size:1.18rem;font-weight:800;line-height:1.7}
@media(max-width:600px){
 #quizQuestionPanel #quizMatchPrompt{margin-bottom:22px;padding:16px 14px;border-left-width:5px;border-radius:0 15px 15px 0;font-size:1.2rem;line-height:1.6}
 #quizQuestionPanel #quizStatement{margin-bottom:26px;padding:20px 16px;border-left-width:5px;border-radius:18px;font-size:clamp(1.6rem,5.5vw,1.9rem);line-height:1.5}
 #quizQuestionPanel[data-question-type=vocabulary] #quizStatement{font-size:2.3rem}
 .quiz-question-context .quiz-type-label,.quiz-question-context .quiz-page-reference{font-size:.92rem}
 .quiz-comprehension-badge{min-height:40px;padding:8px 12px;border-radius:13px;font-size:.95rem}
 .quiz-comprehension-tip{display:grid;grid-template-columns:44px minmax(0,1fr);gap:13px 11px;padding:20px 14px;border-left-width:5px;border-radius:19px}
 .quiz-comprehension-tip>div{display:contents}
 .quiz-comprehension-icon{grid-column:1;grid-row:1/3;width:44px;height:50px;border-radius:14px}
 .quiz-comprehension-icon svg{width:29px;height:29px}
 .quiz-comprehension-kicker{grid-column:2;margin:0;font-size:.75rem;letter-spacing:.035em}
 .quiz-comprehension-tip strong{grid-column:2;font-size:1.25rem;line-height:1.4}
 .quiz-comprehension-tip p{grid-column:1/-1;margin:0;font-size:1.12rem;line-height:1.75}
 .quiz-comprehension-tip .quiz-comprehension-emphasis{grid-column:1/-1;margin:0;padding:14px 12px;font-size:1.1rem;line-height:1.75;border-radius:14px}
}
#quizQuestionPanel .quiz-mcq-content{font-size:1.3rem;line-height:1.6;font-weight:800}
#quizQuestionPanel .quiz-choice strong{font-size:1.35rem}
#quizQuestionPanel .quiz-correction-field label{font-size:1.25rem;line-height:1.5}
#quizQuestionPanel .quiz-correction-field textarea{font-size:1.25rem;line-height:1.7;padding:17px 18px;border-radius:17px}
@media(max-width:600px){
 #quizQuestionPanel .quiz-mcq-content{font-size:1.15rem;line-height:1.65}
 #quizQuestionPanel .quiz-choice strong{font-size:1.2rem}
 #quizQuestionPanel .quiz-correction-field label{font-size:1.15rem}
 #quizQuestionPanel .quiz-correction-field textarea{font-size:1.15rem;padding:15px 13px}
}

/* Per-question time stays readable while longer writing and matching cards scroll. */
.app:has(.quiz-screen.active){overflow:clip}
.quiz-question-timer{position:sticky;top:10px;z-index:8;margin:0 0 28px;padding:19px 22px 17px;border:2px solid #a7d4e5;border-radius:23px;background:linear-gradient(125deg,#fffef5,#e9f7ff);box-shadow:0 5px 0 #91bfd534,0 10px 22px #0b4d6b16;color:#0c5d80}
.quiz-timer-main{display:flex;align-items:center;gap:16px;min-width:0}
.quiz-timer-icon{display:grid;place-items:center;flex:none;width:58px;height:61px;border:1px solid #ead293;border-radius:17px;background:#fff4ce;color:#a67513}
.quiz-timer-icon svg{display:block;width:38px;height:38px}
.quiz-timer-numbers{min-width:0;flex:1}
.quiz-timer-numbers>span{display:block;font-size:clamp(1.05rem,1.8vw,1.18rem);font-weight:900;letter-spacing:.07em;line-height:1.35}
.quiz-timer-numbers>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.quiz-timer-numbers strong{font-size:clamp(2.35rem,4.6vw,2.9rem);line-height:1.15;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.015em}
.quiz-timer-numbers small{color:#3c667d;font-size:1.2rem;font-weight:800;white-space:nowrap}
.quiz-timer-mode{flex:none;max-width:175px;padding:10px 14px;border:1px solid #b5d8c3;border-radius:999px;background:#f1fbf4;color:#2d6146;font-size:1.1rem;font-weight:900;text-align:center;line-height:1.4}
.quiz-time-track{height:9px;overflow:hidden;margin-top:14px;border-radius:999px;background:#d4e7ee}
.quiz-time-track>span{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#dfaa2c,#ffda73);transition:width .2s linear}
.quiz-question-timer>p{margin:12px 0 0;color:#315f79;font-size:clamp(1.2rem,2.1vw,1.35rem);font-weight:800;line-height:1.5}
.quiz-question-timer[data-state=urgent]{border-color:#e5b54b;background:linear-gradient(125deg,#fffdf2,#fff0c3)}
.quiz-question-timer[data-state=urgent] .quiz-timer-numbers strong{color:#c53b32}
.quiz-question-timer[data-state=urgent] .quiz-timer-mode{border-color:#e8c063;background:#fff6dc;color:#855615}
.quiz-question-timer[data-state=expired]{border-color:#d5b56b;background:#fff7e3}
.quiz-question-timer[data-state=checked]{border-color:#a9d3c4}
.quiz-question-timer[data-state=paused] .quiz-timer-mode{background:#eef2f7;color:#5b6c80}
.quiz-question-timer[data-state=untimed] .quiz-time-track{display:none}
.quiz-time-announcement{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.quiz-feedback .quiz-timeout-notice{margin:0 0 19px;padding:16px 18px;border:1px solid #d8bb75;border-radius:16px;background:#fff9e9;color:#72531e;font-size:clamp(1.15rem,2vw,1.3rem);font-weight:700;line-height:1.65}
.quiz-start-panel{padding:clamp(23px,4vw,38px);border:3px solid #fff;border-radius:27px;background:linear-gradient(140deg,#fffdf2,#edf9ff);box-shadow:0 14px 34px #082f491b;text-align:center}
.quiz-start-star{display:inline-grid;place-items:center;width:58px;height:58px;margin-bottom:8px;border:2px solid #e6bf5b;border-radius:18px;background:#fff0bd;color:#ad7b14;font-size:2rem}
.quiz-start-panel h2{margin:9px 0 15px;color:#0a5b86;font-size:clamp(2.1rem,5vw,3rem);line-height:1.2}
.quiz-start-panel>p{margin:0;color:#315f79;font-size:clamp(1.3rem,2.5vw,1.5rem);font-weight:800;line-height:1.55}
.quiz-pace-options{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:26px 0}
.quiz-pace-card{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:26px 23px;border:2px solid #9dcade;border-radius:24px;background:#fff;color:#205872;box-shadow:0 5px 0 #b2d2df5e;text-align:left;cursor:pointer;font:inherit;min-width:0;overflow-wrap:break-word}
.quiz-pace-card strong{font-size:clamp(1.5rem,2.7vw,1.8rem);font-weight:900;line-height:1.35;color:#0b5b83}
.quiz-pace-card>span:last-child{font-size:clamp(1.2rem,2.1vw,1.35rem);font-weight:700;line-height:1.6}
.quiz-pace-kicker{font-size:1.05rem;font-weight:900;letter-spacing:.055em;line-height:1.5}
.quiz-pace-timed{border-color:#d6a63c;background:linear-gradient(135deg,#fff9df,#ffecac);color:#795719}
.quiz-pace-timed strong{color:#73480c}
.quiz-pace-card:hover{filter:brightness(1.025);transform:translateY(-2px)}
.quiz-pace-card:focus-visible{outline:4px solid #1382af;outline-offset:4px}
.quiz-start-panel .quiz-start-note{padding:20px;border:1px solid #c6dfe9;border-radius:19px;background:#edf7fc;color:#315f79;font-size:clamp(1.2rem,2.1vw,1.35rem);font-weight:700;line-height:1.65;text-align:left}
@media(max-width:600px){
 .quiz-question-timer{top:6px;margin-bottom:23px;padding:15px 12px 13px;border-radius:19px}
 .quiz-timer-main{gap:10px}
 .quiz-timer-icon{width:39px;height:47px;border-radius:12px}
 .quiz-timer-icon svg{width:29px;height:29px}
 .quiz-timer-mode{max-width:95px;font-size:1rem;padding:8px}
 .quiz-timer-numbers small{font-size:1rem}
 .quiz-timer-numbers>div{gap:6px}
 .quiz-question-timer>p{font-size:1.2rem;line-height:1.5}
 .quiz-pace-options{grid-template-columns:minmax(0,1fr);gap:16px}
 .quiz-pace-card{padding:24px 19px}
 .quiz-pace-card strong{font-size:1.55rem}
 .quiz-start-panel>p{font-size:1.3rem}
}
@media(max-width:360px){
 .quiz-timer-main{display:grid;grid-template-columns:32px minmax(0,1fr) 74px;gap:8px}
 .quiz-timer-icon{grid-column:1;grid-row:2;width:32px}
 .quiz-timer-icon svg{width:25px;height:25px}
 .quiz-timer-numbers{display:contents}
 .quiz-timer-numbers>span{grid-column:1/-1;grid-row:1;font-size:1rem;letter-spacing:.04em;white-space:nowrap}
 .quiz-timer-numbers>div{grid-column:2;grid-row:2}
 .quiz-timer-numbers strong{font-size:2rem}
 .quiz-timer-numbers small{font-size:1rem}
 .quiz-timer-mode{grid-column:3;grid-row:2;max-width:74px;padding:7px 5px;font-size:1rem}
 .quiz-start-panel{padding:23px 18px}
 .quiz-pace-card{padding:22px 16px}
}
@media(prefers-reduced-motion:reduce){.quiz-time-track>span,.quiz-pace-card{transition:none}.quiz-pace-card:hover{transform:none}}

/* Focused controls stay clear of the timer and the word board. */
.quiz-screen :is(input,textarea,button,summary,[tabindex]){scroll-margin-top:var(--quiz-timer-clearance,220px);scroll-margin-bottom:24px}
@media(min-width:760px) and (min-height:900px){
 .quiz-screen .quiz-wordbank-board{top:var(--quiz-timer-clearance,220px)}
 .quiz-screen .quiz-wordbank-input{scroll-margin-top:calc(var(--quiz-timer-clearance,220px) + var(--quiz-wordboard-height,360px) + 24px)}
}
@media(max-height:899px){.quiz-screen .quiz-wordbank-board{position:static}}
/* Leave room to answer in landscape and shorter browser viewports. */
@media(max-height:560px){
 .quiz-screen .quiz-question-timer,.quiz-screen .quiz-wordbank-board{position:static}
 .quiz-screen :is(input,textarea,button,summary,[tabindex]),.quiz-screen .quiz-wordbank-item,.quiz-screen .quiz-wordbank-input{scroll-margin-top:24px}
}
