:root {
  --ink: #14324a;
  --muted: #62748a;
  --line: #d8e4ee;
  --paper: #f5f9fc;
  --white: #ffffff;
  --purple: #2f73d9;
  --purple-dark: #1f5eb8;
  --blue: #2f73d9;
  --blue-dark: #1d5ca9;
  --teal: #10a7a0;
  --green: #16845b;
  --amber: #b97716;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 58px rgba(30, 74, 110, 0.14);
  --soft-shadow: 0 10px 26px rgba(30, 74, 110, 0.1);
}

/* Aula del alumno v3: experiencia inmersiva inspirada en la jerarquía del reproductor de Udemy. */
[data-player-only] {
  display: none;
}

body.is-course-player {
  background: #fff;
  color: #1d1e27;
  overflow-x: hidden;
}

body.is-course-player .topbar {
  align-items: center;
  background: #17181f;
  border: 0;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 52px;
  min-height: 52px;
  padding: 0 12px;
  position: relative;
  top: auto;
  width: 100%;
  z-index: 80;
}

body.is-course-player .brand-button {
  align-items: center;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

body.is-course-player .brand-button .brand-mark {
  background: #2764AE;
  border-radius: 7px 7px 7px 2px;
  height: 34px;
  width: 34px;
}

body.is-course-player .brand-button > span:last-child strong {
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

body.is-course-player .brand-button > span:last-child small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

body.is-course-player .student-topbar-nav,
body.is-course-player .teacher-topbar-nav,
body.is-course-player .topbar-actions,
body.is-course-player .player-context-data {
  display: none !important;
}

body.is-course-player .course-player-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

body.is-course-player .course-player-heading > span {
  background: rgba(255, 255, 255, 0.28);
  height: 24px;
  width: 1px;
}

body.is-course-player .course-player-heading strong {
  color: #fff;
  display: block;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-course-player .course-player-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

body.is-course-player .course-player-actions > button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 7px;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 6px 11px;
}

body.is-course-player .course-player-actions svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 17px;
}

body.is-course-player .player-progress-button {
  border-color: transparent;
  padding-left: 5px;
}

body.is-course-player .player-progress-button > span:nth-child(2) {
  display: grid;
  gap: 1px;
  text-align: left;
}

body.is-course-player .player-progress-button strong,
body.is-course-player .player-progress-button small {
  color: #fff;
  font-size: 10px;
  line-height: 1.05;
}

body.is-course-player .player-progress-button small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
}

.player-progress-ring {
  align-items: center;
  background: conic-gradient(#2764AE var(--progress), rgba(255, 255, 255, 0.22) 0);
  border-radius: 999px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
}

.player-progress-ring::before {
  background: #17181f;
  border-radius: inherit;
  content: "";
  inset: 3px;
  position: absolute;
}

body.is-course-player .player-progress-ring svg {
  height: 18px;
  position: relative;
  width: 18px;
}

body.is-course-player .player-action-chevron {
  height: 12px;
  width: 12px;
}

.player-topbar-popover {
  background: #fff;
  border: 1px solid #d7d9e2;
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(12, 16, 23, 0.24);
  color: #252631;
  display: grid;
  gap: 7px;
  padding: 15px;
  position: absolute;
  right: 72px;
  top: 47px;
  width: 260px;
  z-index: 100;
}

.player-topbar-popover > span {
  color: #6b6d78;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-topbar-popover > strong {
  font-size: 17px;
}

.player-topbar-popover > small {
  color: #6b6d78;
  font-size: 10px;
}

.player-progress-popover > div {
  background: #e4e6eb;
  height: 5px;
  overflow: hidden;
}

.player-progress-popover > div i {
  background: #2764AE;
  display: block;
  height: 100%;
  width: var(--progress);
}

.player-topbar-popover button {
  background: transparent;
  border: 0;
  color: #164194;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 0 0;
  text-align: left;
}

.player-toast {
  background: #fff;
  border: 1px solid #d7d9df;
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #252631;
  font-size: 11px;
  left: 50%;
  margin: 0;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 15px;
  position: fixed;
  top: 64px;
  transform: translateX(-50%);
  z-index: 160;
}

body.is-course-player .learning-main {
  margin: 0;
  max-width: none;
  padding: 0;
}

body.is-course-player .player-view,
body.is-course-player .player-layout,
body.is-course-player .player-column {
  gap: 0;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding: 0;
}

body.is-course-player .player-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  position: relative;
  transition: grid-template-columns 180ms ease;
}

body.is-course-player.is-curriculum-collapsed .player-layout {
  grid-template-columns: minmax(0, 1fr) 0;
}

body.is-course-player .video-player,
body.is-course-player .player-stage,
body.is-course-player .video-screen {
  background: #1b1c1f;
  border: 0;
  border-radius: 0;
}

body.is-course-player .player-stage {
  height: clamp(460px, calc(100vh - 275px), 680px);
  overflow: hidden;
  position: relative;
}

body.is-course-player .video-screen {
  align-items: center;
  aspect-ratio: auto;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

body.is-course-player .video-screen > span[data-lesson-kicker],
body.is-course-player .video-screen > h2[data-lesson-title],
body.is-course-player .video-screen > p[data-lesson-summary] {
  display: none;
}

body.is-course-player .main-recording-video {
  background: #1b1c1f;
  height: 100%;
  max-height: none;
  object-fit: contain;
  width: 100%;
}

.player-video-status {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent);
  display: grid;
  gap: 2px;
  inset: 0 0 auto;
  padding: 16px 22px 48px;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.player-video-status span {
  color: #ffad7f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.player-video-status strong {
  color: #fff;
  font-size: 13px;
}

.player-center-play {
  align-items: center;
  background: rgba(20, 21, 25, 0.94);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 92px;
  justify-content: center;
  left: 50%;
  padding-left: 7px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
  width: 92px;
  z-index: 5;
}

.player-center-play svg {
  fill: currentColor;
  height: 45px;
  width: 45px;
}

.video-screen.is-playing .player-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.video-screen.is-playing .player-video-status {
  opacity: 0;
}

.player-video-controls {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.72) 62%, transparent);
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 34px 8px 7px;
  position: absolute;
  right: 0;
  z-index: 7;
}

.player-video-timeline {
  appearance: none;
  background: linear-gradient(90deg, #2764AE var(--watched), rgba(255, 255, 255, 0.55) 0);
  cursor: pointer;
  display: block;
  height: 4px;
  margin: 0 0 7px;
  width: 100%;
}

.player-video-timeline::-webkit-slider-thumb {
  appearance: none;
  background: #2764AE;
  border: 0;
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

.player-controls-row,
.player-controls-left,
.player-controls-right {
  align-items: center;
  display: flex;
}

.player-controls-row {
  justify-content: space-between;
}

.player-controls-left,
.player-controls-right {
  gap: 2px;
}

.player-video-controls button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 7px;
  width: 38px;
}

.player-video-controls button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.player-video-controls button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.player-video-controls button svg text {
  fill: currentColor;
  font-size: 7px;
  stroke: none;
}

.player-video-controls .icon-play {
  fill: currentColor;
  stroke: none;
}

.player-video-controls .icon-pause {
  display: none;
}

.video-screen.is-playing .player-video-controls .icon-play {
  display: none;
}

.video-screen.is-playing .player-video-controls .icon-pause {
  display: block;
}

.player-video-controls .player-speed-button {
  font-size: 11px;
  font-weight: 900;
  width: 42px;
}

.player-time {
  color: #fff;
  font-size: 10px;
  margin: 0 6px;
  white-space: nowrap;
}

.player-video-controls .player-add-note-control {
  gap: 5px;
  padding-inline: 9px;
  width: auto;
}

.player-add-note-control span {
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.player-volume {
  accent-color: #2764AE;
  cursor: pointer;
  width: 70px;
}

.player-ended-card {
  background: rgba(17, 24, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 8px;
  left: 50%;
  min-width: 290px;
  padding: 20px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.player-ended-card span {
  color: #ffad7f;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-ended-card button {
  background: #2764AE;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 10px;
}

.lesson-edge-control {
  align-items: center;
  background: #2764AE;
  border: 0;
  border-radius: 0 7px 7px 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  z-index: 12;
}

.lesson-edge-next {
  border-radius: 7px 0 0 7px;
  right: 0;
}

.lesson-edge-previous {
  left: 0;
}

.lesson-edge-control:disabled {
  display: none;
}

.lesson-edge-control svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

body.is-course-player .content-tabs {
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid #d7d9df;
  border-top: 0;
  display: flex;
  gap: 0;
  min-height: 49px;
  overflow-x: auto;
  padding: 0 12px;
  scrollbar-width: none;
  white-space: nowrap;
}

body.is-course-player .content-tabs::-webkit-scrollbar {
  display: none;
}

body.is-course-player .content-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #747686;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  min-height: 49px;
  padding: 0 14px;
}

body.is-course-player .content-tabs button:hover {
  background: transparent;
  color: #252631;
}

body.is-course-player .content-tabs button.active {
  background: transparent;
  border-bottom-color: #252631;
  color: #252631;
}

body.is-course-player .content-tabs .content-search-tab {
  padding: 0 8px;
  width: 40px;
}

body.is-course-player .content-tabs .content-search-tab svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  width: 17px;
}

body.is-course-player .content-panel {
  background: #fff;
  border: 0;
  margin: 0;
  max-width: none;
  min-height: 420px;
  padding: 36px 24px 90px;
}

body.is-course-player .student-section {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

body.is-course-player .curriculum-panel {
  align-self: start;
  background: #f7f8fa;
  border: 0;
  border-left: 1px solid #d5d7df;
  box-shadow: none;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  height: 100vh;
  max-height: none;
  overflow: hidden;
  position: sticky;
  right: auto;
  top: 0;
  width: 400px;
  z-index: 35;
}

body.is-course-player.is-curriculum-collapsed .curriculum-panel {
  display: none;
  width: 0;
}

body.is-course-player .curriculum-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d7d9df;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  height: 52px;
  min-height: 52px;
  padding: 0 8px 0 15px;
  position: relative;
  z-index: 3;
}

.curriculum-head-tabs {
  align-self: stretch;
  display: flex;
  min-width: 0;
}

.curriculum-head-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #777988;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  padding: 0 7px;
}

.curriculum-head-tabs button.active {
  border-bottom-color: #252631;
  color: #252631;
}

.curriculum-head-tabs svg {
  fill: none;
  height: 16px;
  stroke: #2764AE;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 16px;
}

body.is-course-player .curriculum-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #555866;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

body.is-course-player .curriculum-toggle svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  transform: none;
  width: 17px;
}

body.is-course-player .curriculum-side-panel {
  min-height: 0;
  overflow: hidden;
}

body.is-course-player [data-curriculum-side-panel="content"] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.curriculum-course-summary {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d7d9df;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 16px;
}

.curriculum-course-summary strong,
.curriculum-course-summary span {
  color: #686a77;
  font-size: 9px;
  font-weight: 700;
}

body.is-course-player .curriculum-list {
  align-content: start;
  background: #f7f8fa;
  display: grid;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8b8d95 transparent;
  scrollbar-width: thin;
}

body.is-course-player .curriculum-module {
  background: #f7f8fa;
  border: 0;
  border-bottom: 1px solid #d7d9df;
}

body.is-course-player .curriculum-module summary,
body.is-course-player .curriculum-module[open] summary {
  align-items: center;
  background: #f7f8fa;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) 20px;
  min-height: 76px;
  padding: 12px 16px;
}

.curriculum-module-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.is-course-player .curriculum-module-copy strong {
  color: #252631;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

body.is-course-player .curriculum-module-copy small {
  color: #60626e;
  font-size: 9px;
}

body.is-course-player .curriculum-module-chevron {
  color: #444653;
  grid-column: 2;
  grid-row: 1;
  height: 20px;
  width: 20px;
}

body.is-course-player .curriculum-module-chevron svg {
  height: 17px;
  width: 17px;
}

.curriculum-lesson-list {
  display: grid;
}

body.is-course-player .lesson-row {
  align-items: start;
  background: #fff;
  border: 0;
  border-top: 1px solid #e3e4e9;
  box-shadow: none;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 63px;
  padding: 11px 16px;
  text-align: left;
}

body.is-course-player .lesson-row:hover {
  background: #f2f3f5;
}

body.is-course-player .lesson-row.active {
  background: #ececf1;
  box-shadow: inset 3px 0 0 #2764AE;
}

body.is-course-player .lesson-status {
  align-items: center;
  background: transparent;
  border: 1.5px solid #40424d;
  border-radius: 1px;
  color: #fff;
  display: inline-flex;
  height: 16px;
  justify-content: center;
  margin-top: 1px;
  width: 16px;
}

body.is-course-player .lesson-row.done .lesson-status {
  background: #2764AE;
  border-color: #2764AE;
}

body.is-course-player .lesson-status svg {
  fill: none;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 13px;
}

.lesson-row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.is-course-player .lesson-row-copy strong {
  color: #343641;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

body.is-course-player .lesson-row-copy small {
  align-items: center;
  color: #656774;
  display: inline-flex;
  font-size: 9px;
  gap: 4px;
}

.lesson-row-copy small svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.3;
  width: 12px;
}

.curriculum-open-button {
  align-items: center;
  background: #2764AE;
  border: 0;
  border-radius: 6px 0 0 6px;
  color: #fff;
  cursor: pointer;
  display: none;
  gap: 6px;
  padding: 10px 12px;
  position: fixed;
  right: 0;
  top: 76px;
  z-index: 72;
}

body.is-course-player.is-curriculum-collapsed .curriculum-open-button {
  display: inline-flex;
}

.curriculum-open-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 16px;
}

.curriculum-open-button span {
  font-size: 9px;
  font-weight: 850;
}

.curriculum-scrim {
  display: none;
}

.curriculum-assistant {
  background: #fff;
  overflow-y: auto;
  padding: 22px 18px 30px;
}

