/* Gestión docente: superficies claras, navegación retráctil y controles legibles. */
body.is-teacher-dashboard:not(.is-course-player) {
  --td-sidebar-width: 248px;
  --td-ink: #1b2e46;
  --td-muted: #52677e;
  --td-line: #dce5ef;
  background: #f4f7fb;
}

body.is-teacher-dashboard:not(.is-course-player).teacher-navigation-collapsed { --td-sidebar-width: 76px; }
body.is-teacher-dashboard:not(.is-course-player) .learning-main {
  background: #f4f7fb;
  padding: calc(var(--td-header-height) + 28px) 32px 64px calc(var(--td-sidebar-width) + 32px);
}
body.is-teacher-dashboard .td-workspace { display: block; }
body.is-teacher-dashboard .td-main { margin: 0 auto; max-width: 1220px; min-width: 0; width: 100%; }
body.is-teacher-dashboard .td-panel:not(.hidden) { animation: none; opacity: 1; transform: none; }
body.is-teacher-dashboard [hidden] { display: none !important; }

body.is-teacher-dashboard:not(.is-course-player) .teacher-course-panel.td-sidebar {
  background: #ffffff;
  border: 0;
  border-right: 1px solid #dce5ef;
  bottom: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100dvh - var(--td-header-height));
  left: 0;
  margin: 0;
  max-height: calc(100dvh - var(--td-header-height));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px;
  position: fixed;
  top: var(--td-header-height);
  transform: none;
  width: var(--td-sidebar-width);
  z-index: 35;
}
body.is-teacher-dashboard .teacher-course-panel .td-sidebar-course { align-items: stretch; display: flex; flex-direction: column; gap: 8px; padding: 0 8px 20px; }
body.is-teacher-dashboard .td-sidebar-back { color: #536c86; font-size: 12px; font-weight: 500; margin: 0 0 6px; min-height: 44px; }
body.is-teacher-dashboard .td-sidebar-course > span { color: #386397; display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
body.is-teacher-dashboard .td-sidebar-course strong { color: #1b2e46; font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
body.is-teacher-dashboard .teacher-course-panel .teacher-course-nav.td-nav { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: visible; padding-right: 0; width: 100%; }
body.is-teacher-dashboard .teacher-course-panel .td-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #52677e;
  display: grid;
  font-size: 13px;
  font-weight: 500;
  gap: 12px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  justify-items: start;
  min-height: 48px;
  min-width: 0;
  padding: 11px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}
body.is-teacher-dashboard .td-nav button:hover { background: #f3f6fb; border-color: #e0e8f2; color: #164194; }
body.is-teacher-dashboard .td-nav button.active { background: #edf3ff; border-color: #d5e2f8; color: #164194; font-weight: 600; }
body.is-teacher-dashboard .teacher-course-panel .td-nav button small { background: #dfeafc; color: #164194; display: inline-flex; font-size: 10px; font-weight: 600; grid-column: 3; grid-row: 1; justify-self: end; margin: 0; padding: 3px 6px; }
body.is-teacher-dashboard .teacher-course-panel .td-nav button svg { display: block; height: 21px; stroke: currentColor; width: 21px; }
.td-navigation-close, .td-navigation-backdrop { display: none; }

body.is-teacher-dashboard.teacher-navigation-collapsed .td-sidebar { padding: 18px 10px; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-sidebar-course { padding: 0 0 16px; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-sidebar-course > :not(.td-sidebar-back) { display: none; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-sidebar-back { font-size: 0; justify-content: center; width: 100%; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-sidebar-back svg { height: 20px; width: 20px; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-nav button { display: flex; justify-content: center; min-height: 48px; padding: 12px 0; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-nav button > span { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
body.is-teacher-dashboard.teacher-navigation-collapsed .td-nav button > small { font-size: 8px; min-width: 16px; padding: 1px 4px; position: absolute; right: 1px; top: 0; }

body.is-teacher-dashboard .td-workspace-toolbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  display: flex;
  gap: 18px;
  margin: 0 0 28px;
  padding: 15px 18px;
}
body.is-teacher-dashboard .td-navigation-toggle {
  align-items: center;
  background: #f5f8fc;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  color: #415d7a;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
}
body.is-teacher-dashboard .td-navigation-toggle:hover { background: #edf3ff; border-color: #c7d9f2; color: #164194; }
body.is-teacher-dashboard .td-navigation-toggle svg, .td-navigation-close svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 20px; }
body.is-teacher-dashboard .td-workspace-context { display: grid; gap: 4px; min-width: 0; }
body.is-teacher-dashboard .td-workspace-context > span { color: #52677e; font-size: 11px; }
body.is-teacher-dashboard .td-workspace-context > strong { color: #1b2e46; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
body.is-teacher-dashboard .td-workspace-publication { background: #edf8f1; border: 1px solid #d1e9d9; border-radius: 20px; color: #256343; flex: 0 0 auto; font-size: 11px; font-weight: 500; margin-left: auto; padding: 6px 10px; }
body.is-teacher-dashboard .td-workspace-publication.is-draft { background: #fff6e7; border-color: #ecd6ad; color: #805117; }

body.is-teacher-dashboard .td-page-head, body.is-teacher-dashboard .td-assessment-toolbar { align-items: center; gap: 22px; margin-bottom: 22px; }
body.is-teacher-dashboard .td-page-head h1,
body.is-teacher-dashboard .td-assessment-heading h2 { color: #1b2e46; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 8px; }
body.is-teacher-dashboard .td-assessment-heading { display: block; }
body.is-teacher-dashboard .td-page-head p,
body.is-teacher-dashboard .td-assessment-heading p { color: #52677e; font-size: 13px; font-weight: 400; line-height: 1.6; margin: 0; }
body.is-teacher-dashboard .td-eyebrow { color: #396594; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
body.is-teacher-dashboard .td-live-toolbar { flex: 0 0 auto; margin: 0; min-height: 44px; }

body.is-teacher-dashboard :is(.td-primary-action, .td-secondary-action, .td-tertiary-action) { border-radius: 9px; font-size: 13px; font-weight: 500; line-height: 1.4; min-height: 44px; padding: 11px 15px; }
body.is-teacher-dashboard .td-primary-action { background: #164194; border-color: #164194; box-shadow: none; color: #ffffff; }
body.is-teacher-dashboard .td-primary-action:hover { background: #103574; border-color: #103574; }
body.is-teacher-dashboard :is(.td-secondary-action, .td-tertiary-action) { background: #ffffff; border-color: #d4dfec; color: #365575; }
body.is-teacher-dashboard :is(.teacher-view, .td-task-dialog) :is(button, summary, a, input, select, textarea):focus-visible { outline: 3px solid #164194; outline-offset: 3px; }
body.is-teacher-dashboard :is(.td-card, .td-flat-surface) { background: #ffffff; border: 1px solid #dce5ef; border-radius: 14px; box-shadow: 0 3px 12px rgb(29 52 83 / 3%); }
body.is-teacher-dashboard .td-section-head { align-items: center; gap: 12px; padding: 20px 22px; }
body.is-teacher-dashboard .td-section-head h2 { color: #20364f; font-size: 17px; font-weight: 600; }
body.is-teacher-dashboard .td-section-head p { color: #52677e; font-size: 12px; }
body.is-teacher-dashboard .td-section-head > span { color: #52677e; font-size: 12px; font-weight: 400; }

body.is-teacher-dashboard .td-search { border-color: #d4dfec; border-radius: 9px; min-height: 44px; padding: 0 12px; width: min(300px, 100%); }
body.is-teacher-dashboard .td-search input { color: #263f5a; font-size: 13px; min-height: 42px; }
body.is-teacher-dashboard .td-search:focus-within { border-color: #164194; outline: 3px solid #d9e5f8; }
body.is-teacher-dashboard .td-summary-strip { background: transparent; border: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; overflow: visible; }
body.is-teacher-dashboard .td-summary-strip > article { background: #ffffff; border: 1px solid #dce5ef; border-radius: 12px; display: grid; gap: 8px; padding: 18px 20px; }
body.is-teacher-dashboard .td-summary-strip > article > span { color: #52677e; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
body.is-teacher-dashboard .td-summary-strip > article > strong { color: #20364f; font-size: 26px; font-weight: 600; line-height: 1.1; }

body.is-teacher-dashboard .td-program-card > .td-program-toolbar { padding: 20px 22px; }
body.is-teacher-dashboard .td-program-toolbar h2 { color: #20364f; font-size: 23px; font-weight: 600; }
body.is-teacher-dashboard .td-program-toolbar p { color: #52677e; font-size: 13px; }
body.is-teacher-dashboard .td-program-card .td-program-actions > button { font-size: 13px; font-weight: 500; min-height: 44px; padding: 11px 14px; }
body.is-teacher-dashboard .td-course-note { background: #f5f8fd; border-color: #e0e8f2; margin: 18px 20px; padding: 16px 18px; }
body.is-teacher-dashboard .td-course-note h3 { color: #304d6b; font-size: 13px; font-weight: 600; }
body.is-teacher-dashboard .td-course-note p[data-teacher-course-note-body] { color: #52677e; display: block; font-size: 13px; line-height: 1.6; overflow: visible; -webkit-line-clamp: unset; }
body.is-teacher-dashboard .td-course-note-action { border-radius: 8px; font-size: 12px; font-weight: 500; min-height: 44px; }
body.is-teacher-dashboard .td-outline { padding: 0 20px 20px; }
body.is-teacher-dashboard .td-module { border: 1px solid #dce5ef; border-radius: 12px; margin: 0 0 12px; overflow: visible; }
body.is-teacher-dashboard .td-module:last-child { margin-bottom: 0; }
body.is-teacher-dashboard .td-module > summary,
body.is-teacher-dashboard .td-module[open] > summary { background: #f7faff; border-radius: 12px; min-height: 76px; padding: 16px; }
body.is-teacher-dashboard .td-module[open] > summary { border-bottom: 1px solid #e2e9f2; border-radius: 12px 12px 0 0; }
body.is-teacher-dashboard .td-module > summary .td-module-copy strong { color: #223b56; font-size: 15px; font-weight: 600; line-height: 1.45; }
body.is-teacher-dashboard .td-module > summary .td-module-copy small { color: #52677e; font-size: 12px; font-weight: 400; }
body.is-teacher-dashboard .td-module-index { background: #eaf1fd; border-radius: 8px; color: #315f9f; font-size: 12px; font-weight: 600; height: 36px; width: 36px; }
body.is-teacher-dashboard .td-module-lessons { padding: 0 16px; }
body.is-teacher-dashboard .td-module-lessons::before { display: none; }
body.is-teacher-dashboard .td-lesson-row { gap: 12px; min-height: 76px; }
body.is-teacher-dashboard .td-program-card .td-lesson-copy strong { color: #29435f; font-size: 14px; font-weight: 500; line-height: 1.45; }
body.is-teacher-dashboard .td-program-card .td-lesson-copy small { color: #52677e; font-size: 12px; font-weight: 400; }
body.is-teacher-dashboard .td-program-card :is(.td-module-copy, .td-lesson-copy) :is(strong, small) { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
body.is-teacher-dashboard .td-lesson-order { color: #4b6a8a; font-size: 12px; font-weight: 500; }
body.is-teacher-dashboard .td-lesson-actions > button,
body.is-teacher-dashboard .td-module-actions > button { border-radius: 8px; font-size: 12px; font-weight: 500; min-height: 44px; }
body.is-teacher-dashboard .td-row-menu > summary { border-radius: 8px; height: 44px; min-height: 44px; width: 44px; }
body.is-teacher-dashboard .td-program-card .td-row-menu > div button { font-size: 13px; min-height: 44px; }
body.is-teacher-dashboard .td-module-actions { padding: 12px 16px; }

body.is-teacher-dashboard .teacher-student-row { gap: 20px; min-height: 78px; padding: 18px 22px; }
body.is-teacher-dashboard .teacher-student-row.head { background: #f8faff; color: #52677e; font-size: 12px; font-weight: 500; min-height: 46px; }
body.is-teacher-dashboard .teacher-student-row strong { color: #28425f; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
body.is-teacher-dashboard .teacher-student-row small { color: #52677e; font-size: 12px; overflow-wrap: anywhere; }
body.is-teacher-dashboard .teacher-student-row > span { color: #52677e; font-size: 13px; }
body.is-teacher-dashboard .student-risk { font-size: 11px; font-weight: 500; text-transform: none; }
body.is-teacher-dashboard .student-risk.risk { color: #805017; }
body.is-teacher-dashboard .teacher-question-card,
body.is-teacher-dashboard .teacher-review-card { padding: 22px; }
body.is-teacher-dashboard .teacher-question-card header strong,
body.is-teacher-dashboard .teacher-review-card header strong { color: #28425f; font-size: 16px; font-weight: 600; }
body.is-teacher-dashboard .teacher-question-card header small,
body.is-teacher-dashboard .teacher-review-card header small { color: #52677e; font-size: 12px; line-height: 1.5; }
body.is-teacher-dashboard .teacher-question-card p,
body.is-teacher-dashboard .teacher-review-card p { color: #3e5874; font-size: 14px; line-height: 1.65; }
body.is-teacher-dashboard .teacher-question-answer-form button,
body.is-teacher-dashboard .teacher-review-card button { border-radius: 8px; font-size: 13px; min-height: 44px; }
body.is-teacher-dashboard .teacher-review-section-head { padding: 20px 22px; }
body.is-teacher-dashboard .teacher-review-section-head h2 { font-size: 19px; font-weight: 600; }
body.is-teacher-dashboard .teacher-review-section-head p { color: #52677e; font-size: 13px; }
body.is-teacher-dashboard .teacher-review-section-head > div > span { color: #52677e; font-size: 11px; }

body.is-teacher-dashboard .teacher-assignment-list { display: grid; gap: 12px; }
body.is-teacher-dashboard .td-assessment-surface { background: transparent; border: 0; box-shadow: none; overflow: visible; }
body.is-teacher-dashboard .td-evaluation-row { background: #ffffff; border: 1px solid #dce5ef; border-radius: 14px; gap: 16px; grid-template-columns: 46px minmax(0, 1fr) auto 18px; min-height: 104px; padding: 20px; }
body.is-teacher-dashboard .td-evaluation-row:hover { background: #fafdff; border-color: #b5cbe5; }
body.is-teacher-dashboard .td-evaluation-row.has-pending { border-left: 3px solid #c38a36; }
body.is-teacher-dashboard .td-evaluation-kind { border-radius: 10px; font-size: 22px; height: 46px; width: 46px; }
body.is-teacher-dashboard .td-evaluation-copy strong { color: #233d59; font-size: 16px; font-weight: 600; line-height: 1.4; }
body.is-teacher-dashboard .td-evaluation-copy small,
body.is-teacher-dashboard .td-evaluation-copy em { color: #52677e; font-size: 12px; font-style: normal; line-height: 1.5; }
body.is-teacher-dashboard .td-evaluation-state { background: #f1f5fa; border-radius: 20px; padding: 7px 11px; }
body.is-teacher-dashboard .td-evaluation-state strong { color: #536980; font-size: 12px; font-weight: 500; }
body.is-teacher-dashboard .td-evaluation-state.has-pending { background: #fff4e1; }
body.is-teacher-dashboard .td-evaluation-state.has-pending strong { color: #805017; }
body.is-teacher-dashboard .td-assessment-automation { border-radius: 12px; margin-top: 22px; }
body.is-teacher-dashboard .td-assessment-automation > summary { min-height: 76px; padding: 16px 20px; }
body.is-teacher-dashboard .td-assessment-automation > summary strong { color: #304d6b; font-size: 14px; font-weight: 600; }
body.is-teacher-dashboard .td-assessment-automation > summary small { color: #52677e; font-size: 12px; }
body.is-teacher-dashboard .td-assessment-automation-body > p { color: #52677e; font-size: 13px; line-height: 1.6; padding: 18px 20px; }

body.is-teacher-dashboard .td-session-row { gap: 16px; min-height: 98px; padding: 20px 22px; }
body.is-teacher-dashboard .td-session-copy h3 { color: #28425f; font-size: 16px; font-weight: 600; line-height: 1.45; }
body.is-teacher-dashboard .td-session-copy p { color: #52677e; font-size: 13px; }
body.is-teacher-dashboard .td-session-actions > button,
body.is-teacher-dashboard .td-session-more > summary { font-size: 12px; font-weight: 500; min-height: 44px; }
body.is-teacher-dashboard .td-session-more > summary { height: 44px; width: 44px; }
body.is-teacher-dashboard .td-session-more button { font-size: 13px; min-height: 44px; }
body.is-teacher-dashboard .empty-state { background: #ffffff; border-radius: 14px; padding: 38px 24px; }
body.is-teacher-dashboard .empty-state strong { color: #304d6b; font-size: 15px; font-weight: 600; }
body.is-teacher-dashboard .empty-state p { color: #52677e; font-size: 13px; line-height: 1.6; }

body.is-teacher-dashboard .td-task-dialog { background: #ffffff; border: 1px solid #d6e2ee; border-radius: 18px; height: fit-content; margin: auto; max-height: calc(100dvh - 40px); max-width: calc(100vw - 32px); overflow: hidden; padding: 0; width: min(720px, calc(100vw - 32px)); }
body.is-teacher-dashboard .td-task-dialog[open] { animation: none; opacity: 1; transform: none; }
body.is-teacher-dashboard .td-task-dialog .td-dialog-shell { border: 0; border-radius: inherit; box-shadow: none; max-height: inherit; min-height: 0; }
body.is-teacher-dashboard .td-task-dialog::backdrop { background: rgb(19 39 66 / 48%); backdrop-filter: blur(3px); }
body.is-teacher-dashboard .td-assessment-detail-dialog { width: min(1040px, calc(100vw - 32px)); }
body.is-teacher-dashboard .td-dialog-head { align-items: flex-start; background: #f7faff; border-bottom: 1px solid #dfe8f2; gap: 16px; padding: 24px; }
body.is-teacher-dashboard .td-dialog-head h2 { color: #20364f; font-size: 23px; font-weight: 600; line-height: 1.3; }
body.is-teacher-dashboard .td-dialog-head p { color: #52677e; font-size: 13px; line-height: 1.6; }
body.is-teacher-dashboard .td-dialog-head > button { background: #ffffff; border: 1px solid #d4dfed; border-radius: 9px; color: #52677e; flex-basis: 44px; font-size: 23px; height: 44px; min-height: 44px; width: 44px; }
body.is-teacher-dashboard .td-task-dialog label > span { color: #3c5875; font-size: 13px; font-weight: 500; }
body.is-teacher-dashboard :is(.td-task-dialog, .td-structure-composer, .teacher-question-answer-form, .teacher-review-reply-form) :is(input, select, textarea) { border-color: #d0ddeb; border-radius: 8px; color: #28425f; font-size: 14px; line-height: 1.5; min-height: 44px; padding: 11px 12px; }
body.is-teacher-dashboard .td-task-dialog input[type="radio"] { height: 20px; min-height: 20px; padding: 0; width: 20px; }
body.is-teacher-dashboard .td-task-dialog .td-dialog-shell input:not([type="radio"]):not([type="file"]),
body.is-teacher-dashboard .td-task-dialog .td-dialog-shell select,
body.is-teacher-dashboard .td-task-dialog .td-dialog-shell textarea { color: #28425f; font-size: 14px; font-weight: 400; min-height: 44px; padding: 11px 12px; }
body.is-teacher-dashboard .td-task-dialog :is(small, legend) { color: #52677e; font-size: 12px; line-height: 1.5; }
body.is-teacher-dashboard .td-task-dialog :is(button, summary) { font-size: 13px; font-weight: 500; min-height: 44px; }
body.is-teacher-dashboard .td-task-dialog .td-file-drop { background: #f6f9ff; border-color: #bbcfe8; border-radius: 12px; padding: 24px 16px; }
body.is-teacher-dashboard .td-file-drop strong { color: #315579; font-size: 14px; font-weight: 600; }
body.is-teacher-dashboard .td-dialog-actions { background: #f9fbfd; padding: 18px 24px; }
body.is-teacher-dashboard .td-assessment-detail-content { padding: 22px; }
body.is-teacher-dashboard .td-assessment-detail-content :is(p, label, strong) { font-size: 13px; line-height: 1.6; }
body.is-teacher-dashboard .td-assessment-detail-content .td-empty-row p { color: #52677e; font-weight: 400; }
body.is-teacher-dashboard .td-assessment-detail-dialog .td-dialog-head { padding: 24px; }
body.is-teacher-dashboard .td-assessment-detail-dialog .td-dialog-head h2 { font-size: 23px; }
body.is-teacher-dashboard .td-assessment-detail-dialog .td-dialog-head > button { flex-basis: 44px; height: 44px; min-height: 44px; width: 44px; }
body.is-teacher-dashboard .td-assessment-detail-content .td-review-grade-row textarea { font-size: 14px; }
body.is-teacher-dashboard .td-assets .td-asset { padding: 16px; }
body.is-teacher-dashboard .td-assets strong { color: #28425f; font-size: 14px; font-weight: 500; }
body.is-teacher-dashboard .td-assets small { color: #52677e; font-size: 12px; }
body.is-teacher-dashboard .td-task-dialog .td-input-suffix > span { color: #52677e; font-size: 12px; font-weight: 500; }
body.is-teacher-dashboard .td-library-dialog .td-file-type.muted { color: #4b627a; font-size: 10px; font-weight: 600; }
body.is-teacher-dashboard .td-library-dialog .td-published-state.neutral { color: #52677e; font-size: 10px; font-weight: 500; }
body.is-teacher-dashboard .td-library-dialog .td-asset-copy strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
body.is-teacher-dashboard .td-library-dialog .td-asset-copy small { color: #52677e; font-size: 12px; }
body.is-teacher-dashboard .td-library-dialog .td-asset-copy :is(strong, small) { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
body.is-teacher-dashboard .td-library-dialog .td-library-search { margin: 16px; width: calc(100% - 32px); }
body.is-teacher-dashboard .td-library-dialog .td-library-search input { background: transparent; border: 0; border-radius: 0; box-shadow: none; flex: 1 1 0; min-width: 0; padding: 11px 0; width: 100%; }
body.is-teacher-dashboard .td-library-dialog .td-library-search input:focus-visible { box-shadow: none; outline: 0; }
body.is-teacher-dashboard .td-task-dialog .td-quiz-question legend small { color: #52677e; font-size: 12px; }
body.is-teacher-dashboard .td-task-dialog .td-review-file-option > summary small { color: #52677e; font-size: 12px; font-weight: 400; }

@media (max-width: 1100px) {
  body.is-teacher-dashboard .td-navigation-toggle > span { display: none; }
  body.is-teacher-dashboard .td-navigation-toggle { justify-content: center; width: 44px; }
  body.is-teacher-dashboard .td-page-head { align-items: flex-start; flex-wrap: wrap; }
  body.is-teacher-dashboard .td-page-head > .td-search { width: 100%; }
}

@media (max-width: 900px) {
  body.is-teacher-dashboard:not(.is-course-player) { --td-sidebar-width: 0px; }
  body.is-teacher-dashboard:not(.is-course-player) .learning-main { padding: calc(var(--td-header-height) + 20px) 20px 48px; }
  body.is-teacher-dashboard:not(.is-course-player) .teacher-course-panel.td-sidebar { bottom: 0; height: 100dvh; left: 0; max-height: 100dvh; padding: 20px 16px; top: 0; transform: translateX(-100%); visibility: hidden; width: min(280px, calc(100vw - 48px)); z-index: 101; }
  body.is-teacher-dashboard.teacher-navigation-open:not(.is-course-player) .teacher-course-panel.td-sidebar { transform: translateX(0); visibility: visible; }
  body.is-teacher-dashboard.teacher-navigation-open { overflow: hidden; }
  body.is-teacher-dashboard .td-navigation-backdrop:not([hidden]) { background: rgb(19 39 66 / 42%); border: 0; display: block; height: 100dvh; inset: 0; margin: 0; padding: 0; position: fixed; width: 100vw; z-index: 100; }
  body.is-teacher-dashboard .td-navigation-close:not([hidden]) { align-items: center; background: #f3f7fc; border: 1px solid #d8e3ef; border-radius: 8px; color: #415d7a; display: flex; flex: 0 0 auto; height: 44px; justify-content: center; margin-left: auto; width: 44px; }
  body.is-teacher-dashboard .td-workspace-toolbar { gap: 12px; margin-bottom: 24px; padding: 14px; }
  body.is-teacher-dashboard .td-workspace-publication { font-size: 10px; padding: 5px 8px; }
  body.is-teacher-dashboard .td-workspace-context > strong { font-size: 14px; }
  body.is-teacher-dashboard .teacher-student-row { gap: 12px; padding: 16px 18px; }
}

@media (max-width: 640px) {
  body.is-teacher-dashboard:not(.is-course-player) .learning-main { padding: calc(var(--td-header-height) + 16px) 14px 40px; }
  body.is-teacher-dashboard .td-workspace-toolbar { align-items: flex-start; gap: 10px; padding: 12px; }
  body.is-teacher-dashboard .td-workspace-context { flex: 1; }
  body.is-teacher-dashboard .td-workspace-publication { display: none; }
  body.is-teacher-dashboard .td-page-head, body.is-teacher-dashboard .td-assessment-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
  body.is-teacher-dashboard .td-page-head h1, body.is-teacher-dashboard .td-assessment-heading h2 { font-size: 25px; }
  body.is-teacher-dashboard .td-live-toolbar, body.is-teacher-dashboard .td-new-assessment { width: 100%; }
  body.is-teacher-dashboard .td-live-toolbar > button, body.is-teacher-dashboard .td-new-assessment > summary { justify-content: center; width: 100%; }
  body.is-teacher-dashboard .td-new-assessment > div { min-width: 0; width: 100%; }
  body.is-teacher-dashboard .td-summary-strip { gap: 8px; }
  body.is-teacher-dashboard .td-summary-strip > article { gap: 7px; padding: 14px 10px; }
  body.is-teacher-dashboard .td-summary-strip > article > span { font-size: 11px; line-height: 1.4; }
  body.is-teacher-dashboard .td-summary-strip > article > strong { font-size: 23px; }
  body.is-teacher-dashboard .td-section-head { align-items: flex-start; flex-wrap: wrap; padding: 18px 16px; }
  body.is-teacher-dashboard .td-program-card > .td-program-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 18px 16px; }
  body.is-teacher-dashboard .td-program-card > .td-program-toolbar > .td-program-actions { display: grid; flex: 1 1 100%; gap: 8px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); width: 100%; }
  body.is-teacher-dashboard .td-program-actions > button { font-size: 12px; padding: 10px; }
  body.is-teacher-dashboard .td-course-note { align-items: start; gap: 12px; margin: 14px 12px; padding: 14px; }
  body.is-teacher-dashboard .td-course-note-action > svg { display: none; }
  body.is-teacher-dashboard .td-outline { padding: 0 12px 12px; }
  body.is-teacher-dashboard .td-module > summary, body.is-teacher-dashboard .td-module[open] > summary { gap: 10px; padding: 14px 12px; }
  body.is-teacher-dashboard .td-module-copy strong { font-size: 14px; }
  body.is-teacher-dashboard .td-module-lessons { padding: 0 12px; }
  body.is-teacher-dashboard .td-lesson-row { column-gap: 8px; grid-template-columns: 28px minmax(0, 1fr); padding: 14px 0; row-gap: 12px; }
  body.is-teacher-dashboard .td-lesson-actions { grid-column: 2; justify-content: flex-start; }
  body.is-teacher-dashboard .td-evaluation-row { gap: 10px; grid-template-columns: 40px minmax(0, 1fr) 16px; padding: 16px; }
  body.is-teacher-dashboard .td-evaluation-kind { height: 40px; width: 40px; }
  body.is-teacher-dashboard .td-evaluation-copy strong { font-size: 15px; }
  body.is-teacher-dashboard .td-evaluation-state { grid-column: 2; grid-row: 2; justify-self: start; }
  body.is-teacher-dashboard .td-evaluation-row > svg { grid-column: 3; grid-row: 1; }
  body.is-teacher-dashboard .td-assessment-automation > summary { padding: 16px; }
  body.is-teacher-dashboard .td-session-row { padding: 18px 16px; }
  body.is-teacher-dashboard .teacher-question-card, body.is-teacher-dashboard .teacher-review-card { padding: 18px 16px; }
  body.is-teacher-dashboard .teacher-review-section-head { align-items: start; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  body.is-teacher-dashboard .teacher-review-section-head [data-teacher-review-summary] { align-items: center; display: flex; gap: 12px; justify-content: flex-start; }
  body.is-teacher-dashboard .teacher-review-section-head p { line-height: 1.6; }
  body.is-teacher-dashboard :is(.teacher-question-answer-form, .teacher-review-reply-form) textarea { font-size: 16px; }
  body.is-teacher-dashboard .td-task-dialog { border-radius: 14px; max-height: calc(100dvh - 24px); max-width: calc(100vw - 20px); width: calc(100vw - 20px); }
  body.is-teacher-dashboard .td-task-dialog form { flex: 0 0 auto; }
  body.is-teacher-dashboard .td-task-dialog form .td-dialog-actions { margin-top: 6px; }
  body.is-teacher-dashboard .td-dialog-head { padding: 18px 16px; }
  body.is-teacher-dashboard .td-dialog-head h2 { font-size: 21px; }
  body.is-teacher-dashboard .td-dialog-actions { padding: 16px; }
  body.is-teacher-dashboard .td-task-dialog .td-dialog-shell input:not([type="radio"]):not([type="file"]),
  body.is-teacher-dashboard .td-task-dialog .td-dialog-shell select,
  body.is-teacher-dashboard .td-task-dialog .td-dialog-shell textarea { font-size: 16px; }
  body.is-teacher-dashboard .td-assessment-detail-content { padding: 16px; }
  body.is-teacher-dashboard .td-assessment-detail-dialog .td-dialog-head { padding: 18px 16px; }
  body.is-teacher-dashboard .td-assessment-detail-dialog .td-dialog-head h2 { font-size: 21px; }
  body.is-teacher-dashboard .td-assessment-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.is-teacher-dashboard .teacher-view *, body.is-teacher-dashboard .td-task-dialog * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
