/* A quiet surround lets content carry the colour. Grouping, spacing and typography carry the hierarchy. */
:root{--ink:#203832;--muted:#687872;--paper:#f5f5ef;--surface:#fffef9;--line:#dce2d8;--orange:#315a49;--sage:#41654f;--soft:#edf0e7;--accent:#cfe47e;--radius:14px;font-synthesis:none}
html[data-theme=dark]{--ink:#e7eee4;--muted:#a3b4ab;--paper:#14221e;--surface:#1b2d26;--line:#35483d;--orange:#cfe47e;--sage:#c1d5ad;--soft:#273c30;--accent:#cfe47e}
body{font-family:'Segoe UI Variable Text','Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit}button{font-weight:600;border-radius:9px;min-height:36px}button:focus-visible,a:focus-visible{outline:3px solid #819e37;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #77925f;outline-offset:2px}.primary,html[data-theme=dark] .primary{background:var(--orange);border-color:var(--orange);color:#fffef8}.primary:hover,html[data-theme=dark] .primary:hover{background:#244637;border-color:#244637;color:#fff}html[data-theme=dark] .primary{color:#17261c}.small{font-size:12px;padding:7px 11px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:650}.logo{font-family:'Segoe UI',Arial,sans-serif;font-size:21px;letter-spacing:-.8px;gap:8px;white-space:nowrap}.logo em{font-size:29px;color:var(--sage)}h1,h2,h3{color:var(--ink)}a{color:var(--sage)}[hidden]{display:none!important}
/* Entry: one moving figure against a low-variance, still background. */
.discovery-home{background:var(--paper);min-height:100vh;padding:0 5.1%;color:var(--ink)}.home-header{min-height:104px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.home-brand{text-decoration:none;color:var(--ink);flex-wrap:wrap;position:relative;padding-bottom:16px;font-size:25px}.home-brand>span{position:absolute;left:39px;bottom:0;font-size:8px;letter-spacing:2px;font-weight:600;color:var(--muted)}.home-nav{display:flex;gap:17px;align-items:center}.home-nav>span{font-size:12px;color:var(--muted);margin-right:9px}.home-nav>.small{padding:9px 16px;background:transparent;border-color:#b7c3b1}.theme-switch,html[data-theme=dark] .theme-switch{background:transparent;border:1px solid var(--line);font-size:12px;color:var(--ink);min-height:35px}.home-hero{display:grid;grid-template-columns:.94fr 1.12fr;gap:6%;align-items:center;padding:57px 0 54px;min-height:660px}.home-copy{max-width:520px}.home-kicker{font-size:9px;letter-spacing:1.35px;font-weight:650;color:var(--sage);display:flex;align-items:center;gap:9px;margin-bottom:23px}.home-kicker>span{width:7px;height:7px;border-radius:50%;background:#6c8f54;box-shadow:0 0 0 4px #6c8f5414}.home-copy h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(50px,5.6vw,83px);letter-spacing:-3.8px;line-height:1.045;margin:0 0 24px}.home-copy h1 em{font-weight:400;color:#69865d;font-size:.94em;white-space:nowrap}.home-description{font-size:15px;line-height:1.85;color:var(--muted);max-width:395px;margin-bottom:27px}.home-cta{display:flex;align-items:center;gap:19px}.home-cta .primary{padding:14px 20px;font-size:13px;min-width:187px;border-radius:8px;display:flex;gap:29px;justify-content:space-between}.home-cta .primary span{font-size:19px;line-height:1}.home-cta>span{font-family:Georgia,serif;font-style:italic;color:var(--muted);font-size:13px}.home-proof{display:flex;gap:21px;margin-top:41px;flex-wrap:wrap;color:var(--muted);font-size:10px}.home-proof b{color:var(--sage);font-size:9px;font-weight:600;border:1px solid var(--line);padding:3px 5px;border-radius:4px;margin-right:6px}
.discovery-lab{background:#142a2b;color:#e4eddd;border-radius:22px;box-shadow:0 16px 48px #173a2510;overflow:hidden;min-width:0;position:relative;border:1px solid #294344;isolation:isolate}.lab-top{padding:22px 22px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.lab-label{font-size:8px;letter-spacing:1.5px;color:#a6beb3;display:flex;gap:7px;align-items:center;white-space:nowrap}.lab-label i{width:5px;height:5px;border-radius:50%;background:#cce28b}.lab-tabs{display:flex;padding:3px;background:#0c2022;border:1px solid #2b4342;border-radius:7px;gap:2px}.lab-tabs button,html[data-theme=dark] .lab-tabs button{font-size:10px;font-weight:500;border:0;min-height:28px;padding:6px 9px;color:#a9bcb0;background:transparent;border-radius:5px}.lab-tabs button[aria-pressed=true],html[data-theme=dark] .lab-tabs button[aria-pressed=true]{background:#344a3d;color:#e7efcf}.lab-scene{aspect-ratio:660/390;position:relative;width:100%;margin:6px 0 -10px}.lab-scene svg{width:100%;height:100%;display:block}.circuit-scene{display:none!important}.circuit-mode .circuit-scene{display:block!important}.circuit-mode .prism-scene{display:none}.lab-caption{display:flex;gap:15px;padding:0 27px;align-items:flex-start}.lab-number{color:#93ad7f;font-family:Georgia,serif;font-size:24px;line-height:1.2}.lab-caption h3{font-weight:500;font-size:17px;letter-spacing:-.3px;color:#e5eddb;margin:0 0 6px}.lab-caption p{font-size:11px;color:#a7bcb0;margin:0;line-height:1.6}.lab-control{margin:22px 26px 10px;padding-top:18px;border-top:1px solid #35504a;display:flex;gap:15px;align-items:center;justify-content:space-between}.power-switch,html[data-theme=dark] .power-switch{display:flex;align-items:center;gap:9px;color:#d4e3c6;border:1px solid #58715b;background:#294233;white-space:nowrap;padding:9px 11px;font-size:10px;font-weight:500;border-radius:7px;min-height:38px}.power-switch b{font-weight:500}.power-switch>span{color:#d2e488;font-size:17px;line-height:1}.power-switch[aria-pressed=true],html[data-theme=dark] .power-switch[aria-pressed=true]{background:#cee294;color:#203322;border-color:#cee294}.power-switch[aria-pressed=true]>span{color:#203322}.lab-control>span{font-size:9px;color:#afc0b0;text-align:right;max-width:210px;line-height:1.7}.lab-model{display:block;text-align:center;font-size:8px;color:#7d9c8d;letter-spacing:.3px;padding:3px 0 19px}.light-elements{opacity:.07;transition:opacity .5s}.light-on .light-elements{opacity:1}.spectrum-ray{stroke-dasharray:300;stroke-dashoffset:300;transition:stroke-dashoffset 1.2s .15s}.light-on .spectrum-ray{stroke-dashoffset:0}.spectrum-halo{opacity:0;transition:opacity 1.3s .3s}.light-on .spectrum-halo{opacity:.18}.incoming-glow{opacity:.45}.light-particle{opacity:0}.light-on .light-particle{animation:light-travel 2.6s infinite linear}.light-on .incoming-glow{animation:beam-breathe 4s infinite ease-in-out}.current-flow{opacity:0}.light-on .current-flow{opacity:1;animation:current-flow 2s infinite linear}.bulb-aura{opacity:0;transition:opacity .6s}.light-on .bulb-aura{opacity:1}.light-on .filament{stroke:#ffe7a0;filter:drop-shadow(0 0 5px #ffe7a0)}.switch-arm{transform-origin:270px 300px;transition:transform .35s}.light-on .switch-arm{transform:rotate(24deg)}
@keyframes light-travel{0%{transform:translateX(0);opacity:0}15%{opacity:1}80%{opacity:1}100%{transform:translateX(195px);opacity:0}}@keyframes beam-breathe{0%,100%{opacity:.35}50%{opacity:.6}}@keyframes current-flow{to{stroke-dashoffset:-76}}@keyframes form-reveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.home-signin{animation:form-reveal .6s ease both;max-width:380px}.home-signin .back-to-discovery{font-size:11px;padding:4px 0;margin-bottom:20px;color:var(--muted);display:block;min-height:26px}.home-signin>.eyebrow{font-size:9px}.home-signin h2{font-family:Georgia,serif;font-size:clamp(34px,3.5vw,49px);font-weight:400;line-height:1.12;letter-spacing:-1.4px;margin:14px 0}.home-signin>p{font-size:13px;color:var(--muted);line-height:1.7}.home-signin label{font-size:12px;margin:15px 0 6px}.home-signin input{font-size:14px;background:var(--surface);border-color:#c6d1c0;min-height:46px;padding:12px}.home-signin .primary{padding:13px}.home-signin .login-error{margin:8px 0;min-height:16px}.local-privacy{font-size:10px!important;line-height:1.7!important;margin-top:18px}.local-privacy span{color:var(--sage);margin-right:6px}.password-field button{top:7px}.home-bottom{border-top:1px solid var(--line);padding:33px 0;display:grid;grid-template-columns:1.05fr 1fr .75fr;gap:7%;align-items:center}.home-index{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.home-bottom h2{font:400 29px/1.25 Georgia,serif;letter-spacing:-.6px;margin:10px 0 0}.home-bottom h2 em{color:var(--sage)}.home-bottom p{font-size:12px;line-height:1.85;color:var(--muted);margin:0;max-width:300px}.home-bottom a{font-size:12px;text-decoration:none;font-weight:600;border-bottom:1px solid #9aaf87;padding:11px 0;display:flex;gap:20px;justify-content:space-between;max-width:200px}.home-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:20px 0 22px;font-size:9px;color:var(--muted)}.home-footer>span:first-child{font-size:8px;letter-spacing:2px;color:var(--sage)}
/* Shared studio language: a restrained palette, consistent regions and stronger text hierarchy. */
.sidebar,html[data-theme=dark] .sidebar,.topbar,html[data-theme=dark] .topbar,.builder-head,html[data-theme=dark] .builder-head,.inspector,html[data-theme=dark] .inspector{background:var(--surface);border-color:var(--line)}.sidebar{padding-top:28px}.nav button{font-size:13px;padding:13px 11px}.nav button.active,html[data-theme=dark] .nav button.active{background:var(--soft);color:var(--ink);border-left:3px solid var(--sage);border-radius:0 8px 8px 0}.workspace{font-size:9px;line-height:1.8}.workspace strong{font-size:12px}.topbar{font-size:12px}.content{padding:37px 40px 50px}.chapter-discovery .intro{margin-bottom:28px}.chapter-discovery h1{font:400 42px/1.12 Georgia,serif;letter-spacing:-1.3px;margin:10px 0 14px}.chapter-discovery h1 em{color:var(--sage);font-weight:400}.chapter-discovery .intro p{font-size:13px;color:var(--muted)}.collection-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--line);margin:0 0 25px;padding:0}.collection-tabs button,html[data-theme=dark] .collection-tabs button{background:transparent;border:0;border-radius:0;padding:13px 13px;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.collection-tabs button[aria-pressed=true],html[data-theme=dark] .collection-tabs button[aria-pressed=true]{border-bottom-color:var(--sage);color:var(--ink)}.collection-tabs button span{font-size:10px;border-radius:4px;background:var(--soft);padding:2px 5px;margin-left:7px;color:var(--sage)}.collection-tabs>span{margin-left:auto;font-size:10px;color:var(--muted)}.grade-picker,html[data-theme=dark] .grade-picker{background:var(--surface);border-color:var(--line);padding:21px 23px;border-radius:var(--radius)}.grade-picker h2,.subject-picker h2,.collection-heading h2{font-size:17px;font-weight:600;letter-spacing:-.4px}.selection-step,html[data-theme=dark] .selection-step{background:var(--soft);color:var(--sage);font-size:10px;width:26px;height:26px}.grade-options{gap:7px;margin-top:18px}.grade-choice,html[data-theme=dark] .grade-choice{background:var(--paper);padding:8px;min-width:46px;border:1px solid var(--line);border-radius:7px}.grade-choice strong{font-size:18px;font-weight:600}.grade-choice small{font-size:7px}.grade-choice.selected,html[data-theme=dark] .grade-choice.selected{background:var(--sage);border-color:var(--sage);color:var(--surface)}.grade-choice.selected small,html[data-theme=dark] .grade-choice.selected small{color:var(--surface);opacity:.85}.subject-options{display:flex;flex-wrap:wrap;gap:10px}.subject-choice,html[data-theme=dark] .subject-choice{flex:1;min-width:125px;max-width:230px;border-radius:11px;background:var(--surface);border-color:var(--line);padding:14px}.subject-symbol,html[data-theme=dark] .subject-symbol{width:31px;height:31px;border-radius:8px;background:var(--soft);color:var(--sage);font-size:22px;margin-bottom:12px}.subject-choice b{font-size:13px;font-weight:600}.subject-choice>span:not(.subject-symbol){font-size:10px;line-height:1.6}.subject-choice small{font-size:10px;margin-top:12px;color:var(--sage)}.subject-choice.selected,html[data-theme=dark] .subject-choice.selected{background:var(--soft);box-shadow:0 0 0 1px var(--sage);border-color:var(--sage)}.subject-choice.selected .subject-symbol,html[data-theme=dark] .subject-choice.selected .subject-symbol{color:var(--ink);background:var(--surface)}.collection-heading{margin-top:29px}.collection-heading .pill{font-size:10px;margin-left:10px;font-weight:400;white-space:nowrap}.toolbar{justify-content:space-between;margin-bottom:12px;align-items:center}.toolbar input{max-width:380px;min-height:41px;font-size:12px;background:var(--surface);border-color:var(--line)}.catalogue-explainer{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 19px}.catalogue-explainer span{color:var(--sage);margin-right:5px}.catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.chapter-card,html[data-theme=dark] .chapter-card{border-radius:12px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s}.chapter-card:hover{border-color:#9eaf92;box-shadow:0 5px 18px #16352508}.chapter-card-top{padding:15px 18px 0;display:flex;justify-content:space-between;gap:8px;align-items:center}.chapter-subject{color:var(--sage);font-size:10px;font-weight:650}.chapter-grade{font-size:8px;letter-spacing:.8px;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:3px 6px}.chapter-info{padding:18px;flex:1;display:flex;flex-direction:column}.chapter-number{font:400 29px/1 Georgia,serif;color:#8d9e80}.chapter-number>span{font:8px/1.4 'Segoe UI',sans-serif;letter-spacing:1px;margin-left:5px;color:var(--muted)}.chapter-info h3{font-size:17px;font-weight:600;line-height:1.45;letter-spacing:-.35px;margin:15px 0 8px;min-height:49px}.chapter-info p{font-size:11px;line-height:1.65;color:var(--muted);margin-bottom:9px;min-height:0}.ncert-source{font-size:10px;text-decoration:none;margin:0 0 13px;align-self:flex-start}.ncert-source:hover{text-decoration:underline}.chapter-state{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-top:auto;padding:6px 0 17px}.state-dot{width:5px;height:5px;border-radius:50%;background:#a3ada0;flex-shrink:0}.state-dot.ready{background:#6d8e31}.chapter-info .actions{padding-top:12px;gap:8px;justify-content:space-between;flex-wrap:wrap}.chapter-info .actions .pill{font-size:8px;letter-spacing:.6px}.chapter-info .actions button{font-size:10px;min-height:32px;padding:6px 8px}.load-more{grid-column:1/-1;text-align:center;display:flex;align-items:center;justify-content:center;gap:16px;padding:20px;color:var(--muted);font-size:11px}.load-more button{font-size:12px}.chapter-discovery .empty,html[data-theme=dark] .chapter-discovery .empty{background:var(--surface)}.pill{color:var(--muted)}.builder-title{font-size:18px}.builder-head small{font-size:11px}.outline,html[data-theme=dark] .outline{background:var(--paper)}.block-item,html[data-theme=dark] .block-item{background:var(--surface)}.block-item.active,html[data-theme=dark] .block-item.active{background:var(--soft);border-color:var(--sage)}.block-item b{font-size:12px}.block-item small{font-size:10px}.block-type,html[data-theme=dark] .block-type{background:var(--soft);color:var(--sage)}.canvas-area,html[data-theme=dark] .canvas-area{background:var(--soft)}.canvas-meta{font-size:9px;color:var(--muted)}.inspector>p{font-size:12px}.inspector label{font-size:12px}.inspector input,.inspector select,.inspector textarea{font-size:13px}.canvas-controls button{font-size:12px}.text-slide h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.6px}.text-slide p{font-size:21px}.asset-card,html[data-theme=dark] .asset-card{background:var(--surface)}.asset-icon,html[data-theme=dark] .asset-icon{background:var(--soft);color:var(--sage)}.modal-body p{font-size:13px;line-height:1.8}.modal-body input,.modal-body select,.modal-body textarea{font-size:14px}dialog{background:var(--surface)}.status,html[data-theme=dark] .status{background:var(--soft);color:var(--sage)}html[data-theme=dark] .home-copy h1 em{color:#bed095}html[data-theme=dark] .discovery-lab{border-color:#3c5548}html[data-theme=dark] .home-signin input{border-color:var(--line)}html[data-theme=dark] .home-nav>.small{border-color:var(--line);background:transparent}html[data-theme=dark] .chapter-number{color:#adbe94}html[data-theme=dark] .grade-choice.selected{color:#1b2d26}html[data-theme=dark] .grade-choice.selected small{color:#1b2d26}
@media(min-width:1600px){.discovery-home{padding-left:max(5.1%,calc((100vw - 1450px)/2));padding-right:max(5.1%,calc((100vw - 1450px)/2))}.home-hero{min-height:740px}}
@media(max-width:1100px){.home-hero{gap:4%;grid-template-columns:.9fr 1.1fr;min-height:590px;padding:44px 0}.home-copy h1{font-size:61px;letter-spacing:-2.8px}.home-kicker{font-size:7px;letter-spacing:1px}.home-description{font-size:13px}.home-cta{gap:13px}.home-cta>span{font-size:11px}.home-proof{gap:12px;font-size:9px}.lab-top{padding:18px 16px 0;flex-wrap:wrap;gap:13px}.lab-tabs{margin-left:auto}.lab-caption{padding:0 20px}.lab-caption h3{font-size:15px}.lab-control{margin-inline:20px;flex-wrap:wrap;gap:12px}.lab-control>span{text-align:left;max-width:none}.home-nav>span{display:none}.content{padding:30px 25px}.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-tabs>span{display:none}.subject-choice{min-width:125px}.subject-picker .section-head{align-items:flex-start}.subject-picker .section-head>.pill{max-width:230px;text-align:right}.collection-heading{flex-wrap:wrap}.collection-heading .pill{margin-left:4px}.home-bottom{gap:5%;grid-template-columns:1fr 1fr .8fr}.home-bottom h2{font-size:25px}}
@media(max-width:760px){.discovery-home{padding:0 22px}.home-header{min-height:84px}.home-brand{font-size:21px;gap:6px}.home-brand>span{left:34px;font-size:6px}.home-brand em{font-size:27px}.home-nav{gap:7px}.home-nav .small{display:none}.home-hero{grid-template-columns:1fr;gap:34px;padding:36px 0;min-height:auto}.home-copy{max-width:520px}.home-copy h1{font-size:64px;line-height:1.03}.home-description{max-width:400px;font-size:14px}.home-kicker{font-size:8px}.home-proof{margin-top:26px}.discovery-lab{max-width:600px;width:100%;margin:auto}.lab-top{flex-wrap:nowrap}.lab-label{font-size:8px}.lab-caption h3{font-size:17px}.lab-control{flex-wrap:nowrap}.lab-control>span{max-width:180px;text-align:right}.home-signin{max-width:100%}.home-signin h2{font-size:43px}.home-signin #login-form{max-width:420px}.home-bottom{grid-template-columns:1fr 1fr;gap:22px;padding:28px 0}.home-bottom>div{grid-column:1/-1}.home-bottom h2{font-size:29px}.home-bottom p{font-size:12px}.home-bottom a{font-size:11px}.home-footer{flex-wrap:wrap;font-size:8px;gap:12px}.home-footer>span:nth-child(2){display:none}.content{padding:26px 17px}.chapter-discovery h1{font-size:33px}.chapter-discovery .intro{align-items:flex-start;flex-wrap:wrap}.grade-picker{padding:18px}.grade-options{gap:6px}.grade-choice{min-width:42px;flex:auto}.subject-choice,html[data-theme=dark] .subject-choice{min-width:calc(50% - 5px);max-width:none;flex:1}.subject-picker .section-head>.pill{display:none}.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.chapter-info{padding:14px}.chapter-card-top{padding:13px 14px 0}.chapter-info h3{font-size:15px}.collection-heading h2{font-size:16px}.collection-heading .pill{display:block;margin:4px 0 0}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none}.topbar{padding-inline:17px}.home-cta>span{font-size:12px}.chapter-info .actions .pill{display:none}}
@media(max-width:440px){.home-copy h1{font-size:53px;letter-spacing:-2.6px}.home-kicker{font-size:6.8px;letter-spacing:.8px}.home-cta{gap:12px}.home-cta .primary{min-width:168px;font-size:12px;padding:13px 15px}.home-cta>span{font-size:11px}.home-proof{gap:11px;font-size:8px}.home-proof b{margin-right:4px}.lab-top{gap:8px;padding-inline:13px}.lab-label{font-size:6px;letter-spacing:1px}.lab-tabs button,html[data-theme=dark] .lab-tabs button{font-size:8px;padding:5px 7px}.lab-control{gap:8px;margin-inline:17px}.power-switch{font-size:9px}.lab-control>span{font-size:8px;max-width:130px}.lab-caption{padding-inline:17px;gap:12px}.lab-caption h3{font-size:15px}.lab-caption p{font-size:10px}.home-bottom{grid-template-columns:1fr}.home-bottom a{max-width:100%}.home-bottom>div{grid-column:auto}.catalogue-grid{grid-template-columns:1fr}.chapter-info h3{min-height:0}.collection-tabs button{padding:12px 8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.light-on .light-particle{opacity:0}.home-signin{opacity:1;transform:none}}
html[data-theme=dark] a{color:var(--sage)}html[data-theme=dark] .home-brand{color:var(--ink)}

/* Lesson and resource preview */
.lesson-preview-modal{width:min(1120px,96vw);max-width:1120px}.lesson-preview-modal .modal-body{max-height:82vh}.lesson-preview-modal:fullscreen{width:100vw;max-width:none;height:100vh;border-radius:0}.lesson-preview-modal:fullscreen .modal-body{max-height:calc(100vh - 82px)}.preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.preview-heading h3{font-size:23px;line-height:1.3;margin:8px 0}.preview-heading .muted{font-size:12px}.preview-state{font-size:10px;background:var(--soft);color:var(--sage);border-radius:6px;padding:6px 9px;white-space:nowrap}.preview-navigation{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0}.preview-navigation button{font-size:12px}.preview-jumps{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.preview-current,html[data-theme=dark] .preview-current{background:var(--sage);color:var(--surface);border-color:var(--sage)}.preview-teacher-notes{font-size:12px;margin-top:16px;color:var(--muted)}.preview-teacher-notes summary{cursor:pointer;font-weight:600}.preview-teacher-notes p{white-space:pre-wrap}#preview-content .canvas iframe{height:clamp(340px,55vh,660px)}#preview-content .canvas{min-height:280px}.chapter-info .actions{gap:6px}.chapter-info .actions .pill{flex-basis:100%}@media(max-width:700px){.preview-heading{flex-wrap:wrap}.preview-navigation{flex-wrap:wrap}.preview-navigation>.actions{order:3;flex-basis:100%;justify-content:center}.lesson-preview-modal .modal-body{padding:16px}.preview-heading h3{font-size:20px}#preview-content .canvas iframe{height:400px}}

/* Teacher-made quiz moments */
.quiz-card{background:linear-gradient(145deg,var(--surface),var(--soft));border:1px solid var(--line);border-radius:18px;padding:clamp(22px,4vw,42px);min-height:300px}.quiz-kicker{font-size:10px;letter-spacing:.14em;color:var(--sage);font-weight:700}.quiz-card h2{font-size:clamp(22px,3vw,34px);line-height:1.2;margin:12px 0 8px;max-width:780px}.quiz-prompt{color:var(--muted);margin:0 0 22px}.quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quiz-option{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;transition:.18s ease}.quiz-option:hover{border-color:var(--sage);transform:translateY(-1px)}.quiz-option.selected{border-color:var(--sage);box-shadow:0 0 0 2px color-mix(in srgb,var(--sage) 20%,transparent)}.quiz-option.correct{background:color-mix(in srgb,#6dbb88 17%,var(--surface));border-color:#6dbb88}.quiz-option.incorrect{background:color-mix(in srgb,#d57970 13%,var(--surface));border-color:#d57970}.quiz-letter{display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:var(--soft);font-weight:700;color:var(--sage);font-size:12px}.quiz-feedback{margin-top:18px;padding:13px 15px;border-radius:10px;background:var(--soft);font-size:13px;line-height:1.5}.quiz-feedback.is-correct{border-left:3px solid #6dbb88}.quiz-feedback.is-incorrect{border-left:3px solid #d57970}.quiz-editor-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quiz-editor-options>div{min-width:0}@media(max-width:700px){.quiz-options,.quiz-editor-options{grid-template-columns:1fr}.quiz-card{padding:20px}}
.avatar-button{border:0;padding:0;cursor:pointer}.colour-control{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center}.colour-control input[type=color]{width:40px;height:32px;padding:2px}.colour-control input[type=range]{width:100%}.colour-control output{font:11px Consolas,monospace;color:var(--muted)}.account-modal{max-width:760px}.account-summary{display:flex;gap:14px;align-items:center;padding:4px 0 22px;border-bottom:1px solid var(--line)}.account-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--sage);font-weight:800;font-size:20px}.account-summary h3{margin:4px 0}.account-summary p{margin:0}.account-sections{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.account-sections section{border:1px solid var(--line);border-radius:10px;padding:15px;background:var(--surface)}.account-sections section h3{margin:6px 0}.account-sections section p{font-size:12px}.account-sections form{margin-top:10px}.account-badge{display:inline-block;background:var(--soft);color:var(--sage);border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700}@media(max-width:700px){.account-sections{grid-template-columns:1fr}}
/* Chapter subtopics */
.chapter-card.has-subtopics{cursor:pointer}
.subtopic-link{align-self:flex-start;margin:-6px 0 14px;padding:6px 10px;font-size:11px;font-weight:600;border-radius:999px;border:1px solid var(--line);background:var(--soft);color:var(--sage);display:inline-flex;align-items:center;gap:6px}
.subtopic-link b{transition:transform .2s}
.subtopic-link:hover{border-color:var(--sage)}.subtopic-link:hover b{transform:translateX(3px)}
#modal.subtopics-modal{width:min(720px,calc(100vw - 32px))}
.subtopics-intro p{margin:6px 0 4px;color:var(--muted)}
.subtopic-group{margin-top:20px}
.subtopic-group h3{display:flex;align-items:center;gap:10px;font-size:15px;margin:0 0 10px}
.subtopic-group h3 span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--sage);color:var(--surface)}
.subtopic-list{margin:0;padding:0 0 0 34px;display:grid;gap:8px}
.subtopic-list li{padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.subtopic-list li::marker{color:var(--sage);font-weight:700}
.subtopic-list b{display:block;font-size:14px;color:var(--ink)}
.subtopic-list p{margin:4px 0 0;font-size:13px;color:var(--ink);line-height:1.45}
.subtopic-list small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
/* Guided lesson template and projector presentation */
#chapter-form select[name=template]{font-size:12px}.projector-mode .player-header{background:var(--ink);color:var(--paper);border-color:transparent}.projector-mode .player-header .eyebrow{color:var(--sage)}.projector-mode .player-body{max-width:1500px;padding-inline:clamp(20px,5vw,90px)}.projector-mode .canvas,.projector-mode .canvas iframe,.projector-mode .image-frame{border-radius:18px}.projector-mode .canvas iframe{height:72vh}.projector-mode .image-frame{height:72vh}.projector-mode .text-slide{min-height:72vh;padding:clamp(50px,8vw,130px)}.projector-mode .text-slide h2{font-size:clamp(42px,6vw,84px)}.projector-mode .text-slide p{font-size:clamp(26px,3.2vw,46px);max-width:1100px}.projector-mode .quiz-card{min-height:72vh;display:flex;flex-direction:column;justify-content:center}.projector-mode .quiz-card h2{font-size:clamp(34px,5vw,70px)}.projector-mode .quiz-option{font-size:clamp(18px,2vw,28px);padding:20px}.projector-mode .canvas-controls{font-size:15px}

