:root{--ink:#252b38;--muted:#7c817e;--paper:#f6f5f0;--line:#e5e5dd;--orange:#d75d39;--sage:#456b58}*{box-sizing:border-box}body{margin:0;font:14px/1.5 'Segoe UI',sans-serif;color:var(--ink);background:var(--paper)}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{border:1px solid var(--line);border-radius:8px;background:white;padding:9px 14px;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#f0efe8;transform:translateY(-1px)}button:disabled{opacity:.4;cursor:default;transform:none}button:focus-visible,a:focus-visible{outline:3px solid #e9a86d;outline-offset:3px}.primary{background:var(--orange);color:white;border-color:var(--orange)}.primary:hover{background:#bf4b2a}.dark{background:#292f39;color:white;border-color:#292f39}.dark:hover{background:#404753}.quiet{border-color:transparent;background:transparent}.small{padding:5px 9px;font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;font-weight:700;color:var(--sage)}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:39px;letter-spacing:-1.7px;line-height:1.17;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.7px}h3{font-size:16px;letter-spacing:-.3px}a{color:var(--orange)}.logo{font-size:25px;font-weight:800;letter-spacing:-1.2px;display:flex;align-items:center;gap:9px}.logo em{color:var(--orange);font-style:normal;font-size:32px}.sidebar{position:fixed;inset:0 auto 0 0;width:216px;padding:25px 18px;background:#fffefa;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.workspace{padding:20px 12px;margin:18px 0;color:var(--muted);font-size:10px;letter-spacing:1px;border-block:1px solid var(--line)}.workspace strong{display:block;color:var(--ink);font-size:13px;letter-spacing:0;margin-top:6px}.nav{display:grid;gap:6px}.nav button{text-align:left;border:0;background:transparent;color:#81867f;padding:12px}.nav button.active{background:#f8e7df;color:#b74d2d;font-weight:650}.sidebar-bottom{margin-top:auto;padding:14px 10px;font-size:11px;color:var(--muted)}.sidebar-bottom b{display:block;color:var(--sage);margin-bottom:6px}.main{margin-left:216px}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#fffefa;font-size:12px}.topbar .right{display:flex;gap:12px;align-items:center}.avatar{height:30px;width:30px;border-radius:50%;display:grid;place-items:center;background:#ecebdd;color:#616849;font-weight:700}.status{font-size:10px;color:var(--sage);background:#eaf0e7;padding:5px 9px;border-radius:20px}.content{padding:32px 36px;max-width:1450px;margin:auto}.row{display:flex;justify-content:space-between;align-items:center;gap:15px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.intro{margin-bottom:24px}.intro p{color:var(--muted);margin-bottom:0;max-width:600px}.hero{background:#e7eddf;border:1px solid #d8e1cf;border-radius:18px;display:grid;grid-template-columns:1.15fr 1fr;min-height:240px;overflow:hidden;margin-bottom:25px}.hero-copy{padding:30px}.hero h2{font-size:31px;line-height:1.14;letter-spacing:-1px;margin:12px 0}.hero h2 em{font:italic 34px Georgia;color:#55764b}.hero p{font-size:13px;color:#69785e;max-width:370px}.hero-art{background-image:radial-gradient(#71895b25 1px,transparent 1px);background-size:16px 16px;display:grid;place-items:center}.hero-art svg{width:90%;height:220px}.section-head{margin:25px 0 16px}.section-head h2{margin:0}.section-head small{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.chapter-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.chapter-cover{height:154px;position:relative;display:grid;place-items:center;background:#e9e4f4;cursor:pointer}.chapter-card:nth-child(3n+2) .chapter-cover{background:#e4edde}.chapter-card:nth-child(3n) .chapter-cover{background:#f6e6d6}.chapter-cover svg{height:128px;width:90%}.badge{position:absolute;top:13px;left:15px;background:#ffffffc9;border-radius:5px;font-size:9px;padding:4px 8px;font-weight:700}.chapter-info{padding:20px}.chapter-info h3{font-size:19px;margin:8px 0}.chapter-info p{font-size:12px;color:var(--muted);min-height:34px}.chapter-info .actions{border-top:1px solid var(--line);padding-top:14px;justify-content:space-between}.pill{font-size:10px;color:#7a7d77}.empty{padding:45px;text-align:center;border:1px dashed #c9cbbf;border-radius:14px;grid-column:1/-1}.empty h3{margin:8px 0}.toolbar{display:flex;gap:10px;margin-bottom:20px}.toolbar input{max-width:340px}.builder-head{padding:18px 26px;background:#fffefa;border-bottom:1px solid var(--line)}.builder-title{font-size:19px;font-weight:700}.builder-head small{display:block;color:var(--muted);font-size:11px}.builder-layout{display:grid;grid-template-columns:244px minmax(300px,1fr) 286px;min-height:calc(100vh - 141px)}.outline{background:#f8f7f2;border-right:1px solid var(--line);padding:20px 14px}.outline-label{font-size:10px;letter-spacing:1.3px;color:#96998e;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;padding:12px 3px 8px;gap:5px}.section-label .small{padding:2px 4px;border:0;background:transparent;font-size:11px}.block-item{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-radius:8px;margin:5px 0;background:#fffefa;width:100%;text-align:left}.block-item.active{border-color:#e5ad94;background:#fff0e8}.block-type{width:29px;height:29px;background:#eeecdf;display:grid;place-items:center;border-radius:7px;font-size:14px;flex-shrink:0}.block-item b{font-size:11px;display:block;line-height:1.3}.block-item small{font-size:9px;color:var(--muted)}.block-item .order{font-size:9px;color:#aaa;margin-left:auto}.add-block{width:100%;padding:7px;font-size:11px;background:transparent;border-style:dashed;color:#92958a}.canvas-area{padding:24px;background:#edece6;min-width:0}.canvas-meta{font-size:10px;letter-spacing:1.2px;color:#8b8d83;display:flex;justify-content:space-between;margin-bottom:14px}.canvas{background:white;border:1px solid #dedfd6;border-radius:12px;overflow:hidden;min-height:390px;position:relative}.canvas iframe{display:block;width:100%;height:440px;border:0;background:white}.canvas .image-frame{height:390px;overflow:hidden;display:grid;place-items:center}.canvas img{width:100%;height:100%;object-fit:contain}.canvas video{width:100%;max-height:420px;background:#1e2530;display:block}.text-slide{padding:45px 38px;min-height:390px;background:#fcfbf5;display:flex;flex-direction:column;justify-content:center}.text-slide h2{font-size:31px;line-height:1.2}.text-slide p{font-size:20px;white-space:pre-wrap;color:#4d5851;line-height:1.65}.caption{padding:12px 20px;border-top:1px solid var(--line);font-size:12px;color:#7f837b}.canvas-controls{display:flex;justify-content:space-between;margin-top:13px;gap:8px;flex-wrap:wrap}.canvas-controls button{font-size:11px}.teacher-note{border:1px solid #e2d7b3;background:#faf4df;border-radius:10px;padding:15px;margin-top:20px;font-size:12px;white-space:pre-wrap}.teacher-note .eyebrow{color:#998342;margin-bottom:6px}.feedback-box{background:#e5eee5;border:1px solid #cbdccb;padding:15px;border-radius:9px;margin-top:12px;white-space:pre-wrap;font-size:14px}.inspector{background:#fffefa;border-left:1px solid var(--line);padding:22px 19px}.inspector h3{margin-bottom:3px}.inspector>p{font-size:11px;color:var(--muted)}label{display:block;font-size:11px;font-weight:650;margin:16px 0 6px}input,select,textarea{border:1px solid #dedfd6;background:white;border-radius:7px;padding:9px 10px;width:100%;font-size:12px}textarea{resize:vertical;min-height:82px;line-height:1.6}input:focus,textarea:focus,select:focus{outline:2px solid #b5c4a0;outline-offset:1px}.inspector .primary{width:100%;margin-top:18px}.inspector .divider{border-top:1px solid var(--line);margin:22px 0 12px}.hint{font-size:10px;color:var(--muted);line-height:1.6;margin-top:8px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.full-width{width:100%}.asset-card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;overflow:hidden}.asset-icon{height:100px;background:#efeee5;border-radius:8px;display:grid;place-items:center;font-size:35px;color:#728069;margin-bottom:15px}.asset-card h3{overflow-wrap:anywhere}.asset-card p{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:0;max-width:620px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 100px #18211b44}dialog::backdrop{background:#18221d80;backdrop-filter:blur(3px)}.modal-head{padding:20px 25px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:20px}.modal-body{padding:22px 25px;max-height:74vh;overflow:auto}.modal-body p{font-size:12px;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.type-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-options button{text-align:left;padding:17px;background:#faf9f3}.type-options b{display:block;margin:7px 0}.type-options span{font-size:11px;color:var(--muted)}.upload-zone{padding:25px;border:2px dashed #cbd0bd;border-radius:10px;background:#f6f8f0;margin:15px 0}.code-modal{max-width:1200px;width:95vw}.code-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:430px}.file-list{background:#f6f5ef;padding:15px;max-height:65vh;overflow:auto}.file-list button{display:block;text-align:left;width:100%;font-size:10px;overflow-wrap:anywhere;margin-bottom:5px;border:0}.file-list button.active{background:#e7eddf}.code-main{padding:18px}.code-main textarea{font:12px/1.6 Consolas,monospace;min-height:350px;tab-size:2;background:#202832;color:#e4eadc;white-space:pre;border:0}.revisions{margin-top:15px;border-top:1px solid var(--line);padding-top:15px;font-size:11px}.revisions .row{margin-bottom:8px}.player{background:#e9e9e0;min-height:100vh;padding-bottom:20px}.player-header{display:flex;justify-content:space-between;align-items:center;padding:15px 25px;background:#fffefa;border-bottom:1px solid var(--line)}.player-header h2{font-size:17px;margin:0}.player-body{max-width:1180px;margin:22px auto;padding:0 24px}.player .canvas{min-height:60vh}.player .canvas iframe{height:66vh}.player .image-frame{height:66vh}.player .text-slide{min-height:60vh;padding:65px}.player .text-slide p{font-size:27px}.player .text-slide h2{font-size:40px}.player .canvas video{height:65vh;max-height:none}.progress-dots{display:flex;gap:5px;flex-wrap:wrap}.progress-dots button{width:25px;height:6px;padding:0;border:0;border-radius:3px;background:#d0d3c4}.progress-dots button.active{background:var(--orange)}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#25382e;color:#fff;padding:12px 22px;border-radius:9px;z-index:20;font-size:12px}.loading{padding:60px;color:var(--muted)}.error{color:#b44532;font-size:12px}.save-indicator{font-size:10px;color:var(--sage)}@media(min-width:1500px){.builder-layout{grid-template-columns:270px minmax(0,1fr) 320px}.canvas iframe{height:520px}}@media(max-width:1150px){.sidebar{width:180px}.main{margin-left:180px}.builder-layout{grid-template-columns:205px minmax(0,1fr)}.inspector{grid-column:1/-1;border-top:1px solid var(--line);border-left:0}.inspector form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.grid{grid-template-columns:repeat(2,1fr)}.builder-head{flex-wrap:wrap}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:12px 18px}.sidebar .workspace,.sidebar-bottom{display:none}.nav{display:flex;margin-top:10px}.nav button{font-size:12px;padding:8px}.main{margin:0}.topbar{height:50px;padding:0 18px}.content{padding:24px 18px}.hero{grid-template-columns:1fr}.hero-art{display:none}.hero-copy{padding:23px}h1{font-size:31px}.grid{grid-template-columns:1fr}.intro{align-items:flex-start;flex-wrap:wrap}.builder-layout{grid-template-columns:1fr}.outline{max-height:260px;overflow:auto}.canvas-area{padding:15px}.inspector form{display:block}.code-layout{grid-template-columns:1fr}.file-list{max-height:130px}.canvas iframe{height:360px}.player-header{flex-wrap:wrap;gap:10px}.field-row{gap:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media(min-width:1151px){.builder-layout{height:calc(100vh - 143px);min-height:0;overflow:hidden}.outline,.canvas-area,.inspector{overflow:auto;min-height:0}.canvas iframe{height:clamp(320px,50vh,560px)}.builder-head{height:75px}.canvas{min-height:360px}}

/* Grade / subject discovery and local account entry */
.theme-switch{font-size:11px;border-radius:24px;padding:7px 12px;white-space:nowrap;background:var(--paper);color:var(--ink);border:1px solid var(--line)}.entry-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.entry-story{background:#e7eddf;padding:38px 48px;display:flex;flex-direction:column;justify-content:space-between;gap:35px}.entry-story>div:nth-child(2){max-width:540px;margin:auto 0}.entry-story h1{font-size:clamp(36px,4.5vw,65px);margin:18px 0;line-height:1.07;letter-spacing:-2.5px}.entry-story h1 em{font-family:Georgia,serif;font-weight:400;color:#698259}.entry-story p{font-size:15px;color:#66745d;line-height:1.8}.entry-story svg{width:100%;height:190px}.entry-story>small{font-size:11px;color:#758268}.entry-path{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:#708062}.entry-form-panel{background:#fffefa;padding:28px 42px;display:flex;flex-direction:column;justify-content:space-between;gap:35px}.entry-top{display:flex;justify-content:space-between;align-items:center}.entry-form{max-width:350px;width:100%;margin:auto}.entry-form h2{font-size:34px;margin:12px 0;letter-spacing:-1.2px}.entry-form>p{color:var(--muted);font-size:13px}.entry-form label{font-size:12px;margin-top:20px}.entry-form input{padding:13px 12px;font-size:14px}.password-field{position:relative}.password-field input{padding-right:60px}.password-field button{position:absolute;right:7px;top:9px;font-size:11px}.entry-form .primary{padding:13px}.entry-footnote{font-size:11px;color:var(--muted);line-height:1.8;margin-top:22px}.entry-bottom{font-size:11px;text-align:center;color:var(--muted)}.login-error{color:#b44532;font-size:12px;margin:12px 0;min-height:18px}.chapter-discovery{max-width:1450px}.chapter-discovery .intro{margin-bottom:30px}.chapter-discovery h1{font-size:38px;letter-spacing:-1.4px}.grade-picker{border:1px solid var(--line);background:#fffefa;border-radius:14px;padding:21px 24px}.grade-picker .row>div,.subject-picker .section-head>div,.collection-heading>div:first-child{display:flex;gap:10px;align-items:center}.grade-picker h2,.subject-picker h2{font-size:19px;margin:0}.selection-step{font-size:10px;border-radius:50%;width:25px;height:25px;background:#e9eddf;color:#648154;display:inline-grid;place-items:center;font-weight:700;flex-shrink:0}.grade-options{display:flex;gap:7px;margin-top:20px;flex-wrap:wrap}.grade-choice{flex:1;min-width:48px;padding:9px 8px;background:#f5f5ed;border:1px solid transparent}.grade-choice:first-child{flex:1.5;font-size:11px;white-space:nowrap}.grade-choice small{display:block;font-size:7px;letter-spacing:1px;color:var(--muted)}.grade-choice strong{display:block;font-size:19px}.grade-choice.selected{background:#d75d39;color:#fff;border-color:#d75d39}.grade-choice.selected small{color:#ffdbcd}.subject-options{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.subject-choice{text-align:left;position:relative;border-radius:12px;padding:17px;background:#fffefa;border:1px solid var(--line)}.subject-symbol{width:34px;height:34px;display:grid;place-items:center;background:#eeeade;border-radius:9px;font-size:22px;color:#778365;margin-bottom:13px}.subject-choice b{display:block;font-size:15px;margin-bottom:3px}.subject-choice>span:not(.subject-symbol){font-size:10px;display:block;color:var(--muted)}.subject-choice small{display:block;font-size:10px;color:var(--muted);margin-top:13px}.subject-choice.selected{background:#edf1e6;border-color:#79925e;box-shadow:0 0 0 1px #79925e}.subject-choice.selected .subject-symbol{background:#d8e3cc;color:#4a6937}.subject-picker .section-head{margin-top:27px}.collection-heading{margin-top:31px}.filter-summary{font-size:11px;color:var(--muted);align-self:center}.filter-summary span{margin:0 8px;color:#b8bba9}.empty-icon{font-size:34px;color:#a2b18a}.chapter-discovery .empty{background:#fffefa}.sidebar-bottom .quiet{padding:7px 0;color:var(--muted);font-size:11px}
/* Dark theme applies throughout authoring and presentation. Uploaded applets retain their authored colours. */
html[data-theme=dark]{color-scheme:dark;--ink:#e5e9e0;--muted:#a3ada4;--paper:#171e1c;--line:#35413b;--orange:#e18b64;--sage:#a4c49a}html[data-theme=dark] body{background:var(--paper);color:var(--ink)}html[data-theme=dark] button{background:#28342d;color:var(--ink);border-color:var(--line)}html[data-theme=dark] button:hover{background:#35453a}html[data-theme=dark] .primary{background:#d77b52;border-color:#d77b52;color:#151c17}html[data-theme=dark] .dark{background:#cad9bf;color:#202a22;border-color:#cad9bf}html[data-theme=dark] .quiet{background:transparent}html[data-theme=dark] .sidebar,html[data-theme=dark] .topbar,html[data-theme=dark] .builder-head,html[data-theme=dark] .inspector{background:#202924;border-color:var(--line)}html[data-theme=dark] .nav button{background:transparent;color:#abb6a9}html[data-theme=dark] .nav button.active{background:#4b382e;color:#f2b794}html[data-theme=dark] .workspace strong{color:var(--ink)}html[data-theme=dark] .avatar{background:#3c4d3a;color:#d4e5c8}html[data-theme=dark] .status,html[data-theme=dark] .selection-step{background:#334630;color:#c1d6b2}html[data-theme=dark] .grade-picker,html[data-theme=dark] .subject-choice,html[data-theme=dark] .chapter-card,html[data-theme=dark] .asset-card,html[data-theme=dark] .chapter-discovery .empty{background:#222d26;border-color:var(--line)}html[data-theme=dark] .grade-choice{background:#303d31;border-color:transparent}html[data-theme=dark] .grade-choice.selected{background:#d77b52;color:#171e1c}html[data-theme=dark] .grade-choice.selected small{color:#2e3828}html[data-theme=dark] .subject-choice.selected{background:#36482f;border-color:#9bba87;box-shadow:0 0 0 1px #9bba87}html[data-theme=dark] .subject-symbol{background:#344030;color:#bed0af}html[data-theme=dark] .subject-choice.selected .subject-symbol{background:#526743;color:#e0edce}html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#18231c;border-color:#455247;color:var(--ink)}html[data-theme=dark] .pill{color:#a5b49f}html[data-theme=dark] .chapter-cover{background:#393b4d}html[data-theme=dark] .chapter-card:nth-child(3n+2) .chapter-cover{background:#34412e}html[data-theme=dark] .chapter-card:nth-child(3n) .chapter-cover{background:#4b3d30}html[data-theme=dark] .badge{background:#202a23de;color:#d7e3cf}html[data-theme=dark] .outline{background:#202822;border-color:var(--line)}html[data-theme=dark] .block-item{background:#29342b;color:var(--ink)}html[data-theme=dark] .block-item.active{background:#4a392e;border-color:#b57f60}html[data-theme=dark] .block-type{background:#3b4735;color:#c0cdb6}html[data-theme=dark] .add-block{background:transparent;color:#b5bfb0}html[data-theme=dark] .canvas-area,html[data-theme=dark] .player{background:#17201a}html[data-theme=dark] .canvas{background:#222b24;border-color:#3b4b3c}html[data-theme=dark] .caption{color:#b7c5b2;background:#263229}html[data-theme=dark] .teacher-note{background:#3b3521;border-color:#685d35;color:#e0d3a5}html[data-theme=dark] .teacher-note .eyebrow{color:#d5bd7b}html[data-theme=dark] .feedback-box{background:#2f442c;border-color:#5c7851;color:#d5e9c8}html[data-theme=dark] .text-slide{background:#263429!important}html[data-theme=dark] .text-slide p{color:#d4ddcf}html[data-theme=dark] .player-header{background:#222d26;border-color:var(--line)}html[data-theme=dark] dialog{background:#222d26;color:var(--ink)}html[data-theme=dark] .modal-head{border-color:var(--line)}html[data-theme=dark] .type-options button,html[data-theme=dark] .file-list{background:#29372c}html[data-theme=dark] .file-list button.active{background:#43543b}html[data-theme=dark] .upload-zone{background:#2c3b2c;border-color:#667e57}html[data-theme=dark] .asset-icon{background:#35432f;color:#b3cba1}html[data-theme=dark] .entry-story{background:#293b28}html[data-theme=dark] .entry-story h1 em{color:#b0cc99}html[data-theme=dark] .entry-story p,html[data-theme=dark] .entry-story>small,html[data-theme=dark] .entry-path{color:#b8c7ae}html[data-theme=dark] .entry-form-panel{background:#1b251e}html[data-theme=dark] .theme-switch{background:#30412f}html[data-theme=dark] .hero{background:#2b4029;border-color:#4a6040}html[data-theme=dark] .hero p,html[data-theme=dark] .hero h2 em{color:#bad0ac}html[data-theme=dark] .login-error{color:#f1a388}html[data-theme=dark] .code-main textarea{background:#111b14;color:#d7e5cd}html[data-theme=dark] a{color:#efad86}
@media(max-width:1000px){.subject-options{grid-template-columns:repeat(3,1fr)}.entry-story{padding:30px}.entry-form-panel{padding:25px}.grade-choice{min-width:52px}.chapter-discovery h1{font-size:33px}}@media(max-width:700px){.entry-page{grid-template-columns:1fr}.entry-story{padding:22px;min-height:auto;gap:20px}.entry-story>div:nth-child(2){margin:0}.entry-story h1{font-size:34px;margin:14px 0}.entry-story svg,.entry-path,.entry-story>small{display:none}.entry-story p{font-size:12px;margin-bottom:0}.entry-form-panel{min-height:520px;padding:24px}.entry-form{max-width:400px}.subject-options{grid-template-columns:repeat(2,1fr)}.subject-choice{padding:13px}.grade-picker{padding:18px}.grade-options{gap:6px}.grade-choice{min-width:45px}.subject-picker .row{align-items:flex-start;gap:12px;flex-wrap:wrap}.collection-heading{flex-wrap:wrap}.toolbar{flex-wrap:wrap}.topbar .right{gap:6px}.topbar .save-indicator{font-size:8px}.theme-switch{font-size:10px;padding:6px 9px}.entry-story h1 br:nth-child(2){display:none}}

.logo{font-size:20px;gap:7px;white-space:nowrap}.logo em{font-size:27px}.logo>span[style]{display:none}#update-notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:min(620px,95vw);z-index:30;display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);background:var(--paper);color:var(--ink);box-shadow:0 5px 30px #0003;padding:14px 18px;border-radius:12px;font-size:12px}#update-notice button{white-space:nowrap;font-size:11px}@media(max-width:700px){#update-notice{flex-wrap:wrap}}
/* Local update detection verified. */
/* Full-viewport teaching presentation */
.player:fullscreen{width:100vw;height:100vh;min-height:100vh;padding:0;overflow:hidden;background:var(--paper)}
.player:fullscreen .player-header{min-height:64px;box-sizing:border-box;padding:12px clamp(18px,3vw,44px)}
.player:fullscreen .player-body{width:100%;max-width:none;height:calc(100vh - 64px);box-sizing:border-box;margin:0;padding:clamp(12px,2.4vh,28px) clamp(18px,4vw,72px);display:flex;flex-direction:column;overflow:hidden}
.player:fullscreen .canvas{flex:1 1 auto;min-height:0;height:auto;display:flex;flex-direction:column;justify-content:center}
.player:fullscreen .canvas iframe{height:100%;min-height:0;max-height:none;flex:1 1 auto}
.player:fullscreen .canvas .image-frame{height:100%;min-height:0;flex:1 1 auto}
.player:fullscreen .canvas video{height:100%;max-height:none;flex:1 1 auto;object-fit:contain}
.player:fullscreen .text-slide{height:100%;min-height:0;box-sizing:border-box;padding:clamp(32px,7vh,110px) clamp(28px,8vw,150px)}
.player:fullscreen .text-slide h2{font-size:clamp(34px,5vw,76px)}
.player:fullscreen .text-slide p{font-size:clamp(22px,3vw,42px);max-width:1100px}
.player:fullscreen .canvas-controls{flex:0 0 auto;margin-top:12px}
.player:fullscreen .progress-dots{flex:0 0 auto}
.lesson-preview-modal:fullscreen #preview-content .canvas iframe{height:calc(100vh - 250px);max-height:none}
.lesson-preview-modal:fullscreen #preview-content .canvas .image-frame{height:calc(100vh - 250px)}
.lesson-preview-modal:fullscreen #preview-content .canvas video{height:calc(100vh - 250px);max-height:none}
/* In-app fallback when the browser blocks the native fullscreen API */
.player.presentation-fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;min-height:100vh;padding:0;overflow:hidden;background:var(--paper)}
.player.presentation-fullscreen .player-header{min-height:64px;box-sizing:border-box;padding:12px clamp(18px,3vw,44px)}
.player.presentation-fullscreen .player-body{width:100%;max-width:none;height:calc(100vh - 64px);box-sizing:border-box;margin:0;padding:clamp(12px,2.4vh,28px) clamp(18px,4vw,72px);display:flex;flex-direction:column;overflow:hidden}
.player.presentation-fullscreen .canvas{flex:1 1 auto;min-height:0;height:auto;display:flex;flex-direction:column;justify-content:center}
.player.presentation-fullscreen .canvas iframe{height:100%;min-height:0;max-height:none;flex:1 1 auto}
.player.presentation-fullscreen .canvas .image-frame{height:100%;min-height:0;flex:1 1 auto}
.player.presentation-fullscreen .canvas video{height:100%;max-height:none;flex:1 1 auto;object-fit:contain}
.player.presentation-fullscreen .text-slide{height:100%;min-height:0;box-sizing:border-box;padding:clamp(32px,7vh,110px) clamp(28px,8vw,150px)}
.player.presentation-fullscreen .text-slide h2{font-size:clamp(34px,5vw,76px)}
.player.presentation-fullscreen .text-slide p{font-size:clamp(22px,3vw,42px);max-width:1100px}
.player.presentation-fullscreen .canvas-controls{flex:0 0 auto;margin-top:12px}
.player.presentation-fullscreen .progress-dots{flex:0 0 auto}
