/* Presentaciones locales de la pizarra. Todos los selectores están aislados. */
#course-presentation-button {
  display:flex; align-items:center; justify-content:center; padding:0; border:0;
  background:transparent; color:#7c3aed; cursor:pointer;
}
#course-presentation-button .material-symbols-rounded { font-size:28px; }
.course-presentation-editor {
  position:fixed; inset:0; z-index:120000; display:grid; place-items:center; padding:22px;
  background:rgba(15,23,42,.72); backdrop-filter:blur(8px); color:#24231f;
}
.course-presentation-editor-dialog {
  width:min(1380px,97vw); max-height:94vh; display:flex; flex-direction:column; overflow:hidden;
  border:4px solid #24231f; border-radius:18px; background:#fff9ec; box-shadow:12px 12px 0 #24231f;
}
.course-presentation-editor-header {
  display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:16px 20px;
  border-bottom:4px solid #24231f; background:#c4b5fd;
}
.course-presentation-editor-header > div { display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; }
.course-presentation-editor-header h2 { margin:0; font:900 1.45rem 'Baloo 2','Nunito',sans-serif; }
.course-presentation-editor-header p { grid-column:2; margin:1px 0 0; font-size:.8rem; font-weight:800; }
.course-presentation-local-badge { grid-row:1/3; padding:5px 8px; border:2px solid #24231f; border-radius:7px; background:#78c98b; font-weight:1000; }
.course-presentation-editor-body {
  display:grid; grid-template-columns:210px minmax(280px,390px) minmax(420px,1fr); min-height:0; overflow:auto;
}
.course-presentation-organizer { padding:14px; border-right:3px solid #24231f; background:#fff3c4; }
.course-presentation-slide-list { display:flex; max-height:58vh; flex-direction:column; gap:9px; overflow:auto; padding:2px 7px 9px 2px; }
.course-presentation-slide-card {
  display:grid; grid-template-columns:34px 1fr; align-items:center; gap:8px; width:100%; min-height:54px; padding:7px;
  border:3px solid #24231f; border-radius:10px; background:#fff; color:#24231f; text-align:left; cursor:pointer;
  box-shadow:3px 3px 0 #24231f;
}
.course-presentation-slide-card strong { display:grid; width:31px; height:31px; place-items:center; border:2px solid #24231f; border-radius:50%; background:#ffd84d; }
.course-presentation-slide-card span { overflow:hidden; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
.course-presentation-slide-card.active { background:#c4b5fd; transform:translate(2px,2px); box-shadow:1px 1px 0 #24231f; }
.course-presentation-add,
.course-presentation-editor button,
.course-presentation-image-upload {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:7px 11px;
  border:2px solid #24231f; border-radius:9px; background:#fff; color:#24231f; font-weight:900; cursor:pointer;
  box-shadow:2px 2px 0 #24231f;
}
.course-presentation-add { width:100%; margin-top:12px; background:#78c98b; }
.course-presentation-clear-all { width:100%; margin-top:10px; background:#ffd1ca !important; font-size:.72rem; }
.course-presentation-form { display:flex; min-width:0; flex-direction:column; gap:10px; padding:15px; border-right:3px solid #24231f; }
.course-presentation-form label { display:flex; flex-direction:column; gap:4px; font-size:.8rem; font-weight:1000; }
.course-presentation-form label small { font-weight:700; color:#555249; }
.course-presentation-form input[type="text"],
.course-presentation-form input[type="url"],
.course-presentation-form select,
.course-presentation-form textarea {
  width:100%; box-sizing:border-box; padding:9px 10px; border:3px solid #24231f; border-radius:8px;
  background:#fff; color:#24231f; font:700 .92rem 'Nunito',sans-serif; resize:vertical; outline:none;
}
.course-presentation-form input:focus,
.course-presentation-form textarea:focus { box-shadow:0 0 0 3px #c4b5fd; }
.course-presentation-order-actions { display:flex; gap:7px; }
.course-presentation-order-actions button { min-width:40px; min-height:36px; padding:5px 8px; }
.course-presentation-order-actions .danger { margin-left:auto; background:#ff8b78; }
.course-presentation-editor button:disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }
.course-presentation-color-row { display:flex; gap:12px; }
.course-presentation-color-row label { flex:1; }
.course-presentation-color-row input { width:100%; height:38px; padding:2px; border:3px solid #24231f; border-radius:8px; background:#fff; cursor:pointer; }
.course-presentation-image-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.course-presentation-url-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.course-presentation-url-row button { white-space:nowrap; }
.course-presentation-framing { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:8px; padding:9px; border:2px solid #24231f; border-radius:10px; background:#fff9ec; }
.course-presentation-framing label { justify-content:space-between; font-size:.7rem; }
.course-presentation-framing input[type="range"] { width:100%; accent-color:#7c3aed; cursor:pointer; }
.course-presentation-json-tools { padding:8px 10px; border:3px solid #24231f; border-radius:10px; background:#fff; }
.course-presentation-json-tools summary { display:flex; align-items:center; gap:6px; font-size:.8rem; font-weight:1000; cursor:pointer; list-style:none; }
.course-presentation-json-tools summary::-webkit-details-marker { display:none; }
.course-presentation-json-tools[open] summary { margin-bottom:9px; }
.course-presentation-json-tools textarea { min-height:130px; font-family:Consolas,'Courier New',monospace; font-size:.75rem; line-height:1.35; }
.course-presentation-json-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
.course-presentation-json-actions .primary { background:#78c98b; }
.course-presentation-json-tools > small { display:block; margin-top:7px; color:#555249; font-size:.7rem; font-weight:800; }
.course-presentation-image-upload { background:#c4b5fd; }
#course-presentation-image-name { max-width:100%; overflow:hidden; color:#555249; font-size:.75rem; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.course-presentation-status { min-height:1.1em; margin:0; color:#047857; font-size:.75rem; font-weight:900; }
.course-presentation-status.error { color:#b91c1c; }
.course-presentation-preview-wrap { display:flex; min-width:0; flex-direction:column; gap:8px; padding:15px; background:#dff3ff; }
.course-presentation-preview-wrap > strong { font:900 .9rem 'Baloo 2','Nunito',sans-serif; }
.course-presentation-preview { flex:1; min-height:360px; border:4px solid #24231f; border-radius:12px; box-shadow:7px 7px 0 #24231f; }
.course-presentation-editor-footer { display:flex; justify-content:flex-end; gap:10px; padding:12px 18px; border-top:4px solid #24231f; background:#fff; }
.course-presentation-editor-footer .primary { background:#78c98b; }

.course-presentation-stage {
  position:absolute; inset:0; z-index:7; display:flex; flex-direction:column; overflow:hidden; background:#24231f;
}
.course-presentation-stage[hidden] { display:none !important; }
.course-presentation-slide {
  --presentation-bg:#f6c84f; --presentation-text:#24231f;
  position:relative; display:grid; grid-template-columns:minmax(0,57%) minmax(0,43%); width:100%; min-height:0;
  flex:1; overflow:hidden; color:var(--presentation-text); background-color:var(--presentation-bg);
  background-image:
    radial-gradient(circle at 88% 12%, color-mix(in srgb,var(--presentation-bg),white 42%) 0 10%, transparent 10.5%),
    linear-gradient(145deg,color-mix(in srgb,var(--presentation-bg),white 20%),var(--presentation-bg) 56%,color-mix(in srgb,var(--presentation-bg),black 9%));
}
.course-presentation-slide::after { content:""; position:absolute; right:-7%; bottom:-26%; width:34%; aspect-ratio:1; border:3px solid color-mix(in srgb,var(--presentation-text),transparent 78%); border-radius:50%; pointer-events:none; }
.course-presentation-slide.is-entering { animation:course-presentation-enter .34s cubic-bezier(.22,.8,.32,1) both; }
@keyframes course-presentation-enter { from { opacity:.22; transform:translateX(18px) scale(.992); } to { opacity:1; transform:none; } }
.course-presentation-image-pane { min-width:0; min-height:0; overflow:hidden; border-right:5px solid #24231f; background:#ff8069; }
.course-presentation-image-pane img { display:block; width:100%; height:100%; background-color:var(--presentation-bg); background-color:color-mix(in srgb,var(--presentation-bg),white 18%); }
.course-presentation-image-placeholder { display:grid; width:100%; height:100%; place-content:center; justify-items:center; gap:8px; color:#24231f; font-weight:1000; }
.course-presentation-image-placeholder .material-symbols-rounded { font-size:64px; }
.course-presentation-copy { position:relative; z-index:1; display:flex; min-width:0; flex-direction:column; justify-content:flex-start; gap:clamp(9px,1.65vh,17px); padding:clamp(22px,3vw,44px); overflow:auto; }
.course-presentation-copy h2 { margin:0 0 clamp(3px,.7vh,8px); padding-bottom:clamp(9px,1.3vh,14px); border-bottom:3px solid currentColor; overflow-wrap:break-word; word-break:normal; font:950 clamp(1.25rem,2.15vw,2.5rem)/1.08 'Nunito','Baloo 2',sans-serif; letter-spacing:-.035em; }
.course-presentation-copy p { margin:0; font:750 clamp(.8rem,1.28vw,1.12rem)/1.42 'Nunito',sans-serif; }
.course-presentation-copy ul { display:grid; gap:clamp(6px,1.2vh,14px); margin:0; padding:0; list-style:none; }
.course-presentation-copy li { position:relative; padding-left:22px; font:850 clamp(.78rem,1.22vw,1.04rem)/1.35 'Nunito',sans-serif; }
.course-presentation-copy li::before { content:""; position:absolute; top:.45em; left:0; width:11px; height:11px; border:2px solid currentColor; border-radius:50%; background:#fff; }
.course-presentation-slide.without-image { grid-template-columns:1fr; }
.course-presentation-slide.without-image .course-presentation-image-pane { position:absolute; right:-8%; bottom:-34%; width:42%; height:76%; border:5px solid #24231f; border-radius:50%; opacity:.24; }
.course-presentation-slide.without-image .course-presentation-copy { position:relative; z-index:1; max-width:78%; }
.course-presentation-slide.photo-only { display:block; }
.course-presentation-slide.photo-only .course-presentation-image-pane { width:100%; height:100%; border:0; }
.course-presentation-slide.photo-only .course-presentation-copy { display:none; }
.course-presentation-slide.photo-only::after { display:none; }
.course-presentation-slide.photo-only.without-image .course-presentation-image-pane { position:static; width:100%; height:100%; border:0; border-radius:0; opacity:1; }
.course-presentation-controls {
  position:absolute; z-index:10; right:12px; bottom:11px; display:flex; align-items:center; gap:6px; padding:6px;
  border:2px solid #24231f; border-radius:12px; background:rgba(255,249,236,.94); box-shadow:3px 3px 0 #24231f;
}
.course-presentation-controls[hidden] { display:none !important; }
#course-video-wrapper.course-presentation-active .course-video-draw-canvas { z-index:8; }
.course-presentation-controls button { display:grid; width:34px; height:34px; place-items:center; padding:0; border:2px solid #24231f; border-radius:8px; background:#fff; color:#24231f; cursor:pointer; }
.course-presentation-controls button:disabled { opacity:.35; cursor:not-allowed; }
.course-presentation-controls .material-symbols-rounded { font-size:20px; }
#course-presentation-counter { min-width:54px; text-align:center; font:1000 .78rem 'Nunito',sans-serif; }

/* Visión is the modern default; legacy saved slides retain their classic palette. */
.course-presentation-slide.vision-style {
  color:var(--presentation-text,#f8fafc);
  background-color:var(--presentation-bg,#0b1733);
  background-image:
    radial-gradient(circle at 90% 12%,rgba(250,204,21,.15) 0 9%,transparent 9.5%),
    linear-gradient(135deg,#071126 0%,var(--presentation-bg,#0b1733) 58%,#14264a 100%);
}
.course-presentation-slide.vision-style::after { border-color:color-mix(in srgb,var(--presentation-accent,#facc15),transparent 55%); }
.course-presentation-slide.vision-style .course-presentation-image-pane {
  padding:clamp(10px,1.8vw,24px); border:0; background:transparent; box-sizing:border-box;
}
.course-presentation-slide.vision-style .course-presentation-image-pane img,
.course-presentation-slide.vision-style .course-presentation-image-placeholder {
  border:4px solid var(--presentation-accent,#facc15); border-radius:14px;
  box-sizing:border-box; box-shadow:0 12px 32px rgba(0,0,0,.34); object-fit:var(--presentation-image-fit,cover);
}
.course-presentation-slide.vision-style .course-presentation-copy { padding:clamp(24px,3.5vw,54px); }
.course-presentation-slide.vision-style .course-presentation-copy h2 {
  color:var(--presentation-accent,#facc15);
  font-size:calc(clamp(1.55rem,2.6vw,3rem) * var(--presentation-title-scale,1));
  border-bottom-color:var(--presentation-accent,#facc15);
}
.course-presentation-slide.vision-style .course-presentation-copy p,
.course-presentation-slide.vision-style .course-presentation-copy li {
  font-size:calc(clamp(1rem,1.4vw,1.3rem) * var(--presentation-text-scale,1));
}
.course-presentation-slide.classic-style .course-presentation-copy h2 { font-size:calc(clamp(1.25rem,2.15vw,2.5rem) * var(--presentation-title-scale,1)); }
.course-presentation-slide.classic-style .course-presentation-copy p { font-size:calc(clamp(.8rem,1.28vw,1.12rem) * var(--presentation-text-scale,1)); }
.course-presentation-slide.classic-style .course-presentation-copy li { font-size:calc(clamp(.78rem,1.22vw,1.04rem) * var(--presentation-text-scale,1)); }
.course-presentation-slide.layout-stacked { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,48%) minmax(0,52%); }
.course-presentation-slide.layout-stacked .course-presentation-image-pane { border-right:0; border-bottom:5px solid #24231f; }
.course-presentation-slide.vision-style.layout-stacked .course-presentation-image-pane { border:0; }
.course-presentation-scale-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.course-presentation-scale-row label { gap:5px; }
.course-presentation-scale-row output { align-self:flex-end; margin-top:-22px; font-weight:1000; color:#4338ca; }
.course-presentation-scale-row input { width:100%; accent-color:#4338ca; }
.course-presentation-color-row label { min-width:0; }

/* Child-friendly art-class theme, inspired by the user's easel reference. */
.course-presentation-slide.playful-style {
  grid-template-columns:minmax(0,47%) minmax(0,53%);
  color:var(--presentation-text,#652725);
  background-color:var(--presentation-bg,#fff9ef);
  background-image:
    radial-gradient(circle at 9% 79%,rgba(255,46,146,.08) 0 2px,transparent 2.8px),
    radial-gradient(circle at 46% 25%,rgba(255,126,35,.08) 0 2px,transparent 2.8px),
    linear-gradient(135deg,#fffdf8,var(--presentation-bg,#fff9ef) 55%,#fff3df);
  font-family:'Comic Sans MS','Chalkboard SE','Trebuchet MS','Nunito',sans-serif;
}
.course-presentation-slide.playful-style::before {
  content:""; position:absolute; z-index:0; top:-5%; left:-3%; width:38%; height:27%; pointer-events:none;
  background:linear-gradient(112deg,transparent 0 13%,#ff2e92 14% 38%,transparent 39% 43%,#ff7e23 44% 70%,transparent 71%);
  clip-path:polygon(0 0,100% 0,88% 35%,98% 50%,82% 57%,94% 78%,70% 72%,63% 100%,49% 72%,34% 88%,30% 64%,13% 74%);
  opacity:.96; transform:rotate(-4deg);
}
.course-presentation-slide.playful-style::after {
  content:"✦"; position:absolute; z-index:0; top:9%; right:47%; bottom:auto; width:auto; aspect-ratio:auto;
  border:0; border-radius:0; color:#ff7e23; font:1000 clamp(30px,5vw,62px)/1 'Comic Sans MS','Trebuchet MS',sans-serif;
  text-shadow:3px 3px 0 #ffd229; transform:rotate(12deg); pointer-events:none;
}
.course-presentation-slide.playful-style .course-presentation-copy {
  grid-column:1; grid-row:1; z-index:1; justify-content:flex-start; max-width:none; padding:clamp(34px,5vw,76px) clamp(22px,4.5vw,64px);
}
.course-presentation-slide.playful-style .course-presentation-copy h2 {
  color:var(--presentation-text,#652725); font-family:'Comic Sans MS','Chalkboard SE','Trebuchet MS','Nunito',sans-serif;
  font-weight:1000; font-size:calc(clamp(2rem,3.35vw,3.7rem) * var(--presentation-title-scale,1));
  line-height:1.03; letter-spacing:-.045em; border:0; padding:0; text-shadow:1px 2px 0 rgba(101,39,37,.08);
}
.course-presentation-slide.playful-style .course-presentation-copy p,
.course-presentation-slide.playful-style .course-presentation-copy li {
  font-family:'Comic Sans MS','Chalkboard SE','Trebuchet MS','Nunito',sans-serif;
  font-weight:750; font-size:calc(clamp(1.05rem,1.5vw,1.35rem) * var(--presentation-text-scale,1)); line-height:1.48;
}
.course-presentation-slide.playful-style .course-presentation-copy ul { gap:clamp(8px,1.25vh,14px); }
.course-presentation-slide.playful-style .course-presentation-copy li { padding-left:1.55em; }
.course-presentation-slide.playful-style .course-presentation-copy li::before {
  content:"✦"; top:.05em; width:auto; height:auto; border:0; border-radius:0; background:transparent;
  color:var(--presentation-accent,#ff2e92); font-size:1.12em; line-height:1;
}
.course-presentation-slide.playful-style .course-presentation-image-pane {
  position:relative; grid-column:2; grid-row:1; z-index:1; display:flex; align-items:center; justify-content:center;
  overflow:hidden; border:0; background:radial-gradient(circle at 50% 50%,rgba(255,210,41,.15),transparent 55%);
}
.course-presentation-slide.playful-style .course-presentation-image-pane::before {
  content:""; position:absolute; z-index:0; left:14%; right:14%; top:8%; bottom:0; pointer-events:none;
  background:linear-gradient(90deg,#ffb900,#ffd229 45%,#f49b18);
  clip-path:polygon(44% 0,56% 0,88% 100%,76% 100%,50% 27%,24% 100%,12% 100%);
  filter:drop-shadow(3px 4px 0 #652725);
}
.course-presentation-slide.playful-style .course-presentation-image-pane::after {
  content:""; position:absolute; z-index:2; left:10%; right:10%; bottom:13%; height:12%; pointer-events:none;
  border:4px solid #652725; border-radius:8px 8px 12px 12px; background:#ffc51b;
  box-shadow:0 4px 0 rgba(101,39,37,.2);
}
.course-presentation-slide.playful-style .course-presentation-image-pane img,
.course-presentation-slide.playful-style .course-presentation-image-placeholder {
  position:relative; z-index:1; width:78%; height:68%; margin:0 0 10%; box-sizing:border-box;
  overflow:hidden; border:8px solid #fffdf8; border-radius:12px;
  outline:4px solid var(--presentation-accent,#ff2e92);
  background:#ffe6a6; box-shadow:0 8px 0 #ff7e23,0 16px 24px rgba(101,39,37,.22);
  transform:rotate(-1deg);
}
.course-presentation-slide.playful-style .course-presentation-image-placeholder {
  align-content:center; color:#652725; font-weight:1000; font-size:1.2rem;
}
.course-presentation-slide.playful-style.layout-stacked {
  grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,56%) minmax(0,44%);
}
.course-presentation-slide.playful-style.layout-stacked .course-presentation-image-pane { grid-column:1; grid-row:1; }
.course-presentation-slide.playful-style.layout-stacked .course-presentation-copy { grid-column:1; grid-row:2; padding-top:18px; }
.course-presentation-slide.playful-style.photo-only { background:#fff9ef; }
.course-presentation-slide.playful-style.photo-only::before,
.course-presentation-slide.playful-style.photo-only::after,
.course-presentation-slide.playful-style.photo-only .course-presentation-image-pane::before,
.course-presentation-slide.playful-style.photo-only .course-presentation-image-pane::after { display:none; }
.course-presentation-slide.playful-style.photo-only .course-presentation-image-pane { display:block; padding:0; }
.course-presentation-slide.playful-style.photo-only .course-presentation-image-pane img,
.course-presentation-slide.playful-style.photo-only .course-presentation-image-placeholder {
  width:100%; height:100%; margin:0; border:0; border-radius:0; outline:0; box-shadow:none; transform:none;
}

/* On touch phones the presentation joins the scrollable whiteboard flow. */
@media (max-width:768px) {
  .teacher-wb-modal.course-mobile-whiteboard { height:100dvh !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-wb-scroll { flex:1 1 auto; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; }
  .teacher-wb-modal.course-mobile-whiteboard .course-wb-header-row {
    min-height:58px; padding:8px 58px 8px 8px !important; gap:6px;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-wb-header-row > div:first-child { gap:6px !important; padding:6px 9px !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-wb-header-row > div:last-child { gap:5px !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-wb-header-row .btn-icon { width:36px !important; height:36px !important; min-width:36px !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail {
    position:fixed !important; top:auto !important; right:7px !important; bottom:10px !important; left:auto !important;
    width:42px !important; max-height:calc(100dvh - 24px) !important; flex-direction:column !important;
    gap:5px !important; padding:8px 5px !important; overflow-x:hidden !important; overflow-y:auto !important;
    border-radius:22px !important; transform:none !important; z-index:10090 !important; box-sizing:border-box;
    scrollbar-width:thin; overscroll-behavior:contain;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail .btn-icon-small { width:32px !important; height:32px !important; min-width:32px !important; padding:0 !important; flex:0 0 32px; }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail .material-symbols-rounded { font-size:19px !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail .course-notepad-separator {
    width:25px !important; height:1px !important; min-height:1px !important; margin:2px 0 !important; flex:0 0 1px;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail .color-dot { width:20px !important; height:20px !important; min-height:20px !important; flex:0 0 20px; }
  .teacher-wb-modal.course-mobile-whiteboard .course-notepad-tool-rail > label { width:20px !important; height:20px !important; min-height:20px !important; margin:2px 0 !important; flex:0 0 20px; }
  .teacher-wb-modal.course-mobile-whiteboard .course-phrase-chest-launch { display:none !important; }
  .teacher-wb-modal.course-mobile-whiteboard #course-hybrid-area {
    display:flex !important; position:relative; box-sizing:border-box; width:100%; max-width:none !important;
    height:auto !important; min-height:0 !important; flex:0 0 auto !important; flex-direction:column !important;
    align-items:stretch !important; gap:14px !important; margin:0; padding:10px 58px 28px 8px !important; overflow:visible !important;
  }
  .teacher-wb-modal.course-mobile-whiteboard #course-notepad-wrapper {
    width:100% !important; height:65dvh !important; min-height:55dvh !important; flex:0 0 auto !important;
  }
  .teacher-wb-modal.course-mobile-whiteboard #course-wb-text { padding:20px 76px 26px 18px !important; font-size:1.2rem !important; line-height:1.55 !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-video-wrapper {
    width:100% !important; max-width:none !important; height:auto !important; min-height:0 !important;
    flex:0 0 auto !important; aspect-ratio:16/9; border-radius:12px;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-video-wrapper.course-mobile-presentation {
    aspect-ratio:auto; height:auto !important; min-height:0; overflow:visible !important; background:transparent; box-shadow:none;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-stage {
    position:relative; inset:auto; z-index:7; display:flex; width:100%; height:auto; min-height:0; overflow:visible;
    border:2px solid rgba(250,204,21,.8); border-radius:14px; box-shadow:0 8px 22px rgba(7,17,38,.2);
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-stage[hidden] { display:none !important; }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-slide {
    display:flex; flex:0 0 auto; width:100%; min-height:82vh; min-height:82dvh; height:auto; flex-direction:column; overflow:visible;
    border-radius:12px; box-sizing:border-box;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-slide.layout-stacked { display:flex; flex-direction:column; }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-image-pane {
    order:0; flex:0 0 auto; width:100%; height:29vh; height:29dvh; min-height:190px; max-height:34vh; max-height:34dvh; box-sizing:border-box;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-copy {
    order:1; flex:0 0 auto; width:100%; max-width:none; max-height:none; overflow:visible; box-sizing:border-box;
    padding:24px 64px 92px 22px; gap:18px;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-copy h2 {
    font-size:max(1.9rem,calc(clamp(1.85rem,8vw,2.6rem) * var(--presentation-title-scale,1)));
    line-height:1.12;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-copy p,
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-copy li {
    font-size:max(1.15rem,calc(clamp(1.15rem,4.8vw,1.45rem) * var(--presentation-text-scale,1)));
    line-height:1.55;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-image-pane img,
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-image-placeholder {
    width:88%; height:82%; margin-bottom:8%;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-slide.photo-only { min-height:82vh; min-height:82dvh; }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-slide.photo-only .course-presentation-image-pane {
    height:82vh; height:82dvh; min-height:82vh; min-height:82dvh; max-height:none; padding:12px;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-controls {
    right:7px; bottom:7px; z-index:11; transform:scale(.88); transform-origin:right bottom;
  }
  .teacher-wb-modal.course-mobile-whiteboard .course-mobile-presentation .course-presentation-controls [data-action="expand"] { display:none !important; }
}

@media (max-width:1000px) {
  .course-presentation-editor-body { grid-template-columns:180px minmax(280px,1fr); }
  .course-presentation-preview-wrap { grid-column:1/-1; min-height:430px; border-top:3px solid #24231f; }
}
@media (max-width:720px) and (hover:hover) and (pointer:fine) {
  .course-presentation-slide { grid-template-columns:44% 56%; }
  .course-presentation-copy { padding:16px; }
  .course-presentation-copy h2 { font-size:clamp(1.35rem,7vw,2.2rem); }
  .course-presentation-copy p,.course-presentation-copy li { font-size:.82rem; }
  .course-presentation-controls { right:7px; bottom:7px; transform:scale(.86); transform-origin:right bottom; }
}
@media (prefers-reduced-motion:reduce) {
  .course-presentation-slide.is-entering { animation:none; }
}
