/* 知序 · 教师工作台（构建于 ui.css tokens 之上） */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 92px;
}

#teacher-root {
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) var(--gutter) 48px;
}

.teacher-boot {
  min-height: 55vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--ink-2);
}

/* ---------- 通用表单与按钮兜底对齐 ---------- */
#teacher-root button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

#teacher-root button:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--ink-4);
}

#teacher-root button.primary {
  background: linear-gradient(180deg, var(--brand-top) 0%, var(--brand) 100%);
  border-color: rgba(16, 32, 82, 0.72);
  color: #fff;
  box-shadow: var(--shadow-btn-primary);
}

#teacher-root button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--brand-hover-top) 0%, var(--brand-hover) 100%);
  border-color: rgba(12, 24, 66, 0.85);
}

#teacher-root button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand-ink);
}

#teacher-root button.ghost:hover:not(:disabled) {
  background: var(--brand-soft);
}

#teacher-root button.link-btn {
  border-color: transparent;
  background: transparent;
  color: var(--brand-ink);
}

#teacher-root button.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: var(--r-xs);
}

#teacher-root button.btn-danger:not(:disabled) {
  color: var(--bad);
}

#teacher-root button.btn-danger:hover:not(:disabled) {
  background: var(--bad-soft);
  border-color: var(--bad-line);
}

#teacher-root button.icon-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}

#teacher-root button.icon-btn:hover:not(:disabled) {
  background: var(--sunken);
  color: var(--ink);
}

#teacher-root button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* ---------- 页头与品牌标识 ---------- */
.teacher-header {
  padding-bottom: 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.teacher-brand-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.teacher-brand-head .brand-symbol {
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 12px;
  margin-top: 2px;
}

.teacher-header .page-eyebrow {
  color: var(--brand-ink);
}

.teacher-header-actions {
  align-items: flex-end;
}

.teacher-date-field {
  display: grid;
  gap: 6px;
}

.teacher-date-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 步骤导航栏 ---------- */
.teacher-workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.teacher-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.teacher-home:hover {
  background: var(--surface-2);
  border-color: var(--ink-4);
  color: var(--ink);
}

.teacher-steps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--sunken);
  border-radius: var(--r-md);
  flex: none;
}

.teacher-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.teacher-step:hover {
  color: var(--ink);
}

.teacher-step .step-num {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.teacher-step.is-active,
.teacher-step[aria-current="step"] {
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.teacher-step.is-active .step-num,
.teacher-step[aria-current="step"] .step-num {
  background: var(--brand);
  color: #fff;
}

.teacher-save-status {
  margin-left: auto;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  flex: none;
}

.teacher-status {
  color: var(--seal);
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}

.teacher-status:empty {
  display: none;
}

/* ---------- 布局网格 ---------- */
.teacher-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(430px, 1.12fr);
  align-items: start;
  gap: 20px;
}

.teacher-evidence-panel {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  scroll-margin-top: 84px;
}

.teacher-editor {
  grid-column: 2;
  grid-row: 1;
  scroll-margin-top: 84px;
}

.teacher-layout > aside {
  grid-column: 2;
  grid-row: 2;
  scroll-margin-top: 84px;
}

.teacher-layout,
.teacher-editor,
.teacher-layout > aside,
.teacher-card,
.teacher-row {
  min-width: 0;
}

/* ---------- 卡片 ---------- */
.teacher-card,
.teacher-login,
.teacher-pair {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.2vw, 24px);
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}

.teacher-evidence-panel,
.teacher-publish-card {
  position: relative;
  overflow-x: hidden;
}

.teacher-evidence-panel {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.teacher-publish-card {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.is-targeted {
  box-shadow: var(--ring), var(--shadow-md);
}

.teacher-card-head,
.teacher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teacher-card-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.teacher-card h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.teacher-card p,
.teacher-login p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 6px;
}

.teacher-card label,
.teacher-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
}

.teacher-card textarea {
  width: 100%;
  min-height: 136px;
  line-height: 1.7;
}

.teacher-row select {
  min-width: 0;
  flex: 1;
}

.teacher-pair {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.teacher-pair strong {
  color: var(--brand-ink);
}

.teacher-pair span,
.teacher-empty {
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- 提示与禁用原因说明 ---------- */
.teacher-hint,
.teacher-disabled-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}

.teacher-hint svg,
.teacher-disabled-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
}

.teacher-disabled-note {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.teacher-disabled-note svg {
  color: var(--warn);
}

/* ---------- 依据与 AI 草案 ---------- */
.teacher-generate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}

