.classroom-bar,.teacher-page{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#293b2b}
.classroom-bar{box-sizing:border-box;max-width:1060px;margin:0 auto 16px;padding:12px 18px;border-top:1px solid #d9ccb6;border-bottom:1px solid #d9ccb6;background:#fffaf1;display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;line-height:1.7}
.classroom-bar>a{margin-left:auto;color:#626e4f;text-decoration:underline;text-underline-offset:3px}.classroom-bar details{max-width:100%}.classroom-bar summary{cursor:pointer;color:#435338;min-height:32px;display:flex;align-items:center}.classroom-bar details[open]{flex-basis:100%;order:3}.classroom-bar form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.classroom-bar input{max-width:100px}.classroom-bar details p{font-size:12px;color:#606958;margin:6px 0}.classroom-bar .save-error{color:#934426}
.classroom-bar input,.teacher-page input,.teacher-page select{box-sizing:border-box;background:#fffdf8;border:1px solid #a2ab96;border-radius:5px;padding:11px 12px;color:#293b2b;font:inherit;min-height:44px;max-width:100%}.classroom-bar button,.teacher-page button,.teacher-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #626e4f;border-radius:5px;background:#626e4f;color:#fffaf1;padding:10px 15px;font:inherit;cursor:pointer;text-decoration:none;gap:6px}.classroom-bar button:hover,.teacher-page button:hover,.teacher-button:hover{background:#4a583b}.classroom-bar button:disabled,.teacher-page button:disabled{opacity:.55;cursor:wait}.teacher-page .teacher-secondary{background:transparent;color:#435338}.teacher-page .teacher-secondary:hover{background:#e8ebdf}.teacher-page :focus-visible,.classroom-bar :focus-visible{outline:2px solid #a74723;outline-offset:3px}
.teacher-body{margin:0;min-height:100svh;background:#f6efe1 url('/flood/assets/fieldbook-paper.png') repeat;color:#293b2b}.teacher-page{box-sizing:border-box;max-width:1180px;margin:0 auto;padding:24px 24px 60px;font-size:14px;line-height:1.8}.teacher-intro{margin:0 0 30px}.teacher-eyebrow{color:#a74723;font-size:13px;margin-bottom:4px}.teacher-intro h1{font-family:FieldbookSong,"Songti SC",serif;font-size:32px;color:#a74723;margin:0 0 9px;line-height:1.5}.teacher-intro>p:last-child{color:#606958;margin-top:0}.teacher-paper{border:1px solid #d9ccb6;border-radius:10px;background:#fffaf1;padding:24px;margin-bottom:22px}.teacher-paper h2{font-size:19px;line-height:1.5;margin:0 0 14px;color:#34492d}.teacher-paper h3{font-size:16px;margin:20px 0 10px}.teacher-paper p{margin:7px 0;color:#606958}.teacher-page [hidden],.classroom-bar [hidden]{display:none!important}.teacher-page form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.teacher-page label{display:block;font-size:13px;font-weight:600}.teacher-page form label{flex-basis:100%}.teacher-page input{min-width:200px}.teacher-page #teacher-login{max-width:520px}.teacher-page #teacher-password{flex:1}.teacher-message{padding:12px 16px;border:1px solid #d9ccb6;background:#fffaf1;color:#934426!important;white-space:pre-wrap}.teacher-toolbar{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap}.teacher-toolbar select{min-width:230px}.teacher-toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}.teacher-toolbar details{flex-basis:100%;border-top:1px dashed #d9ccb6;padding-top:12px}.teacher-toolbar summary{cursor:pointer;min-height:36px;color:#435338}.teacher-toolbar details p{font-size:12px}.teacher-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #d9ccb6;border-radius:8px;background:#e8ebdf;margin:0 0 22px;padding:18px 24px;gap:18px}.teacher-metrics dt{font-size:12px;color:#435338}.teacher-metrics dd{margin:3px 0 0;font-size:27px;font-variant-numeric:tabular-nums}.teacher-scroll{overflow-x:auto}.teacher-page table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.teacher-page th{font-weight:600;color:#435338;background:#eef0e7}.teacher-page th,.teacher-page td{padding:12px;border-bottom:1px solid #ddd4c4;vertical-align:top}.teacher-page td{overflow-wrap:anywhere}.teacher-page .group-table{min-width:690px}.teacher-page .question-table{min-width:580px}.teacher-page .teacher-link{border:0;min-height:36px;background:none;color:#a74723;padding:0;text-decoration:underline;text-underline-offset:3px}.teacher-page .teacher-link:hover{background:none;color:#733618}.teacher-note{font-size:12px;color:#606958}.teacher-empty{padding:22px 0}.teacher-log{border-top:1px solid #d9ccb6;margin:16px 0;padding:14px 0 4px}.teacher-log>h3{margin-top:0}.teacher-log time,.teacher-log .log-meta{color:#606958;font-size:12px}.teacher-log p{white-space:pre-wrap;overflow-wrap:anywhere;color:#293b2b}.teacher-log .log-label{font-weight:600;color:#435338}.teacher-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.teacher-detail-head h2{margin:0}.teacher-page .teacher-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.teacher-tabs button{background:transparent;color:#435338}.teacher-tabs button[aria-pressed=true]{background:#626e4f;color:#fffaf1}.teacher-page .answer-wrong{color:#934426}.teacher-page .answer-correct{color:#435338}
@media(max-width:700px){.teacher-page{padding:18px 16px 40px}.teacher-intro h1{font-size:27px}.teacher-paper{padding:18px 14px}.teacher-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px}.teacher-metrics dd{font-size:25px}.teacher-toolbar select{width:100%;min-width:0}.teacher-toolbar>div{width:100%}.teacher-toolbar-actions>*{flex:1}.teacher-page form input{width:100%;min-width:0}.classroom-bar{margin:0 18px 12px;padding:10px 12px;gap:10px}.classroom-bar #classroom-state{flex-basis:100%}.teacher-page form button{width:100%}.classroom-bar form button{flex:1}.teacher-page th,.teacher-page td{padding:10px}}

.quiz-teacher-choice{display:inline-block;margin:4px 8px 4px 0;white-space:nowrap;font-variant-numeric:tabular-nums}.teacher-paper h3{font-size:18px;line-height:1.8;margin-top:26px}.teacher-scroll table{font-variant-numeric:tabular-nums}
.teacher-page .quiz-teacher-table{min-width:760px}.teacher-page .quiz-teacher-table th,.teacher-page .quiz-teacher-table td{min-width:72px}.teacher-page .quiz-teacher-table td:first-child{min-width:160px}.teacher-page .quiz-teacher-table td:last-child{min-width:145px}
.teacher-page .teacher-danger{background:transparent;border-color:#a74723;color:#823719}.teacher-page .teacher-danger:hover:not(:disabled){background:#f6e5d8}.teacher-clear-area summary{color:#823719}.teacher-clear-area button{margin-top:8px}
.teacher-group-pager{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap}.teacher-group-pager label{font-size:14px;min-width:230px;max-width:100%}.teacher-group-pager select{display:block;width:100%;margin-top:8px}.teacher-group-pager>div{display:flex;align-items:center;gap:14px}.teacher-group-pager>div>span{font-size:13px;white-space:nowrap;color:#606958;font-variant-numeric:tabular-nums}.teacher-group-pager button:disabled{cursor:default}.teacher-group-page h2,.teacher-group-page h3,.teacher-group-page h4{font-family:var(--book-sans);font-weight:600}.teacher-group-heading{padding-bottom:20px}.teacher-group-heading h2{margin:0 0 6px}.teacher-group-module{padding:24px 0;border-top:1px solid #d9ccb6}.teacher-group-module:last-child{padding-bottom:0}.teacher-group-module>h3{font-size:20px;margin:0 0 10px}.teacher-group-work{margin-top:24px}.teacher-group-work h4{font-size:17px;margin:0}.teacher-group-image{margin-top:10px;border-bottom:1px solid #e1d7c7}.teacher-group-image summary{min-height:44px;cursor:pointer;line-height:1.8;padding:10px 0;font-size:14px}.teacher-group-image summary span{display:inline-block;margin-left:10px;color:#606958;font-size:12px}.teacher-group-svg{border:1px solid #d9ccb6;background:#fff;margin:8px 0 16px;overflow:auto}.teacher-group-svg svg{display:block;width:100%;height:auto;fill:initial;stroke:none}.teacher-group-score{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:16px;margin:18px 0!important;color:#293b2b!important}.teacher-group-score strong{font-size:22px;font-variant-numeric:tabular-nums}.teacher-group-score span{font-size:12px;color:#606958;margin-left:auto}.teacher-page .teacher-group-quiz{min-width:0;table-layout:fixed;margin:20px 0}.teacher-group-quiz th,.teacher-group-quiz td{text-align:center;word-break:normal;font-variant-numeric:tabular-nums}.teacher-group-review,.teacher-group-discussion{margin-top:24px;padding-top:12px;border-top:1px solid #d9ccb6}.teacher-group-review summary,.teacher-group-discussion summary{cursor:pointer;min-height:44px;line-height:1.8;display:list-item}.teacher-group-review ol{padding-left:24px}.teacher-group-review li{padding:14px 0;border-top:1px solid #e1d7c7}.teacher-group-review h4{font-size:15px;line-height:1.8;margin:0 0 10px}.teacher-group-review p{font-size:14px;overflow-wrap:anywhere}.teacher-group-page .teacher-log p{line-height:1.9}@media(max-width:700px){.teacher-group-pager{gap:16px}.teacher-group-pager label{width:100%;min-width:0}.teacher-group-pager>div{width:100%;justify-content:space-between;gap:8px}.teacher-group-pager button{padding:10px 12px}.teacher-group-module>h3{font-size:18px}.teacher-group-score span{flex-basis:100%;margin-left:0}.teacher-page .teacher-group-quiz th,.teacher-page .teacher-group-quiz td{font-size:12px;padding:10px 4px}.teacher-group-image summary span{margin-left:0;display:block}.teacher-group-page .teacher-empty{font-size:14px}}

/* History management: an aligned checklist with one batch action. */
.teacher-history>summary{font-weight:600}.teacher-history>summary span{font-weight:400;color:#606958}.teacher-history-heading h2{margin:12px 0 0;font-size:19px}.teacher-history-heading p{margin:2px 0 16px!important}.teacher-history-current{padding:10px 0;color:#435338!important;border-bottom:1px solid #d9ccb6}.teacher-history-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.teacher-history-tools>span{font-size:12px;color:#606958;font-variant-numeric:tabular-nums}.teacher-page .teacher-history-all{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}.teacher-page .teacher-history input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;margin:0;accent-color:#626e4f;cursor:pointer}.teacher-history input:focus-visible{outline:2px solid #626e4f;outline-offset:4px}.teacher-history-list{max-height:360px;overflow-y:auto;scrollbar-color:#aaa98f #fffaf1;scrollbar-width:thin;border-block:1px solid #d9ccb6}.teacher-page .teacher-history-row{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 12px;box-sizing:border-box;border-bottom:1px solid #e5dccb;cursor:pointer;font-weight:400}.teacher-history-row:last-child{border-bottom:0}.teacher-history-row:hover{background:#f4f1e6}.teacher-history-row:has(input:checked){background:#e9eddf}.teacher-history-row>span{min-width:0}.teacher-history-row strong{display:block;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.6}.teacher-history-date{display:block;font-size:12px;color:#606958;font-variant-numeric:tabular-nums}.teacher-history-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:16px}.teacher-history-footer>p{max-width:42ch}.teacher-history-actions{display:flex;gap:10px;flex-shrink:0}.teacher-history-actions button{min-height:44px}.teacher-page .teacher-history-actions .teacher-danger:not(:disabled){background:#a74723;border-color:#a74723;color:#fffaf1}.teacher-page .teacher-history-actions .teacher-danger:hover:not(:disabled){background:#823719}.teacher-history-list:empty{display:none}
@media(max-width:700px){.teacher-history-footer{align-items:stretch;flex-direction:column;gap:8px}.teacher-history-actions{width:100%}.teacher-history-actions button{flex:1;padding-inline:10px}.teacher-history-row{padding-inline:8px}.teacher-history-tools{gap:8px}.teacher-history-current{overflow-wrap:anywhere}}

.classroom-entry-gate[hidden],[data-classroom-module][hidden],#classroom-entry-message[hidden]{display:none!important}
.classroom-entry-gate{box-sizing:border-box;max-width:1060px;margin:24px auto 48px;padding:30px;background:#fffaf1;border:1px solid #d9ccb6;border-radius:6px;color:#293b2b;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.classroom-entry-gate h2{font-family:inherit;font-size:23px;line-height:1.6;white-space:normal;margin:0 0 10px;color:#a74723}
.classroom-entry-gate p{font-size:15px;line-height:1.9;margin:0 0 20px;overflow-wrap:break-word}
.classroom-entry-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.classroom-entry-gate button{min-height:44px;padding:10px 18px;border:1px solid #626e4f;border-radius:5px;background:#626e4f;color:#fffaf1;font:inherit;cursor:pointer}
.classroom-entry-gate button:hover{background:#4a583b}.classroom-entry-gate a{color:#536140;font-size:14px;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.classroom-entry-gate :focus-visible{outline:2px solid #a74723;outline-offset:3px}
.classroom-bar #classroom-entry-message{flex-basis:100%;order:2;color:#934426;font-size:14px;line-height:1.8;margin:0;padding:10px 12px;background:#f6e9dc;border:1px solid #d9bfa5;border-radius:4px}
.classroom-bar #classroom-group:disabled{opacity:.6}.classroom-bar #classroom-state:focus{outline:2px solid #a74723;outline-offset:3px}
@media(max-width:700px){.classroom-entry-gate{margin:18px 18px 32px;padding:22px 18px}.classroom-entry-gate h2{font-size:21px}.classroom-entry-actions{gap:12px}.classroom-entry-actions button{flex:1}}
