:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#203c36;background:#f5f7f3;font-size:16px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 5%;border-bottom:1px solid #dbe3db;background:white}header a{font-weight:750;color:inherit;text-decoration:none}header span{font-size:.85rem;color:#58716a}header button{margin-left:auto}main{max-width:960px;margin:auto;padding:20px 18px 70px}h1{font-size:1.8rem}h2{font-size:1.2rem}p{line-height:1.7}button,input,select{font:inherit}button{border:1px solid #366854;border-radius:10px;padding:12px 17px;background:#285846;color:white;cursor:pointer;min-height:46px}button:disabled{opacity:.5;cursor:default}button.secondary,nav button{background:white;color:#285846}button:focus-visible,a:focus-visible{outline:3px solid #b67a10;outline-offset:3px}input,select{border:1px solid #85958b;border-radius:8px;padding:12px;width:100%;margin:8px 0 20px}label{display:block}#login{max-width:420px;margin:40px auto;background:white;padding:24px;border-radius:18px}.notice{font-size:.85rem;color:#676a52}#message,#save-status{font-weight:600;overflow-wrap:anywhere}nav{display:flex;gap:10px;margin:25px 0}.task-card,#teacher-tools,.word-card,#result{border:1px solid #d7e1d7;border-radius:16px;background:white;padding:22px;margin:18px 0}.task-card h2{margin-top:0}.task-card button{margin-top:8px}#answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.question{border:1px solid #d7e1d7;border-radius:12px;padding:14px;background:white;min-width:0}.question legend{font-weight:700;padding:0 5px}.choices{display:flex;gap:8px}.choices button{flex:1;background:white;color:#285846;padding:10px 4px}.choices button[aria-pressed=true]{background:#285846;color:white;box-shadow:0 0 0 2px #82ae95}.word-card .word{font-size:1.5rem;font-weight:700;background:white;color:#285846;border:0;padding-left:0}.sentence{display:block;text-align:left;background:#eff5ee;color:#294a3e;border:0;width:100%;line-height:1.6}.word-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}#wrong-list article{padding:16px 0;border-top:1px solid #dce3dc}#recovery{padding:12px;background:#fff0cf;border-radius:12px}#recovery button{margin:4px}#submit{width:100%;margin:12px 0}[hidden]{display:none!important}@media(max-width:600px){header{padding:14px 18px;gap:8px}header span{flex-basis:100%;order:3}main{padding:14px 14px 55px}h1{font-size:1.5rem}#answer-grid{grid-template-columns:1fr}.task-card,#teacher-tools,.word-card,#result{padding:17px}button{max-width:100%}#login{padding:20px;margin:20px auto}}

