.teacher-main[hidden],[hidden]{display:none!important}
#main.teacher-main{max-width:1580px;width:100%;margin:0 auto;padding:34px 32px 0;min-width:0}
.teacher-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:0 0 24px}.teacher-heading .eyebrow{color:var(--teal);letter-spacing:2px}.teacher-heading h1{font:700 34px/1.4 var(--serif);margin:7px 0 8px;letter-spacing:2px}.teacher-heading p{margin:0;color:#647870;font-size:14px}.teacher-total{display:flex;flex-direction:column;text-align:right;color:#6a7e73;font-size:11px}.teacher-total strong{font:38px/1.4 var(--number);color:var(--teal)}.teacher-header-note{color:#718279;font-family:var(--serif);font-size:12px}
.teacher-topic{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 23px;background:#eaf2e9;border:1px solid #cddfce;border-radius:9px;margin-bottom:28px}.teacher-topic>div{display:flex;gap:20px;align-items:center}.topic-number{font:12px var(--number);white-space:nowrap;padding:12px 17px 12px 0;border-right:1px solid #c4d8c8;color:#547b61}.teacher-topic strong{font:600 17px/1.6 var(--serif)}.teacher-topic p{margin:3px 0 0;color:#5a7666;font-size:12px}.teacher-topic button{border:0;background:transparent;color:var(--teal);font-weight:600;white-space:nowrap;padding:10px}
.teacher-layout{display:grid;grid-template-columns:186px minmax(0,1fr) 280px;gap:26px;align-items:start}.teacher-chapters,.teacher-selection{position:sticky;top:98px}.teacher-chapters>label{display:block;font-size:11px;letter-spacing:1px;color:#6d8075;margin:0 0 12px}.teacher-chapters>select{width:100%;padding:10px 9px;background:#fffefa;border:1px solid #cedbd0;border-radius:6px;color:var(--ink)}#chapter-list{margin-top:14px;display:grid;gap:6px}#chapter-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:11px 10px;border:1px solid transparent;background:transparent;border-radius:6px;font-size:12px}#chapter-list button small{display:block;color:#829186;font-size:10px;margin-bottom:2px}#chapter-list button span:last-child{color:#7c8d82;font:11px var(--number)}#chapter-list button[aria-current=page]{background:#e4eee5;color:#176a58;border-color:#c9dbcd}#chapter-list button:hover{background:#edf2e9}.teacher-side-note{font-size:11px;color:#7a8a7e;padding:14px 10px;border-top:1px solid var(--line);margin-top:21px;line-height:1.9}
.results-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.results-heading h2{font:600 21px/1.5 var(--serif);margin:0}.results-heading p{font-size:11px;color:#718378;margin:5px 0 0}#result-count{font:12px var(--number);color:var(--teal);white-space:nowrap}.teacher-filters{border:1px solid var(--line);background:#fffefa;border-radius:8px;padding:16px;margin-bottom:17px}.teacher-search input{width:100%;border:1px solid #d7e1d7;background:#f8faf5;border-radius:5px;padding:11px 12px;font-size:13px;color:var(--ink)}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin-top:13px}.filter-grid label{font-size:10px;color:#7a897e;min-width:0}.filter-grid select{display:block;width:100%;margin-top:4px;padding:7px 5px;border:1px solid #dee5dc;border-radius:4px;background:#fff;color:#425d4c;font-size:11px}.teacher-text-button{border:0;background:transparent;color:var(--teal);padding:8px 0 0;font-size:11px}
.teacher-question-card{background:#fffefa;border:1px solid var(--line);border-radius:8px;padding:22px;margin-bottom:16px}.teacher-question-card.is-selected{border-color:#93bca6;box-shadow:inset 3px 0 #3c8e70}.question-card-meta{display:flex;flex-wrap:wrap;gap:6px;color:#6f8375;font-size:10px}.question-card-meta span{padding:2px 7px;background:#f0f4ed;border-radius:3px}.question-card-meta .has-model{color:#22745f;background:#e7f2eb}.teacher-question-card h3{font:600 18px/1.6 var(--serif);margin:12px 0 7px}.question-skill{font-size:11px;color:#6b8271;margin:0 0 10px}.question-excerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;line-height:1.9;font-size:13px;white-space:pre-line;margin:0}.question-figure-preview{margin-top:14px;background:#f8faf5;border-radius:5px;overflow:hidden}.question-figure-preview svg{width:100%;max-height:220px}.teacher-question-card footer{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px;padding-top:13px;border-top:1px solid #edf0e8}.teacher-question-card button,.teacher-empty button,.teacher-preview button,.classroom-toolbar button,.classroom-footer button{min-height:38px;padding:8px 12px;border:1px solid #d4dfd5;border-radius:5px;background:#fff;color:#38604a}.teacher-question-card button[data-toggle-question]{background:#e8f2e9;border-color:#bfd7c4;color:#21684d;white-space:nowrap}.teacher-question-card button[aria-pressed=true]{background:#f4f7f0;color:#627b66}.teacher-question-card button:hover,.teacher-preview button:hover,.classroom-toolbar button:hover{background:#eef4e9}.teacher-load-more{display:block;width:100%;padding:13px;border:1px solid #cfddcf;border-radius:6px;color:var(--teal);background:#f9fbf6}.teacher-empty{padding:45px 20px;text-align:center;border:1px dashed #cbd9ca;border-radius:8px;color:#6a7c6d}.teacher-empty strong{font-family:var(--serif);font-size:18px;color:#415d49}
.teacher-selection{border:1px solid #d6e2d4;border-radius:8px;background:#fffefa;overflow:hidden}.teacher-selection>header{padding:21px 20px 15px;border-bottom:1px solid #e4eade;background:#f2f6ec}.teacher-selection .eyebrow{font:9px var(--number);letter-spacing:2px;color:#6e8b72}.teacher-selection h2{font:600 21px var(--serif);margin:8px 0}.teacher-selection h2 span{display:inline-block;margin-left:7px;font:12px var(--number);padding:4px 7px;background:#dcebdd;color:#2e704b;border-radius:4px}.teacher-selection header p{font-size:11px;color:#788873;margin:0}#selected-list{padding:0 17px;margin:0;list-style:none;max-height:calc(100vh - 390px);overflow-y:auto;min-height:0}.selected-row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px;padding:14px 0;border-bottom:1px solid #edf0e6}.selected-number{font:11px/1.9 var(--number);color:#7e9581}.selected-row strong{display:block;font-size:12px;font-weight:500;line-height:1.7}.selected-row p{color:#7e8e7a;font-size:10px;margin:4px 0}.selected-row-controls{display:flex;gap:6px;margin-top:6px}.selected-row-controls button{border:1px solid #dfe6da;border-radius:4px;background:#f9faf6;color:#5b775e;min-width:31px;height:28px;font-size:12px}.selected-row-controls button:last-child{margin-left:auto;padding:0 9px;font-size:10px}.selected-row-controls button:disabled{opacity:.35}.selection-empty{padding:29px 20px;color:#83907e;font-size:12px;line-height:2;margin:0}.selection-footer{padding:17px 18px;background:#fbfcf7}.teacher-primary{background:#13766d!important;color:#fff!important;border:1px solid #13766d!important;border-radius:5px;padding:12px 16px;font-weight:500;min-height:43px}.teacher-primary:hover{background:#0d625a!important}.teacher-primary:disabled{opacity:.45}#start-class{width:100%;display:flex;justify-content:space-between}#save-status{font-size:10px;line-height:1.9;color:#7a8b77;margin:10px 0 0}#save-status[data-error=true]{color:#a35b21}
.teacher-preview{width:min(1060px,calc(100% - 32px));max-height:90vh;border:1px solid #d3e1d4;border-radius:10px;padding:0;background:#fffefa;color:var(--ink)}.teacher-preview::backdrop{background:#142e2866;backdrop-filter:blur(3px)}.teacher-preview>header{display:flex;justify-content:space-between;gap:15px;padding:22px 28px;border-bottom:1px solid var(--line);background:#f8faf3}.teacher-preview h2{font:600 24px/1.5 var(--serif);margin:7px 0}.teacher-preview header p{font-size:11px;color:#72826e;margin:0}.teacher-preview>header button{align-self:flex-start;font-size:24px;line-height:1}#preview-body{padding:26px 28px}.teacher-preview>footer{display:flex;gap:12px;padding:18px 28px;position:sticky;bottom:0;background:#fffefa;border-top:1px solid var(--line)}
body.teaching>.site-header{display:none}.teacher-classroom{min-height:100vh;background:#f4f6ef;padding:0 30px 15px}.classroom-toolbar,.classroom-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1180px;margin:0 auto;padding:18px 0}.classroom-toolbar span{font-size:13px;color:#6a7d68}.classroom-sheet{max-width:1180px;margin:0 auto;background:#fffefa;border:1px solid #dfe7d8;border-radius:9px;padding:30px 44px}.classroom-sheet>h1{font:600 27px var(--serif);margin:0 0 25px;color:var(--teal)}#classroom-body{font-size:21px;line-height:1.9}.classroom-footer{position:sticky;bottom:0;background:#f4f6eff5}.classroom-footer button{min-width:120px}.classroom-footer button:disabled{opacity:.35}#classroom-count{font:14px var(--number);color:#6a816b}#classroom-message{max-width:1180px;margin:0 auto;color:#9a5c22;font-size:12px}.teacher-classroom:fullscreen{overflow-y:auto;width:100%;height:100%}
@media(min-width:1600px){.teacher-layout{grid-template-columns:205px minmax(0,1fr) 305px;gap:30px}}
@media(max-width:1190px){.teacher-header-note{display:none}.teacher-layout{grid-template-columns:155px minmax(0,1fr) 248px;gap:18px}#main.teacher-main{padding:27px 22px 0}.teacher-question-card{padding:18px}.teacher-selection>header{padding:18px 16px}.filter-grid{gap:8px}}
@media(max-width:1000px){.teacher-layout{grid-template-columns:minmax(0,1fr) 260px}.teacher-chapters{grid-column:1/-1;position:static;display:grid;grid-template-columns:155px 1fr;gap:8px 18px;align-items:center}.teacher-chapters>label{grid-column:1;margin:0}.teacher-chapters>select{grid-column:1}.teacher-side-note{display:none}#chapter-list{grid-column:2;grid-row:1/3;display:flex;flex-wrap:wrap;gap:5px;margin:0}#chapter-list button{padding:7px 10px}#chapter-list button span:last-child{display:none}#chapter-list button small{display:none}.teacher-selection{top:134px}.teacher-heading h1{font-size:30px}}
@media(max-width:760px){#main.teacher-main{padding:22px 15px 0}.teacher-layout{display:flex;flex-direction:column;gap:20px}.teacher-chapters,.teacher-results,.teacher-selection{width:100%;position:static}.teacher-selection{order:1}.teacher-chapters{order:0;display:block}.teacher-results{order:2}.teacher-chapters>label{margin-bottom:8px}#chapter-list{margin-top:10px;flex-wrap:nowrap;overflow-x:auto}#chapter-list button{flex-shrink:0}.teacher-side-note{display:block;margin:9px 0 0;padding:0;border:0}.teacher-heading p{font-size:12px}.teacher-total strong{font-size:29px}.teacher-total span{font-size:9px}.teacher-topic{padding:15px;gap:9px;flex-wrap:wrap;margin-bottom:20px}.teacher-topic>div{gap:10px}.topic-number{font-size:10px;padding-right:10px}.teacher-topic strong{font-size:15px}.teacher-topic p{font-size:10px}.teacher-topic button{padding:5px 0;margin-left:auto;font-size:12px}.teacher-selection>header{padding:12px 16px}.teacher-selection .eyebrow,.teacher-selection header p{display:none}.teacher-selection h2{font-size:18px;margin:0}.selection-empty{padding:15px 17px;font-size:11px}.selection-empty br{display:none}.selection-footer{padding:12px 16px}#selected-list{max-height:220px}.selected-row{padding:10px 0}#save-status{margin-top:6px}.teacher-preview>header{padding:16px}.teacher-preview h2{font-size:20px}#preview-body{padding:20px 16px}.teacher-preview>footer{padding:14px 16px}.teacher-classroom{padding:0 12px 12px}.classroom-sheet{padding:22px 17px}.classroom-sheet>h1{font-size:22px}#classroom-body{font-size:18px}.classroom-toolbar button,.classroom-footer button{font-size:12px;padding:8px;min-width:0}.classroom-toolbar span{font-size:11px}.teacher-main .main-footer{flex-wrap:wrap}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.teacher-main button,.teacher-classroom button{transition:none}}
/* 投屏将题图与选项并排，让整道题更容易在同一屏内阅读。 */
@media(min-width:900px){
  #classroom-body .teacher-question-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:32px;align-items:center}
  #classroom-body .teacher-prompt{grid-column:1/-1}
  #classroom-body .teacher-question-body:not(:has(.practice-question-figure)) .teacher-answer-requests{grid-column:1/-1}
  #classroom-body .practice-question-figure{margin:12px 0;min-width:0}
  #classroom-body .practice-question-figure svg{max-height:330px}
  #classroom-body .teacher-options{display:block}
  #classroom-body .teacher-options li{margin:8px 0}
}
.teacher-results{scroll-margin-top:130px}#results-heading{scroll-margin-top:130px}

.teacher-total span{white-space:nowrap}

.selection-heading-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.selection-heading-row .teacher-text-button{padding:5px 0;font-size:12px;min-height:32px}.selection-heading-row #lesson-count{display:inline-block;margin-left:3px;font:11px var(--number)}
.lesson-name-field{padding:14px 18px 10px}.lesson-name-field label{display:block;font-size:11px;color:#657c6d;margin-bottom:6px}.lesson-name-field input,.lesson-library-tools input{width:100%;padding:10px;border:1px solid #cfddd2;border-radius:5px;background:#fffefa;color:var(--ink);font:12px/1.5 var(--sans)}#draft-state{display:block;font-size:10px;color:#728573;line-height:1.7;margin-top:6px}.teacher-selection #selected-list{max-height:max(90px,calc(100vh - 550px))}
.lesson-save-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.lesson-save-actions button,.lesson-library-tools button{min-height:38px;padding:8px 10px;border:1px solid #cbdcd0;border-radius:5px;background:#f6faf3;color:#31634f;font-size:12px}.lesson-save-actions button{flex:1;white-space:nowrap}.lesson-save-actions button:disabled,.lesson-library button:disabled{opacity:.4;cursor:not-allowed}.lesson-save-actions button:hover{background:#eaf3e6}.teacher-selection button:focus-visible,.lesson-library button:focus-visible,.lesson-library summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.lesson-library{width:min(820px,calc(100% - 24px))}.lesson-library[open]{display:flex;flex-direction:column;overflow:hidden}.lesson-library>header,.lesson-library>footer{flex-shrink:0}.lesson-library-body{padding:22px 26px;min-height:0;overflow-y:auto}.lesson-library-tools{display:flex;gap:12px}.lesson-library-tools label{flex:1;min-width:0}.lesson-library-tools button{white-space:nowrap}#library-message{font-size:12px;line-height:1.8;color:#637d69;margin:12px 0 18px}#library-message[data-error=true],.lesson-warning{color:#a15722!important}
.saved-lesson{padding:20px;border:1px solid #dce5d9;border-radius:7px;background:#fafcf6;margin:0 0 13px}.saved-lesson:last-child{margin-bottom:0}.saved-lesson-heading{display:flex;align-items:flex-start;gap:15px;justify-content:space-between}.saved-lesson h3{font:600 18px/1.6 var(--serif);margin:0;overflow-wrap:anywhere}.saved-lesson-heading>span{white-space:nowrap;font-size:12px;color:var(--teal);padding-top:5px}.saved-lesson-sources,.saved-lesson-dates{font-size:11px;line-height:1.8;color:#718273;margin:6px 0;overflow-wrap:anywhere}.saved-lesson details{font-size:12px;color:#52765f;margin-top:12px}.saved-lesson summary{cursor:pointer;padding:4px 0}.saved-lesson ol{padding-left:23px;line-height:1.9;overflow-wrap:anywhere}.saved-lesson .lesson-warning{font-size:12px;line-height:1.8}.saved-lesson-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.saved-lesson-actions button{min-height:40px;font-size:12px}.saved-lesson-actions button[data-lesson-action=start]{background:#e5f1e7;border-color:#bfd6c5;color:#1f6954}.saved-lesson-actions button[data-lesson-action=delete]{margin-left:auto;color:#96705b}
.lesson-library>footer{display:block;padding:16px 26px}.lesson-backup-actions{display:flex;flex-wrap:wrap;gap:9px}.lesson-library>footer p{font-size:11px;line-height:1.8;color:#758473;margin:9px 0 0}.lesson-library>footer button{font-size:12px;min-height:40px}
@media(max-width:760px){.teacher-selection .selection-heading-row .eyebrow{display:block}.selection-heading-row{margin-bottom:5px}.lesson-name-field{padding:12px 16px 6px}.teacher-selection #selected-list{max-height:220px}.lesson-library-body{padding:16px}.lesson-library>footer{padding:12px 16px}.saved-lesson{padding:15px}.saved-lesson-heading{gap:10px}.saved-lesson h3{font-size:16px}.saved-lesson-actions button{min-height:44px}.lesson-library-tools{gap:8px}.lesson-library-tools input{font-size:13px}.saved-lesson-dates{font-size:10px}.lesson-backup-actions{gap:6px}}

.teacher-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:28px}.teacher-topics .teacher-topic{margin-bottom:0;flex-wrap:wrap;gap:8px 16px}.teacher-topics .teacher-topic button{margin-left:auto}.teacher-topics .teacher-topic>div{gap:13px}.teacher-topics .teacher-topic strong{font-size:16px}.teacher-topics .topic-number{padding-right:13px;font-size:11px}@media(max-width:760px){.teacher-topics{grid-template-columns:1fr;gap:10px;margin-bottom:20px}}
