:root{font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:#202b2b;background:#f7f9f8;font-synthesis:none;--green:#137e69;--teal:#e8f4ef;--pink:#c84e73;--line:#dce4df;--muted:#6c7c77;--paper:#fff;--gold:#f3c35d;letter-spacing:0}*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d78d25;outline-offset:4px}button{border:0}button,summary{min-height:44px}svg{width:20px;height:20px;flex-shrink:0}button svg{pointer-events:none}button>*{pointer-events:none}.app-header{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#fff}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;color:#263c35;font-weight:750}.brand b{color:var(--green);font-weight:500}.brand-mark{width:38px;height:38px;background:#dbefe6;display:grid;place-items:center;border-radius:8px;color:var(--green)}.brand-mark svg{width:24px;height:24px}.header-right{display:flex;gap:10px;align-items:center}.subject{font-size:13px;color:var(--muted);margin-right:18px}.icon-button{width:44px;height:44px;display:inline-grid;place-items:center;background:transparent;border-radius:6px;flex-shrink:0}.icon-button:hover{background:#edf1ef}.icon-button:disabled{opacity:.25}.shell{max-width:1500px;margin:auto;display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100svh - 80px)}.lesson-nav{padding:36px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.nav-label,.eyebrow{font-size:12px;font-weight:700;color:var(--muted)}.nav-label{padding:0 12px;margin-bottom:16px}.lesson-tab{width:100%;display:flex;gap:12px;align-items:center;background:transparent;text-align:left;padding:14px 12px;border-radius:6px;position:relative}.lesson-tab.active{background:#e3eee8;color:#14664f}.lesson-tab:not(.active):hover{background:#edf2ef}.tab-number{font-size:12px;color:#84948d;align-self:flex-start;padding-top:3px;font-weight:700}.lesson-tab strong{font-size:14px;display:block}.lesson-tab small{font-size:11px;display:block;color:var(--muted);margin-top:5px}.lesson-tab>svg{width:16px;margin-left:auto;opacity:0}.lesson-tab.active>svg{opacity:1}.lesson-tab.complete .tab-number{color:var(--green)}.memory-reference{margin:40px 12px 16px;border-top:1px solid var(--line);padding-top:24px}.memory-reference p{font-size:17px;line-height:1.7;font-weight:600;margin:12px 0 20px}.math{font-family:"Cambria Math","Times New Roman",serif;font-size:24px;line-height:1.5;white-space:nowrap}.frac{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;line-height:1.35;margin:0 4px}.frac>.num{border-bottom:1.4px solid currentColor;padding:0 5px 4px}.frac>.den{padding:4px 5px 0}.lim{display:inline-flex;flex-direction:column;vertical-align:middle;align-items:center;line-height:1;margin-right:6px}.lim>small{font-size:.48em;margin-top:5px}.math sup{font-size:.65em}.math .green{color:var(--green)}.math .pink{color:var(--pink)}.reference-pair{display:flex;flex-direction:column;gap:6px;margin-top:18px;font-size:11px;color:var(--muted)}.reference-pair span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}.reference-pair span+span:before{background:var(--pink)}#reference-formula .math{font-size:19px}.text-button{display:inline-flex;gap:7px;align-items:center;background:transparent;font-size:12px;font-weight:600;padding:8px;color:var(--muted);border-radius:6px}.text-button:hover{background:#eaf0ec;color:var(--green)}.text-button svg{width:16px;height:16px}.nav-foot{font-size:11px;color:#8c9993;margin:auto 12px 0;padding-top:36px}.workspace{padding:34px 40px 16px;min-width:0}.session-heading{display:flex;justify-content:space-between;align-items:center}.session-heading h1{font-size:27px;line-height:1.3;margin:7px 0 0;font-weight:750}.progress-track{display:flex;gap:5px;margin:25px 0 34px;height:4px}.progress-track span{flex:1;background:#e3e9e5;border-radius:4px}.progress-track span.done{background:#87bba3}.progress-track span.current{background:var(--green)}.learning-grid{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(310px,1.2fr);gap:36px;align-items:start}.concept-side{min-width:0}.section-label{font-size:11px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:7px}.section-label svg{width:15px;height:15px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:50%}#concept-canvas{width:100%;height:220px;display:block;margin-top:8px}.visual-caption{font-size:12px;line-height:1.75;text-align:center;color:var(--muted);min-height:42px}.visual-caption b{font-weight:650;color:var(--green)}details{margin-top:25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:12px 0;font-size:12px;font-weight:650;list-style:none}summary::-webkit-details-marker{display:none}summary svg{width:15px}details[open] summary svg{transform:rotate(180deg)}#problem-content{padding:6px 0 18px;font-size:12px;line-height:1.9}#problem-content .math{font-size:19px;display:block;margin:10px 0;width:max-content;max-width:100%}.problem-scroll{overflow-x:auto;padding:4px 0}.known{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.known span{font-size:12px;color:var(--green);border-bottom:1px solid #a8c8b8;padding:3px 1px}.build-side{border-left:1px solid var(--line);padding-left:34px;min-width:0}.step-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:0;color:var(--muted)}#phase{font-weight:750;color:var(--green);font-size:11px}h2{font-size:21px;line-height:1.5;margin:15px 0 8px;word-break:keep-all}#subprompt{font-size:13px;color:var(--muted);line-height:1.8;margin:0;min-height:44px;word-break:keep-all}.equation{min-height:135px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:20px 0;margin:12px 0 14px;position:relative}.equation .math{font-size:25px}.eq-line{width:100%;display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap}.slot{font-family:"Cambria Math","Times New Roman",serif;font-size:22px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:86px;min-height:58px;border:1.5px dashed #99afa4;background:#edf3ef;border-radius:7px;margin:3px 5px;box-shadow:inset 0 2px 6px #274a3810;color:#798c81;transition:background .16s,border-color .16s,box-shadow .16s}.slot.over{background:#d4edde;border-color:var(--green);box-shadow:0 0 0 4px #137e6912}.slot.filled{border:1.5px solid #72ad90;background:#e2f2e8;color:#135f48;animation:snap .25s ease-out}.slot .slot-mark{font-family:system-ui;font-size:22px;font-weight:300}.recall .slot{background:#eff0f0;border-color:#b8bfbc}.tray-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:4px}.tile-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:78px}.tile{font-family:"Cambria Math","Times New Roman",serif;font-size:23px;background:#fff;border:1px solid #c9d5cd;border-bottom:3px solid #c1d0c6;border-radius:8px;min-height:70px;display:flex;align-items:center;justify-content:center;padding:8px 5px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;transition:box-shadow .16s,background .16s;position:relative}.tile .math{font-size:inherit}.tile:hover{border-color:#689984;background:#fbfefb}.tile.selected{outline:2px solid var(--green);outline-offset:3px}.tile.used{opacity:.28;background:#e7eee9}.tile:disabled{pointer-events:none}.tile.drag-origin{opacity:.25}.drag-ghost{position:fixed;pointer-events:none;z-index:1000;margin:0;box-shadow:0 12px 30px #1a443a2b;transform:scale(1.05);opacity:.98}.feedback{margin-top:16px;min-height:63px;font-size:12px;line-height:1.8;color:var(--muted);padding:10px 12px;border-left:2px solid #cbd6ce}.feedback.success{color:#1b7256;border-color:#3e9e77;background:#edf6ef}.feedback .math{font-size:17px}.step-actions{display:flex;gap:8px;align-items:center;margin-top:12px}.primary{margin-left:auto;background:#176e57;color:white;min-height:46px;padding:10px 16px;display:flex;justify-content:center;align-items:center;gap:10px;font-size:12px;font-weight:650;border-radius:6px}.primary:hover{background:#105f4a}.primary:disabled{background:#e4eae6;color:#8c9991}.primary svg{width:17px;height:17px}.breadcrumb-section{border-top:1px solid var(--line);margin-top:38px;padding-top:20px}.breadcrumbs{display:flex;gap:10px;margin-top:13px;flex-wrap:wrap;min-height:38px;align-items:center}.crumb{display:inline-flex;gap:6px;align-items:center;font-size:12px;color:#38614e}.crumb .math{font-size:17px}.crumb>svg{width:14px;color:#9bab9f}.breadcrumbs .empty{font-size:12px;color:#9aa69e}.workspace-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px;margin-top:30px;color:#94a299;font-size:10px}.workspace-footer span span{padding:0 10px;color:#b5c0b8}dialog{border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;padding:24px;max-width:620px;width:calc(100% - 28px);max-height:85svh;box-shadow:0 18px 100px #213e3930}dialog::backdrop{background:#153d3444;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{margin:0}.dialog-body{font-size:13px;line-height:1.8}.map-step{padding:14px 0;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:14px;font-size:13px}.map-step>span{width:24px;height:24px;background:#e8f3ec;color:var(--green);display:grid;place-items:center;border-radius:50%;font-size:11px;flex-shrink:0}.map-step small{display:block;color:var(--muted);margin-top:6px}.map-step .math{font-size:20px}.completion-icon{width:52px;height:52px;display:grid;place-items:center;background:#e4f3e9;color:var(--green);border-radius:50%;margin:20px 0}.completion-icon svg{width:26px;height:26px}.completion-summary{font-size:14px;line-height:1.8}.completion-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.completion-actions .primary{margin:0;flex:1}.dialog-note{color:var(--muted);font-size:12px;line-height:1.85}.record-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.quiet-button{background:#eff3f0;padding:10px 14px;border-radius:6px;font-size:12px;min-height:44px}#demo-layer{position:fixed;inset:0;z-index:990;pointer-events:none}#demo-piece{position:absolute;transition:transform 1.05s cubic-bezier(.35,0,.22,1),opacity .2s}#demo-hand{position:absolute;transition:transform 1.05s cubic-bezier(.35,0,.22,1);color:#315e4a;filter:drop-shadow(0 3px 2px #fff)}#demo-hand svg{width:32px;height:32px;fill:#eaf4e8}#toast{position:fixed;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#27453b;color:white;font-size:12px;padding:10px 16px;border-radius:6px;opacity:0;pointer-events:none;z-index:1100;transition:opacity .2s;max-width:90%;text-align:center}#toast.visible{opacity:1}@keyframes snap{0%{transform:scale(.94)}60%{transform:scale(1.06)}100%{transform:scale(1)}}@media(min-width:1450px){.workspace{padding:40px 54px}.learning-grid{gap:45px}.build-side{padding-left:45px}#concept-canvas{height:250px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.workspace{padding:28px 25px}.lesson-nav{padding:30px 12px}.learning-grid{gap:22px;grid-template-columns:minmax(210px,.85fr) minmax(280px,1.2fr)}.build-side{padding-left:22px}.memory-reference{margin-left:10px;margin-right:10px}.equation .math{font-size:22px}.tile{font-size:21px}.step-actions{gap:3px}.step-actions .text-button{font-size:11px;padding:5px}.primary{padding:10px 12px}}@media(max-width:850px){.app-header{padding:0 22px;height:68px}.shell{display:block}.lesson-nav{border-right:0;border-bottom:1px solid var(--line);padding:12px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#fff}.nav-label,.memory-reference,.nav-foot,#map-open{display:none}.lesson-tab{padding:10px;gap:9px}.lesson-tab small{font-size:10px}.lesson-tab>svg{display:none}.lesson-tab strong{font-size:13px}.tab-number{font-size:11px}.workspace{padding:24px}.progress-track{margin:20px 0 26px}.session-heading h1{font-size:24px}.learning-grid{gap:26px;grid-template-columns:minmax(220px,.9fr) minmax(300px,1.2fr)}.build-side{padding-left:24px}.workspace-footer{margin-top:24px}}@media(max-width:650px){.app-header{height:60px;padding:0 16px}.brand{font-size:17px;gap:9px}.brand-mark{width:30px;height:30px}.brand-mark svg{width:20px;height:20px}.subject{display:none}.header-right{gap:1px}.icon-button{width:40px;height:44px}.lesson-nav{padding:8px 12px;gap:4px}.lesson-tab{padding:9px 6px;gap:6px;border-radius:5px}.lesson-tab strong{font-size:11px}.lesson-tab small{font-size:9px;margin-top:4px}.tab-number{font-size:10px}.workspace{padding:20px 18px 16px}.session-heading h1{font-size:22px}.eyebrow{font-size:10px}.progress-track{margin:15px 0 17px;gap:4px}.learning-grid{display:flex;flex-direction:column;gap:0}.concept-side{width:100%;display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:0 14px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:17px}.concept-side .section-label{grid-column:1 / -1;font-size:10px}#concept-canvas{grid-column:1;width:100%;height:105px;margin-top:0}.visual-caption{grid-column:2;grid-row:2;font-size:11px;text-align:left;align-self:center;min-height:0;line-height:1.8}#problem-panel{grid-column:1 / -1;margin-top:0;border:0}#problem-panel summary{min-height:36px;padding:5px 0;font-size:11px}#problem-panel[open]{padding-top:5px}#problem-content{font-size:11px;padding-bottom:8px}#problem-content .math{font-size:18px}.known{grid-column:1 / -1;margin-top:0;gap:14px}.known:empty{display:none}.known span{font-size:10px}.build-side{padding-left:0;border:0;width:100%}.step-meta{font-size:10px}h2{font-size:20px;margin:11px 0 5px}#subprompt{font-size:12px;line-height:1.7;min-height:0}.equation{min-height:105px;padding:13px 0;margin:4px 0 6px}.equation .math{font-size:24px}.slot{min-height:52px;min-width:78px;font-size:21px}.tile-tray{gap:10px;min-height:65px}.tile{min-height:64px;font-size:23px}.tray-heading{font-size:10px;margin-top:0}.feedback{min-height:55px;margin-top:14px;padding:8px 11px;font-size:12px}.step-actions{margin-top:9px;gap:8px}.step-actions .text-button{font-size:11px}.primary{min-height:46px;font-size:12px;padding:10px 16px}.breadcrumb-section{margin-top:25px;padding-top:15px}.breadcrumbs{min-height:24px;margin-top:10px;gap:8px}.crumb{font-size:10px}.crumb .math{font-size:15px}.workspace-footer{font-size:9px;margin-top:20px;padding-top:14px}.workspace-footer span span{padding:0 5px}.equation.long .math{font-size:20px}.equation.long .slot{min-width:65px;margin:3px}.equation.long .frac{margin:0 1px}.equation.long .frac>.num,.equation.long .frac>.den{padding-left:2px;padding-right:2px}dialog{padding:20px}.dialog-heading h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
:is(#demo-piece)>.tile{width:100%;height:100%;min-height:0}
.session-heading>div{min-width:0}
.session-heading h1{word-break:keep-all}
.lesson-tab strong,.lesson-tab small{word-break:keep-all}
.equation>.math{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px}
.equation>.math>.frac,.equation>.math>.lim{flex-shrink:0}
.tile{height:76px;min-height:76px}
.tile .frac{font-size:20px;line-height:1.05}
@media(max-width:650px){#concept-canvas{height:80px}.concept-side{padding-bottom:7px;margin-bottom:13px}.visual-caption{font-size:11px}.tile{height:70px;min-height:70px}.equation{padding:10px 0}.feedback{min-height:52px}.workspace{padding-top:16px}.progress-track{margin-bottom:12px}.breadcrumb-section{margin-top:20px}}