.selection-question{grid-column:1/-1}.selection-stem{font-size:1.08rem;font-weight:600;white-space:pre-line;overflow-wrap:anywhere}.selection-help,.response-state{font-size:.9rem;color:#50635a}.selection-options{display:grid;gap:10px}.selection-options button{text-align:left;background:white;color:#285846;line-height:1.5;padding:14px;overflow-wrap:anywhere;min-width:0}.selection-options button[aria-pressed=true],.selection-actions button[aria-pressed=true]{background:#285846;color:white;box-shadow:0 0 0 2px #82ae95}.selection-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.selection-actions button{background:white;color:#285846}.option-analysis{padding-left:22px;line-height:1.8;overflow-wrap:anywhere}.option-analysis [data-judgment=missed],.option-analysis [data-judgment=extra]{font-weight:700;color:#8e3423}@media(min-width:800px){.selection-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One question per view, shared by OX, single and multiple selection. */
.focus-study header{padding:10px 18px;gap:8px}.focus-study header span{display:none}.focus-study header button{padding:7px 12px;min-height:40px}.focus-study .notice,.focus-study #task-heading,.focus-study #answer-help{display:none}.focus-study #task>nav:has(#tab-vocab[hidden]){display:none}.focus-study main{padding-top:12px}.focus-study #back{padding:7px 12px;min-height:40px}.focus-study #book{font-size:.85rem;margin:8px 0;line-height:1.5}.focus-study #timer,.focus-study #save-status{display:inline-block;font-size:.85rem;margin:6px 12px 6px 0}.focus-study #focus-panel{margin:8px auto}.focus-study #question-progress{margin:6px 0}.focus-study #focus-navigation{position:sticky;bottom:0;background:#f5f7f3;padding:10px 0;margin-bottom:0;z-index:2}
#answer-grid.focus-grid{display:block;max-width:760px;margin:16px auto}.focus-grid .question{padding:24px;border-radius:18px}.focus-grid .selection-stem{font-size:1.3rem;line-height:1.65;margin:22px 0}.focus-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.focus-heading strong{font-size:1.45rem;font-variant-numeric:tabular-nums}.focus-heading span{font-variant-numeric:tabular-nums;color:#50635a}#focus-panel,#focus-navigation{max-width:760px;margin:16px auto}.question-navigation{display:flex;gap:12px}.question-navigation button{flex:1;min-height:52px}.focus-grid .selection-options{grid-template-columns:1fr}.focus-grid .selection-question[data-selection-mode=ox] .selection-options{grid-template-columns:1fr 1fr}.focus-grid .selection-question[data-selection-mode=ox] .selection-options button{text-align:center;font-size:2.2rem;min-height:90px}#question-progress{font-size:.9rem;color:#50635a}#question-times{margin:20px 0}#question-times summary{cursor:pointer;min-height:44px}#question-time-list p{margin:8px 0;font-variant-numeric:tabular-nums}#question-timer{white-space:nowrap}@media(max-width:600px){.focus-grid .question{padding:18px}.focus-grid .selection-stem{font-size:1.2rem;margin:18px 0}.focus-heading{flex-wrap:wrap;gap:6px}.focus-heading span{font-size:.9rem}}

#teacher-editor button{margin:6px 8px 6px 0}#teacher-editor textarea{font:inherit;width:100%;border:1px solid #85958b;border-radius:8px;padding:12px;margin:8px 0 20px}#teacher-editor input[type=checkbox]{width:24px;height:24px;margin:8px;vertical-align:middle}#teacher-editor [role=status]{white-space:pre-line;color:#8e3423}#teacher-editor details{margin:20px 0}.teacher-option{padding:14px;background:#fff;border:1px solid #d7e1d7;border-radius:12px;margin-bottom:12px}#teacher-editor .selection-question{margin:20px 0}

.results-controls{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:24px}.result-view-switch{display:flex;gap:6px;flex-wrap:wrap}.result-view-switch button{background:white;color:#285846}.result-view-switch button[aria-pressed=true]{background:#285846;color:white}.results-controls label{flex:1;min-width:190px;max-width:290px}.results-controls select{margin:6px 0}.results-help{font-size:.85rem;color:#50635a}.student-result-card,.assignment-result-card,.recent-result-card{border:1px solid #d7e1d7;border-radius:16px;background:white;padding:22px;margin:18px 0;overflow-wrap:anywhere}.result-group>summary{cursor:pointer;min-height:44px;font-weight:650;line-height:1.7}.result-group>summary:focus-visible{outline:3px solid #b67a10;outline-offset:3px}.student-summary{display:block;font-weight:400;font-size:.93rem;margin-top:12px}.student-summary>span{display:block;margin:8px 0}.student-summary .result-counts{font-weight:650}.result-task{border-top:1px solid #d7e1d7;padding:18px 0}.result-task h3{font-size:1rem}.review-needed{color:#8e3423}.result-badge{background:#fff0cf;padding:4px 8px;border-radius:6px;font-size:.85rem}.result-table-wrap{overflow-x:auto}.results-view table{width:100%;border-collapse:collapse;font-size:.9rem}.results-view th,.results-view td{text-align:left;border-bottom:1px solid #d7e1d7;padding:12px 8px;vertical-align:top;min-width:80px}.results-view caption{text-align:left;padding:8px 0}.results-view td button{white-space:nowrap}.results-view h2{line-height:1.6}@media(max-width:600px){.student-result-card,.assignment-result-card,.recent-result-card{padding:16px}.result-view-switch{width:100%}.result-view-switch button{flex:1;padding:10px}.results-controls label{max-width:none;width:100%}.results-view th,.results-view td{min-width:85px}.result-table-wrap{max-width:100%}}

/* Shared short-answer slot; native IME and viewport scrolling remain available. */
.short-response{display:grid;gap:10px;margin:16px 0}.short-response label{display:grid;gap:8px;font:500 15px/1.5 system-ui,sans-serif}.short-answer-input{box-sizing:border-box;width:100%;min-width:0;min-height:52px;padding:12px 14px!important;font:400 18px/1.5 system-ui,sans-serif!important;border:2px solid var(--learn-border,#c8cdc6)!important;border-radius:14px!important;background:#fffdf9!important;color:#232a24!important;scroll-margin-block:24px}.short-answer-input:focus{outline:3px solid var(--learn-accent,#536350);outline-offset:2px}.short-response .short-clear{justify-self:end;width:auto;background:transparent;color:var(--learn-accent,#536350);border:1px solid currentColor;min-height:44px;padding:8px 14px}.short-review{border-top:1px solid #ddd;padding:12px 0;overflow-wrap:anywhere}.short-review p{white-space:pre-wrap}.short-answer-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.short-answer-row label{flex:1;min-width:140px}
@media(max-width:600px){.short-question{scroll-margin-top:12px}.short-response{margin:12px 0}body.learning-shell:has(.short-answer-input:focus) .study-hero{margin-bottom:12px;min-height:0}body.learning-shell:has(.short-answer-input:focus) .study-hero .world-sign{visibility:hidden}}
/* Maintenance is a single accessible screen; pending answers stay in the existing outbox. */
#maintenance-screen {width:min(90vw,32rem);box-sizing:border-box;padding:2rem;border:1px solid #bcc6bb;border-radius:1.25rem;background:#faf8f2;color:#263b2a;}
#maintenance-screen::backdrop {background:rgb(25 38 30 / .78);}
#maintenance-screen h1 {font-size:1.5rem;line-height:1.4;}
#maintenance-screen p {line-height:1.65;overflow-wrap:anywhere;}
#maintenance-screen button {display:block;width:100%;min-height:48px;margin-top:.8rem;}

#maintenance-notice{padding:12px;margin:12px;border:2px solid #805a16;border-radius:12px;background:#fff7df;color:#292217;white-space:pre-wrap}
#maintenance-screen{max-width:34rem;width:calc(100% - 3rem);border-radius:16px;padding:24px}#maintenance-screen button{margin:8px;min-height:44px}
