/* 教师工作台的排版和交互尺寸；其余角色沿用下载的原型。 */
body.teacher-workspace {
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
body.teacher-workspace .side { width: 218px; flex-basis: 218px; padding: 22px 0 14px; }
body.teacher-workspace .side-brand { padding: 0 19px 19px; gap: 11px; }
body.teacher-workspace .teacher-brand-icon, body.teacher-workspace .teacher-avatar {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px;
}
body.teacher-workspace .teacher-brand-icon svg { width: 26px; height: 26px; }
body.teacher-workspace .side-brand-t { font-size: 1.15rem; letter-spacing: .02em; }
body.teacher-workspace .side-brand-s { font-size: .78rem; }
body.teacher-workspace .side-role-box { order: 2; margin: 12px 12px 14px; padding: 12px 9px; gap: 9px; }
body.teacher-workspace .teacher-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: .875rem; font-weight: 650; }
body.teacher-workspace .side-role-box b { font-size: .875rem; }
body.teacher-workspace .side-role-box small { font-size: .75rem; line-height: 1.45; margin-top: 4px; }
body.teacher-workspace .side-foot { order: 3; }
body.teacher-workspace .nav { order: 1; gap: 5px; padding: 18px 12px; }
body.teacher-workspace .nav button { padding: 10px 12px; gap: 11px; min-height: 42px; font-size: .9rem; }
body.teacher-workspace .nav button svg { width: 17px; height: 17px; flex-basis: 17px; }
body.teacher-workspace .switch-btn { min-height: 38px; }
body.teacher-workspace .topbar { min-height: 58px; padding-inline: clamp(14px,2.15vw,34px); }
body.teacher-workspace .topbar-l { gap: 7px; }
body.teacher-workspace .teacher-location { display: grid; place-items: center; width: 31px; min-height: 31px; border-radius: 7px; }
body.teacher-workspace .teacher-location svg, body.teacher-workspace .bell-btn svg { width: 16px; height: 16px; }
body.teacher-workspace .teacher-crumb-divider { color: var(--muted-2); }
body.teacher-workspace .campus-ctx { margin-left: 7px; }
body.teacher-workspace .content { margin-inline: auto; padding: 24px clamp(16px,2.15vw,34px) 44px; max-width: 1560px; }
body.teacher-workspace .stu-practice-head { gap: 10px 18px; margin-bottom: 18px !important; }
body.teacher-workspace .stu-practice-head > div { max-width: 100%; min-width: 0; }
body.teacher-workspace .view-mode-switch { max-width: 100%; flex-wrap: wrap; gap: 3px; padding: 3px; }
body.teacher-workspace .view-mode-switch button { font-size: .825rem; padding: 5px 10px; }
body.teacher-workspace .teacher-compose-panel { border-radius: 14px; padding: 19px clamp(15px,1.75vw,26px) 18px; }
body.teacher-workspace .teacher-compose-title { display: flex; align-items: center; gap: 9px; }
body.teacher-workspace .teacher-compose-title svg { width: 24px; height: 24px; }
body.teacher-workspace .teacher-compose-title h2 { font-size: clamp(1.17rem,1.45vw,1.45rem); line-height: 1.4; letter-spacing: .01em; }
body.teacher-workspace .teacher-compose-hint { font-size: .875rem; margin: 4px 0 13px; }
body.teacher-workspace .ai-prompt-box { min-height: 49px; border-radius: 9px; gap: 8px; }
body.teacher-workspace .ai-prompt-input { font-size: .92rem; }
body.teacher-workspace .topic-pill { font-size: .78rem; padding: 3px 9px; }
body.teacher-workspace .topic-pills { gap: 6px; }
body.teacher-workspace .teacher-jumps { display: none; }
body.teacher-workspace .teacher-compose-grid { grid-template-columns: minmax(0,1.72fr) minmax(280px,.94fr); gap: 16px; }
body.teacher-workspace :is(.split, .split-wide, .split-l, .split-roster, .g2, .g3) > * { min-width: 0; max-width: 100%; }
body.teacher-workspace .teacher-publish-panel { position: sticky; top: 76px; }
body.teacher-workspace :is(.stu-card, .card, .stat, .filter-bar) { border-radius: 12px; }
body.teacher-workspace .stu-card { padding: 18px 20px; }
body.teacher-workspace .card-h { align-items: flex-start; }
body.teacher-workspace .card-h h3 { font-size: 1.06rem; line-height: 1.5; }
body.teacher-workspace .card-h p, body.teacher-workspace .teacher-paper-count { font-size: .8rem; }
body.teacher-workspace .teacher-paper-count { display: inline-block; font-weight: 500; margin-left: 6px; color: var(--muted); }
body.teacher-workspace .tch-q-card { padding: 14px; }
body.teacher-workspace .tch-q-stem { font-size: .94rem; line-height: 1.65; margin: 8px 0; }
body.teacher-workspace .tch-opt-item { font-size: .825rem; padding: 6px 9px; }
body.teacher-workspace .tch-q-top { gap: 7px 12px; flex-wrap: wrap; }
body.teacher-workspace .fb-meta { white-space: normal; font-size: .78rem; }
body.teacher-workspace :is(.fb-left, .fb-right, .toolbar-l, .toolbar-r, .seg, .search-wrap, input, select, textarea) { max-width: 100%; min-width: 0; }
body.teacher-workspace .seg { flex-wrap: wrap; }
body.teacher-workspace .tag, body.teacher-workspace .tag.blue { font-size: .75rem; }
body.teacher-workspace :is(.btn, .inp, .sel, .txta) { font-size: .88rem; }
body.teacher-workspace :is(.btn, .btn.sm, .btn.xs) { min-height: 32px; }
body.teacher-workspace .btn.sm { font-size: .8125rem; }
body.teacher-workspace .btn.xs { min-height: 27px; font-size: .75rem; }
body.teacher-workspace :is(.inp,.sel,.txta) { min-height: 34px; }
body.teacher-workspace .side-role-box small, body.teacher-workspace .hw-queue-item small { line-height: 1.55; }
body.teacher-workspace :is(.tbl-wrap,.tch-opt-item) { max-width: 100%; }
body.teacher-workspace .tbl-wrap { overscroll-behavior-x: contain; }
body.teacher-workspace table.tbl { font-size: .84rem; }
body.teacher-workspace :is(table.tbl th,table.tbl small) { font-size: .75rem; }
body.teacher-workspace .quick-drawer { width: min(465px,100vw); max-width: 100vw; }
body.teacher-workspace .modal-dialog { max-height: 88dvh; overscroll-behavior: contain; }
body.teacher-workspace.overlay-open { overflow: hidden; }
body.teacher-workspace .teacher-reset-actions { display: flex; gap: 8px; justify-content: flex-end; }
body.teacher-workspace .toast-stack { max-width: calc(100vw - 24px); pointer-events: none; }
body.teacher-workspace .toast-stack button { pointer-events: auto; }
body.teacher-workspace [data-action][tabindex="0"] { scroll-margin: 76px; }
@media (min-width: 861px) and (max-width: 1200px) {
  body.teacher-workspace .side { width: 176px; flex-basis: 176px; }
  body.teacher-workspace .content { padding-inline: 16px; }
  body.teacher-workspace .topbar { gap: 6px; }
  body.teacher-workspace .topbar-l, body.teacher-workspace .topbar-r { gap: 5px; flex-wrap: wrap; }
  body.teacher-workspace .stu-card { padding: 15px; }
}
@media (max-width: 1024px) {
  body.teacher-workspace .teacher-compose-grid { grid-template-columns: minmax(0,1fr); }
  body.teacher-workspace .teacher-publish-panel { position: static; }
  body.teacher-workspace .teacher-jumps { display: flex; gap: 7px; margin: 8px 0 14px; }
  body.teacher-workspace .teacher-jump { border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--blue-d); font-size: .8125rem; padding: 6px 11px; }
  body.teacher-workspace :is(#teacher-preview,#teacher-publish) { scroll-margin-top: 76px; }
}
@media (max-width: 860px) {
  body.teacher-workspace .content { padding: 16px 12px 85px; }
  body.teacher-workspace .topbar { position: static; min-height: auto; padding: 8px 12px; gap: 5px 10px; }
  body.teacher-workspace .topbar-r { flex-wrap: wrap; }
  body.teacher-workspace .teacher-jump, body.teacher-workspace .btn.xs { min-height: 34px; }
  body.teacher-workspace .mobile-bottom-nav { height: calc(60px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 14px #1e30550a; }
  body.teacher-workspace .mobile-bottom-nav button { font-size: .75rem; }
  body.teacher-workspace .split-roster { grid-template-columns: minmax(0,1fr) !important; }
  body.teacher-workspace .toast-stack { bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.teacher-workspace :is(#teacher-preview,#teacher-publish) { scroll-margin-top: 8px; }
  body.teacher-workspace .teacher-compose-panel { padding: 16px; }
}
@media (max-width: 600px) {
  body.teacher-workspace .content { padding-inline: 10px; }
  body.teacher-workspace .topbar-r { width: 100%; }
  body.teacher-workspace .campus-ctx { margin-left: 0; }
  body.teacher-workspace .ai-prompt-box { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; padding: 8px; }
  body.teacher-workspace .ai-prompt-box .ai-prompt-input { width: 100%; height: 34px; }
  body.teacher-workspace .ai-prompt-box > .btn { grid-column: 1 / -1; }
  body.teacher-workspace .topic-pills { gap: 5px; }
  body.teacher-workspace .topic-pill { min-height: 32px; }
  body.teacher-workspace .stu-card { padding: 14px; }
  body.teacher-workspace .tch-q-card { padding: 11px; }
  body.teacher-workspace .sph-stats, body.teacher-workspace .stu-profile-banner { flex-wrap: wrap; }
  body.teacher-workspace .view-mode-switch button { padding-inline: 8px; }
  body.teacher-workspace :is(.btn,.btn.sm,.btn.xs,.seg button) { white-space: normal; }
  body.teacher-workspace .tbl-wrap table { min-width: max-content; }
  body.teacher-workspace .tbl-wrap td { max-width: 21rem; white-space: normal; }
  body.teacher-workspace .modal-backdrop { padding: 8px; }
  body.teacher-workspace .modal-dialog { width: 100%; max-height: 90dvh; }
  body.teacher-workspace .quick-drawer { padding: 16px; }
  body.teacher-workspace .hw-hand-title { padding-right: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  body.teacher-workspace *, body.teacher-workspace *::before, body.teacher-workspace *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 教师端的任务分区与按需展开。 */
body.teacher-workspace .content { max-width: 1500px; }
body.teacher-workspace .content > .task-fold { margin: 0 0 14px; }
body.teacher-workspace .task-fold { min-width: 0; max-width: 100%; border-bottom: 1px solid var(--line-2); }
body.teacher-workspace .task-fold > summary, body.teacher-workspace .paper-question > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  color: var(--ink-2); min-height: 42px; font-size: .875rem; font-weight: 560; line-height: 1.55;
}
body.teacher-workspace summary::-webkit-details-marker { display: none; }
body.teacher-workspace .task-fold > summary::before, body.teacher-workspace .paper-question > summary::after {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin: 0 3px;
}
body.teacher-workspace .task-fold[open] > summary::before, body.teacher-workspace .paper-question[open] > summary::after { transform: rotate(45deg); }
body.teacher-workspace .task-fold > summary:hover, body.teacher-workspace .paper-question > summary:hover { color: var(--blue); }
body.teacher-workspace .task-fold > summary small { color: var(--muted); font-size: .8rem; font-weight: 400; }
body.teacher-workspace .task-fold-body { min-width: 0; padding: 3px 0 12px; }
body.teacher-workspace .compose-tool { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; }
body.teacher-workspace .compose-tool > summary { min-height: 47px; }
body.teacher-workspace .compose-tool > summary span { color: var(--blue); }
body.teacher-workspace .teacher-compose-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 20px; }
body.teacher-workspace .teacher-preview-panel, body.teacher-workspace .teacher-publish-panel { padding: 20px; }
body.teacher-workspace .paper-question { border-top: 1px solid var(--line-2); }
body.teacher-workspace .paper-question > summary { gap: 12px; padding: 13px 2px; min-height: 60px; }
body.teacher-workspace .paper-index { flex: none; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
body.teacher-workspace .paper-stem { flex: 1; color: var(--ink); overflow-wrap: anywhere; font-weight: 550; font-size: .94rem; line-height: 1.65; }
body.teacher-workspace .paper-points { flex: none; color: var(--muted); font-size: .78rem; font-weight: 400; }
body.teacher-workspace .paper-details { padding: 0 4px 16px 28px; }
body.teacher-workspace .paper-meta { font-size: .78rem; color: var(--muted); margin-bottom: 9px; }
body.teacher-workspace .paper-details .tch-opt-grid { gap: 3px 16px; }
body.teacher-workspace .paper-details .tch-opt-item { padding: 3px 0; border: 0; background: none; }
body.teacher-workspace .question-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
body.teacher-workspace .question-actions .btn { min-height: 30px; padding: 0 4px; font-size: .8rem; font-weight: 500; }
body.teacher-workspace .question-actions .btn:first-child { color: var(--blue); }
body.teacher-workspace .question-actions .remove-question:hover { color: var(--bad); }
body.teacher-workspace .teacher-publish-panel h3 { font-size: 1.075rem; }
body.teacher-workspace .publish-summary { margin: 14px 0 8px; }
body.teacher-workspace .publish-summary > div { display: grid; grid-template-columns: 5em minmax(0,1fr); padding: 6px 0; gap: 5px; font-size: .865rem; }
body.teacher-workspace .publish-summary dt, body.teacher-workspace .teacher-paper-count { color: var(--muted); }
body.teacher-workspace .publish-summary dd { color: var(--ink); line-height: 1.6; }
body.teacher-workspace .publish-action { width: 100%; min-height: 40px; margin: 12px 0 5px; }
body.teacher-workspace .teacher-publish-panel .task-fold label { display: block; font-size: .84rem; margin-bottom: 4px; }
body.teacher-workspace .teacher-inbox { grid-template-columns: minmax(216px,26%) minmax(0,1fr); }
body.teacher-workspace .queue-fold { border: 0; }
body.teacher-workspace .queue-fold > summary { font-size: .98rem; padding-bottom: 9px; }
body.teacher-workspace .queue-fold > .task-fold-body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 0; }
body.teacher-workspace .queue-fold .hw-queue-list { max-height: min(55vh,440px); overflow-y: auto; }
body.teacher-workspace .queue-fold .hw-queue-item { flex: 0 0 auto; min-height: 52px; padding-block: 9px; }
body.teacher-workspace .bank-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: .83rem; }
body.teacher-workspace .bank-version { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
body.teacher-workspace .tbl .tag.cohort-label { color: var(--muted); background: transparent; padding-inline: 0; }
body.teacher-workspace .split-roster .tbl [data-action="quick-assign-1click"] { border-color: transparent; background: transparent; color: var(--blue); }
body.teacher-workspace .split-roster .tbl [data-action="quick-assign-1click"]:hover { text-decoration: underline; }
body.teacher-workspace .mobile-bottom-nav .mbn-badge { background: #e8eef6; color: #324c72; }
body.teacher-workspace .teacher-inbox .grade-panel { background: #fff; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; }
body.teacher-workspace [data-teacher-fold="hw-comments"] { margin-bottom: 10px; }
body.teacher-workspace .student-question { margin: 15px 0 5px; border-left: 3px solid #adc3df; padding: 3px 14px; }
body.teacher-workspace .student-question > span { display: block; color: var(--muted); font-size: .78rem; }
body.teacher-workspace .student-question p { margin: 4px 0; font-size: 1.075rem; font-weight: 550; line-height: 1.75; }
body.teacher-workspace .question-context { margin-bottom: 14px; border-bottom: 0; }
body.teacher-workspace .task-fold .filter-bar { border: 0; padding-left: 0; margin-bottom: 6px; }
body.teacher-workspace .scope-options { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
body.teacher-workspace .teacher-empty { padding: 28px 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: .875rem; }
body.teacher-workspace [data-teacher-fold="bank-edit"] .grade-panel { padding: 0; border: 0; background: none; }
body.teacher-workspace .task-fold .task-fold { border: 0; }
body.teacher-workspace .compact-fold { border: 0; }
body.teacher-workspace .compact-fold > summary { min-height: 36px; }
body.teacher-workspace .task-fold .stu-profile-banner { margin-bottom: 0; }
body.teacher-workspace .roster-tools { margin-bottom: 0; }
body.teacher-workspace .split-roster .tbl .btn { white-space: nowrap; }
body.teacher-workspace .rubric-item { text-align: left; }
@media (max-width: 1024px) {
  body.teacher-workspace .teacher-compose-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 860px) {
  body.teacher-workspace .teacher-inbox { grid-template-columns: minmax(0,1fr); gap: 10px; }
  body.teacher-workspace .teacher-inbox > .stu-card:first-child { padding: 4px 12px !important; }
  body.teacher-workspace .teacher-inbox .queue-fold { width: 100%; }
  body.teacher-workspace .teacher-inbox .queue-fold > summary { padding: 6px 0; min-height: 44px; }
  body.teacher-workspace .queue-fold > .task-fold-body { padding: 4px 0 10px; }
  body.teacher-workspace .compact-fold > summary, body.teacher-workspace .task-fold > summary { flex-wrap: wrap; gap: 7px; }
  body.teacher-workspace .sph-stats { gap: 2px 6px; }
  body.teacher-workspace .paper-details { padding-left: 5px; }
  body.teacher-workspace .teacher-preview-panel, body.teacher-workspace .teacher-publish-panel { padding: 15px; }
  body.teacher-workspace .paper-question > summary { gap: 7px; }
  body.teacher-workspace .question-actions .btn { min-height: 38px; }
}
