.seek-row{display:flex;align-items:end;gap:10px;margin-top:18px}.seek-row label{max-width:150px;margin-bottom:0}.seek-row button{margin-bottom:0}
.field-error{display:block;color:#973b22;font-size:12px;line-height:1.5;margin:7px 0 12px;font-weight:500}.field-error:not([hidden]){border-left:3px solid #b65a37;padding-left:9px}input[aria-invalid=true]{border-color:#b65a37!important;background:#fff6ef!important}.two label{margin-bottom:0}.two button{margin-top:8px;padding:9px 7px;width:100%}.file-actions{max-width:360px}.file-actions .field-error{width:100%}
:root{font-family:'DM Sans',system-ui,sans-serif;color:#213b38;background:#f5f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:88px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dcded4;background:#fafbf6}.brand{display:flex;gap:14px;align-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:32px;color:#347561}.brand span{font-size:19px;color:#213b38}.badge{font-size:10px;font-weight:700;letter-spacing:1.2px;padding:9px 12px;border-radius:30px;background:#e8eddf;white-space:nowrap}main{max-width:1520px;margin:auto;padding:42px 5%}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:25px}h1{font-family:Manrope,sans-serif;font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-2px;margin:12px 0 18px}p{line-height:1.6}.heading p{color:#5b7069}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#64806e;margin:0 0 10px}h2{font:700 21px Manrope,sans-serif;margin:0 0 20px}.file-actions,.playback-actions{display:flex;gap:10px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.card{background:#fffef9;border:1px solid #dfe3d7;border-radius:16px;padding:25px;box-shadow:0 4px 14px #213b3804}.right{display:grid;gap:24px}label{display:block;font-size:12px;font-weight:600;margin-bottom:16px}input:not([type=checkbox]):not([type=range]):not([type=file]){width:100%;padding:12px;border:1px solid #ccd4c7;border-radius:7px;margin-top:7px;background:#fffefb;color:#233d37;font:inherit;font-weight:400}input[type=url]{font-size:12px!important}button,.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5c6;border-radius:7px;background:#fffef9;color:#274a3e;font:600 12px 'DM Sans',system-ui;padding:11px 14px;cursor:pointer;text-decoration:none;margin:0}.button input{position:absolute;width:1px;height:1px;opacity:0}.button:focus-within,button:focus-visible,input:focus-visible{outline:3px solid #ba923c;outline-offset:3px}.primary{background:#285b48;color:white;border-color:#285b48}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}form>button{margin:0 4px 8px 0}.hint{font-size:11px;color:#66756b;line-height:1.6}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.time-row{display:flex;gap:7px;align-items:baseline}.time-row button{white-space:nowrap;padding:12px 9px}hr{border:0;border-top:1px solid #e0e3d7;margin:26px 0}.section-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.check{display:flex;align-items:center;gap:8px;background:#f0f3e9;padding:12px;border-radius:7px}.check input{accent-color:#285b48}.video-pane{min-width:0;background:#eef0e7;border-radius:9px;padding:9px}.video-heading{font-size:12px;font-weight:700;margin:3px 0 9px}.video-heading span{margin-left:7px;font-weight:400}video{display:block;width:100%;aspect-ratio:16/9;background:#172824;border-radius:4px}.video-pane .hint{margin:8px 2px 2px;min-height:18px}.size-control{margin-top:20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.size-control span{font-size:10px;font-weight:400;color:#66756b}input[type=range]{accent-color:#285b48;max-width:180px}#message{background:#e8eddf;border-left:3px solid #7f9b66;border-radius:5px;padding:12px 16px;font-size:12px;margin:0 0 24px}#message.error{background:#fff0e9;border-color:#ba5b3b;color:#873c25}#events{list-style:none;padding:0;margin:0}#events li{display:flex;align-items:center;gap:12px;border-top:1px solid #e3e6da;padding:16px 0}#events li>div{flex:1;min-width:0}#events strong{font-size:13px;overflow-wrap:anywhere}#events p{margin:4px 0;font-size:11px;color:#637368}#events button{padding:8px 10px}#count{color:#83917b;font-size:16px;margin-left:7px}footer{font-size:11px;color:#7c8879;padding:25px 0}[hidden]{display:none!important}@media(max-width:1050px){.workspace{grid-template-columns:290px minmax(0,1fr)}.card{padding:18px}}@media(max-width:720px){header{height:70px}.brand span{font-size:15px}.badge{font-size:8px}main{padding:28px 5%}.heading{display:block}.file-actions{margin-top:24px}.workspace{grid-template-columns:1fr}.heading h1{letter-spacing:-1px}#events li{flex-wrap:wrap}}

/* Fixed A/B positions: only their relative sizes change. */
#players{display:grid;grid-template-columns:minmax(0,80fr) minmax(64px,20fr);gap:14px;align-items:start;margin:20px 0}
#players>.video-pane{width:100%;min-width:0;align-self:start;padding:5px;opacity:.65}
#players>.video-pane:hover,#players>.video-pane:focus-within{opacity:1}
#players>.video-pane.focused{padding:9px;opacity:1}
#players>.video-pane:not(.focused) .video-heading{font-size:10px;margin:0 0 4px}
#players>.video-pane:not(.focused) .video-heading span{display:none}
#players>.video-pane:not(.focused) .hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#players>.focused .hint{min-height:36px}
.view-video{width:100%;margin-top:5px;padding:6px 2px;font-size:10px}#players>.focused .view-video{display:none}
#players video{opacity:1}#players>.video-pane:not(.focused) video{opacity:.35}

select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #ccd4c7;border-radius:7px;background:#fffefb;color:#233d37;font:inherit}select:focus-visible{outline:3px solid #ba923c;outline-offset:3px}#players.together>.video-pane{opacity:1;padding:9px}#players.together video{opacity:1}#players.together .view-video{display:none}#players.together .video-heading{font-size:12px;margin:3px 0 9px}#players.together .video-heading span{display:inline}

/* Keep the image inset steady while animated grid tracks change width. */
#players>.video-pane{padding:9px}#players>.video-pane:not(.focused) .video-heading{font-size:12px;margin:3px 0 9px}.controls-preference{margin-top:16px}video:focus-visible{outline:3px solid #ba923c;outline-offset:3px}

.header-actions{display:flex;align-items:center;gap:12px}.student-intro{margin-bottom:22px}.student-intro h1{font-size:clamp(28px,4vw,46px);letter-spacing:-1.3px;overflow-wrap:anywhere}.student-intro>p:not(.eyebrow){color:#5b7069}.student-view main{max-width:1220px;padding-top:28px}.student-view .heading,.student-view #message,.student-view .editor,.student-view #events-card,.student-view .seek-row,.student-view .size-control,.student-view #playback-rules,.student-view .view-video{display:none!important}.student-view .workspace,.student-view .right{display:block}.student-view .preview>.section-heading .eyebrow{display:none}.student-view .playback-actions{position:sticky;top:8px;z-index:2;background:#fffef9;border:1px solid #dfe3d7;border-radius:9px;padding:10px;margin:16px 0}.student-view #play{min-width:130px}.student-progress{margin:18px 0}.progress-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.progress-heading label{margin:0}.progress-heading output{font-size:12px;font-variant-numeric:tabular-nums;color:#5b7069}.student-progress input[type=range]{display:block;width:100%;max-width:none;margin:12px 0;accent-color:#285b48}.student-progress .hint{margin-bottom:0}.student-view #players{margin-top:18px}.student-view footer{padding-top:18px}@media(max-width:720px){.header-actions .badge{display:none}.header-actions{gap:6px}.header-actions button{font-size:11px;padding:9px}.student-view main{padding-top:22px}.student-view .playback-actions{top:4px;gap:7px}.student-view .playback-actions button{padding:10px}.student-view .student-intro h1{font-size:29px}}
.student-intro h1{font-size:clamp(28px,3vw,38px);margin:6px 0 10px}.student-intro>p:not(.eyebrow){margin:0}.student-view #student-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.student-view #preview-title{margin-bottom:0}.student-view .playback-actions{padding:6px;margin:12px 0}.student-view .student-progress{margin:14px 0}.student-view #straight-choice{margin-top:16px}

/* Student presentation: title, one player window, and the AMP credit. */
.student-view>header{display:none}.student-view main{padding-top:24px}.student-view #student-intro>p:not(#student-status){display:none}.student-view #student-intro{margin-bottom:18px}.student-view #student-title{margin:0;font-size:clamp(25px,3vw,36px)}.student-view .preview>.section-heading{display:none}.student-view .preview{padding:16px;box-shadow:none;border-radius:12px}.student-view #players{margin-top:0}.student-view .video-pane{background:transparent}.student-view .video-heading span{display:none!important}.student-view .video-pane .hint{display:none!important}.student-view .playback-actions{position:static;border:0;padding:0;background:transparent;margin:12px 0}.student-view .student-progress .hint,.student-view #controls-help{display:none}.student-view #page-footer{text-align:center;font-size:11px;padding:22px 0 10px}.student-sizing{margin:16px 0}.student-sizing>label{margin-bottom:8px}.size-balance{display:flex;gap:12px;align-items:center}.size-balance>span{font-size:12px;color:#647268}.size-balance input[type=range]{width:100%;max-width:none;min-width:0;margin:0;flex:1}.student-options{border-top:1px solid #e1e5da;padding-top:12px;margin-top:16px}.student-options summary{cursor:pointer;font-size:12px;color:#5b7069}.student-options .check{background:transparent;padding:8px 0;margin:6px 0}.student-options button{font-size:11px;margin-top:8px}

/* Keep student playback comfortable on phones, including landscape safe areas. */
.student-view .video-heading{display:none!important}
.student-view main{padding-left:max(12px,5%,env(safe-area-inset-left));padding-right:max(12px,5%,env(safe-area-inset-right));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.student-view .playback-actions button{min-height:44px}
.student-view input[type=range]{min-height:44px;touch-action:pan-y}
.student-view .student-options summary{min-height:44px;padding:14px 0}
.student-view .student-options .check{min-height:44px}
@media(max-width:600px){
  .student-view main{padding-top:18px}
  .student-view #student-intro{margin-bottom:14px}
  .student-view #student-title{font-size:25px;letter-spacing:-.7px}
  .student-view .preview{padding:10px}
  .student-view #players{gap:8px;margin-bottom:12px}
  .student-view #players>.video-pane,.student-view #players>.video-pane.focused,.student-view #players.together>.video-pane{padding:0}
  .student-view .playback-actions{gap:8px}
  .student-view .playback-actions button{flex:1 1 auto;padding:10px 12px}
  .student-view .progress-heading{gap:8px;flex-wrap:wrap}
  .student-view .student-progress input[type=range]{margin:4px 0}
  .student-view .student-sizing{margin:12px 0}
  .student-view .student-sizing>label{margin-bottom:0}
  .student-view .student-options{margin-top:8px;padding-top:0}
}

/* Instructor editing on phones: readable fields and comfortable touch controls. */
@media(max-width:720px), (max-width:950px) and (max-height:500px){
  body:not(.student-view) .workspace{grid-template-columns:minmax(0,1fr)}
  body:not(.student-view) .header-actions .badge{display:none}
  body:not(.student-view)>header{height:auto;min-height:70px;padding:12px max(12px,5%,env(safe-area-inset-left)) 12px max(12px,5%,env(safe-area-inset-right));gap:12px;flex-wrap:wrap}
  body:not(.student-view) .brand{gap:8px;font-size:28px;min-width:0}
  body:not(.student-view) .brand span{font-size:14px}
  body:not(.student-view) main{padding:24px max(12px,5%,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,5%,env(safe-area-inset-left))}
  body:not(.student-view) .workspace,body:not(.student-view) .right{min-width:0;gap:16px}
  body:not(.student-view) .card{min-width:0;padding:16px}
  body:not(.student-view) button,body:not(.student-view) .button{min-height:44px}
  body:not(.student-view) input:not([type=checkbox]):not([type=file]),body:not(.student-view) select{font-size:16px!important;min-width:0;min-height:44px}
  body:not(.student-view) input[type=range]{max-width:none;touch-action:pan-y}
  body:not(.student-view) .check{min-height:44px}
  body:not(.student-view) .file-actions{max-width:none;gap:8px}
  body:not(.student-view) .file-actions>.button,body:not(.student-view) .file-actions>button{flex:1}
  body:not(.student-view) .time-row{align-items:center;gap:8px}
  body:not(.student-view) .time-row input{flex:1;width:0}
  body:not(.student-view) .time-row button{flex-shrink:0}
  body:not(.student-view) .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  body:not(.student-view) .two>div{min-width:0}
  body:not(.student-view) .section-heading{flex-wrap:wrap}
  body:not(.student-view) #players{gap:8px}
  body:not(.student-view) #players>.video-pane,body:not(.student-view) #players>.video-pane.focused,body:not(.student-view) #players.together>.video-pane{padding:0}
  body:not(.student-view) .video-heading span{display:none!important}
  body:not(.student-view) .playback-actions{gap:8px}
  body:not(.student-view) .playback-actions button{flex:1 1 auto}
  body:not(.student-view) .seek-row{flex-wrap:wrap;align-items:end}
  body:not(.student-view) .seek-row label{flex:1;max-width:none;min-width:100px}
  body:not(.student-view) .size-control input{width:100%;flex:1 1 100%}
  body:not(.student-view) #events li>div{flex:1 1 100%}
  body:not(.student-view) #events li button{flex:1}
  body:not(.student-view) .hint,body:not(.student-view) .field-error,body:not(.student-view) footer{overflow-wrap:anywhere}
}

/* Lesson library and sign-in share the existing phone-friendly workspace. */
.account-panel{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.account-panel p{font-size:13px;margin:0}.lesson-library{margin-bottom:28px}.library-current{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin:18px 0 12px}.library-current span{font-size:12px;color:#66756b}.lesson-library summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px}.lesson-library button,.lesson-library .button,.account-panel button{min-height:44px}.lesson-library ul{list-style:none;padding:0}.lesson-library li{display:flex;gap:12px;align-items:center;border-top:1px solid #e0e3d7;padding:12px 0}.lesson-library li>div{flex:1;min-width:0;overflow-wrap:anywhere}.lesson-library li strong{font-size:14px}.lesson-library li p{font-size:12px;margin:4px 0;color:#66756b}.lesson-library #lesson-share{border-top:1px solid #e0e3d7;margin-top:18px;padding-top:12px}.lesson-library label{margin-top:16px}.lesson-library textarea{display:block;width:100%;font:inherit;min-width:0;resize:vertical;margin-top:7px;padding:12px;border:1px solid #ccd4c7;border-radius:7px;color:#233d37;background:#fffefb}.lesson-library textarea:focus-visible{outline:3px solid #ba923c;outline-offset:3px}.student-view #account-panel,.student-view #lesson-library{display:none!important}.signed-out .heading,.signed-out #message,.signed-out .workspace,.signed-out #toggle-view{display:none!important}.published-view #toggle-view{display:none!important}.lesson-unavailable #players,.lesson-unavailable .playback-actions,.lesson-unavailable #student-progress,.lesson-unavailable #student-sizing,.lesson-unavailable #student-options{display:none!important}@media(max-width:720px){.lesson-library textarea{font-size:16px}.lesson-library .file-actions>*{flex:1 1 auto}.lesson-library .section-heading{align-items:center}}

#page-footer{text-align:center}
.signed-out{min-height:100svh;display:flex;flex-direction:column}.signed-out>header{flex-shrink:0}.signed-out main{flex:1;width:100%;display:flex;flex-direction:column}.signed-out #page-footer{margin-top:auto}
