/* A bounded teacher workspace, with AI revision requests scoped to one slide. */
.app-header .brand>span,.app-header .nav button>span{display:block}
.app-header .nav{margin-top:0}
.lesson-workspace{height:100dvh;overflow:hidden}
.lesson-workspace #app{height:100%;display:flex;flex-direction:column}
.lesson-workspace .app-header{flex-shrink:0;padding:10px 20px;gap:16px}
.lesson-workspace .app-header .brand{font-size:16px}.lesson-workspace .app-header .brand img{width:34px;height:34px}
.lesson-workspace .app-header .brand small{display:none}
.lesson-workspace .app-header .nav{order:0;flex-basis:auto;justify-content:center}
.lesson-workspace .app-header .nav button{font-size:14px;padding:8px 12px;min-height:44px}
.lesson-workspace .app-header .text-toggle{min-height:44px}
.lesson-workspace .workspace{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.lesson-workspace .topbar{display:none}
.lesson-workspace main{width:100%;max-width:none;flex:1;min-height:0;overflow:auto;padding:12px 20px}
.lesson-workspace .steps{margin:0 auto 12px;width:100%;min-height:44px;max-width:750px}
.focused-editor main{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;overflow:hidden;animation:none}
.focused-editor .steps{margin:0 auto}
.focused-editor .heading-row{margin:0;min-height:30px;gap:12px;align-items:center;flex-wrap:nowrap}
.focused-editor .heading-row h1{font-size:21px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.focused-editor .heading-row>div{min-width:0}.focused-editor .save-indicator{font-size:12px;flex-shrink:0}
.editor-views{display:none}
.focused-editor .editor{height:100%;min-height:0;grid-template-columns:190px minmax(0,1fr) 300px;gap:16px;align-items:stretch}
.focused-editor .outline-sidebar{position:relative;top:0;max-height:none;height:100%;min-height:0;display:flex;flex-direction:column;padding:10px;overflow:hidden;align-self:stretch}
.focused-editor .outline-sidebar h3{margin-bottom:8px}.focused-editor .outline-sidebar>.btn{flex-shrink:0}
.focused-editor .slide-list{display:block;flex:1;min-height:0;max-height:none;overflow:auto}
.focused-editor .slide-row{min-width:0;width:100%;min-height:85px;padding:5px;margin:0 0 8px}
.focused-editor .slide-select strong{font-size:13px}.focused-editor .reorder button{min-width:36px;min-height:40px}
.focused-editor .work-area{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0}
.focused-editor .editor-toolbar{margin:0 0 8px;flex-wrap:nowrap}
.focused-editor .editor-toolbar .actions{width:auto}.focused-editor .editor-toolbar .btn{font-size:13px;padding:8px}
.focused-editor .editor-toolbar>strong{font-size:14px}
.canvas-stage{container-type:size;min-height:0;min-width:0;display:grid;place-items:center;background:#e9ede7;border-radius:10px;padding:0}
.focused-editor .canvas-stage .slide-canvas{width:min(100cqw,calc(100cqh * 16 / 9));max-width:100%;margin:0;border-radius:4px;overflow:hidden}
.focused-editor .editor-caption{margin:8px 0 0;display:block;font-size:11px;line-height:1.4}
.prompt-panel{min-height:0;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:16px}
.prompt-panel h2{font-size:20px;line-height:1.3;margin:0 0 8px}.prompt-panel .eyebrow{font-size:11px;margin-bottom:7px}
.prompt-context{font-size:13px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.prompt-panel .field{font-size:15px;margin:0}.prompt-panel textarea{font-size:16px;min-height:145px;resize:vertical;line-height:1.6}
.prompt-examples{display:flex;gap:6px;flex-wrap:wrap}.prompt-examples .btn{font-size:12px;padding:8px;min-height:44px}
.generation-action{margin-top:auto}.generation-action>.btn{width:100%;font-size:15px;min-height:48px}
.generation-action p{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}
.focused-editor main>.footer-actions{margin:0;padding:8px 0 0;border-top:1px solid var(--line);flex-wrap:nowrap;gap:8px}
.focused-editor main>.footer-actions .btn{min-height:44px;padding:8px 12px;font-size:14px}
#toast{left:50%}
@media(max-width:1100px){.lesson-workspace .app-header{gap:10px}.lesson-workspace .app-header .brand{font-size:14px}.lesson-workspace .app-header .nav button{font-size:13px;padding:8px}.lesson-workspace .app-header .nav .icon{display:none}.lesson-workspace .app-header .text-toggle span{display:none}.focused-editor .editor{grid-template-columns:155px minmax(0,1fr) 260px;gap:10px}.prompt-panel{padding:14px}.focused-editor .slide-select strong{font-size:12px}}
@media(max-width:800px){.lesson-workspace .app-header{display:grid;grid-template-columns:1fr auto;padding:8px 12px;gap:6px}.lesson-workspace .app-header .nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}.lesson-workspace .app-header .nav button{min-height:44px;font-size:12px;padding:6px 4px}.lesson-workspace .app-header .text-toggle{grid-column:2;grid-row:1}.lesson-workspace .app-header .brand{justify-content:flex-start;font-size:15px}.lesson-workspace main{padding:8px 12px}.focused-editor main{grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:6px}.focused-editor .steps{min-height:40px}.focused-editor .step{flex-direction:row;gap:4px;font-size:11px!important;padding:0;min-height:40px}.focused-editor .step-line{margin:0 5px;align-self:center}.focused-editor .step span{width:22px;min-width:22px;height:22px}.focused-editor .heading-row h1{font-size:17px}.focused-editor .save-indicator{display:none}.editor-views{display:flex;gap:6px}.editor-views .btn{min-height:44px;font-size:14px;padding:8px 16px;flex:1}.focused-editor .editor{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:8px}.focused-editor .outline-sidebar{padding:0 10px;height:44px;overflow:visible;z-index:5;display:block}.focused-editor .outline-sidebar h3,.focused-editor .outline-sidebar>.btn:not(.pages-toggle),.focused-editor .outline-sidebar .slide-list{display:none}.focused-editor .pages-toggle{display:flex;margin:0;height:42px;min-height:42px;align-items:center;font-size:14px!important}.focused-editor .outline-sidebar.expanded{height:auto;position:absolute;inset:0 0 auto;box-shadow:0 8px 18px #253c3722;padding-bottom:10px;max-height:100%;overflow:auto}.focused-editor .outline-sidebar.expanded .slide-list{display:grid;grid-template-columns:1fr 1fr;max-height:220px;overflow:auto;gap:8px;margin:8px 0}.focused-editor .outline-sidebar.expanded>.btn:not(.pages-toggle){display:flex;width:100%}.focused-editor .outline-sidebar.expanded .slide-row{margin:0}.focused-editor .work-area,.focused-editor .prompt-panel{grid-row:2}.focused-editor .editor[data-pane=slide] .prompt-panel{display:none}.focused-editor .editor[data-pane=prompt] .work-area{display:none}.focused-editor .prompt-panel{gap:12px;padding:14px}.focused-editor .prompt-panel h2{font-size:18px}.focused-editor .prompt-panel textarea{min-height:120px}.focused-editor .editor-toolbar{order:unset}.focused-editor .editor-caption{order:unset;font-size:10px}.focused-editor .canvas-stage{order:unset}.focused-editor .editor-toolbar .actions{gap:6px}.focused-editor .editor-toolbar .icon-btn{min-width:44px;min-height:44px}.focused-editor main>.footer-actions .btn{font-size:13px}.large-text .focused-editor .heading-row{display:flex}.large-text .focused-editor .step{font-size:12px!important}.large-text .focused-editor .app-header .nav button{font-size:14px}}
@media(max-height:600px) and (min-width:801px){.focused-editor .steps{display:none}.focused-editor main{grid-template-rows:auto minmax(0,1fr) auto}}
@media(max-height:600px) and (max-width:800px){.focused-editor .steps,.focused-editor .heading-row{display:none}.focused-editor main{grid-template-rows:auto minmax(0,1fr) auto}.lesson-workspace .app-header .nav{display:none}}
@media(max-height:600px) and (max-width:800px){.lesson-workspace .app-header .brand{display:none}.lesson-workspace .app-header .nav{display:grid;grid-row:1;grid-column:1}.lesson-workspace .app-header .text-toggle{grid-row:1;grid-column:2}}
