.teacher{--teacher-ink:#18324a;--teacher-muted:#65798b;--teacher-blue:#197bb4;--teacher-blue-soft:#edf7fc;--teacher-line:#dce8ef;--teacher-warm:#fff8ea;--teacher-orange:#e79427;color:var(--teacher-ink);padding-bottom:2rem}
.teacher .teacher-edit-record{border-top:1px solid var(--teacher-line);padding:12px 0;overflow-wrap:anywhere}
.teacher .teacher-edit-record summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--teacher-ink);font-weight:650}
.teacher .teacher-edit-record form{max-width:650px;padding:14px 0}
.teacher .teacher-management{margin-top:24px}
.teacher .teacher-guardian-panel{max-width:900px}
.teacher .teacher-guardian-form{max-width:560px}
.teacher .teacher-guardian-match{background:#edf7fc;border:1px solid #b8d9eb;border-radius:12px;overflow-wrap:anywhere;padding:1rem}
.teacher .teacher-guardian-match[hidden]{display:none}
.teacher .teacher-guardian-match p{margin:.4rem 0}
.teacher .teacher-guardian-confirm{align-items:flex-start;display:flex;gap:.65rem;line-height:1.45;margin:.8rem 0;min-height:44px}
.teacher .teacher-guardian-confirm input{flex:none;height:20px;margin:.18rem 0 0;width:20px}
.teacher .teacher-guardian-form .error:empty{display:none}
.teacher .teacher-recipient-list{border:1px solid var(--teacher-line);border-radius:12px;min-width:0;padding:16px;max-height:350px;overflow:auto}
.teacher .teacher-recipient-list label{min-height:44px;padding:8px 0}
.teacher .teacher-recipient-list small{display:block;overflow-wrap:anywhere}
.teacher h1,.teacher h2,.teacher h3,.teacher h4{color:var(--teacher-ink);line-height:1.22;margin:.12em 0 .45em}
.teacher h1{font-size:clamp(1.8rem,4vw,2.45rem)}.teacher h2{font-size:clamp(1.35rem,3vw,1.8rem)}.teacher h3{font-size:1.08rem}.teacher h4{font-size:.98rem}
.teacher p{line-height:1.55}.teacher .muted, .teacher small.muted{color:var(--teacher-muted)}
.teacher .eyebrow{color:var(--teacher-blue);font-size:.76rem;font-weight:800;letter-spacing:.12em;margin:0 0 .45rem}
.teacher .page-head{align-items:center;background:linear-gradient(110deg,#f2f9fc 0%,#fff9ed 100%);border:1px solid var(--teacher-line);border-radius:22px;margin:0 0 1rem;padding:1.15rem 1.35rem}
.teacher .page-head p:last-child{margin-bottom:.15rem}
.teacher-nav{display:flex;gap:.4rem;overflow-x:auto;padding:.35rem .1rem .75rem;scrollbar-width:thin}
.teacher-nav button,.teacher-subtabs button{flex:0 0 auto;min-height:44px}
.teacher-nav button.active{background:#eaf5fb;border-color:#b8d9eb;color:#145d89;font-weight:750}
.teacher-content{display:flex;flex-direction:column;gap:1rem}
.teacher-section-head{align-items:flex-end;display:flex;justify-content:space-between;margin:.25rem 0 .4rem}
.teacher-section-head p:last-child{margin-bottom:0}
.teacher-summary{display:grid;gap:.7rem;grid-template-columns:repeat(3,minmax(0,1fr));margin:.1rem 0}
.teacher-summary>div{background:var(--teacher-warm);border:1px solid #f4e7cd;border-radius:16px;padding:.8rem 1rem}
.teacher-summary strong{color:#a75c09;display:block;font-size:1.35rem;line-height:1.2}.teacher-summary span{color:#725e44;display:block;font-size:.86rem;margin-top:.3rem}
.teacher-two-col{align-items:start;display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-record-list{display:grid;gap:.8rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-record,.teacher-form-card,.teacher-panel,.teacher-class-card,.teacher-resource-card{border:1px solid var(--teacher-line);border-radius:18px;box-shadow:0 4px 18px #18324a0a;padding:1rem}
.teacher-form-card{background:#fff}.teacher-record:nth-child(3n+2){background:#fbfdfe}
.teacher-card-top{align-items:flex-start;display:flex;gap:.65rem;justify-content:space-between}
.teacher-card-top h3{margin:0 0 .45rem}.teacher-card-top .badge{white-space:nowrap}
.teacher-facts{display:grid;gap:.5rem 1rem;grid-template-columns:repeat(2,minmax(0,1fr));margin:.75rem 0}
.teacher-facts div{min-width:0}.teacher-facts dt{color:var(--teacher-muted);font-size:.78rem}.teacher-facts dd{margin:.18rem 0 0;overflow-wrap:anywhere}
.teacher .field{display:flex;flex-direction:column;gap:.35rem;min-width:0}.teacher .field>span{font-size:.9rem;font-weight:650}
.teacher .field input,.teacher .field select,.teacher .field textarea{background:#fff;border:1px solid #bdccd7;border-radius:10px;color:var(--teacher-ink);font:inherit;min-height:46px;padding:.62rem .72rem;width:100%}
.teacher .field textarea{min-height:unset;resize:vertical}.teacher .field input[type=file]{padding:.48rem}
.teacher .field select[multiple]{min-height:100px}.teacher .field :focus-visible,.teacher button:focus-visible,.teacher audio:focus-visible{outline:3px solid #8eccef;outline-offset:2px}
.teacher .form-grid{align-items:start;display:grid;gap:.8rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher .stack{display:flex;flex-direction:column;gap:.75rem}.teacher .row{align-items:center;display:flex;flex-wrap:wrap;gap:.55rem}
.teacher .button{border:1px solid #bfd0db;border-radius:11px;cursor:pointer;font:inherit;font-weight:650;min-height:44px;padding:.55rem .85rem;transition:background .15s,border-color .15s,transform .15s}
.teacher .button:hover:not(:disabled){transform:translateY(-1px)}.teacher .button.primary{background:var(--teacher-blue);border-color:var(--teacher-blue);color:#fff}.teacher .button.primary:hover:not(:disabled){background:#126896}
.teacher .button.secondary{background:#fff;color:#175e87}.teacher .button.quiet{background:transparent;border-color:transparent;color:#5d7181}.teacher .button:disabled{cursor:not-allowed;opacity:.55}
.teacher .teacher-actions{margin-top:.2rem}.teacher .badge{background:#edf6fa;border:1px solid #d2e6f0;border-radius:999px;color:#286481;display:inline-block;font-size:.78rem;font-weight:700;padding:.25rem .55rem}
.teacher .empty{background:#f8fbfc;border:1px dashed #bdced8;border-radius:15px;color:var(--teacher-muted);padding:1.1rem}.teacher .empty strong{color:var(--teacher-ink)}.teacher .empty p{margin:.35rem 0 0}
.teacher .teacher-class-card{background:#fff}.teacher .roster-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin:.8rem 0}.teacher .roster-chip{background:#f3f8fb;border:1px solid #d9e7ef;border-radius:10px;padding:.45rem .6rem}.teacher .roster-chip small{color:var(--teacher-muted);display:block;font-size:.75rem}
.teacher-inline{margin-top:.5rem}.teacher-mini-list{display:flex;flex-direction:column;gap:.35rem}.teacher-mini-row{align-items:center;border-top:1px solid var(--teacher-line);display:flex;gap:.5rem;justify-content:space-between;padding:.6rem 0}.teacher-mini-row small{color:var(--teacher-muted);display:block;margin-top:.18rem}
.teacher hr{border:0;border-top:1px solid var(--teacher-line);margin:1rem 0}
.teacher-subtabs{margin:-.2rem 0 .3rem}.teacher-editor-heading{align-items:center;display:flex;gap:.8rem;justify-content:space-between}.teacher-editor-heading h3,.teacher-editor-heading p{margin-bottom:.2rem}
.teacher-question-list{display:flex;flex-direction:column;gap:.75rem}.teacher-question{border:1px solid var(--teacher-line);border-radius:14px;display:grid;gap:.7rem;grid-template-columns:repeat(2,minmax(0,1fr));padding:.8rem}
.teacher-question legend{color:#1b648e;font-weight:750;padding:0 .35rem}.teacher-question>.field:nth-of-type(2),.teacher-question .choice-fields,.teacher-question .match-fields{grid-column:1/-1}.teacher-question .match-fields{display:none}.teacher-question.is-match .match-fields{display:block}.teacher-question.is-match .choice-fields{display:none}
.teacher-question .match-row{display:grid;gap:.7rem;grid-template-columns:repeat(2,minmax(0,1fr));margin:.45rem 0}.teacher .text-button{background:none;border:0;color:#a34b39;cursor:pointer;font:inherit;text-decoration:underline}
.teacher .teacher-thumb{border:1px solid var(--teacher-line);border-radius:10px;display:block;max-height:130px;max-width:100%;object-fit:contain}
.teacher .teacher-practice{background:#fff8ea;border-radius:12px;padding:.75rem}.teacher .teacher-practice p{margin:.35rem 0 0}
.teacher .teacher-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:.8rem 0}.teacher audio{max-width:100%;width:min(100%,360px)}
.teacher .teacher-report-preview{border-color:#b8d9eb;background:#fafdff;max-width:900px}
.teacher .teacher-report-preview .teacher-editor-heading{align-items:flex-start}
.teacher .teacher-report-preview .eyebrow{margin-bottom:.25rem}
.teacher .teacher-report-preview .teacher-report-table{min-width:0;table-layout:fixed;overflow-wrap:anywhere}
.teacher .teacher-report-table th,.teacher .teacher-report-table td{padding:.65rem .45rem}
.teacher .teacher-report-table th:first-child{width:42%}
.teacher .teacher-report-preview .teacher-report-note{white-space:pre-wrap;overflow-wrap:anywhere}
.teacher .teacher-report-preview .error:empty,.teacher [data-form=report-create] .error:empty{display:none}
.teacher .table-wrap{overflow-x:auto}.teacher table{border-collapse:collapse;min-width:530px;width:100%}.teacher th,.teacher td{border-bottom:1px solid var(--teacher-line);padding:.7rem;text-align:left}.teacher th{color:#50687a;font-size:.8rem}
.teacher .teacher-resource-card{background:#fff}.teacher code{background:#f3f7f9;border-radius:5px;padding:.1rem .28rem}
@media(max-width:760px){.teacher .teacher-record-list,.teacher .teacher-two-col{grid-template-columns:minmax(0,1fr)}.teacher .teacher-summary{grid-template-columns:1fr}.teacher .teacher-summary>div{align-items:center;display:flex;gap:.75rem}.teacher .teacher-summary strong{font-size:1.15rem}.teacher .teacher-summary span{margin:0}.teacher .teacher-facts{grid-template-columns:1fr}.teacher .page-head{border-radius:16px;padding:1rem}.teacher .teacher-question{grid-template-columns:1fr}.teacher .teacher-question .field,.teacher .teacher-question .choice-fields,.teacher .teacher-question .match-fields{grid-column:1}.teacher .teacher-question .match-row{grid-template-columns:1fr}}
@media(max-width:430px){.teacher .form-grid{grid-template-columns:1fr}.teacher .teacher-editor-heading{align-items:flex-start;flex-direction:column}.teacher .teacher-actions>.button{flex:1 1 100%}.teacher .teacher-card-top{flex-wrap:wrap}}

.teacher-status-history{margin:12px 0;overflow-wrap:anywhere}.teacher-status-history summary{cursor:pointer;min-height:44px;padding:10px 0}.teacher-status-history ol{padding-left:22px}.teacher-status-history li{margin-bottom:14px}.teacher-status-history p{margin:4px 0;white-space:pre-wrap}.teacher-closed-records textarea{min-height:90px}

.teacher [data-exercise-fields][hidden],.teacher [data-exercise-assignment][hidden],.teacher [data-document-note][hidden]{display:none}

.teacher-correction{margin-bottom:24px}.teacher-correction fieldset{min-width:0;border:1px solid #dce8ef;border-radius:12px;padding:16px}.teacher-correction legend{font-weight:650}.teacher-correction details summary{min-height:44px;padding:10px 0;cursor:pointer}.teacher-correction td{overflow-wrap:anywhere}.teacher-correction .teacher-thumb{display:block}

.teacher .teacher-correction table{min-width:0;table-layout:fixed}.teacher .teacher-correction th:first-child{width:48%}.teacher .teacher-correction th,.teacher .teacher-correction td{padding:10px 6px}
.teacher [data-published-report-items] table{min-width:0;table-layout:fixed}.teacher [data-published-report-items] th:first-child{width:40%}.teacher [data-published-report-items] th,.teacher [data-published-report-items] td{padding:10px 6px;overflow-wrap:anywhere}
.teacher-submissions{max-width:900px;margin:auto}.teacher-submissions .page-head{margin-bottom:0}.teacher-submissions h2,.teacher-submissions h3,.teacher-submissions h4{overflow-wrap:anywhere}.submission-attempts{display:flex;gap:8px;flex-wrap:wrap}.submission-attempts button{display:block;text-align:left}.submission-attempts small{display:block;font-size:.72rem;margin-top:5px}.submission-question{border-top:1px solid var(--teacher-line);padding-top:16px;overflow-wrap:anywhere}.submission-question h4{margin:0;flex:1}.submission-question .row{margin-bottom:12px}.submission-question>div{margin-bottom:10px}.submission-pairs{padding-left:22px}.submission-pairs li{margin-bottom:10px}.submission-pairs img{vertical-align:middle}.teacher-submissions select{max-width:100%}
