/* Bootstrap 5.3.8 primitives, locally served. No CSP exceptions or remote assets. */
:root{--bs-primary:#315bc3;--bs-primary-rgb:49,91,195;--bs-body-font-family:system-ui,-apple-system,'Segoe UI',sans-serif;--bs-body-color:#253248;--bs-body-bg:#f5f7fb}
body{color:var(--bs-body-color);background:var(--bs-body-bg)}header{background:#fff;border-color:#dce2eb;position:relative}main{width:100%;max-width:1180px;min-width:0}h1{font-size:1.8rem;margin:16px 0 24px}h2{font-size:1.25rem}h3{font-size:1.1rem}button{background:#315bc3;border-color:#315bc3;border-radius:8px}button.secondary,nav button{color:#315bc3;border-color:#becce5}.app-layout{min-height:calc(100vh - 88px)}.authenticated .app-layout{display:grid;grid-template-columns:216px minmax(0,1fr)}#app-sidebar{padding:24px 16px;background:#fff;border-right:1px solid #dce2eb}.workspace-label{font-size:.8rem;color:#5e6c80;font-weight:700;padding:0 10px}#app-sidebar nav{margin:12px 0;gap:4px}#app-sidebar .nav-link{background:transparent;border:0;color:#46526a;border-radius:8px;width:100%;min-height:44px;padding:10px 12px}#app-sidebar .nav-link.active{background:#e9efff;color:#244da8;font-weight:700}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.summary-card{padding:18px;text-align:left;color:#253248;gap:12px;border:1px solid #dce2eb}.summary-card strong{font-size:2rem}.action-row{display:flex;gap:10px;flex-wrap:wrap}.home-section{margin:24px 0}.home-section>.task-card{margin:12px 0}.empty-state{padding:16px;border:1px dashed #bec9d8;border-radius:10px;color:#59657a}.task-card,.student-result-card,.assignment-result-card,.recent-result-card,#result{border-color:#dce2eb;border-radius:12px}.task-card>.btn{align-self:flex-start}#open-teacher{display:none}.btn-primary{background:#315bc3;border-color:#315bc3}.btn-outline-primary{color:#315bc3;border-color:#315bc3;background:white}.island-hub{background:#edf4f0}.island-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px;border-radius:35% 20% 30% 18%;background:#d9e9e0;border:12px solid #c6deef}.island-place{display:flex;flex-direction:column;justify-content:center;gap:8px;background:white;color:#284a40;border:1px solid #87a99a;min-height:108px}.island-place span{font-size:.8rem}.island-place:disabled{opacity:.65}.skip-link{position:absolute;left:12px;top:-80px;z-index:20;background:white;padding:12px}.skip-link:focus{top:10px}.set-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #dce2eb;padding-bottom:10px}.set-tabs button[aria-current=page]{background:#315bc3;color:white}.wizard-steps{display:flex;gap:12px;flex-wrap:wrap;font-size:.85rem;padding:14px 20px;background:#edf1f9;border-radius:8px}.import-errors{color:#9b3028;white-space:pre-line}.import-row{padding:16px;border:1px solid #dce2eb;border-radius:10px;margin:12px 0;background:white}.import-row .selection-question{margin:12px 0}.import-actions{position:sticky;bottom:0;background:#fff;padding:12px;border:1px solid #dce2eb}.task-card p{overflow-wrap:anywhere}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ba7900;outline-offset:3px}#teacher-editor input,#teacher-editor textarea,#teacher-editor select{background:white}#teacher-editor .nav-tabs{margin:16px 0}.focus-study .app-layout{grid-template-columns:176px minmax(0,1fr)}
@media(max-width:900px){.authenticated .app-layout,.focus-study .app-layout{display:block}#app-sidebar{padding:8px 14px;border-right:0;border-bottom:1px solid #dce2eb}.workspace-label{margin:4px 0}#app-sidebar nav{flex-direction:row!important;flex-wrap:nowrap;overflow-x:auto;margin:0;padding-bottom:5px}#app-sidebar .nav-link{white-space:nowrap;width:auto;flex-shrink:0}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.island-map{grid-template-columns:repeat(2,minmax(0,1fr));border-width:6px;padding:8px;gap:8px}.island-place{padding:10px 6px}.focus-study #app-sidebar{display:none}.set-tabs button{padding:8px 12px}.wizard-steps{display:block}.wizard-steps li{margin:4px 0}}

.editor-toolbar{display:flex;gap:16px;flex-wrap:wrap}.editor-toolbar label{flex:1;min-width:180px}.editor-split{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px}.editor-detail{padding:18px;background:white;border:1px solid #dce2eb;border-radius:8px;align-self:start}.editor-split td{vertical-align:middle;overflow-wrap:anywhere}.editor-split button{padding:8px;min-height:40px}.editor-split table{width:100%}#teacher-editor a{display:inline-block;min-height:44px;padding:10px 0}.import-errors{white-space:pre-line}@media(max-width:760px){.editor-split{display:block}.editor-toolbar{display:block}.editor-split th,.editor-split td{padding:8px 4px}.editor-detail{margin:16px 0}}

/* Adult app density. Relative type sizes preserve browser text-size preferences.
   Controls stay touch-sized on small screens; learning text remains 16px. */
:root{
 font-size:100%;
 --bs-body-font-family:"Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 --bs-body-font-size:.875rem;
 --bs-body-line-height:1.5;
}
body{font-family:var(--bs-body-font-family);font-size:.875rem;line-height:1.5;letter-spacing:normal}
button,input,select,textarea,.btn{font-family:inherit;font-size:inherit;line-height:1.5;letter-spacing:normal}
h1,h2,h3{font-family:inherit;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}
h1{font-size:1.5rem;font-weight:700;margin:8px 0 20px}
h2{font-size:1.0625rem;font-weight:700;margin:0 0 12px}
h3{font-size:1rem;font-weight:650;margin:0 0 8px}
p{line-height:1.5;margin:0 0 10px}
header{min-height:60px;padding:10px 24px;gap:12px}
header a{font-size:1rem}header span{font-size:.8125rem}
button,.btn{min-height:36px;padding:7px 12px;border-radius:6px;font-size:.875rem}
button.secondary{background:white;color:#315bc3;border-color:#bdc9dc}
input,select,#teacher-editor textarea{padding:8px 10px;margin:5px 0 14px;border-color:#b7c2d2;border-radius:6px;min-width:0}
label{font-weight:500}label input,label select,label textarea{font-weight:400}
main{max-width:1360px;padding:24px 28px 48px;margin:0 auto;align-self:start}
.authenticated .app-layout{grid-template-columns:192px minmax(0,1fr);min-height:calc(100vh - 60px)}
#app-sidebar{padding:20px 12px}
#app-sidebar .nav-link{font-size:.875rem;min-height:38px;padding:8px 12px}
.workspace-label{font-size:.75rem;margin-bottom:8px}
.notice{font-size:.8125rem;color:#606b77;margin-bottom:12px}
#message:empty,#teacher-editor .editor-status:empty{display:none}
.summary-grid{gap:12px;margin-bottom:8px}
.summary-card{min-height:90px;padding:14px 16px;gap:6px;box-shadow:none}
.summary-card span{font-size:.8125rem;color:#526176}
.summary-card strong{font-size:1.5rem;line-height:1.25;font-weight:700;font-variant-numeric:tabular-nums}
.small,small{font-size:.8125rem}
.action-row{gap:8px;margin:16px 0}
.recent-learning{padding:16px;margin-top:20px}
.table{font-size:.875rem;margin-bottom:0}
.table th,.table td{padding:10px 12px;vertical-align:middle}
.table th{font-size:.8125rem;font-weight:600;color:#536177;background:#f5f7fb}
.recent-learning td:first-child,.recent-learning td:nth-child(3),.recent-learning td:last-child{white-space:nowrap}
.home-section{margin:20px 0}
.task-card,.student-result-card,.assignment-result-card,.recent-result-card,#result,.word-card{padding:16px;margin:12px 0;border-radius:10px}
.home-section>.task-card{margin:10px 0}
.task-card h3{font-size:1rem;margin-bottom:6px}
.task-progress{color:#526176;font-size:.8125rem;margin-bottom:8px}
.task-score{font-weight:600}
.task-meta{font-size:.8125rem;color:#526176;margin:0 0 8px}
.task-meta summary{cursor:pointer;padding:4px 0;min-height:28px}
.task-meta p{margin:6px 0}
.task-card>.btn{margin-top:4px}
.next-task{border-color:#90a8db;background:#f8faff}
.empty-state{padding:10px 12px;margin:0;font-size:.8125rem;border-radius:6px}
#teacher-editor>button:first-child{margin:0 0 8px;background:transparent;border-color:transparent;padding-left:0}
#teacher-editor button{margin:4px 6px 4px 0}
.editor-toolbar{gap:12px;margin-top:12px;align-items:end}
.editor-toolbar label:first-child{flex:3}.editor-toolbar label:last-child{flex:1}
.editor-split{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:16px;align-items:start}
.editor-detail{padding:16px;position:sticky;top:16px}
.editor-detail h2{font-size:1rem}
.editor-split td:first-child{width:64%}
.editor-split td button{display:block;width:100%;text-align:left;background:transparent;border-color:transparent;color:#253248;margin:0!important;min-height:36px;padding:6px 8px}
.editor-split td button:hover{background:#eef2fa}
.editor-split td button[aria-pressed=true]{background:#e8efff;color:#244da8;box-shadow:inset 3px 0 #315bc3}
.set-meta{color:#526176;font-size:.8125rem}
.set-toolbar,.set-flow-actions{display:flex;flex-wrap:wrap;gap:4px}
.set-toolbar{border-bottom:1px solid #dce2eb;padding-bottom:8px;margin:8px 0}
.set-flow-actions{justify-content:flex-end;margin-bottom:12px}
#teacher-editor .set-maintenance{margin:8px 0 16px;font-size:.8125rem;color:#536177}
details>summary{cursor:pointer;min-height:32px;padding:5px 0}
#teacher-editor .question-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;padding:12px 14px;margin:8px 0}
#teacher-editor .question-row h2{font-size:.9375rem;line-height:1.5;flex:1 1 100%;margin:0 0 4px;white-space:pre-line}
#teacher-editor .question-row button{font-size:.8125rem;min-height:32px;padding:5px 10px}
.teacher-option{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 16px;padding:12px 14px;align-items:center}
.teacher-option>label:first-child{grid-column:1}.teacher-option>label:nth-child(2){grid-column:2;display:flex;align-items:center}
.teacher-option>button{grid-column:3;grid-row:1}
#teacher-editor .teacher-option .option-id{grid-column:1/-1;grid-row:2;margin:0;font-size:.8125rem;color:#536177}
.teacher-option input{margin-bottom:0}#teacher-editor input[type=checkbox]{width:18px;height:18px;accent-color:#315bc3}
#teacher-editor>label{max-width:800px}
#teacher-editor details{margin:12px 0}
.results-controls{margin:0 0 12px;gap:12px;justify-content:space-between}
.result-view-switch{gap:0;padding:3px;border:1px solid #dce2eb;border-radius:8px;background:#edf1f7}
.result-view-switch button{border:0;background:transparent;color:#526176;min-height:32px;padding:6px 14px}
.result-view-switch button[aria-pressed=true]{background:white;color:#244da8;box-shadow:0 1px 3px #18294618}
.results-controls label{font-size:.8125rem;max-width:220px}
.results-definitions{font-size:.8125rem;color:#526176;margin:0 0 8px}
.results-help{font-size:.8125rem;margin:4px 0 8px}
.results-count{font-size:.8125rem;color:#526176;margin:8px 0}
.result-group>summary{font-size:.9375rem;line-height:1.5;min-height:36px}
.student-summary{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;font-size:.8125rem;margin-top:8px}
.student-summary>span{margin:0;line-height:1.6}
.student-summary .result-counts{color:#334d73}
.result-group[open]>div{margin-top:16px;border-top:1px solid #dce2eb;padding-top:16px}
.result-task{padding:12px 0}.result-task p{font-size:.8125rem;margin-bottom:6px}
.result-task button,.recent-result-card>button{background:white;color:#315bc3;border-color:#bdc9dc}
.results-view table{font-size:.875rem}.results-view th,.results-view td{padding:9px 10px}
.results-view th{background:#f5f7fb;font-size:.8125rem}.result-badge{font-size:.75rem;padding:2px 6px}
#login{margin:32px auto;padding:24px;border:1px solid #dce2eb;border-radius:10px}
#login input{font-size:1rem}#login>button{width:100%}
#task>nav{margin:16px 0;gap:8px}
#book{color:#526176;font-size:.875rem;line-height:1.5}
.focus-heading strong{font-size:1.125rem}
.focus-grid .question{padding:20px;border-radius:10px}
.selection-stem,.focus-grid .selection-stem{font-size:1rem;line-height:1.65;margin:12px 0 16px}
.question legend{font-size:.9375rem;line-height:1.4}
.selection-options button{font-size:1rem;padding:12px;min-height:48px}
.selection-help,.response-state,#question-progress{font-size:.8125rem}
.focus-grid .selection-question[data-selection-mode=ox] .selection-options button{font-size:1.5rem;min-height:64px}
.question-navigation button{min-height:44px}
.sentence{font-size:1rem}
:root{--learning-term-size:clamp(1.75rem,5vw,2.5rem);--learning-term-weight:750;--learning-term-leading:1.25;--learning-term-gap:1rem}
.learning-term,.word-card .word.learning-term{display:block;font-size:var(--learning-term-size);font-weight:var(--learning-term-weight);line-height:var(--learning-term-leading);margin-block:var(--learning-term-gap);white-space:normal;overflow-wrap:anywhere;word-break:normal;max-width:100%;min-width:0}
.selection-stem{white-space:pre-wrap;overflow-wrap:anywhere}
#timer.question-limit{display:flex;align-items:center;gap:12px;width:100%;max-width:760px;margin:12px auto;font-variant-numeric:tabular-nums}
.question-limit progress{flex:1;min-width:0;width:100%;height:12px;accent-color:#5267ba}
.time-remaining{flex:none;white-space:nowrap;font-size:1rem}
.question-limit.time-critical{color:#923c20;font-weight:750}
.question-limit.time-critical progress{accent-color:#923c20}
.word-actions{gap:8px;margin-top:12px}
#result-numbers{font-size:.8125rem;line-height:1.6}
#score{font-size:1.125rem;font-weight:650}
#wrong-list{font-size:1rem;line-height:1.65}
@media(min-width:901px){
 body[data-workspace=student] main{max-width:1000px}
 body[data-workspace=student] .task-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px}
 body[data-workspace=student] .task-card>h3,body[data-workspace=student] .task-card>p,body[data-workspace=student] .task-card>details{grid-column:1}
 body[data-workspace=student] .task-card>.btn{grid-column:2;grid-row:1/5;align-self:center;margin:0}
}
@media(max-width:1100px) and (min-width:901px){
 .authenticated .app-layout{grid-template-columns:168px minmax(0,1fr)}main{padding:20px}
 .editor-split{grid-template-columns:minmax(0,3fr) minmax(210px,2fr)}
 .student-summary{grid-template-columns:1fr}
}
@media(max-width:900px){
 .authenticated .app-layout,.focus-study .app-layout{display:block}
 #app-sidebar{padding:6px 16px}.workspace-label{display:none}
 #app-sidebar nav{padding:0}#app-sidebar .nav-link{min-height:44px}
 main{padding:20px}.summary-card{min-height:82px}
 .editor-split{grid-template-columns:minmax(0,3fr) minmax(210px,2fr)}
 button,.btn{min-height:44px}
 .student-summary{grid-template-columns:1fr}
}
@media(max-width:600px){
 body{font-size:.875rem}header{min-height:56px;padding:8px 16px;gap:4px 12px}
 header span{font-size:.75rem;flex-basis:auto;order:0}header a{font-size:.9375rem}header button{padding:6px 10px}
 main{padding:16px 16px 32px}h1{font-size:1.25rem;margin:4px 0 16px}h2{font-size:1rem}
 #app-sidebar{padding:4px 12px}#app-sidebar .nav-link{padding:9px 12px}
 .notice{font-size:.75rem;margin-bottom:10px}
 input,select,textarea,#teacher-editor textarea{font-size:1rem}
 .task-card,.student-result-card,.assignment-result-card,.recent-result-card,#result,.word-card{padding:14px;border-radius:8px}
 .task-card>.btn{width:100%;align-self:stretch}.home-section{margin:16px 0}
 .task-meta summary{min-height:44px;display:flex;align-items:center;gap:6px}
 .task-meta summary:before{content:'＋'}.task-meta[open] summary:before{content:'−'}
 .empty-state{padding:8px 10px}.summary-card{padding:12px}.summary-card strong{font-size:1.375rem}
 .action-row{gap:6px}.recent-learning{padding:12px}
 .editor-split{display:block}.editor-detail{position:static;margin-top:12px}
 .editor-toolbar{display:block}.editor-toolbar label{min-width:0}
 .editor-split table{font-size:.8125rem}.editor-split th,.editor-split td{padding:8px 4px}
 .editor-split td button{font-size:.8125rem;min-height:44px;padding:4px}
 .set-flow-actions{justify-content:stretch}.set-flow-actions button{flex:1}
 #teacher-editor .question-row button{min-height:44px}
 .teacher-option{grid-template-columns:1fr auto}.teacher-option>button{grid-column:1/-1;grid-row:3}
 .teacher-option>label:nth-child(2){min-height:44px}
 .results-controls{gap:8px}.results-controls label{max-width:none;width:100%}
 .result-view-switch{width:100%}.result-view-switch button{min-height:44px;padding:8px 10px}
 .student-summary{gap:4px;font-size:.8125rem}.result-group>summary{font-size:.875rem}
 .focus-grid .question{padding:16px}.focus-grid .selection-stem{font-size:1rem;margin:12px 0 16px}
 .focus-study header button,.focus-study #back{min-height:44px}
 .focus-heading strong{font-size:1rem}.focus-heading span{font-size:.8125rem}
 #task>nav button{flex:1}.focus-study #focus-navigation{background:var(--bs-body-bg)}
}

.batch-table{font-size:.875rem}.batch-table td{vertical-align:top}.batch-table small{display:block;color:#64748b;overflow-wrap:anywhere}.batch-table input[type=checkbox]{width:18px;height:18px}.batch-table details{max-width:42rem}.batch-delivery{padding:16px;margin-top:16px;border:1px solid #dce2eb;border-radius:8px}.batch-delivery label{display:block;margin:8px 0}.batch-delivery input[type=checkbox]{width:18px;height:18px;margin:0 8px}.batch-table td>button{margin-top:8px}
/* Each attempt remains a separate immutable submission. */
#repeat-attempt{margin:8px 0 8px 8px}#attempt-history{margin:20px 0;padding:12px 16px;border:1px solid #dce2eb;background:white;border-radius:8px}#attempt-history-list article{padding:12px 0;border-top:1px solid #dce2eb}#attempt-history-list p{font-size:.8125rem;margin:6px 0 0}#repeat-help{margin:8px 0 0}@media(max-width:600px){#result>button{width:100%;margin:6px 0}#attempt-history>summary{min-height:44px}}
#wrong-retry-panel{border-top:1px solid #dce2eb;margin-top:20px;padding-top:16px}#wrong-retry-panel h3{font-size:1rem}.review-missing-label{display:flex;align-items:center;gap:8px;min-height:44px}.review-missing-label input{width:20px;height:20px;margin:0}#wrong-retry-panel p,#review-origin{font-size:.875rem}#start-wrong-retry{margin:8px 0}

/* Two skins for the same live study DOM. Future palettes belong in these tokens. */
body[data-study-theme]{--study-bg:#f2f0eb;--study-panel:#fffdfa;--study-ink:#2d332f;--study-muted:#626860;--study-border:#dddcd4;--study-accent:#526450;--study-selected:#e8eee5;--study-selected-border:#647760;--study-critical:#913c20;--study-radius:24px;--study-shadow:0 10px 36px #3f443112;--study-button-shadow:0 4px 12px #35493015;--study-panel-background:var(--study-panel);--study-word-size:clamp(2rem,6.5vw,3rem);--study-gap:16px}
body[data-study-theme=world]{--study-bg:#ede2c8;--study-panel:#fff5df;--study-ink:#493827;--study-muted:#79644e;--study-border:#c5a57c;--study-accent:#496f54;--study-selected:#e6eee1;--study-selected-border:#6b805c;--study-radius:22px;--study-shadow:0 8px 0 #99724735,0 16px 38px #4b402527;--study-button-shadow:0 3px 0 #72533130;--study-panel-background:linear-gradient(120deg,#fff9ec,#f5e7c9);--study-world-background:url('/study-assets/reference-harbor.png')}
#study-appearance{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0;flex-wrap:wrap}
#study-appearance label{font-size:.8125rem;margin:0}#study-theme{width:auto;max-width:100%;min-height:44px;padding:6px 30px 6px 12px;font-size:.875rem}
#theme-status{font-size:.75rem;flex-basis:100%;text-align:right}#theme-status:empty{display:none}
.study-world-art{display:none;pointer-events:none}
.listening-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;white-space:normal;margin-top:12px}
.listen-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:.875rem;font-weight:600}
.listen-button:before{content:'🔊';font-size:1.1rem}
#study-voice-status{font-size:.8125rem;line-height:1.6;max-width:760px;margin:8px auto}#study-voice-status:empty{display:none}
.option-marker{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:34px;min-height:34px;border-radius:50%;background:#00000008;font-variant-numeric:tabular-nums;margin-right:10px}
.option-content{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}.selected-label{font-size:.6875rem;font-weight:600;margin-left:auto;white-space:nowrap}

.listen-button svg{width:20px;height:20px;flex:none}.listen-button:before{content:none}
/* Home summary remains visible above the capped sections. */
.home-task-summary,.home-task-count{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 18px}.home-task-summary{padding:16px;border:1px solid #d7dfd5;border-radius:14px;background:#fff}.home-task-count{font-size:14px;color:#586658}.home-task-count button{min-height:44px}.overdue-tasks{margin:8px 0 18px}

/* TRACK1 student home only. Existing learning screens, routes and themes are untouched. */
body[data-workspace=student]:has(#home:not([hidden]) .student-home){background:#f5f4ec;color:#283f38}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) header{background:#fffef8;border-bottom:1px solid #dfe5d8;padding-inline:28px}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) header a{color:#294f40;letter-spacing:-.035em;font-weight:800}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) main{max-width:1440px;padding:28px 36px 40px}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) main>.notice{display:none}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) #home-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar{background:#edf1e7;border-color:#d8e0d2;padding-top:32px}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar .workspace-label{color:#617368;letter-spacing:.08em;margin-bottom:22px}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar .nav-link{min-height:48px;border-radius:12px;color:#4a6053;margin-bottom:5px;padding-inline:18px}
body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar .nav-link.active{background:#315f4c;color:#fff;box-shadow:0 4px 12px #315f4c18}
.student-home{--home-green:#315f4c;--home-ink:#2c4438;--home-muted:#617065;--home-line:#dbe1d2;font-size:15px;line-height:1.6;max-width:1160px;margin:auto}
.student-home h2,.student-home h3{color:var(--home-ink);letter-spacing:-.04em;word-break:keep-all}
.student-home button{min-height:44px;line-height:1.5;font-size:14px}
.student-home button:focus-visible,.student-home summary:focus-visible{outline:3px solid #946426;outline-offset:4px}
.home-world{position:relative;isolation:isolate;min-height:360px;border-radius:24px;overflow:hidden;background:#b2d7d5;box-shadow:0 6px 22px #263a2a12}
.home-world-art{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:45% 60%;z-index:-1}
.home-place-label{position:absolute;top:22px;left:24px;background:#fffef1ed;border:1px solid #fff9;box-shadow:0 2px 8px #254a2922;border-radius:24px;padding:8px 17px;color:#345443;font-size:13px;font-weight:750;letter-spacing:.02em}
.home-invitation{width:330px;max-width:calc(100% - 40px);margin:30px 28px 30px auto;padding:24px 25px 20px;background:#fffdf2f5;border:1px solid #fffaf0;border-radius:20px;box-shadow:0 8px 24px #244d3226}
.student-home .home-eyebrow{font-size:11px;letter-spacing:.08em;color:#68734f;font-weight:750;margin:0 0 12px}
.home-invitation h2{font-size:26px;line-height:1.5;white-space:pre-line;margin:0 0 12px;font-weight:800}
.home-welcome{font-size:13px;color:#596a5e;margin-bottom:18px;line-height:1.75;word-break:keep-all}
.student-home .home-primary{display:block;width:100%;background:#315f4c;border:1px solid #315f4c;color:white;min-height:48px;border-radius:12px;font-weight:700;box-shadow:0 3px 0 #254b3b}
.student-home .home-primary:hover{background:#244c3b;transform:translateY(-1px)}
.home-next-title{font-size:11px;text-align:center;color:#617065;margin:12px 0 0;overflow-wrap:anywhere}
.home-paths{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:20px 0 32px;padding:5px 8px;background:#fffef9;border:1px solid var(--home-line);border-radius:16px;box-shadow:0 3px 0 #e8eadd55}
.student-home .home-path{display:flex;align-items:center;gap:12px;border:0;border-radius:10px;padding:14px 12px;background:transparent;color:var(--home-ink);text-align:left;min-width:0;min-height:74px}
.student-home .home-path:hover{background:#f0f3e9}
.home-path-number{display:grid;place-items:center;flex:none;width:32px;height:38px;border-radius:18px 18px 12px 12px;background:#eef0dd;color:#72825b;font-size:11px;font-weight:700}
.home-path-text{display:flex;flex-direction:column;min-width:0;gap:3px}.home-path-text strong{font-size:14px}.home-path-text>span{font-size:11px;color:#6e7868;word-break:keep-all}.home-path-arrow{margin-left:auto;color:#788774;font-size:18px}
.home-learning-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.student-home .home-task-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding:0;background:none;border:0}
.student-home .home-task-summary h2{font-size:21px;margin:0;font-weight:800}
.home-count{background:#e8eddc;color:#496041;border-radius:20px;padding:5px 12px;font-size:12px;font-weight:650;white-space:nowrap}
.student-home .home-section{margin:0 0 26px}
.student-home .home-section>h2{font-size:14px;color:#63725e;margin-bottom:10px;font-weight:700}
.student-home .task-card{position:relative;margin:10px 0;padding:20px 22px;background:#fffefb;border:1px solid var(--home-line);border-radius:15px;box-shadow:0 3px 0 #e6e8dc55}
.student-home .task-card h3{font-size:17px;line-height:1.6;font-weight:750;margin:9px 0 8px;overflow-wrap:anywhere}
.home-task-badge{font-size:10px;font-weight:750;letter-spacing:.04em;align-self:flex-start;color:#687260;background:#edf0e4;border-radius:6px;padding:3px 8px}
.home-task-badge[data-state=active]{background:#e0eddc;color:#3c6643}.home-task-badge[data-state=done]{background:#e7eef2;color:#4e6874}
.student-home .next-task{border:1px solid #9eaf8b;border-left:4px solid #61835c;background:linear-gradient(110deg,#fbfcf5,#fffefb);box-shadow:0 4px 12px #39523108}
.student-home .task-progress{font-size:13px;color:#63705e;line-height:1.7;margin:0 0 9px}
.student-home progress{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:8px;overflow:hidden;background:#e9eddf;accent-color:#6c8d5c;margin:4px 0 12px}
.student-home progress::-webkit-progress-bar{background:#e9eddf;border-radius:8px}.student-home progress::-webkit-progress-value{background:#6c8d5c;border-radius:8px}.student-home progress::-moz-progress-bar{background:#6c8d5c;border-radius:8px}
.student-home .task-meta{margin:0 0 10px;color:#66715f;font-size:12px}.student-home .task-meta summary{min-height:32px}
.student-home .task-card>.btn{border-radius:9px;padding:9px 18px;min-height:44px;color:#315f4c;border-color:#adbea5;background:#f9fbf4;align-self:flex-end;font-weight:650}
.student-home .task-card>.btn-primary{background:#315f4c;color:white;border-color:#315f4c}
.student-home .task-card>.btn:hover{filter:brightness(.96)}
.student-home .home-task-count{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:8px;color:#697561;margin:0 0 8px}
.student-home .home-task-count button,.student-home .home-text-button{background:transparent;border:0;padding:6px 0;color:#426545;font-size:12px;font-weight:700;min-height:36px}
.student-home .overdue-tasks{font-size:12px;background:#fff9ec;border-color:#e0cfa9;color:#7d6533;width:100%;margin:0 0 24px;white-space:normal}
.home-progress-panel{position:relative;background:#eaf0de;border:1px solid #d5dec6;border-radius:18px 18px 28px 18px;padding:24px;margin-bottom:26px}
.home-progress-panel:before{content:'';position:absolute;width:32px;height:7px;background:#cad6b4;border-radius:8px;right:22px;top:18px}
.student-home .home-progress-panel h2{font-size:17px;margin:0 0 22px}.home-progress-count{display:flex;align-items:baseline;gap:8px;margin-bottom:14px;flex-wrap:wrap}.home-progress-count strong{font-size:38px;line-height:1;color:#385b3d;font-weight:800}.home-progress-count span{font-size:12px;color:#5c6c50}
.student-home .home-progress-panel progress{height:8px;background:#dbe4ce}.student-home .home-progress-note{font-size:11px;line-height:1.7;color:#667457;margin:12px 0}
.student-home .home-learning-side .task-card{padding:18px;background:#fcfaf0;border-style:dashed}.student-home .home-learning-side .task-card h3{font-size:15px}.student-home .task-score{font-size:13px;color:#476343}
.student-home .empty-state{background:#f0f2e8;border-color:#cdd7bf;color:#67735d;font-size:13px;border-radius:12px;padding:18px}
.home-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid #dde2d2;padding-top:20px;margin-top:14px;color:#73806c;font-size:12px}.home-footer-links>span{margin-right:auto}.student-home .home-footer-links button{background:none;border:0;color:#63765a;font-size:12px;padding:6px}
@media(max-width:1150px){.home-learning-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.home-path-text>span{display:none}.home-invitation{width:310px}.home-world{min-height:340px}}
@media(max-width:900px){body[data-workspace=student]:has(#home:not([hidden]) .student-home) main{padding:20px 24px 32px}body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar{padding:8px 16px}body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar .workspace-label{display:none}body[data-workspace=student]:has(#home:not([hidden]) .student-home) #app-sidebar .nav-link{margin:0;min-height:44px}.home-world{min-height:340px}.home-paths{margin-bottom:24px}}
@media(max-width:650px){body[data-workspace=student]:has(#home:not([hidden]) .student-home) main{padding:14px 14px 30px}body[data-workspace=student]:has(#home:not([hidden]) .student-home) header{padding:12px 16px}.home-world{min-height:0;padding-top:180px;border-radius:18px;background:#e8efdf}.home-world-art{height:220px;object-position:35% 60%}.home-place-label{top:14px;left:14px;font-size:11px;padding:6px 12px}.home-invitation{position:relative;width:auto;max-width:none;margin:0 12px 12px;padding:20px;border-radius:16px;background:#fffdf4}.home-invitation h2{font-size:23px;line-height:1.45;margin-bottom:9px;white-space:normal}.home-invitation .home-eyebrow{margin-bottom:7px}.home-welcome{font-size:12px;margin-bottom:14px}.home-next-title{margin-top:10px}.home-paths{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 26px;padding:6px;gap:2px}.student-home .home-path{padding:10px;min-height:60px;gap:9px}.home-path-text strong{font-size:13px}.home-path-number{width:26px;height:32px;font-size:10px}.home-path-arrow{font-size:15px}.home-learning-layout{display:block}.student-home .home-task-summary h2{font-size:20px}.student-home .task-card{padding:18px}.student-home .task-card h3{font-size:16px}.home-learning-side{margin-top:28px}.home-progress-panel{padding:22px}.home-progress-count{margin-bottom:14px}.home-footer-links>span{flex-basis:100%;text-align:center}.home-footer-links{justify-content:center}.student-home .home-task-count button,.student-home .home-text-button,.student-home .task-meta summary,.student-home .home-footer-links button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.student-home *, .student-home *:before,.student-home *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Keep status labels compact inside the existing task-card grid. */
.student-home .home-task-badge{width:fit-content;max-width:100%;justify-self:start}

/* Integrated home/name presentation only; no new images or global theme. */
.student-home .home-next-title,.student-home .home-path-text,.student-home .task-card{min-width:0;overflow-wrap:anywhere}
.student-home .home-primary,.student-home .home-footer-links button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.recent-learning td:first-child{white-space:normal;overflow-wrap:anywhere;max-width:20rem}
.results-view .result-group>summary,.results-view .result-task,.results-view .result-student{min-width:0;overflow-wrap:anywhere}
.results-view .result-table-wrap td:first-child button{white-space:normal;overflow-wrap:anywhere;max-width:20rem}
@media(max-width:650px){.recent-learning td:first-child{min-width:6rem;max-width:10rem}.student-home .home-primary{width:100%}.listening-actions .listen-button{min-height:44px}}

/* Only visible faculty workspaces use the desk palette. A previously rendered
   (now hidden) results list must not style a pupil, task or maintenance view. */
body.authenticated[data-workspace="teacher"]:not(:has(#maintenance-screen[open], #task:not([hidden]))):is(
  :has(#home:not([hidden])):has(#app-sidebar [data-page="home"][aria-current="page"]),
  :has(#teacher-editor:not([hidden])),
  :has(#home:not([hidden]) #tasks.results-view:not([hidden]))
) {
  --desk-bg:#171916; --desk-panel:#20231f; --desk-raised:#292d26;
  --desk-ink:#f2f1eb; --desk-muted:#bdc0b6; --desk-line:#43483f; --desk-control:#767e6e;
  --desk-accent:#f6a462; --desk-accent-ink:#201a14; --desk-focus:#ffd199;
  --desk-selected:#313b29; --desk-olive:#d3e5af;
  background:var(--desk-bg); color:var(--desk-ink);
  & > header {background:#151713;border-color:var(--desk-line);padding:12px clamp(16px,3vw,44px)}
  & > header a {color:var(--desk-accent);font-family:Batang,serif;font-size:1.12rem}
  & > header span, & .workspace-label {color:var(--desk-muted)}
  & #app-sidebar {background:#1c1f1a;border-color:var(--desk-line)}
  & #app-sidebar .nav-link {color:var(--desk-muted);border:1px solid transparent}
  & #app-sidebar .nav-link[aria-current="page"] {color:var(--desk-olive);background:var(--desk-selected);border-color:#889b58}
  & #app-sidebar .nav-link:hover {background:var(--desk-raised);color:var(--desk-ink)}
  & main {max-width:1240px;padding:clamp(20px,3vw,44px) clamp(16px,4vw,58px) 48px}
  & main > .notice {display:none}
  & #home-title {font-size:clamp(1.75rem,3.2vw,2.45rem);letter-spacing:-.05em;margin:0 0 1.5rem}
  & #home-title::before {content:"FACULTY DESK  /  01";display:block;margin-bottom:.45rem;color:var(--desk-accent);font:700 .71rem/1.4 Consolas,monospace;letter-spacing:.13em}
  & #home-overview h2 {color:var(--desk-ink);font-size:1.04rem;letter-spacing:-.025em}
  & .summary-grid {gap:0;border:1px solid var(--desk-line);border-radius:10px;background:var(--desk-panel)}
  & .summary-card {background:transparent;border:0;border-radius:8px;min-height:98px;padding:16px 20px;align-items:flex-start;color:var(--desk-ink);position:relative}
  & .summary-card + .summary-card {border-inline-start:1px solid var(--desk-line)}
  & .summary-card span {color:var(--desk-muted);font-size:.88rem}
  & .summary-card strong {font-size:clamp(1.7rem,2.8vw,2.15rem);font-weight:650}
  & .summary-card:first-child strong {color:var(--desk-accent)}
  & .summary-card::after {content:"↗";position:absolute;right:14px;top:14px;color:var(--desk-muted);font:1rem/1 sans-serif}
  & .summary-card:hover {background:var(--desk-raised)}
  & .text-secondary {color:var(--desk-muted)!important}
  & .action-row {margin:18px 0 24px}
  & :where(#logout,.action-row .btn,.mini-button,.mini-dialog button,.skip-link) {color:var(--desk-ink);background:var(--desk-raised);border:1px solid var(--desk-control);border-radius:7px;min-height:42px}
  & :is(.action-row .btn-primary,.mini-dialog .mini-primary):not(:disabled) {background:var(--desk-accent);color:var(--desk-accent-ink);border-color:var(--desk-accent);font-weight:700}
  & :is(.action-row .btn,.mini-button,#logout):not(:disabled):hover {border-color:var(--desk-accent)}
  & :is(input,select,textarea) {color-scheme:dark;color:var(--desk-ink);background:#191c18;border:1px solid var(--desk-control);min-height:44px}
  & :is(input,textarea)::placeholder {color:var(--desk-muted)}
  & :is(input,select,textarea):is(:user-invalid,[aria-invalid="true"]) {border-color:#ffab9f;box-shadow:0 0 0 1px #ffab9f}
  & :is(button,input,select,textarea):disabled {opacity:1;color:#b8bdb1;background:#30332d;border-color:#555b50;cursor:not-allowed}
  & :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid var(--desk-focus);outline-offset:2px;z-index:1}
  & :is(.recent-learning,.mini-approvals) {margin-top:20px;background:var(--desk-panel);color:var(--desk-ink);border:1px solid var(--desk-line);border-radius:10px;padding:clamp(12px,2vw,22px)}
  & .recent-learning .result-table-wrap {min-width:0}
  & .recent-learning .table {width:100%;min-width:0;table-layout:fixed;--bs-table-color:var(--desk-ink);--bs-table-bg:transparent;--bs-table-border-color:var(--desk-line)}
  & .recent-learning :is(th,td) {color:var(--desk-ink);white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:10px 12px}
  & .recent-learning th {color:#cad4bc;background:#2a2e26}
  & .recent-learning tbody tr:nth-child(even) {background:#232720}
  & .recent-learning :is(th,td):nth-child(1) {width:19%;min-width:0}
  & .recent-learning :is(th,td):nth-child(3) {width:6.5rem}
  & .recent-learning :is(th,td):last-child {width:4.6rem;text-align:right;font-variant-numeric:tabular-nums}
  & .desk-status {display:inline-block;border-radius:5px;padding:2px 8px;font-size:.8rem;line-height:1.65;font-weight:650;white-space:nowrap;color:#d9dfd2;background:#373c33}
  & .desk-status[data-state="done"] {color:var(--desk-olive);background:#354029}
  & .desk-status[data-state="active"] {color:#ffd199;background:#463623}
  & .mini-approvals .card {display:block;background:var(--desk-raised);color:var(--desk-ink);border-color:var(--desk-line)}
  & > header a.account-invite {display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;background:#272d24;border:1px solid var(--desk-control);border-radius:7px;color:var(--desk-ink);font:inherit;text-decoration:none}
  & .mini-approvals .account-actions .account-approve {background:#d4e6bd;color:#26311f;border-color:#a4ba8a}
  & .mini-approvals .account-actions .account-reject {background:#3a302a;color:#ffd5bb;border-color:#9d7964}
  & .mini-approvals .mini-button + .mini-button {margin-inline-start:8px}
  & :is(.mini-approvals,.mini-dialog) :is(p,h3) {overflow-wrap:anywhere}
  & .mini-dialog {color-scheme:dark;background:var(--desk-panel);color:var(--desk-ink);border-color:var(--desk-control)}
  & .mini-dialog::backdrop {background:#0a0c09b8}
  & #home-overview .alert {background:#412d28;color:#ffe0d8;border-color:#aa7369}
  & #teacher-editor, & #tasks.results-view {color-scheme:dark;min-width:0;overflow-wrap:anywhere}
  & #teacher-editor h1 {font-size:clamp(1.7rem,3vw,2.35rem);margin-bottom:14px}
  & #teacher-editor .material-field-grid {
   max-width:50rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:0 1rem;
  }
  & #teacher-editor h1::before, &:has(.results-view:not([hidden])) #home-title::before {
    display:block;margin-bottom:.45rem;color:var(--desk-accent);font:700 .71rem/1.4 Consolas,monospace;letter-spacing:.13em
  }
  & #teacher-editor h1::before {content:"FACULTY DESK  /  CONTENT"}
  &:has(.results-view:not([hidden])) #home-title::before {content:"FACULTY DESK  /  RECORDS"}
  & :is(#teacher-editor,#tasks.results-view) {
    & :is(button,summary) {min-height:40px}
    & button {border:1px solid var(--desk-control);border-radius:7px;background:var(--desk-raised);color:var(--desk-ink)}
    & button:not(:disabled):hover {border-color:var(--desk-accent)}
    & :is(button[aria-pressed=true],.selection-options button[aria-pressed=true]) {color:var(--desk-olive);background:var(--desk-selected);border-color:#889b58;box-shadow:inset 3px 0 #a4ba68}
    & button:disabled {color:#b8bdb1;background:#30332d;cursor:not-allowed;border-color:#555b50}
    & :is(input,textarea,select) {color:var(--desk-ink);background:#191c18;border-color:var(--desk-control);max-width:100%}
    & :is(input,textarea,select):disabled {color:#b8bdb1;background:#30332d}
    & input[type=checkbox] {min-height:0;accent-color:var(--desk-accent);cursor:pointer;flex-shrink:0}
    & input[type=checkbox]:disabled {cursor:not-allowed}
    & a {color:var(--desk-accent)}
    & :is(.editor-detail,.question-row,.selection-question,.teacher-option,.import-row,.batch-delivery,.student-result-card,.assignment-result-card,.recent-result-card,.desk-delivery>section) {
      background:var(--desk-panel);color:var(--desk-ink);border:1px solid var(--desk-line);border-radius:9px;min-width:0
    }
    & :is(.desk-kicker,.results-count,.results-help,.results-definitions,.set-meta,.set-maintenance,.option-id,.response-state,.selection-help,.option-marker,caption,.desk-attempt small) {color:var(--desk-muted)}
    & .desk-kicker {font-weight:650;font-size:.78rem;margin-bottom:12px}
    & .desk-kicker::before {content:'';display:inline-block;width:16px;height:2px;vertical-align:middle;margin-right:8px;background:var(--desk-accent)}
    & :is(.editor-toolbar,.result-view-switch,.import-actions,.wizard-steps) {background:var(--desk-panel);border:1px solid var(--desk-line);border-radius:8px}
    & .editor-toolbar {padding:12px 16px}
    & .editor-toolbar :is(input,select) {margin:4px 0 0}
    & .desk-bulk {border-bottom:1px solid var(--desk-line);margin:8px 0}
    & .desk-bulk summary {color:var(--desk-olive);width:fit-content}
    & .desk-bulk .action-row {margin:6px 0 12px}
    & .desk-bulk + p {font-size:.82rem;color:var(--desk-muted)}
    & .editor-split {margin-top:16px}
    & .editor-split td:first-child {width:auto}
    & .editor-split table {table-layout:fixed;width:100%}
    & .editor-split th:nth-child(1) {width:3.6rem;white-space:nowrap}
    & .editor-split th:nth-child(3) {width:4.9rem}
    & .editor-split th:nth-child(4) {width:5.75rem}
    & .editor-split td [data-set-id] {text-align:left;white-space:normal;overflow-wrap:anywhere}
    & .editor-detail button {min-width:6rem}
    & table {--bs-table-bg:transparent;--bs-table-color:var(--desk-ink);--bs-table-border-color:var(--desk-line);color:var(--desk-ink)}
    & table th {background:#2a2e26;color:#cad4bc}
    & table :is(th,td) {border-color:var(--desk-line);overflow-wrap:anywhere}
    & table tbody tr:nth-child(even) {background:#232720}
    & :is(.set-toolbar,.result-group[open]>div,.result-task,.desk-attempt) {border-color:var(--desk-line)}
    & .desk-delivery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
    & .desk-delivery>section {padding:18px}
    & .desk-recipients {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:6px}
    & .desk-recipients label {display:flex;align-items:center;gap:8px;padding:6px 10px;min-height:44px;background:var(--desk-raised);border:1px solid var(--desk-line);border-radius:6px;cursor:pointer}
    & .desk-recipients label:has(:checked) {color:var(--desk-olive);border-color:#889b58;background:var(--desk-selected)}
    & .desk-recipients input {margin:0;order:-1}
    & :is(.desk-authoring button:first-child,.editor-detail>button,.set-flow-actions button:last-child,.desk-delivery~button:last-child):not(:disabled) {color:var(--desk-accent-ink);background:var(--desk-accent);border-color:var(--desk-accent);font-weight:650}
    & .editor-status:not(:empty) {padding:8px 12px;border-inline-start:3px solid var(--desk-accent);background:var(--desk-panel);color:var(--desk-ink)}
    & .import-errors {color:#ffb5a9}
    & .result-counts {color:var(--desk-olive)}
    & .result-badge, & .review-needed {color:#ffd199;background:#463623;border-radius:5px;padding:3px 8px;width:fit-content}
    & .student-summary {color:var(--desk-muted)}
    & .desk-result-line {display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
    & .desk-result-line strong, & .desk-attempt strong {font-variant-numeric:tabular-nums;color:var(--desk-ink)}
    & .desk-attempt {padding:10px 12px;margin-bottom:8px;background:var(--desk-raised);border-inline-start:2px solid #889b58;border-radius:3px}
    & .desk-attempt h4 {font-size:.94rem;margin:0 0 5px}
    & .desk-attempt p {margin:4px 0}
    & .result-table-wrap {max-width:100%;overflow-x:auto}
    @media (max-width:760px) {
      & :is(button,summary) {min-height:44px}
      & input[type=checkbox] {min-height:0}
      & .editor-split {display:block}
      & .editor-detail {position:static;margin-top:12px}
      & .editor-toolbar {padding:12px}
      & .editor-split th:nth-child(1) {width:2.55rem}
      & .editor-split th:nth-child(3) {width:3.45rem}
      & .editor-split th:nth-child(4) {width:3.9rem}
      & .desk-delivery,.student-summary {grid-template-columns:minmax(0,1fr)}
      & .desk-delivery>section {padding:14px}
      & .teacher-option {grid-template-columns:minmax(0,1fr) auto}
      & .teacher-option>button {grid-column:1/-1;grid-row:auto;justify-self:start}
      & .result-view-switch {display:flex;flex-wrap:wrap}
    }
  }
  @media(max-width:900px) {
    & #app-sidebar .nav-link, & :is(.action-row .btn,.mini-button,#logout) {min-height:44px}
    & .summary-card:nth-child(3) {border-inline-start:0}
    & .summary-card:nth-child(n+3) {border-top:1px solid var(--desk-line)}
  }
  @media(max-width:650px) {
    & > header {min-height:54px;gap:8px}
    & > header span {flex-basis:auto;order:0}
    & .summary-card {min-height:84px;padding:12px}
    & #home-title {margin-bottom:18px}
    & .action-row {gap:7px}
    & .recent-learning :is(th,td) {padding:9px 3px;font-size:.85rem}
    & .recent-learning :is(th,td):nth-child(1) {width:21%}
    & .recent-learning :is(th,td):nth-child(3) {width:4.65rem}
    & .recent-learning :is(th,td):last-child {width:2.7rem}
    & .desk-status {padding:2px 5px}
  }
}
/* Own, submitted student result only. Task/vocabulary and teacher detail retain their own themes. */
body:has(#task:not([hidden]) #answers:not([hidden]) #result.student-report-active:not([hidden])) {
 background:#171916;color:#eeeede;color-scheme:dark;
 & > header,& #app-sidebar {background:#1c1f1a;border-color:#454b40;color:#e8ecdF}
 & > header a,& #app-sidebar .nav-link,& #app-sidebar .workspace-label {color:#dae0ce}
 & main {max-width:1340px}
 & #task,& #answers {background:transparent;color:inherit;border:0;box-shadow:none;padding:0}
 & #book,& #task-heading,& #answer-help,& #attempt-history,& #answer-grid,& #review-origin,& .notice {display:none}
 & #task > nav:has(#tab-vocab[hidden]) {display:none}
 & #back,& #task > nav button,& #logout {background:#262a23;border:1px solid #67705d;color:#eef1e5;min-height:44px}
 & #back {margin:0 0 12px}
 & :is(#save-status,#timer):empty {display:none}
 & :is(#save-status,#timer) {color:#d3ddbf}
 & #result {border:0;background:transparent;color:inherit;padding:0;margin:0}
 & #result > :is(h2,#score,#result-numbers,#review,#short-results,#wrong-list), & #result.rr-historical #question-times {display:none}
 & #result :is(button,select,summary) {min-height:44px}
 & #result button {border:1px solid #56614c;background:#272c25;color:#e3e8db;transition:none}
 & #result button:focus-visible,& #result summary:focus-visible,& #result input:focus-visible {outline:3px solid #ffca91;outline-offset:3px}
 & #result button:disabled {opacity:.6}
 & #result .rr {padding:10px 0 18px;overflow-wrap:anywhere}
 & .rr-head,& .rr-rounds,& .rr-filter,& .rr-tiles {display:flex;flex-wrap:wrap;align-items:center;gap:7px}
 & .rr-head {justify-content:space-between;gap:16px;margin-bottom:20px}
 & .rr-head h2 {font-family:Georgia,"Malgun Gothic",serif;font-size:clamp(24px,3vw,37px);margin:4px 0;color:#faf5e5}
 & .rr-label,& .rr-index,& .rr-kicker {color:#c8d4b7;font-size:13px;font-weight:650;margin:0 0 5px}
 & .rr-rounds {gap:3px;padding:3px;background:#1d211b;border:1px solid #535b4c;border-radius:10px}
 & #result .rr-rounds button {background:transparent;border-color:transparent}
 & #result :is(.rr-filter,.rr-rounds) button[aria-pressed=true] {background:#dce6c7;border-color:#dce6c7;color:#27301f}
 & .rr-grid {display:grid;grid-template-columns:minmax(160px,0.75fr) minmax(0,2fr);gap:clamp(14px,2.5vw,32px);align-items:start}
 & .rr-summary {background:linear-gradient(140deg,#313a2a,#21281f);border:1px solid #58644d;border-radius:12px;padding:20px;min-width:0;font-variant-numeric:tabular-nums}
 & .rr-score {display:flex;align-items:baseline;gap:7px}
 & .rr-score strong {font:500 clamp(54px,6vw,84px)/1.1 Georgia,serif;color:#ffbd86}
 & .rr-score span {font-size:21px;color:#eef1df}
 & .rr-counts,& .rr-time,& .rr-percent {color:#d2dac8;font-size:14px}
 & .rr-time {border-top:1px solid #535b4c;padding-top:10px;margin-top:12px}
 & .rr-tally {display:flex;gap:3px;overflow:hidden;margin:14px 0 6px}
 & .rr-tally i {flex:1;height:7px;background:#b6cb90}
 & .rr-tally .rr-wrong {background:repeating-linear-gradient(135deg,#895a4c 0 3px,#edb49e 3px 6px)}
 & .rr-tally .rr-unanswered {background:#aaa89f}
 & .rr-review h3 {color:#f0f1e6;font-size:23px}
 & .rr-tiles {margin:12px 0}
 & #result .rr-tile.rr-wrong {background:#392923;color:#ffccb7}
 & #result .rr-tile.rr-correct {color:#d7e8bc}
 & #result .rr-tile[aria-pressed=true] {box-shadow:inset 0 0 0 2px currentColor}
 & .rr-insight {background:#22261f;border:1px solid #535c4b;border-radius:10px;padding:18px;line-height:1.6}
 & .rr-insight article {padding:0;border:0;background:transparent;color:inherit}
 & .rr-insight article p {white-space:pre-line;overflow-wrap:anywhere}
 & .rr-insight article p:first-child {font-size:18px;font-weight:650;margin-block:8px 14px}
 & .rr-insight article p:nth-child(2),& .rr-insight article p:nth-child(3) {border-radius:6px;padding:8px 12px;background:#32392d;color:#ecf1dd}
 & .rr-insight .option-analysis {font-size:13px;color:#cbd2c1;padding-left:22px}
 & .rr-insight .option-analysis :is([data-judgment=missed],[data-judgment=extra]) {color:#ffc5ad}
 & #wrong-retry-panel,& #question-times {border:1px solid #4b5345;border-radius:10px;background:#21251f;color:#e6eadb;padding:14px;margin:12px 0}
 & #wrong-retry-panel {display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
 & #wrong-retry-panel h3,& #wrong-retry-panel>p:last-child {flex-basis:100%;margin:0}
 & #wrong-retry-panel h3 {font-size:16px}
 & #wrong-retry-panel>p:last-child {font-size:13px;color:#c4ccbb}
 & #wrong-retry-panel .review-missing-label:has(input:disabled:not(:checked)) {display:none}
 & #wrong-retry-panel :is(label[for=review-source],#review-source) {display:none}
 & #review-target-count,& #repeat-help {color:#d5deca;margin:4px 0}
 & #result #start-wrong-retry {background:#ffbf8a;color:#2c2118;border-color:#ffbf8a;font-weight:700}
 & .review-missing-label {display:inline-flex;align-items:center;gap:7px;min-height:44px}
 & #review-include-unanswered {margin:0;width:20px;height:20px}
 & #result [hidden] {display:none!important}
 @media(max-width:760px) {
  & main {padding:14px 12px 28px}
  & .rr-grid {grid-template-columns:minmax(0,1fr)}
  & .rr-summary {display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:15px;padding:12px 16px;align-items:center}
  & .rr-kicker,& .rr-time {grid-column:1/-1}
  & .rr-score {grid-column:1;grid-row:2/5}
  & .rr-tally,& .rr-counts,& .rr-percent {grid-column:2}
  & .rr-tally,& .rr-time {margin:4px 0}
  & .rr-insight {padding:13px}
  & #wrong-retry-panel>button {width:100%}
 }
}
