.hsm-teacher-desk{--td-border:#e1e7f0;--td-muted:#64748b;color:#172b4d;min-width:0}
.hsm-teacher-desk *{box-sizing:border-box}
.hsm-teacher-desk h2{margin:0 0 18px;font-size:22px}
.hsm-teacher-desk>header:has([data-td-action="return-timetable"]){display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:16px}.hsm-teacher-desk>header:has([data-td-action="return-timetable"]) h2{margin:0}.hsm-teacher-desk [data-td-action="return-timetable"]{font-size:11px}
.hsm-teacher-desk button,.hsm-td-file{font:inherit;font-size:12px;min-height:44px;border:1px solid var(--td-border);background:#fff;color:#21427e;border-radius:9px;padding:9px 12px;cursor:pointer;text-decoration:none;max-width:100%;white-space:normal}
.hsm-teacher-desk button:disabled{opacity:.45;cursor:default}
.hsm-teacher-desk .hsm-td-primary{background:#3156d9;color:#fff;border-color:#3156d9}
.hsm-teacher-desk button:focus-visible,.hsm-teacher-desk input:focus-visible,.hsm-teacher-desk select:focus-visible,.hsm-teacher-desk textarea:focus-visible,.hsm-teacher-desk summary:focus-visible{outline:3px solid #99b3f3;outline-offset:2px}
.hsm-teacher-desk [hidden]{display:none!important}
.hsm-td-grade-list{display:grid;gap:9px}.hsm-td-person-accordion{border:1px solid var(--td-border);border-radius:12px;background:#fff;min-width:0}.hsm-td-person-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;list-style:none;min-height:64px;padding:12px 30px 12px 12px;cursor:pointer;position:relative}.hsm-td-person-accordion>summary::-webkit-details-marker{display:none}.hsm-td-person-accordion>summary:after{content:'+';position:absolute;right:11px;top:18px;color:#64748b;font-size:20px}.hsm-td-person-accordion[open]>summary:after{content:'−'}.hsm-td-person-accordion>summary>small{grid-column:1/-1;color:var(--td-muted);font-size:11px;line-height:1.8}.hsm-td-person-summary{display:flex;gap:8px;align-items:center;min-width:0;font-size:13px;line-height:1.8}.hsm-td-person-summary strong{overflow-wrap:anywhere}.hsm-td-person-accordion>summary:focus-visible{outline:3px solid #9baef8;outline-offset:3px}.hsm-td-person-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px;border-top:1px solid var(--td-border)}.hsm-td-person-section{min-width:0}.hsm-td-person-accordion .hsm-td-person-link{min-height:44px}.hsm-td-person-section>.hsm-td-response-status{margin:8px 0}
@media(max-width:700px){.hsm-td-person-accordion>summary{grid-template-columns:minmax(0,1fr);gap:7px;padding:11px 29px 11px 11px}.hsm-td-person-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:11px}.hsm-td-person-section.is-0,.hsm-td-person-section.is-1,.hsm-td-person-section.is-2{grid-column:1/-1}.hsm-td-person-accordion .hsm-td-response-status{justify-content:flex-start}}
.hsm-teacher-desk input,.hsm-teacher-desk select,.hsm-teacher-desk textarea{min-width:0;width:100%;font:inherit;font-size:13px;border:1px solid var(--td-border);padding:9px;border-radius:8px;background:#fff;min-height:44px;color:inherit}
.hsm-td-filters,.hsm-td-form,.hsm-td-grade-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hsm-td-filters label,.hsm-td-form label,.hsm-td-grade-filters label,.hsm-td-sheet-heading label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}
.hsm-td-context-switch{font-size:12px;border-bottom:1px solid var(--td-border);padding-bottom:12px;color:var(--td-muted)}
.hsm-td-context-switch>.hsm-td-filters{margin-top:12px}
.hsm-td-form .full{grid-column:1/-1}
.hsm-td-main-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}
.hsm-td-class-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px;min-width:0}
.hsm-td-class-label small{color:var(--td-muted);font-size:11px}
.hsm-td-list-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.hsm-td-view-tabs{display:flex;gap:5px;flex-shrink:0}
.hsm-td-view-tabs button{border:0;background:#f4f6fa;font-size:11px;padding:8px 10px}
.hsm-td-view-tabs [aria-selected=true]{background:#eaf0ff;color:#294bcc}
.hsm-td-search{display:flex;align-items:center;gap:6px;max-width:320px;min-width:0}
.hsm-td-search label{min-width:0;flex:1}
.hsm-td-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hsm-td-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid var(--td-border);border-radius:10px}
.hsm-teacher-desk table{border-collapse:collapse;width:100%;text-align:right;font-size:12px;table-layout:fixed}
.hsm-teacher-desk th,.hsm-teacher-desk td{border-bottom:1px solid var(--td-border);padding:12px;vertical-align:middle}
.hsm-teacher-desk th{background:#f8fafc;font-weight:500;color:var(--td-muted)}
.hsm-teacher-desk tr:last-child td{border-bottom:0}
.hsm-td-activities th:first-child{width:70%}
.hsm-td-activities td:first-child strong{display:block;line-height:1.8;overflow-wrap:anywhere;font-size:13px}
.hsm-td-activities td:first-child small{display:block;font-size:11px;line-height:1.9;color:var(--td-muted);margin-top:3px}
.hsm-td-activities td:last-child{width:30%;text-align:left}
.hsm-td-activities td:last-child button{width:100%;max-width:170px;font-size:11px}
.hsm-td-activity-state{display:block;font-size:10px;color:var(--td-muted);margin-bottom:4px}
.hsm-td-activity-state:empty{display:none}
.hsm-td-activity-state.needs-review{color:#9a5600}
.hsm-td-pages{display:flex;gap:10px;align-items:center;justify-content:center;padding:12px;font-size:12px}
.hsm-td-roster-details,.hsm-td-slot-details{border-top:1px solid var(--td-border);padding:13px 0;font-size:12px}
.hsm-teacher-desk summary{cursor:pointer;line-height:1.8}
.hsm-td-roster-details>summary small,.hsm-td-slot-details>summary small{font-size:11px;color:var(--td-muted);margin-inline-start:8px}
.hsm-td-roster-details{margin-top:10px}
.hsm-td-manager-request{display:flex;justify-content:flex-end;margin-top:12px}
.hsm-td-manager-request button{border:0;background:#f7f9fc;font-size:11px}
.hsm-td-count{background:#eaf0ff;color:#3156d9;padding:2px 6px;border-radius:5px}
.hsm-td-lesson-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.hsm-td-lesson-cards button{text-align:right;line-height:1.8}
.hsm-td-pupils{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}
.hsm-td-pupils article{border:1px solid var(--td-border);border-radius:12px;padding:10px;min-width:0;text-align:center}
.hsm-teacher-desk button.hsm-td-pupil{border:0;display:flex;flex-direction:column;align-items:center;width:100%;padding:0;gap:6px;line-height:1.6}
.hsm-td-pupil strong{font-size:12px}
.hsm-td-pupils article>button:last-child{margin-top:7px;font-size:11px;padding:5px;width:100%}
.hsm-td-avatar{position:relative;display:inline-grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#e9effc;color:#3156d9;overflow:hidden;font-size:12px;font-weight:600;vertical-align:middle}
.hsm-td-avatar>img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;margin:0!important;object-fit:cover;border-radius:50%}
.hsm-td-pupil .hsm-td-avatar,.hsm-td-student-head .hsm-td-avatar{width:50px;height:50px;font-size:18px}
.hsm-td-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0 12px}
.hsm-td-sheet-heading h3{font-size:16px;line-height:1.8;margin:0 0 3px;overflow-wrap:anywhere}
.hsm-td-sheet-heading small{font-size:11px;color:var(--td-muted)}
.hsm-td-sheet-heading label{flex:0 1 190px}
.hsm-td-activity-details{border:1px solid var(--td-border);border-radius:9px;padding:10px;font-size:12px}
.hsm-td-activity-details p{font-size:12px;line-height:1.9}
.hsm-td-activity-details .hsm-td-file{display:inline-flex;align-items:center;margin:4px}
.hsm-td-activity-details [data-td-action=follow-up]{margin:4px;font-size:11px}
.hsm-td-rubric{font-size:11px;color:var(--td-muted);line-height:1.8;margin:10px 0}
.hsm-td-grade-filters{margin:14px 0}
.hsm-td-grade-table th:first-child{width:33%}
.hsm-td-grade-table th:nth-child(2){width:39%}
.hsm-td-grade-table td{vertical-align:top}
.hsm-td-person-link{display:flex;align-items:center;gap:7px;border:0!important;padding:0!important;text-align:right;line-height:1.7}
.hsm-td-grade-table td>small{display:block;color:var(--td-muted);font-size:10px;padding:3px 0}
.hsm-td-grade-table td:first-child>[data-td-action=response]{font-size:11px;margin-top:5px;padding:6px 9px}
.hsm-td-scores{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hsm-td-scores label{font-size:11px;display:flex;flex-direction:column;gap:4px;min-width:0}
.hsm-td-scores input,.hsm-td-scores select{padding:8px}
.hsm-td-extras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px}
.hsm-td-extras>details[open]{grid-column:1/-1}
.hsm-td-extra-score{min-width:0;font-size:11px;color:var(--td-muted)}
.hsm-td-extra-score>summary{min-height:44px;padding:9px 0}
.hsm-td-extra-score>label{max-width:180px;margin:5px 0;color:#172b4d}
.hsm-td-rubric-snapshot{display:block;font-size:10px;color:var(--td-muted);line-height:1.7;padding-top:7px}
.hsm-td-feedback{font-size:11px;min-width:0}
.hsm-td-feedback summary{padding:9px 0;color:#47658f;min-height:44px}
.hsm-td-feedback textarea{margin-top:5px}
.hsm-td-grade-table .is-readonly{background:#f8f9fb}
.hsm-td-sheet-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;z-index:2}
.hsm-td-sheet-actions>span{color:var(--td-muted);font-size:11px}
.hsm-td-modal{position:fixed;inset:0;background:#172b4d66;display:flex;align-items:center;justify-content:center;z-index:100005;padding:16px;overscroll-behavior:contain}
.hsm-td-dialog{background:#fff;border-radius:14px;padding:20px;width:min(700px,100%);max-height:92dvh;overflow:auto;box-shadow:0 20px 70px #172b4d44}
.hsm-td-dialog>h3{font-size:17px;margin:12px 0 18px;line-height:1.8}
.hsm-td-dialog>[data-td-action=close]{float:left}
.hsm-td-dialog p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.hsm-td-plain{white-space:pre-wrap}
.hsm-td-muted{font-size:11px;color:var(--td-muted);line-height:1.8}
.hsm-td-form p.hsm-td-muted{margin:0}
.hsm-td-form small{font-size:11px;color:var(--td-muted);line-height:1.7}
.hsm-td-form>details{border:1px solid var(--td-border);border-radius:9px;padding:10px}
.hsm-td-form>details>summary{font-size:12px}
.hsm-td-form>details>.hsm-td-form{margin-top:12px}
.hsm-td-create-footer{position:sticky;bottom:-20px;background:#fff;border-top:1px solid var(--td-border);padding:12px 0 0;z-index:2}
.hsm-teacher-desk .hsm-td-check{display:flex;flex-direction:row;align-items:center;line-height:1.7}
.hsm-teacher-desk .hsm-td-check input,.hsm-td-extension-set input{width:16px!important;min-height:16px!important;height:16px;padding:0;flex-shrink:0}
.hsm-td-extension-set{display:flex;flex-wrap:wrap;gap:10px;border:1px solid var(--td-border);border-radius:8px;padding:10px}
.hsm-td-extension-set legend{font-size:12px}
.hsm-td-extension-set label{display:flex;flex-direction:row;align-items:center;gap:5px}
.hsm-teacher-desk .hsm-jalali-selects{grid-template-columns:.8fr 1.4fr 1.1fr}
.hsm-teacher-desk .hsm-jalali-selects select{appearance:none;padding:6px 6px 6px 18px;padding-inline:5px 16px!important;padding-block:6px!important;font-size:12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2371849b' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:6px center}
.hsm-td-student-head{display:flex;gap:12px;align-items:center;font-size:13px}
.hsm-td-history-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}
.hsm-td-history-tabs [aria-selected=true]{background:#eaf0ff;color:#294bcc;border-color:#c5d2f9}
.hsm-td-history-filters{padding:10px;border:1px solid var(--td-border);border-radius:9px;margin-bottom:10px}

.hsm-td-history-list{margin-top:10px}
.hsm-td-history-list>details{border:1px solid var(--td-border);border-radius:9px;margin-bottom:8px;padding:10px}
.hsm-td-history-list summary{font-size:12px;line-height:1.8}
.hsm-td-history-list summary small{display:block;color:var(--td-muted);font-size:11px}
.hsm-td-history-list .hsm-td-file{display:inline-flex;margin:5px}
.hsm-td-history-list button{margin-top:7px}
.hsm-td-history-list p{margin:9px 0}
.hsm-td-grade-choices{display:grid;gap:8px;margin:16px 0}
.hsm-td-grade-choices button{text-align:right;line-height:1.7}
.hsm-td-empty{padding:20px 12px;font-size:12px;color:var(--td-muted);line-height:1.8}
.hsm-td-preview{padding:10px 12px;background:#fff8e8;border:1px solid #eedaae;border-radius:9px;font-size:12px;line-height:1.8}
.hsm-teacher-desk [data-teacher-message]:not(:empty){font-size:12px;padding:10px 0}
.hsm-teacher-desk .is-error{color:#b4233d}
.hsm-teacher-desk [data-teacher-body][aria-busy=true]{opacity:.6;pointer-events:none}
.hsm-teacher-modal-open{overflow:hidden}
@media(max-width:700px){.hsm-td-pupils{grid-template-columns:repeat(3,minmax(0,1fr))}.hsm-td-dialog{padding:14px}.hsm-td-modal{padding:8px}.hsm-teacher-desk h2{font-size:19px}.hsm-td-create-footer{bottom:-14px}.hsm-td-list-tools{flex-wrap:wrap}.hsm-td-search{flex:1 1 100%;max-width:none}}
@media(max-width:600px){.hsm-td-grade-table,.hsm-td-grade-table tbody{display:block}.hsm-td-grade-table thead{display:none}.hsm-td-grade-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-bottom:1px solid var(--td-border)}.hsm-td-grade-table td{display:block;border:0;padding:0;min-width:0}.hsm-td-grade-table td:first-child,.hsm-td-grade-table td:nth-child(2),.hsm-td-grade-table td:last-child{grid-column:1/-1}.hsm-td-grade-table td:first-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hsm-td-grade-table td:first-child>.hsm-td-person-link{flex:1 1 100%}.hsm-td-grade-table td:first-child>small{flex:1 1 100%;padding:0}.hsm-td-grade-table tr:last-child{border-bottom:0}.hsm-td-sheet-actions{position:static;flex-wrap:wrap}.hsm-td-sheet-actions>button{flex:1}.hsm-td-history-tabs button{padding:6px;font-size:11px}.hsm-td-person-link{font-size:12px!important}.hsm-td-main-actions{gap:8px}.hsm-td-class-label{font-size:12px}.hsm-td-activities th:first-child{width:62%}.hsm-td-activities td:last-child{width:38%}.hsm-td-activities td:first-child strong{font-size:12px}.hsm-td-activities th,.hsm-td-activities td{padding:10px 8px}.hsm-td-activities td:last-child button{padding:8px;font-size:11px}}
@media(max-width:420px){.hsm-td-pupils{grid-template-columns:repeat(2,minmax(0,1fr))}.hsm-td-form,.hsm-td-filters,.hsm-td-grade-filters{gap:9px}.hsm-td-student-head{align-items:flex-start}.hsm-td-list-tools{gap:9px}.hsm-td-view-tabs{width:100%}.hsm-td-view-tabs button{flex:1}.hsm-td-main-actions>.hsm-td-primary{flex-shrink:0}}

@media(min-width:900px){.hsm-td-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.hsm-td-view-tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-shrink:1}.hsm-teacher-desk .hsm-jalali-selects{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.hsm-teacher-desk .hsm-jalali-selects select{font-size:12px!important;padding:6px 5px 6px 16px}.hsm-teacher-desk .hsm-jalali-selects select:nth-child(2){grid-column:1/-1;grid-row:1}.hsm-teacher-desk .hsm-jalali-selects select:first-child{grid-column:1;grid-row:2}.hsm-teacher-desk .hsm-jalali-selects select:last-child{grid-column:2;grid-row:2}.hsm-td-main-actions{flex-wrap:wrap}.hsm-td-main-actions>.hsm-td-class-label{flex:1 1 100%}.hsm-td-main-actions>[data-td-action=back-list]{flex:1 1 100%}}
@media(max-width:420px){.hsm-teacher-desk .hsm-jalali-selects select{font-size:11px!important}}

.hsm-td-activity-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.hsm-td-activity-meta>span{font-size:10px;line-height:1.6;background:#f1f4f9;color:#576783;border-radius:6px;padding:3px 7px;overflow-wrap:anywhere}.hsm-td-activity-meta>.hsm-td-due{background:#fff5e8;color:#915917}
.hsm-td-review-dialog{width:min(1100px,100%)}
.hsm-td-review-dialog .hsm-td-sheet-heading h3{margin:0;font-size:18px}
.hsm-td-review-dialog .hsm-td-grade-table td:first-child{width:42%}
.hsm-td-response-status{display:inline-flex;max-width:100%;margin:8px 0}
.hsm-td-person-entry{position:relative;min-width:0}.hsm-td-person-entry[hidden]{display:none}.hsm-td-person-entry.has-grade-edit>.hsm-td-person-accordion>summary{padding-inline-end:110px}.hsm-td-edit-result{position:absolute;inset-inline-end:10px;top:10px;min-height:44px;font-size:11px;padding:7px!important;max-width:94px}.hsm-td-correction{margin:8px 0;border:1px solid var(--td-border);border-radius:9px;padding:8px}.hsm-td-correction>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:12px}.hsm-td-correction label{display:grid;gap:5px;font-size:12px}.hsm-td-correction textarea{width:100%;box-sizing:border-box}.hsm-td-correction button{min-height:44px}.hsm-td-correction [data-td-reopen-message]{color:#a52c3b;font-size:12px}.hsm-td-correction p:empty{display:none}
.hsm-td-activity-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;position:relative;list-style:none;cursor:pointer;min-height:64px;padding:10px 26px 10px 10px}
.hsm-td-activity-accordion>summary::-webkit-details-marker{display:none}
.hsm-td-activity-accordion>summary:after{content:'+';position:absolute;right:7px;top:15px;color:var(--td-muted);font-size:20px}
.hsm-td-activity-accordion[open]>summary:after{content:'−'}
.hsm-td-activity-accordion>summary:focus-visible{outline:3px solid #9baef8;outline-offset:2px}
.hsm-td-activity-accordion>summary>small,.hsm-td-activity-accordion>summary>.hsm-td-activity-meta{grid-column:1/-1}
.hsm-td-activity-content{padding:10px 26px;border-top:1px solid var(--td-border);text-align:right}
@media(max-width:600px){.hsm-td-activity-accordion>summary{grid-template-columns:minmax(0,1fr);gap:5px}.hsm-td-activity-accordion>summary>.hsm-td-activity-state{justify-self:start}.hsm-td-activity-content{padding:10px}.hsm-td-activity-content>button{min-height:44px;width:100%;max-width:none!important}}
.hsm-td-state{display:inline-block;padding:4px 8px;border-radius:7px;background:#f0f2fc;color:#5652a2;font-size:11px}
.hsm-td-state.is-completed,.hsm-td-state.is-reviewed{background:#e7f6f0;color:#187351}
.hsm-td-state.is-unable{background:#fff3df;color:#965c12}
.hsm-td-state.is-review{background:#eee9ff;color:#6141ac}
.hsm-td-state.is-waiting_teacher{background:#eee9ff;color:#6141ac}
.hsm-td-state.is-waiting_student,.hsm-td-state.is-late{background:#fff3df;color:#965c12}
.hsm-td-classroom-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.hsm-td-classroom-picker label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}
.hsm-td-classroom-picker small{grid-column:1/-1;color:var(--td-muted);font-size:11px}
.is-classroom .hsm-td-grade-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.is-classroom .hsm-td-person-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.is-classroom .hsm-td-person-section{grid-column:1/-1}
.is-classroom .hsm-td-person-section.is-0>.hsm-td-person-link{display:none}
.is-classroom .hsm-td-person-section.is-0 .hsm-td-person-link{display:none}
.hsm-td-classroom-response{font-size:12px;border-top:1px solid var(--td-border);padding-top:4px}
.hsm-td-classroom-response>summary{min-height:44px;display:flex;align-items:center;color:#47658f}
.hsm-td-review-dialog .hsm-td-person-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.hsm-td-review-dialog .hsm-td-person-section.is-0{grid-column:1/-1}
.hsm-td-review-dialog .hsm-td-person-section.is-0 .hsm-learning-conversation{width:100%;max-width:none}
.hsm-td-review-dialog .hsm-td-sheet-actions{position:static!important;bottom:auto}
.hsm-td-table-wrap:has(.hsm-td-grade-list){overflow:visible;overscroll-behavior:auto}
.hsm-td-class-period{display:grid;gap:5px;font-size:12px;max-width:220px;margin-top:10px}
.hsm-td-class-sheet{display:grid;gap:8px}
.hsm-td-class-table-heading,.hsm-td-class-row{display:grid;grid-template-columns:minmax(140px,1.15fr) minmax(120px,.85fr) minmax(200px,1.5fr) minmax(120px,.85fr);gap:12px;align-items:start}
.hsm-td-class-table-heading{font-size:12px;color:var(--td-muted);padding:10px 12px;background:#f5f7fc;border-radius:9px 9px 0 0}
.hsm-td-class-row{padding:12px;background:#fff;border:1px solid var(--td-border);border-radius:10px;min-width:0}
.hsm-td-class-row>div{min-width:0}
.hsm-td-class-row.is-readonly{background:#fafbfe}
.hsm-td-class-row .hsm-td-response-status{margin:5px 0 0}
.hsm-td-class-presence>label{display:grid;gap:5px;font-size:11px}
.hsm-td-class-result .hsm-td-extras{margin-top:3px}
.hsm-td-class-result .hsm-td-scores{width:100%}
.hsm-td-class-actions{display:grid;gap:6px}
.hsm-td-class-actions button{width:100%}
.hsm-td-class-actions small,.hsm-td-class-result>small{font-size:11px;line-height:1.8;color:var(--td-muted)}
.hsm-td-attendance-note{font-size:11px;margin-top:3px}
.hsm-td-attendance-note>summary{min-height:36px;display:flex;align-items:center;color:#47658f}
.hsm-td-class-row>[data-td-class-detail],.hsm-td-class-row>[data-td-row-message]{grid-column:1/-1}
.hsm-td-class-row>[data-td-row-message]:empty{display:none}
.hsm-td-class-row [data-td-class-detail]>summary{display:none}
.hsm-td-class-row [data-td-class-detail][open]>summary{display:flex}
.is-classroom [data-td-classroom-form]>.hsm-td-sheet-actions{position:static!important;bottom:auto;margin:12px 0;background:#f6f8fc}
.hsm-td-quick-create{margin:12px 0;border:1px solid var(--td-border);border-radius:10px;padding:10px;background:#fff}
.hsm-td-quick-create>summary{min-height:44px;display:flex;align-items:center;font-size:13px}
.hsm-td-quick-create .hsm-td-create-footer{position:static;bottom:auto}
.hsm-td-quick-create .hsm-td-form{margin-top:10px}
.hsm-td-review-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.hsm-teacher-desk .hsm-td-review-stage{border-top:4px solid var(--td-stage-accent,#7889c5);background:color-mix(in srgb,var(--td-stage-accent,#7889c5) 8%,#fff);color:#233653;min-height:52px;text-align:right;line-height:1.7}
.hsm-td-review-stage.is-pending{--td-stage-accent:#ef9b2d}.hsm-td-review-stage.is-waiting_teacher{--td-stage-accent:#7b5ab8}.hsm-td-review-stage.is-waiting_student{--td-stage-accent:#378bd4}.hsm-td-review-stage.is-completed{--td-stage-accent:#259d6d}.hsm-td-review-stage.is-late{--td-stage-accent:#cd6744}.hsm-td-review-stage.is-unable{--td-stage-accent:#dc5480}
.hsm-teacher-desk .hsm-td-review-stage[aria-pressed=true]{box-shadow:0 0 0 2px var(--td-stage-accent,#7889c5);font-weight:700}
@media(max-width:700px){.hsm-td-review-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.hsm-td-class-table-heading{display:none}.hsm-td-class-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hsm-td-class-person{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:8px}.hsm-td-class-person .hsm-td-response-status{margin:0}.hsm-td-class-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.hsm-td-class-actions small{grid-column:1/-1}.hsm-td-class-period{max-width:none}.hsm-td-class-result .hsm-td-scores{grid-template-columns:repeat(2,minmax(0,1fr))}.hsm-td-class-result .hsm-td-scores label{font-size:10px}.hsm-td-class-result .hsm-td-scores input,.hsm-td-class-result .hsm-td-scores select{padding:6px;font-size:11px}.hsm-td-class-result .hsm-td-extras{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.hsm-td-class-presence{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.hsm-td-class-result{grid-column:1/-1}.hsm-td-attendance-note>summary{min-height:44px}.hsm-td-class-row .hsm-td-person-link strong{overflow-wrap:anywhere}.hsm-td-class-person .hsm-td-response-status{flex-shrink:0;max-width:42%}}
.is-classroom .hsm-td-person-accordion>summary{grid-template-columns:minmax(0,1fr);gap:4px}
.is-classroom .hsm-td-person-accordion>summary>.hsm-td-response-status{margin:0}
.is-classroom .hsm-td-person-accordion>summary>small{margin:0}
.is-classroom .hsm-td-sheet-actions{border-top:1px solid var(--td-border);padding:12px;background:#f9fbff;border-radius:10px}
.hsm-td-person-section .hsm-learning-conversation{max-width:100%;min-width:0}
@media(min-width:1300px){.is-classroom .hsm-td-grade-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.is-classroom .hsm-td-grade-list{grid-template-columns:minmax(0,1fr)}.hsm-td-classroom-picker{gap:9px}.is-classroom .hsm-td-sheet-actions{position:sticky;bottom:0;flex-wrap:wrap}.is-classroom .hsm-td-sheet-actions>button{width:100%}}
.hsm-td-response-inline{border:1px solid var(--td-border);border-radius:9px;padding:8px;margin-top:8px;background:#f9fbff;overflow-wrap:anywhere}
.hsm-td-response-inline summary{cursor:pointer;font-size:12px;min-height:28px;display:flex;align-items:center}
.hsm-td-grade-table [data-td-unable-reason]{padding:8px;border-radius:8px;background:#fff7e8;color:#855718}

/* 0.24: daily desk, contextual class work and compact inline records. */
.hsm-teacher-desk{--td-border:#dfe6ef;--td-muted:#64748b;--td-surface:#fff;--td-shell:#f5f7fb;line-height:1.7}
.hsm-teacher-desk>header{margin-bottom:12px}
.hsm-teacher-desk>header h2{font-size:22px;margin:0}
.hsm-td-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;background:#edf1f7;border-radius:12px;margin-bottom:18px;max-width:580px}
.hsm-teacher-desk .hsm-td-navigation button{border:0;background:transparent;color:#52647d;border-radius:9px;font-size:13px;min-height:44px;padding:8px}
.hsm-teacher-desk .hsm-td-navigation button[aria-current=page]{background:#fff;color:#243c76;box-shadow:0 2px 7px #203d7310;font-weight:700}
.hsm-td-dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0}
.hsm-td-dashboard-heading h3{margin:0 0 5px;font-size:21px}
.hsm-td-dashboard-heading p,.hsm-td-activity-toolbar p{margin:0;color:var(--td-muted);font-size:13px}
.hsm-td-dashboard-date{max-width:200px;font-size:12px;min-width:150px;background:#fff;border:1px solid var(--td-border);border-radius:10px;padding:0 12px}
.hsm-td-dashboard-date>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.hsm-td-dashboard-date label{display:grid;gap:6px;padding-bottom:10px}
.hsm-td-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.hsm-teacher-desk .hsm-td-stat{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:16px;text-align:right;align-items:center;background:#fff;border:1px solid var(--td-border);border-inline-start:4px solid var(--stat-accent,#7b8db4);border-radius:12px;box-shadow:0 2px 6px #25375e04}
.hsm-td-stat>span{font-size:13px;font-weight:600;line-height:1.8}
.hsm-td-stat>strong{font-size:29px;color:var(--stat-accent,#506994);line-height:1.4}
.hsm-td-stat>small{grid-column:1/-1;color:var(--td-muted);font-size:11px}
.hsm-td-stat.is-review{--stat-accent:#7955ac}.hsm-td-stat.is-overdue{--stat-accent:#c36b3c}.hsm-td-stat.is-waiting_student{--stat-accent:#2b86b5}.hsm-td-stat.is-requests{--stat-accent:#28836c}
.hsm-td-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:18px;align-items:start}
.hsm-td-dashboard-panel{border:1px solid var(--td-border);border-radius:14px;background:#fff;padding:18px;min-width:0}
.hsm-td-dashboard-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.hsm-td-dashboard-panel>header h3{font-size:15px;margin:0}.hsm-td-dashboard-panel>header>span{font-size:11px;color:var(--td-muted)}
.hsm-td-dashboard-classes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hsm-td-dashboard-class{border:1px solid var(--td-border);border-radius:12px;padding:16px;min-width:0}
.hsm-td-dashboard-class>header{display:flex;align-items:center;gap:11px}.hsm-td-dashboard-class h4{margin:0;font-size:16px}.hsm-td-dashboard-class p{margin:2px 0;font-size:12px;color:var(--td-muted)}
.hsm-td-class-symbol{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;color:#4a6294;background:#eef3fc;border-radius:12px;font-size:17px}
.hsm-td-class-card-facts{display:flex;flex-wrap:wrap;gap:4px 8px;min-height:28px;align-items:center;font-size:11px;color:var(--td-muted);margin:10px 0}
.hsm-td-class-card-facts .is-overdue{color:#af5d37}.hsm-td-class-entry{display:grid;gap:6px}.hsm-td-class-entry button{text-align:right;background:#f6f8fd;font-size:12px;border-color:#e1e8f6}
.hsm-td-dashboard-side{display:grid;gap:16px;min-width:0}.hsm-td-dashboard-review{display:grid;gap:0;margin:0 0 12px}
.hsm-teacher-desk .hsm-td-dashboard-review>button{display:grid;gap:4px;border:0;border-bottom:1px solid #edf0f5;border-radius:0;text-align:right;padding:12px 0;background:#fff}
.hsm-td-dashboard-review strong{font-size:13px;overflow-wrap:anywhere}.hsm-td-dashboard-review small{color:var(--td-muted);font-size:11px}.hsm-td-dashboard-review span{font-size:11px;color:#71529b}
.hsm-td-dashboard-panel>[data-td-action=dashboard-queue]{width:100%;background:#f6f7fb}
.hsm-td-other-classes{margin-top:12px;border-top:1px solid var(--td-border);padding-top:6px}.hsm-td-other-classes>summary{min-height:44px;display:flex;align-items:center;font-size:12px;color:#50688f}.hsm-td-other-classes>.hsm-td-dashboard-classes{margin-top:8px}
.hsm-td-personal-shortcut{display:flex;align-items:flex-start;gap:13px;padding:18px;border:1px solid var(--td-border);border-radius:14px;background:#f7f9fd}
.hsm-td-personal-shortcut>span{color:#7285a8;font-size:28px}.hsm-td-personal-shortcut h3{font-size:14px;margin:0}.hsm-td-personal-shortcut p{font-size:12px;margin:5px 0 10px;color:var(--td-muted)}
.hsm-td-context-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,190px);gap:16px;align-items:start;border:1px solid var(--td-border);border-radius:12px;padding:12px 16px;background:#fff;margin-bottom:12px}
.hsm-td-context-card:not(:has([data-td-period])){grid-template-columns:1fr}
.hsm-td-context-card .hsm-td-context-switch{border:0;padding:0;min-width:0;color:inherit}
.hsm-td-context-switch>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;list-style:none}
.hsm-td-context-switch>summary::-webkit-details-marker{display:none}.hsm-td-context-switch>summary strong{display:block;font-size:15px}.hsm-td-context-switch>summary small{display:block;font-size:11px;color:var(--td-muted)}
.hsm-td-context-change{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:11px;color:#496391;background:#f3f6fb;border-radius:8px}
.hsm-td-context-switch>.hsm-td-filters{margin-top:10px;padding-top:12px;border-top:1px solid var(--td-border)}
.hsm-td-context-card .hsm-td-class-period{margin:0;max-width:none;font-size:11px;gap:4px}.hsm-td-class-period select{font-size:12px}
.hsm-td-class-session-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:12px 0}
.hsm-td-class-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#f1f4f9;padding:4px;border-radius:10px;min-width:0;max-width:480px;flex:1}
.hsm-teacher-desk .hsm-td-class-modes button{background:transparent;border:0;font-size:12px;padding:7px;line-height:1.6}.hsm-teacher-desk .hsm-td-class-modes button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #22345a12;font-weight:600;color:#243f7c}
.hsm-td-class-session-toolbar>[data-td-action=create]{background:#eef3fc;border-color:#d7e2f5;color:#2c4c87}
.hsm-td-classroom-picker{grid-template-columns:minmax(0,1fr) auto;align-items:end;background:#f8fafd;border-radius:10px;padding:10px 12px;margin:0 0 10px}
.hsm-td-classroom-picker label{font-size:11px}.hsm-td-class-list-options{font-size:11px}.hsm-td-class-list-options>summary{display:flex;align-items:center;min-height:44px;color:#4c648c}.hsm-td-class-list-options label{margin-top:6px}
.hsm-td-class-list-options[open]{max-width:230px}.hsm-td-classroom[data-class-mode=attendance] .hsm-td-classroom-picker,.hsm-td-classroom[data-class-mode=attendance] .hsm-td-no-activity-help{display:none}
.hsm-td-no-activity-help{font-size:11px;color:var(--td-muted);margin:8px 0 12px}
.hsm-td-class-tools{display:flex;align-items:center;gap:10px;margin:12px 0;flex-wrap:wrap}.hsm-td-pupil-search{flex:1;min-width:110px;max-width:330px}.hsm-td-person-filter{position:relative;font-size:11px}.hsm-td-person-filter>summary{display:flex;align-items:center;min-height:44px;padding:0 10px;border:1px solid var(--td-border);border-radius:8px;cursor:pointer}.hsm-td-person-filter>label{display:grid;gap:5px;padding:8px;background:#fff;border:1px solid var(--td-border);border-radius:8px;margin-top:6px}.hsm-td-person-filter[open]{min-width:150px}
.hsm-td-class-tools [data-td-visible-count]{font-size:11px;color:var(--td-muted);margin-inline-start:auto}.hsm-td-class-tools [data-td-action=all-present]{font-size:11px;background:#edf8f2;color:#25754d;border-color:#cfe9da}
.hsm-td-activity-overview{border-bottom:1px solid var(--td-border);font-size:12px;margin:4px 0 12px}.hsm-td-activity-overview>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.hsm-td-activity-overview>summary>span{font-size:11px;color:var(--td-muted)}
.hsm-td-metric-choice{display:grid;gap:5px;max-width:220px;font-size:11px;margin-bottom:12px}
.hsm-td-class-table-heading,.hsm-td-class-row{grid-template-columns:minmax(150px,1.15fr) minmax(175px,.95fr) minmax(230px,1.5fr) minmax(150px,.9fr);gap:14px;align-items:center}
.hsm-td-class-sheet{gap:0;border:1px solid var(--td-border);border-radius:0 0 12px 12px;overflow:visible}
.hsm-td-class-row{padding:10px 14px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:#fff!important;scroll-margin-block:15px 110px}
.hsm-td-class-row:last-child{border-bottom:0;border-radius:0 0 12px 12px}.hsm-td-class-person .hsm-td-person-link strong{font-size:13px}.hsm-td-class-person .hsm-td-response-status{margin-top:2px}.hsm-td-class-person .hsm-td-state{font-size:10px;padding:2px 6px}
.hsm-td-class-presence{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
.hsm-td-class-presence>label{font-size:10px;gap:3px}.hsm-td-class-presence select{font-size:12px;padding:7px;min-height:44px}
.hsm-td-attendance-note{margin:0}.hsm-td-attendance-note>summary{font-size:10px;min-height:44px;min-width:44px;justify-content:center;padding:5px;color:#5c739b;background:#f4f7fc;border-radius:8px;list-style:none}
.hsm-td-attendance-note>summary::-webkit-details-marker{display:none}.hsm-td-attendance-note[open]{grid-column:1/-1}.hsm-td-attendance-note[open]>summary{justify-content:flex-start}.hsm-td-attendance-note input{margin-top:6px}
.hsm-td-class-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}.hsm-td-class-result:has(.hsm-td-scores>label:nth-child(2)){grid-template-columns:1fr}.hsm-td-class-result .hsm-td-scores{grid-template-columns:minmax(0,1fr)}.hsm-td-class-result .hsm-td-scores:has(>label:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}.hsm-td-class-result .hsm-td-scores label{font-size:10px;gap:3px}
.hsm-td-class-grade-more{font-size:10px;min-width:0}.hsm-td-class-grade-more>summary{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:6px;background:#f4f7fc;color:#5c739b;border-radius:8px;cursor:pointer;list-style:none}.hsm-td-class-grade-more>summary::-webkit-details-marker{display:none}
.hsm-td-class-grade-more[open]{grid-column:1/-1}.hsm-td-class-grade-more[open]>summary{justify-content:flex-start}.hsm-td-class-grade-more .hsm-td-extras{margin-top:8px}.hsm-td-class-grade-more .hsm-td-extras>label{grid-column:1/-1;display:grid;gap:5px;font-size:11px}
.hsm-td-class-actions{grid-column:4;grid-row:1;gap:6px;align-self:start}.hsm-td-class-actions:empty{display:none}.hsm-td-class-row:has(.hsm-td-class-actions>button) .hsm-td-class-actions{padding-bottom:48px}.hsm-td-class-actions>button{font-size:11px;min-height:44px}
.hsm-td-class-row>[data-td-class-detail]{grid-column:4;grid-row:1;align-self:end;border:0;padding:0}.hsm-td-class-row [data-td-class-detail]>summary{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;background:#f4f7fc;color:#4f6c97;font-size:11px;cursor:pointer;list-style:none}
.hsm-td-class-row [data-td-class-detail]>summary::-webkit-details-marker{display:none}.hsm-td-class-row>[data-td-class-detail][open]{grid-column:1/-1;grid-row:auto}.hsm-td-class-row [data-td-class-detail][open]>summary{justify-content:flex-start;padding:8px 12px;background:#eef3fb}
.hsm-td-class-response-body{padding:12px 0}.hsm-td-class-response-body .hsm-learning-conversation{width:100%;max-width:none}
[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-row,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-table-heading{grid-template-columns:minmax(0,1.3fr) minmax(170px,1fr)}
[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-result,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-actions,[data-td-classroom-form][data-class-mode=attendance] [data-td-class-detail],[data-td-classroom-form][data-class-mode=attendance] .hsm-td-heading-result,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-heading-actions,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-activity-overview,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-metric-choice,[data-td-classroom-form][data-class-mode=attendance] .hsm-td-person-filter{display:none}
[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-row,[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-table-heading{grid-template-columns:minmax(0,1.2fr) minmax(240px,1.4fr) minmax(150px,.9fr)}
[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-presence,[data-td-classroom-form][data-class-mode=grading] .hsm-td-heading-presence,[data-td-classroom-form][data-class-mode=grading] [data-td-action=all-present],[data-td-classroom-form][data-class-mode=grading] .hsm-td-attendance-status{display:none}
[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-actions,[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-row>[data-td-class-detail]:not([open]){grid-column:3}
[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-person .hsm-td-response-status{display:none}
.is-classroom [data-td-classroom-form]>.hsm-td-class-savebar{position:sticky!important;bottom:8px;margin:12px 0 0;border:1px solid #d9e3f1;border-radius:12px;background:#fff;padding:10px 12px;box-shadow:0 -3px 14px #283b6310;z-index:4;min-height:66px}
.hsm-td-class-savebar [data-td-dirty-count]{font-size:11px}.hsm-td-class-savebar>.hsm-td-primary{min-width:165px;white-space:nowrap}
.hsm-td-attendance-status{font-size:11px;color:var(--td-muted);margin:10px 0}.hsm-td-class-savebar+p:empty,[data-td-save-message]:empty{display:none}
.hsm-td-activity-toolbar,.hsm-td-registered-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.hsm-td-activity-toolbar h3{margin:0;font-size:18px}.hsm-td-creation-context{margin-bottom:12px;font-size:12px;color:var(--td-muted)}.hsm-td-creation-context>summary{min-height:44px;display:flex;align-items:center}.hsm-td-creation-context .hsm-td-context-card{margin-top:10px}.hsm-td-registered-tabs{display:flex;gap:5px}.hsm-td-registered-tabs [aria-pressed=true]{background:#edf2fb}
.hsm-td-quick-create{border-color:#d4e0f3;background:#fbfcff;padding:14px}.hsm-td-quick-create .hsm-td-create-footer{position:static}
@media(max-width:1000px){.hsm-td-dashboard-columns{grid-template-columns:1fr}.hsm-td-dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.hsm-td-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.hsm-td-class-table-heading{display:none}.hsm-td-class-row,[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.hsm-td-class-person{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px}.hsm-td-class-person .hsm-td-response-status{max-width:45%;margin:0}.hsm-td-class-person .hsm-td-person-link{flex:1;min-width:0}.hsm-td-class-presence,.hsm-td-class-result{grid-column:1/-1}.hsm-td-class-actions{grid-column:1;grid-row:auto;align-self:center}.hsm-td-class-row:has(.hsm-td-class-actions>button) .hsm-td-class-actions{padding-bottom:0}.hsm-td-class-row>[data-td-class-detail],.hsm-td-class-row>[data-td-class-detail][open],[data-td-classroom-form][data-class-mode=grading] .hsm-td-class-row>[data-td-class-detail]:not([open]){grid-column:2;grid-row:auto;align-self:center}.hsm-td-class-row>[data-td-class-detail][open]{grid-column:1/-1}.hsm-td-class-row:not(:has(.hsm-td-class-actions>button))>[data-td-class-detail]{grid-column:1/-1}.hsm-td-class-result:has(.hsm-td-scores>label:nth-child(2)){grid-template-columns:1fr}.hsm-td-class-grade-more:not([open]){justify-self:start}.hsm-td-class-grade-more[open]{width:100%}.hsm-td-class-result:not(:has(.hsm-td-scores>label:nth-child(2))) .hsm-td-class-grade-more:not([open]){justify-self:stretch}
[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-row{grid-template-columns:minmax(0,1fr) minmax(140px,1fr);gap:8px}.hsm-td-class-row .hsm-td-class-person{display:flex}.hsm-td-class-person .hsm-td-avatar{width:27px;height:27px;font-size:11px}[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-person{grid-column:1}[data-td-classroom-form][data-class-mode=attendance] .hsm-td-class-presence{grid-column:2}.hsm-td-class-row .hsm-td-person-link strong{font-size:13px}}
@media(max-width:600px){.hsm-teacher-desk>header h2{font-size:19px}.hsm-td-navigation{margin-bottom:12px;width:100%;gap:2px;padding:4px}.hsm-teacher-desk .hsm-td-navigation button{font-size:11px;padding:6px 4px;line-height:1.6}.hsm-td-dashboard-heading{margin:16px 0;display:grid;gap:8px}.hsm-td-dashboard-heading h3{font-size:18px}.hsm-td-dashboard-heading p{font-size:12px}.hsm-td-dashboard-date{min-width:0;max-width:none;padding:0 10px}.hsm-td-dashboard-stats{gap:8px;margin-bottom:16px}.hsm-teacher-desk .hsm-td-stat{grid-template-columns:1fr;padding:12px;gap:3px}.hsm-td-stat>span{font-size:11px}.hsm-td-stat>strong{font-size:27px}.hsm-td-stat>small{font-size:10px;line-height:1.7}.hsm-td-dashboard-panel{padding:12px;border-radius:12px}.hsm-td-dashboard-classes,.hsm-td-dashboard-side{grid-template-columns:1fr}.hsm-td-dashboard-columns{gap:12px}.hsm-td-dashboard-class{padding:13px}.hsm-td-context-card{grid-template-columns:minmax(0,1fr) 108px;gap:8px;padding:9px 10px}.hsm-td-context-switch>summary{gap:5px;min-height:56px}.hsm-td-context-switch>summary strong{font-size:12px}.hsm-td-context-switch>summary small{font-size:10px}.hsm-td-context-change{min-width:44px;padding:4px;font-size:10px}.hsm-td-context-switch[open]{grid-column:1/-1}.hsm-td-context-switch[open]+.hsm-td-class-period{grid-column:1/-1}.hsm-td-class-period select{padding:6px;font-size:11px}.hsm-td-class-session-toolbar{flex-wrap:wrap;gap:8px;margin:10px 0}.hsm-td-class-modes{flex:1 1 100%;max-width:none}.hsm-teacher-desk .hsm-td-class-modes button{font-size:11px}.hsm-td-class-session-toolbar>[data-td-action=create]{margin-inline-start:auto;font-size:11px;padding:7px 12px}.hsm-td-classroom-picker{padding:9px;gap:8px}.hsm-td-classroom-picker>label{min-width:0}.hsm-td-class-list-options>summary{font-size:10px}.hsm-td-class-tools{gap:6px;margin:10px 0}.hsm-td-pupil-search{max-width:none;flex:1 1 50%;min-width:100px}.hsm-td-class-tools [data-td-visible-count]{font-size:10px}.hsm-td-class-tools [data-td-action=all-present]{padding:7px;font-size:10px}.hsm-td-person-filter>summary{padding:6px;font-size:10px}.hsm-td-class-row{padding:10px}.hsm-td-class-row .hsm-td-person-link{gap:6px}.hsm-td-class-person .hsm-td-person-link strong{font-size:12px}.hsm-td-class-presence{gap:4px}.hsm-td-class-presence select{font-size:13px;padding:5px}.hsm-td-attendance-note>summary{font-size:11px;padding:4px}.hsm-td-class-result .hsm-td-scores input,.hsm-td-class-result .hsm-td-scores select{font-size:12px;padding:7px}.hsm-td-class-grade-more>summary{font-size:10px}.hsm-td-class-response-body{padding-top:8px}.is-classroom [data-td-classroom-form]>.hsm-td-class-savebar{flex-wrap:nowrap;gap:8px;padding:8px;bottom:6px;min-height:66px}.hsm-td-class-savebar>.hsm-td-primary{min-width:0;flex:0 0 50%;padding:8px;font-size:11px;width:auto}.hsm-td-class-savebar [data-td-dirty-count]{font-size:10px;line-height:1.6;flex:1;min-width:0}.hsm-td-activity-toolbar{align-items:start}.hsm-td-activity-toolbar h3{font-size:16px}.hsm-td-activity-toolbar p{font-size:11px}.hsm-td-activity-toolbar>button{font-size:11px;flex-shrink:0}.hsm-td-registered-tools{flex-wrap:wrap}.hsm-td-registered-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.hsm-td-registered-tabs button{font-size:10px;padding:7px}}
.hsm-td-grade-table [data-td-action=review-one]{margin-top:8px;background:#f0ecff;border-color:#d8ccfa;color:#5b3aa5}
.hsm-td-status-editor{display:grid;gap:8px;margin:10px 0;padding:12px;background:#f5f7fc;border:1px solid var(--td-border);border-radius:10px;min-width:0}.hsm-td-status-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.55fr);align-items:end;gap:8px}.hsm-td-status-editor label{display:grid;gap:4px;font-size:12px;min-width:0}.hsm-td-status-editor select,.hsm-td-status-editor textarea{box-sizing:border-box;width:100%;min-width:0}.hsm-td-status-editor small{font-size:11px;color:#64748b;line-height:1.9}.hsm-td-status-editor [hidden]{display:none!important}.hsm-td-status-editor [role=status]:empty,.hsm-td-close-activity [role=status]:empty{display:none}.hsm-td-close-activity{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.hsm-td-close-activity small{color:#64748b;font-size:12px}.hsm-td-close-activity [role=status]{flex-basis:100%}.hsm-td-dashboard-report{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;background:#fff;border:1px solid var(--td-border);border-radius:12px;margin-bottom:18px}.hsm-td-dashboard-report h3{margin:0 0 6px;font-size:16px}.hsm-td-dashboard-report p{margin:4px 0}.hsm-td-dashboard-report small{color:#64748b;font-size:11px}.hsm-td-dashboard-report form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:420px}.hsm-td-dashboard-report label{display:grid;gap:4px;font-size:12px;min-width:0}.hsm-td-dashboard-report input{box-sizing:border-box;width:100%;min-width:0}.hsm-td-dashboard-report button{grid-column:1/-1;justify-self:end}.hsm-td-review-stage.is-incomplete{--td-stage-accent:#d97706}.hsm-td-review-stage.is-rejected{--td-stage-accent:#dc2626}.hsm-td-state.is-incomplete{background:#fff7ed;color:#9a3412}.hsm-td-state.is-rejected{background:#fef2f2;color:#991b1b}
@media(max-width:600px){.hsm-td-status-editor{padding:9px}.hsm-td-status-actions{grid-template-columns:minmax(0,1fr) minmax(78px,.65fr)}.hsm-td-status-actions button{font-size:11px;padding:8px 6px}.hsm-td-dashboard-report{display:grid;padding:12px;gap:10px}.hsm-td-dashboard-report form{width:100%;max-width:none}.hsm-td-close-activity small{flex-basis:100%}}
.hsm-td-review-dialog .hsm-td-sheet-actions{background:#f9fbff;border-top:1px solid var(--td-border);padding:12px;border-radius:10px}
@media(max-width:600px){.hsm-td-review-dialog .hsm-td-grade-table td:first-child{width:auto}.hsm-td-grade-table td:first-child>.hsm-td-progress,.hsm-td-grade-table td:first-child>[data-td-unable-reason],.hsm-td-grade-table td:first-child>.hsm-td-response-inline{flex:1 1 100%;margin:0}.hsm-td-review-dialog .hsm-td-sheet-actions{position:sticky;bottom:-14px;z-index:2}}