.teacher-generate small {
  width: 100%;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.teacher-ai {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 14px;
}

.teacher-ai .teacher-row {
  margin-bottom: 8px;
}

.teacher-ai small,
.teacher-questions small {
  color: var(--ink-3);
}

.teacher-ai small {
  font-size: 12px;
}

.teacher-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.teacher-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.teacher-evidence {
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin: 10px 0;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.teacher-evidence strong,
.teacher-evidence span {
  display: block;
  line-height: 1.55;
}

.teacher-evidence span {
  font-size: 12.5px;
  color: var(--ink-3);
}

.teacher-evidence p {
  margin: 6px 0 0;
  font-size: 14px;
}

.teacher-direct {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.teacher-direct small {
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- 题目排序列表 ---------- */
.teacher-questions {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  counter-reset: question;
  border-top: 1px solid var(--line);
}

.teacher-questions li {
  counter-increment: question;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.teacher-questions li > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--ink);
}

.teacher-questions li > span::before {
  content: counter(question);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.teacher-questions li > div {
  display: flex;
  gap: 6px;
  flex: none;
}

.teacher-questions button.btn-sm {
  min-width: 40px;
}

/* ---------- 知识点优先级 ---------- */
.teacher-priority {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.teacher-priority > strong {
  min-width: 96px;
  padding-bottom: 10px;
  color: var(--ink);
}

.teacher-priority label {
  margin: 0;
}

.teacher-priority .teacher-reason {
  flex: 1;
  min-width: 180px;
}

/* ---------- 发布与预览区 ---------- */
.teacher-plan-preview,
.teacher-plan-difference {
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: var(--r-md);
  line-height: 1.6;
}

.teacher-plan-preview {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.teacher-plan-preview p,
.teacher-plan-difference p {
  margin: 6px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.teacher-plan-preview small {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.teacher-plan-difference {
  background: var(--seal-soft);
  border: 1px solid var(--seal-line);
  color: var(--ink);
}

.teacher-plan-difference strong {
  color: var(--seal);
}

.teacher-plan-difference label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.teacher-plan-difference input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}

.teacher-student-preview {
  border: 1px solid var(--seal-line);
  padding: 14px 16px;
  margin: 14px 0;
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.teacher-student-preview strong {
  color: var(--ink);
  font-size: 14.5px;
}

.teacher-student-preview small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 10px;
}

.teacher-student-preview p {
  white-space: pre-wrap;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.teacher-publish-meta {
  margin: 14px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.teacher-stack button.primary {
  order: -1;
}

details {
  margin: 12px 0;
  line-height: 1.65;
}

summary {
  list-style: none;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 0;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸ ";
  color: var(--ink-3);
}

details[open] > summary::before {
  content: "▾ ";
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}

/* ---------- 登录与错误卡 ---------- */
.teacher-login {
  max-width: 460px;
  margin: 8vh auto;
  display: grid;
  gap: 8px;
}

.teacher-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.teacher-login input {
  width: 100%;
}

/* ---------- 纠偏与换题预览 ---------- */
.teacher-correction {
  container: correction / inline-size;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  padding: clamp(16px, 2vw, 22px);
  margin-top: 18px;
}

.teacher-correction h2 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.teacher-correction select,
.teacher-correction textarea {
  width: 100%;
  font-size: 15px;
  min-height: 44px;
}

.teacher-correction textarea {
  min-height: 90px;
}

.teacher-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.teacher-correction-result {
  border-top: 1px solid var(--line-strong);
  margin-top: 18px;
  padding-top: 15px;
}

.teacher-correction-result > h3 {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 700;
  margin: 14px 0 6px;
}

.teacher-correction-result > h3:nth-of-type(2) {
  color: var(--brand-ink);
}

.teacher-correction-question {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--r-sm);
}

.teacher-correction-result > h3:nth-of-type(2) + .teacher-correction-question {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.teacher-correction-question > strong {
  display: block;
  line-height: 1.5;
  color: var(--ink);
}

.teacher-correction-question small {
  display: block;
  color: var(--ink-3);
  margin-top: 2px;
}

.teacher-correction-question > .teacher-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 6px;
}

@container correction (min-width: 38rem) {
  .teacher-correction-result:has(> .teacher-correction-question ~ .teacher-correction-question) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .teacher-correction-result > * {
    grid-column: 1 / -1;
  }
  .teacher-correction-result > h3:first-of-type {
    grid-area: 3 / 1;
  }
  .teacher-correction-result > h3:nth-of-type(2) {
    grid-area: 3 / 2;
  }
  .teacher-correction-result > h3:first-of-type + .teacher-correction-question {
    grid-area: 4 / 1;
  }
  .teacher-correction-result > h3:nth-of-type(2) + .teacher-correction-question {
    grid-area: 4 / 2;
  }
}

/* ---------- 主观题手写批阅 ---------- */
.teacher-written-answer h4 {
  margin: 12px 0 4px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.teacher-written-answer .teacher-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.written-review {
  border-block-start: 1px solid var(--line);
  padding-block-start: 12px;
  margin-block-start: 12px;
}

.written-review label {
  display: grid;
  gap: 6px;
}

.written-review select,
.written-review textarea {
  width: 100%;
  font: inherit;
}

.written-review [role="status"] {
  margin-inline-start: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.teacher-ink {
  display: block;
  inline-size: 100%;
  max-block-size: 430px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-top: 8px;
}

/* ---------- 底部固定发布栏 ---------- */
.teacher-actionbar {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px max(24px, calc((100vw - 1400px) / 2));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(27, 34, 48, 0.06);
}

.teacher-bar-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.teacher-bar-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-actionbar strong {
  color: var(--ink);
  font-size: 14.5px;
}

.teacher-bar-hint {
  font-size: 12.5px;
  color: var(--warn);
}

.teacher-bar-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.teacher-actionbar button {
  min-width: 104px;
}

/* ---------- 发布前预览弹窗 ---------- */
.teacher-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 26, 38, 0.42);
  backdrop-filter: blur(2px);
  padding: 20px;
}

.teacher-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.teacher-modal h2 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--ink);
}

.teacher-modal-head,
.teacher-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.teacher-modal > p {
  margin: 12px 0;
  line-height: 1.6;
  color: var(--ink-2);
  font-size: 14.5px;
}

.teacher-preview-content {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.teacher-preview-content small {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--brand-ink);
}

.teacher-preview-content p {
  margin: 4px 0 14px;
  font-size: 14.5px;
  white-space: pre-wrap;
  color: var(--ink);
}

.teacher-preview-content p:last-child {
  margin-bottom: 0;
}

.teacher-modal-changes {
  color: var(--seal) !important;
  font-weight: 600;
}

.teacher-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-weight: 600;
}

.teacher-confirm input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}

.teacher-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

/* ---------- 响应式断点 ---------- */
@media (min-width: 1300px) {
  .teacher-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr) minmax(290px, 0.8fr);
  }
  .teacher-evidence-panel {
    grid-column: 1;
    grid-row: 1;
  }
  .teacher-editor {
    grid-column: 2;
    grid-row: 1;
  }
  .teacher-layout > aside {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }
}

@media (max-width: 850px) {
  #teacher-root {
    padding: 18px 16px 40px;
  }

  .teacher-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .teacher-workflow {
    position: sticky;
    top: 0;
    z-index: 15;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(243, 244, 246, 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    margin: 0 calc(-16px) 14px;
    padding: 10px 16px;
  }

  .teacher-steps {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-step {
    justify-content: center;
    padding: 0 8px;
    font-size: 12.5px;
    gap: 5px;
  }

  .teacher-step .step-num {
    min-width: 18px;
    height: 18px;
    font-size: 10.5px;
    padding: 0 4px;
  }

  .teacher-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .teacher-evidence-panel,
  .teacher-editor,
  .teacher-layout > aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
    width: 100%;
  }

  .teacher-row {
    flex-wrap: wrap;
  }

  .teacher-questions li {
    align-items: flex-start;
    flex-direction: column;
  }

  .teacher-priority {
    align-items: flex-start;
  }

  .teacher-actionbar {
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .teacher-actionbar button {
    min-width: 86px;
    padding: 0 12px;
  }
}

@media print {
  body {
    padding-bottom: 0 !important;
    background: #fff !important;
  }
  .teacher-workflow,
  .teacher-actionbar {
    display: none !important;
  }
}

.teacher-recipient { padding: .75rem 1rem; border: 1px solid var(--border, #ddd); border-radius: .75rem; background: var(--surface, #fff); }
.teacher-question-preview { margin: .75rem 0; padding: .75rem; border: 1px solid var(--border, #ddd); border-radius: .5rem; }
.teacher-question-preview summary { cursor: pointer; font-weight: 600; }
.teacher-question-preview ol { padding-left: 1.5rem; }
.teacher-scores { margin: .75rem 0; padding: .75rem; border: 1px solid var(--border, #ddd); border-radius: .5rem; }
.teacher-score-row { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 5rem; gap: .5rem; align-items: end; margin: .5rem 0; }
.teacher-score-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.teacher-score-row label { margin: 0; }
@media(max-width: 520px) { .teacher-score-row { grid-template-columns: minmax(0, 1fr) 4rem 4rem; } }
