:root{--bg:#f7f8f2;--paper:#fff;--ink:#252d28;--muted:#747b71;--line:#e5e8df;--lime:#d8f36a;--green:#2c4637;--violet:#ebe7fb;--peach:#fae8d9;--mint:#e0eee1;--blue:#e1ebf9;--yellow:#f8efcf;--radius:20px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6c59bb;outline-offset:4px}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2;letter-spacing:-.035em}h1{font-size:34px;font-weight:650}h2{font-size:25px;font-weight:650}h3{font-size:19px;font-weight:650}p{color:var(--muted)}svg{display:block}input,textarea,select{border:1px solid #dce1d5;border-radius:11px;padding:13px 15px;color:var(--ink);background:#fff;max-width:100%}input::placeholder{color:#969c94}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.icon{width:21px;height:21px;flex-shrink:0}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.9px;color:#727c68;display:block;margin-bottom:9px}.eyebrow.small{font-size:9px;letter-spacing:1.4px}.muted{color:var(--muted);font-size:12px}.skip-link{position:fixed;top:-80px;left:20px;background:var(--ink);color:white;padding:12px;z-index:50}.skip-link:focus{top:12px}
.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:#fbfcf7;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:34px 23px 20px;z-index:10}.brand{display:flex;align-items:center;font-size:27px;font-weight:750;letter-spacing:-1.2px;margin:0 6px 48px}.brand-dot{color:#7a9833}.brand-mark{width:33px;height:34px;border-radius:10px;background:var(--lime);font-size:24px;line-height:35px;padding-left:8px;position:relative;margin-right:10px;font-weight:800}.brand-mark span{position:absolute;right:7px;top:7px;width:10px;height:15px;border-radius:8px 0 8px 0;background:#344735;transform:rotate(20deg)}.workspace-label{font-size:9px;letter-spacing:1.7px;font-weight:700;color:#9ba28f;padding:0 13px;margin-bottom:14px}nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:11px;color:#798173;font-size:12px;font-weight:550;transition:background .2s}.nav-link.active{background:#eaf0df;color:#30432b;font-weight:700}.nav-link:hover{background:#f0f3e8}.nav-tag{font-size:7px;border:1px solid #d8decf;border-radius:4px;padding:1px 4px;letter-spacing:.4px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:30px}.curiosity-card{background:#eff2e7;border:1px solid #e6eada;border-radius:14px;padding:18px;margin-bottom:21px}.spark-icon{font-size:32px;color:#7b9138;line-height:1;display:block;margin-bottom:12px}.curiosity-card strong{font-size:13px;line-height:1.5;display:block}.curiosity-card p{font-size:11px;margin-top:6px}.profile-button{display:flex;align-items:center;gap:10px;background:transparent;width:100%;text-align:left;padding:10px 0;border-top:1px solid var(--line)}.avatar{display:flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:50%;background:#ede7da;color:#786753;font-weight:750;flex-shrink:0}.profile-button strong{font-size:11px;display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-button small{font-size:9px;color:var(--muted);display:block}.profile-dots{margin-left:auto;font-size:22px;color:#929989}
.app-shell{margin-left:236px}.topbar{height:79px;display:flex;justify-content:space-between;align-items:center;padding:0 42px;border-bottom:1px solid var(--line);background:#fbfcf7}.breadcrumb{color:#919887;font-size:11px}.breadcrumb span{padding:0 11px;color:#bbc0b3}.topbar-right{display:flex;align-items:center;gap:18px}.local-badge{font-size:8px;letter-spacing:1px;color:#7b8372;display:flex;align-items:center;gap:6px}.local-badge i{width:5px;height:5px;border-radius:50%;background:#7e9e47}.goal-chip{background:white;border:1px solid var(--line);border-radius:20px;padding:7px 13px;font-size:10px;color:#667454}.goal-chip:hover{background:#edf2e2}main{padding:37px 42px 50px;max-width:1510px;margin:auto;min-height:calc(100vh - 145px)}main:focus{outline:none}.footer{max-width:1510px;margin:auto;padding:0 42px 22px;display:flex;justify-content:space-between;color:#9aA18e;font-size:10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.page-heading p{margin-top:10px;font-size:12px}.wave{color:#83994a;font-size:32px}.text-link{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:600;color:#5e7150;white-space:nowrap}.text-link:hover{color:#253623}.text-link .icon{width:17px;height:17px}.button{padding:12px 19px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:18px;line-height:1.5;font-weight:650;font-size:12px;border:1px solid transparent;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:#2e4434;color:white}.button.primary:hover{background:#203426}.button.lime{background:var(--lime);color:#263526}.button.secondary{background:white;border-color:#dce2d1}.button.quiet{color:#69785a;background:transparent;padding-inline:10px}.button.full{width:100%}.button .icon{width:18px;height:18px}.pill{display:inline-block;font-size:8px;letter-spacing:1.6px;font-weight:700;border-radius:20px;padding:5px 11px;background:#ffffff12;color:#c2ceb9;border:1px solid #ffffff22}.pill.outline{color:#6b7960;background:#f7f9f1;border-color:#dce4d2}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(230px,1fr);gap:20px}.hero{background:#293e31;min-height:306px;border-radius:var(--radius);position:relative;overflow:hidden;display:flex;align-items:center}.hero-copy{padding:31px 34px;z-index:1;position:relative;flex-shrink:0}.hero h2{font:42px/1.08 Georgia,"Times New Roman",serif;letter-spacing:-1.8px;color:#f4f5e9;margin:14px 0}.hero h2 em{font-weight:400;color:var(--lime)}.hero p{color:#b9c4b1;font-size:11px;line-height:1.8;margin-bottom:19px}.hero-foot{font-size:9px;color:#a6b59b;display:flex;align-items:center;gap:6px;margin-top:13px}.hero-foot .icon{width:12px;height:12px}.hero-art{position:absolute;right:0;top:20px;width:49%;height:270px}.week-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px 21px}.section-label{font-size:9px;font-weight:700;letter-spacing:1.2px;color:#8b927e;display:flex;align-items:center;justify-content:space-between}.section-label>span{font-size:21px;color:#7e9448}.streak-value{font-size:43px;line-height:1.2;font-weight:650;letter-spacing:-2px;margin:13px 0 5px}.streak-value>span{font-size:12px;font-weight:500;letter-spacing:0;margin-left:8px}.week-card>p{font-size:10px}.week-days{display:flex;justify-content:space-between;margin-top:19px;gap:3px}.day{display:grid;justify-items:center;gap:7px;font-size:8px;color:#98a08c}.day-circle{width:25px;height:25px;border:1px solid #e5e9de;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:8px}.day-circle.today{border-color:#94aa53;background:#f4f7e8;color:#6a813f}.day-circle.done{background:#d8f36a;border-color:#d8f36a;color:#3a5625}.day-circle .icon{width:13px;height:13px}.daily-goal{display:flex;align-items:center;gap:10px}.daily-goal>.icon{background:#f0f3e8;padding:6px;width:32px;height:32px;border-radius:8px;color:#839164}.daily-goal>span{font-size:9px;color:#959c88;line-height:1.6}.daily-goal strong{display:block;font-size:10px;font-weight:600;color:#536548}.daily-goal .icon-button{margin-left:auto}.icon-button{display:flex;align-items:center;justify-content:center;background:transparent;color:#89927d;padding:4px;border-radius:7px;font-size:26px;line-height:1}.icon-button .icon{width:15px;height:15px}.icon-button:hover{background:#edf2e5}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:14px;margin:21px 0 35px;padding:20px 0}.stats-row>div{display:flex;align-items:center;gap:13px;padding:0 21px;border-right:1px solid var(--line)}.stats-row>div:last-child{border:0}.stats-row>div>.icon{color:#7e8d67;width:23px;height:23px}.stats-row>div>span:not(.tiny-spark){font-size:9px;color:#939b86}.stats-row strong{display:block;color:#31452e;font-size:22px;line-height:1.25;letter-spacing:-.5px;margin-bottom:4px}.stats-row strong small{font-weight:400;font-size:14px;color:#a2aa96}.stats-row>div:last-child strong{font-size:11px;letter-spacing:0}.tiny-spark{color:#879952;font-size:26px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{font-size:22px}.section-heading .eyebrow{margin-bottom:7px}.path-banner{display:flex;align-items:center;gap:13px;padding:16px 18px;border:1px solid var(--line);background:#f0f3e7;border-radius:12px;margin-bottom:18px}.path-icon{border-radius:9px;background:#e1e8d3;padding:9px;color:#5b7447}.path-icon .icon{width:19px;height:19px}.path-banner strong{font-size:12px;font-weight:650}.path-banner p{font-size:10px;margin-top:3px;color:#8a947c}.path-progress{margin-left:auto;width:135px}.path-progress span{font-size:9px;color:#879478;display:block;text-align:right;margin-bottom:6px}progress{appearance:none;-webkit-appearance:none;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;background:#dde5ce}progress::-webkit-progress-bar{background:#dde5ce;border-radius:8px}progress::-webkit-progress-value{background:#849e47;border-radius:8px}progress::-moz-progress-bar{background:#849e47;border-radius:8px}
.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.lesson-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}.lesson-card:hover{transform:translateY(-4px);box-shadow:0 9px 24px #273f2810}.card-art{height:130px;position:relative;display:flex;align-items:center;justify-content:center}.violet{background:var(--violet);--art-dark:#8e7bbd;--art-light:#c9bfee;--art-stroke:#6a5599}.peach{background:var(--peach);--art-dark:#ca9470;--art-light:#edc3a3;--art-stroke:#a77652}.mint{background:var(--mint);--art-dark:#7eac87;--art-light:#bed8b5;--art-stroke:#5d8361}.blue{background:var(--blue);--art-dark:#7299c5;--art-light:#b8cdeb;--art-stroke:#5b7fb0}.yellow{background:var(--yellow);--art-dark:#b9a249;--art-light:#e3d691;--art-stroke:#947d36}.lesson-art{width:150px;height:106px;background:transparent}.art-dark{fill:var(--art-dark)}.art-light{fill:var(--art-light)}.art-stroke{fill:none;stroke:var(--art-stroke);stroke-width:2.5;stroke-linejoin:round}.art-grid{fill:none;stroke:var(--art-stroke);stroke-width:1;opacity:.18}.art-line{fill:none;stroke:var(--art-stroke);stroke-width:3;stroke-linecap:round}.lesson-art text{text-anchor:middle;fill:#fff;font:20px Georgia,serif}.card-number{position:absolute;top:14px;left:16px;font-size:10px;letter-spacing:1px;color:var(--art-stroke);opacity:.7}.done-badge{position:absolute;bottom:9px;right:10px;font-size:8px;display:flex;align-items:center;gap:4px;background:#ffffffb5;border-radius:8px;padding:3px 6px}.done-badge .icon{width:12px;height:12px}.card-body{padding:19px 20px}.card-body h3{font-size:16px;letter-spacing:-.4px;margin:6px 0 8px}.card-body p{font-size:11px;min-height:36px;line-height:1.7}.card-meta{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eff1e9;margin-top:16px;padding-top:13px;font-size:9px;color:#939a89}.card-meta span{display:flex;align-items:center;gap:5px}.card-meta .icon{width:13px;height:13px}.card-meta span:last-child .icon{margin-left:10px;color:#71815b}.assessment-banner{display:flex;align-items:center;gap:18px;background:#f0eee6;border:1px solid #e8e5da;border-radius:15px;padding:22px;margin-top:25px}.assessment-symbol{font:36px Georgia,serif;color:#918265;display:flex;justify-content:center;align-items:center;width:55px;height:55px;border-radius:15px;background:#e7e1d3;flex-shrink:0;transform:rotate(-8deg)}.assessment-banner h3{font-size:16px}.assessment-banner p{font-size:11px;margin-top:6px}.assessment-banner .eyebrow{font-size:8px;color:#9b8d70}.assessment-banner .button{margin-left:auto;flex-shrink:0}.course-intro{background:#eef2e4;border:1px solid #e0e7d3;padding:30px;border-radius:20px;margin-bottom:26px;display:flex;justify-content:space-between;align-items:center}.course-intro h2{font-size:30px;margin:14px 0 12px}.course-intro p{font-size:12px}.course-facts{display:grid;grid-template-columns:auto auto;gap:3px 14px;align-items:center;padding-left:20px}.course-facts strong{font:36px Georgia,serif;color:#6c8052}.course-facts span{color:#859476;font-size:11px}
.notice{border:1px solid #e1e7d6;border-radius:12px;padding:16px 18px;margin:24px 0;display:flex;align-items:flex-start;gap:13px;background:#f1f5e9}.notice .icon{color:#849369;width:19px;height:19px;margin-top:1px}.notice p{font-size:11px;color:#7e8a70}.notice.warning{background:#f9f3e6;border-color:#ede1c9}.notice.warning p{color:#8d7b56}.practice-hero{display:flex;align-items:center;gap:22px;border:1px solid #e3e7d8;border-radius:20px;background:#eef2e5;padding:30px;margin-bottom:30px}.practice-star{font-size:76px;line-height:1;color:#899e4f}.practice-hero h2{font-size:29px;margin:10px 0}.practice-hero p{max-width:470px;font-size:12px;margin-bottom:20px}.practice-hero .lesson-art{margin-left:auto;width:180px;height:150px}.practice-list{background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden}.practice-item{display:flex;align-items:center;gap:18px;padding:21px;border-bottom:1px solid var(--line)}.practice-item:last-child{border:0}.practice-item:hover{background:#f8faf3}.number-badge{background:#f0f3e8;color:#829367;border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font:22px Georgia,serif;flex-shrink:0}.practice-item strong{font-size:14px}.practice-item p{font-size:11px;margin-top:3px}.status{padding:5px 9px;border-radius:20px;font-size:9px;white-space:nowrap;background:#f1f2ed;color:#909786}.status.mastered{background:#e7f0ce;color:#657d38}.status.developing{background:#eee8fa;color:#8871a7}.practice-item .status{margin-left:auto}.practice-item>.icon{width:17px;color:#839371}
.progress-summary{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin-bottom:33px}.mastery-overview{display:flex;align-items:center;gap:26px;padding:27px;background:#fff;border:1px solid var(--line);border-radius:20px}.mastery-overview p{font-size:11px;margin-top:12px}.mastery-overview h2{font-size:23px}.mastery-ring{display:flex;align-items:center;justify-content:center;border:12px solid #eaf0dc;border-radius:50%;width:130px;height:130px;flex-shrink:0;background:#fbfcf7}.mastery-ring strong{font-size:37px;letter-spacing:-2px}.mastery-ring small{font-size:17px;font-weight:400;color:#9aa78c;letter-spacing:0;margin-left:4px}.summary-note{background:#ece8f5;border:1px solid #e1d9ef;border-radius:20px;padding:23px}.summary-note>span{font-size:28px;color:#9180b2;display:block;line-height:1;margin-bottom:12px}.summary-note h3{font-size:18px;margin-bottom:10px}.summary-note p{font-size:11px;color:#90839c}.skill-map{background:white;border:1px solid var(--line);border-radius:18px;padding:0 23px}.skill-row{display:flex;align-items:center;gap:20px;padding:23px 0;border-bottom:1px solid var(--line);position:relative}.skill-row:last-child{border:0}.skill-row:hover .skill-info strong{color:#718b43}.skill-node{width:40px;height:40px;border-radius:50%;background:#f0f3e8;border:1px solid #dce3cd;display:flex;align-items:center;justify-content:center;color:#839471;font-weight:650;flex-shrink:0}.skill-node.mastered{background:#d8ef91;color:#526c2d}.skill-node.developing{background:#eee8fa;color:#8871a7}.skill-node:after{content:"";position:absolute;top:65px;left:19px;height:23px;width:1px;background:#dbe2cf}.skill-row:last-child .skill-node:after{display:none}.skill-info strong{font-size:13px;display:block}.skill-info small{font-size:10px;color:#99a18d;display:block;margin-top:4px}.skill-evidence{margin-left:auto;text-align:right}.skill-evidence strong{font-size:10px;font-weight:500;color:#7c8a6a;display:block}.skill-evidence small{font-size:9px;color:#a0a791}.skill-row>.icon{width:17px;color:#8b9c76}
.lesson-navigation{display:flex;align-items:center;gap:20px;margin-bottom:27px;font-size:10px;color:#909983}.lesson-navigation>.pill{margin-left:auto}.lesson-title{margin-bottom:23px}.lesson-title h1{font-size:37px}.lesson-title>p{font-size:13px;margin-top:11px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start}.lesson-stepper{display:flex;gap:9px;margin-bottom:18px}.lesson-stepper>span{flex:1;text-align:center;border-top:3px solid #e1e5d8;padding-top:8px;color:#9fa591;font-size:10px}.lesson-stepper>span.current{border-color:#75964a;color:#5d783b;font-weight:650}.lesson-stepper>span.done{border-color:#d0e5a3;color:#84996a}.explanation-card,.exercise-card{background:white;border:1px solid var(--line);border-radius:20px;padding:29px}.explanation-card>h2{font:30px Georgia,serif;color:#455e37;letter-spacing:0;margin:10px 0 19px}.explanation-card>p{line-height:1.9;font-size:13px;color:#737e69}.takeaway{background:#f1f5e8;border-radius:12px;padding:14px;display:flex;gap:12px;align-items:center;margin:22px 0}.takeaway>span{color:#8b9e53;font-size:25px}.takeaway p{font-size:12px;color:#708057}.concept-visual{background:#f7f8f3;border:1px solid #e8ecde;border-radius:15px;padding:25px;margin-top:25px;display:flex;align-items:center;flex-direction:column;gap:12px}.concept-visual .lesson-art{width:210px;height:120px;--art-dark:#81a779;--art-light:#c2d8b9;--art-stroke:#628557}.concept-visual>span{font-size:11px;color:#8a977c}.formula{font:30px Georgia,serif;color:#566f41;letter-spacing:1px}.formula span{color:#a9b69a;margin:0 12px}.formula.small-formula{font-size:23px}.fraction-blocks{display:flex;gap:5px;margin:8px}.fraction-blocks span{width:52px;height:66px;background:#a798cb;border-radius:6px}.fraction-blocks .empty{background:#e8e0f6;border:1px dashed #b9aad6}.fraction-visual>strong{font-size:12px;color:#8d7fa9}.fraction-visual .formula{color:#8e7cae}.interactive-canvas{margin-top:24px;border:1px solid #e2e7da;border-radius:15px;overflow:hidden;background:#fcfdf8}.canvas-header{display:flex;justify-content:space-between;align-items:center;padding:12px 17px;border-bottom:1px solid #e7ecdf;font-size:8px;letter-spacing:1.3px;color:#879775}.canvas-header>span:first-child{display:flex;align-items:center;gap:7px}.canvas-header .icon{width:13px;height:13px}.canvas-badge{font-size:7px;background:#eaf2dc;padding:3px 6px;border-radius:6px}.graph-wrap{max-width:420px;margin:12px auto 0;padding:0 15px}.graph-grid{stroke:#dfe7d4;stroke-width:.7;fill:none}.graph-axis{stroke:#a0b18e;stroke-width:1.4;fill:none}.graph-labels{fill:#94a386;font-size:10px}.graph-plot{stroke:#809e44;stroke-width:3;fill:none}.graph-point{fill:#d8f36a;stroke:#698837;stroke-width:2}.graph-equation{text-align:center;font:23px Georgia,serif;color:#64833b;margin:5px 0 20px}.canvas-controls{display:flex;gap:25px;padding:0 24px 17px}.canvas-controls label{font-size:11px;color:#83966e;flex:1}.canvas-controls output{float:right;color:#587e32;font-weight:700}.canvas-controls input{display:block;width:100%;padding:0;margin-top:10px;accent-color:#809e44}.canvas-caption{text-align:center;font-size:10px;padding:13px;border-top:1px solid #e7ecdf;color:#99a98a}.canvas-details{background:white;border:1px solid var(--line);border-radius:12px;margin-top:18px;padding:14px}.canvas-details summary{font-size:11px;cursor:pointer;color:#7d8e6a}.canvas-details .interactive-canvas{margin-top:14px}
.tutor-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:23px;position:sticky;top:20px;margin-top:43px}.tutor-title{display:flex;align-items:center;gap:11px;margin-bottom:20px}.tutor-face{display:flex;align-items:center;justify-content:center;font-size:28px;color:#799351;background:#eef3e4;border:1px solid #e5ecd7;width:43px;height:43px;border-radius:14px;flex-shrink:0}.tutor-title strong{font-size:11px;display:block}.tutor-title small{font-size:9px;color:#9aA28d;display:block;margin-top:3px}.tutor-disabled{font-size:9px;color:#a18c67;background:#faf4e6;border:1px solid #eee3cd;border-radius:8px;padding:9px;display:flex;align-items:center;gap:7px;margin-bottom:13px}.tutor-disabled .icon{width:13px;height:13px}.tutor-panel>p{font-size:10px;line-height:1.8;color:#939c87}.authored-help{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.authored-help .eyebrow{font-size:8px}.authored-help h3{font:21px Georgia,serif;margin:10px 0 12px}.authored-help>p{font-size:10px;line-height:1.85}.help-tip{font-size:10px;color:#879770;padding:15px;background:#f4f7ec;border-radius:10px;margin-top:19px;line-height:1.8}.help-tip span{display:block;font-size:23px;color:#9baa6c;margin-bottom:8px}.tutor-input{border:1px solid #e9ece3;border-radius:10px;margin-top:31px;padding:11px 10px;display:flex;align-items:center;gap:8px;color:#a5ac9a;font-size:8px;background:#f8faf4}.tutor-input .icon{width:13px;height:13px;margin-left:auto}.privacy-note{font-size:8px;color:#a4ac96;display:block;margin-top:9px;text-align:center}.exercise-header{display:flex;justify-content:space-between;align-items:center;color:#98a38b;font-size:11px;margin-bottom:26px}.exercise-header .eyebrow{margin:0}.exercise-card h2{font-size:25px;line-height:1.45;letter-spacing:-.4px;margin-bottom:26px}.answer-choices{display:grid;gap:10px}.choice{padding:15px;border:1px solid #e3e7db;border-radius:11px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:13px}.choice:hover{background:#f8faf3}.choice.selected{background:#f0f5e6;border-color:#a4b883}.choice input{width:15px;height:15px;margin:0;accent-color:#708d42}.choice-letter{background:#f0f2e8;border-radius:6px;padding:3px 7px;font-size:9px;color:#82916d}.number-answer{display:grid;gap:9px;max-width:350px}.number-answer label{font-size:11px;font-weight:600;color:#83936f}.number-answer input{font-size:22px;border-radius:12px;padding:17px}.number-answer small{font-size:9px;color:#99a38d}.exercise-actions{display:flex;align-items:center;gap:12px;margin-top:25px;flex-wrap:wrap}.hint-box{margin-top:22px;background:#f4effa;border:1px solid #e5daF2;border-radius:12px;padding:16px}.hint-box .eyebrow{font-size:8px;color:#9b83af;margin-bottom:6px}.hint-box p{font-size:12px;color:#8b749f}.answer-feedback{margin-top:22px;border-radius:12px;padding:18px}.answer-feedback.correct{background:#edf5df;border:1px solid #d6e7bb}.answer-feedback.incorrect{background:#f9efe2;border:1px solid #efdcbe}.answer-feedback strong{font-size:13px}.answer-feedback p{font-size:12px;margin-top:7px;color:#818f6b}.answer-feedback.incorrect p{color:#9d8867}.answer-feedback small{font-size:10px;display:block;margin-top:10px;color:#93a17e}.form-error{color:#a7483d!important;font-size:12px;white-space:pre-wrap;margin-top:12px}.assessment-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:26px}.assessment-progress{margin:0 0 20px;height:6px}.assessment-guide{background:#eee8f7;border:1px solid #e4daf0;border-radius:18px;padding:28px;align-self:start;margin-top:31px}.assessment-guide>span{font-size:35px;color:#9d86b6;display:block;margin-bottom:20px}.assessment-guide h3{font:29px/1.2 Georgia,serif;color:#6f5889;margin-bottom:19px}.assessment-guide p{font-size:12px;line-height:1.9;color:#9b85ad;margin-bottom:16px}.assessment-guide .text-link{color:#84679e;margin-top:12px}.finish-card{max-width:740px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:24px;margin:35px auto;padding:55px 40px}.finish-symbol{margin:0 auto 28px;display:flex;align-items:center;justify-content:center;width:74px;height:74px;border-radius:24px;background:#ecf3d8;color:#7b9845;transform:rotate(-7deg)}.finish-symbol .icon{width:36px;height:36px}.finish-card h1{font:40px Georgia,serif;letter-spacing:-1px;margin:15px 0 20px}.finish-card>p{font-size:13px;max-width:530px;margin:0 auto 22px;line-height:1.9}.finish-card blockquote{font:21px/1.5 Georgia,serif;color:#849666;margin:30px 0}.finish-actions{display:flex;justify-content:center;gap:13px;margin:30px 0}
.studio-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px}.studio-list{display:grid;align-content:start;gap:10px}.studio-item{display:grid;grid-template-columns:1fr auto;text-align:left;padding:17px;background:white;border:1px solid var(--line);border-radius:12px}.studio-item strong{font-size:11px}.studio-item small{font-size:9px;color:#9aa58b;grid-column:1;margin-top:5px}.studio-item .icon{grid-column:2;grid-row:1/3;align-self:center;width:15px;color:#8c9c75}.studio-item.selected{background:#eef4e2;border-color:#b2c492}.studio-editor{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;min-width:0}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}.editor-header h2{font-size:23px}.studio-editor>p{font-size:11px;margin-bottom:20px}.studio-editor label{font-size:11px;font-weight:600;color:#8d9a7c;display:block;margin-bottom:9px}.studio-editor textarea{width:100%;font:12px/1.7 Consolas,monospace;resize:vertical;min-height:350px;background:#fafcf6;tab-size:2}.editor-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:17px}.empty-editor{padding:80px 20px;text-align:center}.empty-editor .icon{width:40px;height:40px;margin:0 auto 23px;color:#9aaa80}.empty-editor h2{font-size:24px;margin-bottom:14px}.empty-editor p{font-size:12px}
.toast{position:fixed;right:24px;bottom:24px;max-width:450px;padding:17px 22px;background:#2e4434;color:#eef5e4;border-radius:12px;box-shadow:0 8px 40px #263c2830;z-index:40;font-size:12px}.toast[hidden]{display:none}dialog{border:1px solid #dce4d0;border-radius:23px;background:#fff;padding:30px;width:440px;max-width:calc(100vw - 30px);color:var(--ink)}dialog::backdrop{background:#1e302780;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-top .eyebrow{margin:0}dialog h2{font:31px Georgia,serif;letter-spacing:-.8px;margin-bottom:15px}dialog p{font-size:12px;margin-bottom:20px}dialog label{display:block;font-size:11px;font-weight:650;margin-bottom:15px;color:#79886b}dialog input,dialog select{display:block;width:100%;margin-top:6px}dialog .form-error{margin-bottom:12px}.loading-card{padding:100px 30px;text-align:center}.loading-card h1{font-size:23px;color:#829571}.loader{width:30px;height:30px;border:3px solid #e0e9d2;border-top-color:#839e50;border-radius:50%;display:block;margin:0 auto 22px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1450px){.hero-art{right:25px;width:48%}.hero h2{font-size:48px}.hero{min-height:330px}.hero-art{height:300px}.card-art{height:160px}.lesson-art{width:170px;height:120px}}
@media(max-width:1190px){.sidebar{width:205px;padding-inline:17px}.brand{font-size:24px}.app-shell{margin-left:205px}main{padding:30px 28px}.topbar{padding:0 28px}.footer{padding-inline:28px}.hero-copy{padding:28px}.hero h2{font-size:36px}.hero-art{right:-20px;width:43%;opacity:.8}.dashboard-grid{grid-template-columns:minmax(0,2fr) 235px;gap:16px}.week-card{padding:20px 17px}.stats-row>div{padding:0 14px;gap:9px}.stats-row>div>.icon{width:18px}.stats-row strong{font-size:19px}.lesson-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.tutor-panel{padding:18px}.explanation-card,.exercise-card{padding:24px}.card-body{padding:17px}.card-body h3{font-size:14px}.assessment-banner{padding:20px 16px;gap:14px}.assessment-banner p{max-width:360px}.assessment-banner .button{font-size:10px;padding:11px 13px}.mastery-overview{gap:19px;padding:24px}.mastery-ring{width:100px;height:100px;border-width:9px}.mastery-overview h2{font-size:20px}}
@media(max-width:1000px){.sidebar{width:180px;padding-inline:12px}.app-shell{margin-left:180px}.brand{font-size:22px}.brand-mark{margin-right:7px}.workspace-label{font-size:8px;padding-inline:10px}.nav-link{padding:12px 10px;gap:9px;font-size:11px}.nav-tag{display:none}main{padding:27px 24px}.topbar{padding-inline:24px}.page-heading h1{font-size:29px}.page-heading>.text-link{display:none}.dashboard-grid{grid-template-columns:1fr}.hero{min-height:285px}.hero-art{width:48%;right:15px;opacity:1}.hero h2{font-size:43px}.week-card{display:none}.cards-grid{gap:13px}.card-body{padding:15px}.card-art{height:116px}.stats-row>div{gap:6px;padding:0 11px}.stats-row>div:last-child{display:none}.stats-row{grid-template-columns:repeat(3,1fr)}.stats-row>div:nth-child(3){border:0}.lesson-layout{grid-template-columns:1fr}.tutor-panel{position:static;margin-top:0}.tutor-panel .authored-help,.tutor-input,.privacy-note{display:none}.tutor-title{margin-bottom:12px}.tutor-panel{padding:18px}.tutor-disabled{margin-bottom:9px}.progress-summary{grid-template-columns:1fr}.summary-note{display:none}.skill-map{padding-inline:16px}.skill-row{gap:14px}.skill-evidence{max-width:160px}.skill-info small{max-width:170px}.studio-layout{grid-template-columns:185px minmax(0,1fr)}.studio-editor{padding:20px}.editor-header .pill{display:none}.course-intro h2{font-size:25px}.course-intro{padding:25px}.assessment-banner{flex-wrap:wrap}.assessment-banner .button{margin-left:73px}.assessment-layout{grid-template-columns:1fr}.assessment-guide{margin:0}.assessment-guide h3{font-size:24px}.assessment-guide>span{display:none}}
@media(max-width:760px){.sidebar{position:sticky;top:0;width:100%;height:65px;flex-direction:row;align-items:center;padding:10px 18px;border-right:0;border-bottom:1px solid var(--line);background:#fbfcf7f5;backdrop-filter:blur(12px)}.brand{margin:0;font-size:23px}.brand-mark{height:29px;width:29px;font-size:20px;line-height:30px;border-radius:8px}.brand-mark span{width:8px;height:13px;right:6px;top:5px}.workspace-label,.sidebar-bottom{display:none}nav{margin-left:auto;display:flex;gap:4px}.nav-link{padding:9px;border-radius:9px}.nav-link>span{display:none}.nav-link .icon{width:19px;height:19px}.app-shell{margin-left:0}.topbar{height:57px;padding-inline:20px}.local-badge{display:none}.breadcrumb{font-size:9px}.breadcrumb span{padding:0 8px}.goal-chip{font-size:9px;padding:5px 10px}main{padding:28px 20px 35px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:29px}.page-heading p{font-size:11px}.eyebrow{font-size:8px;letter-spacing:1.5px}.hero-art{width:45%;right:-10px}.hero-copy{padding:26px}.hero h2{font-size:38px}.hero p{font-size:10px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.cards-grid>.lesson-card:nth-child(3):last-child{display:none}.stats-row{padding:17px 0;margin-bottom:28px}.stats-row strong{font-size:20px}.stats-row>div>span:not(.tiny-spark){font-size:8px}.stats-row>div>.icon{width:18px;height:18px}.section-heading h2{font-size:21px}.section-heading .text-link{font-size:9px;gap:5px}.section-heading .text-link .icon{width:14px}.path-banner{padding:14px;gap:9px}.path-icon{padding:8px}.path-banner strong{font-size:11px}.path-banner p{font-size:9px}.path-progress{width:85px}.assessment-banner{gap:14px}.assessment-banner h3{font-size:15px}.assessment-banner p{font-size:10px;max-width:320px}.assessment-banner .button{margin-left:69px}.assessment-symbol{width:50px;height:50px}.footer{font-size:8px;padding-inline:20px;gap:12px}.course-intro{padding:23px}.course-intro h2{font-size:24px;max-width:290px}.course-intro p{font-size:11px}.course-facts{display:none}.practice-hero{padding:24px;gap:18px}.practice-hero h2{font-size:24px}.practice-hero .lesson-art{display:none}.practice-star{font-size:52px}.practice-item{padding:17px;gap:12px}.practice-item strong{font-size:12px}.practice-item p{font-size:10px}.practice-item .status{font-size:8px;padding:4px 7px}.skill-evidence{display:none}.skill-row .status{margin-left:auto}.skill-info small{max-width:230px}.skill-info strong{font-size:12px}.lesson-navigation{font-size:9px;gap:12px;margin-bottom:23px}.lesson-navigation .text-link{font-size:10px}.lesson-navigation .pill{font-size:7px;letter-spacing:.8px}.lesson-title h1{font-size:32px}.explanation-card,.exercise-card{padding:23px}.explanation-card>p{font-size:12px}.lesson-stepper{gap:6px}.lesson-stepper>span{font-size:9px}.exercise-card h2{font-size:23px}.finish-card{padding:39px 24px;margin:15px auto}.finish-card h1{font-size:33px}.finish-actions{flex-wrap:wrap}.studio-layout{grid-template-columns:1fr}.studio-list{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-item{padding:14px}.studio-editor textarea{font-size:11px}.notice{padding:14px}.notice p{font-size:10px}.toast{max-width:calc(100vw - 40px);left:20px;right:20px;bottom:15px}.mastery-overview h2{font-size:20px}.mastery-overview{gap:20px;padding:22px}.assessment-guide p{font-size:11px}.number-answer{max-width:100%}}
@media(max-width:430px){main{padding-inline:16px}.sidebar{padding-inline:14px}.brand{font-size:21px}nav{gap:1px}.nav-link{padding:7px}.nav-link .icon{width:17px;height:17px}.hero-art{opacity:.6;right:-45px;width:48%}.hero h2{font-size:38px}.hero-copy{padding:24px}.hero-copy .pill{font-size:7px}.hero p{max-width:240px}.hero-foot{font-size:8px}.stats-row>div>.icon{display:none}.stats-row>div{padding-inline:15px}.stats-row strong{font-size:19px}.path-icon{display:none}.path-progress{width:66px}.path-banner strong{font-size:10px}.cards-grid{gap:11px}.card-body{padding:13px}.card-body h3{font-size:13px}.card-body p{font-size:10px;min-height:50px}.card-meta{font-size:8px;gap:5px}.card-meta span:last-child .icon{display:none}.card-art{height:106px}.lesson-art{width:126px;height:90px}.section-heading h2{font-size:19px}.section-heading .text-link{display:none}.assessment-banner>div:nth-child(2){flex:1}.assessment-banner .button{margin-left:64px}.assessment-symbol{width:43px;height:43px;font-size:30px}.footer{flex-direction:column;gap:2px}.practice-star{display:none}.practice-item>.icon{display:none}.practice-item .status{font-size:7px}.practice-item p{max-width:180px}.number-badge{width:32px;height:32px;font-size:18px}.mastery-ring{width:83px;height:83px;border-width:7px}.mastery-ring strong{font-size:30px}.mastery-overview{gap:16px;padding:18px}.mastery-overview h2{font-size:17px}.mastery-overview p{font-size:10px}.skill-row{gap:10px}.skill-info small{max-width:165px;font-size:8px}.skill-info strong{font-size:11px}.skill-node{width:32px;height:32px;font-size:11px}.skill-node:after{left:15px;top:58px;height:23px}.skill-row .status{font-size:7px;padding:4px 6px}.skill-row>.icon{display:none}.lesson-navigation>.pill{display:none}.lesson-title h1{font-size:30px}.exercise-card,.explanation-card{padding:20px}.exercise-card h2{font-size:21px}.canvas-controls{gap:20px;padding-inline:18px}.fraction-blocks span{width:40px;height:56px}.finish-card h1{font-size:29px}.finish-card>p{font-size:12px}.studio-list{gap:8px}.studio-item strong{font-size:10px}.studio-item .icon{display:none}.editor-header h2{font-size:21px}.editor-actions .button{width:100%}}
.subject-filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.subject-filters a{padding:8px 13px;border:1px solid var(--line);border-radius:20px;font-size:12px;background:white}.subject-filters a[aria-current]{background:var(--green);color:white}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.catalog-card{display:flex;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:16px;background:white;min-width:0}.catalog-card:hover{border-color:#8ca464}.catalog-card-top{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:12px}.catalog-card h3{font-size:20px;margin-bottom:12px}.catalog-card>p{font-size:12px}.catalog-card .card-meta{margin-top:auto;padding-top:16px}.catalog-card .course-completion{font-size:10px;margin-top:10px}.status.available{background:#e7f0ce;color:#526c2d}.status.planned{background:#f5eee0;color:#7b6847}.unit-block{padding:24px;background:white;border:1px solid var(--line);border-radius:18px;margin:24px 0}.unit-block h2 a:hover,.coverage-table a:hover{text-decoration:underline}.unit-block .cards-grid{margin-top:20px}.unit-block .cards-grid>.lesson-card:nth-child(3):last-child{display:block}.objective-list{padding-left:22px;color:var(--muted);margin:12px 0}.outline-note{font-size:12px;background:#f7f8f2;border-radius:10px;padding:14px;margin-top:18px}.prerequisite-links{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0}.coverage-section{margin:30px 0}.coverage-table-wrap{overflow-x:auto}.coverage-table{border-collapse:collapse;width:100%;background:white;font-size:12px;margin-top:12px}.coverage-table caption{text-align:left;color:var(--muted);padding-bottom:12px}.coverage-table th,.coverage-table td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top}.coverage-table th{background:#edf2e5}.coverage-table td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.coverage-table a{color:#466534}.course-view .page-heading{margin-top:20px}
@media(max-width:1100px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.unit-block{padding:18px}.unit-block .cards-grid{grid-template-columns:1fr}.unit-block .section-heading{align-items:start;gap:12px}.subject-filters a{font-size:11px}.coverage-table{min-width:540px}.lesson-navigation{flex-wrap:wrap}.catalog-card{padding:18px}}
@media(max-width:430px){.catalog-grid{grid-template-columns:1fr}.catalog-card h3{font-size:20px}.unit-block h2{font-size:22px}}
.equation-explorer svg{width:100%;font:16px "Segoe UI",Arial,sans-serif;fill:#3f5a35}.equation-explorer #equation-model{padding:16px}.equation-steps{margin:8px 0 0;padding-left:26px;color:#54664b;font-size:13px}.equation-steps li{padding:3px 0}.values-table{width:100%;border-collapse:collapse;font-size:13px;text-align:center;margin:12px 0}.values-table caption{text-align:left;color:var(--muted);font-size:11px;padding-bottom:6px}.values-table th,.values-table td{padding:8px;border:1px solid var(--line)}.values-table th{background:#edf2e5;font-weight:650}.line-explorer #line-model{padding:12px 16px}.plane-explorer #plane-model,.shape-explorer #shape-model,.angle-explorer #angle-model,.polar-explorer #polar-model{padding:12px 16px}.plane-explorer svg,.shape-explorer svg,.angle-explorer svg,.polar-explorer svg{width:100%;max-width:440px;margin:0 auto;font-family:"Segoe UI",Arial,sans-serif}.plane-facts{list-style:none;margin:12px 0 0;padding:0;color:#54664b;font-size:13px}.plane-facts li{padding:5px 0;border-bottom:1px solid var(--line)}.story-card{display:flex;gap:20px;align-items:center;padding:20px 24px;margin-bottom:18px;background:#fbf5e4;border:1px solid #efe3bd;border-radius:18px}.story-card h3{font-size:18px;margin-bottom:8px}.story-card p{font-size:13px;line-height:1.8;color:#7c6f4a}.story-art{flex-shrink:0;width:150px}.story-art .lesson-art{width:150px;height:106px}.doubling-table{width:100%;border-collapse:collapse;font-size:13px;text-align:center;margin:12px 0}.doubling-table caption{text-align:left;color:var(--muted);font-size:11px;padding-bottom:6px}.doubling-table th,.doubling-table td{padding:8px;border:1px solid var(--line)}.doubling-table th{background:#edf2e5}.doubling-table tr.picked td{background:#e7f0ce;font-weight:700}.nsys-explorer #nsys-model,.dbl-explorer #dbl-model,.ledger-explorer #ledger-model{padding:12px 16px}.nsys-explorer svg,.ledger-explorer svg{width:100%;max-width:440px;margin:0 auto;font-family:"Segoe UI",Arial,sans-serif}@media(max-width:560px){.story-card{flex-direction:column;align-items:flex-start}.story-art{width:100%}}
.tf-explorer #tf-model,.blocks-explorer #blocks-model,.hops-explorer #hops-model,.regroup-explorer #regroup-model,.gap-explorer #gap-model,.array-explorer #array-model,.share-explorer #share-model{padding:12px 16px}.tf-explorer svg,.blocks-explorer svg,.hops-explorer svg,.regroup-explorer svg,.gap-explorer svg,.array-explorer svg,.share-explorer svg{width:100%;max-width:460px;margin:0 auto;font-family:"Segoe UI",Arial,sans-serif}.course-actions{display:flex;flex-wrap:wrap;gap:12px;padding:22px;background:#edf2e5;border-radius:16px;margin:20px 0}.course-actions p{width:100%;font-size:12px}.fraction-explorer #fraction-model{padding:16px}.fraction-explorer svg{width:100%;font:14px "Segoe UI",Arial,sans-serif;fill:#54664b}.fraction-equality{text-align:center;font:24px Georgia,serif;color:#4d6638}.fraction-amount{text-align:center;margin:10px 0;font-size:13px}.fraction-controls{display:grid;gap:16px;padding:18px}.fraction-controls label{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}.fraction-controls input{grid-column:1/-1;width:100%;padding:0}.fraction-controls output{font-weight:700;color:#526f36}.lesson-stepper{flex-wrap:wrap}.lesson-stepper>span{min-width:65px}.course-skill-map{margin:26px 0}.course-skill-map>h3{margin-bottom:14px}.check-skill-results{list-style:none;padding:0;text-align:left;margin:24px 0}.check-skill-results li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
@media(max-width:430px){.course-actions .button{width:100%}.fraction-controls{padding:14px}.fraction-equality{font-size:20px}.check-skill-results li{font-size:11px}}
/* Visual polish: atmosphere, depth, and friendlier interaction */
body{background:radial-gradient(900px 420px at 88% -6%,#eef6cf 0%,transparent 62%),radial-gradient(760px 520px at -8% 18%,#ede8fa 0%,transparent 58%),radial-gradient(700px 500px at 60% 110%,#fbeede 0%,transparent 60%),var(--bg);background-attachment:fixed}
.sidebar{background:linear-gradient(180deg,#fcfdf8 0%,#f5f8ec 100%)}.nav-link{transition:background .2s,transform .2s}.nav-link:hover{transform:translateX(2px)}.nav-link.active{background:linear-gradient(135deg,#e4efcf,#edf4df);box-shadow:inset 0 0 0 1px #d6e3bd}
.hero{background:radial-gradient(520px 300px at 85% 10%,#3f6148 0%,transparent 70%),radial-gradient(420px 260px at 10% 110%,#355341 0%,transparent 70%),linear-gradient(135deg,#2c4637,#213528);box-shadow:0 18px 40px -22px #1c3023}.hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#ffffff14 1px,transparent 1.2px);background-size:22px 22px;opacity:.55;pointer-events:none}
.button{box-shadow:0 1px 0 #ffffff55 inset,0 6px 14px -10px #1f3325}.button.primary{background:linear-gradient(180deg,#34503f,#2a4233)}.button.primary:hover{background:linear-gradient(180deg,#2d4637,#223829);box-shadow:0 10px 20px -12px #1f3325}.button.lime{background:linear-gradient(180deg,#e2f77f,#d3ee5d);box-shadow:0 8px 22px -10px #d3ee5d}.button.secondary,.button.quiet{box-shadow:none}
.lesson-card,.catalog-card,.unit-block,.exercise-card,.explanation-card,.week-card,.stats-row,.skill-map,.practice-list{box-shadow:0 1px 2px #2c46370a,0 10px 28px -20px #2c463744}
.lesson-card{transition:transform .22s,box-shadow .22s}.lesson-card:hover{transform:translateY(-5px);box-shadow:0 18px 34px -18px #2c463766}
.card-art{overflow:hidden}.card-art:before{content:"";position:absolute;inset:0;background:radial-gradient(160px 90px at 50% 55%,#ffffff99,transparent 72%);pointer-events:none}.card-art .lesson-art{position:relative;filter:drop-shadow(0 6px 8px #2c463726)}
.catalog-card{overflow:hidden;transition:transform .22s,box-shadow .22s,border-color .22s}.catalog-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px -18px #2c463766}
.catalog-art{position:relative;height:118px;margin:-22px -22px 16px;display:flex;align-items:center;justify-content:center;overflow:hidden}.catalog-art:before{content:"";position:absolute;inset:0;background:radial-gradient(150px 80px at 50% 55%,#ffffffa0,transparent 72%)}.catalog-art .lesson-art{position:relative;width:132px;height:92px;filter:drop-shadow(0 5px 7px #2c463726)}
.catalog-art.planned{height:52px;margin-bottom:12px;background:repeating-linear-gradient(135deg,#f3f1e8 0,#f3f1e8 10px,#f8f6ee 10px,#f8f6ee 20px)}.planned-mark{position:relative;font:italic 17px Georgia,serif;color:#a8a08a;letter-spacing:-.3px}
.level-chip{position:absolute;top:10px;right:12px;font-size:9px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:4px 9px;border-radius:20px;background:#ffffffcc;color:#59694a;border:1px solid #ffffff;backdrop-filter:blur(4px)}
.art-cell{fill:#fffdf4;stroke:var(--art-stroke);stroke-width:1;stroke-opacity:.55}.art-box{fill:var(--art-light);stroke:var(--art-stroke);stroke-width:1.5}.art-orange{fill:#e0894a;stroke:none}.art-orange-line{fill:none;stroke:#e0894a;stroke-width:6;stroke-linecap:round}.lesson-art text.art-text-dark{fill:#3f5a35}
.lesson-title{display:flex;justify-content:space-between;align-items:center;gap:24px}.lesson-title>div:first-child{min-width:0}.title-art{flex-shrink:0;width:210px;border-radius:24px;padding:10px 6px;position:relative;box-shadow:0 14px 30px -20px #2c463788}.title-art .lesson-art{width:100%;height:auto;filter:drop-shadow(0 6px 8px #2c463726)}
.story-card{position:relative;overflow:hidden;background:linear-gradient(135deg,#fdf6e3,#f9efd2);border-color:#efe0b0;box-shadow:0 14px 28px -22px #8a6d1c88}.story-card:after{content:"";position:absolute;right:-30px;top:-30px;width:130px;height:130px;border-radius:50%;background:radial-gradient(#ffffff99,transparent 70%)}.story-art{background:#ffffffb8;border-radius:18px;padding:10px;box-shadow:0 8px 18px -12px #8a6d1c66}
.interactive-canvas{background:linear-gradient(180deg,#fdfef9,#f6f9ee);box-shadow:0 16px 32px -24px #2c463788}.canvas-header{background:#f1f6e5;font-size:10px;font-weight:700}.canvas-badge{background:#d8ee8a;color:#3f5a25;font-weight:800;letter-spacing:1px}
.plane-facts li:first-child{font-weight:650;color:#3f5a35}.plane-facts li{transition:background .15s}
.fraction-controls{background:#f4f8ea;border-top:1px solid #e7ecdf}.fraction-controls label{font-weight:600;color:#3f5a35}.fraction-controls output{background:#e4f0bd;border-radius:8px;padding:1px 9px;font-variant-numeric:tabular-nums}
input[type=range]{-webkit-appearance:none;appearance:none;height:8px;border-radius:8px;background:linear-gradient(90deg,#c9e36a,#9cc24a);border:0;padding:0;cursor:pointer;accent-color:#7ba03a}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid #6f9a35;box-shadow:0 4px 10px -3px #2c463799;transition:transform .15s}input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.15)}input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #6f9a35;box-shadow:0 4px 10px -3px #2c463799}input[type=range]::-moz-range-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#c9e36a,#9cc24a)}
.choice{background:#fff;box-shadow:0 1px 2px #2c46370a;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s}.choice:hover{transform:translateY(-2px);border-color:#b9cd94;box-shadow:0 10px 20px -14px #2c463788}.choice.selected{background:linear-gradient(135deg,#f0f7df,#e7f2cd);border-color:#8fb455;box-shadow:0 0 0 3px #c9e36a66}.choice-letter{transition:background .15s,color .15s}.choice.selected .choice-letter{background:#7ba03a;color:#fff}
.answer-feedback.correct{background:linear-gradient(135deg,#eaf6cf,#f3fadf);border:1px solid #cfe49a;animation:feedback-pop .45s cubic-bezier(.2,1.4,.4,1)}.answer-feedback.incorrect{background:linear-gradient(135deg,#fdeede,#fbf3e6);border:1px solid #f0d3ae}@keyframes feedback-pop{0%{transform:scale(.94);opacity:0}100%{transform:scale(1);opacity:1}}
.finish-symbol{background:linear-gradient(135deg,#e2f3b4,#cfe88a);box-shadow:0 18px 30px -16px #8cb23a;animation:finish-float 3.2s ease-in-out infinite}@keyframes finish-float{0%,100%{transform:rotate(-7deg) translateY(0)}50%{transform:rotate(-4deg) translateY(-6px)}}
.lesson-stepper>span{transition:border-color .2s,color .2s}.lesson-stepper>span.current{border-top-width:4px;margin-top:-1px}
.takeaway{background:linear-gradient(135deg,#f1f6e5,#e9f2d6);border:1px solid #dce9bb}
.explanation-card>h2{background:linear-gradient(90deg,#455e37,#6e8f3d);-webkit-background-clip:text;background-clip:text;color:transparent}
.course-actions{background:linear-gradient(135deg,#eef4e0,#e6efd0)}.practice-hero{background:linear-gradient(135deg,#eef3e1,#e2edca);box-shadow:0 14px 30px -22px #2c463788}.assessment-banner{background:linear-gradient(135deg,#f2efe6,#ece6d6)}
.status.available{background:linear-gradient(135deg,#e7f3c4,#d9ecab);color:#4a6623}.status.planned{background:#f3eee0}
@media(max-width:760px){.lesson-title{flex-direction:column-reverse;align-items:flex-start;gap:14px}.title-art{width:100%;max-width:170px;padding:6px 4px;border-radius:20px}.catalog-art{height:104px}.catalog-art.planned{height:46px}body{background-attachment:scroll}}
.finish-card{position:relative;overflow:hidden}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-16px;width:9px;height:15px;border-radius:2px;opacity:0;animation:confetti-fall 2.6s ease-out forwards}.confetti i:nth-child(6n+1){background:#d8f36a}.confetti i:nth-child(6n+2){background:#8e7bbd}.confetti i:nth-child(6n+3){background:#f4c27a}.confetti i:nth-child(6n+4){background:#7eac87}.confetti i:nth-child(6n+5){background:#e0894a}.confetti i:nth-child(6n){background:#7299c5}.confetti i:nth-child(1){left:6%;animation-delay:.0s}.confetti i:nth-child(2){left:13%;animation-delay:.25s}.confetti i:nth-child(3){left:20%;animation-delay:.1s}.confetti i:nth-child(4){left:27%;animation-delay:.4s}.confetti i:nth-child(5){left:34%;animation-delay:.05s}.confetti i:nth-child(6){left:41%;animation-delay:.3s}.confetti i:nth-child(7){left:48%;animation-delay:.15s}.confetti i:nth-child(8){left:55%;animation-delay:.45s}.confetti i:nth-child(9){left:62%;animation-delay:.08s}.confetti i:nth-child(10){left:69%;animation-delay:.35s}.confetti i:nth-child(11){left:76%;animation-delay:.2s}.confetti i:nth-child(12){left:83%;animation-delay:.5s}.confetti i:nth-child(13){left:90%;animation-delay:.12s}.confetti i:nth-child(14){left:10%;animation-delay:.6s}.confetti i:nth-child(15){left:30%;animation-delay:.7s}.confetti i:nth-child(16){left:52%;animation-delay:.65s}.confetti i:nth-child(17){left:72%;animation-delay:.75s}.confetti i:nth-child(18){left:93%;animation-delay:.55s}@keyframes confetti-fall{0%{opacity:0;transform:translateY(0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translateY(420px) rotate(540deg)}}
.course-complete{display:inline-flex;align-items:center;gap:8px;margin:0 auto 18px;padding:8px 16px;border-radius:30px;background:linear-gradient(135deg,#e2f3b4,#d3ee7a);color:#3f5a25;font-weight:700;font-size:13px;box-shadow:0 10px 20px -12px #8cb23a}.course-complete .icon{width:17px;height:17px}
.curiosity-card progress{width:100%;height:8px;margin:10px 0 2px;display:block}
.float-a,.float-b,.float-c{transform-box:fill-box;transform-origin:center}.float-a{animation:float-a 5.5s ease-in-out infinite}.float-b{animation:float-b 6.5s ease-in-out infinite}.float-c{animation:float-c 7s ease-in-out infinite}@keyframes float-a{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-9px) rotate(4deg)}}@keyframes float-b{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-12px) rotate(-3deg)}}@keyframes float-c{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(6deg)}}
/* Premium design system: open layout, a single level of depth, editorial type */
:root{--bg:#faf8f3;--paper:#fff;--ink:#17261d;--muted:#6d766b;--line:#ebe7dc;--lime:#d3ec62;--green:#1f3a2b;--radius:28px;--shadow-soft:0 1px 2px #17261d0a,0 18px 40px -28px #17261d55;--shadow-lift:0 2px 4px #17261d0d,0 30px 54px -30px #17261d70;--serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif}
html{scroll-behavior:smooth}
body{background:var(--bg);background-attachment:scroll;color:var(--ink);font:15px/1.7 "Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2{font-family:var(--serif);font-weight:500;letter-spacing:-.022em}h1{font-size:clamp(34px,4.6vw,56px);line-height:1.06}h2{font-size:clamp(24px,2.7vw,34px);line-height:1.14}h3{font-weight:650;letter-spacing:-.012em}
.eyebrow,.eyebrow.small{font-size:11px;letter-spacing:.18em;color:#8c9b6c;font-weight:700}
p{color:#5d675c}
.sidebar{background:var(--bg);border-right:1px solid var(--line)}.nav-link{border-radius:14px}.nav-link:hover{background:#f1efe5;transform:none}.nav-link.active{background:#eeece0;color:var(--ink);box-shadow:none}
.curiosity-card{background:none;border:0;padding:0 8px;margin-bottom:22px}.curiosity-card strong{font:500 17px/1.4 var(--serif);letter-spacing:-.01em}
.profile-button{border-top:1px solid var(--line)}
.topbar{background:transparent;border-bottom:0;height:76px}.goal-chip{background:#fff;border:0;box-shadow:var(--shadow-soft)}.local-badge{color:#8c9b6c}
main{padding:44px 56px 90px;max-width:1160px}
.page-heading{margin-bottom:40px}.page-heading p{font-size:15px;margin-top:14px;max-width:56ch}
.button{border-radius:14px;padding:14px 24px;font-size:14px;box-shadow:none}.button.primary{background:#17261d;color:#fff}.button.primary:hover{background:#0f1b14;box-shadow:0 14px 24px -14px #17261d99}.button.lime{background:var(--lime);color:#17261d;box-shadow:none}.button.lime:hover{box-shadow:0 14px 28px -12px #cfe85d}.button.secondary{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px #d8d3c4}.button.secondary:hover{background:#fff}.button.quiet{color:#4a6a35}
.pill.outline{background:#f0eee3;border:0;color:#6b7a58}
.hero{border-radius:34px;box-shadow:var(--shadow-lift);min-height:340px}
.week-card{background:#fff;border:0;box-shadow:var(--shadow-soft);border-radius:30px}.week-card hr{border-top-color:var(--line)}
.stats-row{background:none;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:30px 0;margin:48px 0}
.path-banner{background:none;border:0;box-shadow:none;padding:6px 0 22px}.path-icon{background:#f0eee3}
.section-heading{margin:56px 0 22px}
.lesson-card{background:#fff;border:0;border-radius:28px;box-shadow:var(--shadow-soft)}.lesson-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-6px)}.card-art{height:176px}.card-body{padding:24px 26px 22px}.card-body h3{font-size:19px;margin:8px 0 10px}.card-body p{font-size:13px}.card-meta{border-top:0;margin-top:18px;padding-top:0;color:#8b9486}
.catalog-card{background:#fff;border:0;border-radius:28px;box-shadow:var(--shadow-soft)}.catalog-card:hover{border:0;box-shadow:var(--shadow-lift)}.catalog-art{height:132px}.catalog-card .card-meta{margin-top:auto}
.subject-filters a{background:#fff;border:0;box-shadow:var(--shadow-soft);padding:9px 16px}.subject-filters a[aria-current]{background:#17261d;color:#fff;box-shadow:none}
.notice{background:none;border:0;border-left:3px solid var(--lime);border-radius:0;padding:2px 0 2px 18px;margin:28px 0}.notice.warning{border-left-color:#e3bd7c;background:none}.notice p{font-size:13px;color:#5d675c}.notice .icon{display:none}
.assessment-banner{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:44px 0;margin-top:56px}.assessment-symbol{background:#f0eee3;color:#a39469}
.course-intro{background:none;border:0;padding:0}
.unit-block{background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:64px 0}.unit-block .section-heading{margin:0 0 10px}.unit-block h2{font-size:30px}.objective-list{margin:6px 0 26px;padding-left:20px}.unit-block .cards-grid{margin-top:26px}.outline-note{background:#f3f1e7;border-radius:18px}
.course-actions{background:none;border-radius:0;padding:0;margin:26px 0 8px}
.lesson-navigation{margin-bottom:40px;color:#8b9486}
.lesson-title{margin-bottom:38px;gap:48px}.lesson-title h1{font-size:clamp(36px,5vw,58px)}.lesson-title>div:first-child>p{font-size:17px;margin-top:16px;max-width:46ch}.title-art{background:none;box-shadow:none;padding:0;width:230px;border-radius:0}.title-art .lesson-art{filter:drop-shadow(0 14px 18px #17261d1f)}
.lesson-stepper{gap:8px;margin-bottom:44px}.lesson-stepper>span{border-top:4px solid #e6e2d4;border-radius:4px;padding-top:12px;font-size:11px;color:#9aa293}.lesson-stepper>span.current{border-top-color:#17261d;color:#17261d;margin-top:0}.lesson-stepper>span.done{border-top-color:#9cc24a;color:#7f8c72}
.explanation-card,.exercise-card{background:none;border:0;border-radius:0;box-shadow:none;padding:0}.explanation-card>h2{background:none;-webkit-text-fill-color:currentColor;color:var(--ink);font:500 clamp(30px,4vw,46px)/1.15 var(--serif);letter-spacing:-.02em;margin:10px 0 26px}.explanation-card>p{font-size:17px;line-height:1.9;color:#47524a;max-width:64ch}
.takeaway{background:none;border:0;border-left:3px solid var(--lime);border-radius:0;padding:4px 0 4px 22px;margin:44px 0}.takeaway>span{display:none}.takeaway p{font:italic 500 21px/1.5 var(--serif);color:var(--ink)}
.story-card{background:none;border:0;border-top:1px solid #e6dcc0;border-radius:0;box-shadow:none;overflow:visible;padding:30px 0 6px;margin:0 0 44px;gap:34px;align-items:flex-start}.story-card:after{display:none}.story-art{background:none;box-shadow:none;padding:0;width:170px}.story-art .lesson-art{filter:drop-shadow(0 10px 14px #17261d1a)}.story-card h3{font:500 24px/1.2 var(--serif);margin:6px 0 10px}.story-card p{font-size:15px;line-height:1.85;color:#6d6650}
.interactive-canvas{margin:44px 0;border:0;border-radius:34px;background:radial-gradient(640px 280px at 50% 0%,#ffffff 0%,#ffffff00 72%),#f3f1e7;box-shadow:none;overflow:visible;padding:30px 34px 28px}
.canvas-header{border:0;background:none;padding:0 0 10px;font-size:11px;letter-spacing:.18em;color:#8c9b6c}.canvas-badge{background:#fff;color:#4a6623;box-shadow:0 1px 2px #17261d14;padding:4px 10px;border-radius:20px}
.interactive-canvas [id$="-model"]{padding:6px 0 0}.interactive-canvas svg{max-width:520px}.graph-wrap{border:0;background:none}
.plane-facts{margin:22px 0 0;text-align:center}.plane-facts li{border:0;padding:3px 0;font-size:15px;color:#51605a}.plane-facts li:first-child{font:600 20px/1.45 "Segoe UI Variable Display","Segoe UI",sans-serif;color:var(--ink);padding-bottom:8px;letter-spacing:-.01em}
.fraction-controls{background:none;border:0;padding:26px 0 4px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:24px 44px}.fraction-controls label{font-size:13px;font-weight:600;color:#4b574f}.fraction-controls output{background:none;padding:0;border-radius:0;font-size:19px;color:var(--ink)}
input[type=range]{height:6px;background:#d9d4c3}input[type=range]::-webkit-slider-thumb{width:26px;height:26px;border:0;background:#17261d;box-shadow:0 0 0 5px #fff,0 8px 16px -4px #17261d88}input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.1)}input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;background:#17261d;box-shadow:0 0 0 5px #fff}input[type=range]::-moz-range-track{height:6px;background:#d9d4c3}
.canvas-caption{border:0;background:none;color:#8b9486;font-size:12px;text-align:center;margin-top:18px}
.canvas-details{border:0;background:none;box-shadow:none;margin-top:34px}.canvas-details summary{padding:0;color:#3f5a25;font-weight:650;list-style-position:inside}
.exercise-card h2{font-size:clamp(28px,3.6vw,42px);line-height:1.2;margin:18px 0 34px}.exercise-header{border:0}
.answer-choices{gap:14px}.choice{background:#fff;border:0;border-radius:20px;padding:20px 22px;box-shadow:var(--shadow-soft);font-size:15px}.choice:hover{border:0;box-shadow:var(--shadow-lift);transform:translateY(-2px)}.choice.selected{background:#fff;border:0;box-shadow:0 0 0 2px #17261d,var(--shadow-soft)}.choice.selected .choice-letter{background:#17261d;color:#fff}.choice-letter{background:#f0eee3}
.number-answer input{background:transparent;border:0;border-bottom:2px solid #cdc8b6;border-radius:0;font-size:34px;padding:10px 0;box-shadow:none}.number-answer input:focus{border-bottom-color:#17261d;outline:none}.number-answer label{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#8b9486}
.answer-feedback{border:0;border-radius:24px}.hint-box{border:0;background:#f4efdd;border-radius:20px}
.exercise-actions{margin-top:30px}
.tutor-panel{background:none;border:0;box-shadow:none;padding:0;position:sticky;top:28px}.tutor-disabled{background:#f3efe3;border:0}.authored-help{border:0;background:none;padding:0}.tutor-input{display:none}.privacy-note{display:none}
.lesson-layout{gap:64px}
.finish-card{background:none;border:0;box-shadow:none}.finish-card blockquote{font:italic 500 22px/1.5 var(--serif);color:var(--ink);border:0}
.practice-hero{background:#f3f1e7;border:0;box-shadow:none;border-radius:34px}.practice-list{background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}.practice-item{border-bottom:1px solid var(--line)}.practice-item:hover{background:transparent}
.mastery-overview{background:none;border:0;padding:0}.summary-note{background:none;border:0;border-left:3px solid #cbbfee;border-radius:0;padding:2px 0 2px 20px}.skill-map{background:none;border:0;box-shadow:none;padding:0;border-radius:0}.skill-row{border-bottom:1px solid var(--line)}.course-skill-map{margin:44px 0}
.studio-item,.studio-editor,.studio-list{border-radius:20px}
.coverage-table{background:none}.coverage-table th{background:none;color:#8c9b6c;font-size:11px;letter-spacing:.14em;text-transform:uppercase}.coverage-table th,.coverage-table td{border-left:0;border-right:0}
.status{background:#f0eee3;color:#6b7a58}.status.available,.status.mastered{background:#e8f3c4;color:#4a6623}.status.planned{background:#f3eee0;color:#8b7a52}
.footer{border-top:1px solid var(--line);padding-top:22px;margin-top:40px}
@media(max-width:1000px){main{padding:36px 36px 80px}.lesson-layout{gap:40px}}
@media(max-width:760px){main{padding:26px 20px 70px}.title-art{width:150px}.lesson-title{gap:18px}.interactive-canvas{padding:24px 20px 22px;border-radius:28px}.story-card{gap:20px}.story-art{width:130px}.hero{min-height:0}}
/* Color system: inputs amber, outputs lime, one color per operation */
:root{--in:#ffd166;--in-ink:#4a3500;--out:#c8f05a;--out-ink:#26400d;--machine:#1f2a44;--add:#2fa66a;--sub:#ef7d57;--mul:#8b6df0;--div:#2f8fe0;--eq:#14b8a6;--place:#e6a23c}
.violet{background:#e6defe;--art-dark:#7c5ce0;--art-light:#bda9f7;--art-stroke:#5b3fc0}.peach{background:#ffe3d3;--art-dark:#ef7d57;--art-light:#ffbf9f;--art-stroke:#c4532d}.mint{background:#d9f3e1;--art-dark:#2fa66a;--art-light:#98dcb4;--art-stroke:#1d7a4b}.blue{background:#d9eaff;--art-dark:#2f8fe0;--art-light:#9ccbf5;--art-stroke:#1b66aa}.yellow{background:#fff1bd;--art-dark:#e6a23c;--art-light:#fad680;--art-stroke:#a8741b}
/* Input, machine, output */
.machine-strip{display:flex;align-items:center;justify-content:center;gap:0;margin:6px 0 8px;flex-wrap:wrap}.kind-add{--k:var(--add)}.kind-sub{--k:var(--sub)}.kind-mul{--k:var(--mul)}.kind-div{--k:var(--div)}.kind-eq{--k:var(--eq)}.kind-place{--k:var(--place)}
.slots{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.chip{display:inline-flex;align-items:center;justify-content:center;min-width:66px;height:66px;padding:0 18px;border-radius:22px;font:700 30px/1 "Segoe UI Variable Display","Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.chip.long{font-size:20px;height:56px}
.chip.in{background:var(--in);color:var(--in-ink);box-shadow:0 10px 20px -12px #b98700,inset 0 -4px 0 #00000014}.chip.out{background:var(--out);color:var(--out-ink);box-shadow:0 0 0 5px #c8f05a40,0 14px 26px -12px #7fa31a,inset 0 -4px 0 #00000014;animation:chip-pop .5s cubic-bezier(.2,1.5,.4,1)}
@keyframes chip-pop{0%{transform:scale(.6);opacity:.2}100%{transform:scale(1);opacity:1}}
.pipe{position:relative;width:46px;height:8px;border-radius:8px;background:repeating-linear-gradient(90deg,#c9c3b0 0 10px,#e4dfd0 10px 20px);background-size:20px 8px;animation:pipe-flow 1.1s linear infinite;margin:0 4px}.pipe:after{content:"";position:absolute;right:-6px;top:-5px;border-left:10px solid #c9c3b0;border-top:9px solid transparent;border-bottom:9px solid transparent}
@keyframes pipe-flow{to{background-position:20px 0}}
.machine{position:relative;width:132px;height:100px;border-radius:30px;background:linear-gradient(160deg,#2b3a5e,var(--machine));box-shadow:0 22px 34px -20px #1f2a44cc,inset 0 0 0 3px #ffffff18;overflow:hidden;animation:machine-kick .6s ease-out}
@keyframes machine-kick{0%{transform:scale(.94)}50%{transform:scale(1.04)}100%{transform:scale(1)}}
.gears{position:absolute;inset:0;width:100%;height:100%;opacity:.95}.gear{transform-box:fill-box;transform-origin:center}.gear circle:first-child,.gear rect{fill:var(--k)}.gear .hub{fill:var(--machine)}.g1{animation:spin 7s linear infinite}.g2{animation:spin-back 5s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes spin-back{to{transform:rotate(-360deg)}}
.op-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:50px;height:50px;padding:0 10px;border-radius:25px;background:#fff;color:var(--k);display:flex;align-items:center;justify-content:center;font:800 24px/1 "Segoe UI",sans-serif;box-shadow:0 8px 16px -6px #0008,0 0 0 4px var(--k)}
.plane-facts{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.interactive-canvas svg{margin-top:16px}
/* Robot guide */
.bot{display:block;overflow:visible;height:auto}.bot-sm{width:54px}.bot-md{width:104px}.bot-lg{width:150px}.bot-xl{width:200px}
.bot-head{fill:#f4f7ff;stroke:var(--machine);stroke-width:3}.bot-visor{fill:var(--machine)}.bot-eye{fill:#8ff0c0}.bot-shine{fill:#fff}.bot-mouth{stroke:#8ff0c0;stroke-width:4;stroke-linecap:round;fill:none}.bot-mouth-open{fill:#8ff0c0}.bot-eye-closed{stroke:#8ff0c0;stroke-width:4;stroke-linecap:round;fill:none}.bot-spark{fill:#ffd166}
.bot-ear{fill:#7aa2ff}.bot-torso{fill:#e8eeff;stroke:var(--machine);stroke-width:3}.bot-screen{fill:var(--machine)}.bot-plus{stroke:var(--out);stroke-width:3;stroke-linecap:round;fill:none}.bot-stem{stroke:var(--machine);stroke-width:4;stroke-linecap:round}.bot-bulb{fill:var(--in);stroke:var(--machine);stroke-width:2.5}.bot-arm{stroke:var(--machine);stroke-width:6;stroke-linecap:round;fill:none}.bot-hand{fill:#7aa2ff;stroke:var(--machine);stroke-width:2.5}
.bot-body{transform-box:fill-box;transform-origin:50% 100%;animation:bot-bob 3.4s ease-in-out infinite}.bot.cheer .bot-body{animation:bot-hop 1s ease-in-out infinite}.bot.sleep .bot-body{animation:bot-bob 6s ease-in-out infinite}
.bot-eyes{transform-box:fill-box;transform-origin:center;animation:bot-blink 4.6s infinite}.bot-bulb{animation:bulb 1.8s ease-in-out infinite}
@keyframes bot-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes bot-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}@keyframes bot-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes bulb{0%,100%{opacity:1}50%{opacity:.45}}
.coach{display:flex;align-items:center;gap:20px;margin:30px 0 18px}.bubble{position:relative;background:#fff;border-radius:26px;padding:20px 26px;font:600 19px/1.45 "Segoe UI Variable Display","Segoe UI",sans-serif;color:var(--ink);box-shadow:var(--shadow-soft);max-width:44ch}.bubble:before{content:"";position:absolute;left:-12px;top:50%;margin-top:-12px;border-right:14px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent}
.formula{font-size:clamp(30px,4vw,48px)!important;margin:6px 0 4px!important}
.read-more{margin:6px 0 30px}.read-more summary{cursor:pointer;display:inline-block;padding:8px 18px;border-radius:30px;background:#f0eee3;color:#4a6623;font-weight:650;font-size:13px;list-style:none}.read-more summary::-webkit-details-marker{display:none}.read-more[open] summary{background:#e8f3c4}.read-more p{margin-top:16px;font-size:16px;line-height:1.85;max-width:62ch}
.tutor-panel.compact{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;position:sticky;top:28px}.tutor-note{font-size:12px;color:#8b9486;line-height:1.4}.tutor-note .icon{width:13px;height:13px;vertical-align:-2px}
.lesson-layout{grid-template-columns:minmax(0,1fr) 120px}
.answer-feedback{display:flex;gap:18px;align-items:center}.answer-feedback.correct{background:#eaf8c8}.answer-feedback.incorrect{background:#ffe9dc}.answer-feedback strong{font-size:20px}
.finish-symbol{width:auto;height:auto;background:none;box-shadow:none;transform:none;animation:none;border-radius:0;margin:0 auto 10px}
#side-card{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:4px 0}#side-card strong{font:600 14px/1.3 "Segoe UI",sans-serif}#side-card progress{width:100%}
.hero-bot{position:absolute;right:20px;bottom:6px;z-index:2}.hero-art{width:42%;right:150px}
@media(max-width:760px){.lesson-layout{grid-template-columns:1fr}.tutor-panel.compact{flex-direction:row;position:static;justify-content:center}.hero-bot{right:6px;bottom:0}.hero-bot .bot-xl{width:120px}.hero-art{opacity:.35;right:0;width:60%}.chip{min-width:54px;height:54px;font-size:24px}.machine{width:104px;height:84px}.pipe{width:26px}.coach{flex-direction:column;align-items:flex-start}.bubble:before{display:none}.answer-feedback{flex-direction:column;align-items:flex-start}}
.interactive-canvas svg{margin-top:16px}.machine .gears,.machine-strip svg{margin-top:0;max-width:none}.story-card{margin:26px 0 18px;padding:22px 0 4px}.story-art .lesson-art{background:none}.story-art{width:130px}
.lesson-art,svg.lesson-art{background:transparent!important}.story-art,.title-art{background:transparent!important}
.story-explorer #story-model>svg{display:none}
.expr-explorer #expr-model{padding:6px 0 0}.expr-explorer svg:not(.gears){width:100%;max-width:460px;margin:12px auto 0}.expr-box{fill:#ffe3d3;stroke:#ef7d57;stroke-width:3}.expr-x{font:700 26px "Segoe UI",sans-serif;fill:#8a3b1a}.expr-pen{fill:#fad680;stroke:#e6a23c;stroke-width:3}.expr-b{font:700 22px "Segoe UI",sans-serif;fill:#6b4a00}
/* Euler identity hero */
.dashboard-grid .hero.euler{grid-column:1/-1;min-height:0;padding:6px 18px 6px 0;gap:0}
.hero.euler .hero-copy{flex:0 0 300px;padding:30px 8px 30px 38px}
.hero.euler h2{font-size:40px}
.hero-actions{display:flex;align-items:center;gap:12px}
.hero-actions .bot{width:56px}
.euler-art{flex:1 1 auto;min-width:0;width:100%;height:auto;position:relative;z-index:1;display:block}
.eu-axis{stroke:#8fa894;stroke-width:1.5;fill:none}
.eu-arrow{fill:#8fa894}
.eu-axis-lab{font:10px system-ui,sans-serif;fill:#8fa894;letter-spacing:.6px}
.eu-track{fill:none;stroke:#cfe3c6;stroke-opacity:.22;stroke-width:1.5;stroke-dasharray:2 7;stroke-linecap:round}
.eu-arc{fill:none;stroke:#c8f05a;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.eu-low{fill:none;stroke:#c8f05a;stroke-opacity:.5;stroke-width:3;stroke-linecap:round}
.eu-wedge{fill:#c8f05a;fill-opacity:.12}
.eu-rad{stroke:#f4f5e9;stroke-width:2.5;stroke-linecap:round}
.eu-cos{stroke:#6fe0c4;stroke-width:2;stroke-dasharray:4 5}
.eu-sin{stroke:#b69cff;stroke-width:2;stroke-dasharray:4 5}
.eu-ang{fill:none;stroke:#ffd166;stroke-width:2.5;stroke-linecap:round}
.eu-theta{fill:#ffd166;font:italic 18px Georgia,serif}
.eu-dot{fill:#d9e6d3}
.eu-lab{font:600 16px Georgia,serif;fill:#d9e6d3}
.eu-lab.l-1{fill:#c8f05a}.eu-lab.l-i{fill:#b69cff;font-style:italic}.eu-lab.l-0{fill:#ff8f7a}
.eu-halo{fill:#c8f05a;fill-opacity:.22}
.eu-pt{fill:#c8f05a;stroke:#1f3a29;stroke-width:3}
.eu-rip{fill:none;stroke:#ff8f7a;stroke-width:3}
.eu-slide{stroke:#c8f05a;stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round}
.eu-plus rect{fill:#c8f05a}
.eu-plus text{fill:#22351f;font:700 15px system-ui,sans-serif}
.eu-eq{font:54px Georgia,"Times New Roman",serif}
.eu-eq .it{font-style:italic}
.eu-eq .sup{font-size:32px}
.eu-tok{fill-opacity:.26;transition:fill-opacity .5s}
.eu-tok.on{fill-opacity:1}
.tk-e{fill:#ffa94d}.tk-i{fill:#b69cff}.tk-pi{fill:#5db8ff}.tk-1{fill:#c8f05a}.tk-0{fill:#ff8f7a}.tk-op{fill:#f4f5e9}
.eu-status{font:600 15px system-ui,sans-serif;fill:#d9e6d3}
.eu-badge{--c:#fff}
.b-e{--c:#ffa94d}.b-i{--c:#b69cff}.b-pi{--c:#5db8ff}.b-1{--c:#c8f05a}.b-0{--c:#ff8f7a}
.eu-badge circle{fill:#ffffff0d;stroke:var(--c);stroke-opacity:.4;stroke-width:2;transition:fill .5s,stroke-opacity .5s}
.eu-badge.on circle{fill:var(--c);stroke-opacity:1}
.eu-glyph{font:italic 26px Georgia,serif;fill:var(--c);transition:fill .5s}
.b-pi .eu-glyph,.b-1 .eu-glyph,.b-0 .eu-glyph{font-style:normal}
.eu-badge.on .eu-glyph{fill:#1c2d22}
.eu-cap{font:11px system-ui,sans-serif;fill:#a9bba8}
.eu-chip rect{stroke-width:1.5;fill:#ffffff0d}
.eu-chip.in rect{stroke:#ffd166;fill:#ffd16622}.eu-chip.out rect{stroke:#c8f05a;fill:#c8f05a24}
.eu-chip text{font:600 16px var(--mono)}
.eu-chip.in text{fill:#ffd166}.eu-chip.out text{fill:#c8f05a}
.eu-flow{fill:none;stroke:#c8f05a;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1001px){
.dashboard-grid .week-card{grid-column:1/-1;display:flex;align-items:center;gap:40px;padding:16px 34px}
.week-card hr,.week-card>p,.week-card .section-label>span{display:none}
.week-card .streak-value{margin:0;font-size:34px}
.week-card .week-days{margin:0;gap:12px}
.week-card .daily-goal{margin-left:auto}
}
@media(max-width:1190px) and (min-width:1001px){
.hero.euler .hero-copy{flex-basis:250px;padding-left:28px}
.hero.euler h2{font-size:34px}
.hero-actions{flex-wrap:wrap}
}
@media(max-width:1000px){
.hero.euler{flex-direction:column;align-items:stretch;padding:0 0 10px}
.hero.euler .hero-copy{flex:none;padding:28px 26px 6px}
.euler-art{padding:0 10px}
}
/* Math greats */
.guest{display:flex;align-items:center;gap:26px;margin:28px 0 22px}
.guest-art{flex:0 0 230px;min-width:0}
.guest-art .great-art{width:100%}
.guest-talk{flex:1 1 0;min-width:0}
.guest-name{display:block;font:500 20px/1.2 var(--serif);color:#2b3a30;margin-bottom:10px}
.guest-name small{display:block;font:12px system-ui,sans-serif;color:#8a8470;margin-top:3px}
.guest .bubble{margin:0;font:500 16px/1.65 "Segoe UI Variable Text","Segoe UI",sans-serif;padding:16px 22px;max-width:none}
.guest.after{margin:6px auto 26px;max-width:640px;text-align:left}
@media(max-width:1100px){.guest{flex-direction:column;align-items:flex-start;gap:14px}.guest-art{flex-basis:auto;width:100%;max-width:300px}.guest .bubble:before{display:none}}
.great-art{width:100%;height:auto;display:block;border-radius:28px;overflow:hidden;filter:drop-shadow(0 16px 18px #17261d22)}
.great-art text{font-family:"Segoe UI",system-ui,sans-serif;fill:#2b3a30}
.great-art .coin-t{fill:#fff}
.great-art .gk-bg{fill:#f3efe2}
.great-art.yellow .gk-bg{fill:#fbefc8}.great-art.peach .gk-bg{fill:#fde0d2}.great-art.mint .gk-bg{fill:#dcf2e2}.great-art.blue .gk-bg{fill:#d8e8fa}.great-art.violet .gk-bg{fill:#e8e1fa}
.gk-turn{transform-box:view-box;transform-origin:180px 86px;animation:gk-trn 8s linear infinite}
@keyframes gk-trn{to{transform:rotate(360deg)}}

.gk-ink{fill:none;stroke:#2b3a30;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gk-ink.v{stroke:#8f7bd8}.gk-ink.o{stroke:#e0745a}.gk-ink.am{stroke:#e0a43a}.gk-ink.w25{stroke-width:2.5}.gk-ink.w4{stroke-width:4}.gk-ink.w7{stroke-width:7}
.gk-bob{animation:gk-bob 3.2s ease-in-out infinite}
.gk-eye{transform-box:fill-box;transform-origin:center;animation:gk-blink 4.5s infinite}
.gk-draw{stroke-dasharray:1;stroke-dashoffset:1;animation:9s ease-in-out infinite}
.gk-draw.a{animation-name:gk-dA}.gk-draw.b{animation-name:gk-dB}.gk-draw.c{animation-name:gk-dC}.gk-draw.e{animation-name:gk-dE}
.gk-pop{opacity:0;transform-box:fill-box;transform-origin:center;animation:9s ease-out infinite}
.gk-pop.a{animation-name:gk-pA}.gk-pop.b{animation-name:gk-pB}.gk-pop.c{animation-name:gk-pC}.gk-pop.d{animation-name:gk-pD}.gk-pop.f{animation-name:gk-pF}
.gk-s{opacity:0;animation:9s linear infinite}
.gk-s.a{animation-name:gk-sA}.gk-s.b{animation-name:gk-sB}.gk-s.c{animation-name:gk-sC}.gk-s.d{animation-name:gk-sD}.gk-s.h1{animation-name:gk-h1}.gk-s.h2{animation-name:gk-h2}
.gk-grow{transform-box:fill-box;transform-origin:left center;transform:scaleX(0);animation:gk-gr 9s ease-in-out infinite}
.gk-inL{animation:gk-inL 9s ease-in-out infinite}.gk-inR{animation:gk-inR 9s ease-in-out infinite}
.gk-tilt{transform-box:view-box;transform-origin:180px 56px;animation:gk-tl 4s ease-in-out infinite}
.gk-spin{transform-box:view-box;transform-origin:180px 88px;animation:gk-half 9s ease-in-out infinite}
.gk-digits text{opacity:0;transform-box:fill-box;transform-origin:center;animation:gk-pG 9s ease-out infinite}
.gk-digits text:nth-child(2){animation-delay:.35s}.gk-digits text:nth-child(3){animation-delay:.7s}.gk-digits text:nth-child(4){animation-delay:1.05s}.gk-digits text:nth-child(5){animation-delay:1.4s}.gk-digits text:nth-child(6){animation-delay:1.75s}.gk-digits text:nth-child(7){animation-delay:2.1s}.gk-digits text:nth-child(8){animation-delay:2.45s}.gk-digits text:nth-child(9){animation-delay:2.8s}.gk-digits text:nth-child(10){animation-delay:3.15s}
@keyframes gk-bob{50%{transform:translateY(-2.5px)}}
@keyframes gk-blink{0%,94%,100%{transform:scaleY(1)}97%{transform:scaleY(.1)}}
@keyframes gk-dA{0%,4%{stroke-dashoffset:1}24%,88%{stroke-dashoffset:0;opacity:1}95%,100%{stroke-dashoffset:1;opacity:0}}
@keyframes gk-dB{0%,20%{stroke-dashoffset:1}40%,88%{stroke-dashoffset:0;opacity:1}95%,100%{stroke-dashoffset:1;opacity:0}}
@keyframes gk-dC{0%,36%{stroke-dashoffset:1}56%,88%{stroke-dashoffset:0;opacity:1}95%,100%{stroke-dashoffset:1;opacity:0}}
@keyframes gk-dE{0%,8%{stroke-dashoffset:1}55%,88%{stroke-dashoffset:0;opacity:1}95%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes gk-pA{0%,4%{opacity:0;transform:scale(.6)}12%,88%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-pB{0%,18%{opacity:0;transform:scale(.6)}26%,88%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-pC{0%,32%{opacity:0;transform:scale(.6)}40%,88%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-pD{0%,46%{opacity:0;transform:scale(.6)}54%,88%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-pF{0%,56%{opacity:0;transform:scale(.6)}64%,88%{opacity:1;transform:scale(1)}95%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-pG{0%{opacity:0;transform:scale(.5)}8%,80%{opacity:1;transform:scale(1)}92%,100%{opacity:0;transform:scale(1)}}
@keyframes gk-sA{0%{opacity:0}3%,22%{opacity:1}27%,100%{opacity:0}}
@keyframes gk-sB{0%,23%{opacity:0}28%,47%{opacity:1}52%,100%{opacity:0}}
@keyframes gk-sC{0%,48%{opacity:0}53%,72%{opacity:1}77%,100%{opacity:0}}
@keyframes gk-sD{0%,73%{opacity:0}78%,97%{opacity:1}100%{opacity:0}}
@keyframes gk-h1{0%{opacity:0}4%,46%{opacity:1}52%,100%{opacity:0}}
@keyframes gk-h2{0%,50%{opacity:0}56%,95%{opacity:1}100%{opacity:0}}
@keyframes gk-gr{0%,6%{transform:scaleX(0)}34%,88%{transform:scaleX(1);opacity:1}95%,100%{transform:scaleX(1);opacity:0}}
@keyframes gk-inL{0%,10%{transform:translateX(0);opacity:1}42%{transform:translateX(32px);opacity:1}50%,100%{transform:translateX(32px);opacity:0}}
@keyframes gk-inR{0%,10%{transform:translateX(0);opacity:1}42%{transform:translateX(-32px);opacity:1}50%,100%{transform:translateX(-32px);opacity:0}}
@keyframes gk-tl{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes gk-half{0%,8%{transform:rotate(0)}55%,88%{transform:rotate(-180deg);opacity:1}95%,100%{transform:rotate(-180deg);opacity:0}}
@media(prefers-reduced-motion:reduce){
.gk-draw{stroke-dashoffset:0!important}
.gk-pop,.gk-digits text,.gk-s.d,.gk-s.h2{opacity:1!important}
.gk-grow{transform:none!important}
.gk-spin{transform:rotate(-180deg)!important}
}
/* Typography: bundled open fonts (SIL OFL). Older rules still name Segoe UI, Georgia, and
   Consolas, so those names are aliased to the bundled fonts and every rule picks them up. */
@font-face{font-family:"Inter";src:url(/fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Segoe UI";src:url(/fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Segoe UI Variable Display";src:url(/fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Segoe UI Variable Text";src:url(/fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"STIX Two Text";src:url(/fonts/stix-two-text-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"STIX Two Text";src:url(/fonts/stix-two-text-latin-italic.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap}
@font-face{font-family:"Georgia";src:url(/fonts/stix-two-text-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Georgia";src:url(/fonts/stix-two-text-latin-italic.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/fonts/jetbrains-mono-regular.woff2) format("woff2");font-weight:100 500;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/fonts/jetbrains-mono-bold.woff2) format("woff2");font-weight:600 900;font-display:swap}
@font-face{font-family:"Consolas";src:url(/fonts/jetbrains-mono-regular.woff2) format("woff2");font-weight:100 500;font-display:swap}
@font-face{font-family:"Consolas";src:url(/fonts/jetbrains-mono-bold.woff2) format("woff2");font-weight:600 900;font-display:swap}
:root{--sans:"Inter","Segoe UI",system-ui,sans-serif;--serif:"STIX Two Text",Georgia,"Cambria Math",serif;--mono:"JetBrains Mono",Consolas,ui-monospace,monospace}
.chip,.op-badge,.canvas-badge,.pill,.eyebrow,.nav-tag,.level-chip,.done-badge,.card-number{font-family:var(--mono)}
.eyebrow,.pill,.canvas-badge{letter-spacing:.06em}
.chip,.machine-strip,.values-table,.doubling-table,.fraction-controls output,.streak-value{font-variant-numeric:tabular-nums}
/* Math answer box */
.number-answer .math-field{margin:4px 0 14px}
.number-answer .math-input{width:100%;font:500 24px/1.3 var(--mono);letter-spacing:-.01em;padding:16px 22px;border:2px solid transparent;border-radius:22px;background:#fff;box-shadow:var(--shadow-soft);color:var(--ink);transition:border-color .2s,box-shadow .2s}
.number-answer .math-input:focus{outline:none;border-color:#9bbf3c;box-shadow:0 0 0 5px #d8f36a66,var(--shadow-soft)}
.number-answer .math-input::placeholder{color:#a3a893;font-weight:400;font-size:17px}
.math-preview{min-height:64px;display:flex;align-items:center;padding:10px 26px;font:400 30px/1.4 var(--serif);color:#1f3a2b}
.math-hint{font:400 13px var(--sans);color:#9aa08b}
.math-raw{font:400 20px var(--mono);color:#9aa08b}
.math .mv{font-style:italic;color:#6b4fd0;padding:0 .04em}
.math .mn{color:#1f3a2b}
.math .mc{color:#2f7fc5}
.math .mo{margin:0 .28em;color:#c4741a}
.math .mp{color:#8b927e;margin:0 .02em}
.math sup{font-size:.62em;position:relative;top:-.2em;margin-left:.06em}
.math .mfrac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .2em;font-size:.88em}
.math .mnum{padding:0 .3em .08em;border-bottom:2px solid #1f3a2b}
.math .mden{padding:.08em .3em 0}
.math .msqrt{display:inline-flex;align-items:stretch}
.math .mrad{color:#c4741a}
.math .mbody{border-top:2px solid #1f3a2b;padding:0 .12em;margin-top:.14em}
.math-keys{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.mkey{min-width:48px;height:48px;padding:0 12px;border-radius:16px;border:0;background:#fff;box-shadow:0 6px 14px -8px #17261d55;font:500 20px/1 var(--serif);color:#2b3a30;display:inline-flex;align-items:center;justify-content:center;gap:1px;transition:transform .12s,background .15s}
.mkey:hover:not(:disabled){background:#f1f6df;transform:translateY(-2px)}
.mkey:active:not(:disabled){transform:translateY(0)}
.mkey.var{background:#ece7fb;color:#4e36b4}
.mkey.var i{font-size:22px}
.mkey.fn{background:#fdf1d8;color:#8a560c}
.mkey.eq{background:#d8f36a;color:#2a3d12;font-weight:700}
.mkey sup{font-size:.6em;position:relative;top:-.35em}
.mk-frac{display:inline-flex;flex-direction:column;align-items:center;font:italic 13px/1.05 var(--serif)}
.mk-frac i{display:block;padding:0 4px}
.mk-frac i:first-child{border-bottom:1.5px solid currentColor}
@media(max-width:560px){.number-answer .math-input{font-size:19px;padding:14px 16px}.math-preview{font-size:24px;padding:8px 12px}.mkey{min-width:42px;height:44px}}
/* Course-pack explorers */
.kit-svg{width:100%;max-width:540px;height:auto;display:block;margin:12px auto 4px}
.kg{stroke:#dfe4d6;stroke-width:1;fill:none}
.ka{stroke:#9aa593;stroke-width:1.6;fill:none}
.kc-a{color:#e6a23c;stroke:#e6a23c}.kc-b{color:#7c5ce0;stroke:#7c5ce0}.kc-c{color:#5fae37;stroke:#5fae37}.kc-d{color:#ef7d57;stroke:#ef7d57}.kc-e{color:#3f8fe0;stroke:#3f8fe0}.kc-gray{color:#b4bdab;stroke:#b4bdab}
.karrow,.kseg{fill:none;stroke-width:3.5;stroke-linecap:round}
.kcurve{fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.kfill{fill:currentColor;stroke-width:1;stroke-linejoin:round}
.kdash{stroke-dasharray:6 6}
.kdot{fill:currentColor;stroke:#fff;stroke-width:2}
.kbox{fill:currentColor;stroke:none}
.kbar{fill:currentColor;fill-opacity:.5;stroke:none}
.kshape{fill:currentColor;fill-opacity:.28;stroke-width:2.5;stroke-linejoin:round}
.kring{fill:none;stroke:#cdd5c4;stroke-width:2}
.kring.kc-b{stroke:#7c5ce0;stroke-width:3.5}
.kcell{fill:#eef1e6;stroke:#dfe4d6;stroke-width:1}
.kcell.kfilled,.kfilled{fill:#7fbf3a;stroke:#6aa52e}
.kghost{fill:none;stroke:#aab3a2;stroke-width:2;stroke-dasharray:5 5}
.khole{fill:#fff;stroke:#2a3d2c;stroke-width:2.5}
.kt{font:600 14px var(--sans);fill:#3b4a3d}
.kt-sm{font-size:11px;font-weight:500;fill:#7b8777}
.kt-lg{font:600 20px var(--mono)}
.kt-b{font-weight:700;fill:#2a3d2c}
.kt-g{fill:#2f8a4a}
.kcode{font:500 13px var(--mono);font-variant-ligatures:none;fill:#2a3d2c;white-space:pre}
.kcode-on{font-weight:700;fill:#1c1146}
.kcode-sm{font-size:12px}
.kt-w{fill:#fff}
.kt-op{font-size:24px;fill:#8b937f}
/* Where you will meet this */
.applies{display:flex;align-items:center;gap:30px;margin:30px 0 22px}
.applies-art{flex:0 0 240px;min-width:0}
.applies-body{min-width:0}
.applies h3{font:500 24px/1.25 var(--serif);margin:6px 0 10px;color:#1f3a2b}
.applies p{font-size:15px;line-height:1.8;color:#5d6652;margin:0}
.scene-art{width:100%;height:auto;display:block;border-radius:28px;overflow:hidden;filter:drop-shadow(0 14px 16px #17261d22)}
.sc-bg{fill:#f3efe2}
.scene-money .sc-bg{fill:#fbefc8}.scene-map .sc-bg{fill:#dcf2e2}.scene-build .sc-bg{fill:#fde0d2}.scene-sound .sc-bg{fill:#e8e1fa}.scene-light .sc-bg{fill:#fdf1c8}.scene-games .sc-bg{fill:#d8e8fa}.scene-health .sc-bg{fill:#fde0e6}.scene-space .sc-bg{fill:#1f2a44}.scene-sport .sc-bg{fill:#dcf2e2}.scene-food .sc-bg{fill:#fde7d0}.scene-travel .sc-bg{fill:#d8e8fa}.scene-weather .sc-bg{fill:#e3eefb}.scene-code .sc-bg{fill:#e8e1fa}.scene-science .sc-bg{fill:#e8f6df}.scene-art .sc-bg{fill:#f6e4f6}.scene-nature .sc-bg{fill:#dcf2e2}
.sc-a{fill:#8cc63f}.sc-b{fill:#f0a040}.sc-coin{fill:#ffd166;stroke:#2b3a30;stroke-width:2.5}
.sc-line{stroke:#2b3a30;stroke-width:3.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sc-fine{stroke:#2b3a3066;stroke-width:2;fill:none;stroke-linecap:round}
.sc-a-line{stroke:#6aa52e;stroke-width:4;fill:none;stroke-linecap:round}
.sc-route{stroke:#e0745a;stroke-width:3.5;fill:none;stroke-dasharray:7 7;stroke-linecap:round}
.sc-ring{fill:none;stroke:#7c5ce0;stroke-width:3}
.sc-bg2{fill:#fff}.sc-tx{font:700 26px var(--sans);fill:#8a560c}.sc-pin{fill:#e0745a}
.sc-screen{fill:#1f2a44}.sc-heart{fill:#ef6a7a}.sc-ecg{stroke:#c43b50;stroke-width:3.5;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:240;stroke-dashoffset:240}
.sc-orbit{fill:none;stroke:#ffffff66;stroke-width:2;stroke-dasharray:4 5}.sc-star{fill:#fff}
.sc-pizza{fill:#f4c25e;stroke:#c98a2b;stroke-width:2.5}.sc-road{stroke:#2b3a30;stroke-width:6;stroke-linecap:round}.sc-wheel{fill:#2b3a30}
.sc-cloud{fill:#fff;stroke:#9bb8e0;stroke-width:3}.sc-flask{fill:#ffffffb0;stroke:#2b3a30;stroke-width:3;stroke-linejoin:round}.sc-liquid{fill:#8cc63f}
.sc-brush{stroke:#7c5ce0;stroke-width:9;fill:none;stroke-linecap:round}.sc-leaf{fill:#5cc48a}.sc-cursor{fill:#8cc63f}
.sc-rise rect,.sc-eq rect{transform-box:fill-box;transform-origin:50% 100%;animation:sc-grow 3.4s ease-in-out infinite}
.sc-rise rect:nth-child(2),.sc-eq rect:nth-child(2){animation-delay:.25s}.sc-rise rect:nth-child(3),.sc-eq rect:nth-child(3){animation-delay:.5s}.sc-rise rect:nth-child(4),.sc-eq rect:nth-child(4){animation-delay:.75s}
.sc-flip{transform-box:fill-box;transform-origin:center;animation:sc-flipx 2.6s ease-in-out infinite}
.sc-bob{animation:sc-up 2.4s ease-in-out infinite}
.sc-swing{transform-box:view-box;transform-origin:120px 30px;animation:sc-sw 4s ease-in-out infinite}
.sc-wave1,.sc-wave2{transform-box:fill-box;transform-origin:center;animation:sc-wv 2.4s ease-out infinite}.sc-wave2{animation-delay:1.2s}
.sc-spin{transform-box:fill-box;transform-origin:center;animation:sc-rot 12s linear infinite}
.sc-spin2{transform-box:fill-box;transform-origin:50% 0;animation:sc-sw 3.4s ease-in-out infinite}
.sc-hop{animation:sc-hp 2.8s ease-in-out infinite}
.sc-twinkle{animation:sc-tw 2s ease-in-out infinite}
.sc-ecg{animation:sc-draw 2.8s linear infinite}
.sc-orbit-go{transform-box:view-box;transform-origin:120px 75px;animation:sc-rot 7s linear infinite}
.sc-ball{animation:sc-arc 3.2s ease-in-out infinite}
.sc-slide{animation:sc-sl 3.6s ease-in-out infinite}
.sc-drive{animation:sc-dr 4s ease-in-out infinite}
.sc-rain{animation:sc-fall 1.1s linear infinite}
.sc-type{stroke-dasharray:90;stroke-dashoffset:90;animation:sc-draw 3.6s linear infinite}
.sc-cursor{animation:sc-blink 1s steps(2) infinite}
.sc-bubbles{animation:sc-bub 2.6s ease-in infinite}
.sc-sway{transform-box:view-box;transform-origin:120px 90px;animation:sc-sw 3.8s ease-in-out infinite}
.sc-pulse{transform-box:fill-box;transform-origin:center;animation:sc-pl 2.2s ease-in-out infinite}
.sc-route{animation:sc-dash 1.6s linear infinite}
@keyframes sc-grow{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}
@keyframes sc-flipx{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.12)}}
@keyframes sc-up{50%{transform:translateY(-6px)}}
@keyframes sc-sw{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes sc-wv{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.9);opacity:0}}
@keyframes sc-rot{to{transform:rotate(360deg)}}
@keyframes sc-hp{0%,100%{transform:translate(0,0)}25%{transform:translate(34px,-26px)}50%{transform:translate(68px,0)}75%{transform:translate(102px,-26px)}}
@keyframes sc-tw{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes sc-draw{to{stroke-dashoffset:0}}
@keyframes sc-arc{0%{transform:translate(0,0)}25%{transform:translate(44px,-62px)}50%{transform:translate(88px,-84px)}75%{transform:translate(132px,-62px)}100%{transform:translate(176px,0)}}
@keyframes sc-sl{0%,100%{transform:translateX(0)}50%{transform:translateX(-62px)}}
@keyframes sc-dr{0%{transform:translateX(0)}100%{transform:translateX(130px)}}
@keyframes sc-fall{from{transform:translateY(-8px);opacity:0}30%{opacity:1}to{transform:translateY(10px);opacity:0}}
@keyframes sc-blink{50%{opacity:0}}
@keyframes sc-bub{0%{transform:translateY(8px);opacity:0}30%{opacity:1}100%{transform:translateY(-34px);opacity:0}}
@keyframes sc-pl{50%{transform:scale(1.25)}}
@keyframes sc-dash{to{stroke-dashoffset:-28}}
/* Builds on, level chips, path panel */
.builds-on{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px}
.builds-on .eyebrow{margin-right:6px}
.bo-chip{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;padding:7px 14px 7px 8px;border-radius:999px;background:#eef4dc;color:#47602f}
.bo-chip small{font:500 10px var(--mono);color:#a6660f;margin-left:4px}
.bo-chip.refresh{background:#fdf1d8;color:#8a560c}
.bo-dot{width:18px;height:18px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;border:2px solid #cfd8be}
.bo-chip.done .bo-dot{background:#8cc63f;border-color:#8cc63f;color:#fff}
.bo-dot .icon{width:11px;height:11px}
.lv-chip,.level-chip.lv-beginner,.level-chip.lv-intermediate,.level-chip.lv-advanced{font-family:var(--mono)}
.lv-chip{display:inline-block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin:8px 0 2px}
.lv-beginner{background:#dff3e4;color:#2f7a4a}.lv-intermediate{background:#fdf0cf;color:#8a560c}.lv-advanced{background:#e8e1fa;color:#4e36b4}
.path-panel{display:grid;grid-template-columns:1fr auto 1.15fr auto 1fr;gap:14px;align-items:center;margin:26px 0 8px}
.path-col{display:flex;flex-direction:column;gap:9px;align-items:flex-start;min-width:0}
.path-here{align-items:center;text-align:center}
.path-here strong{font:500 24px/1.2 var(--serif)}
.path-here p{font-size:13px;line-height:1.7;color:#6d6650;margin:6px 0 0}
.path-none{font-size:12px;color:#98a08c;margin:0}
.path-arrow svg{width:38px;height:20px;fill:none;stroke:#b4bdab;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.path-note{font-size:12px;color:#8a8470;margin:0 0 18px}
.pchip{display:flex;align-items:center;gap:10px;padding:10px 16px 10px 10px;border-radius:18px;background:#fff;box-shadow:var(--shadow-soft);font-size:13px;font-weight:600;color:#2b3a30;max-width:100%}
.pchip small{display:block;font:500 10px var(--mono);color:#98a08c;margin-top:2px}
.pchip-dot{flex:0 0 22px;width:22px;height:22px;border-radius:50%;border:3px solid #d9dfcf;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.pchip-dot .icon{width:12px;height:12px}
.pchip.st-done .pchip-dot{background:#8cc63f;border-color:#8cc63f}.pchip.st-current .pchip-dot{border-color:#f0a040}.pchip.st-ready .pchip-dot{border-color:#8cc63f}
.pchip.st-planned{opacity:.6}
@media(max-width:900px){.path-panel{grid-template-columns:1fr}.path-arrow{transform:rotate(90deg);justify-self:center}.applies{flex-direction:column;align-items:flex-start;gap:16px}.applies-art{flex-basis:auto;width:100%;max-width:300px}.applies-body{width:100%}}
/* Journey ribbon */
.journey{margin:8px 0 34px}
.journey-scroll{overflow-x:auto;padding:76px 8px 14px}
.journey-track{display:flex;list-style:none;margin:0;padding:0;min-width:max-content;align-items:flex-start}
.jn{position:relative;width:132px;flex:0 0 132px}
.jn::before{content:"";position:absolute;top:19px;left:-50%;right:50%;height:6px;border-radius:3px;background:#e1e6d6}
.jn:first-child::before{left:50%}
.jn.done::before{background:#8cc63f}
.jn.now::before{background:linear-gradient(90deg,#8cc63f,#e1e6d6)}
.jn a{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:0 6px}
.jn-dot{position:relative;z-index:1;width:44px;height:44px;border-radius:50%;background:#fff;border:4px solid #d9dfcf;display:flex;align-items:center;justify-content:center;font:700 15px var(--mono);color:#7b8777;margin-top:-3px;transition:transform .2s}
.jn a:hover .jn-dot{transform:scale(1.1)}
.jn.done .jn-dot{background:#8cc63f;border-color:#8cc63f;color:#fff}
.jn.done .jn-dot .icon{width:20px;height:20px}
.jn.now .jn-dot{border-color:#f0a040;color:#8a560c;animation:jn-pulse 1.8s ease-in-out infinite}
.jn strong{font:500 18px/1.2 var(--serif);color:#1f3a2b}
.jn small{font-size:11px;line-height:1.45;color:#7b8777;max-width:116px}
.jn-meta{font:500 10px var(--mono);color:#98a08c;letter-spacing:.04em}
.jn.next .jn-meta{color:#b4bdab}
.jn-pip{position:absolute;top:-76px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}
.jn-pip .bot{width:46px}
.jn-pip em{font:700 10px var(--mono);font-style:normal;color:#fff;background:#f0a040;padding:3px 9px;border-radius:999px;margin-top:2px;white-space:nowrap}
.jn-end{align-self:flex-start;display:flex;flex-direction:column;align-items:center;width:90px;margin-top:2px}
.jn-end span{font:400 38px/1 var(--serif);color:#b4bdab}
.jn-end small{font-size:11px;color:#b4bdab}
.journey-foot{font-size:12px;color:#8a8470;margin:4px 0 0}
@keyframes jn-pulse{0%,100%{box-shadow:0 0 0 0 #f0a04055}50%{box-shadow:0 0 0 10px #f0a04000}}
/* Level clusters */
.cluster{position:relative;margin:34px 0;padding:28px 30px 24px;border-radius:38px;overflow:hidden}
.cluster>*{position:relative;z-index:1}
.cl-beg{background:linear-gradient(135deg,#e8f6da,#f5faeb)}
.cl-int{background:linear-gradient(135deg,#fcf0cf,#fef8e8)}
.cl-adv{background:linear-gradient(135deg,#e9e3fb,#f6f3fe)}
.cluster-head{display:flex;align-items:center;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.cluster-head h2{font:500 32px/1.1 var(--serif);margin:0;color:#1f3a2b}
.cluster-head p{margin:4px 0 0;font-size:13px;color:#68725f;max-width:440px}
.cluster-num{flex:0 0 56px;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:500 28px var(--serif);color:#fff;box-shadow:0 10px 18px -10px #17261d88}
.cl-beg .cluster-num{background:#5cc48a}.cl-int .cluster-num{background:#f0b441}.cl-adv .cluster-num{background:#8f7bd8}
.cluster-count{margin-left:auto;font:500 11px var(--mono);letter-spacing:.04em;background:#ffffffb8;padding:7px 14px;border-radius:999px;color:#47602f}
.cluster-hills{position:absolute!important;left:0;bottom:0;width:100%;height:54px;z-index:0!important;opacity:.55}
.cluster{padding-bottom:64px}
.hill-a{fill:#cfe9b4}.hill-b{fill:#b6dc92}
.cl-int .hill-a{fill:#f8dc9b}.cl-int .hill-b{fill:#f0c870}
.cl-adv .hill-a{fill:#cfc4f1}.cl-adv .hill-b{fill:#b3a3e8}.hill-snow{fill:#fff}
.cluster-gate{margin:20px 0 0;text-align:center;font:italic 14px var(--serif);color:#7b8777;border-top:2px dotted #c9cfbf;padding-top:14px}
.cluster .catalog-grid{margin-top:0}
.rm-scroll{overflow-x:auto;padding:6px 0 4px}
.rm-map{display:block;max-width:none}
.rm-edge{fill:none;stroke-width:3.5}
.rm-edge.ok{stroke:#8cc63f}.rm-edge.todo{stroke:#c9cfbf;stroke-dasharray:6 6}
.rm-card{fill:#fff;stroke:#e1e6d6;stroke-width:2;transition:filter .2s}
.rm-node:hover .rm-card{filter:drop-shadow(0 10px 14px #17261d2a)}
.rm-node:focus-visible .rm-card{stroke:#2a3d2c;stroke-width:3}
.st-done .rm-card{fill:#f3fae3;stroke:#8cc63f}
.st-current .rm-card{stroke:#f0a040;stroke-width:3}
.st-ready .rm-card{stroke:#8cc63f;stroke-width:2.5}
.st-later .rm-card{fill:#fbfaf4;stroke:#cfd5c6;stroke-dasharray:7 6}
.st-planned .rm-card{fill:#faf9f3;stroke:#d9ddcf;stroke-dasharray:3 6}
.st-planned,.st-later{opacity:.82}
.rm-track{fill:#fff;stroke:#e6eadb;stroke-width:6}
.rm-prog{fill:none;stroke:#8cc63f;stroke-width:6;stroke-linecap:round}
.st-current .rm-prog{stroke:#f0a040}
.rm-check{fill:none;stroke:#3f8a2c;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.rm-pct{font:700 10px var(--mono);fill:#54664b}
.rm-title{font:600 14px var(--sans);fill:#1f3a2b}
.rm-sub{font:500 11px var(--sans);fill:#7b8777}
.rm-from{font:500 9.5px var(--mono);fill:#a1a88f}
.rm-here rect{fill:#f0a040}
.rm-here text{fill:#fff;font:700 10.5px var(--mono)}
.rm-here{animation:rm-bob 1.6s ease-in-out infinite}
@keyframes rm-bob{50%{transform:translateY(-4px)}}
.rm-stats{display:flex;gap:44px;margin:6px 0 26px;flex-wrap:wrap}
.rm-stats strong{display:block;font:500 34px/1.1 var(--serif);color:#1f3a2b}
.rm-stats small{font-size:16px;color:#98a08c}
.rm-stats span{font-size:12px;color:#7b8777}
.rm-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 4px;font-size:12px;color:#68725f}
.rm-legend .lg{display:inline-flex;align-items:center;gap:7px}
.rm-legend .lg::before{content:"";width:12px;height:12px;border-radius:50%;border:3px solid #d9dfcf;background:#fff}
.rm-legend .done::before{background:#8cc63f;border-color:#8cc63f}.rm-legend .current::before{border-color:#f0a040}.rm-legend .ready::before{border-color:#8cc63f}.rm-legend .later::before{border-style:dashed}.rm-legend .planned::before{border-style:dotted;opacity:.6}
.rm-legend .edge::before{width:22px;height:0;border:0;border-top:3px solid #8cc63f;border-radius:0;background:none}
@media(max-width:700px){.cluster{padding:22px 18px 20px;border-radius:28px}.cluster-hills{display:none}.cluster-head h2{font-size:26px}.cluster-count{margin-left:0}}
@media(prefers-reduced-motion:reduce){.sc-ecg,.sc-type{stroke-dashoffset:0!important}}
/* Roadmap v2: stamps, course panels, recommendations, graphic formula */
.st-done .rm-card{fill:#eceee6;stroke:#c9cfbf;stroke-dasharray:none}
.st-done .rm-title{fill:#8a9484}.st-done .rm-sub{fill:#9aa28f}
.st-done .rm-prog{stroke:#b9c2ae}.st-done .rm-track{stroke:#dde1d4}.st-done .rm-check{stroke:#8a9a7a}
.st-done{opacity:1}
.rm-stamp rect{fill:none;stroke:#b4543a;stroke-width:3;opacity:.85}
.rm-stamp text{fill:#b4543a;font:700 12px var(--mono);letter-spacing:.1em;opacity:.9}
.rm-node.sel .rm-card{stroke:#2a3d2c;stroke-width:3.5}
.jn.done .jn-dot{background:#b9c2ae;border-color:#b9c2ae}
.jn.done::before{background:#c9d1be}
.jn.done strong{color:#8a9484}.jn.done small{color:#a1a88f}
.jn.done .jn-meta{color:#b4543a;font-weight:700}
.pchip.st-done{opacity:.8}.pchip.st-done .pchip-dot{background:#a9b59a;border-color:#a9b59a}
.lesson-card.is-done{filter:grayscale(.8);opacity:.85;transition:filter .2s,opacity .2s}
.lesson-card.is-done:hover{filter:none;opacity:1}
.course-panel{position:relative;margin:8px 0 34px;padding:30px 32px 26px;border-radius:38px}
.course-panel.is-done{background:linear-gradient(135deg,#ecede6,#f5f5ef)}
.cp-head{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.cp-head h2{font:500 36px/1.1 var(--serif);margin:6px 0 4px;color:#1f3a2b}
.cp-close{margin-left:auto;font:600 12px var(--mono);color:#7b8777;padding:6px 12px;border-radius:999px;background:#ffffffb8}
.stamp{margin-left:auto;transform:rotate(-8deg);border:4px double #b4543a;color:#b4543a;padding:8px 18px;border-radius:12px;text-align:center;opacity:.85}
.stamp span{display:block;font:700 20px var(--mono);letter-spacing:.14em}
.stamp small{font:600 10px var(--mono);letter-spacing:.1em;text-transform:uppercase}
.stamp+.cp-close{margin-left:0}
.cp-why{font-size:15px;line-height:1.7;color:#5d6652;max-width:62ch;margin:8px 0 6px}
.cp-nudge{font:italic 16px/1.6 var(--serif);color:#6d6650;margin:6px 0 14px;max-width:70ch}
.cp-facts{display:flex;gap:38px;flex-wrap:wrap;margin:6px 0 16px}
.cp-facts strong{display:block;font:500 30px/1.1 var(--serif);color:#1f3a2b}
.cp-facts small{font-size:15px;color:#98a08c}
.cp-facts span{font-size:12px;color:#7b8777}
.cp-actions{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 22px}
.course-panel .unit-block{margin-top:26px}
.recos{display:flex;gap:22px;align-items:flex-start;margin:26px 0 8px}
.reco-pip{flex:0 0 96px}
.reco-pip .bot{width:92px}
.reco-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;flex:1;min-width:0}
.reco{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:26px;padding:20px 22px;box-shadow:var(--shadow-soft)}
.reco h3{font:500 21px/1.25 var(--serif);margin:2px 0 0;color:#1f3a2b}
.reco p{font-size:13.5px;line-height:1.7;color:#5d6652;margin:0}
.reco-kind{align-self:flex-start;font:700 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:4px 11px;border-radius:999px}
.reco-review .reco-kind{background:#fdf0cf;color:#8a560c}.reco-continue .reco-kind,.reco-welcome .reco-kind{background:#e4f4bd;color:#365a1a}.reco-ahead .reco-kind{background:#e8e1fa;color:#4e36b4}
.reco-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.button.small{padding:9px 15px;font-size:12px}
@media(max-width:700px){.recos{flex-direction:column}.reco-pip{flex-basis:auto}.course-panel{padding:22px 18px;border-radius:28px}.cp-head h2{font-size:28px}}
.formula.formula-strip{font:500 21px/1.3 var(--mono);letter-spacing:0;margin:4px 0 16px;color:inherit}
.formula-strip>span{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fs-n{background:#fff1c9;color:#8a560c;padding:2px 12px;border-radius:12px;font-weight:700}
.fs-v{font:italic 500 26px var(--serif);color:#5a3fc4;padding:0 2px}
.fs-w{font:600 11px var(--mono);letter-spacing:.07em;text-transform:uppercase;color:#4d6a35;background:#e4f4bd;padding:5px 11px;border-radius:999px}
.fs-o{min-width:28px;height:28px;padding:0 6px;box-sizing:border-box;border-radius:14px;background:#eef1e6;color:#365a1a;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.fs-p{color:#8b937f;font-size:22px}
.formula-strip .fs-math span{color:inherit;margin:0}
.formula-strip .fs-math .mx-frac{margin:0 .14em}
.formula-strip .fs-math{display:block;font:500 28px/1.9 var(--math-serif,"STIX Two Text",Georgia,serif);color:#1f2d1a;background:#f5f7ee;border-radius:16px;padding:6px 18px}
.formula-strip>.fs-code{display:block;font:600 19px/1.7 var(--mono);font-variant-ligatures:none;color:#1f2d1a;background:#f5f7ee;border-radius:16px;padding:6px 18px;overflow-wrap:anywhere}
/* Code workspace */
.code-dock{container-type:inline-size;margin:22px 0 8px;background:linear-gradient(180deg,#f4f8ea,#fbfaf2);border-radius:30px;padding:2px 18px 18px;box-shadow:0 1px 2px #17261d10}
.code-dock>summary{list-style:none;cursor:pointer;display:grid;gap:3px;padding:16px 34px 14px 4px;position:relative}
.code-dock>summary::-webkit-details-marker{display:none}
.code-dock>summary .eyebrow{margin:0;color:#5f7f35}
.code-dock>summary strong{font:650 21px/1.25 var(--serif,Georgia,serif);letter-spacing:-.02em;color:#1b2e22}
.code-dock>summary small{color:#6d7a64;font-size:12.5px;line-height:1.5}
.code-dock>summary::after{content:"";position:absolute;right:10px;top:26px;width:9px;height:9px;border-right:2px solid #6d8a4a;border-bottom:2px solid #6d8a4a;transform:rotate(45deg);transition:transform .2s}
.code-dock[open]>summary::after{transform:rotate(-135deg)}
.code-page{max-width:1120px}
.ide{background:#101b16;border-radius:22px;color:#e4eee2;overflow:hidden;box-shadow:0 18px 40px -22px #07110bcc,0 0 0 1px #1d2f25;font-family:var(--mono)}
.ide-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:10px 12px 0;background:#0a120e}
.ide-tabs{display:flex;gap:4px;flex-wrap:wrap;min-width:0}
.ide-tab{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#8aa392;font:600 12px var(--mono);padding:9px 14px;border-radius:12px 12px 0 0;border:0;max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ide-tab:hover{color:#dfeadf}
.ide-tab.on{background:#101b16;color:#f1f7ef}
.ide-tabno{font:700 10px var(--mono);letter-spacing:.05em;color:#0a120e;background:#c6f24e;border-radius:999px;padding:2px 8px}
.ide-tab.solved .ide-tabno{background:#7fe0a2}
.ide-dot{width:8px;height:8px;border-radius:50%;background:#f0a860;flex:none}
.ide-actions{display:flex;gap:8px;padding-bottom:9px}
.ide-btn{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:999px;padding:7px 16px;font:700 12px var(--sans,sans-serif);transition:transform .12s,background .15s}
.ide-btn:hover{transform:translateY(-1px)}
.ide-btn.run{background:#c6f24e;color:#16260e}.ide-btn.run:hover{background:#d6ff6a}
.ide-btn.ghost{background:#1b2c23;color:#b8cdbf}
.ide-btn svg{width:13px;height:13px;fill:currentColor}
.ide.busy .ide-btn.run{opacity:.55;pointer-events:none}
.ide-task{padding:14px 18px 12px;background:#15251d;border-top:1px solid #1d2f25;font-family:var(--sans,sans-serif)}
.ide-proj{padding:14px 18px 4px;background:#102018;border-top:1px solid #1d2f25;font-family:var(--sans,sans-serif)}
.ide-proj .eyebrow{display:block;color:#c6f24e;font:700 10px var(--mono);letter-spacing:.08em}
.ide-proj strong{display:block;margin-top:4px;font-size:16px;color:#f1f7ef}
.ide-proj p{color:#c9dccd;font-size:13.5px;line-height:1.6;margin-top:4px}
.ide-proj .ide-proj-out b{color:#c6f24e}
.ide-task-head{display:flex;align-items:center;gap:10px}
.ide-task strong{font-size:15px;color:#f1f7ef}
.ide-task p{color:#c9dccd;font-size:13.5px;line-height:1.6;margin-top:4px}
.ide-task .ide-hint{color:#ffd58a}
.ide-badge{background:#7fe0a2;color:#0a2616;border-radius:999px;font:800 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:3px 10px}
.ide-task-tools{display:flex;gap:14px;margin-top:8px}
.ide-link{background:none;border:0;color:#9fd7ff;font:600 12px var(--sans,sans-serif);padding:0;text-decoration:underline;text-underline-offset:3px}
.ide-link:hover{color:#d3ecff}
.ide-solution{margin-top:10px;background:#0a120e;border-radius:12px;padding:10px 14px}
.ide-solution-head{display:flex;justify-content:space-between;gap:10px;font:700 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#7ea58a}
.ide-solution pre{margin:6px 0 0;font:13px/1.6 var(--mono);white-space:pre;overflow:auto;color:#e4eee2}
.ide-examples{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 18px;background:#15251d;border-top:1px solid #1d2f25;font:600 12px var(--sans,sans-serif);color:#9fb7a6}
.ide-chip{background:#223a2e;color:#dfeadf;border:0;border-radius:999px;padding:5px 13px;font:600 12px var(--sans,sans-serif)}
.ide-chip:hover{background:#2f5240}
.ide-code{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);background:#101b16;border-top:1px solid #1d2f25}
.ide-code:focus-within{box-shadow:inset 0 0 0 2px #c6f24e55}
.ide-code pre,.ide-code textarea{margin:0;font:13.5px/1.65 var(--mono);tab-size:4;white-space:pre;letter-spacing:0;font-variant-ligatures:none}
.ide-gutter{padding:14px 10px 14px 0;text-align:right;color:#4d6a58;overflow:hidden;user-select:none;background:#0d1712}
.ide-gutter .err{color:#ff8f7a;font-weight:800}
.ide-hl{position:absolute;left:46px;right:0;top:0;bottom:0;padding:14px 16px;overflow:hidden;pointer-events:none;color:#e4eee2}
.ide-hl i{font-style:normal}
.ide-hl .k{color:#c792ea}.ide-hl .s{color:#a5e075}.ide-hl .n{color:#f0a860}.ide-hl .c{color:#6b8a74;font-style:italic}.ide-hl .b{color:#7cd6e0}.ide-hl .f{color:#82b1ff}
.ide-solution .k{color:#c792ea}.ide-solution .s{color:#a5e075}.ide-solution .n{color:#f0a860}.ide-solution .c{color:#6b8a74}.ide-solution .b{color:#7cd6e0}.ide-solution .f{color:#82b1ff}
.ide-solution i{font-style:normal}
.ide-ta{position:relative;grid-column:2;background:transparent;color:transparent;caret-color:#c6f24e;border:0;border-radius:0;padding:14px 16px;resize:none;overflow:auto;width:100%;max-width:none;outline:none;min-width:0}
.ide-ta::selection{background:#2f5a43;color:transparent}
.ide-ta:focus-visible{outline:none}
.ide-panels{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid #1d2f25}
@container (min-width:760px){.ide-panels{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.ide-panels .term{border-left:1px solid #1d2f25;border-top:0}}
.ide-pane{min-width:0;display:flex;flex-direction:column;background:#0d1712}
.ide-pane.term{border-top:1px solid #1d2f25}
.ide-pane>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 16px;font:700 10.5px var(--mono);letter-spacing:.12em;color:#8aa392;background:#0a120e}
.ide-pane>header span{display:inline-flex;align-items:center;gap:8px}
.ide-led{width:7px;height:7px;border-radius:50%;background:#f0a860;display:inline-block}
.ide-led.on{background:#7fe0a2}
.ide-status{font:600 11px var(--sans,sans-serif);letter-spacing:0;color:#8aa392}
.ide-status.ok{color:#7fe0a2}.ide-status.bad{color:#ff9b87}.ide-status.busy{color:#ffd58a}
.ide-out{margin:0;min-height:118px;max-height:300px;overflow:auto;padding:12px 16px;font:13px/1.65 var(--mono);white-space:pre-wrap;word-break:break-word;color:#dfeadf}
.ide .dim{color:#6b8a74}.ide .err{color:#ff9b87}
.ide-checks{list-style:none;margin:0;padding:6px 16px 12px;display:grid;gap:5px;font:13px/1.5 var(--sans,sans-serif)}
.ck{display:flex;gap:10px;align-items:flex-start;color:#c9dccd}
.ck-i{flex:none;width:20px;height:20px;border-radius:50%;background:#1b2c23;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#6b8a74;margin-top:1px}
.ck.ok .ck-i{background:#7fe0a2;color:#0a2616}.ck.bad .ck-i{background:#ff8f7a;color:#2a0f0a}
.ck-l code{font:12.5px var(--mono);color:#e4eee2;background:#16261d;border-radius:6px;padding:1px 7px}
.ck-l small{display:block;color:#ff9b87;font-size:12px;margin-top:2px}
.ide-win{margin:4px 16px 12px;background:#c6f24e;color:#16260e;border-radius:12px;padding:10px 14px;font:600 13px var(--sans,sans-serif)}
.ide-stdin{margin:auto 0 0;padding:0 16px 12px;font:600 11.5px var(--sans,sans-serif);color:#8aa392}
.ide-stdin summary{cursor:pointer;padding:6px 0}
.ide-stdin-ta{width:100%;background:#0a120e;color:#e4eee2;border:1px solid #1d2f25;border-radius:10px;font:13px/1.5 var(--mono);padding:8px 12px;resize:vertical}
.ide-term-log{min-height:118px;max-height:300px;overflow:auto;padding:12px 16px 4px;font:13px/1.65 var(--mono);color:#dfeadf;flex:1}
.ide-term-log code{color:#c6f24e}
.tl{white-space:pre-wrap;word-break:break-word}
.tl .p{color:#c6f24e;margin-right:10px}
.tl.err{color:#ff9b87}.tl.dim{color:#6b8a74}
.ide-term-form{display:flex;align-items:center;gap:10px;padding:8px 16px 12px;border-top:1px solid #16261d}
.ide-prompt{color:#c6f24e;font:700 13px var(--mono)}
.ide-term-in{flex:1;min-width:0;background:transparent;border:0;border-radius:0;padding:4px 0;color:#f1f7ef;caret-color:#c6f24e;font:13px var(--mono);outline:none}
.ide-term-form:focus-within{background:#0f1c15}
@media(max-width:700px){.ide-tab{max-width:150px}}
/* Flow Studio: 1 Input -> 2 Process -> 3 Output */
.flow{display:block}
.flow-stage{position:relative;border-radius:24px;padding:14px 16px 16px;box-shadow:0 1px 2px #17261d12,0 14px 26px -20px #17261d66}
.flow-in{background:linear-gradient(180deg,#fff6dc,#fffcf1)}
.flow-proc{background:#fff}
.flow-out{background:linear-gradient(180deg,#eefac0,#f9fde9)}
.flow-h{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}
.flow-h>div{min-width:0}
.flow-h b{display:block;font:700 12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#2b3d2e}
.flow-h small{display:block;color:#6d7a64;font-size:12px;line-height:1.45;margin-top:2px}
.flow-n{flex:none;width:26px;height:26px;border-radius:50%;background:#22362a;color:#d9f56a;font:800 13px var(--mono);display:inline-flex;align-items:center;justify-content:center}
.flow-op{margin-left:auto;flex:none;background:#1f2a55;color:#5fe0cd;font:700 11px var(--mono);padding:5px 12px;border-radius:999px;max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 0 0 3px #1f2a5522}
.flow-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.flow-tile{background:#fff;border-radius:18px;padding:10px 12px 12px;box-shadow:0 0 0 1px #f0dfae inset,0 2px 4px #8a6a1a1f;transition:box-shadow .2s,background .2s}
.flow-tile.hit{animation:flow-hit .45s ease-out}
.flow-lbl{display:block;font:650 11.5px/1.3 var(--sans);color:#6b5a20}
.flow-val{display:flex;align-items:center;gap:6px;margin:6px 0 4px}
.flow-step{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:#ffefba;color:#6b4a00;font:700 20px/1 var(--sans);transition:background .15s,transform .1s}
.flow-step:hover:not(:disabled){background:#ffdf85}
.flow-step:active:not(:disabled){transform:scale(.92)}
.flow-num{flex:1;min-width:0;border:0;background:#fff9e6;border-radius:12px;padding:3px 6px;cursor:text;text-align:center;box-shadow:0 0 0 1px #f3e6bd inset}
.flow-num:hover{background:#fff3cf}
.flow-num output{font:700 25px/1.25 var(--mono);color:#1d2a1f;display:block}
.flow-edit{flex:1;min-width:0;width:100%;text-align:center;font:700 22px var(--mono);padding:4px 6px;border-radius:12px;border:2px solid #f0a040;background:#fff}
.flow-tile input[type=range]{width:100%;margin:8px 0 2px;padding:0;border:0;height:8px;background:linear-gradient(90deg,#ffe6a6,#f0b13a);accent-color:#e59a1f}
.flow-tile input[type=range]::-webkit-slider-thumb{width:22px;height:22px;background:#fff;border:4px solid #e0891c;box-shadow:0 3px 8px #8a5a0f55}
.flow-tile input[type=range]::-moz-range-thumb{width:16px;height:16px;background:#fff;border:4px solid #e0891c;box-shadow:0 3px 8px #8a5a0f55}
.flow-tile input[type=range]::-moz-range-track{height:8px;background:linear-gradient(90deg,#ffe6a6,#f0b13a)}
.flow-go{display:inline-flex;align-items:center;gap:6px;margin-top:8px;border:0;border-radius:999px;background:#22362a;color:#d9f56a;font:700 12px var(--sans);padding:6px 14px}
.flow-go svg{width:12px;height:12px;fill:currentColor}
.flow-go:hover{background:#2f4a38}
.flow-tile.nudge input[type=range]::-webkit-slider-thumb{animation:lab-nudge 1.4s ease-in-out infinite}
.flow-tile.nudge input[type=range]::-moz-range-thumb{animation:lab-nudge 1.4s ease-in-out infinite}
.flow-link{position:relative;height:30px;display:flex;justify-content:center}
.flow-link::before{content:"";width:3px;height:100%;border-radius:2px;background:repeating-linear-gradient(to bottom,#c3d19b 0 6px,transparent 6px 12px)}
.flow-link::after{content:"";position:absolute;bottom:-1px;left:50%;margin-left:-7px;border:7px solid transparent;border-top-color:#9bb06e;border-bottom:0}
.flow-link i{position:absolute;left:50%;top:0;margin-left:-5px;width:10px;height:10px;border-radius:50%;background:#7fb53a;opacity:0}
.flow-link.pulse i{animation:flow-drip .7s ease-in forwards}
.flow-link.l2.pulse i{animation-delay:.22s}
.flow-link.pulse i:nth-child(2){animation-delay:.08s}.flow-link.pulse i:nth-child(3){animation-delay:.16s}
.flow-link.l2.pulse i:nth-child(2){animation-delay:.3s}.flow-link.l2.pulse i:nth-child(3){animation-delay:.38s}
.flow-canvas{background:linear-gradient(180deg,#fbfcf6,#f1f6e6);border-radius:16px;padding:8px;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.flow-canvas.scrub{cursor:ew-resize}
.flow-canvas.scrubbing{cursor:grabbing;box-shadow:0 0 0 3px #b5e04c inset}
.flow-canvas svg{max-width:100%;height:auto;margin:0 auto}
.flow-hint{margin:8px 2px 0;font:600 12px var(--sans);color:#7a8870;text-align:center}
.flow-hint b{color:#2f5a1a}
.flow-outs{display:flex;flex-wrap:wrap;gap:10px}
.flow-o{display:flex;flex-direction:column;min-width:110px;background:linear-gradient(180deg,#dcf56f,#c8e84b);border-radius:18px;padding:10px 16px 8px;box-shadow:0 3px 0 #9fbf2f,0 10px 20px -12px #5f7d12}
.flow-ov{font:800 20px/1.3 var(--mono);color:#1f3410;word-break:break-word}
.flow-od{display:block;height:15px;font:700 11px/15px var(--sans);color:#5d7a1f}
.flow-od.up{color:#237a2a}.flow-od.down{color:#b0452f}
.flow-o.pop{animation:flow-pop .55s cubic-bezier(.2,1.5,.4,1)}
.flow-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.flow-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 2px 0}
.flow-tag{font:800 10px var(--mono);letter-spacing:.14em;color:#6d8a4a;margin-right:4px}
.flow-chip{border:0;background:#fff;border-radius:999px;padding:7px 14px;font:650 12px var(--sans);color:#365a1a;box-shadow:0 1px 2px #17261d1f;transition:transform .12s,background .15s}
.flow-chip:hover{background:#eaf5d3;transform:translateY(-1px)}
.flow-chip.hot{background:#22362a;color:#d9f56a}.flow-chip.hot:hover{background:#2f4a38}
.flow-pred{margin-top:12px;background:#22362a;color:#eef6e6;border-radius:20px;padding:14px 16px;animation:flow-rise .3s ease-out}
.flow-pred.right{box-shadow:0 0 0 3px #7fe0a2 inset}.flow-pred.wrong{box-shadow:0 0 0 3px #ffb39f inset}
.flow-pq,.flow-verdict{color:#dce9d5;font:15px/1.6 var(--serif,Georgia,serif);margin:0}
.flow-verdict{margin-top:8px}
.flow-pq b,.flow-verdict b{color:#d9f56a;font-family:var(--mono);font-size:.92em}
.flow-pred .flow-tag{color:#9bd24d}
.flow-pbtn{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.flow-pbtn button{border:0;border-radius:999px;background:#d9f56a;color:#1b2e10;font:700 13px var(--sans);padding:9px 16px;transition:transform .12s}
.flow-pbtn button:hover{transform:translateY(-1px)}
.flow-pbtn button.flow-x,.flow-x{background:none;color:#a9c19f;text-decoration:underline;text-underline-offset:3px;padding:9px 6px}
.flow-pred>.flow-x{border:0;font:600 12px var(--sans);margin-top:8px;padding:0}
.flow-streak{display:inline-block;margin-left:6px;background:#d9f56a;color:#1b2e10;border-radius:999px;padding:1px 10px;font:800 11px var(--sans)}
.flow-trail{margin-top:12px;background:#fff;border-radius:18px;padding:10px 14px 12px}
.flow-trail ol{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.flow-trail li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font:12.5px/1.5 var(--mono);animation:flow-rise .25s ease-out}
.flow-trail .c{background:#fff0c4;color:#5c4300;border-radius:999px;padding:3px 11px}
.flow-trail .e{background:#e9f7b8;color:#2b4310;border-radius:999px;padding:3px 11px}
.flow-trail .a{color:#9bb06e;font-size:16px}
.flow-trail s{opacity:.55}
.flow-empty{margin:8px 0 0;color:#8a9580;font:13px var(--sans)}
@keyframes flow-hit{40%{transform:scale(1.03);box-shadow:0 0 0 2px #f0a040 inset,0 6px 14px #8a6a1a33}}
@keyframes flow-pop{0%{transform:scale(.92)}60%{transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes flow-drip{0%{opacity:0;transform:translateY(0)}20%{opacity:1}100%{opacity:0;transform:translateY(24px)}}
@keyframes flow-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.flow *,.flow-pred{animation:none!important;transition:none!important}}
/* The older explorers: same studio around their own drawings */
.legacy{display:flex;flex-direction:column}
.legacy>.canvas-header{order:-2}
.legacy>.flow-in{order:-1;margin-bottom:12px}
.legacy>.flow-in>.flow-tiles{background:none;border:0;padding:0;box-shadow:none;margin:0;display:grid}
.legacy .machine-strip{background:#fff;border-radius:24px;padding:12px 12px 14px;margin:0 0 6px;box-shadow:0 1px 2px #17261d12,0 14px 26px -20px #17261d66;align-items:flex-end}
.ms-col{display:flex;flex-direction:column;align-items:center;gap:7px}
.ms-cap{font:800 9.5px var(--mono);letter-spacing:.14em;color:#8a7a3a;white-space:nowrap}
.ms-col:last-child .ms-cap{color:#5a7a1a}
.ms-col:nth-child(3) .ms-cap{color:#3d4d86}
.legacy .pipe{margin-bottom:38px}
.legacy .machine-strip .slots{justify-content:center}
.legacy [id$="-model"]>svg:not(.gears),.legacy [id$="-model"]>.plane-facts{margin-top:10px}
.legacy .plane-facts{background:#fff;border-radius:18px;padding:10px 16px 10px 32px}
.legacy .flow-tile input[type=range]{margin-top:8px}
.legacy .flow-lbl{font-size:11.5px;font-weight:650;color:#6b5a20}
.legacy .flow-num output{font:700 25px/1.25 var(--mono);color:#1d2a1f}
.legacy .canvas-caption{order:9;margin-top:10px}
/* Handles you can pick up in the drawing */
.flow-handle{fill:transparent;stroke:#e08a1c;stroke-width:3;stroke-dasharray:5 4;cursor:grab;pointer-events:all;touch-action:none;animation:flow-ring 2s linear infinite}
.flow-handle:hover{stroke:#b36a0a;stroke-width:4}
.flow-glow{fill:#ffc94a;opacity:.55;pointer-events:none;animation:flow-glow 1.8s ease-in-out infinite}
.dragging .flow-handle{cursor:grabbing;stroke:#b36a0a}
.dragging,.dragging *{user-select:none;-webkit-user-select:none}
.flow-canvas.grab svg{touch-action:pan-y}
@keyframes flow-ring{to{stroke-dashoffset:-18}}
@keyframes flow-glow{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.flow-handle,.flow-glow{animation:none}}
@media(prefers-reduced-motion:reduce){.pipe,.gear,.bot-body,.bot-eyes,.bot-bulb,.machine,.chip.out{animation:none!important}}
@media(prefers-reduced-motion:reduce){.confetti{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Roadmap v3: colour families, glyphs, illustrated hero, trail, scenery, stat tiles */
.hue-green{--tile:#dff5e7;--acc:#86d9a9;--deep:#1f5a3c}
.hue-orange{--tile:#fde6d6;--acc:#f7ac82;--deep:#7a3a16}
.hue-blue{--tile:#dde8fd;--acc:#8fb2f5;--deep:#1f3f86}
.hue-violet{--tile:#e8e1fa;--acc:#b8a6f0;--deep:#43308f}
.hue-pink{--tile:#fbe0ec;--acc:#f29dbc;--deep:#8a2150}
.hue-teal{--tile:#d9f3ee;--acc:#72d3c3;--deep:#145a4f}
.hue-gold{--tile:#fdf0c9;--acc:#f4ce62;--deep:#6d4c08}
.hue-brown{--tile:#f2e4d6;--acc:#dcaa7e;--deep:#6a3b1d}
.gi{fill:none;stroke:var(--deep);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.gl{stroke-width:1.8}
.ga{fill:var(--acc)}.gf{fill:#fff}.gd{fill:var(--deep);stroke:none}
.gt{fill:var(--deep);font-family:var(--serif);font-style:italic;font-weight:700}.gn{font-style:normal}
.glyph-svg{width:44px;height:44px;display:block}
.cloud{fill:#fff;opacity:.92;animation:cloud-drift 24s ease-in-out infinite alternate}
.cloud.c2{animation-duration:30s;animation-delay:-8s}.cloud.c3{animation-duration:27s;animation-delay:-15s}
@keyframes cloud-drift{to{transform:translateX(30px)}}
.road-edge{fill:none;stroke:#d8bd83;stroke-width:30;stroke-linecap:round;stroke-linejoin:round}
.road-top{fill:none;stroke:#f7e8c0;stroke-width:23;stroke-linecap:round;stroke-linejoin:round}
.road-dash{fill:none;stroke:#fff;stroke-width:2.6;stroke-dasharray:9 12;stroke-linecap:round;opacity:.95}
.road-done{fill:none;stroke:#79cf63;stroke-width:12;stroke-linecap:round;opacity:.92}
.flag-pole{stroke:#6a4a2a;stroke-width:3.5;stroke-linecap:round;fill:none}
.flag-cloth{fill:#ef6a5a;transform-box:fill-box;transform-origin:left center;animation:flag-wave 2.2s ease-in-out infinite}
.flag-knob{fill:#ffcf4d}
@keyframes flag-wave{50%{transform:skewY(-7deg) scaleX(.92)}}
.s-snow{fill:#fff}
.s-trunk{fill:#8a5a3a}.s-leaf{fill:#3fa35f}.s-leaf2{fill:#5bbd76}
/* Hero */
.rm-hero{position:relative;margin:2px 0 26px;padding:44px 46px 40px;border-radius:46px;overflow:hidden;min-height:380px;background:linear-gradient(180deg,#b9e0ff 0%,#dff1ff 40%,#fff1d2 100%);box-shadow:0 34px 60px -44px #3b6fa5}
.rm-hero-text{position:relative;z-index:2;max-width:min(42%,440px)}
.rm-hero h1{font:500 clamp(30px,3.3vw,46px)/1.08 var(--serif);color:#1b3a2a;margin:10px 0 14px;letter-spacing:-.01em}
.rm-hero p{font-size:15px;line-height:1.75;color:#41585a;max-width:40ch;margin:0 0 24px}
.rm-hero .eyebrow{color:#3e7bb0}
.hero-art{position:absolute;right:0;bottom:0;width:62%;height:100%;display:block}
.sun-glow{fill:#fff0b0;opacity:.6}.sun-disc{fill:#ffcf4d}
.sun-ray{stroke:#ffcf4d;stroke-width:5;stroke-linecap:round}
.sun-rays{transform-box:fill-box;transform-origin:center;animation:sun-spin 50s linear infinite}
@keyframes sun-spin{to{transform:rotate(360deg)}}
.h-far{fill:#bfe3a8}.h-mid{fill:#8fd08a}.h-near{fill:#62b872}
.h-trunk{fill:#8a5a3a}.h-leaf{fill:#3fa35f}.h-leaf2{fill:#5bbd76}
.hs-dot{fill:var(--tile);stroke:#fff;stroke-width:4}.hs-pip{fill:var(--deep)}
.hero-stop{animation:stop-pop 3.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.hero-stop.s1{animation-delay:-.5s}.hero-stop.s2{animation-delay:-1s}.hero-stop.s3{animation-delay:-1.5s}.hero-stop.s4{animation-delay:-2s}.hero-stop.s5{animation-delay:-2.5s}
@keyframes stop-pop{50%{transform:scale(1.25)}}
.hero-sym{transform-box:fill-box;transform-origin:center;animation:sym-bob 5s ease-in-out infinite}
.hero-sym.d1{animation-delay:-1s}.hero-sym.d2{animation-delay:-2s}.hero-sym.d3{animation-delay:-3s}.hero-sym.d4{animation-delay:-4s}.hero-sym.d5{animation-delay:-2.5s}
@keyframes sym-bob{50%{transform:translateY(-9px) rotate(4deg)}}
.hs-bg{fill:#ffffffd9;stroke:#fff;stroke-width:3}
.hs-tx{font:italic 700 22px var(--serif)}
.hs-a .hs-tx{fill:#8f7bd8}.hs-b .hs-tx{fill:#e2679a}.hs-c .hs-tx{fill:#2bb5a0}.hs-d .hs-tx{fill:#e49a1c}.hs-e .hs-tx{fill:#5b8def}.hs-f .hs-tx{fill:#f08a5d}
.bird path{fill:none;stroke:#37524a;stroke-width:2.4;stroke-linecap:round}
.bird{animation:bird-fly 9s ease-in-out infinite alternate}.bird.b2{animation-delay:-4s}
@keyframes bird-fly{to{transform:translate(60px,-12px)}}
/* Subject tabs */
.rm-tabs a{display:inline-flex;align-items:center;gap:9px;padding-left:9px}
.tab-ic{width:28px;height:28px;border-radius:10px;background:var(--tile);display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px}
.tab-glyph{width:21px;height:21px}
/* Stat tiles */
.rm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:10px 0 32px}
.stat{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;background:#fff;border-radius:28px;padding:16px 22px;box-shadow:var(--shadow-soft)}
.stat::after{content:"";position:absolute;right:-34px;top:-34px;width:112px;height:112px;border-radius:50%;background:var(--tile);opacity:.75}
.stat>div{position:relative;z-index:1}
.stat-ic{position:relative;z-index:1;flex:0 0 58px;width:58px;height:58px;border-radius:20px;background:var(--tile);display:flex;align-items:center;justify-content:center}
.stat-ic svg{width:40px;height:40px}
.sr-track{fill:none;stroke:#fff;stroke-width:6}.sr-fill{fill:none;stroke:var(--deep);stroke-width:6;stroke-linecap:round}
.rm-stats .stat strong{color:var(--deep)}
.rm-legend{display:flex;width:fit-content;max-width:100%;background:#fff;padding:11px 20px;border-radius:999px;box-shadow:var(--shadow-soft);margin:0 0 6px}
.rm-road-head h2{font:500 34px/1.1 var(--serif)}
/* Trail */
.trail-cq{container-type:inline-size;margin:4px 0 30px}
.trail-desk{border-radius:44px;overflow:hidden;background:linear-gradient(180deg,#c9e6ff 0%,#e8f5ff 16%,#fff3d4 50%,#dff2cb 100%);box-shadow:0 34px 60px -46px #3b6fa5}
.trail-svg{display:block;width:100%;height:auto}
.trail-mob{display:none}
@container (max-width:700px){.trail-desk{display:none}.trail-mob{display:block}}
.t-hill1{fill:#c0e6a6}.t-hill2{fill:#9bd686}
.mtn{fill:#8f7bd8}
.sign-post{stroke:#8a5a3a;stroke-width:5;stroke-linecap:round}.sign-board{fill:#fff;stroke:#8a5a3a;stroke-width:3}.sign-tx{font:700 12px var(--mono);fill:#8a5a3a;letter-spacing:.08em}
.tr-stop{cursor:pointer;outline:none}
.tr-ring{fill:#fff;filter:drop-shadow(0 10px 12px #1b2a2140)}
.tr-tile{fill:var(--tile);stroke:var(--acc);stroke-width:4;transform-box:fill-box;transform-origin:center;transition:transform .25s}
.tr-stop:hover .tr-tile,.tr-stop:focus-visible .tr-tile{transform:scale(1.08)}
.tr-stop:focus-visible .tr-ring{stroke:#2a3d2c;stroke-width:4}
.tr-num{fill:var(--deep)}.tr-numtx{fill:#fff;font:700 13px var(--mono)}
.tr-title{font:500 20px var(--serif);fill:#1f3a2b}
.tr-can{font:500 13px var(--sans);fill:#56695c}
.tr-meta{font:700 11px var(--mono);fill:#6d7f72;letter-spacing:.05em}
.tr-pulse{fill:none;stroke:#f0a040;stroke-width:4;transform-box:fill-box;transform-origin:center;animation:tr-pulse 1.9s ease-out infinite}
@keyframes tr-pulse{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.25);opacity:0}}
.tr-here rect{fill:#f0a040}.tr-here text{fill:#fff;font:700 12px var(--mono)}
.tr-stop.here .tr-tile{stroke:#f0a040}
.tr-stop.st-done .tr-tile{fill:#e4e7dc;stroke:#c3cab8}
.tr-stop.st-done .gi{stroke:#98a18d}.tr-stop.st-done .ga{fill:#c8cebd}
.tr-stop.st-done .tr-title,.tr-stop.st-done .tr-can{fill:#8a9484}.tr-stop.st-done .tr-meta{fill:#b4543a}
.tr-done circle{fill:#79bd45;stroke:#fff;stroke-width:3}.tr-done path{fill:none;stroke:#fff;stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round}
.jn-dot{width:54px;height:54px;border-width:0;box-shadow:0 8px 14px -8px #17261d66}
.jn-glyph{width:34px;height:34px;display:block}
.jn-tick{position:absolute;right:-4px;bottom:-4px;width:20px;height:20px;border-radius:50%;background:#79bd45;color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.jn-tick .icon{width:11px;height:11px}
.jn.done .jn-dot{background:#fff}
.jn::before{top:24px}
/* Level scenery */
.cluster{padding:30px 30px 30px;box-shadow:0 30px 56px -44px #17261d99}
.cluster-beg{background:linear-gradient(180deg,#cdeafb 0,#e4f5de 170px,#eef8e6 100%)}
.cluster-int{background:linear-gradient(180deg,#ffd6a2 0,#ffe9c4 170px,#fff5e2 100%)}
.cluster-adv{background:linear-gradient(180deg,#221d52 0,#352c78 175px,#4a3d96 100%)}
.cluster-beg .cluster-num{background:#4fbf82}.cluster-int .cluster-num{background:#f0a73c}.cluster-adv .cluster-num{background:#a794f0}
.cluster-scene{position:absolute!important;top:0;right:0;width:100%;height:172px;z-index:0!important;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40%);mask-image:linear-gradient(90deg,transparent 0,#000 40%)}
.cluster-head{min-height:112px;margin-bottom:12px}
.cluster-adv .cluster-head h2{color:#fff}.cluster-adv .cluster-head p{color:#d9d3f8}
.cluster-adv .cluster-count{background:#ffffff26;color:#efeaff}
.cluster-adv .cluster-gate{color:#c9c2f2;border-top-color:#7a6dc4}
.cluster-int .cluster-count,.cluster-beg .cluster-count{background:#ffffffc9}
.s-glow{fill:#fff3b0;opacity:.6}.s-sun{fill:#ffd25e}
.scene-beg .s-far{fill:#bfe3a8}.scene-beg .s-near{fill:#93d58f}
.scene-int .s-glow{fill:#ffd9a0}.scene-int .s-sun{fill:#ff9a4a}.scene-int .s-far{fill:#f4c67c}.scene-int .s-near{fill:#e5a954}
.s-hay{fill:#d28f3a}.s-mill{fill:#fff3dc;stroke:#c98a3a;stroke-width:2}.s-roof{fill:#c9573a}.s-blade{stroke:#8a5a3a;stroke-width:4;stroke-linecap:round}.s-hub{fill:#8a5a3a}
.mill-blades{transform-box:fill-box;transform-origin:center;animation:sun-spin 14s linear infinite}
.s-stem{stroke:#4a9a5a;stroke-width:2;fill:none}
.scene-adv .s-far{fill:#5446ad}.scene-adv .s-near{fill:#6c5ec8}
.s-moon{fill:#fff7d6}
.aurora{fill:#5fe3c0;opacity:.17}
.star{fill:#fff;animation:twinkle 3s ease-in-out infinite}
.star.t1{animation-delay:-.8s}.star.t2{animation-delay:-1.6s}.star.t3{animation-delay:-2.3s}
@keyframes twinkle{50%{opacity:.25}}
.scene-adv .flag-cloth{fill:#ff8a7a}
/* Course nodes */
.rm-card{filter:drop-shadow(0 10px 14px #1b2a2126)}
.rm-tile{fill:var(--tile)}
.rm-bar{fill:#e9ede1}.rm-barfill{fill:var(--acc)}.st-current .rm-barfill{fill:#f0a040}
.st-done .rm-tile{fill:#e1e4da}.st-done .gi{stroke:#9aa28f}.st-done .ga{fill:#c8cebd}
.rm-pct{font:700 10px var(--mono);fill:#54664b}
.cluster-adv .rm-edge.todo{stroke:#a79ee0}.cluster-adv .rm-edge.ok{stroke:#9ee37d}
.cluster-beg .rm-edge.todo,.cluster-int .rm-edge.todo{stroke:#b9c0ad}
.recos .reco{background:linear-gradient(135deg,#fff 55%,var(--reco-tint,#fff))}
.cp-tile{flex:0 0 84px;width:84px;height:84px;border-radius:28px;background:var(--tile);display:flex;align-items:center;justify-content:center;box-shadow:0 14px 22px -14px var(--acc)}
.cp-glyph{width:58px;height:58px}
.course-panel.is-done .cp-tile{filter:grayscale(1);opacity:.7}
.pchip-dot{border:0;background:var(--tile);flex:0 0 32px;width:32px;height:32px}
.pchip-glyph{width:24px;height:24px}
.pchip.st-done .pchip-dot{background:#a9b59a}
.reco-review{--reco-tint:#fff2d3}.reco-continue,.reco-welcome{--reco-tint:#e9f7cf}.reco-ahead{--reco-tint:#ece6fc}
@media(max-width:820px){.rm-hero{padding:28px 22px 0;border-radius:34px;min-height:0}.rm-hero-text{max-width:none;padding-bottom:6px}.hero-art{position:static;width:100%;height:auto;margin-top:4px}.cluster-scene{width:100%;opacity:.7}}
.rm-map{max-width:100%;height:auto;min-width:640px}
.rm-title{font:600 13px var(--sans)}
.rm-sub{font:500 11px var(--sans)}
.cluster-adv .st-later,.cluster-adv .st-planned{opacity:1}
.cluster-adv .st-later .rm-card,.cluster-adv .st-planned .rm-card{fill:#f6f4fd;stroke:#c9c0ee}
@media(max-width:700px){.cluster-head{min-height:0}}
/* Guided labs */
.lab{container-type:inline-size;display:grid;gap:22px;margin:20px 0 28px}
@container (min-width:880px){.lab{grid-template-columns:minmax(310px,.82fr) minmax(0,1.18fr);align-items:start}.lab-coach{position:sticky;top:18px}}
.lab-coach{background:#fff;border-radius:32px;padding:18px 22px 22px;box-shadow:var(--shadow-soft);min-width:0}
.lab-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.lab-tab{display:inline-flex;align-items:center;gap:8px;border:0;background:#f1f3ea;color:#5d6652;font:600 13px var(--sans);padding:7px 14px 7px 8px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.lab-tab:hover{background:#e7ecda}
.lab-tab.on{background:#1f3a2b;color:#fff}
.lab-tabno{width:22px;height:22px;border-radius:50%;background:#fff;color:#1f3a2b;display:inline-flex;align-items:center;justify-content:center;font:700 11px var(--mono)}
.lab-tab.done .lab-tabno{background:#79bd45;color:#fff}
.lab-tick{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.lab-guide{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.lab-guide strong{display:block;font:600 14px var(--sans);color:#1f3a2b}
.lab-guide small{display:block;font:500 11px var(--mono);color:#98a08c}
.lab-avatar{flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:#eef4dc;overflow:hidden;display:flex;align-items:center;justify-content:center}
.lab-avatar .bot{width:40px;height:auto}
svg.lab-avatar{padding:0;background:#f4ecff}
svg.lab-avatar.yellow{background:#fbefc9}svg.lab-avatar.mint{background:#dff3e6}svg.lab-avatar.peach{background:#fbe5d6}svg.lab-avatar.blue{background:#dfeafb}svg.lab-avatar.violet{background:#ece5fb}
.lab-wonder{font:italic 500 23px/1.35 var(--serif);color:#1f3a2b;margin:6px 0 10px}
.lab-sub{font-size:13.5px;line-height:1.7;color:#5d6652;margin:0 0 14px}
.lab-title{font:500 22px/1.25 var(--serif);margin:4px 0 6px;color:#1f3a2b}
.lab-say{font-size:17px;line-height:1.65;color:#2b3a30;margin:8px 0 14px}
.lab-card{background:#f7f9ef;border-radius:20px;padding:14px 16px;font-size:16px}
.lab-kind{display:inline-block;font:700 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:4px 11px;border-radius:999px}
.lab-kind.watch{background:#dde8fd;color:#1f3f86}.lab-kind.turn{background:#fdeacb;color:#8a560c}.lab-kind.ask{background:#e8e1fa;color:#43308f}.lab-kind.mission{background:#dff3e6;color:#1f5a3c}
.lab-dots{display:flex;gap:6px;margin:2px 0 10px}
.lab-dots i{width:22px;height:6px;border-radius:3px;background:#e3e8d8}
.lab-dots i.past{background:#9fd37b}.lab-dots i.on{background:#f0a040;width:34px}
.lab-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.lab-targets{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 4px}
.lab-target{background:#fdf0cf;color:#6d4c08;border-radius:12px;padding:5px 12px;font-size:12.5px}
.lab-target b{font:700 14px var(--mono);margin-left:4px}
.lab-target.met{background:#dff3e6;color:#1f5a3c}
.lab-praise{font:600 13px var(--sans);color:#2f7a35;margin:10px 0 0}
.lab-hint{background:#fff6dd;border-radius:14px;padding:10px 14px;font-size:13.5px;color:#6d4c08;margin:12px 0 0}
.lab-miss{background:#fdeae4;border-radius:14px;padding:10px 14px;font-size:13.5px;color:#8a3a22;margin:12px 0 0}
.lab-win{background:linear-gradient(135deg,#e9f7cf,#f4fbe3);border-radius:20px;padding:14px 18px;margin-top:14px}
.lab-win strong{font:500 20px var(--serif);color:#2f5a1a}
.lab-win p{font-size:14px;line-height:1.6;color:#41592f;margin:4px 0 0}
.lab-answer{display:block;font:600 12px var(--sans);color:#6d7a64}
.lab-answer span{display:flex;align-items:center;gap:8px;margin-top:6px}
.lab-answer input{flex:1;min-width:0;border:2px solid #d9dfcf;border-radius:14px;padding:10px 14px;font:600 18px var(--mono);color:#1f3a2b;background:#fbfcf6}
.lab-answer input:focus{outline:none;border-color:#7ab348}
.lab-answer em{font-style:normal;color:#6d7a64}
.lab-choices{display:flex;flex-direction:column;gap:8px}
.lab-choice{text-align:left;border:2px solid #d9dfcf;background:#fbfcf6;border-radius:14px;padding:10px 14px;font:600 14px var(--sans);color:#1f3a2b;cursor:pointer}
.lab-choice:hover{border-color:#7ab348}.lab-choice.on{border-color:#f0a040;background:#fff6e4}
.lab-formula-box{margin-top:16px;padding-top:12px;border-top:2px dotted #d9dfcf}
.lab-formula{margin:8px 0 4px!important}
button.fs-live{border:0;background:#efe9ff;border-radius:10px;padding:0 8px;cursor:pointer;font-style:italic;position:relative}
button.fs-live::after{content:"";position:absolute;left:8px;right:8px;bottom:-2px;height:3px;border-radius:2px;background:#8f7bd8;animation:lab-pulse 1.8s ease-in-out infinite}
button.fs-live:hover{background:#e0d6ff}
.lab-symtip{font-size:12.5px;color:#6d7a64;min-height:18px;margin:4px 0 0}
@keyframes lab-pulse{50%{opacity:.25}}
.lab-coach .coach{margin-top:12px}
/* Mission */
.mission-box{background:#f7f9ef;border-radius:24px;padding:14px 16px 16px;margin:0 0 4px}
.mission-box .lab-say{font-size:15.5px;margin:8px 0 10px}
.mission-scene{display:block;width:100%;max-width:460px;height:auto;margin:0 auto;border-radius:22px}
.lab-dial{display:block;font:600 13px var(--sans);color:#3f5a35;margin-top:12px}
.lab-dial output{float:right;font:700 15px var(--mono);color:#1f3a2b}
.lab-dial input{width:100%;margin-top:8px;accent-color:#6aa832}
.ms-bg{fill:#e8f2fb}
.ms-money .ms-bg,.ms-games .ms-bg,.ms-light .ms-bg{fill:#fdf3d4}
.ms-sound .ms-bg,.ms-art .ms-bg,.ms-space .ms-bg{fill:#ece5fb}
.ms-nature .ms-bg,.ms-science .ms-bg,.ms-health .ms-bg{fill:#e2f4e5}
.ms-food .ms-bg,.ms-sport .ms-bg,.ms-weather .ms-bg{fill:#fde9dc}
.ms-space .ms-bg{fill:#2a2460}
.ms-a{fill:#8cc63f}.ms-b{fill:#5b8def}.ms-coin{fill:#ffcf4d;stroke:#d9a520;stroke-width:2}.ms-white{fill:#fff}
.ms-line{stroke:#9aa58a;stroke-width:3;fill:none;stroke-linecap:round}
.ms-route{stroke:#e2679a;stroke-width:4;stroke-dasharray:7 7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ms-pin{fill:#e2679a}
.ms-glow{fill:#fff3b0;opacity:.8}.ms-ray{stroke:#ffcf4d;stroke-width:4;stroke-linecap:round}
.ms-wave{stroke:#5b8def;stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ms-heart{fill:#ef6a7a}
.ms-orbit{fill:none;stroke:#9a92d6;stroke-width:2;stroke-dasharray:4 6}
.ms-pizza{fill:#f6c768;stroke:#d9983a;stroke-width:3}.ms-slice{fill:#e9835a;opacity:.9}
.ms-road{stroke:#6b7568;stroke-width:16;stroke-linecap:round}.ms-wheel{fill:#2b3a30}
.ms-glass{fill:#fff;stroke:#9aa58a;stroke-width:3}.ms-merc{fill:#ef6a5a}.ms-liquid{fill:#5bbd9a}
.ms-screen{fill:#1f2a44}.ms-code{stroke:#8cc63f;stroke-width:5;stroke-linecap:round}.ms-cursor{fill:#ffcf4d}
.ms-brush{stroke:#e2679a;stroke-width:9;fill:none;stroke-linecap:round}
.ms-stem{stroke:#4a9a5a;stroke-width:6;stroke-linecap:round;fill:none}.ms-leaf{fill:#6cc27a}
.ms-sym{font:700 26px var(--serif);fill:#a9791a}
.ms-readout rect{fill:#fff;opacity:.92}.ms-readout text{font:700 14px var(--mono);fill:#1f3a2b}
.ms-pop{animation:ms-pop .35s ease-out}
@keyframes ms-pop{from{transform:translateY(-8px);opacity:0}}
.ms-spark{stroke:#ffcf4d;stroke-width:5;stroke-linecap:round;animation:ms-burst 1s ease-out both}
@keyframes ms-burst{from{opacity:1;transform:scale(.3);transform-origin:150px 80px}to{opacity:0;transform:scale(1.6);transform-origin:150px 80px}}
.mission-scene.win{animation:ms-win .6s ease-out}
@keyframes ms-win{50%{transform:scale(1.03)}}
/* Stage */
.lab-stage{background:linear-gradient(180deg,#f4f8ea,#fbfaf2);border-radius:32px;padding:14px 18px 18px;min-width:0}
.stage-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.stage-bar>span{font:700 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#6d8a4a}
.stage-tools{display:flex;gap:6px;flex-wrap:wrap}
.tool{display:inline-flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:999px;padding:6px 13px 6px 10px;font:600 12px var(--sans);color:#365a1a;box-shadow:0 1px 2px #17261d14;cursor:pointer}
.tool:hover{background:#eaf5d3}
.tool svg{width:14px;height:14px;fill:currentColor}
.lab-stage .interactive-canvas{background:none;border:0;box-shadow:none;padding:0;margin:0}
.lab-stage .canvas-header{display:none}
.lab-stage .fraction-controls{background:#fff;border:0;border-radius:22px;padding:14px 18px;margin-top:10px;box-shadow:0 1px 2px #17261d10}
.lab-stage input[type=range]{accent-color:#6aa832}
.lab-stage .fraction-controls label{border-radius:14px;transition:background .25s,box-shadow .25s}
.lab-glow{background:#fff3d6!important;box-shadow:0 0 0 3px #f0a040 inset;padding:4px 8px}
label.nudge input[type=range]::-webkit-slider-thumb{animation:lab-nudge 1.4s ease-in-out infinite}
label.nudge input[type=range]::-moz-range-thumb{animation:lab-nudge 1.4s ease-in-out infinite}
@keyframes lab-nudge{50%{box-shadow:0 0 0 8px #f0a04066}}
.lab-notebook{margin-top:14px;background:#fff;border-radius:22px;padding:12px 16px}
.lab-table{width:100%;border-collapse:collapse;margin-top:8px;font:600 13px var(--mono);color:#2b3a30}
.lab-table th{font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#98a08c;text-align:left;padding:3px 8px}
.lab-table td{padding:5px 8px;border-top:1px solid #edf0e4}
.lab-table td.o{color:#3f7a1a}
.lab .canvas-caption{display:none}
/* Challenges in proper math type */
.mx-v{font-family:var(--serif);font-style:italic;font-size:1.06em;padding:0 .02em;color:inherit}
.mx-sup,.mx-sub{font-size:.7em;line-height:0;font-style:normal}
.mx-sup{vertical-align:.5em}.mx-sub{vertical-align:-.3em}
.mx-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .14em;font-size:.92em;line-height:1.18}
.mx-frac>span:first-child{padding:0 .32em .06em;border-bottom:.075em solid currentColor}
.mx-frac>span:last-child{padding:.06em .32em 0}
.mx-sqrt{display:inline-flex;align-items:stretch}
.mx-rad{margin-right:.04em}
.mx-body{border-top:.075em solid currentColor;padding:0 .12em;margin-top:.16em}
.mxt{font-family:var(--serif);font-variant-numeric:lining-nums;font-feature-settings:"lnum"}
.exercise-card h2.mxt{font-weight:500;font-size:clamp(26px,3vw,36px);line-height:1.5;letter-spacing:0;margin:14px 0 30px;color:#1b2e22}
.exercise-card h2.mxt .mx-frac,.exercise-card h2.mxt .math{font-size:.96em}
.answer-choices .choice .mxt{font-size:22px;line-height:1.5;color:#1b2e22}
.answer-choices .choice .math{font-size:1em}
.answer-choices .choice .math .mv{color:inherit}
.answer-feedback .mxt,.hint-box .mxt{font-size:18px;line-height:1.65}
.coach .bubble.mxt{font-size:20px;line-height:1.55;font-weight:500}
.applies-body .mxt{font-size:16.5px;line-height:1.75}
.lab-say.mxt,.lab-sub.mxt{font-family:var(--serif)}
.lab-say{font-family:var(--serif);font-size:19px}
.lab-wonder,.lab-hint,.lab-miss,.lab-win p{font-family:var(--serif)}
.lab-hint,.lab-miss{font-size:15.5px}
/* The explorer sits beside the challenge, open by default */
.challenge-wrap{container-type:inline-size}
.challenge-split{display:grid;gap:26px;align-items:start}
.challenge-split>.exercise-card{min-width:0}
.challenge-explorer{min-width:0;background:linear-gradient(180deg,#f4f8ea,#fbfaf2);border-radius:30px;padding:16px 18px 18px;box-shadow:0 1px 2px #17261d10}
.challenge-explorer .canvas-details{margin-top:0}
.challenge-explorer summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;cursor:pointer;padding:2px 4px 10px;font:700 12px var(--mono);letter-spacing:.09em;text-transform:uppercase;color:#4a6a28}
.challenge-explorer summary small{font:500 12px var(--sans);letter-spacing:0;text-transform:none;color:#6d7a64}
.challenge-explorer .interactive-canvas{background:none;border:0;box-shadow:none;padding:0;margin:0}
.challenge-explorer .canvas-header,.challenge-explorer .canvas-caption{display:none}
.challenge-explorer .fraction-controls{background:#fff;border:0;border-radius:20px;padding:12px 16px;margin-top:10px}
.challenge-explorer input[type=range]{accent-color:#6aa832}
@container (min-width:860px){.challenge-split.has-explorer{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:34px}.challenge-split.has-explorer .challenge-explorer{position:sticky;top:18px}}
.flow-pchips{margin:10px 0 12px;padding:10px 12px;border-radius:16px;background:#fff8df;box-shadow:0 0 0 1px #f0dfae inset}
.flow-pchips-h{display:block;font:800 12px var(--sans);color:#7a5a12;letter-spacing:.04em;text-transform:uppercase}
.flow-pchips-h small{display:block;font:600 12px var(--sans);color:#8a7a50;text-transform:none;letter-spacing:0;margin-top:2px}
.flow-pchip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.flow-pchip{min-width:46px;min-height:44px;padding:4px 14px;border-radius:14px;border:2px solid #e0891c;background:#fff;color:#7a4a08;font:800 20px var(--mono,monospace);cursor:grab;box-shadow:0 3px 0 #e0891c55}
.flow-pchip:active{cursor:grabbing}
.flow-pchip.armed{background:#ffd56a;box-shadow:0 0 0 4px #ffd56a88;transform:translateY(-1px)}
.flow-pfill{min-height:44px;padding:4px 12px;border-radius:14px;border:2px dashed #b6a064;background:transparent;color:#6a5820;font:700 13px var(--sans);cursor:pointer}
.flow-tiles.arming .flow-tile{cursor:copy;box-shadow:0 0 0 2px #e0891c inset;animation:flow-arm 1s ease-in-out infinite alternate}
.flow-tile.target{background:#fff1c4;box-shadow:0 0 0 3px #e0891c inset}
.flow-tile.landed{animation:flow-hit .6s ease-out}
.flow-tile.stretched input[type=range]{animation:flow-stretch .9s ease-out}
@keyframes flow-arm{from{background:#fff}to{background:#fff6d8}}
@keyframes flow-stretch{0%{filter:brightness(1.4);transform:scaleX(.92)}100%{filter:none;transform:none}}
.work{margin-top:14px;padding:14px 14px 10px;border-radius:20px;background:#f6fbe6;box-shadow:0 0 0 1px #dfe9b4 inset}
.work-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:8px}
.work-h small{flex:1 1 140px;font:600 12px var(--sans);color:#6a7a52}
.work-ctl{display:flex;gap:6px;margin-left:auto}
.work-btn{min-width:44px;min-height:44px;padding:0 14px;border-radius:14px;border:2px solid #9bbf3a;background:#fff;color:#2f4a12;font:800 18px var(--sans);display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.work-btn.play{background:#d8f36a;border-color:#a9cf3a;font-size:14px}
.work-btn.play svg{width:16px;height:16px;fill:currentColor}
.work-btn:disabled{opacity:.4;cursor:default}
.work-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.work-step{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:8px 10px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px #e8efcc inset;transition:opacity .5s,box-shadow .4s,background .4s}
.work-n{width:28px;height:28px;border-radius:50%;background:#e8efcc;color:#3b5a14;font:800 13px var(--sans);display:flex;align-items:center;justify-content:center}
.work-b p{margin:2px 0 4px;font:600 14px/1.45 var(--sans);color:#33402c}
.work-eq{font:500 19px/1.7 var(--serif);color:#17261d;overflow-wrap:anywhere}
.machine.still{animation:none}
.machine.still .op-badge{top:42%}
.ms-does{position:absolute;left:6px;right:6px;bottom:9px;text-align:center;color:#d6def5;font:700 11px/1.1 var(--sans);letter-spacing:.02em}
.work-chip{display:inline-block;padding:0 9px;margin:0 1px;border-radius:9px;font-weight:700}
.work-chip.wi{background:#ffe9a8;color:#6a3f06}
.work-chip.wo{background:#d8f36a;color:#1d3a12}
.work.stepping .work-step.later{opacity:.18}
.work.stepping .work-step.now{background:#fffdf0;box-shadow:0 0 0 2px #e0a526 inset;animation:work-in .6s ease-out}
.work.stepping .work-step.now .work-n{background:#e0a526;color:#fff}
@keyframes work-in{from{transform:translateY(8px);opacity:.3}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.work.stepping .work-step.now{animation:none}}
@media (prefers-reduced-motion:reduce){.flow-tiles.arming .flow-tile,.flow-tile.stretched input[type=range]{animation:none}}
.legal{max-width:720px;margin:0 auto;padding:40px 20px 80px}.legal h1{font-family:var(--serif);font-size:38px;line-height:1.15;margin:12px 0 8px}.legal h2{font-size:19px;margin:30px 0 8px}.legal-lead{font-size:17px;color:var(--muted)}.legal ul{padding-left:20px}.legal li{margin:8px 0}.legal code{background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px}.legal a{color:#2c4637}
