/* A focused teacher workspace with the same live slide used in student view. */
.editor-workspace-bar[hidden],.editor-section[hidden],.editor-tabs button[hidden]{display:none!important}
.editor-workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;max-width:1540px;margin:0 auto .7rem;padding:.65rem .85rem;border:1px solid #bdd3e1;border-radius:.9rem;background:#f6fbff}
.editor-workspace-bar>div:first-child{display:grid;min-width:0}.editor-workspace-bar strong{overflow-wrap:anywhere}.editor-workspace-bar span{font-size:.8rem;color:#47647a}
.editor-view-buttons{display:flex;flex-wrap:wrap;gap:.4rem}.editor-view-buttons button{min-height:42px;white-space:normal}
.editor-view-buttons [data-editor-view]{display:none}
.editor-body{display:flex;flex-direction:column;min-height:0}
.editor:not([open])>.editor-body{display:none}
.editor .editor-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;padding:.5rem 0 .75rem;border-bottom:1px solid #ccdae5}
.editor-tabs button{border:1px solid #b4cada;border-radius:.65rem;background:white;color:#24475f;padding:.65rem .35rem;min-height:44px;font:700 .85rem/1.25 system-ui,sans-serif;white-space:normal;overflow-wrap:break-word}
.editor-tabs button[aria-selected="true"]{background:#1d628d;color:white;border-color:#1d628d}
.editor-tabs button:focus-visible,.editor-view-buttons button:focus-visible{outline:3px solid #df9e29;outline-offset:2px}
.editor .editor-grid{display:block;padding:.85rem 0;min-height:0;min-width:0}
.editor-section{display:grid;gap:.85rem;min-width:0;align-content:start}
.editor-section>h3{margin:0 0 .1rem;font-size:1rem;color:#24475f}
.editor-section>label{display:grid;gap:.25rem;min-width:0}
.editor-section input:not([type="checkbox"]):not([type="color"]),.editor-section textarea,.editor-section select{max-width:100%;min-width:0;width:100%}
.editor-section fieldset,.editor-section .slide-image-editor,.editor-section .visual-object-editor{min-width:0;max-width:100%;margin:0}
.editor-section .slide-character-controls,.editor-section .character-animation-controls{margin:0}
.editor-section .character-picker{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}
.editor-fixed-actions{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;padding:.65rem 0;background:#f8fbfd;border-top:1px solid #c5d7e3}
.editor-fixed-actions button{min-height:44px}.editor-fixed-actions #saveEdit{flex:1 1 150px;background:#1d628d;color:white;border-color:#1d628d;font-weight:800}
.editor-fixed-actions .field-note{flex-basis:100%;font-size:.76rem;margin:0}
.editor-section .editor-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:.6rem}
.editor-section .editor-actions button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.editor-section .blank-challenge-batch{grid-column:1/-1}
.slide-motion-settings{display:grid;gap:.65rem;padding:.8rem;border:2px solid #bfd5e2;border-radius:.8rem;background:#f4f9fc}
.slide-motion-settings label{display:flex;align-items:start;gap:.6rem}.slide-motion-settings label[hidden]{display:none!important}
.slide-motion-settings input[type="checkbox"]{flex:none;margin-top:.2rem;width:1.1rem;height:1.1rem}
.motion-status{margin:0;padding:.65rem;border-radius:.6rem;background:#e8f0f7;font-weight:700}
@media screen{
 /* Opening the ordinary split editor gives the page to the slide and controls.
    These rules disappear with slide-editor-active, without changing saved UI state. */
 body.slide-editor-active{height:100dvh;min-height:0;overflow:hidden}
 .slide-editor-active>.topbar,.slide-editor-active>.studio-actions,.slide-editor-active>.site-credit,.slide-editor-active>.skip-link{display:none!important}
 .slide-editor-active .workspace{grid-template-columns:minmax(0,1fr);height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
 .slide-editor-active .setup-panel{display:none}
 .slide-editor-active .lesson-area{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;padding:8px;overflow:hidden}
 .slide-editor-active .lesson-area>:not(#editorWorkspaceBar):not(#slideDirectEditBar):not(#slideEditWorkspace){display:none!important}
 .slide-editor-active:not(.editor-fullscreen-active) .editor-workspace-bar{flex:none;max-width:none;width:100%;margin:0 0 8px;max-height:32dvh;overflow:auto;overscroll-behavior:contain;scroll-margin-top:0}
 .slide-editor-active:not(.editor-fullscreen-active) #editorWorkspaceHint{display:none}
 .slide-editor-active:not(.editor-fullscreen-active) .slide-direct-edit-bar{position:static;flex:none;max-width:none;width:100%;max-height:25dvh;overflow:auto}
 .slide-editor-active .slide-edit-workspace.is-editing[data-editor-mode="split"]{flex:1 1 auto;max-width:none;width:100%;margin:0;grid-template-rows:minmax(0,1fr)}
 .is-editing[data-editor-mode="split"]>.stage-shell{height:var(--editor-height);min-height:0;max-height:100%}
 .slide-edit-workspace.is-editing{--editor-height:calc(100dvh - var(--lesson-header-height,76px) - 150px);display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(320px,var(--editor-width,42%));gap:.35rem;max-width:1540px;margin:auto;align-items:start;min-height:0}
 .is-editing>.stage-shell{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;margin:0;max-height:var(--editor-height);min-height:260px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:.2rem .2rem .8rem;align-content:start}
 .is-editing .slide-rail{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(80px,100%),1fr));gap:.3rem;max-height:104px;overflow-y:auto;background:#edf5fb;padding:.35rem;border-radius:.75rem;min-width:0;scrollbar-width:thin}
 .is-editing .slide-rail .thumb{min-height:44px;font-size:.72rem;padding:.3rem}
 .is-editing .slide-rail .thumb b{font-size:.72rem}
 /* Native details has an internal content wrapper in Safari. Give this body a
    definite height instead of relying on flex sizing through that wrapper. */
 .is-editing>.editor[open]{display:block;max-width:100%;margin:0;width:100%;height:var(--editor-height);min-height:0;padding:0 .8rem;border:1px solid #b9d0df;background:#f8fbfd;overflow:hidden}
 .is-editing>.editor>summary{padding:.65rem 0;min-height:42px}
 .is-editing .editor-body{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:calc(var(--editor-height) - var(--editor-summary-height,48px) - 2px);min-height:0;overflow:hidden}
 .is-editing .editor-grid{height:100%;min-height:0;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;touch-action:pan-x pan-y;padding-right:.4rem}
 .is-editing .editor-grid::-webkit-scrollbar,.is-editing .editor-body::-webkit-scrollbar{width:11px}
 .is-editing .editor-grid::-webkit-scrollbar-track,.is-editing .editor-body::-webkit-scrollbar-track{background:#e8f0f6;border-radius:8px}
 .is-editing .editor-grid::-webkit-scrollbar-thumb,.is-editing .editor-body::-webkit-scrollbar-thumb{background:#6f96b0;border:2px solid #e8f0f6;border-radius:8px}
 .is-editing .editor-grid:focus-visible{outline:2px solid #1d628d;outline-offset:-2px}
 .is-editing .editor-tabs,.is-editing .editor-fixed-actions{flex:none}
 .is-editing.editor-short-height .editor-body{display:block;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-x pan-y}
 .is-editing.editor-short-height .editor-grid{height:auto;overflow:visible;max-height:none}
 .is-editing .slide-content{padding:1rem}
 .editor-workspace-bar{scroll-margin-top:calc(var(--lesson-header-height,76px) + 8px)}
 @media(max-width:1000px){
  .slide-edit-workspace.is-editing{grid-template-columns:minmax(0,1fr);--editor-height:calc(100dvh - var(--lesson-header-height,76px) - 155px)}
  .editor-view-buttons [data-editor-view]{display:block}
  .editor-view-buttons [aria-pressed="true"]{background:#1d628d;color:white}
  .is-editing[data-editor-view="edit"]>.stage-shell,.is-editing[data-editor-view="preview"]>.editor{display:none!important}
  .editor-workspace-bar{align-items:start;flex-wrap:wrap}
  .is-editing>.editor[open]{min-height:0}
 }
 @media(max-width:480px){.editor .editor-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem}.editor-tabs button{font-size:.78rem;padding:.45rem .25rem}.editor-workspace-bar{padding:.5rem;margin-bottom:.5rem}.editor-workspace-bar>div:first-child{flex-basis:100%}.editor-view-buttons{width:100%}.editor-view-buttons button{flex:1;padding:.5rem;font-size:.8rem}.slide-edit-workspace.is-editing{--editor-height:calc(100dvh - var(--lesson-header-height,76px) - 200px)}.editor-fixed-actions button{padding:.5rem}.editor-fixed-actions .field-note{font-size:.7rem}}
 @media(max-height:620px){
  .is-editing .editor-body{display:block;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-x pan-y}
  .is-editing .editor-grid{height:auto;overflow:visible;max-height:none}
 }
}
@media print{.editor-workspace-bar,.editor{display:none!important}}
/* Adjustable teacher layout. The preview is the original live slide in every view. */
.editor-preview-viewport{display:contents}
.editor-layout-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}
.editor-layout-controls label{display:grid;grid-template-columns:auto auto;align-items:center;gap:.25rem .45rem;font-size:.78rem;font-weight:700}
.editor-layout-controls select{min-height:38px;max-width:120px;border:1px solid #b4cada;border-radius:.55rem;padding:.3rem;font:inherit;background:#fff;color:#24475f}
.editor-layout-controls .editor-width-control{grid-template-columns:auto auto;min-width:120px}
.editor-width-control input{grid-column:1/-1;width:130px;min-height:24px;margin:0;accent-color:#1d628d}
.editor-resize-divider,.editor-preview-resize{display:none}
.editor-preview-controls[hidden],.editor-preview-resize[hidden],.editor-layout-controls [hidden],.editor-workspace-bar [hidden],.editor-resize-divider[hidden],#editorLivePreview[hidden]{display:none!important}
@media screen{
 .editor-layout-dragging,.editor-layout-dragging *{user-select:none!important}
 .editor-workspace-bar{flex-wrap:wrap}
 .editor-workspace-bar>div:first-child{flex:1 1 230px}
 .editor-view-buttons button{font-size:.8rem;min-height:38px;padding:.45rem .6rem}
 .editor-resize-divider{display:block;align-self:stretch;min-height:180px;border-radius:9px;cursor:col-resize;touch-action:none;background:linear-gradient(90deg,transparent 4px,#9cb7c9 4px,#9cb7c9 8px,transparent 8px)}
 .editor-resize-divider:hover,.editor-resize-divider:focus-visible{background:#bcd9ea;outline:2px solid #1d628d;outline-offset:-2px}
 .is-editing .editor-grid::-webkit-scrollbar{height:11px}
 @media(min-width:1001px){
  .is-editing>.stage-shell{grid-column:1;grid-row:1}
  .is-editing>.editor-resize-divider{grid-column:2;grid-row:1}
  .is-editing>.editor{grid-column:3;grid-row:1}
  .slide-edit-workspace.is-editing[data-editor-side="left"]{grid-template-columns:minmax(320px,var(--editor-width,42%)) 12px minmax(0,1fr)}
  .is-editing[data-editor-side="left"]>.stage-shell{grid-column:3}
  .is-editing[data-editor-side="left"]>.editor{grid-column:1}
 }
 body.editor-fullscreen-active{overflow:hidden}
 .editor-fullscreen-active .slide-direct-edit-bar:not([hidden]){position:fixed;inset:auto auto 16px 50%;transform:translateX(-50%);z-index:1204;width:min(650px,calc(100vw - 32px));box-shadow:0 4px 20px #16324f35}
 .editor-workspace-bar.editor-fullscreen-bar{position:fixed;inset:8px 8px auto;z-index:1203;max-width:none;margin:0;max-height:40dvh;overflow:auto;background:#f6fbff;box-shadow:0 2px 16px #17344c20;overscroll-behavior:contain}
 .slide-edit-workspace.is-editing[data-editor-mode="fullscreen"]{position:fixed;inset:var(--editor-fullscreen-top,110px) 8px 12px;z-index:1200;display:block!important;max-width:none;margin:0;background:#f8fbfd;border-radius:12px}
 .is-editing[data-editor-mode="fullscreen"]>.editor[open]{display:block!important;height:var(--editor-height);max-height:100%;width:100%;max-width:none}
 .is-editing[data-editor-mode="fullscreen"]>.stage-shell{position:fixed;display:flex!important;flex-direction:column;align-items:stretch;align-content:normal;gap:0;left:var(--editor-preview-x);top:var(--editor-preview-y);width:var(--editor-preview-width,400px);height:var(--editor-preview-height,340px);min-height:0;max-height:none;max-width:none;overflow:hidden;padding:0;border:2px solid #638aa5;border-radius:12px;background:#eaf3f9;box-shadow:0 8px 32px #16324f45;z-index:1202;scrollbar-gutter:auto}
 .is-editing[data-editor-mode="fullscreen"] .editor-preview-controls{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.4rem;position:sticky;top:0;z-index:10;background:#eaf3f9;padding:.35rem .4rem;border-bottom:1px solid #aac3d5}
 #moveEditorPreview{flex:1;text-align:left;min-width:0;min-height:38px;padding:.35rem;border:0;border-radius:.4rem;background:transparent;font:700 .8rem/1.3 system-ui,sans-serif;color:#24475f;cursor:move;touch-action:none}
 .editor-preview-controls button{min-height:38px;font-size:.75rem;white-space:normal}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="false"] .slide-rail{display:none!important}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="false"] .editor-preview-viewport{position:relative;display:block;flex:1;min-height:0;width:100%;overflow:hidden}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="false"] .editor-preview-viewport>.slide-card{position:absolute;top:4px;left:4px;width:900px!important;max-width:none!important;min-height:0;transform:scale(var(--editor-preview-scale,.4));transform-origin:top left;pointer-events:none;user-select:none}
 .is-editing[data-editor-mode="fullscreen"] .editor-preview-resize{display:block;position:absolute;right:0;bottom:0;z-index:12;min-width:44px;min-height:30px;padding:.15rem .4rem;cursor:nwse-resize;touch-action:none;border:1px solid #638aa5;border-radius:9px 0 9px 0;background:#e4f0f8;color:#24475f;font-size:1.1rem}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="true"]>.stage-shell{position:absolute;inset:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;padding:0 .5rem .5rem;scrollbar-gutter:stable}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="true"] .editor-preview-viewport{display:block;width:100%;max-width:1200px;margin:0 auto}
 .is-editing[data-editor-mode="fullscreen"][data-preview-expanded="true"] .slide-rail{position:static;flex:none;width:100%;max-width:1200px;margin:.4rem auto;max-height:104px}
 .editor-preview-controls button:focus-visible,.editor-preview-resize:focus-visible,.editor-layout-controls select:focus-visible{outline:3px solid #df9e29;outline-offset:2px}
 @media(max-width:1000px){.is-editing>.editor-resize-divider,.editor-layout-controls{display:none!important}.editor-fullscreen-bar [data-editor-view]{display:none!important}}
 @media(max-width:600px){.editor-fullscreen-bar>div:first-child{flex-basis:100%}.editor-fullscreen-bar #editorWorkspaceHint{font-size:.7rem}.editor-fullscreen-bar .editor-view-buttons{width:100%}.editor-fullscreen-bar .editor-view-buttons button{flex:1 1 110px}.editor-fullscreen-bar #resetEditorLayout{display:none}}
}
@media print{.editor-resize-divider,.editor-preview-controls,.editor-preview-resize{display:none!important}.editor-preview-viewport{display:contents}}
