.hw{width:min(780px,92%);margin:24px auto 80px}.hw-title{background:#27483e;color:#fffbed;border-radius:16px;padding:clamp(20px,4vw,38px)}.hw-title h1{margin:8px 0}.hw-title p{margin:4px 0;color:#e3d3a7;font-size:1.35rem}.hw section,.hw article,.hw details.note{padding:16px 0;border-bottom:1px solid #d3d9cf}.hw h2{font-size:1.32rem;margin:6px 0}.hw h3{font-size:1.05rem}.hw p{max-width:68ch}.hw textarea,.hw select{box-sizing:border-box;width:100%;font:inherit;border:1px solid #acb8af;background:#fffefb;color:#24352f;border-radius:8px;padding:9px 12px}.hw audio{width:min(100%,420px);display:block}.hw textarea{min-height:90px;resize:vertical}.hw .choice{display:flex;align-items:center;gap:10px;padding:5px 0}.hw .choice input{width:18px;height:18px}.hw .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.hw button,.hw .linkbtn{display:inline-block;cursor:pointer;padding:9px 15px;border-radius:8px;border:1px solid #668676;background:white;color:#224a3c;font:inherit}.hw .primary,.hw .linkbtn{background:#244b40;color:white;text-decoration:none}.hw .answer,.hw .note-text{white-space:pre-wrap;padding:12px 16px;border-left:3px solid #95af99;background:#fffdfa}.hw .instructions{display:grid;gap:6px;padding-left:23px}.hw details summary{cursor:pointer;font-weight:650}.hw button:disabled{opacity:.6}.hw [role=status]:not(:empty){position:sticky;bottom:12px;background:#fff3c7;border:1px solid #d3bd78;padding:12px;border-radius:8px}.hw form{margin-top:14px}.hw small{color:#526458}.hw-title small{color:#e4eadd}@media print{.practice-nav,.actions,.hw-login,button,#hw-status{display:none!important}.hw{width:auto}.hw-title{color:#263e31;background:none;padding:0}.hw-title p,.hw-title small{color:#263e31}.hw article{break-inside:avoid}}
.desk-picture{box-sizing:border-box;max-width:96vw;max-height:92dvh;margin:auto;padding:12px;border:0;border-radius:12px;overflow:auto}
.desk-picture[open]{display:grid;gap:8px}
.desk-picture::backdrop{background:#171620ae}
.desk-picture button{justify-self:end}
.desk-picture img{display:block;max-width:100%;height:auto}
.desk-upload{display:grid;gap:6px;margin:10px 0;font-size:.9rem}
.desk-upload input{box-sizing:border-box;max-width:100%;min-width:0}
.hw .answer,.queue-row h3{overflow-wrap:anywhere}
.queue-row[hidden]{display:none}

.learner-shell details.hw-card{width:100%;margin:0 0 10px;padding:0;border-radius:16px}
.hw-card>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;padding:12px 16px;list-style:none;cursor:pointer}
.hw-card>summary>small{grid-column:1;font-size:12px;font-weight:500;color:var(--muted)}
.hw-card>summary>strong{grid-column:1;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.hw-card>summary>.status{grid-column:2;grid-row:1;margin:0}
.hw-card>summary:after{content:"";grid-column:2;grid-row:2;justify-self:end;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-right:4px}
.hw-card[open]>summary:after{transform:rotate(225deg)}.hw-card[open]>summary{border-bottom:1px solid var(--line)}
.hw-card>:not(summary){margin-inline:16px}.hw-card>button[data-fold-task]{margin-block:10px 14px}
.hw-card summary::-webkit-details-marker{display:none}
.hw-exercise,.hw-history,.answer-editor{padding:0;border-bottom:1px solid #e1e1ea}
.hw-exercise>summary,.hw-history>summary,.answer-editor>summary{padding:11px 0;min-height:44px;color:#47386c;cursor:pointer;font-weight:600}
.hw-history>summary .when-open,.hw-history[open]>summary .when-closed{display:none}.hw-history[open]>summary .when-open{display:inline}
.hw-card .reply{overflow-wrap:anywhere}.hw-card>summary:focus-visible,.hw-exercise>summary:focus-visible,.hw-history>summary:focus-visible{outline-offset:-3px}
@media(max-width:700px){.hw-card>summary{padding:10px 12px}.hw-card>:not(summary){margin-inline:12px}.hw-card .reply{max-width:100%;margin:6px 0;padding-left:9px}.hw-card .workform{margin-top:5px}.hw-card .entrytext{overflow-wrap:anywhere}.hw-card audio{max-width:100%}}


.review-pupil+.review-pupil{border-top:1px solid var(--line)}
.review-pupil>summary{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}
.review-pupil>summary strong{flex:1;overflow-wrap:anywhere}.review-pupil>summary small{background:var(--soft);color:var(--accent);border-radius:16px;padding:3px 9px}
.review-pupil>summary:after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-right:4px}.review-pupil[open]>summary:after{transform:rotate(225deg)}
.app-content>details.teacher-task{padding:0;margin:10px 0}.review-answer .entrytext,.teacher-exercise .answer{overflow-wrap:anywhere}
.review-answer>button,.teacher-exercise>button{margin:8px 0}
@media(max-width:700px){.review-pupil .queue-row{grid-template-columns:minmax(0,1fr) auto;margin-block:8px}.review-answer .workform textarea{font-size:16px}.teacher-exercise summary{min-height:44px}.hw .actions button{flex:1 1 130px;min-height:44px}}

