/* 教师端各业务视图共用新建试卷的标题、页签与内容起始线。 */
body.teacher-workspace {
  --teacher-page-inset: clamp(18px, 1.9vw, 36px);
  --teacher-page-top: 16px;
  --teacher-page-gap: 14px;
  --teacher-header-height: 40px;
  --teacher-section-title: 18px;
  --teacher-card-inset: clamp(14px, 1.7vw, 28px);
}
@media (min-width: 721px) {
  html:has(body.teacher-workspace) { scrollbar-gutter: stable; }
}
body.teacher-workspace main.content.studio-content {
  width: 100%;
  max-width: 1760px;
  min-width: 0;
  margin: 0 auto;
  padding: var(--teacher-page-top) var(--teacher-page-inset) 26px;
}
body.teacher-workspace .app.studio:has(> main > :is(.draft-list, .pa-columns-layout, .pa-records)) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
body.teacher-workspace main.content.studio-content:has(> :is(.draft-list, .pa-columns-layout, .pa-records)) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding-bottom: var(--teacher-page-top);
}
.teacher-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
  margin: 0 0 var(--teacher-page-gap);
}
.teacher-page-heading, .teacher-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: var(--teacher-header-height);
}
.teacher-page-heading { gap: 4px clamp(15px, 2vw, 34px); }
.teacher-page-heading h1 {
  display: flex;
  align-items: center;
  min-height: var(--teacher-header-height);
  margin: 0;
  color: #141c2b;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.teacher-page-tabs {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  min-height: var(--teacher-header-height);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.teacher-page-tabs button {
  padding: 6px 18px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.teacher-page-tabs button:first-child { border-radius: 7px 0 0 7px; }
.teacher-page-tabs button:last-child { border-radius: 0 7px 7px 0; }
.teacher-page-tabs button:hover { background: #f3f6fc; }
.teacher-page-tabs button[aria-pressed="true"] { background: #e4edff; color: var(--blue); }
.teacher-page-tabs button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.teacher-tab-count { font-variant-numeric: tabular-nums; }
.teacher-page-description { color: var(--muted); font-size: 14px; line-height: 1.5; }
.teacher-page-actions { gap: 6px 8px; }
.teacher-page-actions > .studio-btn,
body.teacher-workspace .teacher-page-actions > details > summary {
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #cbd5e5;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 570;
  line-height: 1.5;
}
body.teacher-workspace .teacher-page-actions > details > summary { background: #fff; }
.teacher-page-actions > .studio-btn.emph { border-color: var(--blue); }
body.teacher-workspace main.studio-content:has(> .studio-paper-summary) {
  display: flex;
  flex-direction: column;
  gap: var(--teacher-page-gap);
  padding-bottom: var(--teacher-page-top);
}
.studio-content:has(> .studio-paper-summary) > .teacher-page-header { flex: none; margin-bottom: 0; }
@media (min-width: 901px) and (max-height: 800px) {
  body.teacher-workspace { --teacher-page-top: 12px; --teacher-page-gap: 10px; }
}
@media (max-width: 1150px) {
  .teacher-page-heading { column-gap: 12px; }
  .teacher-page-tabs button { padding-inline: 12px; }
}
@media (max-width: 720px) {
  body.teacher-workspace { --teacher-page-inset: 12px; --teacher-header-height: 38px; --teacher-section-title: 16px; }
  .teacher-page-heading { column-gap: 10px; }
  .teacher-page-tabs button { padding-inline: 10px; }
  .teacher-page-description { font-size: 13px; }
  .teacher-page-actions { min-height: 32px; }
  .teacher-page-actions > .studio-btn,
  body.teacher-workspace .teacher-page-actions > details > summary {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 13px;
  }
}
