:root{--bg:#f1ecf8;--paper:#fff;--card:#fff;--ink:#211a32;--muted:#766d82;--violet:#7c3aed;--pink:#ec4899;--success:#059669;--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:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:var(--violet)}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b58ae9;outline-offset:4px}button,a{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}.shell{width:min(1560px,calc(100% - 80px));margin-inline:auto}h1,h2,h3,p{margin-top:0}h1{margin-bottom:12px;font-size:clamp(30px,3.2vw,47px);font-weight:750;line-height:1.14;letter-spacing:-.04em}h2{margin:0;font-size:clamp(23px,2vw,30px);line-height:1.23;letter-spacing:-.035em}h3{margin-bottom:13px;font-size:20px;line-height:1.3;letter-spacing:-.025em}p:last-child{margin-bottom:0}.eyebrow{display:block;margin:0 0 9px;font-size:10px;line-height:1.4;letter-spacing:.14em;font-weight:800;color:var(--violet)}
.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;min-height:40px;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 18px;min-height:44px;border:1px solid transparent;border-radius:12px;text-decoration:none;font-weight:650;font-size:13px;line-height:1.4;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--violet);color:#fff}.primary:hover:not(:disabled){background:#6d28d9}.outline{background:#fff;border-color:var(--line)}.outline:hover:not(:disabled){background:#faf7fe}.small{font-size:12px;padding:8px 13px;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:21px}.text-button{border:0;background:transparent;color:var(--violet);font-size:12px;min-height:40px;padding:7px 4px}
.course-intro{display:flex;align-items:center;justify-content:space-between;padding-block:35px 29px;gap:30px}.intro-note{color:var(--muted);margin:0;font-size:14px}.course-number{font-size:65px;line-height:.95;font-weight:800;letter-spacing:-.065em;color:#c5afdf;text-align:right;white-space:nowrap}.course-number span{display:block;font-size:10px;line-height:2.6;letter-spacing:.07em;font-weight:650;color:var(--muted)}.topics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:28px}.topic,.hour,.topics>button{display:flex;align-items:center;gap:14px;background:#ffffff85;border:1px solid #e2d8ee;border-radius:17px;text-align:left;padding:16px 18px;min-height:82px;min-width:0}.topic .topic-num,.hour-num,.topic-number{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ede5f7;font-size:16px;font-weight:750;flex-shrink:0;color:var(--violet)}.topics strong{display:block;font-size:14px;line-height:1.4;font-weight:700}.topics small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.topic.active,.hour.active,.topics>button.active{border-color:#ba9bec;background:#fff;box-shadow:0 4px 16px #7c3aed0a}.topic.active .topic-num,.active .hour-num,.active .topic-number{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;position:sticky;top:20px}.plan-label{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--muted);margin-bottom:14px}.segment{display:flex;gap:10px;width:100%;border:0;border-left:2px solid #e2d6ed;background:transparent;padding:14px 10px 14px 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:18px;padding-top:2px}.segment strong{display:block;font-size:12px;line-height:1.45}.segment small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.segment.active .segment-index,.segment.active strong{color:var(--violet)}.plan-note{font-size:11px;line-height:1.7;color:var(--muted);margin:24px 10px 0 18px;border-top:1px solid #e0d3eb;padding-top:17px}.board-area{min-width:0}.board-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}.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:visible}.board-inner{padding:29px 34px;min-height:360px}.board-description{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:23px;max-width:780px}.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}
.task-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.source-label{font-size:11px;color:var(--muted)}.source-label strong{display:block;color:var(--ink);font-size:13px;margin-bottom:3px}.source-footnote{margin:20px 0 0;color:var(--muted);font-size:10px}.variants{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:25px}.variants button,.chips button{border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:10px;font-size:11px;min-height:38px}.variants button.active,.chips button.active{background:var(--violet);color:#fff;border-color:var(--violet)}.task-condition{font-size:17px;line-height:1.9;padding:4px 0 22px;overflow-wrap:break-word}.task-condition p{margin-bottom:14px}.math{width:100%;max-width:100%;overflow:visible;padding:8px 2px}.katex{display:inline-block;max-width:none;font-size:1.13em;vertical-align:middle;overflow:visible;white-space:nowrap}.katex-display{margin:.6em 0}.equation{font-size:clamp(23px,2.6vw,33px);text-align:center;padding:12px 0 20px}.task-diagram{max-width:650px;margin:10px auto 27px}.task-diagram svg,.task-diagram img{display:block;max-width:100%;height:auto;margin:auto}.task-diagram canvas{max-width:100%;height:auto}.task-diagram svg{width:100%}.task-actions,.theory-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:2px}.task-actions>small{margin-right:auto;font-size:11px;color:var(--muted)}.png-actions{display:flex;gap:7px;flex-wrap:wrap}.solution{margin-top:22px}.solution .step,.step{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;margin-bottom:12px;padding:15px 16px;background:#faf7fe;border:1px solid #eee6f7;border-radius:14px;font-size:14px;line-height:1.85}.step>div{min-width:0}.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:20px;padding:4px 0}.step p{margin:4px 0 0}.step .katex-display{text-align:left}.answer-panel{margin-top:20px;background:#f1eafa;border:1px solid #dfcdf4;border-radius:14px;padding:16px 20px;font-size:20px}.answer-panel .eyebrow{margin-bottom:4px}.answer-panel .math{font-size:23px}.teacher-note{margin-top:20px;padding:15px 18px;border-left:3px solid #cbb1eb;background:#fbf9fe;border-radius:0 12px 12px 0;font-size:12px;line-height:1.8;color:var(--muted)}.teacher-note strong{color:#644984}.teacher-note>strong{display:block;margin-bottom:5px}.steps-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 0}.steps-controls small{color:var(--muted);font-size:11px}.solution details summary,details.solution summary{cursor:pointer;padding:10px 0;color:var(--violet);font-size:13px;font-weight:650}
.theory-intro{font-size:16px;line-height:1.85;margin:0 0 24px}.theory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:23px}.theory-block{padding:20px 22px;background:var(--soft);border:1px solid #eee5f7;border-radius:17px;min-width:0;font-size:14px;line-height:1.85}.theory-block h3{font-size:16px;color:#6033a0;margin-bottom:10px}.theory-block p{margin-bottom:12px}.theory-block ul,.theory-block ol{padding-left:21px;margin:10px 0}.theory-block li+li{margin-top:6px}.theory-block .math{font-size:20px}.theory-example{padding:20px 23px;border:1px solid #f1d8ec;border-radius:17px;background:#fdf6fc;font-size:14px;line-height:1.85;margin-bottom:22px}.theory-example h3{font-size:16px;color:#9d427f}.theory-actions{justify-content:flex-end}.task-condition table,.theory-block table,.theory-example table{border-collapse:separate;border-spacing:0;width:100%;margin:15px 0;text-align:center;font-size:14px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.task-condition th,.task-condition td,.theory-block th,.theory-block td,.theory-example th,.theory-example td{padding:9px 7px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}tr:last-child>th,tr:last-child>td{border-bottom:0}tr>th:last-child,tr>td:last-child{border-right:0}th{background:#f3edfb;font-weight:650}.table-scroll{max-width:100%;overflow-x:auto}.table-scroll table{min-width:440px}
.grid-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:0 0 21px;padding:18px 20px;background:#f9f6fd;border:1px solid var(--line);border-radius:16px}.grid-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--muted)}.grid-controls label:has(input[type=checkbox]){flex-direction:row;align-items:center;min-height:42px;gap:8px}.grid-controls select,.grid-controls input[type=number]{border:1px solid #dccdeb;border-radius:9px;padding:8px 10px;min-height:40px;color:var(--ink);background:#fff;max-width:170px}.grid-controls input[type=range]{width:140px;accent-color:var(--violet)}.grid-controls input[type=checkbox]{accent-color:var(--violet);width:17px;height:17px}.grid-controls .button:first-of-type{margin-left:auto}.grid-paper{background:#fff;border:1px solid #ddd3e9;border-radius:12px;overflow:hidden;max-width:100%;margin-inline:auto}.grid-paper canvas,.grid-paper svg,.grid-paper img{display:block;width:100%;height:auto}.grid-caption{font-size:11px;color:var(--muted);margin-top:12px}.grid-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:25px}.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:240px}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}.chips button{font-size:12px}.bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.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 h3{margin:14px 0 9px;font-size:18px}.bank-card .task-condition{font-size:13px;line-height:1.85;padding-bottom:12px}.bank-card .task-diagram{max-width:310px;margin:10px auto 15px}.bank-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted);margin-top:15px}.bank-card .math{font-size:22px;margin:12px 0}.empty-state{padding:40px;color:var(--muted);background:#fff;border-radius:18px;grid-column:1/-1;text-align:center}
.site-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e0d5eb;padding:23px 0;margin-top:44px;color:var(--muted);font-size:10px}.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:20;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}.presenting .site-header,.presenting .course-intro,.presenting .topics,.presenting .lesson-plan,.presenting .site-footer{display:none}.presenting .workspace{display:block;width:min(1500px,calc(100% - 70px));padding-top:28px}.presenting .board-top h2{font-size:30px}.presenting .board-inner{min-height:65vh}.presenting .task-condition{font-size:21px}.presenting .teacher-note,.presenting .source-footnote{display:none}.presenting .stage-footer{padding-bottom:55px}#exit-present{position:fixed;bottom:15px;right:20px;z-index:15;box-shadow:0 3px 20px #35205215}.embedded{background:#fff}.embedded .site-header,.embedded .course-intro,.embedded .topics,.embedded .lesson-plan,.embedded .site-footer{display:none}.embedded .workspace{display:block;width:calc(100% - 32px);padding-top:20px}.embedded .teacher-note,.embedded .source-footnote{display:none}.embedded .stage-footer{padding-bottom:10px}
.copying{width:900px!important;max-width:none!important;padding:38px!important;border:0!important;border-radius:23px!important;background:#faf5ff!important;box-shadow:none!important}.copying .board-inner{padding:0!important;min-height:0}.copying .task-condition{font-size:22px!important;line-height:1.85;padding:16px 0 12px}.copying .source-label{font-size:13px}.copying .source-label strong{font-size:17px}.copying .task-diagram{max-width:620px}.copying .theory-grid{grid-template-columns:1fr 1fr!important}.copying .theory-intro{font-size:19px}.copying .theory-block,.copying .theory-example{font-size:16px}.copying .task-condition table{font-size:17px}.copy-brand{color:var(--violet);font-size:13px;margin-top:20px;font-weight:650}noscript{display:block;padding:20px;text-align:center;color:#69448d}
@media(max-width:1250px){.shell{width:calc(100% - 44px)}.workspace{grid-template-columns:185px minmax(0,1fr);gap:22px}.brand-caption,.brand-divider{display:none}.board-inner{padding:27px}.course-number{font-size:55px}.theory-grid{grid-template-columns:1fr}.grid-controls{gap:11px}.grid-controls .button:first-of-type{margin-left:0}}
@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:25px 22px}.course-number{display:none}h1{font-size:32px}.intro-note{font-size:12px;line-height:1.8}.eyebrow{font-size:9px}.topics{gap:8px;margin-bottom:20px}.topic,.hour,.topics>button{padding:12px 10px;min-height:76px;gap:9px;align-items:start}.topic .topic-num,.hour-num,.topic-number{width:30px;height:30px;border-radius:10px;font-size:13px}.topics strong{font-size:12px}.topics small{font-size:9px}.workspace{display:block}.lesson-plan{display:flex;gap:5px;overflow-x:auto;margin-bottom:20px;padding:0 0 5px;position:static}.plan-label,.plan-note{display:none}.segment{min-width:150px;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{border-radius:19px}.board-inner{padding:22px 18px}.board-description{font-size:12px}.task-top{align-items:start;flex-wrap:wrap;gap:12px;margin-bottom:19px}.source-label{font-size:10px}.source-label strong{font-size:12px}.task-top .button{font-size:11px;padding:8px 11px;min-height:38px}.variants{gap:5px;margin-bottom:20px}.variants button{padding:7px 9px;font-size:10px}.task-condition{font-size:14px;line-height:1.85;padding-bottom:17px}.task-condition table,.theory-block table,.theory-example table{font-size:11px}.task-condition th,.task-condition td,.theory-block th,.theory-block td,.theory-example th,.theory-example td{padding:7px 4px}.task-diagram{margin:10px auto 22px}.task-actions{align-items:start}.task-actions .button{font-size:11px;padding:9px 12px}.task-actions>small{width:100%}.step{padding:12px;gap:9px;font-size:12px}.step .math{font-size:18px}.step-num{height:23px}.answer-panel{font-size:18px;padding:14px 16px}.teacher-note{font-size:11px;padding:13px 14px}.theory-intro{font-size:14px}.theory-grid{gap:12px}.theory-block{padding:17px;font-size:13px}.theory-block h3{font-size:15px}.theory-example{padding:17px;font-size:13px}.theory-actions .button{font-size:11px;padding:9px 12px}.grid-controls{padding:14px;gap:11px;align-items:end}.grid-controls label{font-size:10px}.grid-controls select,.grid-controls input[type=number]{max-width:140px;font-size:12px}.grid-controls input[type=range]{width:115px}.grid-controls .button{font-size:11px;flex:1}.grid-paper{border-radius:8px}.grid-caption{font-size:10px}.stage-footer{align-items:start}.stage-footer>span{font-size:9px;max-width:100px}.stage-footer .button{padding:9px 12px;font-size:12px}.bank-grid{grid-template-columns:1fr}.section-heading{align-items:start;flex-direction:column;gap:19px}.search-label{width:100%}.bank-card{padding:20px}.bank-card-bottom{align-items:start}.bank-card-bottom .button{flex-shrink:0}.bank-card .math{font-size:21px}.site-footer{margin-top:31px;font-size:9px}.site-footer span:last-child{display:none}.presenting .workspace{width:calc(100% - 24px);padding-top:17px}.presenting .board-top h2{font-size:25px}.presenting .task-condition{font-size:16px}.presenting .board-inner{min-height:65vh}.steps-controls{flex-wrap:wrap}.copying .task-condition{padding-inline:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.task-counter{display:flex;align-items:center;gap:12px;margin-right:auto;font-size:11px;color:var(--muted);white-space:nowrap}.task-counter .icon-button{width:38px;min-width:38px;height:38px;font-size:17px}.steps-controls{justify-content:flex-start;flex-wrap:wrap;margin-bottom:16px}.steps-controls small{margin-left:auto;white-space:nowrap}.copy-label{margin:0 0 18px;color:var(--violet);font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.03em}.grid-controls .check-label{flex-direction:row;align-items:center;gap:8px;min-height:42px}.grid-paper canvas{max-width:100%;height:auto}.topic>span:last-child,.segment>span:last-child,.task-top>div,.original-condition,.theory-intro,.theory-example,.answer-value{min-width:0}.task-top>div{overflow-wrap:anywhere}.task-condition .katex,.step .katex,.theory-intro .katex,.theory-block .katex,.theory-example .katex,.answer-value .katex{display:inline-block;max-width:none;vertical-align:middle;overflow:visible;padding-block:.18em}.katex-display{display:block;width:100%;max-width:100%;overflow:visible;padding-block:.18em;white-space:normal}.katex-display>.katex{display:inline-block;max-width:none}.formula{width:100%;max-width:100%;overflow:visible;padding:10px 2px;margin:12px 0 16px;font-size:18px;line-height:1.7;text-align:center}.formula>.katex{display:inline-block;max-width:none}.table-scroll{min-width:0}.copying>h2{margin-bottom:22px}.copying .table-scroll{overflow:visible;max-width:none}.copying .table-scroll table{width:100%;min-width:0;table-layout:fixed}.copying .table-scroll th,.copying .table-scroll td{overflow-wrap:anywhere}.copying .theory-block table{font-size:14px}.copying .formula{font-size:18px}.copying .task-condition .formula{font-size:20px}
@media(max-width:760px){.task-counter{gap:10px}.steps-controls{gap:6px 11px}.steps-controls .button{font-size:11px;padding:8px 11px}.steps-controls .text-button{font-size:11px}.steps-controls small{font-size:10px}.formula{font-size:16px}.copying .formula{font-size:18px}}
