:root{--bg:#f1ecf8;--paper:#fff;--ink:#211a32;--muted:#766d82;--violet:#7c3aed;--pink:#ec4899;--line:#e9def7;--soft:#faf7fe;--grad:linear-gradient(130deg,#8b5cf6,#d84fc0)}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,summary,select{touch-action:manipulation}button{color:inherit;cursor:pointer}a{color:var(--violet)}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #c09af3;outline-offset:4px}button,a{ -webkit-tap-highlight-color:transparent}[hidden]{display:none!important}.shell{width:min(1560px,calc(100% - 80px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;height:90px;border-bottom:1px solid #dfd5ea}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:20px;font-weight:750;color:var(--ink);letter-spacing:-.7px}.brand-mark{display:grid;place-items:center;background:var(--grad);color:#fff;width:34px;height:34px;border-radius:11px;font-size:25px}.brand-divider{height:22px;width:1px;background:#d6c9e4;margin:0 8px}.brand-caption{font-size:12px;letter-spacing:0;font-weight:500;color:var(--muted)}.view-nav{display:flex;gap:5px;padding:5px;background:#e8e0f1;border-radius:14px}.view-nav button{border:0;background:none;padding:9px 20px;border-radius:10px;font-size:13px;font-weight:650;color:var(--muted)}.view-nav button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px #3a245a09}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 19px;min-height:44px;border:1px solid transparent;border-radius:12px;text-decoration:none;font-weight:650;font-size:14px;line-height:1.4;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--violet);color:#fff}.primary:hover{background:#6d28d9}.outline{background:#fff;border-color:var(--line)}.small{font-size:13px;padding:8px 14px;min-height:40px}.icon-button{display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;width:42px;min-width:42px;height:42px;background:#fff;font-size:22px}.course-intro{display:flex;align-items:center;justify-content:space-between;padding-block:40px 31px;gap:30px}.eyebrow{display:block;margin:0 0 10px;font-size:10px;line-height:1.4;letter-spacing:.15em;font-weight:800;color:var(--violet)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3.2vw,49px);line-height:1.14;letter-spacing:-.04em;margin-bottom:13px;font-weight:750}h2{font-size:clamp(24px,2vw,31px);line-height:1.2;letter-spacing:-.035em;margin:0}h3{font-size:20px;line-height:1.25;letter-spacing:-.025em}.intro-note{color:var(--muted);margin:0;font-size:14px}.course-number{font-size:83px;line-height:.9;font-weight:800;letter-spacing:-.08em;color:#c5afdF;text-align:right}.course-number span{display:block;font-size:10px;line-height:2.5;letter-spacing:.08em;font-weight:650;color:var(--muted)}.hours{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px}.hour{display:flex;align-items:center;gap:14px;background:#ffffff85;border:1px solid #e2d8ee;border-radius:17px;text-align:left;padding:17px 18px;min-height:92px}.hour .hour-num{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#ede5f7;font-size:15px;font-weight:750;flex-shrink:0;color:var(--violet)}.hour strong{display:block;font-size:14px;line-height:1.35;font-weight:700}.hour small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.hour.active{border-color:#ba9bec;background:#fff;box-shadow:0 4px 16px #7c3aed0a}.hour.active .hour-num{background:var(--grad);color:#fff}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;align-items:start}.lesson-plan{padding-top:8px}.plan-label{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--muted);margin-bottom:14px}.segment{display:flex;gap:11px;width:100%;border:0;border-left:2px solid #e2d6ed;background:transparent;padding:16px 10px 16px 15px;text-align:left}.segment.active{border-left-color:var(--violet);background:linear-gradient(90deg,#e5d8f7,transparent);border-radius:0 12px 12px 0}.segment-index{font-size:10px;color:#a294af;min-width:17px;padding-top:2px}.segment strong{display:block;font-size:13px;line-height:1.4}.segment small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.segment.active .segment-index,.segment.active strong{color:var(--violet)}.plan-note{font-size:11px;line-height:1.7;color:var(--muted);margin:27px 10px 0 18px;border-top:1px solid #e0d3eb;padding-top:18px}.board-area{min-width:0}.board-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.board-top .eyebrow{margin-bottom:7px}.board-top h2{font-size:25px}.board{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 8px 30px #3c206004;overflow:hidden}.board-inner{padding:30px 35px;min-height:380px}.board-description{font-size:14px;color:var(--muted);line-height:1.65;margin-bottom:24px;max-width:780px}.math{overflow-x:auto;overflow-y:hidden;padding:10px 3px}.math .katex-display{margin:.35em 0}.equation{font-size:clamp(23px,2.3vw,36px);text-align:center;padding:24px 5px 32px}.equation .katex{font-size:1.06em}.explain-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);align-items:start}.explain-grid .explanation{min-width:0;padding:30px}.explain-grid .widget-side{border-left:1px solid var(--line);padding:15px;background:#fdfbff;min-width:0;height:100%}.widget-side iframe{width:100%;height:620px;border:0;border-radius:15px}.widget-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:650}.widget-top button{font-size:11px;letter-spacing:0;text-transform:none;background:transparent;border:0;color:var(--violet);min-height:35px}.step{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;margin:0 0 13px;padding:15px 16px;background:#faf7fe;border:1px solid #eee6f7;border-radius:14px}.step-num{display:grid;place-items:center;background:#e9ddf9;border-radius:8px;font-size:10px;color:var(--violet);height:25px;font-weight:750}.step-label{font-size:12px;font-weight:650}.step .math{font-size:22px;padding:4px 0}.step p{font-size:12px;color:var(--muted);margin:5px 0 0}.step .katex-display{text-align:left}.steps-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 0}.steps-controls small{color:var(--muted);font-size:11px}.text-button{border:0;background:transparent;color:var(--violet);font-size:12px;min-height:40px;padding:7px 4px}.answer-panel{margin-top:20px;background:#f1eafa;border:1px solid #dfcdf4;border-radius:14px;padding:16px 20px}.answer-panel .eyebrow{margin-bottom:3px}.answer-panel .math{font-size:23px}.answer-panel .katex-display{text-align:left}.answer-panel p{font-size:12px;margin-bottom:0;color:var(--muted)}.stage-footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:16px}.stage-footer>span{font-size:11px;color:var(--muted)}.stage-footer>div{display:flex;gap:8px}.slide-select{display:flex;gap:7px;margin-bottom:15px;flex-wrap:wrap}.slide-select button,.chips button,.variants button{border:1px solid var(--line);background:#ffffff99;padding:8px 13px;border-radius:10px;font-size:12px;min-height:38px}.slide-select button.active,.chips button.active,.variants button.active{background:var(--violet);color:#fff;border-color:var(--violet)}.practice-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.source-label{font-size:11px;color:var(--muted)}.source-label strong{display:block;color:var(--ink);font-size:13px;margin-bottom:3px}.variants{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:24px}.variants button{font-size:10px;padding:7px 10px;min-height:34px}.task-content{padding:20px 10px 30px;min-height:220px}.task-part{font-size:17px;margin:4px 0 10px}.task-part .part-letter{font-weight:750;color:var(--violet);margin-right:9px}.task-content .equation{font-size:clamp(28px,3.2vw,45px);padding:12px 0 30px}.task-interval{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:17px}.task-interval .math{font-size:24px;padding:0 5px;display:inline-block}.task-interval .katex-display{margin:0}.practice-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:20px}.task-counter{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.task-counter .icon-button{font-size:16px;width:37px;min-width:37px;height:37px}.practice-actions{display:flex;gap:8px;flex-wrap:wrap}.source-footnote{margin:20px 0 0;color:var(--muted);font-size:10px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:26px}.section-heading p:not(.eyebrow){color:var(--muted);font-size:14px;margin:12px 0 0}.search-label{font-size:11px;color:var(--muted);min-width:220px}input[type=search]{display:block;margin-top:6px;width:100%;border:1px solid #dfd3ed;border-radius:11px;background:#fff;padding:11px 13px;color:var(--ink);outline-offset:3px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 23px}.bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bank-card{padding:23px 25px;background:#fff;border:1px solid var(--line);border-radius:20px;min-width:0}.bank-card-top{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.bank-card-top strong{color:var(--violet)}.bank-card .math{font-size:25px;margin:16px 0}.bank-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted)}.graph-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.graph-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px;min-width:0}.graph-preview{height:160px;background:#faf7fe;border-radius:15px;margin-bottom:22px;display:grid;place-items:center;overflow:hidden}.graph-preview svg{width:100%;height:150px}.graph-card p{font-size:13px;line-height:1.7;color:var(--muted);min-height:68px}.graph-card .button{width:100%;margin-top:8px}.site-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e0d5eb;padding:23px 0;margin-top:45px;color:var(--muted);font-size:10px}.site-footer>span:last-child{font-size:10px}dialog{width:min(660px,calc(100% - 32px));border:1px solid var(--line);border-radius:23px;padding:28px;color:var(--ink);box-shadow:0 20px 100px #211a3225}dialog::backdrop{background:#211a3260;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-heading h2{font-size:25px}.dialog-heading+p,dialog>p{font-size:13px;color:var(--muted);margin:16px 0}dialog label{font-size:11px;font-weight:650}textarea{width:100%;margin:7px 0 16px;border:1px solid #dfd2ed;background:#faf7fe;color:#5b367e;border-radius:12px;padding:14px;resize:vertical;font:12px/1.7 monospace}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}dialog .dialog-hint{font-size:11px;margin-bottom:0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#292036;color:#fff;border-radius:13px;padding:12px 20px;max-width:90vw;font-size:12px;box-shadow:0 6px 30px #211a3220;z-index:10;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}.presenting .site-header,.presenting .course-intro,.presenting .hours,.presenting .lesson-plan,.presenting .site-footer{display:none}.presenting .workspace{display:block;width:min(1700px,calc(100% - 70px));padding-top:28px}.presenting .board-top h2{font-size:30px}.presenting .explanation .equation{font-size:44px}.presenting .step .math{font-size:28px}.presenting .board-inner{min-height:60vh}.presenting .task-content .equation{font-size:clamp(32px,4.7vw,69px)}.presenting .task-content{padding:50px 20px}.presenting .stage-footer{padding-bottom:55px}#exit-present{position:fixed;bottom:15px;right:20px;z-index:8;box-shadow:0 3px 20px #35205215}.embedded{background:#fff}.embedded .site-header,.embedded .course-intro,.embedded .hours,.embedded .lesson-plan,.embedded .site-footer,.embedded #embed-screen{display:none}.embedded .workspace{display:block;width:calc(100% - 32px);padding-top:20px}.embedded .stage-footer{padding-bottom:10px}.copying{width:1000px!important;max-width:none!important;padding:46px!important;border:0!important;border-radius:24px!important;background:#faf5ff!important;box-shadow:none!important}.copying .task-content{min-height:0;padding:20px 0}.copying .equation{font-size:40px!important}.copying .source-label{font-size:13px}.copying .source-label strong{font-size:16px}.copy-brand{color:var(--violet);font-size:13px;margin-top:18px;font-weight:650}.empty-state{padding:40px;color:var(--muted);background:#fff;border-radius:18px;grid-column:1/-1;text-align:center}
.solution-details{margin-top:20px}.solution-details summary{cursor:pointer;padding:12px 0;color:var(--violet);font-weight:650;font-size:13px}.solution-details .step{margin-top:8px}
@media(min-width:1700px){.explain-grid{grid-template-columns:1fr .85fr}.widget-side iframe{height:670px}}
@media(max-width:1250px){.shell{width:calc(100% - 44px)}.workspace{grid-template-columns:180px minmax(0,1fr);gap:20px}.brand-caption,.brand-divider{display:none}.explain-grid{grid-template-columns:1fr}.explain-grid .widget-side{border-left:0;border-top:1px solid var(--line)}.widget-side iframe{height:700px}.hour{padding:15px 13px;gap:10px}.hour strong{font-size:12px}.graph-cards{grid-template-columns:1fr 1fr}.explain-grid .explanation{padding:28px}.course-number{font-size:70px}}
@media(max-width:760px){.shell{width:calc(100% - 28px)}.site-header{height:auto;min-height:76px;gap:10px;flex-wrap:wrap;padding:15px 0}.brand{font-size:18px}.brand-mark{width:30px;height:30px;font-size:22px}.view-nav{order:3;width:100%;justify-content:space-between}.view-nav button{flex:1;padding:9px 7px}.course-intro{padding-block:27px 23px}.course-number{display:none}h1{font-size:33px}.intro-note{font-size:12px}.hours{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:22px}.hour{min-height:76px;padding:12px}.hour .hour-num{width:30px;height:30px;border-radius:10px;font-size:13px}.hour strong{font-size:11px}.hour small{font-size:9px}.workspace{display:block}.lesson-plan{display:flex;gap:5px;overflow-x:auto;margin-bottom:22px;padding:0 0 5px}.plan-label,.plan-note{display:none}.segment{min-width:155px;max-width:200px;border-left:0;border-bottom:2px solid #e3d8ec;border-radius:12px 12px 0 0;padding:10px;gap:5px;flex-shrink:0}.segment.active{border-left:0;border-bottom-color:var(--violet);border-radius:12px 12px 0 0;background:#e6d9f7}.segment strong{font-size:11px}.segment small{font-size:9px}.board-top h2{font-size:23px}.board-top .eyebrow{font-size:9px}.board{border-radius:19px}.board-inner,.explain-grid .explanation{padding:23px 18px}.equation{font-size:25px;padding:18px 0 24px}.board-description{font-size:12px}.step{padding:12px;gap:9px}.step .math{font-size:19px}.step-label{font-size:11px}.step p{font-size:11px}.steps-controls{flex-wrap:wrap}.widget-side iframe{height:860px}.explain-grid .widget-side{padding:10px}.source-label{font-size:9px}.source-label strong{font-size:11px}.practice-top{align-items:start}.practice-top .button{font-size:10px;padding:8px 10px;min-height:35px}.variants{gap:5px}.variants button{padding:7px 8px}.task-content{padding:10px 0 25px;min-height:220px}.task-part,.task-interval{font-size:14px}.task-content .equation{font-size:27px}.task-interval .math{font-size:22px}.practice-controls{align-items:start;flex-wrap:wrap}.practice-actions{margin-left:auto}.practice-actions .button{font-size:11px;padding:9px 11px}.stage-footer{align-items:start}.stage-footer .button{padding:9px 12px;font-size:12px}.stage-footer>span{font-size:9px;max-width:100px}.bank-grid,.graph-cards{grid-template-columns:1fr}.section-heading{align-items:start;flex-direction:column}.search-label{width:100%}.bank-card{padding:20px}.bank-card .math{font-size:22px}.site-footer{margin-top:32px}.site-footer span:last-child{display:none}.presenting .workspace{width:calc(100% - 24px);padding-top:16px}.presenting .board-top h2{font-size:25px}.presenting .explanation .equation{font-size:28px}.presenting .step .math{font-size:22px}.presenting .task-content{padding:25px 0}.presenting .task-content .equation{font-size:30px}dialog{padding:22px}.dialog-actions .button{flex:1;font-size:12px}.graph-card p{min-height:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.hours{grid-template-columns:repeat(2,minmax(0,1fr))}.explain-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.explain-heading h3{margin-bottom:15px}.explain-heading>.button{flex-shrink:0}.number-line{margin:15px 0 3px;padding:8px 0;overflow-x:auto}.number-line svg{display:block;width:100%;min-width:360px;max-height:155px}.number-line figcaption{font-size:11px;color:var(--muted);margin-top:0}.explanation>.variants{margin-top:18px}.explanation>.source-label{margin-bottom:12px}.board-inner>h3{margin-bottom:15px}.step>div{min-width:0}.copying{width:900px!important}.copying .equation{overflow:visible}.copying .task-content .equation{font-size:38px!important}.course-number{min-width:140px}.number-line text{font-family:system-ui,sans-serif}
@media(max-width:760px){.explain-heading{flex-direction:column;gap:0}.explain-heading>.button{margin-bottom:17px}.number-line{margin-left:-5px;margin-right:-5px}.number-line svg{min-width:340px}.step .number-line{margin-left:-28px}.hours{grid-template-columns:1fr 1fr}.hour{align-items:start}.board-description{overflow-wrap:anywhere}.bank-card-bottom{align-items:start}.bank-card-bottom>.button{flex-shrink:0}.copying .task-content{padding-inline:0}}
.png-actions{display:flex;gap:7px;flex-wrap:wrap;flex-shrink:0}.explain-heading>.png-actions{margin-bottom:17px}.copying .task-content .equation{font-size:38px}@media(max-width:760px){.practice-top{flex-wrap:wrap}.png-actions .button{font-size:10px;padding:8px 10px}}
.hour{min-width:0}.hour>span:last-child{min-width:0;overflow-wrap:anywhere}
