*{box-sizing:border-box}:root{--bg:#f6f7fb;--panel:#ffffff;--ink:#172033;--muted:#6c7487;--line:#e7e9f0;--purple:#7357ff;--purple-dark:#5f43e9;--purple-soft:#f0edff;--green:#2fbf71;--editor:#151823;--editor-2:#1e2230;--terminal:#10131b;--shadow:0 16px 50px rgba(38,46,75,0.08)}body,html{margin:0;min-height:100%;background:radial-gradient(circle at 15% 0,rgba(115,87,255,.08),transparent 25rem),var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}button{font:inherit;cursor:pointer}.shell{min-height:100vh}.topbar{min-height:104px;padding:8px 24px;display:grid;grid-template-columns:minmax(220px,32%) minmax(280px,1fr) auto;grid-template-areas:"brand progress actions";align-items:center;gap:clamp(12px,1.5vw,22px);position:sticky;top:0;z-index:20;border-bottom:1px solid #dcebf5;background:linear-gradient(180deg,#eaf8ff,#f7fbff 62%,#ffffff);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brandVisual{grid-area:brand;height:84px;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:flex-start;border-radius:18px}.brandVisualImg{display:block;width:clamp(180px,100%,420px);height:100%;object-fit:contain;object-position:left center}.progressWrap{grid-area:progress;width:100%;min-width:0;padding:11px 14px 10px;border:1px solid rgba(199,220,238,.92);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 24px rgba(72,112,145,.08);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.progressMeta{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:#66758d;font-size:12px;font-weight:800}.progressMeta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progressMeta b{color:var(--purple);flex:0 0 auto}.progressTrack{height:8px;border-radius:999px;overflow:hidden;background:#e8edf6}.progressTrack i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7357ff,#9a87ff);transition:width .35s ease}.topActions{grid-area:actions;justify-self:end;display:flex;align-items:center;gap:9px}.channelBadge,.courseMapLink{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 14px;border:1px solid rgba(203,220,235,.95);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 8px 22px rgba(72,112,145,.07);color:#213255;font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.channelBadge{color:#263b68}.courseMapLink:hover{border-color:#bfb4ff;color:var(--purple-dark)}.xpBadge{min-width:76px;min-height:54px;padding:0 12px;display:grid;place-items:center;border-radius:18px;background:rgba(255,249,224,.94);color:#8b6400;font-size:13px;font-weight:900;border:1px solid #f2db85;box-shadow:0 8px 22px rgba(160,123,24,.08);white-space:nowrap}@media (max-width:1100px){.topbar{grid-template-columns:minmax(220px,1fr) auto;grid-template-areas:"brand actions" "progress progress";min-height:154px;padding:8px 18px 12px}.brandVisual{height:78px}.topActions{justify-self:end}}@media (max-width:680px){.topbar{grid-template-columns:1fr;grid-template-areas:"brand" "progress" "actions";min-height:0;padding:10px 12px 12px;gap:9px}.brandVisual{height:clamp(64px,22vw,84px);width:100%;max-width:430px;border-radius:15px}.brandVisualImg{width:min(100%,420px);object-fit:contain;object-position:left center}.topActions{justify-self:stretch;justify-content:flex-start;gap:6px;flex-wrap:wrap}.channelBadge,.topbar .courseMapLink,.xpBadge{display:inline-flex;min-height:42px;padding:0 10px;border-radius:14px;font-size:12px}}.workspace{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(560px,1.28fr);min-height:calc(100vh - 104px)}.lessonPane{padding:52px clamp(28px,4vw,72px);border-right:1px solid var(--line);background:rgba(255,255,255,.68);display:flex;flex-direction:column}.chapterPill{align-self:flex-start;padding:8px 12px;border-radius:999px;background:var(--purple-soft);color:var(--purple-dark);font-size:13px;font-weight:800}.lessonPane h1{margin:22px 0 14px;font-size:clamp(38px,4vw,58px);line-height:1.04;letter-spacing:-.045em}.story{max-width:510px;margin:0 0 28px;color:var(--muted);font-size:17px;line-height:1.8}.knowledgeCard,.missionCard{display:flex;gap:16px;border-radius:20px;padding:20px}.missionCard{background:linear-gradient(145deg,#191c2a,#23283a);color:white;box-shadow:var(--shadow)}.knowledgeCard>span,.missionIcon{font-size:25px;line-height:1}.knowledgeCard b,.missionCard b{display:block;margin-bottom:8px;font-size:15px}.knowledgeCard p,.missionCard p{margin:0 0 10px;line-height:1.6}.missionCard p{color:#b8bfd2;font-size:13px}.missionCard code{display:inline-block;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.09);color:#bdffcf;font-family:SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.knowledgeCard{margin-top:16px;background:#fff;border:1px solid var(--line)}.knowledgeCard p{color:var(--muted);font-size:14px}.knowledgeCard code,.practiceCard code{color:var(--purple-dark);font-family:SFMono-Regular,Consolas,monospace}.practiceCard code{white-space:pre-wrap}.lessonFooter{margin-top:auto;padding-top:30px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.lessonFooter button{border:0;background:transparent;color:var(--purple-dark);font-weight:700}.playPane{padding:34px clamp(24px,3.6vw,58px) 50px;display:flex;flex-direction:column;gap:16px}.editorCard,.practiceCard,.successCard,.terminalCard,.tutorCard{border-radius:20px;box-shadow:var(--shadow)}.editorCard{overflow:hidden;background:var(--editor);border:1px solid #2a3041}.editorTop{height:48px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:var(--editor-2);border-bottom:1px solid #2c3142}.fileTab{color:#c9cede;font-size:13px;font-family:SFMono-Regular,Consolas,monospace}.fileTab span{color:#6ee7a0;margin-right:8px}.engine{display:flex;align-items:center;gap:7px;color:#7f879c;font-size:11px}.engine i{width:7px;height:7px;border-radius:50%;background:#f1b94c;box-shadow:0 0 0 4px rgba(241,185,76,.08)}.engine.ready{color:#9fb8a8}.engine.ready i{background:#3bd980;box-shadow:0 0 0 4px rgba(59,217,128,.08)}.runBar{min-height:62px;padding:10px 14px 10px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #292f3e;background:#191d29;color:#757e94;font-size:11px}.runButton{border:0;border-radius:12px;padding:11px 18px;background:linear-gradient(135deg,#8067ff,#6547ed);color:white;font-weight:800;box-shadow:0 8px 22px rgba(108,78,239,.28)}.runButton:disabled{cursor:wait;opacity:.62}.terminalCard{overflow:hidden;background:var(--terminal);border:1px solid #242938}.terminalHead{height:38px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#7f8799;border-bottom:1px solid #232836;font-size:11px}.terminalHead b{color:#5ee096}.terminalCard pre{min-height:74px;margin:0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;color:#d4f9df;font:13px/1.6 SFMono-Regular,Consolas,monospace}.terminalCard pre:empty:before{content:" "}.terminalCard .errorOutput{color:#ff9f9f}.successCard{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:18px 20px;background:linear-gradient(135deg,#ecfff3,#f8fff9);border:1px solid #bfe8cd}.successBurst{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#2fbf71;color:white;font-weight:900;font-size:13px}.successCard b{font-size:16px}.successCard p{margin:5px 0 0;color:#5f7467;font-size:13px}.nextLessonLink,.practiceCard button,.successCard button{border:0;border-radius:11px;padding:10px 14px;color:white;background:#252a3a;font-weight:800;text-decoration:none}.successActions{display:flex;align-items:center;gap:8px}.nextLessonLink{background:var(--purple);white-space:nowrap}.practiceCard{display:grid;grid-template-columns:1fr auto;gap:8px 20px;align-items:center;padding:18px 20px;background:#fff;border:1px solid var(--line)}.practiceCard span{grid-column:1/-1;color:var(--purple-dark);font-size:12px;font-weight:800}.practiceCard b{font-size:16px}.practiceCard p{margin:0;color:var(--muted);font-size:13px}.practiceCard button{grid-column:2;grid-row:2/4}.tutorCard{display:grid;grid-template-columns:54px 1fr;gap:14px;padding:18px;background:#fff;border:1px solid var(--line)}.tutorAvatar{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#f2efff,#e7e2ff);font-size:28px}.tutorTitle{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tutorTitle div{display:flex;flex-direction:column;gap:2px}.tutorTitle b{font-size:14px}.tutorTitle span{color:var(--muted);font-size:11px}.tutorTitle em{padding:5px 8px;border-radius:999px;color:var(--purple-dark);background:var(--purple-soft);font-style:normal;font-size:10px;font-weight:800}.tutorMessage{margin-top:12px;color:#394154;font-size:14px;line-height:1.7}.hintCode{margin:10px 0 0;padding:12px 14px;border-radius:12px;background:#181c28;color:#c9ffd9;font:13px/1.5 SFMono-Regular,Consolas,monospace}.tutorActions{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}.tutorActions button{border:1px solid #e3e5eb;border-radius:10px;padding:8px 11px;background:#f8f9fb;color:#495166;font-size:12px;font-weight:700}.tutorActions button:hover{border-color:#c9c1ff;color:var(--purple-dark)}.tutorActions .primaryAction{color:white;border-color:var(--purple);background:var(--purple)}.tutorActions button:disabled{opacity:.5;cursor:wait}@media (max-width:980px){.workspace{grid-template-columns:1fr}.lessonPane{padding:34px 24px;border-right:0;border-bottom:1px solid var(--line)}.lessonPane h1{font-size:40px}.lessonFooter{margin-top:20px}.playPane{padding:24px 18px 40px}}@media (max-width:620px){.successCard{grid-template-columns:auto 1fr}.successActions{grid-column:1/-1;width:100%}.nextLessonLink,.successActions button{flex:1 1;text-align:center}.practiceCard{grid-template-columns:1fr}.practiceCard button{grid-column:auto;grid-row:auto}.tutorCard{grid-template-columns:1fr}.tutorAvatar{width:46px;height:46px}.runBar{align-items:flex-end;flex-direction:column}.runButton{width:100%}}.pronunciationCard{margin-top:16px;padding:18px 20px;border-radius:20px;background:linear-gradient(145deg,#f3f7ff,#ffffff);border:1px solid #dfe6f5;box-shadow:0 12px 34px rgba(54,76,120,.06)}.pronunciationHead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.pronunciationHead span{font-size:13px;font-weight:900;color:#3453a4}.pronunciationHead em{font-style:normal;font-size:10px;font-weight:800;color:#6e7a99;background:#eef2fb;border-radius:999px;padding:5px 8px}.termLine{display:flex;align-items:baseline;gap:14px;margin-bottom:12px}.termLine code{font:800 23px/1.2 SFMono-Regular,Consolas,monospace;color:#5f43e9}.termLine strong{font:700 14px/1.2 SFMono-Regular,Consolas,monospace;color:#44506a}.pronunciationCard p{margin:6px 0;color:#566078;font-size:13px;line-height:1.6}.pronunciationCard p b{color:#30384b}.termExample{margin-left:6px;padding:3px 7px;border-radius:7px;background:#eef1fb;color:#4f46c9;font-family:SFMono-Regular,Consolas,monospace}.speechActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.speechActions button{border:1px solid #d9e0ef;border-radius:10px;padding:8px 11px;background:#ffffff;color:#405071;font-size:12px;font-weight:800}.speechActions button:hover{border-color:#9683ff;color:#5f43e9}.speechActions .explainVoice{background:#eef2ff;border-color:#d5dcff;color:#4f46c9}.speechActions .followReadVoice{background:#eefbf3;border-color:#ccebd7;color:#25784a}.speechActions button:disabled{opacity:.55;cursor:wait}.speechStatus{margin-top:10px;color:#7c8497;font-size:11px;line-height:1.5}.pronunciationFeedback{display:grid;gap:3px;margin-top:9px;padding:10px 11px;border-radius:10px;font-size:11px}.pronunciationFeedback b,.pronunciationFeedback span{display:block}.pronunciationFeedback.good{background:#eefbf3;color:#25784a}.pronunciationFeedback.retry{background:#fff7e8;color:#8b6400}.editorBody{display:block;min-height:236px}.editorBody .cm-editor{min-height:236px;background:#151823;color:#f1f4ff;font-size:15px}.editorBody .cm-scroller{min-height:236px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;line-height:1.8}.editorBody .cm-gutters{background:#151823;color:#596074;border-right:1px solid #252a39}.editorBody .cm-activeLine,.editorBody .cm-activeLineGutter{background:rgba(255,255,255,.035)}.editorBody .cm-content{padding:16px 0}.editorBody .cm-focused{outline:none}.editorBody .cm-line{padding-left:10px}.courseShell{min-height:100vh;padding:42px clamp(18px,5vw,72px) 56px;background:radial-gradient(circle at 82% 0,rgba(115,87,255,.14),transparent 28rem),var(--bg)}.courseHero{max-width:1040px;margin:0 auto 34px}.courseBrand{display:flex;align-items:center;gap:12px;margin-bottom:50px}.courseBrandLogo{width:250px;max-height:84px}.courseBrand>div{display:flex;flex-direction:column;gap:2px}.courseBrand strong{font-size:18px}.courseBrand span:last-child{color:var(--muted);font-size:12px}.courseHeroCopy{max-width:720px}.courseHeroCopy h1{margin:18px 0 12px;font-size:clamp(40px,5vw,68px);line-height:1;letter-spacing:-.05em}.courseHeroCopy p{max-width:650px;margin:0;color:var(--muted);font-size:16px;line-height:1.8}.courseStats{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));max-width:620px;margin-top:28px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.78)}.courseStats div{padding:16px 18px}.courseStats div+div{border-left:1px solid var(--line)}.courseStats b,.courseStats span{display:block}.courseStats b{font-size:22px}.courseStats span{margin-top:3px;color:var(--muted);font-size:11px}.courseMap{position:relative;max-width:940px;margin:0 auto;padding:12px 0}.coursePath{position:absolute;top:0;bottom:0;left:35px;width:2px;background:linear-gradient(#9b8aff,#dfe2eb)}.courseNodeLink{position:relative;display:block;margin-bottom:18px;color:inherit;text-decoration:none}.courseNode{position:relative;display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:18px;min-height:150px;padding:24px 26px 24px 0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease}.courseNodeLink[href]:hover .courseNode{transform:translateY(-2px);box-shadow:0 20px 55px rgba(38,46,75,.13)}.nodeNumber{position:relative;z-index:2;display:grid;place-items:center;width:54px;height:54px;margin-left:8px;border-radius:18px;background:var(--purple-soft);color:var(--purple-dark);font-size:19px;font-weight:900}.courseNode.done .nodeNumber{background:#e8fff0;color:#178d4e}.courseNode.locked{opacity:.58;box-shadow:none}.courseNode.locked .nodeNumber{background:#f1f2f5}.nodeCopy>span{color:var(--purple-dark);font-size:11px;font-weight:900}.nodeCopy h2{margin:6px 0 7px;font-size:22px;letter-spacing:-.025em}.nodeCopy p{max-width:600px;margin:0;color:var(--muted);font-size:13px;line-height:1.65}.nodeMeta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.nodeMeta em{padding:5px 8px;border-radius:999px;background:#f5f6f9;color:#747d91;font-size:10px;font-style:normal;font-weight:800}.nodeAction{padding:9px 11px;color:var(--purple-dark);font-size:12px;font-weight:900;white-space:nowrap}.courseNode.locked .nodeAction{color:#969dae}.courseFooter{max-width:940px;margin:24px auto 0;display:flex;justify-content:space-between;gap:18px;color:var(--muted);font-size:12px}.courseFooter a{color:var(--purple-dark);font-weight:900;text-decoration:none}@media (max-width:720px){.courseShell{padding:26px 16px 40px}.courseBrand{margin-bottom:34px}.courseStats{grid-template-columns:repeat(3,1fr)}.courseStats div{padding:13px 10px}.courseNode{grid-template-columns:54px 1fr;padding:18px 16px 18px 0}.nodeNumber{width:44px;height:44px;margin-left:6px;border-radius:14px}.nodeAction{grid-column:2;padding:0}.courseFooter{flex-direction:column}}.courseFooterLinks{display:flex;flex-wrap:wrap;gap:16px}.parentShell{min-height:100vh;padding:36px clamp(18px,5vw,72px) 64px;background:radial-gradient(circle at 85% 0,rgba(115,87,255,.13),transparent 30rem),var(--bg)}.masterySection,.parentGrid,.parentHero,.parentStats{max-width:1080px;margin-left:auto;margin-right:auto}.parentNav{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:46px}.masteryHead a,.parentNav a{color:var(--purple-dark);font-size:12px;font-weight:900;text-decoration:none}.parentHero h1{max-width:780px;margin:18px 0 14px;font-size:clamp(42px,5.5vw,72px);line-height:1;letter-spacing:-.055em}.parentHero>p{max-width:760px;margin:0;color:var(--muted);font-size:16px;line-height:1.8}.profileNote{display:inline-block;margin-top:18px;padding:9px 12px;border:1px solid #e1ddff;border-radius:12px;background:#f5f2ff;color:#6254a8;font-size:11px;line-height:1.5}.parentStats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:30px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:white;box-shadow:var(--shadow)}.parentStats article{padding:21px}.parentStats article+article{border-left:1px solid var(--line)}.parentStats b,.parentStats span{display:block}.parentStats b{font-size:26px}.parentStats span{margin-top:4px;color:var(--muted);font-size:11px}.parentGrid{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;margin-top:18px}.parentPanel{padding:24px;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:var(--shadow)}.masteryHead,.parentPanelHead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.masteryHead span,.parentConcepts>span,.parentPanelHead span{color:var(--purple-dark);font-size:11px;font-weight:900}.masteryHead h2,.parentPanel h2{margin:5px 0 0;font-size:22px}.parentPanelHead>b{color:#687189;font-size:11px}.focusList{display:grid;gap:9px;margin-top:18px}.focusItem{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border-radius:14px;background:#f7f7fb;color:inherit;text-decoration:none}.focusItem div,.focusItem span,.focusItem strong{display:block}.focusItem strong{font-size:13px}.focusItem span{margin-top:3px;color:var(--muted);font-size:11px}.focusItem em{color:#8a6200;font-size:11px;font-style:normal;font-weight:900;white-space:nowrap}.parentEmpty{margin-top:18px;padding:18px;border-radius:14px;background:#f6fbf8;color:#44715a;font-size:13px}.mistakeSummary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}.mistakeSummary div{padding:12px;border:1px solid var(--line);border-radius:12px}.mistakeSummary b,.mistakeSummary span{display:block}.mistakeSummary b{font-size:18px}.mistakeSummary span{margin-top:3px;color:var(--muted);font-size:9px}.parentConcepts>div{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.parentConcepts b{font-size:12px}.parentConcepts p{margin:7px 0 0;color:#4d566b;font-size:13px;line-height:1.7}.parentConcepts small{display:block;margin-top:22px;color:var(--muted);font-size:10px;line-height:1.7}.masterySection{margin-top:20px;padding:24px;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:var(--shadow)}.masteryList{display:grid;gap:8px;margin-top:18px}.masteryRow{display:grid;grid-template-columns:40px minmax(0,1fr) 190px;align-items:center;gap:14px;padding:13px;border-radius:14px;background:#f8f9fb}.masteryIndex{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#ece9ff;color:var(--purple-dark);font-size:12px;font-weight:900}.masteryCopy b,.masteryCopy small,.masteryCopy span,.masterySignal b,.masterySignal small{display:block}.masteryCopy span{color:var(--purple-dark);font-size:9px;font-weight:900}.masteryCopy b{margin-top:2px;font-size:13px}.masteryCopy small,.masterySignal small{margin-top:4px;color:var(--muted);font-size:9px}.masterySignal b{font-size:11px;text-align:right}.masteryTrack{height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:#e7e9ef}.masteryTrack i{display:block;height:100%;border-radius:inherit;background:#8170ee}.masteryRow.stable .masteryTrack i{background:#35af6c}.masteryRow.review .masteryTrack i{background:#e0a534}.masteryRow.practicing .masteryTrack i{background:#7f72db}.masteryLoading,.parentLoading{max-width:720px;margin:120px auto;color:var(--muted);text-align:center}@media (max-width:760px){.parentShell{padding:24px 14px 44px}.parentNav{margin-bottom:34px}.parentStats{grid-template-columns:repeat(2,1fr)}.parentStats article:nth-child(3){border-left:0;border-top:1px solid var(--line)}.parentStats article:nth-child(4){border-top:1px solid var(--line)}.parentGrid{grid-template-columns:1fr}.mistakeSummary{grid-template-columns:repeat(2,1fr)}.masteryRow{grid-template-columns:36px 1fr}.masterySignal{grid-column:2}.masterySignal b{text-align:left}.courseFooterLinks{flex-direction:column;gap:8px}}