.student-section{padding:1rem;margin-bottom:1.5rem;border:2px solid var(--ui-border)}.student-section .attempt-question{margin-bottom:1rem}.student-passage{white-space:pre-wrap;overflow-wrap:anywhere}.student-image{margin:1rem 0}.student-image-open{display:block;max-width:100%;padding:.25rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);min-width:44px;min-height:44px}.student-image img,.student-option-image{display:block;max-width:100%;height:auto;object-fit:contain}.student-image img{max-height:32rem}.student-option-image{max-height:18rem;margin-top:.5rem}.exam-student-choice label:has(.student-option-image){display:block;width:100%}.student-lightbox{width:min(96vw,1200px);max-height:94dvh;padding:1rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text)}.student-lightbox::backdrop{background:rgb(0 0 0/.75)}.student-lightbox form{display:inline-block;margin-right:1rem}.student-lightbox-viewport{overflow:auto;max-height:76dvh;margin-top:1rem}.student-lightbox img{display:block;max-width:100%;height:auto;margin:auto}.student-lightbox.is-zoomed img{width:200%;max-width:none}.listening-panel{padding:1rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.listening-play{min-height:48px;min-width:9rem}.listening-progress{display:block;width:100%;height:.5rem;margin-top:1rem;accent-color:var(--ui-primary)}.listening-time{font-variant-numeric:tabular-nums}.listening-confirm{margin-block:.75rem}.listening-confirm button{min-height:44px;margin:.25rem}.listening-panel audio{display:none}

@media(max-width:480px){.attempt-true-false:has(.student-option-image){grid-template-columns:minmax(0,1fr)}}

/* Essay answers: roomy writing area for students, readable read-only text for review and teacher scoring. */
.student-essay-input{min-height:220px;resize:vertical;font-size:16px;line-height:1.6}
.student-essay-count{font-size:.8rem;color:var(--ui-muted);margin:6px 0 0;font-variant-numeric:tabular-nums}
.student-essay-text,.result-essay-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;margin-block:6px 10px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-background);color:var(--ui-text);line-height:1.6;max-height:60vh;overflow:auto}
.result-essay-form{margin-top:8px}
.student-teacher-comment{margin:8px 0;padding:10px 14px;border-inline-start:4px solid var(--ui-primary);border-radius:8px;background:var(--ui-primary-soft);color:var(--ui-text)}

/* True/false statements: one row per statement, with a "True / False" choice beside it (stacked on phones). */
.student-statement-list{display:grid;gap:10px;padding-inline-start:1.6rem;margin:0}
.student-statement fieldset{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);margin:0}
.student-statement-text{float:none;width:auto;font-size:1rem;margin:0;line-height:1.6}
.student-statement-choices{display:flex;gap:8px;flex-wrap:wrap}
.student-statement-choices label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;border:1px solid var(--ui-border);border-radius:999px;cursor:pointer;background:var(--ui-background)}
.student-statement-choices input{width:20px;height:20px;margin:0;accent-color:var(--ui-primary)}
.student-statement-choices label:has(input:checked){border-color:var(--ui-primary);background:var(--ui-primary-soft)}
.student-statement-choices label:has(input:focus-visible){outline:2px solid var(--ui-primary);outline-offset:2px}
.student-statement-choices label:has(input:disabled){cursor:default;opacity:.75}
.statement-pattern{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;font-weight:700}
@media(min-width:768px){.student-statement fieldset{grid-template-columns:minmax(0,1fr) auto;align-items:center}}