.curriculum-assistant-intro {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.curriculum-assistant-intro > span {
  align-items: center;
  background: #EDF4FB;
  border-radius: 8px;
  color: #164194;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.curriculum-assistant-intro svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 21px;
}

.curriculum-assistant-intro div {
  display: grid;
  gap: 2px;
}

.curriculum-assistant-intro small {
  color: #164194;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.curriculum-assistant-intro strong {
  color: #252631;
  font-size: 13px;
}

.curriculum-assistant > p {
  color: #696b76;
  font-size: 10px;
  line-height: 1.55;
  margin: 15px 0;
}

.curriculum-assistant-prompts {
  display: grid;
  gap: 7px;
}

.curriculum-assistant-prompts button {
  background: #f7f8fa;
  border: 1px solid #dedfe5;
  border-radius: 5px;
  color: #333540;
  cursor: pointer;
  font-size: 10px;
  padding: 10px;
  text-align: left;
}

.curriculum-assistant-answer {
  background: #f0f6f3;
  border-left: 3px solid #1D71B8;
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 12px;
}

.curriculum-assistant-answer span {
  color: #1D71B8;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.curriculum-assistant-answer p {
  color: #41454a;
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.curriculum-assistant-form {
  display: grid;
  gap: 8px;
}

.curriculum-assistant-form textarea {
  border: 1px solid #cfd1d8;
  border-radius: 5px;
  font: inherit;
  font-size: 10px;
  padding: 10px;
  resize: vertical;
}

.curriculum-assistant-form button,
.assistant-teacher-link {
  background: #164194;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 12px;
}

.assistant-teacher-link {
  background: transparent;
  color: #164194;
  margin-top: 8px;
  width: 100%;
}

/* Paneles inferiores del reproductor. */
.course-overview-udemy {
  color: #282a34;
}

.course-overview-udemy > header,
.announcements-udemy > header,
.reviews-udemy > header {
  border-bottom: 1px solid #e2e3e8;
  padding-bottom: 24px;
}

.course-overview-udemy > header > span,
.announcements-udemy > header > span,
.reviews-udemy > header > span,
.notes-udemy > header span {
  color: #164194;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.course-overview-udemy h2,
.announcements-udemy h2,
.reviews-udemy h2,
.notes-udemy h2 {
  color: #252631;
  font-size: 25px;
  letter-spacing: -0.025em;
  margin: 6px 0 10px;
}

.course-overview-udemy header p,
.announcements-udemy header p,
.reviews-udemy header p,
.notes-udemy header p {
  color: #666873;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.course-overview-facts {
  border-bottom: 1px solid #e2e3e8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-overview-facts article {
  display: grid;
  gap: 4px;
  padding: 20px 18px;
}

.course-overview-facts article + article {
  border-left: 1px solid #e2e3e8;
}

.course-overview-facts span {
  color: #797b86;
  font-size: 9px;
}

.course-overview-facts strong {
  color: #282a34;
  font-size: 12px;
}

.course-overview-facts small {
  color: #777985;
  font-size: 9px;
}

.course-overview-about {
  align-items: center;
  border-bottom: 1px solid #e2e3e8;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 25px 0;
}

.course-overview-about h3 {
  color: #252631;
  font-size: 16px;
  margin: 0 0 7px;
}

.course-overview-about p,
.course-instructor-row p {
  color: #646671;
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.course-overview-about button {
  background: transparent;
  border: 1px solid #252631;
  border-radius: 4px;
  color: #252631;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 10px 13px;
}

.course-instructor-row {
  display: grid;
  gap: 13px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 25px 0;
}

.course-instructor-row > span,
.announcements-udemy article > span {
  align-items: center;
  background: #164194;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.course-instructor-row div {
  display: grid;
  gap: 3px;
}

.course-instructor-row small {
  color: #898b95;
  font-size: 8px;
  text-transform: uppercase;
}

.course-instructor-row strong {
  font-size: 13px;
}

.qa-udemy {
  max-width: 800px !important;
}

.qa-assistant-banner {
  align-items: center;
  background: #f1f5f1;
  border: 1px solid #d8e2dc;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 18px 22px;
}

.qa-assistant-banner > span {
  color: #2764AE;
}

.qa-assistant-banner svg {
  fill: none;
  height: 30px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 30px;
}

.qa-assistant-banner div {
  display: grid;
  gap: 4px;
}

.qa-assistant-banner strong {
  color: #30323d;
  font-size: 13px;
}

.qa-assistant-banner p {
  color: #666873;
  font-size: 10px;
  margin: 0;
}

.qa-assistant-banner button {
  background: #1D71B8;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  min-height: 38px;
  padding: 9px 13px;
}

.qa-search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin-top: 24px;
}

.qa-search-row input,
.qa-filter-row select {
  background: #fff;
  border: 1px solid #cfd1d8;
  border-radius: 3px;
  color: #343640;
  font: inherit;
  font-size: 10px;
  height: 42px;
  padding: 0 12px;
  width: 100%;
}

.qa-search-row button {
  align-items: center;
  background: #164194;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.qa-search-row svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 19px;
}

.qa-filter-labels {
  display: grid;
  font-size: 9px;
  font-weight: 800;
  grid-template-columns: 190px 220px;
  margin: 10px 0 5px;
}

.qa-filter-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 180px 220px 180px minmax(120px, auto);
}

.qa-filter-row .qa-new-question {
  background: transparent;
  border: 1px solid #2764AE;
  border-radius: 4px;
  color: #164194;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 8px 10px;
}

.qa-composer {
  background: #fafafa;
  border: 1px solid #d8dae0;
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 16px;
}

.qa-composer > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.qa-composer > div button {
  background: transparent;
  color: #50525d;
  cursor: pointer;
  font-size: 20px;
}

.qa-composer label {
  color: #454752;
  display: grid;
  font-size: 9px;
  font-weight: 800;
  gap: 5px;
}

.qa-composer input,
.qa-composer textarea {
  border: 1px solid #cfd1d8;
  border-radius: 3px;
  font: inherit;
  font-size: 10px;
  padding: 10px;
}

.qa-composer > small {
  color: #777985;
  font-size: 8px;
}

.qa-composer > button {
  background: #2764AE;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  justify-self: start;
  padding: 10px 14px;
}

.qa-list-heading {
  margin: 28px 0 4px;
}

.qa-list-heading h3 {
  color: #30323d;
  font-size: 15px;
  margin: 0;
}

.qa-list-heading span {
  color: #777985;
  font-weight: 500;
}

.qa-list {
  display: grid;
}

.qa-question-row {
  align-items: start;
  border-bottom: 1px solid #ececf0;
  display: grid;
  gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr) 46px;
  min-height: 110px;
  padding: 20px 0;
}

.qa-question-row .qa-avatar {
  align-items: center;
  background: #252631;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.qa-question-copy {
  min-width: 0;
}

.qa-question-copy > button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.qa-question-copy > button strong {
  color: #30323d;
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.qa-question-copy > button p {
  color: #666873;
  font-size: 10px;
  line-height: 1.5;
  margin: 7px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-question-copy > small {
  color: #777985;
  display: block;
  font-size: 8px;
}

.qa-question-copy > small b {
  color: #164194;
}

.qa-question-stats {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.qa-question-stats button,
.qa-question-stats > span {
  align-items: center;
  background: transparent;
  border: 0;
  color: #60626f;
  cursor: pointer;
  display: inline-flex;
  font-size: 9px;
  gap: 4px;
  padding: 0;
}

.qa-question-stats button.active {
  color: #2764AE;
}

.qa-question-stats svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  width: 17px;
}

.qa-thread-answer {
  background: #f4f6f3;
  border-left: 3px solid #1D71B8;
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 11px;
}

.qa-thread-answer span {
  color: #1D71B8;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.qa-thread-answer p {
  color: #50535b;
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.qa-empty-state,
.notes-empty {
  color: #777985;
  font-size: 11px;
  padding: 28px 0;
  text-align: center;
}

.notes-udemy > header {
  align-items: center;
  border-bottom: 1px solid #e2e3e8;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.notes-udemy > header strong {
  align-items: center;
  background: #EDF4FB;
  border-radius: 999px;
  color: #164194;
  display: inline-flex;
  font-size: 12px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.lesson-note-form {
  align-items: start;
  border-bottom: 1px solid #e2e3e8;
  display: grid;
  gap: 9px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 22px 0;
}

.lesson-note-form > span:first-child {
  background: #252631;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 8px;
  text-align: center;
}

.lesson-note-form textarea {
  border: 1px solid #cfd1d8;
  border-radius: 3px;
  font: inherit;
  font-size: 10px;
  padding: 10px;
  resize: vertical;
}

.lesson-note-form button {
  background: #2764AE;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  min-height: 40px;
  padding: 9px 11px;
}

.lesson-note-form [data-note-status] {
  color: #1D71B8;
  font-size: 9px;
  grid-column: 2;
}

.notes-search {
  align-items: center;
  border: 1px solid #d2d4db;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  margin: 20px 0 4px;
  padding: 0 10px;
}

.notes-search svg {
  fill: none;
  height: 16px;
  stroke: #777985;
  stroke-linecap: round;
  stroke-width: 1.6;
  width: 16px;
}

.notes-search input {
  border: 0;
  font: inherit;
  font-size: 10px;
  min-height: 40px;
  outline: 0;
}

.lesson-notes-list {
  display: grid;
}

.lesson-notes-list article {
  align-items: start;
  border-bottom: 1px solid #ececf0;
  display: grid;
  gap: 12px;
  grid-template-columns: 55px minmax(0, 1fr) 28px;
  padding: 16px 0;
}

.lesson-notes-list article > button:first-child {
  background: #252631;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 7px;
}

.lesson-notes-list article div p {
  color: #3b3d47;
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 4px;
}

.lesson-notes-list article div small {
  color: #858792;
  font-size: 8px;
}

.lesson-notes-list article > button:last-child {
  background: transparent;
  border: 0;
  color: #777985;
  cursor: pointer;
  font-size: 18px;
}

.announcements-udemy article {
  border-bottom: 1px solid #e2e3e8;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 22px 0;
}

.announcements-udemy article div small {
  color: #81838e;
  font-size: 8px;
}

.announcements-udemy article h3 {
  color: #292b35;
  font-size: 14px;
  margin: 5px 0 7px;
}

.announcements-udemy article p {
  color: #656772;
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.reviews-summary {
  align-items: center;
  border-bottom: 1px solid #e2e3e8;
  display: flex;
  gap: 12px;
  padding: 20px 0;
}

.reviews-summary > strong {
  color: #9a3d10;
  font-size: 38px;
}

.reviews-summary div {
  display: grid;
}

.reviews-summary div span {
  color: #e66b20;
  letter-spacing: 2px;
}

.reviews-summary div small {
  color: #777985;
  font-size: 9px;
}

.reviews-udemy form {
  display: grid;
  gap: 12px;
  max-width: 620px;
  padding-top: 22px;
}

.reviews-udemy form label {
  color: #444650;
  display: grid;
  font-size: 9px;
  font-weight: 800;
  gap: 5px;
}

.reviews-udemy form select,
.reviews-udemy form textarea {
  border: 1px solid #cfd1d8;
  border-radius: 3px;
  font: inherit;
  font-size: 10px;
  padding: 10px;
}

.reviews-udemy form button {
  background: #2764AE;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  justify-self: start;
  padding: 10px 14px;
}

.reviews-udemy [data-review-status] {
  color: #1D71B8;
  font-size: 9px;
}

@media (max-width: 1199px) {
  body.is-course-player .player-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
  }

  body.is-course-player .curriculum-panel {
    width: 370px;
  }

  .qa-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qa-new-question {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  body.is-course-player .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: sticky;
    top: 0;
  }

  body.is-course-player .brand-button > span:last-child {
    display: none;
  }

  body.is-course-player .course-player-heading {
    gap: 9px;
  }

  body.is-course-player .course-player-heading strong {
    font-size: 11px;
  }

  body.is-course-player .player-layout,
  body.is-course-player.is-curriculum-collapsed .player-layout {
    display: block;
  }

  body.is-course-player .player-stage {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  body.is-course-player .curriculum-panel,
  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    bottom: 0;
    display: grid;
    height: 100dvh;
    max-width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 180ms ease;
    width: min(400px, 92vw);
    z-index: 120;
  }

  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    pointer-events: none;
    transform: translateX(102%);
  }

  body.is-course-player .curriculum-scrim {
    background: rgba(8, 12, 16, 0.64);
    border: 0;
    display: block;
    inset: 0;
    position: fixed;
    z-index: 110;
  }

  body.is-course-player.is-curriculum-collapsed .curriculum-scrim {
    display: none;
  }

  body.is-course-player .curriculum-open-button,
  body.is-course-player.is-curriculum-collapsed .curriculum-open-button {
    display: inline-flex;
    top: 66px;
  }

  body.is-course-player:not(.is-curriculum-collapsed) .curriculum-open-button {
    display: none;
  }

  body.is-course-player .content-panel {
    padding-inline: 20px;
  }
}

@media (max-width: 600px) {
  body.is-course-player .topbar {
    gap: 7px;
    height: 52px;
    min-height: 52px;
    padding: 0 8px;
  }

  body.is-course-player .brand-button .brand-mark {
    height: 32px;
    width: 32px;
  }

  body.is-course-player .course-player-heading > span {
    height: 20px;
  }

  body.is-course-player .course-player-heading strong {
    max-width: 120px;
  }

  body.is-course-player .course-player-actions {
    gap: 3px;
  }

  body.is-course-player .course-player-actions > button {
    height: 36px;
    min-height: 36px;
  }

  body.is-course-player .player-progress-button > span:nth-child(2),
  body.is-course-player .player-action-chevron,
  body.is-course-player .player-share-button span {
    display: none;
  }

  .player-progress-ring {
    height: 32px;
    width: 32px;
  }

  body.is-course-player .player-share-button {
    padding: 0;
    width: 36px;
  }

  .player-center-play {
    height: 62px;
    width: 62px;
  }

  .player-center-play svg {
    height: 32px;
    width: 32px;
  }

  .player-video-status {
    padding: 10px 13px 35px;
  }

  .player-video-status strong {
    font-size: 10px;
  }

  .player-video-controls {
    padding: 24px 4px 3px;
  }

  .player-video-controls button {
    height: 32px;
    min-height: 32px;
    padding: 5px;
    width: 32px;
  }

  .player-video-controls button svg {
    height: 18px;
    width: 18px;
  }

  .player-video-controls .player-speed-button {
    width: 34px;
  }

  .player-time,
  .player-add-note-control,
  .player-volume,
  [data-video-settings],
  [data-video-skip="10"] {
    display: none !important;
  }

  .lesson-edge-control {
    height: 36px;
    width: 24px;
  }

  body.is-course-player .content-tabs {
    padding-inline: 4px;
  }

  body.is-course-player .content-tabs button {
    font-size: 10px;
    padding-inline: 11px;
  }

  body.is-course-player .content-panel {
    min-height: 360px;
    padding: 26px 16px 72px;
  }

  .course-overview-udemy h2,
  .announcements-udemy h2,
  .reviews-udemy h2,
  .notes-udemy h2 {
    font-size: 22px;
  }

  .course-overview-facts {
    grid-template-columns: 1fr;
  }

  .course-overview-facts article + article {
    border-left: 0;
    border-top: 1px solid #e2e3e8;
  }

  .course-overview-about {
    align-items: stretch;
    flex-direction: column;
  }

  .course-overview-about button {
    width: 100%;
  }

  .qa-assistant-banner {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 15px;
  }

  .qa-assistant-banner button {
    grid-column: 1 / -1;
  }

  .qa-filter-labels {
    display: none;
  }

  .qa-filter-row {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }

  .qa-filter-row select:first-child,
  .qa-filter-row .qa-new-question {
    grid-column: 1 / -1;
  }

  .qa-new-question {
    width: 100%;
  }

  .qa-question-row {
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .qa-question-stats {
    display: flex;
    grid-column: 2;
    justify-self: start;
  }

  .qa-question-copy > button p {
    white-space: normal;
  }

  .lesson-note-form {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .lesson-note-form button {
    grid-column: 2;
  }

  .lesson-note-form [data-note-status] {
    grid-column: 2;
  }

  body.is-course-player .curriculum-panel,
  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    width: 100vw;
  }

  .player-topbar-popover {
    right: 8px;
    top: 48px;
    width: min(270px, calc(100vw - 16px));
  }
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1.45 "Plus Jakarta Sans", Inter, Aptos, "Segoe UI", Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.skip-link {
  background: #ffffff;
  border-radius: 0 0 9px 9px;
  color: #1f5eb8;
  left: 14px;
  padding: 9px 12px;
  position: fixed;
  top: -60px;
  z-index: 300;
}

.skip-link:focus {
  top: 0;
}

.notifications-popover {
  max-height: min(520px, calc(100vh - 90px));
  overflow-y: auto;
}

.profile-popover {
  max-height: min(620px, calc(100vh - 90px));
  overflow-y: auto;
}

.key {
  background: #edf2f7;
  border: 1px solid #d2dde8;
  border-radius: 6px;
  color: #53677c;
  font-size: 9px;
  padding: 3px 6px;
}

.hidden {
  display: none !important;
}

.auth-screen {
  --public-ink: #164194;
  --public-line: #dce2df;
  --public-muted: #56666c;
  --public-orange: #2764AE;
  --public-orange-dark: #164194;
  --public-red: #d9463e;
  background: #f5f8fb;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-screen .site-announcement,
.auth-screen .app-header {
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.auth-screen .site-announcement {
  align-items: center;
  background: var(--public-ink);
  color: #ffffff;
  display: flex;
  font-size: 12px;
  justify-content: center;
  min-height: 36px;
  padding: 6px 24px;
  position: relative;
  z-index: 70;
}

.auth-screen .site-announcement > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.auth-screen .site-announcement strong {
  color: #ffffff;
  font-size: 12px;
}

.auth-screen .site-announcement > div > span:not(.announcement-pulse) {
  color: rgba(255, 255, 255, 0.66);
}

.auth-screen .site-announcement > a {
  background: transparent;
  color: #ffd6bd;
  font-size: 11px;
  font-weight: 850;
  margin-left: 24px;
  padding: 3px 0;
  text-decoration: none;
}

.auth-screen .site-announcement > a span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.auth-screen .site-announcement > a:hover span {
  transform: translateX(4px);
}

.auth-screen .announcement-pulse {
  background: #3997D3;
  border: 4px solid rgba(57, 151, 211, 0.2);
  border-radius: 999px;
  box-sizing: content-box;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.auth-screen .app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e4e8e5;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(250px, 1fr);
  height: 72px;
  min-height: 72px;
  padding: 8px clamp(20px, 3.4vw, 60px);
  position: sticky;
  top: 0;
  z-index: 60;
}

.auth-screen .app-header .brand {
  align-items: center;
  background: transparent;
  color: var(--public-ink);
  display: inline-flex;
  gap: 11px;
  justify-self: start;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.auth-screen .app-header .brand-mark {
  align-items: center;
  background: var(--public-ink);
  border-radius: 10px 10px 10px 3px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 43px;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 43px;
}

.auth-screen .app-header .brand-mark i {
  background: var(--public-orange);
  height: 28px;
  left: -10px;
  position: absolute;
  top: -8px;
  transform: rotate(42deg);
  width: 30px;
  z-index: -1;
}

.auth-screen .app-header .brand-mark b {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-screen .app-header .brand strong,
.auth-screen .app-header .brand small {
  display: block;
}

.auth-screen .app-header .brand strong {
  color: var(--public-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.auth-screen .app-header .brand small {
  color: #7b8788;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-screen .tab-nav {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-content: center;
}

.auth-screen .tab-nav a {
  background: transparent;
  border-radius: 7px;
  color: var(--public-muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.auth-screen .tab-nav a:hover {
  background: #f3f5f2;
  color: var(--public-orange-dark);
}

.auth-screen .tab-nav a.active {
  background: var(--public-ink);
  color: #ffffff;
}

.auth-screen .header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: end;
}

.auth-screen .plan-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  color: var(--public-ink);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.auth-screen .cart-icon {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.auth-screen .plan-button [data-plan-count] {
  align-items: center;
  background: var(--public-red);
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 4px;
  position: absolute;
  right: -7px;
  top: -7px;
}

.auth-screen .header-register {
  align-items: center;
  background: transparent;
  color: #43535a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  padding: 11px 6px;
}

.auth-screen .header-login {
  align-items: center;
  background: var(--public-orange);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
}

.auth-screen .header-login:hover {
  background: var(--public-orange-dark);
}

.auth-screen .menu-toggle {
  background: #ffffff;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  display: none;
  height: 44px;
  position: relative;
  width: 44px;
}

.auth-screen .menu-toggle span {
  background: var(--public-ink);
  border-radius: 999px;
  height: 2px;
  left: 11px;
  position: absolute;
  right: 11px;
}

.auth-screen .menu-toggle span:first-child {
  top: 15px;
}

.auth-screen .menu-toggle span:last-child {
  top: 26px;
}

.auth-screen .site-announcement a:focus-visible,
.auth-screen .app-header a:focus-visible,
.auth-screen .app-header button:focus-visible {
  outline: 3px solid rgba(39, 100, 174, 0.35);
  outline-offset: 2px;
}

.auth-card {
  align-content: center;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: clamp(24px, 5vw, 58px);
}

.auth-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 480px;
  padding: 30px;
  width: min(100%, 480px);
}

.back-link {
  color: #506176;
  justify-self: start;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue-dark);
  border-radius: 12px;
  color: var(--white);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  text-align: left;
}

.auth-brand > div {
  display: grid;
  gap: 4px;
}

.auth-brand > div > span {
  color: #087a76;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.auth-card h1,
.home-hero h1,
.player-top h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
}

.auth-card h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 38px);
}

.auth-intro {
  font-size: 15px;
  margin-bottom: 4px;
  text-align: center;
}

.auth-card p,
.auth-form p,
.home-hero p,
.course-card p,
.content-panel p,
.recording-status {
  color: var(--muted);
}

.auth-tabs {
  background: #eef3f8;
  border: 1px solid #d6e2ee;
  border-radius: var(--radius-md);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border-radius: var(--radius-sm);
  color: #526173;
  min-height: 42px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.auth-tabs button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(16, 32, 51, 0.08);
}

.role-options,
.demo-access {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #d4e1eb;
  border-radius: 16px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 82px;
  padding: 12px 8px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.role-card:hover {
  border-color: rgba(16, 167, 160, 0.5);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.role-icon {
  align-items: center;
  background: #eef8fb;
  border: 1px solid #d7ebf1;
  border-radius: 14px;
  color: #246eb9;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.role-card svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 22px;
}

.role-card span {
  font-size: 13px;
  font-weight: 950;
}

.role-card.active {
  background: #f7fbff;
  border-color: var(--blue);
  box-shadow: 0 16px 32px rgba(47, 115, 217, 0.12);
  color: var(--ink);
}

.role-options .role-card:not(.active) {
  background: var(--white);
  color: var(--ink);
}

.role-options .role-card.active,
.role-options .role-card[aria-pressed="true"] {
  background: #f7fbff;
  border-color: var(--blue);
  color: var(--ink);
}

.role-card.active .role-icon,
.role-card[aria-pressed="true"] .role-icon {
  background: var(--blue-dark);
  border-color: transparent;
  color: var(--white);
}

.demo-card,
.topbar-actions button,
.player-top > button,
.video-controls button,
.teacher-actions button {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 12px;
}

.demo-card {
  align-content: start;
  border-color: #c9d6e2;
  display: grid;
  gap: 8px;
  min-height: 112px;
  min-width: 0;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.demo-card span {
  align-items: center;
  background: #eef5fc;
  color: #0b3a67;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 34px;
}

.demo-card strong {
  color: var(--ink);
  font-size: 16px;
}

.demo-card small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.demo-card.is-primary {
  background: #f3f8ff;
  border-color: #246eb9;
  box-shadow: inset 0 -3px 0 #246eb9;
}

.auth-form,
.teacher-form {
  display: grid;
  gap: 12px;
}

.auth-note {
  background: #f2f8fb;
  border: 1px solid #d6e7f0;
  border-radius: 16px;
  color: #587189;
  font-size: 13px;
  margin: 0;
  padding: 10px 12px;
}

label,
.field-group > label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-control {
  position: relative;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

.field-control input {
  padding-right: 48px;
}

.auth-form .field-eye {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  color: #587189;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}

.auth-form .field-eye:hover {
  background: #eef7fb;
  box-shadow: none;
  color: var(--blue-dark);
  transform: translateY(-50%);
}

.field-eye svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.field-eye .eye-closed {
  display: none;
}

.field-eye[aria-pressed="true"] .eye-open {
  display: none;
}

.field-eye[aria-pressed="true"] .eye-closed {
  display: block;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.check-row {
  align-items: start;
  color: #526173;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  letter-spacing: 0;
  text-transform: none;
}

.check-row input {
  accent-color: var(--teal);
  min-height: 0;
  margin-top: 3px;
  width: auto;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aab8c6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(16, 167, 160, 0.14);
  outline: 0;
}

.auth-form > button,
.home-hero button,
.course-card button,
.play-button,
.teacher-form button {
  background: var(--purple);
  border-radius: var(--radius-sm);
  color: var(--white);
  min-height: 44px;
  padding: 10px 16px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-hero button,
.course-card button {
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(47, 115, 217, 0.18);
}

.home-hero button:hover,
.course-card button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.auth-form > button {
  background: var(--blue-dark);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(31, 94, 184, 0.2);
}

.auth-form > button:hover {
  background: #184b92;
  box-shadow: 0 20px 36px rgba(31, 94, 184, 0.26);
  transform: translateY(-1px);
}

.password-rules {
  background: #f7fbfd;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: -2px 0 0;
  padding: 12px;
}

.password-rules li {
  align-items: center;
  color: #7a8999;
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.password-rules li span {
  align-items: center;
  background: #fff1f1;
  border-radius: 999px;
  color: #c24141;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.password-rules li.is-ok {
  color: #1f6f55;
}

.password-rules li.is-ok span {
  background: #e8f8f0;
  color: #14855d;
}

.verification-panel {
  background: linear-gradient(180deg, #f0fbfb, #ffffff);
  border: 1px solid #cfe9e8;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: left;
}

.verification-panel > span {
  color: #087a76;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-panel h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.verification-panel p {
  margin: 0;
}

.verification-panel strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.auth-switch {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 6px;
  justify-content: center;
  margin: -2px 0 0;
  text-align: center;
}

.auth-switch button {
  background: transparent;
  color: #087a76;
  font-weight: 950;
  padding: 0;
  text-decoration: none;
}

.auth-switch button:hover {
  color: var(--blue-dark);
}

.auth-divider {
  align-items: center;
  color: #708091;
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: #d6e2ee;
  content: "";
  display: block;
  height: 1px;
}

.google-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd9e6;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  width: 100%;
}

.google-button span {
  align-items: center;
  background: #f3f7fb;
  border: 1px solid #d6e2ee;
  color: #246eb9;
  display: inline-flex;
  font-weight: 950;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.auth-side {
  align-content: center;
  background:
    linear-gradient(rgba(11, 31, 54, 0.5), rgba(11, 31, 54, 0.9)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 72px);
}

.auth-side-copy,
.auth-preview {
  max-width: 720px;
}

.auth-side > span,
.auth-side-copy > span,
.section-head span,
.home-hero span,
.player-top span,
.curriculum-head span,
.drawer-head span,
.video-screen > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-side > span {
  color: rgba(255, 255, 255, 0.74);
}

.auth-side-copy > span {
  color: rgba(255, 255, 255, 0.74);
}

.auth-side strong,
.auth-side-copy strong {
  color: var(--white);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  max-width: 680px;
}

.auth-preview {
  display: grid;
  gap: 12px;
}

.auth-video-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

.auth-video-card video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: block;
  object-fit: cover;
  width: 100%;
}

.auth-video-card figcaption {
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.auth-video-card > span,
.auth-video-card figcaption span,
.auth-preview-grid span {
  color: #246eb9;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-video-card strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
  max-width: 520px;
}

.auth-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1fr;
}

.auth-preview-grid article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
}

.auth-preview-grid strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.auth-preview-grid small {
  color: var(--muted);
}

.auth-preview .mini-progress span {
  background: #246eb9;
}

.learning-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-button {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.campus-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.campus-brand-wordmark {
  display: block;
  height: 18px;
  object-fit: contain;
  object-position: left center;
  width: 86px;
}

.brand-button small {
  color: var(--muted);
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.topbar-actions button:last-child {
  border-color: var(--line);
  color: var(--muted);
}

.learning-main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px clamp(14px, 3vw, 32px) 44px;
}

.home-view,
.player-view {
  display: grid;
  gap: 22px;
}

.home-hero {
  align-items: center;
  background: var(--ink);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(20, 50, 74, 0.14);
  color: var(--white);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 210px;
  padding: clamp(22px, 4vw, 44px);
}

.home-hero span,
.home-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.home-hero h1 {
  color: var(--white);
  max-width: 780px;
}

.section-block {
  display: grid;
  gap: 16px;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(20, 50, 74, 0.08);
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(102px, auto) auto auto auto;
  overflow: hidden;
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.course-card:hover {
  border-color: #b8cbe0;
  box-shadow: 0 24px 54px rgba(20, 50, 74, 0.12);
  transform: translateY(-2px);
}

.course-card img {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.course-card h3 {
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 7px;
  min-height: 42px;
}

.course-card p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 0;
  min-height: 40px;
  overflow: hidden;
}

.course-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.course-meta span {
  background: #f4f8fc;
  border: 1px solid #dce8f3;
  border-radius: 999px;
  color: #405a74;
  padding: 5px 8px;
}

.mini-progress,
.progress-bar {
  background: #e9ecef;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.mini-progress span,
.progress-bar span {
  background: var(--purple);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--progress, 0%);
}

.player-top {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.player-top h1 {
  font-size: clamp(26px, 3vw, 38px);
}

.player-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.player-column {
  display: grid;
  gap: 14px;
}

.video-player {
  background: var(--ink);
  color: var(--white);
}

.video-screen {
  align-content: end;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #1c1d1f, #2d2f31);
  background-size: 44px 44px, 44px 44px, auto;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 4vw, 42px);
}

.video-screen.is-recording {
  align-content: stretch;
  gap: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
}

.video-screen > span {
  color: #cec0fc;
}

.video-screen h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  margin-bottom: 0;
  max-width: 820px;
}

.video-screen p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
}

.play-button {
  justify-self: start;
}

.video-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.video-controls button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.progress-strip,
.content-panel,
.curriculum-panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.progress-strip {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.progress-strip > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.progress-strip span {
  color: var(--muted);
}

.content-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.content-tabs button {
  background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  min-height: 46px;
  padding: 10px 14px;
}

.content-tabs button.active {
  border-color: var(--ink);
  color: var(--ink);
}

.content-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.content-panel h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.qa-form {
  display: grid;
  gap: 10px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.qa-form button,
.content-panel button {
  background: var(--ink);
  color: var(--white);
  justify-self: start;
  min-height: 40px;
  padding: 9px 13px;
}

.simple-list {
  display: grid;
  gap: 10px;
}

.simple-item {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.recording-item {
  align-items: center;
  grid-template-columns: 220px minmax(0, 1fr) auto;
}

.recording-item button {
  background: var(--purple);
  color: var(--white);
  min-height: 38px;
  padding: 8px 12px;
}

.recording-video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: block;
  width: 100%;
}

.main-recording-video {
  align-self: stretch;
  background: #000000;
  display: block;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  width: 100%;
}

.recording-player-meta {
  background: rgba(28, 29, 31, 0.9);
  color: var(--white);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.recording-player-meta span {
  color: #cec0fc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recording-player-meta strong {
  font-size: 18px;
}

.recording-player-meta small {
  color: rgba(255, 255, 255, 0.72);
}

.curriculum-panel {
  max-height: calc(100vh - 110px);
  overflow: auto;
  position: sticky;
  top: 82px;
}

.curriculum-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.curriculum-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.curriculum-toggle {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 36px;
}

.curriculum-toggle:hover {
  background: #eaf2fb;
  border-color: #bad2e7;
  color: var(--blue-dark);
}

.curriculum-toggle svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  transition: transform 180ms ease;
  width: 18px;
}

.curriculum-progress {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.curriculum-progress > div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.curriculum-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curriculum-progress strong {
  color: var(--ink);
  font-size: 14px;
}

.curriculum-progress small {
  color: var(--muted);
  font-size: 12px;
}

.curriculum-list {
  align-content: start;
  display: grid;
  grid-auto-rows: max-content;
}

.curriculum-module {
  border-bottom: 1px solid var(--line);
}

.curriculum-module summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 13px 14px;
}

.curriculum-module summary::-webkit-details-marker {
  display: none;
}

.curriculum-module summary strong {
  font-size: 14px;
}

.curriculum-module summary span {
  color: var(--muted);
  font-size: 12px;
}

.lesson-row {
  align-items: center;
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.lesson-row.active {
  background: #eef6ff;
}

.lesson-row strong {
  display: block;
  font-size: 14px;
}

.lesson-status {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.lesson-row.done .lesson-status {
  background: #e8f7ef;
  border-color: #bddfcd;
  color: var(--green);
}

.lesson-row.active .lesson-status {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.lesson-row small {
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: 3px;
}

.teacher-drawer {
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 50px rgba(28, 29, 31, 0.18);
  display: grid;
  gap: 16px;
  height: 100vh;
  max-width: min(420px, 92vw);
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  z-index: 50;
}

.drawer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.drawer-head button {
  background: var(--paper);
  color: var(--ink);
  height: 36px;
  width: 36px;
}

.teacher-actions {
  display: grid;
  gap: 8px;
}

.teacher-actions button:first-child,
.teacher-actions button:nth-child(2) {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.teacher-actions button:nth-child(3) {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

.teacher-view {
  display: grid;
  gap: 18px;
}

.teacher-console-head {
  align-items: end;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  padding: 24px;
}

.teacher-console-head span,
.teacher-panel-head span,
.teacher-editor-head span,
.teacher-live-card span,
.teacher-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-console-head h1,
.teacher-editor-head h2 {
  margin-bottom: 0;
}

.teacher-console-head h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.teacher-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
}

.teacher-stat strong {
  color: var(--white);
  font-size: 24px;
}

.teacher-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.teacher-course-panel,
.teacher-editor {
  background: var(--white);
  border: 1px solid var(--line);
}

.teacher-course-panel {
  max-height: calc(100vh - 110px);
  overflow: auto;
  position: sticky;
  top: 82px;
}

.teacher-panel-head,
.teacher-editor-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.teacher-panel-head button,
.teacher-editor-actions button,
.teacher-tabs button,
.teacher-management-form button,
.teacher-lesson-actions button,
.teacher-asset-row a,
.teacher-asset-row button {
  min-height: 38px;
  padding: 8px 12px;
}

.teacher-panel-head button,
.teacher-management-form button,
.teacher-editor-actions button:first-child {
  background: var(--purple);
  color: var(--white);
}

.teacher-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-editor-actions button:last-child {
  background: var(--ink);
  color: var(--white);
}

.teacher-course-list {
  display: grid;
}

.teacher-course-row {
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.teacher-course-row.active {
  background: #f3efff;
  border-left: 4px solid var(--purple);
}

.teacher-course-row strong {
  font-size: 15px;
}

.teacher-course-row span,
.teacher-course-row small,
.teacher-message,
.teacher-live-card p,
.teacher-lesson-row small,
.teacher-asset-row small {
  color: var(--muted);
}

.teacher-course-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.teacher-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 12px;
}

.teacher-tabs button {
  background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--muted);
}

.teacher-tabs button.active {
  border-color: var(--ink);
  color: var(--ink);
}

.teacher-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.teacher-management-form {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-split,
.teacher-live-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-outline,
.teacher-assets,
.teacher-recordings {
  display: grid;
  gap: 10px;
}

.teacher-module-block {
  border: 1px solid var(--line);
  display: grid;
}

.teacher-module-title,
.teacher-lesson-row,
.teacher-asset-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.teacher-module-title {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.teacher-lesson-row,
.teacher-asset-row {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.teacher-lesson-row:first-of-type {
  border-top: 0;
}

.teacher-lesson-row strong,
.teacher-asset-row strong {
  display: block;
}

.teacher-lesson-actions {
  display: flex;
  gap: 8px;
}

.teacher-lesson-actions button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.teacher-lesson-state {
  background: #e8f6f4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.teacher-live-card {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.teacher-live-card strong {
  color: var(--white);
  font-size: 20px;
}

.teacher-live-card p {
  margin-bottom: 0;
}

.teacher-live-card .recording-status {
  color: rgba(255, 255, 255, 0.72);
}

.teacher-assets:empty::before,
.teacher-recordings:empty::before {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  content: "Sin elementos publicados.";
  padding: 14px;
}

.teacher-asset-row a,
.teacher-asset-row button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.content-panel a {
  color: var(--purple);
  font-weight: 850;
}

/* Modern shared topbar controls. */
.topbar {
  overflow: visible;
}

.topbar-actions {
  position: relative;
}

.topbar-actions > button {
  border-radius: 999px;
}

.topbar-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4e1ee;
  color: #14324a;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.topbar-icon-button svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 21px;
}

.topbar-icon-button span {
  align-items: center;
  background: #d92f4f;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  height: 19px;
  justify-content: center;
  min-width: 19px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.profile-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4e1ee;
  color: #14324a;
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  text-align: left;
}

.profile-chip > span:first-child {
  align-items: center;
  background: linear-gradient(135deg, #2f73d9, #10a7a0);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.profile-chip strong,
.profile-chip small {
  display: block;
  line-height: 1.1;
}

.profile-chip small {
  color: #62748a;
  font-size: 11px;
}

.topbar-popover {
  background: #ffffff;
  border: 1px solid #d4e1ee;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(20, 50, 74, 0.18);
  display: grid;
  gap: 12px;
  padding: 16px;
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: calc(100% + 10px);
  width: min(380px, calc(100vw - 28px));
  z-index: 60;
}

.popover-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.popover-head strong {
  color: #14324a;
  font-size: 16px;
}

.popover-head span {
  color: #62748a;
  font-size: 12px;
  font-weight: 850;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-list article {
  align-items: start;
  background: #f6f9fc;
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px;
}

.notification-list article > span {
  align-items: center;
  background: #e8f6f4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.notification-list strong,
.notification-list small {
  display: block;
}

.notification-list small,
.profile-form p {
  color: #62748a;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-form button {
  background: #2f73d9;
  border-radius: 999px;
  color: #ffffff;
  min-height: 42px;
}

/* Modern teacher console. */
body.is-teacher-dashboard {
  background:
    radial-gradient(circle at 14% 8%, rgba(47, 115, 217, 0.08), transparent 32%),
    #f3f7fb;
}

body.is-teacher-dashboard .learning-main {
  max-width: 1500px;
  padding-top: 24px;
}

.teacher-console-head {
  background:
    linear-gradient(135deg, rgba(20, 50, 74, 0.98), rgba(28, 86, 145, 0.92)),
    #14324a;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(20, 50, 74, 0.18);
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  position: relative;
}

.teacher-console-head::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
}

.teacher-console-head > * {
  position: relative;
  z-index: 1;
}

.teacher-console-head > div:first-child {
  display: grid;
  gap: 10px;
}

.teacher-console-head > div:first-child > span {
  order: 1;
}

.teacher-console-head > div:first-child > h1 {
  order: 2;
}

.teacher-console-head > div:first-child > p {
  order: 3;
}

.teacher-console-head > div:first-child > .teacher-hero-actions {
  order: 4;
}

.teacher-console-head p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  max-width: 700px;
}

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

.teacher-hero-actions button,
.teacher-command-card button,
.teacher-quick-actions button {
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
}

.teacher-hero-actions button:first-child,
.teacher-command-card button,
.teacher-quick-actions button:nth-child(3),
.teacher-quick-actions button:nth-child(4) {
  background: #ffffff;
  color: #14324a;
}

.teacher-hero-actions button:last-child,
.teacher-quick-actions button:nth-child(1),
.teacher-quick-actions button:nth-child(2) {
  background: #2f73d9;
  color: #ffffff;
}

.teacher-kpis {
  align-self: stretch;
}

.teacher-stat {
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.teacher-workspace {
  gap: 18px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.teacher-course-panel,
.teacher-editor {
  border-color: #d8e5f1;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(20, 50, 74, 0.08);
  overflow: hidden;
}

.teacher-course-panel {
  top: 86px;
}

.teacher-panel-head,
.teacher-editor-head {
  background: #ffffff;
  padding: 18px;
}

.teacher-panel-head button,
.teacher-editor-actions button,
.teacher-tabs button,
.teacher-management-form button,
.teacher-lesson-actions button,
.teacher-asset-row a,
.teacher-asset-row button {
  border-radius: 999px;
}

.teacher-course-row {
  border-bottom-color: #e2ebf4;
  padding: 16px 18px;
}

.teacher-course-row:hover {
  background: #f6faff;
}

.teacher-course-row.active {
  background: #edf5ff;
  border-left-color: #2f73d9;
}

.teacher-tabs {
  background: #ffffff;
  gap: 8px;
  padding: 12px 16px;
}

.teacher-tabs button {
  border-bottom: 0;
  color: #62748a;
  min-height: 38px;
}

.teacher-tabs button.active {
  background: #14324a;
  color: #ffffff;
}

.teacher-panel {
  background: #f8fbfe;
  gap: 18px;
  padding: 18px;
}

.teacher-overview-grid,
.teacher-ops-grid {
  display: grid;
  gap: 14px;
}

.teacher-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-ops-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.teacher-command-card,
.teacher-ops-card,
.teacher-management-form,
.teacher-module-block,
.teacher-live-card {
  border: 1px solid #d8e5f1;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(20, 50, 74, 0.06);
}

.teacher-command-card,
.teacher-ops-card {
  background: #ffffff;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.teacher-command-card.primary {
  background: linear-gradient(135deg, #14324a, #225f9d);
  color: #ffffff;
}

.teacher-command-card span,
.teacher-card-head span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teacher-command-card.primary span,
.teacher-command-card.primary p {
  color: rgba(255, 255, 255, 0.72);
}

.teacher-command-card strong {
  color: #14324a;
  font-size: 22px;
  line-height: 1.14;
}

.teacher-command-card.primary strong {
  color: #ffffff;
}

.teacher-command-card p,
.teacher-flow-list small,
.teacher-switch-row small {
  color: #62748a;
}

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

.teacher-card-head strong {
  color: #14324a;
  font-size: 18px;
}

.teacher-flow-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.teacher-flow-list li {
  align-items: start;
  background: #f5f9fd;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px;
}

.teacher-flow-list li > span {
  align-items: center;
  background: #e8f6f4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.teacher-flow-list strong,
.teacher-flow-list small {
  display: block;
  grid-column: 2;
}

.teacher-flow-list li > span {
  grid-row: 1 / span 2;
}

.teacher-quick-actions {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-quick-actions button {
  background: #ffffff;
  border: 1px solid #d4e1ee;
  color: #14324a;
  min-height: 46px;
}

.teacher-management-form {
  background: #ffffff;
  padding: 18px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-switch-row {
  align-items: center;
  background: #f2f8ff;
  border: 1px solid #cfe1f4;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.teacher-switch-row input {
  accent-color: #2f73d9;
  height: 22px;
  width: 22px;
}

.teacher-module-block {
  overflow: hidden;
}

.teacher-module-title {
  background: #ffffff;
}

.teacher-lesson-row,
.teacher-asset-row {
  background: #f8fbfe;
}

.teacher-live-card {
  background:
    linear-gradient(135deg, #14324a, #1f5eb8),
    #14324a;
  border-color: #14324a;
  border-radius: 24px;
  min-height: 100%;
  padding: 22px;
}

.teacher-live-card .teacher-actions {
  align-content: start;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-live-card .teacher-actions button {
  border-radius: 999px;
  min-height: 56px;
}

.teacher-live-card .recording-status {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
}

.partner-view {
  display: grid;
  gap: 16px;
}

.partner-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(11, 37, 69, 0.95), rgba(36, 110, 185, 0.92)),
    linear-gradient(90deg, #0b2545, #0f766e);
  border: 1px solid #0b2545;
  color: var(--white);
  display: grid;
  gap: 20px;
  grid-template-columns: 150px minmax(0, 1fr) minmax(280px, 340px);
  padding: clamp(22px, 4vw, 34px);
}

.partner-hero span,
.partner-card-head span,
.partner-card > span,
.partner-stat span {
  color: #5b708b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-hero span {
  color: rgba(255, 255, 255, 0.72);
}

.partner-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.98;
  margin-bottom: 12px;
  max-width: 820px;
}

.partner-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  margin-bottom: 0;
  max-width: 780px;
}

.partner-logo-card {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 160px;
  padding: 16px;
  place-content: center;
}

.partner-logo-card img {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: block;
  max-width: 112px;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.partner-logo-card span {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.partner-coupon-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.partner-coupon-card span,
.partner-coupon-card small {
  color: rgba(255, 255, 255, 0.72);
}

.partner-coupon-card strong {
  color: var(--white);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.partner-coupon-card div {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.partner-coupon-card button,
.partner-coupon-card a {
  align-items: center;
  background: var(--white);
  color: #0b3a67;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  text-decoration: none;
}

.partner-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-stat,
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.partner-stat {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
}

.partner-stat strong {
  color: #0b2545;
  font-size: 26px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.partner-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.partner-main,
.partner-side {
  display: grid;
  gap: 16px;
}

.partner-side {
  max-height: calc(100vh - 100px);
  overflow: auto;
  position: sticky;
  top: 82px;
}

.partner-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.partner-card-head.compact {
  align-items: start;
}

.partner-card-head h2 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 0;
}

.partner-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.partner-card-actions strong {
  color: #0b2545;
  white-space: nowrap;
}

.partner-card-actions button {
  background: #e8f2ff;
  border: 1px solid #b9d4f0;
  color: #0b3a67;
  min-height: 38px;
  padding: 8px 12px;
}

.partner-table {
  border: 1px solid #d8e2ed;
  display: grid;
  overflow: hidden;
}

.partner-table-row {
  align-items: center;
  background: var(--white);
  border-top: 1px solid #d8e2ed;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.8fr) minmax(220px, 1.1fr) minmax(120px, 0.55fr);
  padding: 13px 14px;
}

.partner-table-row:first-child {
  border-top: 0;
}

.partner-table-row.head {
  background: #eef5fc;
  color: #34536f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partner-table-row strong,
.partner-table-row small {
  display: block;
}

.partner-table-row small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.partner-table-row .paid,
.partner-table-row .pending {
  font-size: 12px;
  font-weight: 950;
  justify-self: start;
  padding: 5px 9px;
}

.partner-table-row .paid {
  background: #e7f6ed;
  color: #11623a;
}

.partner-table-row .pending {
  background: #fff4df;
  color: #855008;
}

.partner-progress-cell {
  display: grid;
  gap: 4px;
}

.partner-progress-cell strong {
  color: #0b3a67;
}

.partner-progress-cell .mini-progress {
  height: 6px;
}

.partner-course-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-course-card {
  background: #fbfdff;
  border: 1px solid #d8e2ed;
  border-left: 4px solid #246eb9;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.partner-course-card span {
  color: #1f6aa5;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-course-card strong {
  color: #0b2545;
  font-size: 16px;
}

.partner-course-card small,
.partner-earnings-card p,
.partner-earnings-card small,
.partner-ranking small {
  color: var(--muted);
}

.partner-view .mini-progress span {
  background: #246eb9;
}

.partner-earnings-card {
  background:
    linear-gradient(rgba(11, 58, 103, 0.88), rgba(11, 58, 103, 0.88)),
    linear-gradient(135deg, #0b2545, #2b7bbb);
  color: var(--white);
}

.partner-earnings-card span,
.partner-earnings-card p,
.partner-earnings-card small {
  color: rgba(255, 255, 255, 0.72);
}

.partner-earnings-card h2 {
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 0;
}

.partner-earnings-card .mini-progress {
  background: rgba(255, 255, 255, 0.2);
}

.partner-earnings-card .mini-progress span {
  background: var(--white);
}

.partner-ranking {
  display: grid;
  gap: 8px;
}

.partner-ranking article {
  align-items: center;
  background: #f6f9fc;
  border: 1px solid #d8e2ed;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 10px;
}

.partner-ranking article > span {
  align-items: center;
  background: #dcecff;
  color: #0b3a67;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.partner-ranking strong,
.partner-ranking small {
  display: block;
}

.partner-automation {
  counter-reset: partner-flow;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-automation li {
  align-items: start;
  color: #334155;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.partner-automation li::before {
  align-items: center;
  background: #e8f2ff;
  color: #0b3a67;
  content: counter(partner-flow);
  counter-increment: partner-flow;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

body.is-partner-dashboard {
  background: #f4f7fb;
}

body.is-partner-dashboard .learning-main {
  max-width: 1480px;
}

body.is-partner-dashboard .brand-mark {
  background: #0b3a67;
}

body.is-partner-dashboard [data-open-partner] {
  background: #246eb9;
  border-color: #246eb9;
  color: var(--white);
}

body.is-teacher-dashboard {
  background: var(--paper);
}

body.is-teacher-dashboard .learning-main {
  max-width: 1480px;
}

/* Minimal teacher console: separated work windows. */
body.is-teacher-dashboard {
  background:
    linear-gradient(180deg, #f8fbfe 0, #eef4fa 100%);
}

body.is-teacher-dashboard .topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: #dbe6f1;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, auto) minmax(460px, 1fr) auto;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 80;
}

body.is-teacher-dashboard .learning-main {
  max-width: none;
  min-height: 100vh;
  padding: 82px 18px 24px;
  width: 100%;
}

.teacher-view {
  gap: 0;
  min-height: calc(100vh - 106px);
}

.teacher-console-head {
  display: none;
}

.teacher-console-head::after {
  display: none;
}

.teacher-console-head span,
.teacher-panel-head span,
.teacher-editor-head span,
.teacher-live-card span,
.teacher-stat span,
.teacher-window-head span,
.teacher-command-course span {
  color: #6a7d91;
  letter-spacing: 0.08em;
}

.teacher-command-bar {
  display: none;
}

body.is-teacher-dashboard .teacher-local-tabs,
body.is-teacher-dashboard .teacher-local-actions {
  display: none;
}

body.is-teacher-dashboard [data-home-action] {
  display: none;
}

.teacher-topbar-nav {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d8e5f1;
  border-radius: 999px;
  display: flex;
  gap: 6px;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  padding: 4px;
}

.teacher-topbar-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5f7187;
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

.teacher-topbar-nav button:hover {
  background: #edf5ff;
  color: #1d5ca9;
}

.teacher-topbar-nav button.active {
  background: #10253d;
  color: #ffffff;
}

.teacher-command-course {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 4px;
}

.teacher-command-course span {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.teacher-command-course strong {
  color: #10253d;
  font-size: 17px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-kpis {
  align-self: center;
  display: flex;
  gap: 8px;
  grid-template-columns: none;
}

.teacher-stat {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 50, 74, 0.05);
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
}

.teacher-stat strong {
  color: #10253d;
  font-size: 17px;
  line-height: 1;
  order: -1;
}

.teacher-stat span {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.teacher-workspace {
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 106px);
}

.teacher-course-panel,
.teacher-editor {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.teacher-course-panel {
  display: none;
}

.teacher-panel-head,
.teacher-editor-head {
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 50, 74, 0.04);
  padding: 14px;
}

.teacher-panel-head > div,
.teacher-editor-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teacher-panel-head strong,
.teacher-editor-head h2 {
  overflow-wrap: anywhere;
}

.teacher-panel-head strong {
  color: #10253d;
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.teacher-course-panel .teacher-panel-head {
  border: 0;
  border-bottom: 1px solid #d8e5f1;
  border-radius: 18px 18px 0 0;
  box-shadow: none;
}

.teacher-panel-head button,
.teacher-editor-actions button,
.teacher-tabs button,
.teacher-management-form button,
.teacher-lesson-actions button,
.teacher-asset-row a,
.teacher-asset-row button,
.teacher-window-head button,
.teacher-command-card button,
.teacher-quick-actions button,
.teacher-live-card .teacher-actions button {
  border-radius: 12px;
}

.teacher-panel-head button,
.teacher-editor-actions button:first-child,
.teacher-window-head button,
.teacher-management-form button {
  background: #246eb9;
  border-color: #246eb9;
  color: #ffffff;
}

.teacher-editor-actions button:last-child {
  background: #10253d;
  border-color: #10253d;
  color: #ffffff;
}

.teacher-editor-actions button {
  min-height: 38px;
  padding: 8px 12px;
}

.teacher-editor-head {
  margin-bottom: 10px;
}

.teacher-editor-head h2 {
  color: #10253d;
  font-size: 22px;
}

.teacher-tabs {
  background: transparent;
  border: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
}

.teacher-tabs button {
  background: #ffffff;
  border: 1px solid #d8e5f1;
  color: #55687d;
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.teacher-tabs button:hover {
  border-color: #9fc0df;
  color: #14324a;
}

.teacher-tabs button.active {
  background: #10253d;
  border-color: #10253d;
  box-shadow: none;
  color: #ffffff;
}

.teacher-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 14px;
  min-height: calc(100vh - 106px);
  padding: 0;
}

.teacher-panel:not(.hidden) {
  animation: teacherWindowIn 160ms ease both;
  display: grid;
}

@keyframes teacherWindowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teacher-window-head {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 0 0 8px;
}

.teacher-window-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teacher-window-head strong {
  color: #10253d;
  font-size: 17px;
  line-height: 1.2;
}

.teacher-window-head span {
  display: none;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.teacher-window-head button {
  min-height: 38px;
  padding: 8px 12px;
}

.teacher-course-row {
  border-bottom-color: #edf2f7;
  gap: 7px;
  padding: 13px 15px;
}

.teacher-course-row:hover {
  background: #f7fbff;
}

.teacher-course-row.active {
  background: #eef6ff;
  border-left-color: #246eb9;
}

.teacher-course-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.teacher-course-row small {
  background: #f4f8fc;
  border: 1px solid #dbe7f2;
  border-radius: 999px;
  font-size: 10px;
  padding: 3px 7px;
}

.teacher-overview-grid {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.15fr) repeat(2, minmax(280px, 0.85fr));
}

.teacher-metric-grid,
.teacher-live-summary-card,
.teacher-module-health-card {
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 16px;
  box-shadow: none;
  min-width: 0;
  padding: 16px;
}

.teacher-live-summary-card .teacher-card-head span,
.teacher-module-health-card .teacher-card-head span,
.teacher-metric-grid span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-metric-grid {
  display: grid;
  gap: 10px;
  grid-column: span 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-metric-grid article {
  background: #f7fbff;
  border: 1px solid #dbe7f2;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 14px;
}

.teacher-metric-grid strong {
  color: #10253d;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.teacher-metric-grid small,
.teacher-module-health-list small {
  color: #62748a;
}

.teacher-live-summary-card,
.teacher-module-health-card {
  display: grid;
  gap: 14px;
}

.teacher-module-health-card {
  grid-column: span 2;
}

.teacher-live-summary-card p {
  color: #506176;
  margin: 0;
}

.teacher-live-summary-card button {
  background: #246eb9;
  color: #ffffff;
  min-height: 42px;
}

.teacher-module-health-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.teacher-module-health-list article {
  background: #f7fbff;
  border: 1px solid #dbe7f2;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.teacher-module-health-list strong,
.teacher-module-health-list small {
  display: block;
}

.teacher-module-health-list article {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
}

.teacher-module-health-list span {
  color: #0f766e;
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-module-health-list strong {
  color: #10253d;
  margin: 2px 0;
}

.teacher-ops-grid,
.teacher-live-grid {
  gap: 12px;
}

.teacher-command-card,
.teacher-ops-card,
.teacher-management-form,
.teacher-module-block,
.teacher-live-card {
  border: 1px solid #d8e5f1;
  border-radius: 16px;
  box-shadow: none;
}

.teacher-command-card,
.teacher-ops-card {
  gap: 8px;
  padding: 14px;
}

.teacher-command-card.primary {
  background: #10253d;
}

.teacher-command-card strong {
  color: #10253d;
  font-size: 19px;
}

.teacher-command-card span,
.teacher-card-head span {
  color: #0f766e;
  font-size: 11px;
}

.teacher-command-card p {
  font-size: 13px;
}

.teacher-card-head strong {
  color: #10253d;
  font-size: 16px;
}

.teacher-flow-list {
  gap: 8px;
}

.teacher-flow-list li {
  border-radius: 13px;
  gap: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 10px;
}

.teacher-flow-list li > span {
  height: 30px;
  width: 30px;
}

.teacher-quick-actions {
  gap: 8px;
}

.teacher-quick-actions button {
  border-radius: 12px;
  min-height: 42px;
}

.teacher-management-form {
  background: #ffffff;
  gap: 12px;
  padding: 16px;
}

.teacher-management-form strong {
  color: #10253d;
  font-size: 17px;
}

.teacher-split {
  gap: 12px;
}

.teacher-switch-row {
  background: #f7fbff;
  border-radius: 14px;
  padding: 12px;
}

.teacher-module-title,
.teacher-lesson-row,
.teacher-asset-row {
  background: #ffffff;
}

.teacher-live-card {
  background: #ffffff;
  border-color: #d8e5f1;
  color: #10253d;
  min-height: 0;
  padding: 18px;
}

.teacher-live-card strong {
  color: #10253d;
  font-size: 21px;
}

.teacher-live-card p {
  color: #617386;
}

.teacher-live-card .recording-status {
  background: #f7fbff;
  border-color: #d8e5f1;
  color: #4e6177;
  border-radius: 13px;
}

/* Final teacher polish: fewer boxes, clearer hierarchy, same aula blue palette. */
.teacher-minimal-head {
  align-items: end;
  border-bottom: 1px solid #d8e5f1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 8px 0 22px;
}

.teacher-minimal-head span {
  display: none;
}

.teacher-minimal-head h2 {
  color: #10253d;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.teacher-minimal-head button,
.teacher-live-summary-card button {
  background: #246eb9;
  border: 1px solid #246eb9;
  border-radius: 999px;
  color: #ffffff;
  min-height: 44px;
  padding: 10px 18px;
}

.teacher-dashboard-grid {
  align-content: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
}

.teacher-metric-grid {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8e5f1;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-column: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 22px;
}

.teacher-metric-grid article {
  background: transparent;
  border: 0;
  border-right: 1px solid #d8e5f1;
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 0 24px 0 0;
}

.teacher-metric-grid article + article {
  padding-left: 24px;
}

.teacher-metric-grid article:last-child {
  border-right: 0;
}

.teacher-metric-grid span,
.teacher-card-head span,
.teacher-module-health-list article > span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-metric-grid strong {
  color: #10253d;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
}

.teacher-metric-grid small {
  color: #63758a;
  font-size: 13px;
}

.teacher-live-summary-card,
.teacher-module-health-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8e5f1;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
  padding: 0 0 24px;
}

.teacher-live-summary-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.teacher-live-summary-card .teacher-card-head,
.teacher-module-health-card .teacher-card-head {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.teacher-live-summary-card .teacher-card-head {
  display: grid;
  grid-column: 1;
  justify-content: start;
}

.teacher-module-health-card .teacher-card-head {
  display: grid;
  gap: 6px;
  justify-content: start;
}

.teacher-card-head strong {
  color: #10253d;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.teacher-live-summary-card p {
  color: #55687d;
  font-size: 15px;
  grid-column: 1;
  margin: 0;
}

.teacher-live-summary-card button {
  align-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 190px;
}

.teacher-module-health-card {
  border-bottom: 0;
  grid-column: auto;
}

.teacher-module-health-list {
  display: grid;
  gap: 0;
}

.teacher-module-health-list article {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid #e1eaf3;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 16px 0;
}

.teacher-module-health-list article:first-child {
  border-top: 0;
}

.teacher-module-health-list article > span {
  align-items: center;
  background: #edf7ff;
  border-radius: 999px;
  color: #246eb9;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 36px;
}

.teacher-module-health-list strong,
.teacher-module-health-list small {
  display: block;
}

.teacher-module-health-list strong {
  color: #10253d;
  font-size: 17px;
}

.teacher-module-health-list small {
  color: #66788d;
  margin-top: 3px;
}

.teacher-window-head {
  border-bottom: 1px solid #d8e5f1;
  margin-bottom: 4px;
  padding: 6px 0 18px;
}

.teacher-window-head span {
  display: none;
}

.teacher-window-head strong {
  color: #10253d;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1;
}

.teacher-management-form,
.teacher-module-block,
.teacher-live-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.teacher-management-form {
  align-content: start;
  gap: 14px;
  padding: 0;
}

.teacher-split {
  gap: 28px;
}

.teacher-split .teacher-management-form,
.teacher-live-grid .teacher-management-form {
  border-top: 1px solid #d8e5f1;
  padding-top: 18px;
}

.teacher-management-form strong {
  color: #10253d;
  font-size: 18px;
}

.teacher-management-form label {
  color: #5c6f84;
  gap: 7px;
}

.teacher-management-form input,
.teacher-management-form select,
.teacher-management-form textarea {
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(20, 50, 74, 0.04);
  min-height: 46px;
}

.teacher-management-form textarea {
  min-height: 112px;
}

.teacher-management-form button {
  align-self: start;
  border-radius: 999px;
  justify-self: start;
  min-height: 44px;
  min-width: 180px;
}

.teacher-outline,
.teacher-assets,
.teacher-recordings {
  display: grid;
  gap: 0;
}

.teacher-module-block {
  border-top: 1px solid #d8e5f1;
  display: grid;
  gap: 0;
  padding: 18px 0 0;
}

.teacher-module-title,
.teacher-lesson-row,
.teacher-asset-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e1eaf3;
  border-radius: 0;
  padding: 14px 0;
}

.teacher-module-title {
  align-items: baseline;
  color: #10253d;
}

.teacher-lesson-row,
.teacher-asset-row {
  align-items: center;
}

.teacher-live-grid {
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.teacher-live-card {
  align-content: start;
  background: #10253d;
  border-radius: 20px;
  color: #ffffff;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.teacher-live-card span {
  color: #8fd8ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-live-card strong {
  color: #ffffff;
}

.teacher-live-card p {
  color: rgba(255, 255, 255, 0.76);
}

.teacher-live-card .teacher-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.teacher-live-card .teacher-actions button {
  border-radius: 999px;
}

.teacher-live-card .recording-status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
}

body.is-course-player {
  background: var(--white);
}

body.is-course-player .topbar {
  background: #17171f;
  border-bottom-color: #3e4143;
  color: var(--white);
  left: 0;
  min-height: 52px;
  padding: 6px 10px;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 40;
}

body.is-course-player .brand-button,
body.is-course-player .brand-button small,
body.is-course-player .topbar-actions button {
  color: var(--white);
}

body.is-course-player .brand-mark {
  background: var(--purple);
}

body.is-course-player .topbar-actions button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  min-height: 36px;
}

body.is-course-player .topbar-icon-button,
body.is-course-player .profile-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body.is-course-player .profile-chip small {
  color: rgba(255, 255, 255, 0.72);
}

body.is-course-player .topbar-popover {
  color: #14324a;
  top: calc(100% + 8px);
}

body.is-course-player .learning-main {
  max-width: none;
  padding: 52px 0 0;
}

body.is-course-player .player-view {
  gap: 0;
}

body.is-course-player .player-top {
  background: #17171f;
  border-bottom: 1px solid #3e4143;
  color: var(--white);
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  padding: 8px 12px;
  position: sticky;
  top: 52px;
  z-index: 18;
}

body.is-course-player .player-top h1 {
  color: var(--white);
  font-size: 17px;
  line-height: 1.2;
}

body.is-course-player .player-top span {
  color: rgba(255, 255, 255, 0.68);
}

body.is-course-player .player-top > button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  min-height: 36px;
}

body.is-course-player .player-layout {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 400px;
  transition: grid-template-columns 220ms ease;
}

body.is-course-player .player-column {
  background: var(--white);
  gap: 0;
  min-width: 0;
}

body.is-course-player .video-player {
  background: #17171f;
}

body.is-course-player .video-screen {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

body.is-course-player .video-screen.is-recording {
  aspect-ratio: auto;
  min-height: 0;
}

body.is-course-player .main-recording-video {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - 220px);
  min-height: 0;
  object-fit: contain;
}

body.is-course-player .video-controls {
  background: #17171f;
  border-top: 1px solid #2d2f31;
  padding: 10px 14px;
}

body.is-course-player .video-controls button {
  min-height: 36px;
}

body.is-course-player .progress-strip {
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

body.is-course-player .content-tabs {
  border-top: 1px solid var(--line);
  padding-left: 16px;
}

body.is-course-player .content-panel {
  border: 0;
  margin: 0 auto;
  max-width: 980px;
  padding: 34px 22px 80px;
}

body.is-course-player .curriculum-panel {
  align-self: start;
  border-bottom: 0;
  border-right: 0;
  border-top: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: calc(100vh - 110px);
  max-height: none;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 110px;
  width: 400px;
  z-index: 15;
}

body.is-course-player .curriculum-head {
  background: var(--white);
  min-height: 58px;
  z-index: 2;
}

body.is-course-player .curriculum-toggle {
  background: #f7fbff;
}

body.is-course-player .curriculum-progress {
  background: var(--white);
}

body.is-course-player .curriculum-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

body.is-course-player .curriculum-module summary {
  padding: 16px;
}

body.is-course-player .lesson-row {
  min-height: 64px;
  padding: 12px 16px;
}

body.is-course-player.is-curriculum-collapsed .player-layout {
  grid-template-columns: minmax(0, 1fr) 64px;
}

body.is-course-player.is-curriculum-collapsed .curriculum-panel {
  align-content: start;
  grid-template-rows: 64px;
  width: 64px;
}

body.is-course-player.is-curriculum-collapsed .curriculum-head {
  border-bottom: 0;
  height: 64px;
  justify-content: center;
  min-height: 64px;
  padding: 12px 8px;
}

body.is-course-player.is-curriculum-collapsed .curriculum-head > div,
body.is-course-player.is-curriculum-collapsed .curriculum-progress,
body.is-course-player.is-curriculum-collapsed .curriculum-list {
  display: none;
}

body.is-course-player.is-curriculum-collapsed .curriculum-toggle svg {
  transform: rotate(180deg);
}

/* Compact course player: Udemy-like fixed curriculum. */
body.is-course-player .progress-strip {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  min-height: 54px;
  padding: 10px 18px;
}

body.is-course-player .progress-strip > div:first-child {
  align-items: start;
  display: grid;
  gap: 2px;
  justify-content: stretch;
}

body.is-course-player .progress-strip strong {
  color: #14324a;
  font-size: 13px;
}

body.is-course-player .progress-strip span {
  font-size: 12px;
}

body.is-course-player .progress-strip .progress-bar {
  background: #e6edf5;
  height: 7px;
  position: relative;
}

body.is-course-player .progress-strip .progress-bar::after {
  background: #ffffff;
  border: 3px solid var(--blue);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(47, 115, 217, 0.24);
  content: "";
  height: 13px;
  left: clamp(0px, calc(var(--progress, 0%) - 7px), calc(100% - 14px));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
}

body.is-course-player .curriculum-panel {
  background: #f7f9fc;
  border-left: 1px solid #d3dde8;
  box-shadow: -12px 0 28px rgba(20, 50, 74, 0.05);
}

body.is-course-player .curriculum-head {
  border-bottom-color: #cfd9e5;
  min-height: 50px;
  padding: 10px 14px 9px 16px;
}

body.is-course-player .curriculum-head span {
  color: #14324a;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

body.is-course-player .curriculum-head strong {
  color: #5e6f84;
  font-size: 12px;
  font-weight: 800;
}

body.is-course-player .curriculum-progress {
  background: #ffffff;
  border-bottom-color: #d3dde8;
  gap: 7px;
  padding: 10px 16px 12px;
}

body.is-course-player .curriculum-progress > div {
  align-items: baseline;
  gap: 8px;
}

body.is-course-player .curriculum-progress span {
  color: #5e6f84;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

body.is-course-player .curriculum-progress strong {
  color: #14324a;
  font-size: 13px;
}

body.is-course-player .curriculum-progress small {
  color: #6d7d90;
  font-size: 11px;
}

body.is-course-player .curriculum-progress .progress-bar {
  background: #e6edf5;
  height: 6px;
}

body.is-course-player .curriculum-list {
  align-content: start;
  background: #f7f9fc;
  grid-auto-rows: max-content;
}

body.is-course-player .curriculum-module {
  align-self: start;
  background: #ffffff;
  border-bottom: 1px solid #d3dde8;
}

body.is-course-player .curriculum-module summary {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(0, 1fr) 24px;
  min-height: 58px;
  padding: 8px 14px 8px 16px;
}

body.is-course-player .curriculum-module[open] summary {
  background: #f8fbff;
}

body.is-course-player .curriculum-module-meta {
  align-items: baseline;
  display: flex;
  gap: 10px;
  grid-column: 1;
  justify-content: space-between;
  min-width: 0;
}

body.is-course-player .curriculum-module-meta span {
  color: #4f647b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.is-course-player .curriculum-module-meta small {
  color: #5f7186;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.is-course-player .curriculum-module summary > strong {
  color: #10253d;
  font-size: 14px;
  grid-column: 1;
  line-height: 1.28;
}

body.is-course-player .curriculum-module-chevron {
  align-items: center;
  color: #4f647b;
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 24px;
  justify-content: center;
  justify-self: end;
  width: 24px;
}

body.is-course-player .curriculum-module-chevron svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 160ms ease;
  width: 18px;
}

body.is-course-player .curriculum-module[open] .curriculum-module-chevron svg {
  transform: rotate(180deg);
}

body.is-course-player .curriculum-module-progress {
  background: #e8eef5;
  border-radius: 999px;
  display: block;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
}

body.is-course-player .curriculum-module-progress span {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--progress, 0%);
}

body.is-course-player .lesson-row {
  background: #ffffff;
  border-top: 1px solid #e1e8f0;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 50px;
  padding: 9px 16px;
}

body.is-course-player .lesson-row:hover {
  background: #f4f8fd;
}

body.is-course-player .lesson-row.active {
  background: #edf5ff;
  box-shadow: inset 4px 0 0 var(--blue);
}

body.is-course-player .lesson-row strong {
  color: #132b46;
  font-size: 13px;
  line-height: 1.25;
}

body.is-course-player .lesson-row small {
  color: #61748a;
  font-size: 11px;
  margin-top: 2px;
}

body.is-course-player .lesson-status {
  font-size: 10px;
  height: 22px;
  width: 22px;
}

body.is-course-player .content-tabs {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #d9e3ee;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
}

body.is-course-player .content-tabs button {
  border-bottom-width: 0;
  border-radius: 999px;
  color: #5d7085;
  min-height: 38px;
  padding: 9px 16px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

body.is-course-player .content-tabs button:hover {
  background: #f1f6fb;
  color: #14324a;
}

body.is-course-player .content-tabs button.active {
  background: #14324a;
  color: #ffffff;
}

body.is-course-player .content-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  margin: 0;
  max-width: none;
  padding: 30px clamp(18px, 4vw, 64px) 86px;
}

.student-section {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
}

.section-banner,
.qa-hero,
.resources-head {
  border: 1px solid #d8e5f1;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(20, 50, 74, 0.07);
}

.section-banner {
  background:
    linear-gradient(135deg, rgba(20, 50, 74, 0.96), rgba(47, 115, 217, 0.86)),
    #14324a;
  color: #ffffff;
  display: grid;
  gap: 8px;
  padding: 28px;
}

.section-banner span,
.qa-hero span,
.resources-head span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-banner span {
  color: #bdeee9;
}

.section-banner h3,
.qa-hero h3,
.resources-head h3 {
  color: inherit;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  margin: 0;
}

.section-banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  margin: 0;
  max-width: 720px;
}

.overview-grid,
.student-checklist {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid article,
.student-checklist article,
.qa-card,
.resource-card {
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(20, 50, 74, 0.055);
}

.overview-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.overview-grid span,
.overview-grid small,
.student-checklist small,
.qa-card p,
.qa-meta,
.resources-head p,
.resource-card small {
  color: #62748a;
}

.overview-grid span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.overview-grid strong {
  color: #14324a;
  font-size: 18px;
  line-height: 1.2;
}

.student-checklist article {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 18px;
}

.student-checklist article > span {
  align-items: center;
  background: #e8f6f4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.student-checklist strong {
  color: #14324a;
  display: block;
  margin-bottom: 4px;
}

.qa-hero,
.resources-head {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px;
}

.qa-hero p,
.resources-head p {
  margin: 8px 0 0;
  max-width: 680px;
}

.qa-hero > strong,
.resources-head > strong {
  align-items: center;
  background: #edf5ff;
  border: 1px solid #cfe1f4;
  border-radius: 20px;
  color: #1f5eb8;
  display: inline-flex;
  font-size: 26px;
  font-weight: 950;
  height: 70px;
  justify-content: center;
  min-width: 84px;
  padding: 0 18px;
}

.qa-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 190px 170px;
}

.qa-tools label {
  display: grid;
  gap: 6px;
}

.qa-tools label span {
  color: #62748a;
  font-size: 12px;
  font-weight: 900;
}

.qa-tools input,
.qa-tools select,
.qa-composer textarea {
  background: #ffffff;
  border: 1px solid #d4e1ee;
  border-radius: 16px;
  color: #14324a;
  min-height: 46px;
}

.qa-composer {
  align-items: start;
  background: #f2f8ff;
  border: 1px solid #cfe1f4;
  border-radius: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 16px;
}

.qa-composer > span,
.qa-avatar,
.resource-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
}

.qa-composer > span {
  background: #14324a;
  color: #ffffff;
  height: 42px;
  width: 42px;
}

.qa-composer textarea {
  min-height: 78px;
  resize: vertical;
}

.qa-composer button,
.resource-card button,
.resource-card a,
.resource-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.qa-composer button,
.resource-card button,
.resource-card a {
  background: #2f73d9;
  color: #ffffff;
}

.resource-status {
  background: #e8f6f4;
  color: #0f766e;
}

.qa-list {
  display: grid;
  gap: 12px;
}

.qa-card {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 18px;
}

.qa-avatar {
  background: #14324a;
  color: #ffffff;
  height: 44px;
  width: 44px;
}

.qa-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.qa-card-head strong {
  color: #14324a;
  font-size: 16px;
}

.qa-card-head small {
  background: #edf5ff;
  border-radius: 999px;
  color: #1f5eb8;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  padding: 5px 9px;
}

.qa-card p {
  margin: 7px 0 0;
}

.qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qa-meta span {
  background: #f3f7fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.resource-grid {
  display: grid;
  gap: 12px;
}

.resource-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 16px;
}

.resource-card strong {
  color: #14324a;
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.resource-icon {
  background: #edf5ff;
  color: #1f5eb8;
  height: 54px;
  width: 54px;
}

.recording-resource {
  grid-template-columns: 220px minmax(0, 1fr) auto;
}

.resource-video {
  aspect-ratio: 16 / 9;
  background: #101827;
  border-radius: 16px;
  display: block;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 900px) {
  .overview-grid,
  .student-checklist,
  .qa-tools,
  .qa-hero,
  .resources-head,
  .qa-composer,
  .resource-card,
  .recording-resource {
    grid-template-columns: 1fr;
  }

  .qa-hero > strong,
  .resources-head > strong {
    height: auto;
    justify-self: start;
    min-height: 48px;
    min-width: 0;
  }

  .qa-composer > span {
    display: none;
  }

  .qa-composer button,
  .resource-card button,
  .resource-card a,
  .resource-status {
    justify-self: stretch;
  }
}

@media (max-width: 1100px) {
  body.is-teacher-dashboard .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .teacher-topbar-nav {
    justify-content: flex-start;
    justify-self: stretch;
    overflow-x: auto;
  }

  .teacher-command-bar,
  .teacher-console-head,
  .teacher-workspace,
  .teacher-dashboard-grid,
  .teacher-overview-grid,
  .teacher-ops-grid,
  .teacher-live-grid {
    grid-template-columns: 1fr;
  }

  .teacher-metric-grid {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-course-panel {
    max-height: none;
    position: relative;
  }

  .teacher-command-bar {
    top: 74px;
  }

  .teacher-editor-actions {
    justify-content: start;
  }

  .teacher-quick-actions {
    grid-template-columns: 1fr;
  }

  .teacher-live-summary-card,
  .teacher-live-grid {
    grid-template-columns: 1fr;
  }

  .teacher-live-summary-card .teacher-card-head,
  .teacher-live-summary-card p,
  .teacher-live-summary-card button {
    grid-column: auto;
    grid-row: auto;
  }

  .teacher-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-metric-grid article:nth-child(2) {
    border-right: 0;
  }

  .teacher-metric-grid article:nth-child(n + 3) {
    border-top: 1px solid #d8e5f1;
    padding-top: 18px;
  }
}

@media (max-width: 1050px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-layout {
    grid-template-columns: 1fr;
  }

  .teacher-console-head,
  .teacher-workspace,
  .teacher-split,
  .teacher-live-grid,
  .partner-hero,
  .partner-layout {
    grid-template-columns: 1fr;
  }

  .teacher-course-panel,
  .partner-side {
    max-height: none;
    position: static;
  }

  .partner-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-table-row {
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(220px, 1fr) minmax(120px, 0.6fr);
  }

  .curriculum-panel {
    max-height: none;
    position: static;
  }

  body.is-course-player .player-layout {
    grid-template-columns: 1fr;
  }

  body.is-course-player.is-curriculum-collapsed .player-layout {
    grid-template-columns: 1fr;
  }

  body.is-course-player .curriculum-panel {
    border: 1px solid var(--line);
    height: auto;
    max-height: none;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    width: 100%;
  }

  body.is-course-player.is-curriculum-collapsed .curriculum-head {
    justify-content: flex-end;
    min-height: 56px;
  }

  body.is-course-player .player-top {
    top: 52px;
  }
}

@media (max-width: 1200px) {
  .auth-screen .app-header {
    grid-template-columns: auto 1fr auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .auth-screen .app-header .brand small,
  .auth-screen .header-register {
    display: none;
  }
}

@media (max-width: 940px) {
  .auth-screen .site-announcement > div > span:not(.announcement-pulse) {
    display: none;
  }

  .auth-screen .app-header {
    grid-template-columns: 1fr auto;
  }

  .auth-screen .app-header .tab-nav {
    align-items: stretch;
    background: #ffffff;
    border-top: 1px solid #e6e9e6;
    box-shadow: 0 18px 30px rgba(18, 40, 45, 0.12);
    display: none;
    gap: 4px;
    left: 0;
    padding: 14px 22px 20px;
    position: absolute;
    right: 0;
    top: 71px;
  }

  .auth-screen .app-header .tab-nav.is-open {
    display: grid;
  }

  .auth-screen .app-header .tab-nav a {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .auth-screen .app-header .menu-toggle {
    display: grid;
    justify-self: end;
    order: 2;
  }

  .auth-screen .app-header .header-actions {
    display: flex;
    margin-right: 52px;
    position: absolute;
    right: 20px;
  }
}

@media (max-width: 680px) {
  .auth-screen .site-announcement {
    min-height: 38px;
    padding: 6px 14px;
  }

  .auth-screen .site-announcement strong,
  .auth-screen .site-announcement > a {
    font-size: 10px;
  }

  .auth-screen .site-announcement > a {
    margin-left: 12px;
  }

  .auth-screen .app-header {
    gap: 10px;
    height: 64px;
    min-height: 64px;
    padding: 7px 14px;
  }

  .auth-screen .app-header .brand > span:last-child {
    display: block;
  }

  .auth-screen .app-header .brand-mark {
    height: 38px;
    width: 38px;
  }

  .auth-screen .app-header .brand strong {
    font-size: 14px;
  }

  .auth-screen .app-header .header-actions {
    margin-right: 50px;
    right: 10px;
  }

  .auth-screen .app-header .plan-button {
    flex: 0 0 44px;
    height: 38px;
    min-height: 38px;
    width: 44px;
  }

  .auth-screen .app-header .header-login {
    flex: 0 0 87px;
    font-size: 11px;
    height: auto;
    min-height: 42px;
    min-width: 87px;
    padding: 10px 17px;
    width: 87px;
  }

  .auth-screen .app-header .tab-nav {
    top: 63px;
  }
}

/* Centro docente v2: un espacio de trabajo enfocado en el curso abierto. */
body.is-teacher-dashboard {
  background: #f7f9fb;
}

body.is-teacher-dashboard .learning-shell > .topbar {
  background: rgba(255, 255, 255, 0.98);
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 8px clamp(16px, 2.5vw, 34px);
  position: sticky;
  top: 0;
}

body.is-teacher-dashboard .topbar-help-button,
body.is-teacher-dashboard .topbar-language-button {
  display: none;
}

body.is-course-player .teacher-course-context,
body.is-live-workspace .teacher-course-context {
  display: none !important;
}

.teacher-course-context {
  align-items: center;
  border-left: 1px solid var(--brand-line);
  display: flex;
  gap: 12px;
  justify-self: stretch;
  min-width: 0;
  padding-left: 18px;
}

.teacher-course-back {
  align-items: center;
  border-radius: 8px;
  color: var(--brand-900);
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  text-decoration: none;
}

.teacher-course-back:hover {
  background: var(--brand-soft);
}

.teacher-course-back svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.teacher-course-thumb {
  background: #e8edf3;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  display: block;
  flex: 0 0 50px;
  height: 50px;
  overflow: hidden;
  width: 50px;
}

.teacher-course-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.teacher-course-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.teacher-course-copy > strong {
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-course-copy > span {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.teacher-course-copy small {
  color: #66788d;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-course-state {
  border: 1px solid #b9d8d1;
  border-radius: 999px;
  color: #0f766e !important;
  flex: 0 0 auto;
  font-weight: 850;
  padding: 3px 7px;
}

.teacher-course-state.is-draft {
  background: #fff8e8;
  border-color: #e8cf99;
  color: #8a5b00 !important;
}

.teacher-course-state.is-published {
  background: #edf8f5;
}

body.is-teacher-dashboard .learning-main {
  margin: 0 auto;
  max-width: 1460px;
  min-height: calc(100vh - 72px);
  padding: 30px clamp(18px, 3vw, 44px) 56px;
  width: 100%;
}

body.is-teacher-dashboard .teacher-view {
  gap: 0;
  min-height: 0;
}

body.is-teacher-dashboard .teacher-workspace {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 218px minmax(0, 1fr);
  margin: 0;
  max-width: none;
  min-height: 0;
}

body.is-teacher-dashboard .teacher-course-panel {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--brand-line);
  box-shadow: none;
  display: grid;
  gap: 20px;
  max-height: none;
  overflow: visible;
  padding: 4px 24px 24px 0;
  position: sticky;
  top: 102px;
}

.teacher-course-nav-head {
  display: grid;
  gap: 4px;
}

.teacher-course-nav-head span {
  color: #6a7d91;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.teacher-course-nav-head strong {
  color: var(--brand-ink);
  font-size: 19px;
}

.teacher-course-nav-head small {
  color: #6a7d91;
  font-size: 11px;
  line-height: 1.45;
}

.teacher-course-nav {
  display: grid;
  gap: 3px;
}

.teacher-course-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #506276;
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.teacher-course-nav button:hover {
  background: #f0f4f8;
  color: var(--brand-ink);
}

.teacher-course-nav button.active {
  background: var(--brand-soft);
  border-left-color: var(--brand-700);
  color: var(--brand-900);
}

.teacher-course-nav button:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.teacher-course-nav button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  width: 19px;
}

.teacher-course-nav button small {
  color: #718296;
  font-size: 10px;
  font-weight: 700;
  grid-column: 2;
  margin-top: -7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-course-nav button.active small {
  color: #476990;
}

.teacher-course-nav-actions {
  border-top: 1px solid var(--brand-line);
  display: grid;
  gap: 7px;
  padding-top: 16px;
}

.teacher-course-nav-actions .teacher-public-link,
.teacher-back-to-courses {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.teacher-course-nav-actions .teacher-public-link {
  background: #fff;
  border: 1px solid #b9cde0;
  color: var(--brand-900);
  margin: 0;
}

.teacher-back-to-courses {
  color: #5e7084;
}

.teacher-back-to-courses:hover {
  background: #eef3f7;
  color: var(--brand-ink);
}

body.is-teacher-dashboard .teacher-editor {
  min-width: 0;
}

body.is-teacher-dashboard .teacher-panel {
  gap: 20px;
  min-height: 0;
}

body.is-teacher-dashboard .teacher-panel:not(.hidden) {
  display: grid;
}

body.is-teacher-dashboard .teacher-grouped-panel {
  border-top: 1px solid var(--brand-line);
  margin-top: 12px;
  padding-top: 30px;
}

body.is-teacher-dashboard .teacher-window-head,
body.is-teacher-dashboard .teacher-minimal-head {
  align-items: end;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0 0 18px;
}

body.is-teacher-dashboard .teacher-window-head > div,
body.is-teacher-dashboard .teacher-minimal-head > div {
  display: grid;
  gap: 5px;
}

body.is-teacher-dashboard .teacher-window-head span,
body.is-teacher-dashboard .teacher-minimal-head span,
.teacher-content-section-head span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.is-teacher-dashboard .teacher-window-head strong,
body.is-teacher-dashboard .teacher-minimal-head h2 {
  color: var(--brand-ink);
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

body.is-teacher-dashboard .teacher-window-head small,
.teacher-content-section-head small {
  color: #68798d;
  font-size: 12px;
  line-height: 1.45;
}

.teacher-settings-disclosure,
.teacher-upload-disclosure {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.04);
  overflow: hidden;
}

.teacher-settings-disclosure > summary,
.teacher-upload-disclosure > summary {
  align-items: center;
  color: var(--brand-ink);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: space-between;
  list-style: none;
  min-height: 58px;
  padding: 13px 16px;
}

.teacher-settings-disclosure > summary::-webkit-details-marker,
.teacher-upload-disclosure > summary::-webkit-details-marker,
.teacher-add-content-disclosure > summary::-webkit-details-marker {
  display: none;
}

.teacher-settings-disclosure > summary > span {
  display: grid;
  gap: 3px;
}

.teacher-settings-disclosure > summary small {
  color: #6c7d90;
  font-size: 11px;
  font-weight: 550;
}

.teacher-settings-disclosure > summary b {
  color: var(--brand-700);
  font-size: 11px;
}

.teacher-settings-disclosure[open] > summary,
.teacher-upload-disclosure[open] > summary {
  border-bottom: 1px solid var(--brand-line);
}

.teacher-settings-disclosure > .teacher-management-form,
.teacher-upload-disclosure > .teacher-management-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 20px;
}

.teacher-content-section-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 4px;
}

.teacher-content-section-head > div {
  display: grid;
  gap: 3px;
}

.teacher-content-section-head strong {
  color: var(--brand-ink);
  font-size: 20px;
}

.teacher-add-content-disclosure {
  position: relative;
}

.teacher-add-content-disclosure > summary {
  background: var(--brand-700);
  border: 1px solid var(--brand-700);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  min-height: 40px;
  padding: 10px 14px;
}

.teacher-add-content-disclosure[open] > summary {
  background: var(--brand-900);
  border-color: var(--brand-900);
}

.teacher-add-content-disclosure > .teacher-split {
  background: #f7f9fb;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: 100%;
  width: min(760px, calc(100vw - 310px));
  z-index: 30;
}

.teacher-add-content-disclosure .teacher-management-form {
  box-shadow: none;
  margin: 0;
}

body.is-teacher-dashboard .teacher-management-form input,
body.is-teacher-dashboard .teacher-management-form select,
body.is-teacher-dashboard .teacher-management-form textarea {
  border-radius: 8px;
  box-shadow: none;
}

body.is-teacher-dashboard .teacher-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.is-teacher-dashboard .teacher-metric-grid article strong {
  font-size: clamp(28px, 3vw, 42px);
}

@media (max-width: 1180px) {
  body.is-teacher-dashboard .teacher-workspace {
    gap: 26px;
    grid-template-columns: 202px minmax(0, 1fr);
  }

  body.is-teacher-dashboard .teacher-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.is-teacher-dashboard .learning-main {
    padding-top: 18px;
  }

  body.is-teacher-dashboard .teacher-workspace {
    display: block;
  }

  body.is-teacher-dashboard .teacher-course-panel {
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--brand-line);
    display: block;
    margin: 0 0 24px;
    overflow: hidden;
    padding: 0;
    position: static;
  }

  .teacher-course-nav-head,
  .teacher-course-nav-actions {
    display: none;
  }

  .teacher-course-nav {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .teacher-course-nav::-webkit-scrollbar {
    display: none;
  }

  .teacher-course-nav button {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    flex: 0 0 auto;
    grid-template-columns: 18px auto;
    min-height: 50px;
    padding: 8px 2px;
    width: auto;
  }

  .teacher-course-nav button.active {
    background: transparent;
    border-bottom-color: var(--brand-700);
  }

  .teacher-course-nav button small {
    display: none;
  }

  .teacher-add-content-disclosure > .teacher-split {
    width: min(760px, calc(100vw - 44px));
  }
}

/* Cierre académico y aprobación de certificados */
body.is-teacher-dashboard .td-certificate-closure {
  grid-column: 1 / -1;
  padding: 24px;
}

body.is-teacher-dashboard .td-certificate-closure > header {
  align-items: flex-start;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

body.is-teacher-dashboard .td-certificate-closure > header h2 {
  margin: 3px 0 6px;
}

body.is-teacher-dashboard .td-certificate-closure > header p {
  color: #64748b;
  margin: 0;
  max-width: 680px;
}

body.is-teacher-dashboard .td-policy-chip {
  background: #eef5ff;
  border: 1px solid #c9ddf8;
  border-radius: 999px;
  color: #164194;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

body.is-teacher-dashboard .teacher-certificate-list {
  display: grid;
  gap: 14px;
}

body.is-teacher-dashboard .td-certificate-student {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 18px;
}

body.is-teacher-dashboard .td-certificate-student.is-approved {
  border-color: #a9d9c8;
  box-shadow: inset 4px 0 #168263;
}

body.is-teacher-dashboard .td-certificate-student > header,
body.is-teacher-dashboard .td-certificate-identity,
body.is-teacher-dashboard .td-certificate-actions,
body.is-teacher-dashboard .td-grade-input {
  align-items: center;
  display: flex;
}

body.is-teacher-dashboard .td-certificate-student > header {
  gap: 16px;
  justify-content: space-between;
}

body.is-teacher-dashboard .td-certificate-identity {
  gap: 11px;
  min-width: 0;
}

body.is-teacher-dashboard .td-certificate-identity > span {
  align-items: center;
  background: #eaf2fc;
  border-radius: 10px;
  color: #164194;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 12px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}

body.is-teacher-dashboard .td-certificate-identity div {
  display: grid;
  min-width: 0;
}

body.is-teacher-dashboard .td-certificate-identity strong,
body.is-teacher-dashboard .td-certificate-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .td-certificate-identity small {
  color: #64748b;
  margin-top: 2px;
}

body.is-teacher-dashboard .td-certificate-status {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-size: 11px;
  padding: 7px 10px;
}

body.is-teacher-dashboard .td-certificate-status.is-approved {
  background: #e8f7f1;
  color: #116149;
}

body.is-teacher-dashboard .td-certificate-status.is-ready_for_approval {
  background: #eef5ff;
  color: #164194;
}

body.is-teacher-dashboard .td-certificate-status.is-needs_improvement,
body.is-teacher-dashboard .td-certificate-status.is-review_required {
  background: #fff4e5;
  color: #9a5b05;
}

body.is-teacher-dashboard .td-certificate-evidence {
  background: #f8fafc;
  border-radius: 10px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 15px 0;
  overflow: hidden;
}

body.is-teacher-dashboard .td-certificate-evidence > span {
  border-right: 1px solid #e2e8f0;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
}

body.is-teacher-dashboard .td-certificate-evidence > span:last-child {
  border-right: 0;
}

body.is-teacher-dashboard .td-certificate-evidence small {
  color: #64748b;
  font-size: 11px;
}

body.is-teacher-dashboard .td-certificate-evidence strong {
  color: #172033;
  font-size: 14px;
}

body.is-teacher-dashboard [data-teacher-certificate-form] {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(220px, 1fr) auto;
}

body.is-teacher-dashboard [data-teacher-certificate-form] label {
  color: #334155;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

body.is-teacher-dashboard [data-teacher-certificate-form] input,
body.is-teacher-dashboard [data-teacher-certificate-form] textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #172033;
  font: inherit;
  min-height: 42px;
  padding: 10px 11px;
  resize: vertical;
  width: 100%;
}

body.is-teacher-dashboard .td-grade-input {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  overflow: hidden;
}

body.is-teacher-dashboard .td-grade-input input {
  border: 0;
  border-radius: 0;
  min-width: 0;
}

body.is-teacher-dashboard .td-grade-input b {
  border-left: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0 10px;
}

body.is-teacher-dashboard .td-certificate-actions {
  gap: 8px;
  justify-content: flex-end;
}

body.is-teacher-dashboard .td-certificate-actions button {
  background: #fff;
  border: 1px solid #b9c7d8;
  border-radius: 9px;
  color: #164194;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
}

body.is-teacher-dashboard .td-certificate-actions .td-approve-certificate {
  background: #164194;
  border-color: #164194;
  color: #fff;
}

body.is-teacher-dashboard .td-certificate-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body.is-teacher-dashboard .td-certificate-blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

body.is-teacher-dashboard .td-certificate-blockers span {
  background: #fff4e5;
  border-radius: 999px;
  color: #8a5208;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

body.is-teacher-dashboard .td-certificate-student > footer,
body.is-teacher-dashboard .td-certificate-account-note {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  margin-top: 13px;
  padding-top: 12px;
}

body.is-teacher-dashboard .td-certificate-account-note p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  body.is-teacher-dashboard .td-certificate-closure {
    padding: 17px;
  }

  body.is-teacher-dashboard .td-certificate-closure > header,
  body.is-teacher-dashboard .td-certificate-student > header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-teacher-dashboard .td-certificate-evidence {
    grid-template-columns: 1fr;
  }

  body.is-teacher-dashboard .td-certificate-evidence > span {
    border-bottom: 1px solid #e2e8f0;
    border-right: 0;
  }

  body.is-teacher-dashboard [data-teacher-certificate-form] {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  body.is-teacher-dashboard .td-certificate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.is-teacher-dashboard .learning-shell > .topbar {
    gap: 7px 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
    padding: 7px 12px 9px;
  }

  body.is-teacher-dashboard .topbar .brand-button {
    grid-column: 1;
    grid-row: 1;
  }

  body.is-teacher-dashboard .topbar .brand-button > span:last-child {
    display: none;
  }

  body.is-teacher-dashboard .topbar .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .teacher-course-context {
    border-left: 0;
    border-top: 1px solid var(--brand-line);
    gap: 9px;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 8px 0 0;
  }

  .teacher-course-back {
    flex-basis: 32px;
    height: 32px;
  }

  .teacher-course-thumb {
    flex-basis: 42px;
    height: 42px;
    width: 42px;
  }

  .teacher-course-copy > strong {
    font-size: 14px;
  }

  body.is-teacher-dashboard .learning-main {
    padding: 14px 12px 36px;
  }

  body.is-teacher-dashboard .teacher-window-head strong,
  body.is-teacher-dashboard .teacher-minimal-head h2 {
    font-size: 24px;
  }

  .teacher-content-section-head {
    align-items: stretch;
    display: grid;
  }

  .teacher-add-content-disclosure > summary {
    text-align: center;
  }

  .teacher-add-content-disclosure > .teacher-split {
    display: grid;
    position: static;
    width: 100%;
  }

  .teacher-settings-disclosure > summary {
    align-items: flex-start;
    gap: 12px;
  }

  .teacher-settings-disclosure > summary small {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-screen .app-header .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    width: 100%;
  }

  .auth-card {
    max-width: 100vw;
    padding: 22px 14px 30px;
    width: 100%;
  }

  .auth-panel {
    margin: 0 auto;
    max-width: 440px;
    padding: 22px 16px;
    width: min(100%, 440px) !important;
  }

  .auth-panel > * {
    max-width: 100%;
    width: 100% !important;
  }

  .auth-side {
    display: none;
  }

  .topbar,
  .home-hero,
  .player-top,
  .progress-strip > div:first-child {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .video-controls,
  .demo-access,
  .recording-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions button,
  .home-hero button,
  .player-top button,
  .video-controls button,
  .course-card button {
    width: 100%;
  }

  .learning-main {
    padding: 14px 12px 28px;
  }

  body.is-teacher-dashboard .topbar {
    position: sticky;
  }

  .teacher-topbar-nav {
    border-radius: 16px;
  }

  .teacher-topbar-nav button {
    min-width: max-content;
  }

  body.is-teacher-dashboard .learning-main {
    padding-top: 14px;
  }

  .teacher-command-bar {
    border-radius: 16px;
    top: 8px;
  }

  .teacher-command-course strong {
    white-space: normal;
  }

  .teacher-module-health-card {
    grid-column: auto;
  }

  .teacher-minimal-head {
    align-items: stretch;
    display: grid;
  }

  .teacher-minimal-head h2 {
    font-size: 34px;
  }

  .teacher-tabs {
    padding-bottom: 2px;
  }

  .home-hero {
    min-height: 0;
  }

  .course-grid,
  .teacher-kpis,
  .partner-kpis,
  .partner-course-grid,
  .form-grid,
  .teacher-metric-grid,
  .teacher-module-health-list article,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .teacher-metric-grid article {
    border-right: 0;
    border-top: 1px solid #d8e5f1;
    padding: 16px 0 0;
  }

  .teacher-metric-grid article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .teacher-metric-grid article + article {
    padding-left: 0;
  }

  .teacher-module-health-list article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .course-card img {
    display: none;
  }

  .teacher-panel-head,
  .teacher-editor-head,
  .partner-card-head,
  .teacher-module-title,
  .teacher-lesson-row,
  .teacher-asset-row,
  .partner-table-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .teacher-editor-actions,
  .teacher-lesson-actions,
  .partner-card-actions,
  .partner-coupon-card div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .teacher-editor-actions button,
  .teacher-lesson-actions button,
  .teacher-panel-head button,
  .partner-card-actions button {
    width: 100%;
  }

  .partner-card-actions {
    justify-content: stretch;
  }

  .partner-table-row.head {
    display: none;
  }

  .video-screen {
    aspect-ratio: auto;
    min-height: 360px;
  }
}

/* Student certificates workspace */
body.is-certificates-dashboard {
  background: #f3f7fb;
}

body.is-certificates-dashboard .learning-main {
  max-width: 1360px;
}

.campus-certificates-view {
  display: grid;
  gap: 22px;
}

.campus-certificates-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(69, 137, 220, 0.3), transparent 34%),
    linear-gradient(135deg, #14324a, #1d4568);
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(20, 50, 74, 0.15);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 240px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  position: relative;
}

.campus-certificates-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.1);
  content: "";
  height: 250px;
  position: absolute;
  right: -86px;
  top: -110px;
  transform: rotate(38deg);
  width: 250px;
}

.campus-certificates-hero > * {
  position: relative;
  z-index: 1;
}

.campus-certificates-hero > div:first-child > span {
  color: #a8d0ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.campus-certificates-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.045em;
  margin: 7px 0 12px;
}

.campus-certificates-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin: 0;
  max-width: 680px;
}

.campus-certificates-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 120px);
}

.campus-certificates-summary article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  justify-items: center;
  min-height: 96px;
  padding: 15px;
}

.campus-certificates-summary strong {
  color: var(--white);
  font-size: 30px;
  line-height: 1;
}

.campus-certificates-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campus-certificates-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.campus-certificate-list-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  min-width: 0;
  padding: 24px;
}

.campus-certificate-head {
  margin-bottom: 18px;
}

.campus-certificate-head > div > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.campus-certificate-head a {
  border: 1px solid #cbd9e7;
  border-radius: 10px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
  padding: 9px 12px;
  text-decoration: none;
}

.campus-certificate-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campus-certificate-card {
  background: #fbfdff;
  border: 1px solid #dce6ef;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  position: relative;
}

.campus-certificate-card.issued {
  border-color: #b9d8ce;
  box-shadow: inset 0 3px 0 #16845b;
}

.campus-certificate-card.eligible {
  border-color: #bad2ee;
  box-shadow: inset 0 3px 0 var(--blue);
}

.campus-certificate-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.campus-certificate-seal {
  align-items: center;
  background: #eaf3ff;
  color: var(--blue-dark);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.campus-certificate-seal svg,
.campus-certificate-guide svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.campus-certificate-seal svg {
  height: 25px;
  width: 25px;
}

.campus-certificate-state {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.campus-certificate-state.issued {
  background: #e9f7f2;
  color: #14674e;
}

.campus-certificate-state.eligible {
  background: #eaf3ff;
  color: var(--blue-dark);
}

.campus-certificate-state.locked {
  background: #f0f3f6;
  color: var(--muted);
}

.campus-certificate-card-copy > span {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campus-certificate-card-copy h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 5px 0 7px;
}

.campus-certificate-card-copy p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  min-height: 32px;
}

.campus-certificate-progress > div:first-child {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.campus-certificate-progress strong {
  color: var(--ink);
}

.campus-certificate-record {
  align-items: center;
  background: var(--white);
  border: 1px solid #dce5ee;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 8px;
}

.campus-certificate-record img {
  display: block;
  height: 48px;
  image-rendering: pixelated;
  width: 48px;
}

.campus-certificate-record div {
  display: grid;
  min-width: 0;
}

.campus-certificate-record span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.campus-certificate-record strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.campus-certificate-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
}

.campus-certificate-actions.single {
  grid-template-columns: 1fr;
}

.campus-certificate-actions a,
.campus-certificate-actions button {
  align-items: center;
  background: var(--white);
  border: 1px solid #cbd9e7;
  border-radius: 9px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  justify-content: center;
  min-height: 37px;
  padding: 7px;
  text-decoration: none;
}

.campus-certificate-actions .primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.campus-certificate-actions button:disabled {
  background: #edf1f5;
  border-color: #dfe6ed;
  color: #8b99a8;
  cursor: not-allowed;
}

.campus-certificate-message {
  color: var(--green);
  font-size: 11px;
  margin: 14px 0 0;
  min-height: 18px;
}

.campus-certificate-guide {
  background: var(--ink);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  color: var(--white);
  display: grid;
  padding: 28px;
}

.campus-certificate-guide-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #a8d0ff;
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 24px;
  width: 58px;
}

.campus-certificate-guide-icon svg {
  height: 31px;
  width: 31px;
}

.campus-certificate-guide > span:not(.campus-certificate-guide-icon) {
  color: #9fc9fa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campus-certificate-guide h2 {
  color: var(--white);
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.campus-certificate-guide p,
.campus-certificate-guide li,
.campus-certificate-guide small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.campus-certificate-guide p {
  margin: 0;
}

.campus-certificate-guide ul {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 22px 0;
  padding: 18px 0;
}

.campus-certificate-guide li {
  padding-left: 18px;
  position: relative;
}

.campus-certificate-guide li::before {
  color: #73d5b3;
  content: "✓";
  font-weight: 950;
  left: 0;
  position: absolute;
}

@media (max-width: 1020px) {
  .campus-certificates-layout {
    grid-template-columns: 1fr;
  }

  .campus-certificate-guide {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 20px;
  }

  .campus-certificate-guide-icon {
    grid-row: 1 / span 5;
  }

  .campus-certificate-guide ul,
  .campus-certificate-guide small {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .campus-certificates-hero {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .campus-certificates-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .campus-certificate-list-wrap {
    border-radius: 18px;
    padding: 18px;
  }

  .campus-certificate-grid {
    grid-template-columns: 1fr;
  }

  .campus-certificate-guide {
    display: block;
  }

  .campus-certificate-guide ul,
  .campus-certificate-guide small {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .campus-certificate-head {
    align-items: start;
    display: grid;
    gap: 12px;
  }

  .campus-certificate-head a {
    justify-self: start;
  }

  .campus-certificate-actions {
    grid-template-columns: 1fr;
  }
}

/* Student workspace: structured, actionable dashboard. */
.student-topbar-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-self: center;
}

.student-topbar-nav button {
  background: transparent;
  border-radius: 10px;
  color: #5b6f84;
  min-height: 38px;
  padding: 8px 14px;
}

.student-topbar-nav button:hover,
.student-topbar-nav button.active {
  background: #eef5ff;
  color: #1f5eb8;
}

.student-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-metrics article {
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(29, 65, 99, 0.06);
  display: grid;
  gap: 7px;
  min-height: 102px;
  padding: 18px 20px;
}

.student-metrics span {
  color: #6b7d90;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.student-metrics strong {
  color: #122d47;
  font-size: 28px;
  line-height: 1;
}

.student-home-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.student-courses-block {
  min-width: 0;
}

.student-home-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.student-side-card {
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(29, 65, 99, 0.07);
  overflow: hidden;
  padding: 17px;
}

.student-side-card.compact {
  box-shadow: none;
}

.student-side-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.student-side-head span,
.agenda-card-head span {
  color: #1f6a9f;
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.student-side-head h2,
.agenda-card-head h2 {
  color: #132e48;
  font-size: 17px;
  margin: 0;
}

.student-side-head button {
  background: transparent;
  color: #1f5eb8;
  font-size: 12px;
  padding: 4px;
}

.next-live-card {
  background: linear-gradient(145deg, #153c62, #2169a5);
  border-radius: 15px;
  color: #ffffff;
  display: grid;
  gap: 7px;
  min-height: 190px;
  padding: 18px;
  position: relative;
}

.next-live-card::after {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  content: "";
  height: 130px;
  position: absolute;
  right: -40px;
  top: -45px;
  width: 130px;
}

.next-live-card > span {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  gap: 7px;
  letter-spacing: 0.05em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.next-live-card > span::before {
  background: #62e0be;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(98, 224, 190, 0.15);
  content: "";
  height: 7px;
  width: 7px;
}

.next-live-card strong {
  font-size: 17px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.next-live-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  margin: 0;
}

.next-live-card button {
  align-self: end;
  background: #ffffff;
  border-radius: 10px;
  color: #153c62;
  justify-self: start;
  min-height: 38px;
  padding: 9px 14px;
}

.student-pending-list,
.student-announcement-list {
  display: grid;
  gap: 8px;
}

.student-pending-list button {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  color: #18354f;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
}

.student-pending-list button:hover {
  background: #eef5ff;
  border-color: #bed4ee;
}

.student-pending-list button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.student-pending-list strong,
.student-announcement-list strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-pending-list small,
.student-announcement-list small {
  color: #75869a;
  font-size: 10px;
}

.student-pending-list b {
  background: #fff4df;
  border-radius: 999px;
  color: #9a5b08;
  flex: 0 0 auto;
  font-size: 9px;
  padding: 5px 7px;
  text-transform: uppercase;
}

.student-announcement-list article {
  border-bottom: 1px solid #e3eaf2;
  display: grid;
  gap: 3px;
  padding: 8px 2px 11px;
}

.student-announcement-list article:last-child {
  border-bottom: 0;
}

.student-agenda-view {
  display: grid;
  gap: 20px;
}

.workspace-heading {
  align-items: center;
  background: linear-gradient(135deg, #153a5c, #205f91);
  border-radius: 20px;
  color: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px 28px;
}

.workspace-heading > div {
  display: grid;
  gap: 4px;
}

.workspace-heading span {
  color: #8fd9d4;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-heading h1 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  margin: 0;
}

.workspace-heading p {
  color: rgba(255, 255, 255, 0.7);
  margin: 3px 0 0;
}

.workspace-heading > button {
  background: #ffffff;
  border-radius: 10px;
  color: #17486f;
  min-height: 40px;
  padding: 9px 14px;
}

.agenda-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agenda-summary article {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  min-height: 84px;
  padding: 16px 20px;
}

.agenda-summary strong {
  color: #1f5eb8;
  font-size: 28px;
}

.agenda-summary span {
  color: #607388;
  font-size: 12px;
}

.agenda-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.agenda-card {
  background: #ffffff;
  border: 1px solid #d8e4ef;
  border-radius: 19px;
  box-shadow: 0 14px 32px rgba(29, 65, 99, 0.07);
  min-width: 0;
  padding: 20px;
}

.agenda-card-head {
  margin-bottom: 15px;
}

.assignment-list,
.agenda-timeline {
  display: grid;
  gap: 11px;
}

.assignment-card {
  background: #fbfcfe;
  border: 1px solid #dfe7f0;
  border-left: 4px solid #d4a23a;
  border-radius: 14px;
  padding: 16px;
}

.assignment-card.submitted {
  border-left-color: #1d9a6c;
}

.assignment-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.assignment-card-head span,
.assignment-card > small {
  color: #6c7d90;
  font-size: 10px;
  font-weight: 850;
}

.assignment-card-head b {
  background: #fff3d8;
  border-radius: 999px;
  color: #945909;
  font-size: 9px;
  padding: 5px 8px;
  text-transform: uppercase;
}

.assignment-card.submitted .assignment-card-head b {
  background: #e4f6ee;
  color: #13714f;
}

.assignment-card h3 {
  color: #17334d;
  font-size: 15px;
  margin: 10px 0 5px;
}

.assignment-card p {
  color: #65768a;
  font-size: 12px;
  margin-bottom: 9px;
}

.assignment-feedback {
  background: #edf7f3;
  border-radius: 10px;
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 11px;
}

.assignment-feedback p {
  margin: 0;
}

.assignment-delivery {
  border-top: 1px solid #e2e9f0;
  margin-top: 12px;
  padding-top: 10px;
}

.assignment-delivery summary {
  color: #1f5eb8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.assignment-delivery form {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.assignment-delivery textarea,
.assignment-delivery input {
  border: 1px solid #cddae7;
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
}

.assignment-delivery button {
  background: #2f73d9;
  border-radius: 10px;
  color: #ffffff;
  justify-self: start;
  padding: 9px 14px;
}

.agenda-timeline article {
  align-items: center;
  border-left: 2px solid #b9cce0;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 8px 0 8px 13px;
}

.agenda-timeline article > span {
  background: #edf5ff;
  border-radius: 999px;
  color: #1f5eb8;
  font-size: 9px;
  padding: 5px 7px;
  text-align: center;
  text-transform: uppercase;
}

.agenda-timeline article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agenda-timeline strong {
  color: #17334d;
  font-size: 12px;
}

.agenda-timeline small {
  color: #738397;
  font-size: 10px;
}

.agenda-timeline button {
  background: #eef5ff;
  border-radius: 9px;
  color: #1f5eb8;
  font-size: 10px;
  padding: 7px 9px;
}

/* Teacher data views that previously rendered as unstyled text. */
.teacher-briefing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.teacher-briefing-card,
.teacher-assignment-list-wrap {
  background: #ffffff;
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.teacher-briefing-card [data-teacher-alerts] {
  display: grid;
  gap: 8px;
}

.teacher-briefing-card [data-teacher-alerts] button {
  align-items: center;
  background: #f5f8fb;
  border: 1px solid #e0e8f0;
  border-radius: 11px;
  color: #24435e;
  display: flex;
  gap: 11px;
  padding: 11px;
  text-align: left;
}

.teacher-briefing-card [data-teacher-alerts] button strong {
  align-items: center;
  background: #fff0d7;
  border-radius: 8px;
  color: #9a5b08;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.teacher-briefing-card input,
.teacher-briefing-card textarea {
  border: 1px solid #ccdae7;
  border-radius: 10px;
  min-width: 0;
  padding: 10px 11px;
  resize: vertical;
  width: 100%;
}

.teacher-briefing-card > button,
.teacher-attendance-button {
  background: #2f73d9;
  border-radius: 10px;
  color: #ffffff;
  justify-self: start;
  padding: 9px 14px;
}

.teacher-inline-search input {
  background: #ffffff;
  border: 1px solid #cad8e6;
  border-radius: 10px;
  min-width: 230px;
  padding: 9px 12px;
}

.teacher-student-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 15px;
}

.teacher-student-summary article {
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 13px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.teacher-student-summary span {
  color: #6b7d90;
  font-size: 10px;
  text-transform: uppercase;
}

.teacher-student-summary strong {
  color: #153651;
  font-size: 22px;
}

.teacher-student-table {
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  overflow: hidden;
}

.teacher-student-row {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e4ebf2;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.8fr) minmax(150px, 0.8fr) 100px;
  min-height: 68px;
  padding: 11px 16px;
}

.teacher-student-row:first-child,
.teacher-student-row.head + .teacher-student-row {
  border-top: 0;
}

.teacher-student-row.head {
  background: #f1f5f9;
  color: #64768a;
  font-size: 10px;
  font-weight: 950;
  min-height: 42px;
  text-transform: uppercase;
}

.teacher-student-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teacher-student-row small {
  color: #77879a;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-student-row .mini-progress {
  margin-top: 5px;
}

.student-risk {
  border-radius: 999px;
  font-size: 9px;
  justify-self: start;
  padding: 5px 8px;
  text-transform: uppercase;
}

.student-risk.ok {
  background: #e5f6ee;
  color: #13714f;
}

.student-risk.risk {
  background: #fff0de;
  color: #9d5700;
}

.teacher-assessment-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.teacher-assignment-list {
  display: grid;
  gap: 11px;
}

.teacher-assignment-card {
  background: #f8fafc;
  border: 1px solid #dde6ef;
  border-radius: 13px;
  padding: 15px;
}

.teacher-assignment-card > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.teacher-assignment-card > div:first-child span,
.teacher-assignment-card > small {
  color: #697b8e;
  font-size: 10px;
}

.teacher-assignment-card > div:first-child b {
  background: #e9f3ff;
  border-radius: 999px;
  color: #1f5eb8;
  font-size: 9px;
  padding: 5px 8px;
}

.teacher-assignment-card h3 {
  color: #17344e;
  font-size: 15px;
  margin: 10px 0 5px;
}

.teacher-assignment-card > p {
  color: #68798b;
  font-size: 11px;
  margin-bottom: 9px;
}

.teacher-submission-card {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  margin-top: 9px;
  padding: 10px 11px;
}

.teacher-submission-card summary {
  color: #27445e;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}

.teacher-submission-card summary b {
  float: right;
}

.teacher-submission-card form {
  display: grid;
  gap: 7px;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  margin-top: 10px;
}

.teacher-submission-card input {
  border: 1px solid #cfdae5;
  border-radius: 8px;
  min-width: 0;
  padding: 8px;
}

.teacher-submission-card button {
  background: #2f73d9;
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 10px;
}

/* Shared empty states and the newer interactive course panels. */
.quiet-empty,
.inline-status {
  color: #6f8093;
  font-size: 11px;
  margin: 0;
}

.inline-status:not(:empty) {
  background: #edf5ff;
  border-radius: 10px;
  color: #1f5eb8;
  margin-top: 12px;
  padding: 9px 11px;
}

.empty-state {
  align-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd9e6;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 150px;
  padding: 24px;
  text-align: center;
}

.empty-state strong {
  color: #1b3853;
}

.empty-state p {
  color: #718296;
  font-size: 11px;
  margin: 0;
}

.empty-state a {
  color: #1f5eb8;
  margin-top: 5px;
}

.course-card-kicker {
  color: #1f6a9f;
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-modern,
.qa-modern,
.resources-modern,
.notes-modern {
  min-width: 0;
}

.lesson-note-form {
  display: grid;
  gap: 10px;
}

.lesson-note-form textarea {
  border: 1px solid #cddae7;
  border-radius: 12px;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.lesson-note-form button {
  background: #2f73d9;
  border-radius: 10px;
  color: #ffffff;
  justify-self: start;
  padding: 9px 15px;
}

/* Complete the newer institutional partner tabs and reports. */
.partner-nav {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e4ef;
  border-radius: 14px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
}

.partner-nav button {
  background: transparent;
  border-radius: 9px;
  color: #65778a;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
}

.partner-nav button.active,
.partner-nav button:hover {
  background: #143b5d;
  color: #ffffff;
}

.partner-section {
  background: #ffffff;
  border: 1px solid #d8e4ef;
  border-radius: 20px;
  box-shadow: 0 15px 38px rgba(24, 66, 102, 0.08);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.partner-section-head {
  align-items: end;
  border-bottom: 1px solid #e0e8f0;
  padding-bottom: 17px;
}

.partner-section-head p {
  color: #718296;
  font-size: 11px;
  margin: 5px 0 0;
}

.partner-section-head > button,
.partner-section-head > a,
.partner-section-head .partner-card-actions button {
  align-items: center;
  background: #2f73d9;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 39px;
  padding: 9px 13px;
  text-decoration: none;
}

.partner-section-head .partner-card-actions input {
  border: 1px solid #cbd8e5;
  border-radius: 10px;
  min-height: 39px;
  padding: 9px 11px;
}

.partner-community-summary,
.partner-funds-summary {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-community-summary article,
.partner-funds-summary article {
  background: #f5f8fb;
  border: 1px solid #dfe7ef;
  border-radius: 13px;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 15px;
}

.partner-community-summary span,
.partner-funds-summary span {
  color: #6e8093;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-community-summary strong,
.partner-funds-summary strong {
  color: #153651;
  font-size: 21px;
}

.partner-funds-summary small {
  color: #728397;
  font-size: 9px;
  line-height: 1.4;
}

.partner-campaign-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(240px, 0.72fr);
}

.partner-campaign-primary,
.partner-message-card,
.partner-asset-card {
  border-radius: 16px;
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 18px;
}

.partner-campaign-primary {
  align-content: space-between;
  background: linear-gradient(145deg, #153b5d, #226da6);
  color: #ffffff;
}

.partner-campaign-primary > span,
.partner-message-card > span,
.partner-asset-card > span {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-campaign-primary > span {
  color: #92c9f3;
}

.partner-campaign-primary > strong {
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.partner-campaign-primary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-campaign-primary button {
  background: #ffffff;
  border-radius: 9px;
  color: #174568;
  padding: 9px 11px;
}

.partner-campaign-primary button:last-child {
  background: #1e9a6d;
  color: #ffffff;
}

.partner-message-card,
.partner-asset-card {
  background: #f7f9fc;
  border: 1px solid #dbe5ee;
}

.partner-message-card > span,
.partner-asset-card > span {
  color: #1f6a9f;
}

.partner-message-card p {
  color: #50657a;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.partner-message-card p strong {
  color: #173f63;
}

.partner-asset-card > p {
  color: #50657a;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.partner-message-card button,
.partner-asset-card > button {
  align-self: end;
  background: #e8f2ff;
  border-radius: 9px;
  color: #1f5eb8;
  justify-self: start;
  padding: 9px 12px;
}

.partner-asset-preview {
  aspect-ratio: 1 / 1;
  background: #edf4fb;
  border: 1px solid #d5e2ef;
  border-radius: 13px;
  display: grid;
  place-items: center;
  min-height: 140px;
  overflow: hidden;
  position: relative;
}

.partner-asset-loading {
  align-items: center;
  color: #164194;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.partner-asset-loading b {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cdddeb;
  border-radius: 50%;
  display: inline-flex;
  font-size: 15px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.partner-asset-loading small {
  color: #66768a;
  font-size: 9px;
  font-weight: 800;
}

.partner-asset-preview img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.partner-asset-preview img[hidden],
.partner-asset-preview.is-ready .partner-asset-loading {
  display: none;
}

.partner-asset-card > button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.partner-asset-status {
  color: #6e8093;
  display: block;
  font-size: 9px;
  line-height: 1.45;
  min-height: 26px;
}

.partner-funds-section {
  background: #f8fafc;
}

.partner-funds-management {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.partner-funds-card {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.partner-funds-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.partner-funds-card-head > div {
  min-width: 0;
}

.partner-funds-card-head span,
.partner-funds-action-card > div span {
  color: #1f6a9f;
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-funds-card-head h3,
.partner-funds-action-card h3 {
  color: #173b59;
  font-size: 17px;
  margin: 4px 0 0;
}

.partner-funds-card-head a {
  color: #1f5eb8;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}

.partner-funds-action-card {
  align-content: center;
  background: linear-gradient(145deg, #123b5d, #1f638f);
  border-color: #123b5d;
  color: #ffffff;
}

.partner-funds-action-card h3 {
  color: #ffffff;
  font-size: 22px;
}

.partner-funds-action-card > div span,
.partner-funds-action-card > p {
  color: rgba(255, 255, 255, 0.74);
}

.partner-funds-action-card > p {
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.partner-funds-cta {
  align-items: center;
  align-self: start;
  background: #2f73d9;
  border: 1px solid #2f73d9;
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
}

.partner-funds-cta:hover {
  background: #245fb8;
  border-color: #245fb8;
}

.partner-funds-cta.is-light,
.partner-funds-action-card .partner-funds-cta {
  background: #ffffff;
  border-color: #ffffff;
  color: #123b5d;
}

.partner-earnings-card .partner-funds-cta {
  width: 100%;
}

.partner-payout-profile {
  display: grid;
  gap: 8px;
}

.partner-payout-profile > strong {
  color: #173b59;
  font-size: 16px;
}

.partner-payout-profile > p,
.partner-payout-profile > small {
  color: #6c7e91;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.partner-payout-profile dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 3px 0;
}

.partner-payout-profile dl > div {
  background: #f5f8fb;
  border-radius: 9px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.partner-payout-profile dt {
  color: #738598;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-payout-profile dd {
  color: #27445e;
  font-size: 11px;
  font-weight: 850;
  margin: 0;
  overflow-wrap: anywhere;
}

.partner-funds-empty {
  align-items: center;
  background: #f4f8fb;
  border: 1px dashed #cad8e5;
  border-radius: 11px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 94px;
  padding: 14px;
}

.partner-funds-empty.compact {
  border: 0;
  border-radius: 0;
  min-height: 88px;
}

.partner-funds-empty > span {
  align-items: center;
  background: #dcecff;
  border-radius: 9px;
  color: #174f7b;
  display: flex;
  font-size: 14px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.partner-funds-empty strong {
  color: #24445f;
  display: block;
  font-size: 11px;
}

.partner-funds-empty p {
  color: #718296;
  font-size: 11px;
  line-height: 1.5;
  margin: 3px 0 0;
}

.partner-fund-table {
  border: 1px solid #dce5ee;
  border-radius: 12px;
  min-width: 0;
  overflow-x: auto;
}

.partner-fund-row,
.partner-withdrawal-row {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e3eaf1;
  display: grid;
  gap: 14px;
  min-height: 62px;
  min-width: 700px;
  padding: 10px 14px;
}

.partner-fund-row {
  grid-template-columns: minmax(145px, 1fr) minmax(85px, 0.55fr) minmax(95px, 0.6fr) minmax(110px, 0.65fr) minmax(120px, 0.7fr);
}

.partner-withdrawal-row {
  grid-template-columns: minmax(105px, 0.65fr) minmax(115px, 0.75fr) minmax(105px, 0.65fr) minmax(200px, 1.3fr) minmax(105px, 0.65fr);
}

.partner-fund-row.head,
.partner-withdrawal-row.head {
  background: #f1f5f9;
  border-top: 0;
  color: #697b8f;
  font-size: 10px;
  font-weight: 950;
  min-height: 40px;
  text-transform: uppercase;
}

.partner-fund-row > span,
.partner-withdrawal-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.partner-fund-row strong,
.partner-withdrawal-row strong {
  color: #28465f;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.partner-fund-row small,
.partner-withdrawal-row small {
  color: #78899b;
  font-size: 10px;
}

.partner-fund-pill {
  background: #fff1d9;
  border-radius: 999px;
  color: #985a05;
  font-size: 9px;
  font-weight: 900;
  justify-self: start;
  max-width: 100%;
  padding: 5px 8px;
  text-transform: uppercase;
}

.partner-fund-pill.is-configured,
.partner-fund-pill.is-available,
.partner-fund-pill.is-paid,
.partner-fund-pill.is-withdrawn {
  background: #e6f5ee;
  color: #146448;
}

.partner-fund-pill.is-rejected,
.partner-fund-pill.is-cancelled {
  background: #fde9e8;
  color: #a23d36;
}

.partner-fund-pill.is-partially-available {
  background: #e7f1fd;
  color: #255c94;
}

/* Immersive live classroom: native meeting shell around the conference provider. */
body.is-live-workspace {
  background: #111318;
  height: 100dvh;
  overflow: hidden;
}

html:has(body.is-live-workspace) {
  overflow: hidden;
  scrollbar-gutter: auto;
}

body.is-live-workspace .learning-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.is-live-workspace .topbar {
  display: none;
}

body.is-live-workspace .learning-main {
  max-width: none;
  padding: 0;
}

.live-classroom-view {
  background: #111318;
  color: #f7f9fc;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  position: fixed;
  z-index: 100;
}

.meeting-topbar {
  align-items: center;
  background: #1b1e24;
  border-bottom: 1px solid #30343d;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 14px;
}

.meeting-title-group,
.meeting-top-actions,
.meeting-title-copy > div {
  align-items: center;
  display: flex;
}

.meeting-title-group {
  gap: 11px;
  min-width: 0;
}

.meeting-title-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.meeting-title-copy > div {
  gap: 7px;
}

.meeting-title-copy h1 {
  color: #f7f9fc;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  max-width: min(42vw, 600px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-title-copy p {
  color: #9ba4b1;
  font-size: 10px;
  margin: 0;
  max-width: min(42vw, 600px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-brand {
  align-items: center;
  background: #2f73d9;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.meeting-live-state,
.meeting-room-code {
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-live-state {
  background: #343944;
  border-radius: 999px;
  color: #c6ccd5;
  padding: 3px 6px;
}

.meeting-live-state.is-live {
  background: #da3544;
  color: #ffffff;
}

.meeting-live-state.is-live::before {
  animation: meeting-pulse 1.7s infinite;
  background: #ffffff;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 5px;
  margin-right: 5px;
  width: 5px;
}

.meeting-room-code {
  color: #7f8997;
}

.meeting-top-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.meeting-icon-button,
.meeting-secondary-action,
.meeting-end-action {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
}

.meeting-icon-button {
  background: #292d35;
  color: #e7ebf0;
  width: 38px;
}

.meeting-icon-button:hover {
  background: #363b45;
}

.meeting-icon-button svg,
.meeting-secondary-action svg,
.meeting-secondary-controls svg,
.meeting-panel-head svg,
.meeting-people-search svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.meeting-secondary-action {
  background: #292d35;
  color: #e7ebf0;
  gap: 7px;
  padding: 8px 11px;
}

.meeting-end-action {
  background: #c93643;
  color: #ffffff;
  padding: 8px 13px;
}

.meeting-clock {
  color: #c7ced8;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  min-width: 45px;
  text-align: center;
}

.meeting-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
  overflow: hidden;
}

.meeting-workspace.is-panel-closed {
  grid-template-columns: minmax(0, 1fr);
}

.meeting-workspace.is-panel-closed .meeting-side-panel {
  display: none;
}

.meeting-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 86px;
  min-width: 0;
  overflow: hidden;
}

.meeting-stage {
  background: #0e1014;
  border: 1px solid #2b3038;
  border-radius: 14px;
  margin: 10px 8px 6px 10px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.meeting-stage-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 12;
}

.meeting-connection,
.meeting-view-switch {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(23, 26, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  pointer-events: auto;
}

.meeting-connection {
  color: #bec7d2;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
}

.meeting-connection > span {
  align-items: end;
  display: flex;
  gap: 2px;
  height: 14px;
}

.meeting-connection i {
  background: #58cf9e;
  border-radius: 2px;
  display: block;
  width: 3px;
}

.meeting-connection i:nth-child(1) { height: 5px; }
.meeting-connection i:nth-child(2) { height: 9px; }
.meeting-connection i:nth-child(3) { height: 13px; }

.meeting-connection strong {
  font-size: 9px;
  text-transform: uppercase;
}

.meeting-view-switch {
  gap: 3px;
  padding: 3px;
}

.meeting-view-switch button {
  align-items: center;
  background: transparent;
  border-radius: 7px;
  color: #aeb8c5;
  display: inline-flex;
  font-size: 9px;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
}

.meeting-view-switch button.active,
.meeting-view-switch button:hover {
  background: #3b414d;
  color: #ffffff;
}

.meeting-view-switch button svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 14px;
}

.meeting-view-switch .meeting-fullscreen-button {
  padding: 5px 7px;
}

.meeting-gallery {
  align-content: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inset: 48px 0 0;
  padding: clamp(10px, 2vw, 24px);
  position: absolute;
}

.meeting-gallery.single-participant {
  grid-template-columns: minmax(280px, 780px);
  justify-content: center;
}

.meeting-gallery.speaker-view {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 20%);
}

.meeting-tile {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #222832, #171b22);
  border: 1px solid #333a45;
  border-radius: 13px;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.meeting-tile.is-speaking {
  border-color: #58cf9e;
  box-shadow: 0 0 0 2px rgba(88, 207, 158, 0.26);
}

.meeting-tile video {
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  width: 100%;
}

.meeting-tile-avatar {
  align-items: center;
  background: linear-gradient(145deg, #2f73d9, #1b4f93);
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 950;
  height: clamp(72px, 11vw, 122px);
  justify-content: center;
  width: clamp(72px, 11vw, 122px);
}

.meeting-tile-name {
  align-items: center;
  background: rgba(9, 11, 15, 0.74);
  border-radius: 8px;
  bottom: 9px;
  color: #ffffff;
  display: flex;
  font-size: 10px;
  gap: 6px;
  left: 9px;
  max-width: calc(100% - 54px);
  padding: 6px 8px;
  position: absolute;
}

.meeting-tile-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-tile-status {
  align-items: center;
  background: rgba(9, 11, 15, 0.74);
  border-radius: 8px;
  bottom: 9px;
  display: flex;
  gap: 4px;
  padding: 6px;
  position: absolute;
  right: 9px;
}

.meeting-tile-status span {
  align-items: center;
  color: #d8dee6;
  display: inline-flex;
  font-size: 11px;
  height: 14px;
  justify-content: center;
  width: 14px;
}

.meeting-hand-badge {
  background: #f1b843 !important;
  border-radius: 6px;
  color: #15181e !important;
}

.meeting-empty-room {
  align-items: center;
  border: 1px dashed #3b424e;
  border-radius: 13px;
  color: #8994a2;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 190px;
  padding: 24px;
  text-align: center;
}

.meeting-empty-room span {
  align-items: center;
  background: #252a33;
  border-radius: 50%;
  display: flex;
  font-size: 20px;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.meeting-empty-room strong {
  color: #cbd2db;
}

.meeting-empty-room small {
  max-width: 280px;
}

.meeting-lobby {
  align-items: stretch;
  background: radial-gradient(circle at 18% 14%, rgba(47, 115, 217, 0.15), transparent 35%), #111419;
  display: grid;
  gap: clamp(18px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  inset: 0;
  padding: clamp(66px, 8vh, 86px) clamp(24px, 5vw, 74px) clamp(24px, 5vh, 48px);
  position: absolute;
  z-index: 8;
}

.meeting-lobby-preview {
  align-items: center;
  background: linear-gradient(145deg, #202630, #171b22);
  border: 1px solid #363d48;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.meeting-lobby-preview video {
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  width: 100%;
}

.meeting-lobby-avatar {
  align-items: center;
  background: linear-gradient(145deg, #2f73d9, #1c559d);
  border: 5px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  display: flex;
  font-size: clamp(34px, 5vw, 58px);
  height: clamp(100px, 14vw, 150px);
  justify-content: center;
  width: clamp(100px, 14vw, 150px);
}

.meeting-preview-name {
  bottom: 14px;
  display: grid;
  gap: 1px;
  left: 16px;
  position: absolute;
}

.meeting-preview-name strong {
  color: #ffffff;
  font-size: 11px;
}

.meeting-preview-name span {
  color: #a3adba;
  font-size: 9px;
}

.meeting-preview-controls {
  bottom: 14px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.meeting-preview-controls button {
  align-items: center;
  background: rgba(42, 47, 57, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.meeting-preview-controls button.is-off {
  background: #c93643;
}

.meeting-preview-controls svg,
.meeting-control svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

[data-meeting-control] .icon-off {
  display: none;
}

[data-meeting-control].is-off .icon-on {
  display: none;
}

[data-meeting-control].is-off .icon-off {
  display: block;
}

.meeting-lobby-copy {
  align-content: center;
  display: grid;
  gap: 13px;
  min-width: 0;
}

.meeting-lobby-copy > span {
  color: #68a5f5;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.meeting-lobby-copy h2 {
  color: #ffffff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  margin: 0;
}

.meeting-lobby-copy > p,
.meeting-lobby-copy > small {
  color: #99a4b2;
  margin: 0;
}

.meeting-device-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meeting-device-summary > div {
  align-items: center;
  background: #1c2027;
  border: 1px solid #303640;
  border-radius: 11px;
  display: grid;
  gap: 1px 8px;
  grid-template-columns: auto 1fr;
  padding: 10px;
}

.meeting-device-summary .device-state {
  background: #58cf9e;
  border-radius: 50%;
  grid-row: 1 / span 2;
  height: 9px;
  width: 9px;
}

.meeting-device-summary .device-state.off {
  background: #737d8a;
}

.meeting-device-summary strong {
  color: #e9edf2;
  font-size: 10px;
}

.meeting-device-summary small {
  color: #8994a2;
  font-size: 9px;
}

.meeting-join-button {
  background: #2f73d9;
  border-radius: 11px;
  color: #ffffff;
  font-size: 13px;
  min-height: 47px;
  padding: 12px 18px;
}

.meeting-join-button:hover {
  background: #3e82e6;
}

.meeting-controlbar {
  align-items: center;
  background: #1b1e24;
  border-top: 1px solid #30343d;
  display: grid;
  gap: 12px;
  grid-template-columns: 155px minmax(420px, 1fr) auto;
  min-width: 0;
  padding: 7px 10px;
}

.meeting-control-status {
  display: grid;
  gap: 4px;
}

.meeting-control-status > strong {
  color: #d7dde6;
  font-size: 10px;
}

.meeting-control-status > span {
  align-items: center;
  color: #8d98a6;
  display: flex;
  font-size: 9px;
  gap: 6px;
}

.meeting-control-status i {
  background: #58cf9e;
  border-radius: 50%;
  display: block;
  height: 6px;
  width: 6px;
}

.meeting-primary-controls,
.meeting-secondary-controls {
  align-items: center;
  display: flex;
}

.meeting-primary-controls {
  gap: 3px;
  justify-content: center;
  min-width: 0;
  scrollbar-width: none;
}

.meeting-primary-controls::-webkit-scrollbar,
.whiteboard-tools::-webkit-scrollbar {
  display: none;
}

.meeting-control {
  align-items: center;
  background: transparent;
  border-radius: 10px;
  color: #bfc7d1;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 61px;
  padding: 4px 6px;
}

.meeting-control:hover,
.meeting-control.active {
  background: #2a2e36;
  color: #ffffff;
}

.meeting-control > span {
  align-items: center;
  background: #2d323b;
  border-radius: 50%;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.meeting-control.is-off > span {
  background: #c93643;
  color: #ffffff;
}

.meeting-control.is-active > span {
  background: #2f73d9;
  color: #ffffff;
}

.meeting-control small {
  color: inherit;
  font-size: 8px;
  white-space: nowrap;
}

.meeting-secondary-controls {
  gap: 5px;
  justify-content: end;
}

.meeting-secondary-controls button {
  align-items: center;
  background: #282c34;
  border-radius: 9px;
  color: #c5cdd7;
  display: inline-flex;
  font-size: 9px;
  gap: 5px;
  min-height: 37px;
  padding: 7px 9px;
}

.meeting-secondary-controls button.active,
.meeting-secondary-controls button:hover {
  background: #363b45;
  color: #ffffff;
}

.meeting-secondary-controls button b {
  align-items: center;
  background: #2f73d9;
  border-radius: 999px;
  display: inline-flex;
  font-size: 8px;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 4px;
}

.meeting-secondary-controls .meeting-leave-button {
  background: #8f2731;
  color: #ffffff;
}

.meeting-side-panel {
  background: #f7f9fc;
  border-left: 1px solid #30343d;
  color: #18344d;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.meeting-panel-head {
  align-items: center;
  border-bottom: 1px solid #dde5ed;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 11px 14px;
}

.meeting-panel-head span {
  color: #6c7e91;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-panel-head h2 {
  color: #17334c;
  font-size: 16px;
  margin: 2px 0 0;
}

.meeting-panel-head button {
  align-items: center;
  background: #e9eef4;
  border-radius: 9px;
  color: #4e6277;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.meeting-panel-tabs {
  background: #ffffff;
  border-bottom: 1px solid #dce5ed;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px 7px 0;
}

.meeting-panel-tabs button {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: #6a7d91;
  font-size: 10px;
  min-height: 36px;
}

.meeting-panel-tabs button.active {
  border-bottom-color: #2f73d9;
  color: #1f5eb8;
}

.meeting-panel-content {
  min-height: 0;
  overflow: auto;
}

.meeting-chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.meeting-chat-list {
  align-content: start;
  display: grid;
  gap: 11px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.meeting-chat-message {
  display: grid;
  gap: 3px;
}

.meeting-chat-message.mine {
  justify-items: end;
}

.meeting-chat-message-meta {
  align-items: baseline;
  color: #78889a;
  display: flex;
  font-size: 9px;
  gap: 6px;
}

.meeting-chat-message-meta strong {
  color: #3a5269;
  font-size: 10px;
}

.meeting-chat-bubble {
  background: #ffffff;
  border: 1px solid #dbe4ed;
  border-radius: 5px 13px 13px 13px;
  color: #253f58;
  font-size: 11px;
  line-height: 1.45;
  max-width: 88%;
  padding: 9px 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

.meeting-chat-message.mine .meeting-chat-bubble {
  background: #eaf3ff;
  border-color: #c9def7;
  border-radius: 13px 5px 13px 13px;
}

.meeting-chat-message.system .meeting-chat-bubble {
  background: #f0f3f6;
  border: 0;
  color: #67798c;
  font-size: 10px;
  max-width: 100%;
}

.meeting-chat-message.reaction .meeting-chat-bubble {
  background: transparent;
  border: 0;
  font-size: 30px;
  padding: 3px;
}

.meeting-chat-form {
  background: #ffffff;
  border-top: 1px solid #dce5ed;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.meeting-chat-form label {
  color: #64778b;
  font-size: 9px;
  font-weight: 900;
}

.meeting-chat-form > div {
  align-items: end;
  background: #f5f8fb;
  border: 1px solid #cfdce8;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px;
}

.meeting-chat-form textarea {
  background: transparent;
  border: 0;
  color: #1c3a55;
  line-height: 1.4;
  min-height: 40px;
  outline: 0;
  padding: 5px;
  resize: none;
}

.meeting-chat-form button {
  align-items: center;
  background: #2f73d9;
  border-radius: 9px;
  color: #ffffff;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.meeting-chat-form button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.meeting-chat-form > small {
  color: #8b99a8;
  font-size: 8px;
}

.meeting-people-panel,
.meeting-resources-panel {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 13px;
}

.meeting-people-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d3dee9;
  border-radius: 10px;
  color: #728397;
  display: flex;
  gap: 7px;
  padding: 8px 10px;
}

.meeting-people-search input {
  background: transparent;
  border: 0;
  color: #203d57;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.meeting-people-summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.meeting-people-summary strong,
.meeting-people-summary span {
  font-size: 9px;
}

.meeting-people-summary span {
  color: #78899b;
}

.meeting-people-list {
  display: grid;
  gap: 7px;
}

.meeting-person-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 11px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px;
}

.meeting-person-avatar {
  align-items: center;
  background: #e7f0fc;
  border-radius: 50%;
  color: #1f5eb8;
  display: flex;
  font-size: 10px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.meeting-person-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.meeting-person-copy strong {
  color: #203c56;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-person-copy small {
  color: #78899b;
  font-size: 8px;
}

.meeting-person-status {
  align-items: center;
  color: #687b8e;
  display: flex;
  font-size: 12px;
  gap: 5px;
}

.meeting-attendance-button,
.meeting-resources-panel > button {
  background: #edf4fd;
  border: 1px solid #c9dbef;
  border-radius: 10px;
  color: #1f5eb8;
  min-height: 39px;
  padding: 9px 12px;
}

.meeting-resource-hero {
  background: linear-gradient(145deg, #173c61, #246da8);
  border-radius: 13px;
  color: #ffffff;
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 15px;
}

.meeting-resource-hero span {
  color: #99c6f1;
  font-size: 9px;
  text-transform: uppercase;
}

.meeting-resource-hero strong {
  align-self: end;
  font-size: 14px;
}

.meeting-resource-list {
  display: grid;
  gap: 7px;
}

.meeting-resource-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dde6ee;
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 9px;
}

.meeting-resource-row span {
  align-items: center;
  background: #eaf3ff;
  border-radius: 8px;
  color: #1f5eb8;
  display: flex;
  font-size: 9px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.meeting-resource-row strong {
  color: #29445d;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-screen-share,
.meeting-call-frame,
.meeting-whiteboard {
  background: #0f1115;
  inset: 0;
  position: absolute;
  z-index: 10;
}

.meeting-screen-share video {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.meeting-share-label {
  align-items: center;
  background: rgba(18, 21, 26, 0.9);
  border-radius: 10px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  left: 50%;
  padding: 8px 10px;
  position: absolute;
  transform: translateX(-50%);
}

.meeting-share-label span {
  font-size: 10px;
}

.meeting-share-label button {
  background: #c93643;
  border-radius: 8px;
  color: #ffffff;
  font-size: 9px;
  padding: 7px 9px;
}

.meeting-call-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.meeting-call-frame-head {
  align-items: center;
  background: #1c2027;
  border-bottom: 1px solid #343a44;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 12px;
}

.meeting-call-frame-head > div {
  display: grid;
  gap: 2px;
}

.meeting-call-frame-head span {
  color: #ffffff;
  font-size: 10px;
}

.meeting-call-frame-head strong {
  color: #8f9aa8;
  font-size: 8px;
}

.meeting-call-frame-head button,
.meeting-whiteboard .whiteboard-head button {
  background: #2f73d9;
  border-radius: 8px;
  color: #ffffff;
  font-size: 9px;
  padding: 7px 10px;
}

.meeting-call-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.meeting-whiteboard {
  background: #eef2f6;
  color: #17344e;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 12px;
}

.meeting-whiteboard .whiteboard-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 2px 2px 10px;
}

.meeting-whiteboard .whiteboard-head > div:last-child {
  align-items: center;
  display: flex;
  gap: 10px;
}

.meeting-whiteboard .whiteboard-head span {
  color: #1f6a9f;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-whiteboard .whiteboard-head h2 {
  font-size: 17px;
  margin: 2px 0 0;
}

.meeting-whiteboard .whiteboard-head small {
  color: #61758a;
  font-size: 9px;
}

.whiteboard-tools {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d5e0ea;
  border-radius: 11px 11px 0 0;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 7px;
}

.whiteboard-tools button,
.whiteboard-tools label {
  align-items: center;
  background: #f2f5f8;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #486078;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  gap: 5px;
  min-height: 32px;
  padding: 6px 9px;
}

.whiteboard-tools button.active {
  background: #e9f3ff;
  border-color: #b9d2ee;
  color: #1f5eb8;
}

.whiteboard-tools svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.whiteboard-tools input[type="color"] {
  border: 0;
  height: 20px;
  padding: 0;
  width: 22px;
}

.whiteboard-tool-spacer {
  flex: 1 1 auto;
}

.whiteboard-canvas-wrap {
  background: #ffffff;
  border: 1px solid #d5e0ea;
  border-radius: 0 0 12px 12px;
  min-height: 0;
  overflow: hidden;
}

.whiteboard-canvas-wrap canvas {
  display: block;
  height: 100%;
  touch-action: none;
  width: 100%;
}

.meeting-info-popover {
  background: #ffffff;
  border: 1px solid #dce5ed;
  border-radius: 13px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  color: #18344e;
  display: grid;
  gap: 10px;
  padding: 14px;
  position: fixed;
  right: 14px;
  top: 72px;
  width: min(330px, calc(100vw - 28px));
  z-index: 130;
}

.meeting-info-popover > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.meeting-info-popover span {
  color: #6c7e91;
  font-size: 9px;
  text-transform: uppercase;
}

.meeting-info-popover p {
  color: #6b7c8f;
  font-size: 10px;
  margin: 0;
}

.meeting-info-popover button {
  background: #edf4fd;
  border-radius: 8px;
  color: #1f5eb8;
  min-height: 32px;
  padding: 7px 9px;
}

.meeting-info-popover > div button {
  background: transparent;
  color: #627589;
  font-size: 18px;
  min-height: 0;
  padding: 0;
}

.meeting-reaction-menu {
  background: #ffffff;
  border: 1px solid #d6dfe8;
  border-radius: 999px;
  bottom: 94px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 4px;
  left: 50%;
  padding: 6px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 130;
}

.meeting-reaction-menu button {
  background: transparent;
  border-radius: 50%;
  font-size: 21px;
  height: 38px;
  width: 38px;
}

.meeting-reaction-menu button:hover {
  background: #eef2f6;
  transform: translateY(-2px);
}

.meeting-toast {
  backdrop-filter: blur(10px);
  background: rgba(29, 33, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  bottom: 14px;
  color: #ffffff;
  font-size: 10px;
  left: 50%;
  max-width: min(420px, calc(100% - 30px));
  padding: 10px 13px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 40;
}

@keyframes meeting-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

@media (max-width: 1180px) {
  .student-home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .meeting-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .meeting-controlbar {
    grid-template-columns: 1fr auto;
  }

  .meeting-control-status {
    display: none;
  }

  .meeting-primary-controls {
    justify-content: start;
  }

  .meeting-secondary-controls button {
    padding: 7px;
  }
}

@media (max-width: 980px) {
  .partner-campaign-layout {
    grid-template-columns: 1fr;
  }

  .partner-funds-management {
    grid-template-columns: 1fr;
  }

  .partner-community-summary,
  .partner-funds-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-home-layout,
  .agenda-layout,
  .teacher-assessment-layout {
    grid-template-columns: 1fr;
  }

  .student-home-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .student-side-card.compact {
    grid-column: 1 / -1;
  }

  .teacher-student-row {
    grid-template-columns: minmax(190px, 1.3fr) minmax(110px, 0.7fr) minmax(130px, 0.7fr) 90px;
  }

  .meeting-workspace {
    grid-template-columns: 1fr;
    position: relative;
  }

  .meeting-side-panel {
    bottom: 86px;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.34);
    position: fixed;
    right: 0;
    top: 66px;
    width: min(380px, 94vw);
    z-index: 120;
  }

  .meeting-workspace.is-panel-closed .meeting-side-panel {
    display: none;
  }

  .meeting-lobby {
    gap: 22px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    padding-left: 28px;
    padding-right: 28px;
  }

  .meeting-secondary-controls button:not([data-meeting-open-panel]):not(.meeting-leave-button) {
    display: none;
  }
}

@media (max-width: 760px) {
  .student-topbar-nav {
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .student-home-side,
  .teacher-briefing-grid {
    grid-template-columns: 1fr;
  }

  .student-side-card.compact {
    grid-column: auto;
  }

  .agenda-summary,
  .teacher-student-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-student-table {
    overflow-x: auto;
  }

  .teacher-student-row {
    min-width: 720px;
  }

  .teacher-submission-card form {
    grid-template-columns: 1fr;
  }

  .live-classroom-view {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .meeting-topbar {
    padding: 7px 9px;
  }

  .meeting-brand,
  .meeting-title-copy p,
  .meeting-room-code,
  .meeting-clock,
  .meeting-secondary-action {
    display: none;
  }

  .meeting-title-copy h1 {
    font-size: 12px;
    max-width: 44vw;
  }

  .meeting-main {
    grid-template-rows: minmax(0, 1fr) 72px;
  }

  .meeting-stage {
    border-radius: 10px;
    margin: 5px;
  }

  .meeting-connection {
    display: none;
  }

  .meeting-stage-toolbar {
    justify-content: end;
    padding: 7px;
  }

  .meeting-gallery {
    gap: 5px;
    inset: 40px 0 0;
    padding: 8px;
  }

  .meeting-lobby {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(190px, 1fr) auto;
    padding: 50px 14px 14px;
  }

  .meeting-lobby-preview {
    min-height: 190px;
  }

  .meeting-lobby-copy {
    background: #171b21;
    border: 1px solid #303640;
    border-radius: 13px;
    gap: 8px;
    padding: 13px;
  }

  .meeting-lobby-copy h2 {
    font-size: 18px;
  }

  .meeting-lobby-copy > p {
    font-size: 10px;
  }

  .meeting-device-summary,
  .meeting-lobby-copy > small {
    display: none;
  }

  .meeting-join-button {
    min-height: 42px;
  }

  .meeting-controlbar {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 5px 7px;
  }

  .meeting-primary-controls {
    justify-content: start;
    overflow-x: auto;
  }

  .meeting-control {
    min-width: 48px;
    padding: 2px;
  }

  .meeting-control > span {
    height: 36px;
    width: 36px;
  }

  .meeting-control small {
    display: none;
  }

  .meeting-secondary-controls button {
    font-size: 0;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 6px;
  }

  .meeting-secondary-controls .meeting-leave-button {
    font-size: 9px;
    min-width: 50px;
  }

  .meeting-side-panel {
    bottom: 72px;
    top: 58px;
  }

  .meeting-whiteboard {
    padding: 7px;
  }

  .meeting-whiteboard .whiteboard-head span,
  .meeting-whiteboard .whiteboard-head small {
    display: none;
  }

  .meeting-whiteboard .whiteboard-head h2 {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .partner-section {
    padding: 15px;
  }

  .partner-section-head {
    align-items: start;
    display: grid;
    gap: 12px;
  }

  .partner-community-summary,
  .partner-funds-summary {
    grid-template-columns: 1fr;
  }

  .partner-funds-card {
    padding: 14px;
  }

  .partner-funds-card-head {
    align-items: start;
    display: grid;
  }

  .partner-funds-card-head a,
  .partner-funds-cta {
    width: 100%;
  }

  .partner-payout-profile dl {
    grid-template-columns: 1fr;
  }

  .partner-fund-table {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 10px;
    overflow: visible;
  }

  .partner-fund-row.head,
  .partner-withdrawal-row.head {
    display: none;
  }

  .partner-fund-row,
  .partner-withdrawal-row {
    border: 1px solid #dce5ee;
    border-radius: 11px;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding: 13px;
  }

  .partner-fund-row > span::before,
  .partner-withdrawal-row > span::before {
    color: #77899b;
    content: attr(data-label);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .workspace-heading {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .workspace-heading > button {
    justify-self: start;
  }

  .student-metrics,
  .agenda-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-metrics article {
    min-height: 88px;
    padding: 14px;
  }

  .student-metrics strong {
    font-size: 23px;
  }

  .agenda-summary article {
    min-height: 72px;
    padding: 12px;
  }

  .agenda-summary article:last-child {
    grid-column: 1 / -1;
  }

  .agenda-card {
    padding: 14px;
  }

  .agenda-timeline article {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .agenda-timeline button {
    grid-column: 2;
    justify-self: start;
  }

  .teacher-student-summary {
    grid-template-columns: 1fr;
  }

  .teacher-inline-search input {
    min-width: 0;
    width: 100%;
  }

  .meeting-top-actions .meeting-icon-button {
    display: none;
  }

  .meeting-end-action {
    font-size: 9px;
    padding: 7px 9px;
  }

  .meeting-view-switch button:not(.active):not(.meeting-fullscreen-button) {
    display: none;
  }

  .meeting-gallery,
  .meeting-gallery.single-participant,
  .meeting-gallery.speaker-view {
    grid-template-columns: 1fr;
  }

  .meeting-gallery .meeting-empty-room {
    display: none;
  }

  .meeting-tile-avatar {
    height: 72px;
    width: 72px;
  }

  .meeting-side-panel {
    width: 100vw;
  }

  .meeting-primary-controls .meeting-control:nth-child(5) {
    display: none;
  }
}

/* Campus v7: identidad del marketplace y perfil completo del estudiante. */
:root {
  --ink: #172033;
  --muted: #636E72;
  --line: #dce3df;
  --paper: #f5f7f3;
  --purple: #2764AE;
  --purple-dark: #164194;
  --blue: #2764AE;
  --blue-dark: #164194;
  --teal: #1D71B8;
  --shadow: 0 22px 58px rgba(21, 48, 52, 0.13);
  --soft-shadow: 0 10px 26px rgba(21, 48, 52, 0.08);
}

.topbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #e1e6e2;
}

.topbar .brand-mark,
.brand-button .brand-mark {
  background: #164194;
  border-radius: 10px 10px 10px 3px;
}

.student-topbar-nav button:hover,
.student-topbar-nav button.active {
  background: #EDF4FB;
  color: #164194;
}

.profile-chip > span:first-child {
  background: #164194;
}

.profile-popover-link {
  align-items: center;
  background: #f5f7f3;
  border-radius: 8px;
  color: #164194;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin: 0 14px 14px;
  min-height: 38px;
  padding: 8px 11px;
  width: calc(100% - 28px);
}

.home-hero {
  background: #164194;
}

.home-hero > button,
.course-card > button,
.next-live-card button {
  background: #2764AE;
}

.student-metrics article,
.student-side-card,
.course-card {
  border-color: #dce3df;
  box-shadow: 0 10px 24px rgba(21, 48, 52, 0.06);
}

.student-metrics strong,
.student-side-card h2,
.course-card h3 {
  color: #172033;
}

.student-profile-view {
  margin: 0 auto;
  max-width: 1260px;
  padding: 26px 26px 80px;
}

.student-profile-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 10%, rgba(39, 100, 174, 0.28), transparent 24%),
    #164194;
  border-radius: 20px;
  color: #fff;
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 190px;
  overflow: hidden;
  padding: 34px 38px;
  position: relative;
}

.student-profile-hero::after {
  border: 38px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  content: "";
  height: 210px;
  position: absolute;
  right: -65px;
  top: -90px;
  width: 210px;
}

.student-profile-avatar {
  align-items: center;
  background: #2764AE;
  border: 5px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  box-sizing: content-box;
  display: flex;
  font-size: 24px;
  font-weight: 950;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.student-profile-hero > div:nth-child(2) {
  position: relative;
  z-index: 2;
}

.student-profile-hero > div:nth-child(2) > span {
  color: #81D4FA;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.student-profile-hero h1 {
  color: #fff;
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 5px 0 4px;
}

.student-profile-hero p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  margin: 0;
}

.student-profile-hero > button {
  background: #fff;
  border-radius: 8px;
  color: #172033;
  min-height: 42px;
  padding: 9px 15px;
  position: relative;
  z-index: 2;
}

.student-profile-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-top: 24px;
}

.student-profile-menu {
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 13px;
  display: grid;
  gap: 4px;
  padding: 15px;
  position: sticky;
  top: 88px;
}

.student-profile-menu > span {
  color: #8a9697;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.1em;
  padding: 5px 9px 10px;
  text-transform: uppercase;
}

.student-profile-menu button,
.student-profile-menu a {
  background: transparent;
  border-radius: 7px;
  color: #5d6d71;
  font-size: 10px;
  font-weight: 800;
  min-height: 38px;
  padding: 10px;
  text-align: left;
  text-decoration: none;
}

.student-profile-menu button:hover,
.student-profile-menu a:hover,
.student-profile-menu button.active {
  background: #EDF4FB;
  color: #164194;
}

.student-profile-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.profile-account-card,
.profile-learning-card {
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 13px;
  padding: 25px;
}

.profile-card-heading {
  align-items: end;
  border-bottom: 1px solid #e8ece9;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 17px;
}

.profile-card-heading span {
  color: #164194;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-card-heading h2 {
  color: #172033;
  font-size: 21px;
  margin: 4px 0 0;
}

.profile-card-heading > small {
  color: #8b9698;
  font-size: 8px;
}

.student-profile-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-profile-form label {
  color: #5f6f73;
  display: grid;
  font-size: 9px;
  font-weight: 850;
  gap: 7px;
}

.student-profile-form input,
.student-profile-form select {
  background: #fafbf9;
  border: 1px solid #d8dfda;
  border-radius: 7px;
  color: #172033;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

.student-profile-form input:focus,
.student-profile-form select:focus {
  border-color: #2764AE;
  box-shadow: 0 0 0 3px rgba(39, 100, 174, 0.12);
  outline: 0;
}

.student-profile-form input[readonly] {
  background: #f0f3f0;
  color: #7c898b;
}

.profile-form-wide {
  grid-column: 1 / -1;
}

.profile-form-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.profile-form-actions button {
  background: #2764AE;
  border-radius: 7px;
  color: #fff;
  min-height: 42px;
  padding: 9px 16px;
}

.profile-form-actions p {
  color: #4f775f;
  font-size: 9px;
  margin: 0;
}

.profile-learning-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-learning-stats article {
  background: #f5f7f3;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.profile-learning-stats strong {
  color: #172033;
  font-size: 22px;
}

.profile-learning-stats span {
  color: #788689;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-course-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.profile-course-list article {
  align-items: center;
  border: 1px solid #e2e7e3;
  border-radius: 9px;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr) 120px auto;
  padding: 9px;
}

.profile-course-list img {
  border-radius: 6px;
  height: 52px;
  object-fit: cover;
  width: 64px;
}

.profile-course-list article > div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.profile-course-list article > div:nth-child(2) span {
  color: #164194;
  font-size: 7px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-course-list article > div:nth-child(2) strong {
  color: #172033;
  font-size: 11px;
}

.profile-course-list article > div:nth-child(2) small {
  color: #849093;
  font-size: 8px;
}

.profile-course-progress {
  background: #e6eae6;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.profile-course-progress i {
  background: #2764AE;
  display: block;
  height: 100%;
  width: var(--progress);
}

.profile-course-list article > button {
  background: #164194;
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  min-height: 36px;
  padding: 8px 12px;
}

body.is-course-player .topbar {
  background: #164194;
}

body.is-course-player .brand-button .brand-mark {
  background: #2764AE;
}

body.is-course-player .player-top {
  background: #164194;
}

body.is-course-player .curriculum-progress .progress-bar span,
body.is-course-player .progress-strip .progress-bar span {
  background: linear-gradient(90deg, #2764AE, #1D71B8);
}

body.is-course-player .lesson-row.active {
  background: #EDF4FB;
  border-left-color: #2764AE;
  box-shadow: inset 4px 0 0 #2764AE;
}

body.is-course-player .curriculum-panel,
body.is-course-player .curriculum-list {
  background: #f6f8f5;
  border-color: #d9e1dc;
}

body.is-course-player .curriculum-module,
body.is-course-player .curriculum-module summary,
body.is-course-player .curriculum-progress,
body.is-course-player .curriculum-head {
  border-color: #d9e1dc;
}

body.is-course-player .curriculum-module[open] summary,
body.is-course-player .lesson-row:hover {
  background: #fafbf8;
}

body.is-course-player .content-tabs button.active {
  background: #164194;
}

body.is-course-player .content-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f6 100%);
}

@media (max-width: 900px) {
  .student-profile-layout {
    grid-template-columns: 1fr;
  }

  .student-profile-menu {
    display: flex;
    overflow-x: auto;
    position: static;
  }

  .student-profile-menu > span {
    display: none;
  }

  .student-profile-menu button,
  .student-profile-menu a {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .student-profile-view {
    padding: 14px 12px 60px;
  }

  .student-profile-hero {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 24px 20px;
  }

  .student-profile-avatar {
    font-size: 17px;
    height: 54px;
    width: 54px;
  }

  .student-profile-hero h1 {
    font-size: 23px;
  }

  .student-profile-hero > button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .profile-account-card,
  .profile-learning-card {
    padding: 17px;
  }

  .profile-card-heading {
    align-items: start;
    display: grid;
  }

  .student-profile-form {
    grid-template-columns: 1fr;
  }

  .profile-form-wide {
    grid-column: auto;
  }

  .profile-learning-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-learning-stats article {
    padding: 11px;
  }

  .profile-learning-stats strong {
    font-size: 18px;
  }

  .profile-course-list article {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .profile-course-list img {
    width: 58px;
  }

  .profile-course-progress {
    display: none;
  }

  .profile-course-list article > button {
    font-size: 0;
    height: 34px;
    padding: 0;
    width: 34px;
  }

  .profile-course-list article > button::after {
    content: "→";
    font-size: 14px;
  }
}

/* Cierre de cascada del aula inmersiva: debe quedar después de los estilos históricos. */
body.is-course-player .topbar {
  align-items: center;
  background: #17181f;
  border: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 52px;
  min-height: 52px;
  padding: 0 12px;
  position: relative;
  top: auto;
}

body.is-course-player .student-topbar-nav,
body.is-course-player .teacher-topbar-nav,
body.is-course-player .topbar-actions,
body.is-course-player .player-context-data {
  display: none !important;
}

body.is-course-player .course-player-heading,
body.is-course-player .course-player-actions {
  display: flex;
}

body.is-course-player .learning-main {
  margin: 0;
  max-width: none;
  padding: 0;
}

body.is-course-player .player-layout {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 400px;
}

body.is-course-player.is-curriculum-collapsed .player-layout {
  grid-template-columns: minmax(0, 1fr) 0;
}

body.is-course-player .player-column,
body.is-course-player .video-player {
  gap: 0;
  min-width: 0;
}

body.is-course-player .player-stage {
  height: clamp(460px, calc(100vh - 275px), 680px);
}

body.is-course-player .video-screen,
body.is-course-player .video-screen.is-recording {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  padding: 0;
}

body.is-course-player .main-recording-video {
  height: 100%;
  max-height: none;
  object-fit: contain;
  width: 100%;
}

body.is-course-player .content-tabs {
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid #d7d9df;
  border-top: 0;
  display: flex;
  gap: 0;
  min-height: 49px;
  overflow-x: auto;
  padding: 0 12px;
  white-space: nowrap;
}

body.is-course-player .content-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #747686;
  flex: 0 0 auto;
  min-height: 49px;
  padding: 0 14px;
}

body.is-course-player .content-tabs button.active {
  background: transparent;
  border-bottom-color: #252631;
  color: #252631;
}

body.is-course-player .content-panel {
  background: #fff;
  border: 0;
  margin: 0;
  max-width: none;
  min-height: 420px;
  padding: 36px 24px 90px;
}

body.is-course-player .curriculum-panel {
  align-self: start;
  background: #f7f8fa;
  border: 0;
  border-left: 1px solid #d5d7df;
  box-shadow: none;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  height: 100vh;
  max-height: none;
  overflow: hidden;
  position: sticky;
  right: auto;
  top: 0;
  width: 400px;
}

body.is-course-player.is-curriculum-collapsed .curriculum-panel {
  display: none;
  width: 0;
}

body.is-course-player .curriculum-head,
body.is-course-player.is-curriculum-collapsed .curriculum-head {
  align-items: center;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  height: 52px;
  min-height: 52px;
  padding: 0 8px 0 15px;
}

body.is-course-player .curriculum-toggle svg,
body.is-course-player.is-curriculum-collapsed .curriculum-toggle svg {
  transform: none;
}

body.is-course-player .curriculum-list {
  align-content: start;
  background: #f7f8fa;
  display: grid;
  min-height: 0;
  overflow-y: auto;
}

body.is-course-player .curriculum-module summary,
body.is-course-player .curriculum-module[open] summary {
  align-items: center;
  background: #f7f8fa;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) 20px;
  min-height: 76px;
  padding: 12px 16px;
}

body.is-course-player .lesson-row {
  align-items: start;
  background: #fff;
  border: 0;
  border-top: 1px solid #e3e4e9;
  box-shadow: none;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 63px;
  padding: 11px 16px;
}

body.is-course-player .lesson-row.active {
  background: #ececf1;
  box-shadow: inset 3px 0 0 #2764AE;
}

@media (max-width: 1199px) {
  body.is-course-player .player-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
  }

  body.is-course-player .curriculum-panel {
    width: 370px;
  }
}

@media (max-width: 900px) {
  body.is-course-player .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: sticky;
    top: 0;
  }

  body.is-course-player .player-layout,
  body.is-course-player.is-curriculum-collapsed .player-layout {
    display: block;
  }

  body.is-course-player .player-stage {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  body.is-course-player .curriculum-panel,
  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    bottom: 0;
    display: grid;
    height: 100dvh;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 180ms ease;
    width: min(400px, 92vw);
    z-index: 120;
  }

  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    pointer-events: none;
    transform: translateX(102%);
  }

  body.is-course-player .content-panel {
    padding-inline: 20px;
  }
}

@media (max-width: 600px) {
  body.is-course-player .topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 8px;
  }

  body.is-course-player .content-tabs {
    padding-inline: 4px;
  }

  body.is-course-player .content-tabs button {
    padding-inline: 11px;
  }

  body.is-course-player .content-panel {
    min-height: 360px;
    padding: 26px 16px 72px;
  }

  body.is-course-player .curriculum-panel,
  body.is-course-player.is-curriculum-collapsed .curriculum-panel {
    width: 100vw;
  }
}

/* SinerAnt: capa final de marca para acceso, campus y sala de reuniones. */
:root {
  --brand-900: #164194;
  --brand-700: #2764AE;
  --brand-600: #1D71B8;
  --brand-400: #3997D3;
  --brand-accent: #81D4FA;
  --brand-secondary: #B1BEC3;
  --brand-ink: #172033;
  --brand-muted: #636E72;
  --brand-line: #D7E1EA;
  --brand-soft: #EDF4FB;
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --paper: #F4F8FB;
  --purple: var(--brand-700);
  --purple-dark: var(--brand-900);
  --blue: var(--brand-700);
  --blue-dark: var(--brand-900);
  --teal: var(--brand-600);
}

.auth-screen {
  --public-ink: var(--brand-900);
  --public-line: var(--brand-line);
  --public-muted: var(--brand-muted);
  --public-orange: var(--brand-700);
  --public-orange-dark: var(--brand-900);
  background: #F4F8FB;
}

.auth-screen .site-announcement {
  background: var(--brand-900);
}

.auth-screen .announcement-pulse {
  background: var(--brand-400);
  border-color: rgba(57, 151, 211, 0.22);
}

.auth-screen .app-header .brand-mark,
.topbar .brand-mark,
.brand-button .brand-mark {
  background: #ffffff;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(22, 65, 148, 0.08);
  isolation: auto;
  padding: 3px;
}

.brand-mark img,
.meeting-brand img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.auth-screen .app-header .brand-copy {
  align-content: center;
  display: grid;
  gap: 1px;
}

.auth-screen .app-header .brand-wordmark {
  display: block;
  height: 18px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.auth-screen .app-header .brand-copy small {
  color: var(--brand-muted);
  font-size: 10px;
  line-height: 1.25;
}

.auth-brand {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.auth-brand-lockup {
  display: block;
  height: auto;
  max-width: 100%;
  width: 184px;
}

.auth-brand > div {
  justify-items: center;
}

.auth-brand > div > span {
  color: var(--brand-700);
}

.auth-card h1 {
  color: var(--brand-ink);
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 0;
}

.role-card.active,
.role-options .role-card.active,
.role-options .role-card[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand-700);
  box-shadow: 0 16px 32px rgba(39, 100, 174, 0.12);
}

.role-card.active .role-icon,
.role-card[aria-pressed="true"] .role-icon,
.auth-form > button {
  background: var(--brand-700);
}

.auth-form > button:hover {
  background: var(--brand-900);
  box-shadow: 0 20px 36px rgba(22, 65, 148, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(29, 113, 184, 0.14);
}

.student-topbar-nav button:hover,
.student-topbar-nav button.active,
.teacher-topbar-nav button:hover,
.teacher-topbar-nav button.active {
  background: var(--brand-soft);
  color: var(--brand-900);
}

.home-hero,
body.is-course-player .topbar,
body.is-course-player .player-top {
  background: var(--brand-900);
}

.meeting-brand {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 3px;
}

.meeting-control.is-active > span {
  background: var(--brand-700);
}

.brand-resource-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 3px;
  width: 44px;
}

.brand-resource-icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

body.is-course-player .curriculum-progress .progress-bar span,
body.is-course-player .progress-strip .progress-bar span {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-400));
}

body.is-course-player .lesson-row.active {
  background: var(--brand-soft);
  border-left-color: var(--brand-700);
  box-shadow: inset 4px 0 0 var(--brand-700);
}

@media (max-width: 680px) {
  .auth-screen .app-header .brand-wordmark {
    height: 16px;
  }

  .auth-brand-lockup {
    width: 160px;
  }
}

/* Campus v8: utilidades de cuenta, ayuda y perfil autenticado. */
body:not(.is-course-player):not(.is-live-workspace) .learning-shell > .topbar {
  align-items: center;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--brand-line);
  box-shadow: 0 1px 0 rgba(22, 65, 148, 0.02);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  overflow: visible;
  padding: 8px clamp(16px, 3vw, 42px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 80;
}

body.is-teacher-dashboard .learning-main {
  padding-top: 24px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  position: relative;
}

.topbar-actions > button,
.topbar-actions > button:last-child {
  box-shadow: none;
  color: var(--brand-ink);
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.topbar-help-button,
.topbar-icon-button,
.profile-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--brand-ink);
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.topbar-help-button {
  gap: 7px;
  padding: 0 10px;
}

.topbar-help-button svg,
.topbar-icon-button svg,
.profile-chip > svg {
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.topbar-help-button svg {
  height: 19px;
  width: 19px;
}

.topbar-help-button > span {
  font-size: 12px;
  font-weight: 750;
}

.topbar-icon-button {
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.topbar-icon-button svg {
  height: 20px;
  width: 20px;
}

.topbar-icon-button > span[data-notification-count] {
  align-items: center;
  background: #c73535;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 3px;
  position: absolute;
  right: -3px;
  top: -3px;
}

.profile-chip {
  gap: 7px;
  height: 44px;
  min-width: 58px;
  padding: 5px 8px 5px 5px;
}

.profile-chip > span:first-child {
  align-items: center;
  background: var(--brand-900);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 32px;
}

.profile-chip > svg {
  height: 14px;
  transition: transform 150ms ease;
  width: 14px;
}

.profile-chip[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.topbar-help-button:hover,
.topbar-icon-button:hover,
.profile-chip:hover,
.topbar-help-button[aria-expanded="true"],
.topbar-icon-button[aria-expanded="true"],
.profile-chip[aria-expanded="true"] {
  background: var(--brand-soft);
  border-color: #cbd9e7;
  color: var(--brand-900);
}

.topbar-help-button:focus-visible,
.topbar-icon-button:focus-visible,
.profile-chip:focus-visible,
.topbar-popover button:focus-visible,
.topbar-popover input:focus-visible,
.topbar-popover select:focus-visible,
.topbar-popover textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 113, 184, 0.18);
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Los paneles permanecen hermanos de las acciones para no heredar sus botones. */
.topbar-popover {
  animation: campus-popover-in 150ms ease-out;
  background: #ffffff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(23, 32, 51, 0.18);
  color: var(--brand-ink);
  display: grid;
  gap: 0;
  max-height: min(680px, calc(100dvh - 88px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  position: absolute;
  right: clamp(16px, 3vw, 42px);
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 28px));
  z-index: 90;
}

@keyframes campus-popover-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-popover {
  width: min(410px, calc(100vw - 28px));
}

.notifications-popover {
  width: min(390px, calc(100vw - 28px));
}

.language-popover {
  width: min(300px, calc(100vw - 28px));
}

.profile-popover {
  width: min(350px, calc(100vw - 28px));
}

.topbar-popover .popover-head {
  align-items: center;
  border-bottom: 1px solid #e7edf3;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 16px;
}

.topbar-popover .popover-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-popover .popover-head span {
  color: var(--brand-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-popover .popover-head strong {
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.25;
}

.topbar-popover .popover-close {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: #6c7887;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 500;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.topbar-popover .popover-close:hover {
  background: #f0f4f8;
  color: var(--brand-900);
}

/* Ayuda y soporte. */
.help-shortcuts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 16px;
}

.help-shortcuts > button {
  align-items: start;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  color: var(--brand-ink);
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr);
  min-width: 0;
  padding: 11px;
  text-align: left;
}

.help-shortcuts > button > span {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 8px;
  color: var(--brand-900);
  display: inline-flex;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.help-shortcuts > button > div,
.support-form-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.help-shortcuts strong,
.help-shortcuts small,
.support-form-heading strong,
.support-form-heading small {
  display: block;
}

.help-shortcuts strong {
  font-size: 11px;
  line-height: 1.3;
}

.help-shortcuts small,
.support-form-heading small {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.help-shortcuts > button:hover {
  background: var(--brand-soft);
  border-color: #c7d8e8;
}

.support-form {
  border-top: 1px solid #e7edf3;
  display: grid;
  gap: 11px;
  padding: 16px;
}

.support-form-heading strong {
  color: var(--brand-ink);
  font-size: 13px;
}

.support-form label {
  color: #526273;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
}

.support-form input,
.support-form select,
.support-form textarea {
  border-color: #d7e1ea;
  border-radius: 8px;
  font-size: 11px;
  min-height: 40px;
  padding: 9px 10px;
}

.support-form textarea {
  min-height: 90px;
}

.support-form > button[type="submit"] {
  background: var(--brand-900);
  border-radius: 8px;
  color: #ffffff;
  justify-self: start;
  min-height: 40px;
  padding: 9px 15px;
}

.support-form > button[type="submit"]:hover {
  background: var(--brand-700);
}

.support-form > p {
  color: var(--brand-muted);
  font-size: 10px;
  margin: 0;
  min-height: 0;
}

/* Notificaciones accionables. */
.notifications-popover .popover-head > button {
  background: transparent;
  border-radius: 7px;
  color: var(--brand-700);
  flex: 0 0 auto;
  font-size: 9px;
  min-height: 32px;
  padding: 6px 8px;
}

.notifications-popover .popover-head > button:hover {
  background: var(--brand-soft);
}

.notification-summary {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 10px 16px 3px;
  text-transform: uppercase;
}

.notification-list {
  display: grid;
  gap: 5px;
  padding: 7px 9px 11px;
}

.notification-list > button {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--brand-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-width: 0;
  padding: 10px;
  text-align: left;
}

.notification-list > button > span {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 50%;
  color: var(--brand-900);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.notification-list > button > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notification-list > button strong,
.notification-list > button small {
  display: block;
}

.notification-list > button strong {
  font-size: 11px;
  line-height: 1.3;
}

.notification-list > button small {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}

.notification-list > button > i {
  color: #8a98a7;
  font-size: 14px;
  font-style: normal;
  justify-self: end;
}

.notification-list > button:hover {
  background: #f7f9fb;
  border-color: #dfe7ef;
}

.notification-list > button.is-read {
  opacity: 0.58;
}

.notification-list .quiet-empty {
  color: var(--brand-muted);
  font-size: 11px;
  margin: 0;
  padding: 20px 12px;
  text-align: center;
}

/* Selector de idioma. */
.language-popover {
  padding-bottom: 8px;
}

.language-option {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--brand-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin: 6px 8px 0;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  width: calc(100% - 16px);
}

.language-option > span {
  align-items: center;
  background: #edf1f5;
  border-radius: 7px;
  color: #516170;
  display: inline-flex;
  font-size: 9px;
  height: 30px;
  justify-content: center;
  width: 34px;
}

.language-option > div {
  display: grid;
  gap: 1px;
}

.language-option strong,
.language-option small {
  display: block;
}

.language-option strong {
  font-size: 11px;
}

.language-option small {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 650;
}

.language-option > b {
  color: var(--brand-700);
  font-size: 12px;
}

.language-option.selected,
.language-option:hover:not(:disabled) {
  background: var(--brand-soft);
  border-color: #d3e0ed;
}

.language-option.selected > span {
  background: var(--brand-900);
  color: #ffffff;
}

.language-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

/* Menú de usuario. */
.user-menu-identity {
  align-items: center;
  border-bottom: 1px solid #e7edf3;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 16px;
}

.user-menu-avatar {
  align-items: center;
  background: var(--brand-900);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 46px;
}

.user-menu-identity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-menu-identity strong,
.user-menu-identity small,
.user-menu-identity em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-identity strong {
  color: var(--brand-ink);
  font-size: 13px;
  line-height: 1.3;
}

.user-menu-identity small {
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 650;
}

.user-menu-identity em {
  color: var(--brand-700);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-menu-list {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.user-menu-list > button,
.user-menu-logout {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--brand-ink);
  display: grid;
  gap: 11px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.user-menu-list > button > svg,
.user-menu-logout > svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

.user-menu-list > button > span,
.user-menu-logout > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.user-menu-list strong,
.user-menu-list small,
.user-menu-logout strong,
.user-menu-logout small {
  display: block;
}

.user-menu-list strong,
.user-menu-logout strong {
  font-size: 11px;
  line-height: 1.3;
}

.user-menu-list small,
.user-menu-logout small {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 650;
}

.user-menu-list > button > b {
  align-items: center;
  background: #edf1f5;
  border-radius: 999px;
  color: #596a7a;
  display: inline-flex;
  font-size: 9px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}

.user-menu-list > button:hover {
  background: var(--brand-soft);
  border-color: #d8e3ed;
  color: var(--brand-900);
}

.user-menu-logout {
  border-radius: 0;
  border-top: 1px solid #e7edf3;
  color: #a12c2c;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 12px 18px;
}

.user-menu-logout:hover {
  background: #fff5f5;
}

.user-menu-logout small {
  color: #8d6464;
}

/* Cuenta, seguridad e historial. */
.account-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.account-status-grid article {
  background: #f7f9fb;
  border: 1px solid #e0e7ee;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
}

.account-status-grid span {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-status-grid strong {
  color: var(--brand-ink);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-status-grid small {
  color: #72808e;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.account-preferences-form,
.account-password-form {
  background: #fbfcfd;
  border: 1px solid #e0e7ee;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
}

.account-preferences-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-password-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-form-heading {
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
}

.account-form-heading strong {
  color: var(--brand-ink);
  font-size: 14px;
}

.account-form-heading small {
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 650;
}

.account-preferences-form label,
.account-password-form label {
  color: #536474;
  font-size: 10px;
  gap: 6px;
}

.account-preferences-form input,
.account-preferences-form select,
.account-password-form input {
  border-radius: 8px;
  font-size: 11px;
  min-height: 42px;
}

.account-preferences-form .profile-form-actions,
.account-password-form .profile-form-actions {
  align-items: center;
  grid-column: 1 / -1;
}

.profile-orders-card {
  min-width: 0;
}

.order-history-list {
  display: grid;
  gap: 14px;
}

.order-history-loading,
.order-history-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cfdbe6;
  border-radius: 12px;
  color: var(--brand-muted);
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 180px;
  padding: 26px;
  text-align: center;
}

.order-history-loading > span {
  animation: order-history-spin 800ms linear infinite;
  border: 3px solid #dce6ef;
  border-radius: 50%;
  border-top-color: var(--brand-700);
  height: 30px;
  width: 30px;
}

@keyframes order-history-spin {
  to { transform: rotate(360deg); }
}

.order-history-loading p,
.order-history-empty p {
  font-size: 11px;
  margin: 0;
  max-width: 440px;
}

.order-history-empty > span {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 50%;
  color: var(--brand-900);
  display: inline-flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.order-history-empty strong {
  color: var(--brand-ink);
  font-size: 14px;
}

.order-history-empty a,
.order-history-empty button {
  background: var(--brand-900);
  border-radius: 8px;
  color: #ffffff;
  font-size: 10px;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
}

.order-history-item {
  background: #ffffff;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  overflow: hidden;
}

.order-history-item > header,
.order-history-item > footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px;
}

.order-history-item > header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e9f0;
}

.order-history-item > header > div {
  display: grid;
  gap: 3px;
}

.order-history-item > header span {
  color: #167054;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-history-item > header strong {
  color: var(--brand-ink);
  font-size: 11px;
}

.order-history-item time {
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 700;
}

.order-history-courses {
  display: grid;
  gap: 0;
  padding: 4px 16px;
}

.order-history-courses > div {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  display: grid;
  gap: 11px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 12px 0;
}

.order-history-courses > div:last-child {
  border-bottom: 0;
}

.order-history-courses > div > span {
  align-items: center;
  background: #eaf6f1;
  border-radius: 50%;
  color: #167054;
  display: inline-flex;
  font-size: 10px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.order-history-courses > div > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-history-courses strong {
  color: var(--brand-ink);
  font-size: 11px;
}

.order-history-courses small,
.order-history-item > footer small {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 650;
}

.order-history-item > footer {
  background: #fbfcfd;
  border-top: 1px solid #e7edf3;
}

.order-history-item > footer > div:last-child {
  align-items: end;
  display: grid;
  gap: 1px;
  justify-items: end;
}

.order-history-item > footer > div:last-child span {
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-history-item > footer > div:last-child strong {
  color: var(--brand-900);
  font-size: 15px;
}

/* Las utilidades de cuenta también acompañan al reproductor sin desplazar sus controles. */
body.is-course-player .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  z-index: 140;
}

body.is-course-player .course-player-heading {
  grid-column: 2;
  grid-row: 1;
}

body.is-course-player .course-player-actions {
  grid-column: 3;
  grid-row: 1;
}

body.is-course-player .topbar .topbar-actions {
  display: flex !important;
  grid-column: 4;
  grid-row: 1;
}

body.is-course-player .topbar-help-button,
body.is-course-player .topbar-icon-button,
body.is-course-player .profile-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body.is-course-player .topbar-help-button:hover,
body.is-course-player .topbar-icon-button:hover,
body.is-course-player .profile-chip:hover,
body.is-course-player .topbar-help-button[aria-expanded="true"],
body.is-course-player .topbar-icon-button[aria-expanded="true"],
body.is-course-player .profile-chip[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

body.is-course-player .profile-chip > span:first-child {
  background: #ffffff;
  color: var(--brand-900);
}

body.is-course-player .topbar-popover {
  color: var(--brand-ink);
  right: 12px;
}

@media (max-width: 1100px) {
  .topbar-help-button > span {
    display: none;
  }

  .topbar-help-button {
    height: 42px;
    padding: 0;
    width: 42px;
  }

  .account-password-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body:not(.is-course-player):not(.is-live-workspace) .learning-shell > .topbar {
    gap: 7px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 7px;
  }

  body:not(.is-course-player):not(.is-live-workspace) .topbar .brand-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  body:not(.is-course-player):not(.is-live-workspace) .topbar .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.is-course-player):not(.is-live-workspace) .student-topbar-nav,
  body:not(.is-course-player):not(.is-live-workspace) .teacher-topbar-nav {
    background: transparent;
    border: 0;
    border-top: 1px solid #e7edf3;
    border-radius: 0;
    gap: 3px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    justify-self: stretch;
    order: initial;
    overflow-x: auto;
    padding: 6px 0 0;
    scrollbar-width: none;
    width: 100%;
  }

  body:not(.is-course-player):not(.is-live-workspace) .student-topbar-nav::-webkit-scrollbar,
  body:not(.is-course-player):not(.is-live-workspace) .teacher-topbar-nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.is-course-player):not(.is-live-workspace) .student-topbar-nav button,
  body:not(.is-course-player):not(.is-live-workspace) .teacher-topbar-nav button {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: max-content;
    padding: 7px 11px;
  }

  body.is-teacher-dashboard .learning-main {
    padding-top: 18px;
  }

  body.is-course-player .topbar {
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  body.is-course-player .topbar-help-button,
  body.is-course-player .topbar-language-button {
    display: none;
  }

  body.is-course-player .course-player-actions {
    gap: 3px;
  }

  body.is-course-player .course-player-actions > button {
    height: 38px;
    min-height: 38px;
  }

  body.is-course-player .player-progress-button > span:nth-child(2),
  body.is-course-player .player-action-chevron,
  body.is-course-player .player-share-button > span {
    display: none;
  }

  body.is-course-player .player-progress-button,
  body.is-course-player .player-share-button {
    justify-content: center;
    padding: 0;
    width: 38px;
  }

  .account-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:not(.is-course-player):not(.is-live-workspace) .learning-shell > .topbar {
    align-items: center;
    display: grid;
    min-height: 60px;
    padding: 7px 12px;
  }

  .topbar-actions,
  body.is-course-player .topbar .topbar-actions {
    align-items: center;
    display: flex !important;
    gap: 5px;
    grid-template-columns: none;
    justify-content: flex-end;
    width: auto;
  }

  .topbar-actions > button,
  .topbar-actions > button:last-child {
    min-width: 0;
    width: auto;
  }

  .topbar-language-button {
    display: none;
  }

  .profile-chip {
    min-width: 54px;
  }

  .topbar-popover {
    border-radius: 12px;
    left: 12px;
    max-height: calc(100dvh - 122px);
    position: fixed;
    right: 12px;
    top: 110px;
    width: auto;
    z-index: 120;
  }

  body.is-course-player .topbar-popover {
    left: 8px;
    max-height: calc(100dvh - 68px);
    right: 8px;
    top: 60px;
    width: auto;
  }

  body.is-course-player .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 52px;
    padding: 0 8px;
  }

  body.is-course-player .brand-button > span:last-child {
    display: none;
  }

  body.is-course-player .course-player-heading strong {
    max-width: none;
  }

  .help-shortcuts {
    grid-template-columns: 1fr;
  }

  .account-status-grid,
  .account-preferences-form,
  .account-password-form {
    grid-template-columns: 1fr;
  }

  .order-history-item > header,
  .order-history-item > footer {
    align-items: start;
  }
}

@media (max-width: 520px) {
  body:not(.is-course-player):not(.is-live-workspace) .topbar .brand-button > span:last-child {
    display: none;
  }

  body:not(.is-course-player):not(.is-live-workspace) .topbar .topbar-help-button {
    display: none;
  }

  body.is-course-player .topbar-icon-button[data-notifications-toggle] {
    display: none;
  }

  body.is-course-player .topbar {
    gap: 4px;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
  }

  body.is-course-player .brand-button .brand-mark {
    height: 32px;
    width: 32px;
  }

  body.is-course-player .profile-chip {
    height: 38px;
    min-height: 38px;
    min-width: 42px;
    padding: 3px;
  }

  body.is-course-player .profile-chip > span:first-child {
    height: 30px;
    width: 30px;
  }

  body.is-course-player .profile-chip > svg {
    display: none;
  }

  .topbar-popover {
    left: 8px;
    right: 8px;
  }

  .topbar-popover .popover-head {
    padding: 12px 14px;
  }

  .user-menu-identity {
    padding: 14px;
  }

  .support-form,
  .help-shortcuts {
    padding-left: 14px;
    padding-right: 14px;
  }

  .account-preferences-form,
  .account-password-form {
    padding: 14px;
  }

  .order-history-item > header,
  .order-history-item > footer {
    display: grid;
    gap: 8px;
  }

  .order-history-item > footer > div:last-child {
    justify-items: start;
  }

  .order-history-courses {
    padding-left: 13px;
    padding-right: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-popover,
  .order-history-loading > span {
    animation: none;
  }
}

/* Estado autenticado de la cabecera pública del acceso al campus. */
.auth-screen .header-actions [hidden] {
  display: none !important;
}

.auth-screen .header-profile {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  color: var(--brand-900);
  display: inline-flex;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  min-height: 42px;
  padding: 5px 11px 5px 5px;
  text-decoration: none;
}

.auth-screen .header-profile:hover {
  background: var(--brand-soft);
  border-color: #b8cce3;
}

.auth-screen .header-profile-avatar {
  align-items: center;
  background: var(--brand-700);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  letter-spacing: -0.02em;
  width: 30px;
}

@media (max-width: 520px) {
  .auth-screen .header-profile {
    min-height: 38px;
    padding: 3px;
  }

  .auth-screen .header-profile > span:last-child {
    display: none;
  }
}

/* Centro docente conectado: curso, comunidad y operación en una sola consola. */
body.is-teacher-dashboard .topbar {
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
}

body.is-teacher-dashboard .teacher-topbar-nav {
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

body.is-teacher-dashboard .teacher-topbar-nav::-webkit-scrollbar {
  display: none;
}

body.is-teacher-dashboard .teacher-workspace {
  gap: 24px;
  grid-template-columns: 270px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1540px;
}

body.is-teacher-dashboard .teacher-course-panel {
  align-self: start;
  background: #ffffff;
  border: 1px solid #d8e5f1;
  border-radius: 16px;
  display: block;
  max-height: calc(100vh - 112px);
  overflow: auto;
  position: sticky;
  top: 88px;
}

body.is-teacher-dashboard .teacher-course-list {
  display: grid;
}

body.is-teacher-dashboard .teacher-course-status.is-published {
  background: #e8f6f2;
  border-color: #b7ddd4;
  color: #0f766e;
}

body.is-teacher-dashboard .teacher-course-status.is-draft {
  background: #fff5df;
  border-color: #ead29c;
  color: #8a5b00;
}

body.is-teacher-dashboard .teacher-editor {
  min-width: 0;
}

.teacher-public-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #b9cde0;
  border-radius: 999px;
  color: #164194;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  min-height: 42px;
  padding: 9px 16px;
  text-decoration: none;
}

.teacher-public-link:hover {
  background: #edf6ff;
  border-color: #7caad2;
}

.teacher-form-section-head,
.teacher-form-footer {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.teacher-form-section-head > div,
.teacher-form-footer {
  min-width: 0;
}

.teacher-form-section-head > div {
  display: grid;
  gap: 5px;
}

.teacher-form-section-head small,
.teacher-form-footer small {
  color: #66788d;
  line-height: 1.5;
}

.teacher-publish-field {
  flex: 0 0 180px;
}

.teacher-form-footer {
  border-top: 1px solid #d8e5f1;
  padding-top: 16px;
}

.teacher-form-footer small {
  max-width: 520px;
}

body.is-teacher-dashboard .teacher-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.teacher-module-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teacher-inline-editor {
  margin-left: auto;
  position: relative;
}

.teacher-inline-editor > summary {
  border: 1px solid #cbdbea;
  border-radius: 999px;
  color: #36536f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  padding: 7px 11px;
  white-space: nowrap;
}

.teacher-inline-editor > summary::-webkit-details-marker {
  display: none;
}

.teacher-inline-editor[open] > summary {
  background: #10253d;
  border-color: #10253d;
  color: #ffffff;
}

.teacher-inline-editor > form {
  background: #ffffff;
  border: 1px solid #cbdbea;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 37, 61, 0.16);
  display: grid;
  gap: 10px;
  min-width: 310px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 20;
}

.teacher-inline-editor label,
.teacher-question-answer-form label {
  color: #52677c;
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 5px;
}

.teacher-inline-editor input,
.teacher-inline-editor select,
.teacher-question-answer-form textarea {
  background: #ffffff;
  border: 1px solid #cad9e7;
  border-radius: 10px;
  color: #10253d;
  min-height: 40px;
  padding: 9px 10px;
}

.teacher-inline-editor form > div {
  display: flex;
  gap: 8px;
}

.teacher-inline-editor button,
.teacher-question-answer-form button,
.teacher-session-row button {
  background: #246eb9;
  border: 1px solid #246eb9;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 13px;
}

.teacher-inline-editor button.danger {
  background: #ffffff;
  border-color: #d8a6a6;
  color: #9a3030;
}

.teacher-question-summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-question-summary article {
  border-right: 1px solid #d8e5f1;
  display: grid;
  gap: 5px;
  padding: 0 20px 18px;
}

.teacher-question-summary article:first-child {
  padding-left: 0;
}

.teacher-question-summary article:last-child {
  border-right: 0;
}

.teacher-question-summary span,
.teacher-question-card header span,
.teacher-question-answer span,
.teacher-session-status {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.teacher-question-summary strong {
  color: #10253d;
  font-size: 30px;
}

.teacher-question-list {
  display: grid;
}

.teacher-question-card {
  border-top: 1px solid #d8e5f1;
  display: grid;
  gap: 13px;
  padding: 20px 0;
}

.teacher-question-card > header {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.teacher-question-card header > div {
  display: grid;
  gap: 5px;
}

.teacher-question-card header strong {
  color: #10253d;
  font-size: 18px;
}

.teacher-question-card header small,
.teacher-question-card > p,
.teacher-question-answer small {
  color: #63758a;
}

.teacher-question-card > p,
.teacher-question-answer p {
  line-height: 1.55;
  margin: 0;
}

.teacher-question-answer,
.teacher-question-answer-form {
  background: #f2f7fb;
  border-left: 3px solid #246eb9;
  border-radius: 0 12px 12px 0;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.teacher-question-answer-form button {
  justify-self: start;
}

.teacher-session-history {
  border-top: 1px solid #d8e5f1;
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.teacher-session-history > [data-teacher-sessions] {
  display: grid;
}

.teacher-session-row {
  align-items: center;
  border-top: 1px solid #e1eaf3;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px 0;
}

.teacher-session-row > div {
  display: grid;
  gap: 4px;
}

.teacher-session-row strong,
.teacher-session-row small {
  display: block;
}

.teacher-session-row strong {
  color: #10253d;
}

.teacher-session-row small,
.teacher-session-row > span {
  color: #63758a;
  font-size: 12px;
}

.teacher-session-status.is-live {
  color: #b42318;
}

@media (max-width: 1180px) {
  body.is-teacher-dashboard .teacher-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.is-teacher-dashboard .teacher-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-teacher-dashboard .teacher-metric-grid article:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 980px) {
  body.is-teacher-dashboard .teacher-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-teacher-dashboard .teacher-course-panel {
    max-height: none;
    overflow: hidden;
    position: static;
  }

  body.is-teacher-dashboard .teacher-course-list {
    display: flex;
    overflow-x: auto;
  }

  body.is-teacher-dashboard .teacher-course-row {
    flex: 0 0 min(280px, 78vw);
  }
}

@media (max-width: 680px) {
  .teacher-form-section-head,
  .teacher-form-footer,
  .teacher-question-card > header {
    align-items: stretch;
    display: grid;
  }

  .teacher-publish-field {
    width: 100%;
  }

  body.is-teacher-dashboard .teacher-metric-grid,
  .teacher-question-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-teacher-dashboard .teacher-metric-grid article,
  .teacher-question-summary article {
    border-bottom: 1px solid #d8e5f1;
    border-right: 0;
    padding: 12px 0;
  }

  .teacher-inline-editor > form {
    max-width: calc(100vw - 38px);
    min-width: min(310px, calc(100vw - 38px));
    position: fixed;
    right: 19px;
    top: 116px;
  }

  .teacher-session-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  [data-teacher-panel="questions"] .teacher-window-head {
    align-items: stretch;
    display: grid;
  }

  [data-teacher-panel="questions"] .teacher-inline-search,
  [data-teacher-panel="questions"] .teacher-inline-search input {
    width: 100%;
  }
}

/* La cascada histórica termina aquí: el detalle ya no funciona como selector de portafolio. */
body.is-teacher-dashboard .learning-main {
  margin: 0 auto;
  max-width: 1460px;
  min-height: calc(100vh - 72px);
  padding: 30px clamp(18px, 3vw, 44px) 56px;
}

body.is-teacher-dashboard .teacher-workspace {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 218px minmax(0, 1fr);
  margin: 0;
  max-width: none;
  min-height: 0;
}

body.is-teacher-dashboard .teacher-course-panel {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--brand-line);
  box-shadow: none;
  display: grid;
  gap: 20px;
  max-height: none;
  overflow: visible;
  padding: 4px 24px 24px 0;
  position: sticky;
  top: 102px;
}

body.is-teacher-dashboard .teacher-course-list {
  display: none;
}

@media (max-width: 1180px) {
  body.is-teacher-dashboard .teacher-workspace {
    gap: 26px;
    grid-template-columns: 202px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  body.is-teacher-dashboard .learning-main {
    padding: 18px clamp(16px, 3vw, 28px) 44px;
  }

  body.is-teacher-dashboard .teacher-workspace {
    display: block;
  }

  body.is-teacher-dashboard .teacher-course-panel {
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--brand-line);
    display: block;
    margin: 0 0 24px;
    max-height: none;
    overflow: hidden;
    padding: 0;
    position: static;
  }
}

@media (max-width: 760px) {
  body.is-teacher-dashboard .learning-main {
    padding: 14px 12px 36px;
  }
}

/* Centro docente v3: consola operativa, sin controles administrativos. */
body.is-teacher-dashboard {
  --td-navy: #0c1b31;
  --td-navy-soft: #142b49;
  --td-blue: #236fc1;
  --td-blue-strong: #164f96;
  --td-ink: #14243a;
  --td-muted: #68778b;
  --td-line: #dfe7f0;
  --td-surface: #ffffff;
  --td-bg: #f4f7fb;
  background: var(--td-bg);
  color: var(--td-ink);
}

body.is-teacher-dashboard .teacher-site-announcement {
  display: none !important;
}

body.is-teacher-dashboard .topbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #dbe4ee;
  box-shadow: 0 4px 20px rgba(13, 36, 65, 0.045);
  grid-template-columns: 178px minmax(300px, 1fr) auto;
  min-height: 76px;
  padding: 0 clamp(18px, 2.4vw, 38px);
  position: sticky;
  top: 0;
  z-index: 80;
}

body.is-teacher-dashboard .brand-button {
  border-right: 1px solid #dce5ef;
  margin-right: 18px;
  padding-right: 20px;
}

body.is-teacher-dashboard .campus-brand-fallback {
  display: none;
}

body.is-teacher-dashboard .teacher-course-context {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

body.is-teacher-dashboard .teacher-course-back {
  align-items: center;
  border: 1px solid #d6e0eb;
  border-radius: 10px;
  color: #36516e;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: 160ms ease;
  width: 38px;
}

body.is-teacher-dashboard .teacher-course-back:hover {
  background: #eef5fc;
  border-color: #a9c4df;
  color: var(--td-blue);
  transform: translateX(-2px);
}

body.is-teacher-dashboard .teacher-course-thumb {
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  height: 44px;
  overflow: hidden;
  width: 56px;
}

body.is-teacher-dashboard .teacher-course-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.is-teacher-dashboard .teacher-course-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.is-teacher-dashboard .teacher-course-copy > strong {
  color: var(--td-ink);
  font-size: 14px;
  max-width: min(40vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .teacher-course-copy > span {
  align-items: center;
  color: var(--td-muted);
  display: flex;
  font-size: 11px;
  gap: 8px;
}

body.is-teacher-dashboard .teacher-course-state {
  background: #e9f7f1;
  border: 1px solid #bfe5d5;
  border-radius: 999px;
  color: #08785d;
  font-size: 10px;
  font-weight: 850;
  padding: 3px 7px;
}

body.is-teacher-dashboard .learning-main {
  margin: 0 auto;
  max-width: 1600px;
  min-height: calc(100vh - 76px);
  padding: 28px clamp(20px, 2.5vw, 40px) 56px;
  width: 100%;
}

body.is-teacher-dashboard .td-workspace {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 252px minmax(0, 1fr);
  margin: 0;
  max-width: none;
}

body.is-teacher-dashboard .td-sidebar {
  align-self: start;
  background:
    radial-gradient(circle at 10% 0%, rgba(55, 132, 218, 0.24), transparent 34%),
    linear-gradient(155deg, var(--td-navy-soft), var(--td-navy) 72%);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(12, 27, 49, 0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 132px);
  overflow: hidden;
  padding: 22px 14px 16px;
  position: sticky;
  top: 104px;
}

.td-sidebar-course {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 7px;
  margin: 0 8px;
  padding: 2px 2px 20px;
}

.td-sidebar-course > span,
.td-eyebrow {
  color: #3974ad;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-sidebar-course > span {
  color: #79b6f3;
}

.td-sidebar-course strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.td-sidebar-course small {
  color: #a9bbd0;
  font-size: 11px;
  line-height: 1.45;
}

body.is-teacher-dashboard .td-nav {
  display: grid;
  gap: 5px;
}

body.is-teacher-dashboard .td-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: #bdcadd;
  display: grid;
  font-size: 13px;
  font-weight: 720;
  gap: 11px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 47px;
  padding: 9px 12px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

body.is-teacher-dashboard .td-nav button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}

body.is-teacher-dashboard .td-nav button.active {
  background: linear-gradient(135deg, #2f80d4, #2369b6);
  box-shadow: 0 8px 20px rgba(14, 74, 137, 0.34);
  color: #fff;
}

body.is-teacher-dashboard .td-nav button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

body.is-teacher-dashboard .td-nav button small {
  background: rgba(255, 255, 255, 0.09);
  border: 0;
  border-radius: 999px;
  color: inherit;
  font-size: 9px;
  font-weight: 850;
  max-width: 78px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .td-nav button.active small {
  background: rgba(255, 255, 255, 0.17);
}

.td-sidebar-note {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: #fff;
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
}

.td-sidebar-note svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: #7db9f4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.td-sidebar-note div {
  display: grid;
  gap: 4px;
}

.td-sidebar-note strong {
  font-size: 11px;
}

.td-sidebar-note small {
  color: #aebdd0;
  font-size: 10px;
  line-height: 1.45;
}

body.is-teacher-dashboard .td-main {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  padding: 0;
}

body.is-teacher-dashboard .td-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  padding: 0;
}

body.is-teacher-dashboard .td-panel:not(.hidden) {
  animation: td-panel-in 220ms ease both;
  display: block;
}

@keyframes td-panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-page-head {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 62px;
}

.td-page-head > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.td-page-head h1 {
  color: var(--td-ink);
  font-size: clamp(27px, 2.3vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.td-page-head p {
  color: var(--td-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.td-page-head p strong {
  color: #425671;
}

.td-ghost-link,
.td-readonly-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e3ed;
  border-radius: 10px;
  color: #35536f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
}

.td-ghost-link:hover {
  border-color: #9abada;
  color: var(--td-blue);
}

.td-readonly-chip {
  background: #edf3f9;
  border-color: #d7e2ec;
  color: #587087;
}

.td-readonly-chip svg,
.td-search svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.td-next-class {
  align-items: center;
  background:
    radial-gradient(circle at 83% -15%, rgba(119, 190, 255, 0.42), transparent 36%),
    linear-gradient(135deg, #163b70, #1f66ae 62%, #2c7bca);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(25, 83, 145, 0.18);
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  margin-bottom: 20px;
  min-height: 172px;
  overflow: hidden;
  padding: 25px 28px;
  position: relative;
}

.td-next-class::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 220px;
  position: absolute;
  right: -70px;
  top: -105px;
  width: 220px;
}

.td-next-class.is-live {
  background: radial-gradient(circle at 83% -15%, rgba(255, 145, 145, 0.34), transparent 36%), linear-gradient(135deg, #551d2b, #9b263f 62%, #be3f58);
}

.td-live-date {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  height: 104px;
  justify-content: center;
  text-transform: uppercase;
}

.td-live-date span,
.td-live-date small {
  color: #d6eaff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.td-live-date strong {
  font-size: 37px;
  line-height: 1.05;
}

.td-next-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.td-live-kicker {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 850;
  gap: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-live-kicker i {
  animation: td-live-pulse 1.7s infinite;
  background: #6ee7c1;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(110, 231, 193, 0.14);
  height: 7px;
  width: 7px;
}

@keyframes td-live-pulse {
  50% { box-shadow: 0 0 0 9px rgba(110, 231, 193, 0); }
}

.td-next-copy h2 {
  color: #fff;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.td-next-copy > p {
  color: #d6e8fa;
  font-size: 12px;
  margin: 0;
}

.td-auto-record-pill {
  align-items: center;
  background: rgba(5, 24, 47, 0.25);
  border-radius: 999px;
  color: #e6f3ff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 750;
  gap: 6px;
  justify-self: start;
  margin-top: 4px;
  padding: 6px 9px;
}

.td-auto-record-pill svg {
  fill: none;
  height: 14px;
  stroke: #80e6cb;
  stroke-width: 1.8;
  width: 14px;
}

.td-primary-action {
  align-items: center;
  background: var(--td-blue);
  border: 1px solid var(--td-blue);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  transition: 160ms ease;
}

.td-primary-action:hover:not(:disabled) {
  background: var(--td-blue-strong);
  border-color: var(--td-blue-strong);
  box-shadow: 0 8px 18px rgba(35, 111, 193, 0.2);
  transform: translateY(-1px);
}

.td-primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.td-next-class > .td-primary-action {
  background: #fff;
  border-color: #fff;
  color: #15508e;
  min-width: 130px;
  position: relative;
  z-index: 1;
}

body.is-teacher-dashboard .td-metrics {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

body.is-teacher-dashboard .td-metrics article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 15px;
  display: flex;
  gap: 13px;
  min-height: 104px;
  padding: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.is-teacher-dashboard .td-metrics article:hover {
  border-color: #bfd2e5;
  box-shadow: 0 10px 24px rgba(19, 48, 80, 0.07);
  transform: translateY(-2px);
}

.td-metrics article > div {
  display: grid;
  gap: 1px;
}

body.is-teacher-dashboard .td-metrics article small {
  color: var(--td-muted);
  font-size: 10px;
  font-weight: 750;
}

body.is-teacher-dashboard .td-metrics article strong {
  color: var(--td-ink);
  font-size: 27px;
  line-height: 1.1;
}

body.is-teacher-dashboard .td-metrics article div > span {
  color: #8895a5;
  font-size: 9px;
}

.td-metric-icon {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.td-metric-icon.blue { background: #e9f3ff; color: #2672c0; }
.td-metric-icon.violet { background: #f0edff; color: #7258c9; }
.td-metric-icon.amber { background: #fff4df; color: #bd7813; }
.td-metric-icon.green { background: #e7f7f0; color: #158062; }

.td-metric-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.td-dashboard-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-dashboard-column {
  align-content: start;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.td-card {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(18, 43, 72, 0.025);
  min-width: 0;
}

.td-card > header,
.td-inbox-card > header,
.td-quick-card > header,
.td-activity-card > header,
.td-announcement-card > header,
.td-course-summary-card > header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 19px 20px 14px;
}

.td-card > header > div,
.td-inbox-card > header > div,
.td-quick-card > header > div,
.td-activity-card > header > div,
.td-announcement-card > header > div,
.td-course-summary-card > header > div {
  display: grid;
  gap: 4px;
}

.td-card header h2,
.td-inbox-card header h2,
.td-quick-card header h2,
.td-activity-card header h2,
.td-announcement-card header h2,
.td-course-summary-card header h2 {
  color: var(--td-ink);
  font-size: 16px;
  letter-spacing: -0.015em;
  margin: 0;
}

.td-course-summary-card > header p {
  color: var(--td-muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 0;
  max-width: 390px;
}

.td-summary-state {
  background: #f1f4f8;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  color: #66788b;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 850;
  padding: 6px 9px;
  text-transform: uppercase;
}

.td-summary-state.is-published {
  background: #e7f5ef;
  border-color: #c8e6d9;
  color: #19704f;
}

.td-count-badge {
  align-items: center;
  background: #fff2df;
  border-radius: 9px;
  color: #a9630e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 30px;
}

.td-alert-list,
.td-quick-actions,
.td-activity-list {
  display: grid;
  padding: 0 10px 12px;
}

.td-alert-list > button,
.td-quick-actions > button,
.td-activity-list > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--td-ink);
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
  transition: background 150ms ease;
  width: 100%;
}

.td-alert-list > button:hover,
.td-quick-actions > button:hover,
.td-activity-list > button:hover {
  background: #f3f7fb;
}

.td-alert-list button > span:nth-child(2),
.td-quick-actions button > div,
.td-activity-list button > div {
  display: grid;
  gap: 3px;
}

.td-alert-list strong,
.td-quick-actions strong,
.td-activity-list strong {
  font-size: 12px;
}

.td-alert-list small,
.td-quick-actions small,
.td-activity-list small {
  color: var(--td-muted);
  font-size: 10px;
}

.td-alert-number,
.td-quick-icon,
.td-activity-list button > span {
  align-items: center;
  background: #eef4fb;
  border-radius: 9px;
  color: var(--td-blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.td-alert-list button > b,
.td-quick-actions button > b {
  color: #91a0b1;
  font-size: 15px;
}

.td-all-clear {
  align-items: center;
  display: flex;
  gap: 11px;
  min-height: 72px;
  padding: 10px 12px;
}

.td-all-clear > span {
  align-items: center;
  background: #e6f6ef;
  border-radius: 50%;
  color: #168264;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.td-all-clear > div {
  display: grid;
  gap: 3px;
}

.td-all-clear strong { font-size: 11px; }
.td-all-clear small { color: var(--td-muted); font-size: 9px; }

.td-announcement-card form,
.td-course-summary-card form {
  display: grid;
  gap: 10px;
  padding: 0 20px 18px;
}

.td-announcement-card form label,
.td-course-summary-card form label,
.td-upload-card form > label,
.td-form-row label,
.td-assignment-composer form label {
  color: #52667b;
  display: grid;
  font-size: 10px;
  font-weight: 760;
  gap: 5px;
}

.td-announcement-card input,
.td-announcement-card textarea,
.td-course-summary-card textarea,
.td-upload-card select,
.td-assignment-composer input,
.td-assignment-composer select,
.td-assignment-composer textarea {
  background: #fbfcfe;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  color: var(--td-ink);
  font: inherit;
  min-height: 40px;
  outline: none;
  padding: 9px 11px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.td-announcement-card textarea,
.td-course-summary-card textarea,
.td-assignment-composer textarea {
  min-height: 76px;
  resize: vertical;
}

.td-course-summary-card textarea {
  min-height: 150px;
  line-height: 1.6;
}

.td-announcement-card input:focus,
.td-announcement-card textarea:focus,
.td-course-summary-card textarea:focus,
.td-upload-card select:focus,
.td-assignment-composer input:focus,
.td-assignment-composer select:focus,
.td-assignment-composer textarea:focus {
  border-color: #79a9d8;
  box-shadow: 0 0 0 3px rgba(35, 111, 193, 0.1);
}

.td-announcement-card form > div,
.td-course-summary-card form > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.td-announcement-card form button,
.td-course-summary-card form button,
.td-question-shell form button,
.td-assignment-composer form > button {
  background: var(--td-blue);
  border: 1px solid var(--td-blue);
  border-radius: 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 14px;
}

.teacher-message {
  color: #39735f;
  font-size: 10px;
  line-height: 1.45;
  margin: 0;
}

.td-material-layout {
  align-items: start;
  display: grid;
  gap: 17px;
  grid-template-columns: minmax(330px, 0.72fr) minmax(430px, 1.28fr);
  margin-bottom: 17px;
}

.td-upload-card,
.td-program-card,
.td-library-card,
.td-table-card,
.td-question-shell,
.td-assignment-composer,
.teacher-assignment-list-wrap,
.teacher-session-history,
.td-recording-library {
  padding: 20px;
}

.td-upload-card > header,
.td-program-card > header,
.td-library-card > header,
.td-table-card > header,
.td-question-shell > header,
.td-assignment-composer > header,
.teacher-assignment-list-wrap > header,
.teacher-session-history > header,
.td-recording-library > header {
  margin: 0 0 14px;
  padding: 0;
}

.td-upload-card > header {
  display: grid;
  gap: 5px;
}

.td-upload-card > header h2,
.td-program-card > header h2 {
  color: var(--td-ink);
  font-size: 18px;
  margin: 0;
}

.td-upload-card > header p,
.td-helper-copy {
  color: var(--td-muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.td-upload-card form,
.td-assignment-composer form {
  display: grid;
  gap: 12px;
}

.td-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-file-drop {
  align-items: center;
  background: #f6f9fd;
  border: 1.5px dashed #aec6dd;
  border-radius: 13px;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 164px;
  padding: 20px;
  text-align: center;
  transition: 160ms ease;
}

.td-upload-card.is-dragging .td-file-drop,
.td-file-drop:hover {
  background: #eaf4ff;
  border-color: #3c82c7;
  transform: translateY(-1px);
}

.td-file-drop input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.td-drop-icon {
  align-items: center;
  background: #e5f1fd;
  border-radius: 12px;
  color: var(--td-blue);
  display: inline-flex;
  height: 43px;
  justify-content: center;
  margin-bottom: 9px;
  width: 43px;
}

.td-drop-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.td-file-drop strong { color: var(--td-ink); font-size: 12px; }
.td-file-drop small { color: var(--td-muted); font-size: 9px; font-weight: 500; }

.td-upload-queue {
  display: grid;
  gap: 7px;
}

.td-upload-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 9px;
}

.td-upload-item.is-done { background: #f0faf6; border-color: #c9e8da; }
.td-upload-item.is-error { background: #fff5f4; border-color: #efceca; }

.td-upload-file-icon {
  align-items: center;
  background: #e8f1fb;
  border-radius: 8px;
  color: #326ca5;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.td-upload-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.td-upload-item strong,
.td-upload-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-upload-item strong { font-size: 9px; }
.td-upload-item small { color: var(--td-muted); font-size: 8px; }
.td-upload-item > b { color: #2b739f; font-size: 9px; }

.td-upload-progress {
  background: #dce7f1;
  border-radius: 999px;
  height: 3px;
  overflow: hidden;
}

.td-upload-progress i {
  background: linear-gradient(90deg, #2c78c7, #50a2e5);
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: var(--progress, 0%);
}

.td-program-card > header small,
.td-recording-library > header > span {
  background: #eef4fa;
  border-radius: 999px;
  color: #567087;
  font-size: 9px;
  font-weight: 800;
  padding: 6px 9px;
}

.td-outline {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.td-module {
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  overflow: hidden;
}

.td-module > summary {
  align-items: center;
  background: #f9fbfd;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  list-style: none;
  min-height: 58px;
  padding: 10px 13px;
}

.td-module > summary::-webkit-details-marker { display: none; }

.td-module > summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.td-module > summary strong { color: var(--td-ink); font-size: 12px; }
.td-module > summary small { color: var(--td-muted); font-size: 10px; }

.td-module > summary svg {
  fill: none;
  height: 17px;
  stroke: #7890a7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
  width: 17px;
}

.td-module[open] > summary svg { transform: rotate(180deg); }

.td-module-index {
  align-items: center;
  background: #eaf2fb;
  border-radius: 9px;
  color: #2b6dac;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.td-module-lessons {
  border-top: 1px solid #e3eaf1;
  display: grid;
  padding: 3px 10px;
}

.td-lesson-row {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 8px 3px;
}

.td-lesson-row:last-child { border-bottom: 0; }

.td-lesson-icon {
  align-items: center;
  background: #f0f4f8;
  border-radius: 50%;
  color: #5d7790;
  display: inline-flex;
  font-size: 8px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.td-lesson-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.td-lesson-row strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-lesson-row small { color: var(--td-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-lesson-row button,
.td-session-row button,
.td-recording-row button {
  background: #fff;
  border: 1px solid #bed1e3;
  border-radius: 8px;
  color: #255f98;
  font-size: 9px;
  font-weight: 820;
  min-height: 32px;
  padding: 6px 10px;
}

.td-lesson-row button:hover,
.td-session-row button:hover,
.td-recording-row button:hover {
  background: #eef6fe;
  border-color: #87acd0;
}

.td-library-card {
  margin-top: 0;
}

.td-search {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e1eb;
  border-radius: 10px;
  color: #7c8da0;
  display: flex;
  gap: 7px;
  min-height: 39px;
  padding: 0 10px;
  width: min(260px, 100%);
}

.td-search input {
  background: transparent;
  border: 0;
  color: var(--td-ink);
  font-size: 10px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.td-assets {
  display: grid;
}

body.is-teacher-dashboard .td-asset-row,
body.is-teacher-dashboard .td-recording-row {
  align-items: center;
  border-bottom: 1px solid #e7edf3;
  border-top: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  min-height: 66px;
  padding: 10px 0;
}

body.is-teacher-dashboard .td-asset-row:last-child,
body.is-teacher-dashboard .td-recording-row:last-child { border-bottom: 0; }

.td-file-type,
.td-recording-thumb {
  align-items: center;
  background: #e9f2fc;
  border-radius: 9px;
  color: #2b6ead;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.td-file-type.muted { background: #eef1f4; color: #687889; }

.td-recording-thumb svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.td-asset-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.td-asset-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-asset-copy small { color: var(--td-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-published-state {
  background: #e9f7f1;
  border-radius: 999px;
  color: #16795f;
  font-size: 8px;
  font-weight: 850;
  padding: 5px 8px;
}

.td-published-state.neutral { background: #eef2f6; color: #617286; }

body.is-teacher-dashboard .td-asset-row > a {
  color: #2469a9;
  font-size: 9px;
  font-weight: 820;
  text-decoration: none;
}

.td-summary-strip {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 4px 0;
}

body.is-teacher-dashboard .td-summary-strip article {
  border: 0;
  border-right: 1px solid #e3e9ef;
  display: grid;
  gap: 4px;
  padding: 16px 22px;
}

body.is-teacher-dashboard .td-summary-strip article:last-child { border-right: 0; }
body.is-teacher-dashboard .td-summary-strip span { color: var(--td-muted); font-size: 9px; font-weight: 760; }
body.is-teacher-dashboard .td-summary-strip strong { color: var(--td-ink); font-size: 24px; }

body.is-teacher-dashboard .td-table-card .teacher-student-table {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body.is-teacher-dashboard .teacher-student-row {
  align-items: center;
  border-bottom: 1px solid #e8edf2;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  min-height: 64px;
  padding: 10px 4px;
}

body.is-teacher-dashboard .teacher-student-row.head {
  background: #f6f8fb;
  border-radius: 9px;
  color: #6d7c8d;
  font-size: 9px;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 11px;
  text-transform: uppercase;
}

body.is-teacher-dashboard .teacher-student-row > span:first-child { display: grid; gap: 3px; }
body.is-teacher-dashboard .teacher-student-row strong { font-size: 10px; }
body.is-teacher-dashboard .teacher-student-row small,
body.is-teacher-dashboard .teacher-student-row > span { color: var(--td-muted); font-size: 9px; }

body.is-teacher-dashboard .mini-progress {
  background: #e4ebf2;
  border-radius: 999px;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
}

body.is-teacher-dashboard .mini-progress span {
  background: #367ec3;
  display: block;
  height: 100%;
  width: var(--progress, 0%);
}

body.is-teacher-dashboard .student-risk {
  border-radius: 999px;
  display: inline-block;
  font-size: 8px;
  font-weight: 850;
  padding: 5px 8px;
}

body.is-teacher-dashboard .student-risk.ok { background: #e8f6f0; color: #13785e; }
body.is-teacher-dashboard .student-risk.risk { background: #fff1df; color: #a76614; }

.td-question-shell {
  padding-bottom: 4px;
}

body.is-teacher-dashboard .teacher-question-card {
  border-top: 0;
  border-bottom: 1px solid #e5ebf1;
  display: grid;
  gap: 13px;
  padding: 18px 2px;
}

body.is-teacher-dashboard .teacher-question-card:last-child { border-bottom: 0; }

body.is-teacher-dashboard .teacher-question-card > header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

body.is-teacher-dashboard .teacher-question-card header strong { color: var(--td-ink); font-size: 13px; }
body.is-teacher-dashboard .teacher-question-card header small,
body.is-teacher-dashboard .teacher-question-card > p { color: var(--td-muted); font-size: 9px; line-height: 1.55; }

body.is-teacher-dashboard .teacher-question-answer,
body.is-teacher-dashboard .teacher-question-answer-form {
  background: #f3f7fb;
  border: 0;
  border-left: 3px solid #3b83c8;
  border-radius: 0 10px 10px 0;
  padding: 13px;
}

body.is-teacher-dashboard .teacher-question-answer-form textarea {
  background: #fff;
  border: 1px solid #d4e0eb;
  border-radius: 8px;
  color: var(--td-ink);
  font: inherit;
  padding: 9px;
  resize: vertical;
  width: 100%;
}

.td-assessment-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(430px, 1.28fr);
}

.td-assignment-composer:not([open]) {
  display: none;
}

.td-assignment-composer > summary {
  color: var(--td-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 15px;
}

body.is-teacher-dashboard .teacher-assignment-list {
  display: grid;
  gap: 10px;
}

body.is-teacher-dashboard .teacher-assignment-card {
  background: #f9fbfd;
  border: 1px solid #e0e8f0;
  border-radius: 11px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

body.is-teacher-dashboard .teacher-assignment-card h3 { color: var(--td-ink); font-size: 12px; margin: 0; }
body.is-teacher-dashboard .teacher-assignment-card p,
body.is-teacher-dashboard .teacher-assignment-card small { color: var(--td-muted); font-size: 9px; line-height: 1.5; margin: 0; }

.td-live-control {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  margin-bottom: 17px;
  overflow: hidden;
  padding: 0;
}

.td-live-control-main {
  display: grid;
  gap: 12px;
  padding: 30px;
}

.td-live-control-main .td-live-kicker { color: #1c7a62; }
.td-live-control-main h2 { color: var(--td-ink); font-size: 25px; letter-spacing: -0.025em; margin: 0; }
.td-live-control-main > p { color: var(--td-muted); font-size: 11px; margin: 0; }

body.is-teacher-dashboard .td-live-details {
  border-bottom: 1px solid #e5ebf1;
  border-top: 1px solid #e5ebf1;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 5px 0;
  padding: 14px 0;
}

body.is-teacher-dashboard .td-live-details > div { border-right: 1px solid #e4eaf0; display: grid; gap: 4px; padding: 0 13px; }
body.is-teacher-dashboard .td-live-details > div:first-child { padding-left: 0; }
body.is-teacher-dashboard .td-live-details > div:last-child { border-right: 0; }
body.is-teacher-dashboard .td-live-details dt { color: var(--td-muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
body.is-teacher-dashboard .td-live-details dd { color: var(--td-ink); font-size: 10px; font-weight: 760; margin: 0; }

.td-live-control-main > .td-primary-action { justify-self: start; min-width: 170px; }

.td-recording-promise {
  background:
    radial-gradient(circle at 90% 0%, rgba(74, 145, 219, 0.24), transparent 40%),
    linear-gradient(150deg, #112a4b, #0b1b31);
  color: #fff;
  display: grid;
  gap: 14px;
  padding: 27px;
}

.td-recording-orbit {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
}

.td-recording-orbit > i {
  animation: td-orbit 2s infinite;
  border: 1px solid rgba(103, 211, 181, 0.5);
  border-radius: 50%;
  inset: -5px;
  position: absolute;
}

@keyframes td-orbit {
  50% { inset: -10px; opacity: 0; }
}

.td-recording-orbit svg { fill: none; height: 24px; stroke: #71ddbf; stroke-width: 1.8; width: 24px; }
.td-recording-promise > div { display: grid; gap: 6px; }
.td-recording-promise .td-eyebrow { color: #76b5ef; }
.td-recording-promise h3 { color: #fff; font-size: 18px; margin: 0; }
.td-recording-promise p { color: #b8c9da; font-size: 9px; line-height: 1.55; margin: 0; }

.td-recording-promise ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.td-recording-promise li {
  align-items: center;
  display: flex;
  gap: 9px;
}

.td-recording-promise li > b {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  color: #7eddbf;
  display: inline-flex;
  font-size: 8px;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.td-recording-promise li > span { display: grid; gap: 2px; }
.td-recording-promise li strong { font-size: 9px; }
.td-recording-promise li small { color: #9fb2c6; font-size: 8px; }
.td-recording-promise .teacher-message { color: #84e3c8; }

.td-live-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
}

body.is-teacher-dashboard .teacher-session-history {
  border-top: 1px solid var(--td-line);
  gap: 0;
  padding-top: 20px;
}

body.is-teacher-dashboard .teacher-session-history > [data-teacher-sessions] {
  display: grid;
}

body.is-teacher-dashboard .td-session-row {
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid #e7edf3;
  display: grid;
  gap: 10px;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  padding: 12px 0;
}

body.is-teacher-dashboard .td-session-row:last-child { border-bottom: 0; }

.td-session-dot {
  background: #93a5b7;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.td-session-dot.is-live { animation: td-live-pulse 1.7s infinite; background: #e34c62; }
.td-session-dot.is-scheduled { background: #3d82c5; }
.td-session-dot.is-completed { background: #35a07d; }

.td-session-copy { display: grid; gap: 3px; min-width: 0; }
.td-session-copy strong { color: var(--td-ink); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-session-copy small { color: var(--td-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-session-video {
  color: #77889a;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.td-session-video.is-ready { color: #168062; }

body.is-teacher-dashboard .td-recording-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.empty-state {
  align-items: center;
  color: var(--td-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  text-align: center;
}

.empty-state strong { color: var(--td-ink); font-size: 12px; }
.empty-state p { font-size: 9px; line-height: 1.5; margin: 5px 0 0; }

@media (max-width: 1220px) {
  body.is-teacher-dashboard .td-workspace {
    gap: 20px;
    grid-template-columns: 228px minmax(0, 1fr);
  }

  body.is-teacher-dashboard .td-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-material-layout,
  .td-assessment-layout,
  .td-live-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  body.is-teacher-dashboard .topbar {
    grid-template-areas: "context actions";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.is-teacher-dashboard .brand-button {
    display: none;
  }

  body.is-teacher-dashboard .learning-main {
    padding: 18px 18px 44px;
  }

  body.is-teacher-dashboard .td-workspace {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.is-teacher-dashboard .teacher-view,
  body.is-teacher-dashboard .td-main,
  body.is-teacher-dashboard .td-panel {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.is-teacher-dashboard .teacher-course-context {
    grid-area: context;
  }

  body.is-teacher-dashboard .topbar-actions {
    grid-area: actions;
  }

  body.is-teacher-dashboard .td-sidebar {
    border-radius: 15px;
    display: block;
    margin-bottom: 20px;
    min-height: 0;
    padding: 10px;
    position: relative;
    top: auto;
  }

  body.is-teacher-dashboard .td-sidebar::after {
    background: linear-gradient(90deg, rgba(12, 27, 49, 0), var(--td-navy));
    bottom: 10px;
    content: "";
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    z-index: 2;
  }

  .td-sidebar-course,
  .td-sidebar-note {
    display: none;
  }

  body.is-teacher-dashboard .td-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.is-teacher-dashboard .td-nav::-webkit-scrollbar { display: none; }

  body.is-teacher-dashboard .td-nav button {
    flex: 0 0 auto;
    grid-template-columns: 18px auto auto;
    min-height: 42px;
    padding: 8px 11px;
    width: auto;
  }

  .td-live-control {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.is-teacher-dashboard .topbar {
    min-height: 68px;
    padding: 0 12px;
  }

  body.is-teacher-dashboard .teacher-course-thumb,
  body.is-teacher-dashboard .teacher-course-state,
  body.is-teacher-dashboard .teacher-course-copy small:last-child,
  body.is-teacher-dashboard .topbar-help-button,
  body.is-teacher-dashboard .topbar-language-button,
  body.is-teacher-dashboard .profile-chip b {
    display: none;
  }

  body.is-teacher-dashboard .teacher-course-context { gap: 8px; }
  body.is-teacher-dashboard .teacher-course-copy > strong { font-size: 12px; max-width: 43vw; }

  body.is-teacher-dashboard .learning-main {
    padding: 14px 12px 36px;
  }

  .td-page-head {
    align-items: stretch;
    display: grid;
    gap: 13px;
  }

  .td-page-head h1 { font-size: 27px; }

  .td-ghost-link,
  .td-readonly-chip,
  .td-search {
    justify-self: stretch;
    width: 100%;
  }

  .td-next-class {
    gap: 14px;
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 20px;
  }

  .td-live-date { height: 84px; }
  .td-live-date strong { font-size: 30px; }
  .td-next-class > .td-primary-action { grid-column: 1 / -1; width: 100%; }

  .td-dashboard-grid,
  .td-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .td-upload-card,
  .td-program-card,
  .td-library-card,
  .td-table-card,
  .td-question-shell,
  .td-assignment-composer,
  .teacher-assignment-list-wrap,
  .teacher-session-history,
  .td-recording-library {
    padding: 15px;
  }

  .td-live-control-main,
  .td-recording-promise {
    padding: 21px;
  }

  body.is-teacher-dashboard .td-live-details {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-teacher-dashboard .td-live-details > div,
  body.is-teacher-dashboard .td-live-details > div:first-child {
    border-bottom: 1px solid #e4eaf0;
    border-right: 0;
    padding: 9px 0;
  }

  body.is-teacher-dashboard .td-live-details > div:last-child { border-bottom: 0; }

  body.is-teacher-dashboard .teacher-student-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.is-teacher-dashboard .teacher-student-table,
  body.is-teacher-dashboard .teacher-student-row {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.is-teacher-dashboard .teacher-student-row.head { display: none; }
  body.is-teacher-dashboard .teacher-student-row > span:nth-child(2) { display: none; }

  body.is-teacher-dashboard .teacher-student-row > span:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.is-teacher-dashboard .teacher-question-card > header { display: grid; }

  body.is-teacher-dashboard .td-session-row {
    grid-template-columns: 9px minmax(0, 1fr) auto;
  }

  .td-session-video { grid-column: 2 / -1; }
}

@media (max-width: 480px) {
  body.is-teacher-dashboard .td-metrics {
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-teacher-dashboard .td-metrics article {
    align-items: flex-start;
    flex-direction: column;
    min-height: 126px;
    padding: 14px;
  }

  .td-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-teacher-dashboard .td-summary-strip article {
    border-bottom: 1px solid #e3e9ef;
    border-right: 0;
  }

  body.is-teacher-dashboard .td-summary-strip article:last-child { border-bottom: 0; }

  body.is-teacher-dashboard .td-asset-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .td-published-state { display: none; }
  .td-lesson-row { grid-template-columns: 26px minmax(0, 1fr); }
  .td-lesson-row button { grid-column: 2; justify-self: start; }
}

/* Centro docente v4: continuidad con la cabecera publica y programa editable. */
.teacher-primary-nav {
  display: none;
}

body.is-teacher-dashboard {
  --td-header-height: 80px;
  --td-sidebar-width: 268px;
  overflow-x: hidden;
}

body.is-teacher-dashboard .learning-shell {
  min-width: 0;
}

body.is-teacher-dashboard .learning-shell > .topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.99);
  border-bottom: 1px solid #dce5ee;
  box-shadow: 0 1px 0 rgba(22, 65, 148, 0.025);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(176px, 1fr) auto minmax(176px, 1fr);
  height: var(--td-header-height);
  inset: 0 0 auto;
  min-height: var(--td-header-height);
  padding: 8px clamp(20px, 3vw, 48px);
  position: fixed;
  width: 100%;
  z-index: 90;
}

body.is-teacher-dashboard .brand-button {
  border: 0;
  display: inline-flex;
  gap: 11px;
  justify-self: start;
  margin: 0;
  min-width: 0;
  padding: 0;
}

body.is-teacher-dashboard .brand-button .brand-mark {
  border-radius: 10px;
  flex: 0 0 42px;
  height: 42px;
  width: 42px;
}

body.is-teacher-dashboard .campus-brand-copy {
  display: grid;
  gap: 1px;
}

body.is-teacher-dashboard .campus-brand-wordmark {
  height: 18px;
  width: auto;
}

body.is-teacher-dashboard .brand-button small {
  color: #647487;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

body.is-teacher-dashboard .teacher-course-context {
  display: none !important;
}

body.is-teacher-dashboard .teacher-primary-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

body.is-teacher-dashboard .teacher-primary-nav a {
  border-radius: 8px;
  color: #556575;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  min-height: 38px;
  padding: 13px 14px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

body.is-teacher-dashboard .teacher-primary-nav a:hover {
  background: #f1f6fb;
  color: #164194;
}

body.is-teacher-dashboard .teacher-primary-nav a.active {
  background: #164194;
  color: #ffffff;
}

body.is-teacher-dashboard .topbar-actions {
  gap: 8px;
  justify-self: end;
}

body.is-teacher-dashboard .topbar-icon-button,
body.is-teacher-dashboard .profile-chip {
  border-color: #d4dfeb;
  border-radius: 8px;
  color: #164194;
}

body.is-teacher-dashboard .topbar-icon-button {
  height: 42px;
  width: 42px;
}

body.is-teacher-dashboard .profile-chip {
  height: 44px;
  padding: 5px 10px 5px 5px;
}

body.is-teacher-dashboard .profile-chip > span:first-child {
  border-radius: 6px;
}

body.is-teacher-dashboard .learning-main {
  margin: 0;
  max-width: none;
  min-height: 100vh;
  min-width: 0;
  padding: calc(var(--td-header-height) + 28px) clamp(24px, 2.6vw, 42px) 60px calc(var(--td-sidebar-width) + clamp(24px, 2.6vw, 42px));
  width: 100%;
}

body.is-teacher-dashboard .td-workspace {
  display: block;
  margin: 0;
  max-width: none;
  min-width: 0;
  width: 100%;
}

body.is-teacher-dashboard .td-sidebar {
  background:
    radial-gradient(circle at 8% 0%, rgba(57, 151, 211, 0.22), transparent 31%),
    linear-gradient(158deg, #142b49, #0c1b31 72%);
  border-radius: 0;
  bottom: 0;
  box-shadow: 10px 0 28px rgba(12, 27, 49, 0.09);
  gap: 18px;
  left: 0;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 14px 24px;
  position: fixed;
  scrollbar-color: rgba(143, 177, 211, 0.45) transparent;
  scrollbar-width: thin;
  top: var(--td-header-height);
  width: var(--td-sidebar-width);
  z-index: 45;
}

body.is-teacher-dashboard .td-sidebar::-webkit-scrollbar {
  width: 6px;
}

body.is-teacher-dashboard .td-sidebar::-webkit-scrollbar-thumb {
  background: rgba(143, 177, 211, 0.42);
  border-radius: 999px;
}

body.is-teacher-dashboard .td-main {
  margin: 0 auto;
  max-width: 1380px;
  min-width: 0;
  width: 100%;
}

body.is-teacher-dashboard .td-sidebar-note {
  flex: 0 0 auto;
  margin-top: 2px;
}

body.is-teacher-dashboard .td-sidebar-outline {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
  padding: 17px 5px 0;
}

body.is-teacher-dashboard .td-sidebar-outline > header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

body.is-teacher-dashboard .td-sidebar-outline > header span {
  color: #7fb8ef;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.is-teacher-dashboard .td-sidebar-outline > header small {
  color: #9fb1c6;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

body.is-teacher-dashboard [data-teacher-sidebar-outline] {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.is-teacher-dashboard .td-sidebar-module {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

body.is-teacher-dashboard .td-sidebar-module > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  list-style: none;
  min-height: 42px;
  padding: 7px 8px;
}

body.is-teacher-dashboard .td-sidebar-module > summary::-webkit-details-marker {
  display: none;
}

body.is-teacher-dashboard .td-sidebar-module > summary > span {
  align-items: center;
  background: rgba(63, 143, 222, 0.18);
  border-radius: 7px;
  color: #8cc7ff;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
}

body.is-teacher-dashboard .td-sidebar-module > summary > strong {
  color: #e9f1f9;
  font-size: 10px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .td-sidebar-module > summary > small {
  color: #91a8bf;
  font-size: 8px;
  font-weight: 800;
}

body.is-teacher-dashboard .td-sidebar-module > div {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  display: grid;
  gap: 3px;
  padding: 5px;
}

body.is-teacher-dashboard .td-sidebar-module > div > button:not(.td-sidebar-add-lesson) {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #b8c7d8;
  display: grid;
  gap: 7px;
  grid-template-columns: 19px minmax(0, 1fr);
  min-height: 38px;
  padding: 5px 6px;
  text-align: left;
  width: 100%;
}

body.is-teacher-dashboard .td-sidebar-module > div > button:not(.td-sidebar-add-lesson):hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

body.is-teacher-dashboard .td-sidebar-module > div > button:not(.td-sidebar-add-lesson) > span:first-child {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  font-size: 7px;
  height: 19px;
  justify-content: center;
}

body.is-teacher-dashboard .td-sidebar-module > div > button:not(.td-sidebar-add-lesson) > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.is-teacher-dashboard .td-sidebar-module button strong,
body.is-teacher-dashboard .td-sidebar-module button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .td-sidebar-module button strong {
  font-size: 9px;
}

body.is-teacher-dashboard .td-sidebar-module button small,
body.is-teacher-dashboard .td-sidebar-module > div > p {
  color: #8fa3b8;
  font-size: 8px;
  line-height: 1.4;
  margin: 0;
}

body.is-teacher-dashboard .td-sidebar-module > div > p {
  padding: 8px;
}

body.is-teacher-dashboard .td-sidebar-add-lesson,
body.is-teacher-dashboard .td-sidebar-new-module,
body.is-teacher-dashboard .td-sidebar-outline-empty button {
  background: transparent;
  border: 1px dashed rgba(130, 185, 235, 0.38);
  border-radius: 8px;
  color: #8fc7fa;
  font-size: 9px;
  font-weight: 820;
  min-height: 32px;
  padding: 6px 8px;
  text-align: center;
  width: 100%;
}

body.is-teacher-dashboard .td-sidebar-add-lesson:hover,
body.is-teacher-dashboard .td-sidebar-new-module:hover,
body.is-teacher-dashboard .td-sidebar-outline-empty button:hover {
  background: rgba(77, 151, 221, 0.12);
  border-color: rgba(130, 185, 235, 0.65);
  color: #ffffff;
}

body.is-teacher-dashboard .td-sidebar-outline-empty {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  padding: 9px;
}

body.is-teacher-dashboard .td-sidebar-outline-empty p {
  color: #aabacc;
  font-size: 9px;
  line-height: 1.45;
  margin: 0;
}

body.is-teacher-dashboard .td-program-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.72fr);
  margin-bottom: 18px;
  min-width: 0;
}

body.is-teacher-dashboard .td-program-card,
body.is-teacher-dashboard .td-upload-card {
  min-width: 0;
}

body.is-teacher-dashboard .td-program-card > header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

body.is-teacher-dashboard .td-program-card > header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.is-teacher-dashboard .td-program-card > .td-helper-copy {
  background: #f5f8fc;
  border-left: 3px solid #7eacd8;
  border-radius: 0 8px 8px 0;
  margin: 0 0 15px;
  padding: 9px 11px;
}

body.is-teacher-dashboard .td-structure-composer {
  background: #f7faff;
  border: 1px solid #cfdfee;
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(22, 65, 100, 0.055);
  margin: 0 0 13px;
  padding: 15px;
}

body.is-teacher-dashboard .td-structure-composer form {
  display: grid;
  gap: 11px;
}

body.is-teacher-dashboard .td-structure-composer form > header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

body.is-teacher-dashboard .td-structure-composer form > header > div {
  display: grid;
  gap: 2px;
}

body.is-teacher-dashboard .td-structure-composer form > header span,
body.is-teacher-dashboard .td-structure-composer label > span {
  color: #52677c;
  font-size: 9px;
  font-weight: 790;
}

body.is-teacher-dashboard .td-structure-composer form > header strong {
  color: var(--td-ink);
  font-size: 12px;
}

body.is-teacher-dashboard .td-structure-composer form > header > button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d2deea;
  border-radius: 50%;
  color: #5e7185;
  display: inline-flex;
  font-size: 18px;
  height: 31px;
  justify-content: center;
  width: 31px;
}

body.is-teacher-dashboard .td-structure-composer label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.is-teacher-dashboard .td-structure-composer input,
body.is-teacher-dashboard .td-structure-composer select {
  background: #ffffff;
  border: 1px solid #cfdae6;
  border-radius: 9px;
  color: var(--td-ink);
  font: inherit;
  min-height: 41px;
  min-width: 0;
  outline: 0;
  padding: 9px 11px;
  width: 100%;
}

body.is-teacher-dashboard .td-structure-composer input:focus,
body.is-teacher-dashboard .td-structure-composer select:focus {
  border-color: #6d9fce;
  box-shadow: 0 0 0 3px rgba(35, 111, 193, 0.11);
}

body.is-teacher-dashboard [data-teacher-module-form] > div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

body.is-teacher-dashboard [data-teacher-module-form] > div > button:not(.td-primary-action) {
  background: #ffffff;
  border: 1px solid #ccd9e5;
  border-radius: 9px;
  color: #526a81;
  font-size: 10px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 13px;
}

body.is-teacher-dashboard .td-module-actions {
  align-items: center;
  background: #f5f8fc;
  border-top: 1px solid #e0e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 13px;
}

body.is-teacher-dashboard .td-module-actions p {
  color: #728195;
  font-size: 9px;
  line-height: 1.45;
  margin: 0;
}

body.is-teacher-dashboard .td-module-actions button,
body.is-teacher-dashboard .td-empty-lessons button {
  background: #ffffff;
  border: 1px solid #aec7de;
  border-radius: 8px;
  color: #225f9b;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 850;
  min-height: 33px;
  padding: 6px 10px;
}

body.is-teacher-dashboard .td-module-actions button:hover,
body.is-teacher-dashboard .td-empty-lessons button:hover {
  background: #edf6ff;
  border-color: #7ca8d0;
}

body.is-teacher-dashboard .td-lesson-row {
  align-items: start;
  min-width: 0;
  padding: 11px 3px;
}

body.is-teacher-dashboard .td-lesson-copy {
  min-width: 0;
}

body.is-teacher-dashboard .td-lesson-files {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  min-width: 0;
}

body.is-teacher-dashboard .td-lesson-files span,
body.is-teacher-dashboard .td-lesson-files em {
  background: #eef4fa;
  border-radius: 999px;
  color: #55718b;
  display: inline-block;
  font-size: 8px;
  font-style: normal;
  max-width: 180px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-teacher-dashboard .td-lesson-empty {
  color: #8796a6;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

body.is-teacher-dashboard .td-empty-lessons {
  align-items: center;
  background: #fbfcfe;
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 16px;
}

body.is-teacher-dashboard .td-empty-lessons strong {
  color: var(--td-ink);
  font-size: 11px;
}

body.is-teacher-dashboard .td-empty-lessons p {
  color: var(--td-muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 0 0 4px;
}

body.is-teacher-dashboard .td-live-guide {
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 16px;
  overflow: hidden;
  padding: 0;
}

body.is-teacher-dashboard .td-live-guide li {
  align-items: center;
  border-right: 1px solid #e3eaf1;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
}

body.is-teacher-dashboard .td-live-guide li:last-child {
  border-right: 0;
}

body.is-teacher-dashboard .td-live-guide li > b {
  align-items: center;
  background: #eaf3fc;
  border-radius: 50%;
  color: #236fc1;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 10px;
  height: 30px;
  justify-content: center;
}

body.is-teacher-dashboard .td-live-guide li > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.is-teacher-dashboard .td-live-guide strong {
  color: var(--td-ink);
  font-size: 10px;
}

body.is-teacher-dashboard .td-live-guide small {
  color: var(--td-muted);
  font-size: 8px;
  line-height: 1.4;
}

body.is-teacher-dashboard .td-recording-promise ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.is-teacher-dashboard .td-recording-promise ul li {
  align-items: flex-start;
  color: #c3d1df;
  display: flex;
  font-size: 9px;
  gap: 8px;
  line-height: 1.45;
}

body.is-teacher-dashboard .td-recording-promise ul li > span {
  align-items: center;
  background: rgba(113, 221, 191, 0.12);
  border-radius: 50%;
  color: #7eddbf;
  display: inline-flex;
  flex: 0 0 20px;
  font-size: 9px;
  height: 20px;
  justify-content: center;
}

body.is-teacher-dashboard .td-session-row button {
  min-height: 36px;
  min-width: 92px;
  white-space: nowrap;
}

.meeting-workspace.is-meeting-preview .meeting-controlbar {
  display: none;
}

@media (max-width: 1220px) {
  body.is-teacher-dashboard .teacher-primary-nav {
    gap: 1px;
  }

  body.is-teacher-dashboard .teacher-primary-nav a {
    font-size: 10px;
    padding-left: 9px;
    padding-right: 9px;
  }

  body.is-teacher-dashboard .td-program-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  body.is-teacher-dashboard {
    --td-header-height: 68px;
  }

  body.is-teacher-dashboard .learning-shell > .topbar {
    gap: 12px;
    grid-template-areas: "brand actions";
    grid-template-columns: minmax(0, 1fr) auto;
    height: var(--td-header-height);
    min-height: var(--td-header-height);
    padding: 7px 16px;
  }

  body.is-teacher-dashboard .brand-button {
    grid-area: brand;
  }

  body.is-teacher-dashboard .teacher-primary-nav {
    display: none !important;
  }

  body.is-teacher-dashboard .topbar-actions {
    grid-area: actions;
  }

  body.is-teacher-dashboard .learning-main {
    padding: calc(var(--td-header-height) + 18px) 18px 44px;
  }

  body.is-teacher-dashboard .td-sidebar {
    border-radius: 14px;
    bottom: auto;
    box-shadow: 0 12px 26px rgba(12, 27, 49, 0.12);
    display: block;
    left: auto;
    margin: 0 0 20px;
    max-height: none;
    overflow: hidden;
    padding: 10px;
    position: relative;
    top: auto;
    width: 100%;
  }

  body.is-teacher-dashboard .td-sidebar::after {
    background: linear-gradient(90deg, rgba(12, 27, 49, 0), #0c1b31);
  }

  body.is-teacher-dashboard .td-sidebar-course,
  body.is-teacher-dashboard .td-sidebar-note,
  body.is-teacher-dashboard .td-sidebar-outline {
    display: none;
  }

  body.is-teacher-dashboard .td-nav {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-right: 20px;
    scrollbar-width: none;
  }

  body.is-teacher-dashboard .td-nav button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  body.is-teacher-dashboard .td-main {
    max-width: 100%;
  }

  .meeting-workspace.is-panel-closed > .meeting-side-panel {
    display: none !important;
  }
}

@media (max-width: 720px) {
  body.is-teacher-dashboard .learning-shell > .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.is-teacher-dashboard .brand-button {
    display: inline-flex;
  }

  body.is-teacher-dashboard .learning-main {
    padding: calc(var(--td-header-height) + 14px) 12px 36px;
  }

  body.is-teacher-dashboard .td-live-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-teacher-dashboard .td-live-guide li,
  body.is-teacher-dashboard .td-live-guide li:last-child {
    border-bottom: 1px solid #e3eaf1;
    border-right: 0;
    padding: 12px 14px;
  }

  body.is-teacher-dashboard .td-live-guide li:last-child {
    border-bottom: 0;
  }

  body.is-teacher-dashboard .td-program-card,
  body.is-teacher-dashboard .td-upload-card {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  body.is-teacher-dashboard .brand-button .brand-mark {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
  }

  body.is-teacher-dashboard .campus-brand-wordmark {
    height: 16px;
    max-width: 82px;
  }

  body.is-teacher-dashboard .brand-button small {
    display: none;
  }

  body.is-teacher-dashboard .topbar-actions {
    gap: 5px;
  }

  body.is-teacher-dashboard .profile-chip {
    min-width: 42px;
    padding: 5px;
  }

  body.is-teacher-dashboard .td-module-actions {
    align-items: stretch;
    display: grid;
  }

  body.is-teacher-dashboard .td-module-actions button {
    justify-self: start;
  }

  body.is-teacher-dashboard .td-lesson-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  body.is-teacher-dashboard .td-lesson-row > button {
    grid-column: 2;
    justify-self: start;
  }

  body.is-teacher-dashboard [data-teacher-module-form] > div {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  body.is-teacher-dashboard [data-teacher-module-form] > div > button {
    width: 100%;
  }
}

/* Cierre de especificidad: las capas antiguas del campus declaraban la topbar como sticky. */
body.is-teacher-dashboard:not(.is-course-player):not(.is-live-workspace) .learning-shell > .topbar {
  position: fixed;
  top: 0;
}

body.is-teacher-dashboard:not(.is-course-player):not(.is-live-workspace) .teacher-course-panel.td-sidebar {
  align-self: auto;
  bottom: auto;
  box-sizing: border-box;
  height: calc(100dvh - var(--td-header-height));
  left: 0;
  margin: 0;
  max-height: calc(100dvh - var(--td-header-height));
  min-height: 0;
  overflow-y: auto;
  position: fixed;
  top: var(--td-header-height);
  transform: none;
}

@media (max-width: 980px) {
  body.is-teacher-dashboard:not(.is-course-player):not(.is-live-workspace) .teacher-course-panel.td-sidebar {
    bottom: auto;
    height: auto;
    left: auto;
    margin: 0 0 20px;
    max-height: none;
    overflow-y: hidden;
    position: relative;
    top: auto;
  }
}
/* Recuperación de acceso */
.auth-recovery-link {
  margin: -0.15rem 0 0.75rem;
  text-align: center;
}

.auth-recovery-link button {
  border: 0;
  background: transparent;
  color: #164194;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-recovery-dialog {
  width: min(92vw, 440px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: #18202a;
  box-shadow: 0 24px 80px rgb(12 28 55 / 24%);
}

.auth-recovery-dialog::backdrop {
  background: rgb(12 28 55 / 58%);
  backdrop-filter: blur(3px);
}

.auth-recovery-dialog form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.auth-recovery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-recovery-head span {
  color: #5e6b7b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-recovery-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.auth-recovery-head > button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #26364a;
  font-size: 1.35rem;
  cursor: pointer;
}

.auth-recovery-dialog label,
.auth-recovery-code {
  display: grid;
  gap: 0.5rem;
}

.auth-recovery-code {
  gap: 0.9rem;
}

.auth-recovery-dialog input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd4df;
  border-radius: 10px;
  padding: 0 0.85rem;
  font: inherit;
}

.auth-recovery-dialog [type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #164194;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
