.pdf-player .paper{--answer-edge:#83b9e4;--answer-bottom:#c5ddf0;--answer-fill:#f1f9ff}
.pdf-player .paper[data-page="2"]{--answer-edge:#87bda8;--answer-bottom:#bedfcd;--answer-fill:#f1fbf6}
.pdf-player .paper[data-page="3"]{--answer-edge:#dbbc69;--answer-bottom:#ebd89e;--answer-fill:#fff9e9}
.pdf-player .paper[data-page="4"]{--answer-edge:#ab91cb;--answer-bottom:#d8c8eb;--answer-fill:#f8f3ff}
.pdf-player .paper[data-page="5"]{--answer-edge:#cc9eb7;--answer-bottom:#eccddd;--answer-fill:#fff6fa}
.pdf-player .paper-input{border:2px solid var(--answer-edge);border-radius:10px;background:linear-gradient(180deg,#fff,var(--answer-fill));box-shadow:0 3px 0 var(--answer-bottom),inset 0 1px 0 #fff;color:var(--navy);font-weight:800;padding-inline:7px;font-size:max(14px,1.9cqw);transition:border-color .15s,box-shadow .15s}
.pdf-player .paper-input:hover{border-color:#548dc1;box-shadow:0 3px 0 var(--answer-bottom),0 0 0 2px #eaf4ff80}
.pdf-player .paper-input:focus{outline:3px solid #ffd15b;outline-offset:3px;border-color:#1b5fcb;box-shadow:0 3px 0 #b8d3ee;background:#fffdf4}
.pdf-player .paper-input:is(select){appearance:none;padding:0 14px 0 4px;text-align:center;font-weight:900;border-radius:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%231b5fcb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),linear-gradient(180deg,#fff,var(--answer-fill));background-position:right 4px center,center;background-repeat:no-repeat;background-size:9px 6px,100% 100%;font-size:max(13px,1.7cqw)}
.pdf-player .paper-input:is(textarea){background:linear-gradient(#fffafde8,#fff7fbe8);border-radius:15px;padding:12px;line-height:1.8;font-weight:700;box-shadow:0 4px 0 #eccddd}
.pdf-player .hotspot{border:1.7px solid #85b8dd;border-radius:10px;background:#bde4ff14;box-shadow:0 2px 0 #bcd9ee7d;transition:background-color .15s,border-color .15s,box-shadow .15s}
.pdf-player .hotspot:nth-of-type(2){border-color:#90bca6;background:#c2ead717;box-shadow:0 2px 0 #c0ddce88}
.pdf-player .hotspot:nth-of-type(3){border-color:#b8a0d3;background:#ddd0f917;box-shadow:0 2px 0 #d8c8eb88}
.pdf-player .hotspot:hover{background:#8bc5ff2b;border-color:#4382bc;box-shadow:0 3px 0 #bdd7ef}
.pdf-player .hotspot input{border-radius:9px}
.pdf-player .hotspot:has(input:checked){border:2px solid #1b5fcb;background:#b5d8ff35;box-shadow:0 3px 0 #bad1ed,0 0 0 2px #fff9}
.pdf-player .hotspot:has(input:checked)::after{width:19px;height:19px;top:-7px;right:-5px;font:900 12px/19px Nunito,sans-serif;background:#1b5fcb;border:1px solid #fff;box-shadow:0 2px 3px #14427c30}
.pdf-player .hotspot:focus-within{outline:3px solid #ffd15b;outline-offset:3px}
.pdf-player .paper-input.correct{border-color:#389b73!important;background-color:#effbf3!important;background-image:linear-gradient(#f7fff9,#e7f7ed);box-shadow:0 3px 0 #b9dfca}
.pdf-player .paper-input.retry{border-color:#d79839!important;background-color:#fff7e9!important;background-image:linear-gradient(#fffdf5,#fff1d9);box-shadow:0 3px 0 #eed6a2}
.pdf-player .paper-input.needs-review{border-color:#a28ac7!important;background-color:#f9f4ff!important;background-image:linear-gradient(#fdfaff,#f3ecfd);box-shadow:0 3px 0 #dac9ef}
.pdf-player .paper-input:is(select).correct,.pdf-player .paper-input:is(select).retry,.pdf-player .paper-input:is(select).needs-review{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%231b5fcb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.pdf-player .hotspot.correct{background-color:#53c98c1f!important;box-shadow:0 3px 0 #b9dfca}
.pdf-player .hotspot.retry{background-color:#edb74b22!important;box-shadow:0 3px 0 #eed6a2}
.pdf-player .hotspot.needs-review{background-color:#ab83d522!important;box-shadow:0 3px 0 #dac9ef}
.pdf-player .hotspot.correct:has(input:checked)::after{background:#23815d}
.pdf-player .hotspot.retry:has(input:checked)::after{content:'↻';background:#a96c16}
.pdf-player .hotspot.needs-review:has(input:checked)::after{content:'•';background:#8060aa}
.pdf-player .list-field input[type=text],.pdf-player .list-field select,.pdf-player .list-field textarea{border:2px solid #b2cfe6;border-radius:14px;background:#f3faff;box-shadow:0 3px 0 #d6e7f4;font-weight:800;min-height:48px}
.pdf-player .list-field textarea{background:#fff7fb;border-color:#dfb8cb;box-shadow:0 3px 0 #f1dce7}
.pdf-player .list-options{gap:12px}
.pdf-player .list-options label{border:1px solid #c4dced;background:#edf8ff;border-radius:14px;box-shadow:0 3px 0 #d9e9f4;padding:11px 14px;font-weight:800}
.pdf-player .list-options label:nth-of-type(2){background:#f0fbf5;border-color:#bfdfce;box-shadow:0 3px 0 #d4ebdf}
.pdf-player .list-options label:nth-of-type(3){background:#f6f0ff;border-color:#d5c7e8;box-shadow:0 3px 0 #e5daf4}
.pdf-player .list-options label:has(input:checked){border:2px solid #1b5fcb;background:#e0f0ff;box-shadow:0 3px 0 #b8d2ee}
.pdf-player .list-options input{accent-color:#1b5fcb;width:16px;height:16px;vertical-align:-2px;margin-right:6px}
.pdf-player .list-page h2{color:#1b5fcb}
.pdf-player .result{border-radius:22px;border-color:#d3e3ef;box-shadow:0 4px 0 #dce8f2}
.pdf-player .score-ring{background:#f5fcff;border-color:#bde1f5;color:#1b5fcb}
.pdf-player .result .notice{background:#f3edfc;border:1px solid #dfd1f1;border-radius:16px}
.pdf-player .feedback-row button{border-radius:10px;padding:7px 10px;font-weight:800}
.pdf-player .bottom-actions{background:#fffefa}
@media(prefers-reduced-motion:reduce){.pdf-player .paper-input,.pdf-player .hotspot,.pdf-player .primary{transition:none}
}
.pdf-player #page-nav a{font-weight:900}.pdf-player #page-nav a:nth-child(1){background:#eaf8ff;border-color:#c6e0f4}.pdf-player #page-nav a:nth-child(2){background:#e6f6ed;border-color:#c1e3d3}.pdf-player #page-nav a:nth-child(3){background:#fff5d6;border-color:#efdca3}.pdf-player #page-nav a:nth-child(4){background:#f1ebfd;border-color:#dacdf0}.pdf-player #page-nav a:nth-child(5){background:#fff0f6;border-color:#f0cede}.pdf-player .primary{background:#1b5fcb;border-radius:14px;font-family:inherit;font-weight:900;box-shadow:0 4px 0 #124ba5}.pdf-player .primary:hover{background:#174fae}.pdf-player .toolbar select,.pdf-player .mode{font-family:inherit;font-weight:800;border-radius:11px;background:#eef7ff}
.pdf-player .word-mark{position:absolute;padding:0;margin:0;border:1px dashed #668eb644;border-radius:4px;background:transparent;min-width:0;min-height:0;box-shadow:none;color:transparent}
.pdf-player .word-mark:hover{background:#ffd75b33;border-color:#678bc3}
.pdf-player .word-mark[data-role="noun"]{border:2px solid #236fc3;border-radius:50%;background:#d9efff1a}
.pdf-player .word-mark[data-role="adjective"]{border:0;border-bottom:3px solid #995ab9;border-radius:0;background:transparent}
.pdf-player .word-mark:focus-visible{outline:3px solid #e5a71d;outline-offset:3px}
.pdf-player .word-mark.correct{box-shadow:0 0 0 2px #64b89455}
.pdf-player .word-mark.retry{box-shadow:0 0 0 2px #eeb65088}
.pdf-player .hotspot:has(input[type=checkbox]){border-radius:3px;box-shadow:none;min-height:0}
.pdf-player .hotspot:has(input[type=checkbox]:checked)::after{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:100%;height:100%;font-size:max(9px,1.3cqw);line-height:1.3;border:0;border-radius:2px;box-shadow:none}
.pdf-player .annotation-list label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pdf-player .annotation-list select{max-width:100%}

.pdf-player .paper-input{min-height:0}

.pdf-player .activity-paper{position:absolute;background:transparent;border-radius:5px}
.pdf-player .word-grid{display:grid;grid-template-columns:repeat(var(--columns),1fr);width:100%;height:100%;aspect-ratio:1}
.pdf-player .word-grid button{margin:0;padding:0;min-width:0;min-height:0;border:1px solid #4674ac33;border-radius:0;background:transparent;box-shadow:none;font-weight:900;color:#184c91}
.pdf-player .word-grid button[aria-pressed=true]{background:#ffd55666;box-shadow:inset 0 0 0 1px #b77c26}
.pdf-player .word-grid button.path-start{background:#d5c4f777;outline:2px solid #7755ad;outline-offset:-2px}
.pdf-player .activity-tools{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:4px 0}
.pdf-player .activity-tools button,.pdf-player .activity-tools select{font-size:11px;font-weight:800;border:1px solid #accbe6;border-radius:7px;background:#eef7ff;padding:4px 6px;box-shadow:none;min-height:27px;width:auto}
.pdf-player .activity-status,.pdf-player .activity-help{font-size:12px;line-height:1.4;color:#315a7e;margin:4px 0}
.pdf-player .activity-paper .activity-status{font-size:10px;background:#fffdf5}
.pdf-player .activity-paper.wordsearch .activity-tools{position:absolute;top:100%;left:0;width:210%;padding-top:5px}
.pdf-player .activity-paper.wordsearch .activity-status{position:absolute;top:calc(100% + 35px);width:220%}
.pdf-player .drawing-canvas{border:1px solid #77a8d9;border-radius:6px;touch-action:none;background:transparent;display:block;width:100%;aspect-ratio:2.58;height:auto}
.pdf-player .activity-paper.drawing .activity-tools{position:absolute;top:0;left:0;width:100%;height:35px;box-sizing:border-box;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap}
.pdf-player .activity-paper.drawing .activity-tools>*{flex-shrink:0;font-size:10px;padding:3px 5px;min-height:25px}
.pdf-player .activity-paper.drawing .activity-status{position:absolute;top:35px;width:100%;height:14px;line-height:14px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdf-player .activity-paper.drawing .drawing-canvas{margin-top:50px;height:calc(100% - 50px)}
.pdf-player .activity-list .word-grid{max-width:480px;min-width:280px;height:auto}
.pdf-player .activity-list .word-grid button{aspect-ratio:1;min-height:28px;font-size:16px}
.pdf-player .activity-list .drawing-canvas{height:auto;max-width:900px}
.pdf-player .activity-list label{display:block;font-size:13px;margin-top:15px}
.pdf-player .activity-list textarea{min-height:100px}
.pdf-player .drawing-expandable.activity-paper>.drawing-canvas{margin:0;height:100%;aspect-ratio:auto;pointer-events:none}
.pdf-player .drawing-expandable.activity-paper>.activity-tools,.pdf-player .drawing-expandable.activity-paper>.activity-status{display:none!important}
.pdf-player .drawing-open{background:#e9f6ff;border:1px solid #71a9d5;border-radius:8px;padding:7px 12px;font-weight:800;color:#184c91;box-shadow:none}
.pdf-player .activity-paper>.drawing-open{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0 3px;font-size:12px;overflow:hidden;background:#e9f6ff88}
.pdf-player .drawing-workspace{position:fixed;inset:0;width:min(1200px,96vw);max-width:96vw;max-height:94dvh;margin:auto;padding:20px;border:2px solid #a5cbe8;border-radius:20px;background:#fffdf6;color:#184c91;box-sizing:border-box;box-shadow:0 20px 80px #17365444;overflow:auto}
.pdf-player .drawing-workspace::backdrop{background:#132d4b99}
.pdf-player .drawing-workspace h2{font-size:clamp(17px,2vw,24px);line-height:1.4;margin:0 0 8px}
.pdf-player .drawing-workspace p{font-size:13px;line-height:1.5;margin:8px 0}
.pdf-player .drawing-workspace-actions,.pdf-player .drawing-pan{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.pdf-player .drawing-workspace button,.pdf-player .drawing-workspace select{min-height:36px;white-space:normal;font-size:13px;border:1px solid #accbe6;border-radius:8px;background:#eef7ff;color:#184c91;padding:6px 10px;font-weight:800;box-shadow:none}
.pdf-player .drawing-workspace label{font-size:13px;margin:0}
.pdf-player .drawing-workspace .activity-tools{position:static!important;display:flex!important;flex-wrap:wrap;width:auto;height:auto;overflow:visible;padding:6px;background:#eef7ff;border-radius:10px;min-width:0}
.pdf-player .drawing-expandable .drawing-workspace .activity-tools>*{font-size:13px;min-height:36px;padding:6px 10px}
.pdf-player .drawing-workspace .activity-status{position:static!important;display:block!important;width:auto;height:auto;white-space:normal;background:transparent;font-size:13px}
.pdf-player .drawing-stage{max-height:48dvh;min-height:200px;width:100%;overflow:auto;border:1px solid #9dbbd6;border-radius:10px;background:white;overscroll-behavior:contain;box-sizing:border-box;scrollbar-width:auto}
.pdf-player .drawing-expandable .drawing-workspace .drawing-canvas{display:block;margin:0;max-width:none;min-width:0;aspect-ratio:auto;background-color:white;background-size:100% 100%;background-repeat:no-repeat;pointer-events:auto;border-radius:0;box-sizing:border-box}
.pdf-player .drawing-workspace .drawing-pan button{padding:5px 9px;font-size:12px}
@media(max-width:500px){.pdf-player .drawing-workspace{padding:12px}.pdf-player .drawing-stage{max-height:40dvh}.pdf-player .drawing-workspace-actions{align-items:flex-start}}
.pdf-player .review-picture{display:block;max-width:100%;background:white;border:1px solid #c6d8ec;border-radius:8px;margin:10px 0}
.pdf-player .activity-paper.correct,.pdf-player .activity-paper.retry,.pdf-player .activity-paper.needs-review{background-color:transparent!important;box-shadow:0 0 0 2px #b9cfdf}
.pdf-player .bottom-actions{flex-wrap:wrap}

/* Only the spatial-word lesson needs fixed-width letter positioning. */
.english-document:has(#spatial-word-layout) .pdf-player :is(#paper-q6,#list-q6){font-family:ui-monospace,monospace;white-space:pre;overflow-wrap:normal;tab-size:2}
.english-document:has(#spatial-word-layout) #manual-review li:has([data-review="q6"])>p:first-of-type{white-space:pre-wrap;font-family:ui-monospace,monospace}
#spatial-word-layout .word-picture{max-width:30ch;padding:16px;border-radius:16px;background:#fff8df}
#spatial-word-layout .calligram-lines{text-align:center;line-height:1.55}
