:root{color-scheme:light;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;line-height:1.6;color:#193b31;background:#f4f7f4;--ink:#193b31;--muted:#526b61;--green:#196d48;--green-soft:#e9f4ec;--line:#cddcd2;--orange:#b65a20;--blue:#246e95;--cream:#fff8e9;--white:#fff}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select,summary{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{min-height:48px;border:1px solid #a5c0ad;border-radius:.65rem;padding:.65rem .9rem;background:#edf5ee;color:var(--ink);line-height:1.35;text-align:center;max-width:100%;white-space:normal;overflow-wrap:anywhere}button:hover{background:#ddeee1}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:650}button.primary:hover{background:#135536}button.ghost{background:#fff}button.active,button[aria-pressed=true]{background:#dcefe2;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,svg:focus-visible{outline:3px solid #ce8d20;outline-offset:3px}a{color:var(--green)}h1,h2,h3,h4{line-height:1.25;overflow-wrap:anywhere;margin:0 0 .85rem}h1{font-size:clamp(1.6rem,3vw,2.45rem);letter-spacing:-.025em}h2{font-size:1.55rem}h3{font-size:1.15rem}p{margin:.6rem 0 1rem;overflow-wrap:anywhere}small,.small{font-size:.84rem;line-height:1.5}.muted{color:var(--muted)}.eyebrow{color:var(--green);font-size:.76rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;margin:0 0 .6rem}label{display:block;font-weight:650;margin:.7rem 0 .35rem}input,select,textarea{width:100%;min-width:0;border:1px solid #9bb5a5;border-radius:.6rem;background:#fff;color:var(--ink);padding:.65rem .75rem;margin:0 0 .65rem;line-height:1.5}textarea{min-height:8rem;resize:vertical}input[type=checkbox]{width:auto;margin:0;accent-color:var(--green)}details{border:1px solid var(--line);border-radius:.75rem;background:#fff;margin:.8rem 0;padding:0 .95rem}summary{font-weight:650;padding:.85rem 0;min-height:48px;line-height:1.35;overflow-wrap:anywhere}details[open]>summary{border-bottom:1px solid var(--line);margin-bottom:.8rem}details>p:last-child{margin-bottom:1rem}ul,ol{padding-left:1.4rem}li{margin:.45rem 0;overflow-wrap:anywhere}.skip-link{position:fixed;left:1rem;top:-5rem;z-index:99;background:#fff;padding:.8rem}.skip-link:focus{top:1rem}.app-header{max-width:1600px;margin:auto;padding:1.45rem 1.5rem 1rem;display:flex;justify-content:space-between;gap:2rem;align-items:flex-start}.app-header>div{max-width:1000px}.app-header .subtitle{max-width:860px;margin-bottom:.3rem;color:var(--muted)}.brand{font-size:.85rem;font-weight:750;color:var(--green);white-space:nowrap;padding-top:.25rem}.principle{max-width:1570px;margin:0 1.5rem 1.1rem;padding:.85rem 1rem;background:#e8f2ea;border-left:4px solid var(--green);border-radius:0 .7rem .7rem 0;font-size:.95rem}.principle strong{font-weight:700}.layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:1.15rem;max-width:1600px;margin:0 auto;padding:0 1.5rem 2rem;align-items:start}.catalog{position:sticky;top:.8rem;max-height:calc(100vh - 1.6rem);overflow:auto;border:1px solid var(--line);border-radius:.9rem;background:#fff;padding:.9rem;margin:0}.catalog>summary{padding:.25rem 0 .6rem;font-size:1.05rem}.catalog details{background:#f7faf7}.catalog-search-label{font-size:.85rem}.catalog input{font-size:.9rem}.catalog select{font-size:.87rem}.catalog-count{font-size:.78rem;margin:.4rem 0 .7rem;color:var(--muted)}.catalog-list{display:flex;flex-direction:column;gap:.35rem}.catalog-item{display:block;width:100%;text-align:left;background:#fff;border-color:transparent;padding:.65rem .7rem;border-radius:.55rem;font-size:.89rem;line-height:1.4}.catalog-item.current{background:var(--green-soft);border-color:#8eb29a}.catalog-item small{display:block;font-size:.72rem;color:var(--muted);margin-top:.2rem}.catalog-item .progress-dot{display:inline-block;width:.43rem;height:.43rem;border-radius:50%;background:var(--green);margin-right:.4rem}.course-main{min-width:0}.lesson-topbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap;margin:0 0 .75rem}.breadcrumbs{font-size:.8rem;color:var(--muted)}.lesson-position{font-size:.78rem;color:var(--muted)}.lesson-header{padding:1.15rem 1.3rem 1rem;background:#fff;border:1px solid var(--line);border-radius:.95rem .95rem 0 0}.lesson-header h2{margin-bottom:.65rem}.lesson-condition{font-size:1.08rem;line-height:1.7;margin-bottom:.75rem}.lesson-goal{padding-left:.85rem;border-left:3px solid #89b79a;font-weight:650;margin-bottom:.25rem}.source-line{font-size:.77rem;color:var(--muted);margin:.85rem 0 .1rem}.workbench{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.9fr);align-items:start;gap:1.1rem;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 .95rem .95rem;padding:1rem 1.3rem 1.3rem}.model-panel{min-width:0}.model-frame{border:1px solid #d5e2d9;border-radius:.85rem;overflow:hidden;background:#fbfdfb}.model-caption{font-weight:650;font-size:.84rem;padding:.6rem .8rem;background:#edf5ef;border-bottom:1px solid #d5e2d9;min-height:2.65rem}.model-svg{display:block;width:100%;height:420px;touch-action:none;user-select:none;cursor:grab;background:linear-gradient(145deg,#ffffff 0%,#f6faf7 100%)}.model-svg:active{cursor:grabbing}.model-svg.plane-view{cursor:default}.model-help{font-size:.74rem;color:var(--muted);margin:.55rem .1rem .6rem}.model-controls{display:flex;flex-wrap:wrap;gap:.4rem}.model-controls button{font-size:.83rem;padding:.5rem .65rem;min-height:42px}.model-controls .rotation{flex:1 1 40px}.model-controls .plane-toggle{flex:1 1 180px}.model-controls .reset-camera{flex:1 1 110px}.model-extras{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.7rem 0;font-size:.8rem}.model-extras label{display:inline-flex;align-items:center;gap:.4rem;font-weight:400;margin:0}.legend{display:flex;flex-wrap:wrap;gap:.3rem 1rem;font-size:.72rem;margin:.6rem .1rem;color:var(--muted)}.legend span:before{display:inline-block;content:"";width:1.1rem;margin-right:.35rem;vertical-align:middle;border-top:3px solid #278253}.legend .current:before{border-color:var(--orange)}.legend .aux:before{border-color:#738b97;border-top-style:dashed}.legend .plane:before{height:.65rem;border:1px solid #80a9c0;background:#d9e9f3}.model-note{font-size:.74rem;line-height:1.45;color:var(--muted);margin:.5rem 0 0}.step-panel{min-width:0}.mode-choice{padding:1rem;border-radius:.8rem;background:#f2f7f2;border:1px solid var(--line)}.mode-choice>p{font-size:.9rem}.mode-choice>button{display:block;width:100%;margin-top:.7rem}.step-meter{font-size:.8rem;color:var(--muted);margin:0 0 .55rem;display:flex;justify-content:space-between;gap:.5rem}.step-progress{height:5px;background:#e0ebe2;border-radius:8px;overflow:hidden;margin:.6rem 0 1.15rem}.step-progress>span{display:block;height:100%;background:var(--green)}.step-card{border:1px solid var(--line);border-radius:.8rem;padding:1rem;background:#fafcfa}.step-card h3{margin-bottom:.8rem}.plane-tag{display:block;padding:.7rem .8rem;background:#e5eff5;border-left:3px solid var(--blue);border-radius:0 .5rem .5rem 0;color:#1d5674;margin:.75rem 0;font-weight:650;font-size:1rem;overflow-wrap:anywhere}.plane-label{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;display:block;color:#3d6d85;margin-bottom:.15rem}.membership{font-size:.97rem;line-height:1.65}.action-text{font-size:1rem;margin-top:.9rem}.action-button{display:block;width:100%;margin:.9rem 0 .1rem}.step-hint{background:#fffaf0;border-color:#e0cfaa;margin:.8rem 0 .1rem}.step-hint summary{font-size:.88rem}.step-hint p{font-size:.92rem}.plane-choice{display:flex;flex-direction:column;gap:.5rem;margin:.8rem 0}.plane-choice button{text-align:left;background:#fff;font-size:.94rem}.plane-choice button.correct{background:#e0f0e5;border-color:var(--green)}.plane-choice button.incorrect{background:#fff2e8;border-color:#bc7c4a}.feedback{font-size:.9rem;padding:.7rem .8rem;border-radius:.6rem;background:#eef4f8;color:#234e67;margin:.8rem 0}.feedback:empty{display:none}.feedback.good{background:#e6f4e9;color:#1d6539}.feedback.retry{background:#fff5e5;color:#7d5420}.step-note{font-size:.9rem;background:var(--cream);padding:.7rem .8rem;border-radius:.6rem;border-left:3px solid #bf9b4d;margin:.85rem 0 0}.step-navigation{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.8rem}.step-navigation button{flex:1 1 auto;font-size:.84rem}.mode-note{font-size:.76rem;color:var(--muted);margin:.7rem 0}.learning-status{font-size:.77rem;border-radius:2rem;padding:.25rem .6rem;background:#edf3ee;color:#456451}.theory-details{margin-top:.9rem}.theory-details p{font-size:.92rem}.below-model{margin-top:1rem}.history{background:#fff;border:1px solid var(--line);border-radius:.9rem;padding:1.1rem 1.3rem;margin-top:1.1rem}.history h3{font-size:1.12rem}.history-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.history-step{border-left:3px solid #96bfa3;padding:.3rem 0 .3rem 1rem}.history-step p{margin:.3rem 0 .55rem;font-size:.94rem}.history-step .history-plane{font-size:.83rem;font-weight:650;color:#2c6380}.history-step button{min-height:36px;padding:.3rem .55rem;font-size:.74rem;background:#fff}.history-step.current-history{border-left-color:var(--orange);background:#fffaf4}.history-empty{font-size:.9rem;color:var(--muted)}.task-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-top:1rem}.task-bottom>section{padding:1.1rem 1.3rem;border:1px solid var(--line);background:#fff;border-radius:.85rem;min-width:0}.task-bottom p{font-size:.94rem}.task-bottom .wide{grid-column:1/-1}.check-options{display:flex;flex-direction:column;gap:.5rem}.check-options button{text-align:left;background:#fff}.check-options button.selected{border-color:var(--green);background:#e6f2e9}.answer-form{margin-top:1rem}.answer-form label{font-size:.94rem}.answer-form .input-row{display:flex;gap:.6rem;align-items:flex-start}.answer-form .input-row input{flex:1 1 140px;width:100px}.answer-form .input-row button{flex:0 0 auto}.answer-format{font-size:.77rem!important;color:var(--muted)}.result-details{background:#f7fbf8}.result-details p{font-size:.97rem}.teacher-note{font-size:.8rem!important;color:var(--muted)}.task-notes{padding:.8rem 1rem;background:var(--cream);border:1px solid #e6d5ad;border-radius:.7rem;margin:1rem 0}.task-notes p{font-size:.88rem;margin:.4rem 0}.lesson-navigation{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:1.3rem 0}.lesson-navigation button{max-width:48%;font-size:.91rem}.app-footer{max-width:1600px;margin:0 auto;padding:0 1.5rem 1.5rem;color:var(--muted);font-size:.77rem}.storage-alert{padding:.8rem 1rem;background:#fff3df;border:1px solid #d9bb7c;border-radius:.7rem;margin:1rem 1.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.fraction{display:inline-flex;flex-direction:column;text-align:center;vertical-align:middle;line-height:1.13;margin:0 .13em;font-size:.97em}.fraction .numerator{padding:0 .16em .13em;border-bottom:1.4px solid currentColor;white-space:nowrap}.fraction .denominator{padding:.13em .16em 0;white-space:nowrap}.model-label{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:600;font-size:20px;paint-order:stroke;stroke:#fff;stroke-width:4.5;stroke-linejoin:round;fill:#294a40}.model-label.focused{fill:#984518;font-weight:750}.model-point{fill:#3d6251;stroke:#fff;stroke-width:1.3}.model-point.focused{fill:#bd6028}.model-edge{stroke:#738879;stroke-width:1.65;fill:none;stroke-linecap:round}.model-edge.hidden{stroke:#9caf9f;stroke-dasharray:6 5;stroke-width:1.4}.model-edge.ghost{stroke:#cbd8ce;stroke-width:1.2}.model-segment{stroke:#278253;stroke-width:3.2;fill:none;stroke-linecap:round}.model-segment.helper{stroke:#6c8493;stroke-width:2;stroke-dasharray:7 5}.model-segment.current{stroke:#c06329;stroke-width:3.8}.model-plane{fill:#b8d4e8;fill-opacity:.36;stroke:#649bc0;stroke-opacity:.6;stroke-width:1.2}.model-final{fill:#89c99e;fill-opacity:.25;stroke:#278253;stroke-width:2}.model-leader{stroke:#9caea1;stroke-width:.85;fill:none}.app-error{margin:2rem;padding:1.5rem;border:1px solid #c59557;background:#fff6e6;border-radius:.9rem}

/* Master course metadata, reasoning gates and the retained calculation trail. */
.catalog-filters{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.catalog-filters select{font-size:.75rem;padding:.55rem .35rem}.lesson-tags{display:flex;flex-wrap:wrap;gap:.35rem .5rem;margin:.3rem 0 .8rem}.lesson-tags span{font-size:.73rem;line-height:1.4;padding:.25rem .55rem;border-radius:2rem;background:#eef4ef;color:#416152}.lesson-tags .level-tag{background:#e1eee5;color:#1e6846;font-weight:700}.lesson-tags .skill-tag{background:#f2f5f2}.source-line{max-width:100%}.model-extras .clean-view{min-height:36px;padding:.35rem .65rem;font-size:.76rem;margin-left:auto}.plane-definition{font-size:.89rem;color:#315f74;background:#f0f6f9;padding:.65rem .75rem;border-radius:.55rem}.step-question{margin-top:.75rem}.step-question h4{margin-top:1rem;font-size:1rem}.reason-choice{display:flex;flex-direction:column;gap:.5rem;margin:.75rem 0}.reason-choice button{text-align:left;background:#fff;font-size:.91rem}.reason-choice button.incorrect{background:#fff3e7;border-color:#bc7c4a}.reason-explanation{font-size:.89rem;padding:.65rem .75rem;border-left:3px solid #85ad95;background:#edf5ef}.practice-step{width:100%;margin-top:.85rem;font-size:.86rem}.calculations{background:#f9fcfa}.calculation-list{margin-top:.8rem}.calculation-step{border-left-color:#76a28b}.calculation-expression{font-size:1.05rem!important;font-weight:650;padding:.65rem .8rem;background:#edf5ef;border-radius:.55rem;line-height:1.8;overflow-x:auto}.calculation-next{margin-top:.8rem}.takeaway{background:#edf6ef!important}.takeaway h3{font-size:1rem}.proof-checklist{border-top:1px solid var(--line);margin-top:1rem;padding-top:.85rem}.proof-checklist h4{font-size:.93rem;margin-bottom:.3rem}.proof-checklist label{display:flex;align-items:flex-start;gap:.6rem;font-size:.86rem;font-weight:400;line-height:1.5;margin:.6rem 0}.proof-checklist input{flex:0 0 auto;margin-top:.25rem;width:1rem;height:1rem}.model-label{pointer-events:none}.model-leader{pointer-events:none}
@media(min-width:1600px){.principle{margin-left:auto;margin-right:auto}}
@media(max-width:1150px){.layout{grid-template-columns:230px minmax(0,1fr);padding:0 1rem 2rem}.workbench{grid-template-columns:1fr;gap:.9rem}.model-svg{height:410px}.model-panel{max-width:none}.step-panel{padding-top:.2rem}.app-header{padding:1.3rem 1rem .8rem}.principle{margin-left:1rem;margin-right:1rem}.task-bottom{grid-template-columns:1fr}.task-bottom .wide{grid-column:auto}}
@media(max-width:760px){:root{font-size:18px}.app-header{padding:1rem .75rem .6rem;gap:1rem}.brand{font-size:.76rem}.app-header h1{font-size:1.7rem}.app-header .subtitle{font-size:.9rem}.principle{margin:.3rem .75rem .8rem;font-size:.88rem;padding:.75rem .8rem}.layout{display:block;padding:0 .65rem 1.5rem}.catalog{position:static;max-height:none;margin-bottom:1rem;padding:.7rem .9rem}.catalog>summary{padding:.25rem 0}.catalog[open] .catalog-list{max-height:360px;overflow:auto}.lesson-header{padding:1rem}.lesson-header h2{font-size:1.35rem}.lesson-condition{font-size:1rem}.workbench{padding:.85rem;gap:.8rem}.model-svg{height:350px}.model-caption{font-size:.81rem}.model-controls button{font-size:.79rem}.step-card{padding:.85rem}.task-bottom>section,.history{padding:1rem}.history-step{padding-left:.8rem}.task-bottom{gap:.8rem}.app-footer{padding:0 .85rem 1.2rem}.lesson-position{display:none}.lesson-navigation button{padding:.65rem .75rem;font-size:.83rem}.answer-form .input-row{flex-wrap:wrap}.answer-form .input-row input{width:100%;flex-basis:100%;margin-bottom:0}.answer-form .input-row button{width:100%}.model-label{font-size:19px}.model-help{font-size:.72rem}.plane-choice button{min-height:50px}}
@media(max-width:390px){.app-header{display:block}.brand{display:none}.model-controls{gap:.3rem}.model-controls button{padding:.45rem}.workbench{padding:.7rem}.step-card{padding:.7rem}.model-svg{height:325px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{body{background:#fff;font-size:12pt}.skip-link,.catalog,.model-controls,.model-extras,.mode-choice,.step-navigation,.lesson-navigation,.answer-form button,.check-options button,.history-step button,.brand,.app-footer,.model-help,.step-hint{display:none!important}.layout,.workbench,.task-bottom{display:block;padding:0}.app-header,.principle{padding:.5rem 0;margin:0 0 .7rem}.lesson-header,.workbench,.history,.task-bottom>section{border:0;padding:.5rem 0;break-inside:avoid}.model-svg{height:400px;max-width:650px}.step-card{border:0}.app-header h1{font-size:20pt}.app-header .subtitle{display:none}.model-panel{max-width:680px;margin:auto}.history-step{break-inside:avoid}.teacher-note{display:block}.task-bottom>section{margin-top:1rem}.storage-alert{display:none}}

@media(max-width:760px){.catalog-filters{grid-template-columns:1fr 1fr}.catalog-filters select{font-size:.85rem;padding:.6rem}.lesson-tags{gap:.35rem}.lesson-tags span{font-size:.72rem}.calculation-expression{font-size:.98rem!important}.reason-choice button{min-height:50px}.proof-checklist label{font-size:.87rem}.model-extras .clean-view{margin-left:0}}
@media print{.practice-step,.clean-view,.calculation-next,.reason-choice button{display:none!important}.calculations{border:0;background:#fff}.calculation-step{break-inside:avoid}.proof-checklist input{appearance:none;width:.8rem;height:.8rem;border:1px solid #789581}.catalog-filters{display:none}}

/* Calm presentation for introductory and intermediate scaffolded cards. */
.starter-layout{grid-template-columns:minmax(0,1fr);max-width:1360px}
.starter-layout .catalog{position:static;max-height:none;padding:.65rem 1rem}
.starter-layout .catalog[open] .catalog-list{max-height:300px;overflow:auto}
.starter-layout .catalog>summary{padding:.2rem 0;font-size:.88rem}
.starter-lesson .lesson-position{display:none}
.starter-lesson .lesson-header{padding:1rem 1.3rem}
.starter-lesson .lesson-header h2{font-size:1.55rem;margin-bottom:.65rem}
.starter-phase{display:inline-block;margin:0 0 .7rem;padding:.25rem .65rem;border-radius:1rem;background:#e4f1e8;color:#23603d;font-size:.8rem;font-weight:700}
.starter-lesson .lesson-condition{max-width:52rem;font-size:1.08rem;line-height:1.7}
.starter-lesson .lesson-goal{font-size:.95rem;margin:.45rem 0}
.starter-lesson .workbench{grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr);gap:1.35rem}
.starter-lesson .model-svg{height:440px}
.starter-lesson .model-controls .plane-toggle{flex:1 1 180px}
.starter-lesson .legend{font-size:.76rem;gap:.35rem .85rem}
.starter-lesson .mode-choice,.starter-lesson .step-card{padding:1.1rem}
.starter-lesson .mode-choice>p,.starter-lesson .step-card>p{font-size:1rem;line-height:1.7}
.starter-lesson .step-card>h3{font-size:1.18rem}
.starter-lesson .plane-choice button,.starter-lesson .reason-choice button{font-size:1rem;min-height:54px;line-height:1.55;padding:.7rem .9rem}
.starter-lesson .starter-support{background:#fff5de;border-left:3px solid #c69c41;padding:.75rem .9rem;border-radius:0 .5rem .5rem 0;color:#614d22}
.starter-lesson .starter-other-mode,.starter-lesson .starter-repeat{background:#fff;margin:.85rem 0 0}
.starter-other-mode summary,.starter-repeat summary{font-size:.83rem;font-weight:500}
.starter-other-mode button{width:100%;margin-bottom:.8rem}
.starter-lesson .starter-glossary p{font-size:.96rem;line-height:1.65;margin:.6rem 0 .9rem}
.starter-lesson .mode-note{font-size:.8rem;line-height:1.6}
.starter-lesson .history-step p{line-height:1.7}
.starter-lesson .task-bottom{display:block}
.starter-lesson .task-bottom>section{margin-bottom:1rem}
.starter-lesson .starter-draft{margin:1rem 0}
.starter-draft section{padding:.1rem 0 .6rem}
.starter-lesson .starter-metadata{font-size:.78rem;color:var(--muted)}
.starter-lesson .starter-metadata summary{font-size:.78rem;font-weight:500}
.starter-lesson .lesson-navigation{align-items:stretch}
.starter-lesson .lesson-navigation button{flex:1 1 0}
@media(max-width:1000px){.starter-lesson .workbench{grid-template-columns:minmax(0,1fr)}.starter-lesson .model-svg{height:410px}}
@media(max-width:760px){.starter-lesson .lesson-header{padding:.95rem}.starter-lesson .lesson-header h2{font-size:1.3rem}.starter-lesson .lesson-condition{font-size:1rem}.starter-lesson .model-svg{height:350px}.starter-lesson .workbench{padding:.8rem;gap:.85rem}.starter-lesson .mode-choice,.starter-lesson .step-card{padding:.85rem}.starter-lesson .plane-choice button,.starter-lesson .reason-choice button{font-size:.97rem}.starter-lesson .lesson-navigation button{font-size:.85rem;padding:.65rem}.starter-lesson .legend{font-size:.72rem}.starter-layout .catalog{margin-bottom:.7rem}}
@media(max-width:390px){.starter-lesson .model-svg{height:325px}.starter-lesson .workbench{padding:.65rem}.starter-lesson .step-card{padding:.75rem}.starter-lesson .model-controls .reset-camera{font-size:.77rem}}
@media print{.starter-layout .catalog,.starter-lesson .starter-metadata,.starter-lesson .starter-repeat,.starter-lesson .starter-other-mode{display:none!important}.starter-lesson .workbench{display:block}.starter-lesson .model-svg{height:410px}}

[hidden]{display:none!important}.master-nav{display:flex;gap:.45rem;flex-wrap:wrap;max-width:1570px;margin:0 auto 1.15rem;padding:0 1.5rem}.master-nav button{flex:1 1 120px;background:#fff;font-weight:650;font-size:.88rem;min-height:48px}.master-nav button.active{background:#196d48;color:#fff;border-color:#196d48}.master-portal{max-width:1570px;margin:0 auto 2rem;padding:0 1.5rem}.master-section-heading{max-width:1040px;margin:1rem 0 1.4rem}.master-section-heading h2{font-size:clamp(1.55rem,3vw,2.25rem)}.master-section-heading p{margin-bottom:.5rem}.master-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.7fr);gap:2rem;align-items:center;background:#e7f2e9;border:1px solid #bad1c1;border-radius:1.1rem;padding:1.6rem;margin-bottom:1.2rem}.master-hero h3{font-size:1.35rem}.master-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.master-stat-grid>div{background:#ffffffb0;border-radius:.7rem;padding:.9rem}.master-stat-grid strong{display:block;font-size:2rem;line-height:1.2;color:#196d48}.master-stat-grid span{display:block;font-size:.78rem;margin-top:.3rem;color:#426351}.master-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:start;margin:.8rem 0}.master-actions button{flex:1 1 200px}.master-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:1rem;margin:1rem 0}.master-card{padding:1.2rem;background:#fff;border:1px solid var(--line);border-radius:.9rem;min-width:0}.master-card h3{font-size:1.17rem}.master-card p,.master-card li{font-size:.92rem}.master-card .eyebrow{font-size:.71rem}.master-card button{display:block;width:100%;margin-top:.65rem;font-size:.87rem}.master-card details{padding:0 .65rem}.master-card summary{font-size:.85rem}.master-panel{padding:1.25rem;background:#fff;border:1px solid var(--line);border-radius:.9rem;margin:1rem 0;min-width:0}.master-divider-title{font-size:1.4rem;margin:1.8rem 0 1rem}.route-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:.45rem;max-height:550px;overflow:auto}.route-link{text-align:left;background:#fff;font-size:.85rem}.master-footnote{font-size:.83rem;color:var(--muted);margin:1.5rem 0}.drill-card{max-width:950px;margin-left:auto;margin-right:auto}.drill-prompt{font-size:1.2rem;line-height:1.8;margin:1rem 0 1.3rem}.drill-model{max-width:700px;margin:1rem auto}.drill-model .model-svg{height:340px}.drill-form{max-width:650px}.drill-form input{font-size:1.2rem}.drill-form button{min-width:170px}.drill-solution{line-height:1.85;background:#f7faf6;border-radius:.7rem;padding:1rem 1rem 1rem 2.1rem}.drill-solution li{padding:.35rem 0}.next-drill{margin-top:1.1rem}.drill-history-row{border-bottom:1px solid var(--line);padding:.7rem 0}.drill-history-row:last-child{border-bottom:0}.return-task{margin:.3rem 0 1rem}.lab-question{font-weight:650;border-left:3px solid #448665;padding-left:.9rem}.lab-settings{display:block}.lab-settings input[type=range]{accent-color:#196d48;min-height:36px;padding:0;max-width:850px;margin:.5rem 0}.lab-settings output{display:block;font-weight:650;font-size:.95rem;margin:.2rem 0 .8rem}.critical-levels{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin:.7rem 0 1rem}.critical-levels p{flex:1 0 100%;margin-bottom:.3rem}.critical-levels button{min-width:56px;min-height:44px;padding:.4rem .7rem}.lab-workbench{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:1rem;align-items:start}.lab-workbench .master-panel{margin:0}.lab-step-panel>button{width:100%;margin-top:.8rem}.lab-measures{font-weight:650}.lab-model-panel{padding:.8rem}.lab-model-panel .model-svg{height:430px}.master-table{border-collapse:collapse;width:100%;font-size:.86rem;line-height:1.5}.master-table th,.master-table td{border-bottom:1px solid var(--line);padding:.7rem .8rem;vertical-align:top;text-align:left}.master-table th{background:#edf4ee;color:#254f39}.table-scroll{max-width:100%;overflow:auto;margin:.6rem 0}.exam-question{max-width:950px;margin-left:auto;margin-right:auto}.exam-review{border-left:4px solid #bc8a54;padding:.6rem 1rem;margin:1.2rem 0;background:#fffaf2;border-radius:0 .5rem .5rem 0}.exam-review.correct{border-color:#72a87e;background:#f0f8f1}.exam-review p{font-size:.94rem}.proof-record{white-space:pre-wrap;background:#f7faf7;padding:1rem;border-radius:.6rem}.source-card{padding:.7rem 0;border-bottom:1px solid var(--line)}.source-card:last-child{border-bottom:0}.source-card h4{margin-bottom:.6rem}.master-portal textarea{min-height:9rem}.master-portal input[type=range]:focus-visible{outline-offset:5px}.master-portal .feedback>p:last-child{margin-bottom:.2rem}.master-portal .feedback>p:first-child{margin-top:.2rem}.master-portal #drill-answer,.master-portal #exam-answer{min-height:56px}
@media(max-width:1000px){.master-hero{grid-template-columns:1fr;gap:1rem}.master-stat-grid{grid-template-columns:repeat(4,1fr)}.lab-workbench{grid-template-columns:1fr}.lab-step-panel .plane-tag{margin-top:.5rem}.master-nav,.master-portal{padding-left:1rem;padding-right:1rem}.master-card{padding:1rem}}
@media(max-width:650px){.master-nav,.master-portal{padding-left:.65rem;padding-right:.65rem}.master-nav{gap:.35rem}.master-nav button{flex:1 1 90px;font-size:.8rem;padding:.6rem .4rem}.master-hero{padding:1rem;border-radius:.8rem}.master-hero h3{font-size:1.15rem}.master-stat-grid{grid-template-columns:1fr 1fr;gap:.55rem}.master-stat-grid strong{font-size:1.65rem}.master-panel{padding:1rem}.master-section-heading h2{font-size:1.6rem}.master-section-heading p{font-size:.94rem}.master-grid{gap:.8rem}.drill-prompt{font-size:1.07rem;line-height:1.8}.lab-model-panel{padding:.65rem!important}.lab-model-panel .model-svg{height:335px}.lab-step-panel{padding:.9rem!important}.master-table{font-size:.78rem;min-width:480px}.master-actions button{flex-basis:100%}.master-card p,.master-card li{font-size:.9rem}.drill-model .model-svg{height:310px}}
@media print{.master-nav,.master-actions,.master-portal button,.master-portal select,.master-portal input[type=range]{display:none!important}.master-portal{padding:0}.master-hero,.master-grid,.lab-workbench{display:block}.master-panel,.master-card{break-inside:avoid;border:0}.master-table{font-size:10pt;min-width:0}.table-scroll{overflow:visible}}
.gentle-stage,.gentle-readiness{max-width:1080px;margin:1rem auto;padding:1.5rem}.gentle-stage h3{font-size:clamp(1.5rem,3vw,2rem)}.gentle-new-idea{font-size:1.1rem;line-height:1.8;max-width:850px}.gentle-start{width:100%;font-size:1.1rem;padding:1rem;margin:.7rem 0}.gentle-lesson-list{list-style:none;padding:0;margin:1rem 0}.gentle-lesson-list li{padding:.8rem 0;border-bottom:1px solid var(--line)}.gentle-lesson-list button{width:100%;text-align:left;font-size:1rem;line-height:1.55;padding:.8rem}.gentle-lesson-list p{margin:.45rem .2rem 0}.gentle-ready-check{display:flex;align-items:flex-start;gap:.8rem;padding:.7rem 0;font-weight:400;line-height:1.7;cursor:pointer}.gentle-ready-check input{flex:0 0 auto;width:22px;height:22px;margin:.25rem 0;accent-color:#196d48}.gentle-path-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:.8rem}.gentle-path-list li{border:1px solid var(--line);border-radius:.7rem;padding:.6rem}.gentle-path-list button{width:100%;text-align:left;line-height:1.5}.gentle-path-list p{margin:.5rem .2rem}.gentle-full-catalog>.master-section-heading{margin-top:1rem}@media(max-width:650px){.gentle-stage,.gentle-readiness{padding:1rem}.gentle-new-idea{font-size:1.02rem}.gentle-start{font-size:1rem}.gentle-ready-check{font-size:.97rem}.gentle-stage details,.gentle-readiness details{padding-left:.7rem;padding-right:.7rem}}




/* A concise entrance preserves the full course behind the same controls. */
.app-header{padding-top:1rem;padding-bottom:.65rem}
.app-header h1{font-size:clamp(1.65rem,3vw,2.2rem);margin-bottom:.4rem}
.app-header .eyebrow{margin-bottom:.35rem}
.app-header .subtitle{margin-top:.35rem;font-size:.95rem}
.principle.principle-compact{padding:0 .85rem;margin-top:0;margin-bottom:.75rem}
.principle-compact>summary{padding:.55rem 0;min-height:44px;font-size:.9rem}
.principle-compact>p{font-size:.92rem;max-width:70rem}
.master-nav{margin-bottom:.75rem}
.master-section-heading{margin-bottom:.65rem}
.master-section-heading h2{font-size:1.4rem;margin-bottom:.35rem}
.master-section-heading>p{margin:.3rem 0}
.gentle-stage{margin-top:.75rem;padding:1.15rem}
.gentle-stage h3{font-size:clamp(1.35rem,2.5vw,1.8rem);margin-bottom:.6rem}
.gentle-new-idea{font-size:1rem;line-height:1.6;margin:.4rem 0}
.gentle-start{min-height:48px;padding:.75rem;margin:.65rem 0 .3rem}
.next-lesson-label{margin:.25rem 0 .7rem}
.path-summary{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem 1rem;padding:.8rem 1rem;border:1px solid #bad1c1;border-radius:.8rem;background:#e7f2e9}
.path-summary>p{margin:0}
.path-summary-count{font-size:.85rem;font-weight:650;color:#254f39}
.path-summary>.small{flex:1 1 220px;font-size:.8rem}
.path-summary>button{flex:1 1 100%;text-align:left;overflow-wrap:anywhere}
.path-overview{margin:1.25rem 0}
.path-overview>h3{font-size:1.2rem;margin-bottom:.4rem}
.path-overview>.small{font-size:.82rem;line-height:1.5}
.path-overview .gentle-path-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.6rem;margin:.8rem 0}
.path-overview .path-node{padding:0;border:1px solid #d3ded5;overflow:hidden;background:#fff;min-width:0}
.path-overview .path-node-current{border:2px solid #196d48;box-shadow:0 0 0 2px #e0eee4}
.path-overview .path-node-action{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.25rem .5rem;border:0;border-radius:0;background:transparent;padding:.75rem;text-align:left;min-height:112px;align-content:start}
.path-node-action:hover{background:#f0f6ef}
.path-node-action:focus-visible{outline:3px solid #245ccc;outline-offset:-3px}
.path-node-number{grid-row:1/4;display:flex;align-items:center;justify-content:center;align-self:start;border-radius:50%;width:2rem;height:2rem;background:#edf1eb;color:#42594b;font-size:.85rem}
.path-node-title{font-size:.85rem;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.path-node-kind{font-size:.69rem;color:var(--muted);font-weight:400}
.path-node-status{font-size:.73rem;font-weight:650;line-height:1.4;color:#42594b}
.path-node[data-stage-progress="checked"] .path-node-number{background:#196d48;color:#fff}
.path-node[data-stage-progress="checked"] .path-node-status{color:#196d48}
.path-node[data-stage-progress="help"] .path-node-status{color:#78591a}
.path-node[data-stage-progress="started"] .path-node-status,.path-node[data-stage-progress="built"] .path-node-status{color:#2c5480}
.path-overview .path-node-manual{border-top:1px solid #edf1eb;margin:0;padding:.35rem .75rem;font-size:.7rem;color:var(--muted);background:#fafcf9}
@media(max-width:650px){.path-summary{padding:.7rem}.path-summary-count{font-size:.8rem}.path-overview .path-node-action{min-height:90px}.path-overview .gentle-path-list{grid-template-columns:1fr}.path-node-title{font-size:.85rem}}
@media print{.path-overview .path-node-action{display:grid!important}.path-overview .gentle-path-list{grid-template-columns:repeat(2,minmax(0,1fr))}.path-summary>button{display:none!important}}
.stage-examples .gentle-lesson-list{margin:.25rem 0 .5rem}
.gentle-readiness{padding:1.15rem}

/* In a lesson, the condition and exact model lead the page. Course navigation
   remains available without repeating the introductory copy above every task. */
html[data-sections-view="lessons"] .app-header{padding-top:.55rem;padding-bottom:.5rem;align-items:center}
html[data-sections-view="lessons"] .app-header h1{font-size:1.35rem;margin:0}
html[data-sections-view="lessons"] .app-header .eyebrow,
html[data-sections-view="lessons"] .app-header .subtitle{display:none}
html[data-sections-view="lessons"] .principle-compact>summary{font-size:.82rem;min-height:40px;padding:.45rem 0}
.sections-board-note{max-width:1570px;margin:.35rem auto 0;padding:0 1.5rem;font-size:.74rem;color:var(--muted)}
.sections-board-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem .8rem;border-radius:.65rem;background:#196d48;color:#fff;font-size:.85rem;font-weight:750;text-decoration:none;white-space:nowrap}
.sections-board-open:hover{background:#125436;color:#fff}
.sections-board-open:focus-visible{outline:3px solid #8fc7ff;outline-offset:3px}
.course-return{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .85rem;font-size:.84rem}
.course-return button,.course-return a{min-height:44px;display:inline-flex;align-items:center}
.course-return button{padding:.42rem .65rem;font-weight:650}
.stage-review{margin-top:1rem;padding:.8rem .95rem;border:1px solid var(--line);border-radius:.75rem;background:#f5faf5}
.stage-review h4,.stage-review p{margin:0 0 .45rem}
@media print{.sections-board-open{display:none!important}}
@media print{.course-return{display:none!important}}
body[data-sections-board="true"] .app-header .brand{font-size:.75rem}
.model-panel>.lesson-goal{font-size:.87rem;line-height:1.5;margin:.7rem 0}

@media(max-width:640px){
 .app-header{padding:.75rem .7rem .5rem}
 .app-header .eyebrow{font-size:.68rem}
 .app-header .brand{display:none}
 .app-header .subtitle{font-size:.88rem}
 .app-header:has(.course-return){gap:.3rem}
 .course-return{gap:.25rem .6rem;font-size:.77rem}
 .principle.principle-compact{margin:0 .65rem .65rem;padding:0 .65rem}
 .master-section-heading h2{font-size:1.2rem}
 .master-section-heading>p{font-size:.9rem;line-height:1.5}
 .gentle-stage,.gentle-readiness{padding:.9rem}
 .gentle-stage .eyebrow{font-size:.7rem}
 .gentle-new-idea{font-size:.96rem}
 html[data-sections-view="lessons"] .master-nav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:.2rem;margin-bottom:.55rem}
 html[data-sections-view="lessons"] .master-nav button{flex:0 0 auto;min-height:44px;padding:.5rem .65rem}
 html[data-sections-view="lessons"] .starter-layout .catalog{margin-bottom:0;padding:.45rem .65rem}
 html[data-sections-view="lessons"] .lesson-topbar{margin-bottom:.4rem}
 html[data-sections-view="lessons"] .lesson-header{padding:.7rem .8rem}
 html[data-sections-view="lessons"] .lesson-header h2{font-size:1.2rem;margin-bottom:.5rem}
 html[data-sections-view="lessons"] .starter-phase{margin-top:0;margin-bottom:.4rem;font-size:.76rem}
 html[data-sections-view="lessons"] .lesson-condition{line-height:1.5;margin-bottom:.45rem}
 html[data-sections-view="lessons"] .course-main .model-svg{height:235px}
 html[data-sections-view="lessons"] .model-caption{min-height:2.1rem;padding:.4rem .6rem;font-size:.78rem}
 .sections-board-note{padding:0 .7rem;font-size:.69rem}
}
@media(max-width:360px){
 html[data-sections-view="lessons"] .lesson-header{padding-inline:.65rem}
 html[data-sections-view="lessons"] .lesson-condition{font-size:1rem;line-height:1.45}
 html[data-sections-view="lessons"] .course-main .model-svg{height:clamp(180px,64vw,235px)}
}

/* Isolated, controllable previews: the course remains untouched underneath. */
.sections-tour{box-sizing:border-box;width:min(760px,calc(100% - 1rem));max-width:calc(100% - 1rem);max-height:90vh;max-height:90dvh;margin:auto;padding:1rem;border:1px solid #bdd3c3;border-radius:1rem;background:#fffefa;color:#183b2b;overflow:auto;overscroll-behavior:contain;box-shadow:0 1rem 4rem #10271b40}
.sections-tour::backdrop{background:#10271ba8}
.sections-tour:not([open]){display:none}
.sections-tour-fallback{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;z-index:10002}
.sections-tour-shade{position:fixed;inset:0;z-index:10001;background:#10271ba8}
.sections-tour [hidden],.sections-tour-shade[hidden]{display:none!important}
.sections-tour *{box-sizing:border-box;min-width:0}
.sections-tour-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}
.sections-tour-header h2{font-size:1.25rem;line-height:1.3;margin:0}
.sections-tour button{min-height:44px;padding:.55rem .8rem;border-radius:.6rem;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.sections-tour button:focus-visible,.sections-tour summary:focus-visible{outline:3px solid #2864c6;outline-offset:2px}
.sections-tour-header button{flex:0 0 auto;font-size:.85rem}
.sections-tour-notice,.sections-tour-example-note{font-size:.82rem;line-height:1.45;margin:.35rem 0 .65rem;color:#51675a}
.sections-tour-example-note{border-left:3px solid #98bca3;padding-left:.6rem}
.sections-tour-media{width:100%;border:1px solid #d6e3d9;border-radius:.8rem;background:#f5f9f2;overflow:hidden}
.sections-tour-model .model-svg{display:block;width:100%;height:300px;max-height:36dvh;touch-action:none}
.sections-tour-model .model-plane{fill:#b4dccc;fill-opacity:.55;stroke:#4c936c;stroke-width:1.4}
.sections-tour-model .model-segment{stroke:#196d48;stroke-width:3}
.sections-tour-model .model-segment.current{stroke:#b86526;stroke-width:4}
.sections-tour-model .model-final{fill:#75bf9c;fill-opacity:.38;stroke:#196d48;stroke-width:2}
.sections-tour-caption{min-height:112px;margin:.8rem 0 .5rem}
.sections-tour-caption h3{font-size:1.08rem;line-height:1.4;margin:0 0 .35rem}
.sections-tour-caption p{font-size:.94rem;line-height:1.6;margin:0;overflow-wrap:anywhere}
.sections-tour-counter{font-size:.78rem;color:#5c7062;margin:.4rem 0}
.sections-tour-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;margin:.6rem 0 .9rem}
.sections-tour-controls button{font-size:.88rem}
.sections-tour-controls [data-tour-action="play"]{background:#196d48;color:#fff;border-color:#196d48}
.sections-tour-controls button:disabled{opacity:.5;cursor:default}
.sections-tour details{margin:.6rem 0 0;padding:0 .7rem;border:1px solid #d6e3d9;border-radius:.65rem}
.sections-tour summary{min-height:44px;display:flex;align-items:center;font-size:.88rem;cursor:pointer}
.sections-tour details ol{margin:.3rem 0 1rem;padding-left:1.2rem}
.sections-tour details li{padding:.35rem 0;font-size:.88rem;line-height:1.55}
.sections-tour details li p{margin:.25rem 0}
.sections-tour-mini{padding:1rem;min-height:230px;pointer-events:none;user-select:none}
.sections-tour-mini-brand{font-size:.8rem;font-weight:750;margin-bottom:.6rem;color:#496450}
.sections-tour-mini-nav{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.85rem}
.sections-tour-mini-button{display:block;border:1px solid #c7d7ca;border-radius:.5rem;padding:.65rem .8rem;font-size:.9rem;font-weight:600;line-height:1.4;color:#3d5643;background:#fff;overflow-wrap:anywhere}
.sections-tour-mini-nav .sections-tour-mini-button{font-size:.75rem;padding:.45rem .55rem}
.sections-tour-mini-button.is-active{border-color:#196d48;background:#196d48;color:#fff;box-shadow:0 0 0 3px #d9ecdf}
.sections-tour-mini-panel{border:1px solid #d1dfd4;background:#fff;border-radius:.7rem;padding:.9rem}
.sections-tour-mini-panel>strong{display:block;font-size:1rem;line-height:1.45;margin-bottom:.5rem}
.sections-tour-mini-panel>p{font-size:.86rem;line-height:1.5;margin:.4rem 0 .65rem}
.sections-tour-mini-eyebrow{display:block;font-size:.7rem;color:#57715d;margin-bottom:.35rem}
.sections-tour-mini-node{display:inline-flex;width:2.4rem;height:2.4rem;align-items:center;justify-content:center;border:1px solid #c6d8c9;border-radius:50%;margin:.3rem .6rem .1rem 0;font-size:.9rem;background:#edf4ec}
.sections-tour-mini-node.is-active{background:#196d48;color:#fff}
@media(max-width:480px){.sections-tour{padding:.75rem;border-radius:.8rem}.sections-tour-header{gap:.4rem}.sections-tour-header h2{font-size:1.06rem}.sections-tour-header button{font-size:.78rem;padding:.5rem .6rem}.sections-tour-model .model-svg{height:240px;max-height:31dvh}.sections-tour-mini{padding:.7rem;min-height:215px}.sections-tour-mini-panel{padding:.75rem}.sections-tour-mini-panel>strong{font-size:.92rem}.sections-tour-caption{min-height:140px}.sections-tour-caption h3{font-size:.98rem}.sections-tour-caption p{font-size:.87rem;line-height:1.55}.sections-tour-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.sections-tour-controls button{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.sections-tour *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sections-tour,.sections-tour-shade{display:none!important}}

.sections-tour-links{display:flex;flex-wrap:wrap;gap:.5rem;padding:.7rem 0 .2rem}.sections-tour-links button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
