:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#18212f;--surface:#fff;--surface-soft:#f5f7fb;--surface-strong:#edf8f7;--border:#dce3ed;--text-muted:#667085;--accent:#1b7f79;--accent-dark:#133f5c;--shadow:0 16px 38px #0f172a14;background:#f5f7fb;font-family:Inter,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html,body{min-width:320px;min-height:100%;margin:0}body{background:#f5f7fb;line-height:1.5;overflow-x:hidden}button,textarea,select{font:inherit}.app-shell{grid-template-columns:320px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:24px;height:100dvh;padding:24px;display:flex;position:sticky;top:0;overflow:hidden}.brand{grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;display:grid}.brand-mark{background:var(--accent-dark);color:#fff;border-radius:8px;place-items:center;width:48px;height:48px;font-size:.85rem;font-weight:900;display:grid}.brand p{margin:0;font-size:1.08rem;font-weight:800}.brand span{color:var(--text-muted);margin-top:4px;font-size:.82rem;display:block}.progress-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:10px;padding:16px;display:grid}.progress-label{color:#344054;font-size:.88rem;font-weight:800}.progress-bar-wrap{background:#edf1f6;border-radius:999px;width:100%;height:8px;overflow:hidden}.progress-bar{border-radius:inherit;background:var(--accent);width:0;height:100%;transition:width .2s}.progress-value{color:var(--text-muted);font-size:.82rem}.mobile-lesson-picker{display:none}.lesson-list{overscroll-behavior:contain;scrollbar-color:#66708573 transparent;scrollbar-gutter:stable;scrollbar-width:thin;flex:1;gap:8px;min-height:0;margin-right:-14px;padding-right:14px;display:grid;overflow-y:auto}.lesson-list::-webkit-scrollbar{width:8px}.lesson-list::-webkit-scrollbar-track{background:0 0}.lesson-list::-webkit-scrollbar-thumb{background:#6670856b;border:2px solid #fff;border-radius:999px}.lesson-card{color:#344054;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:66px;padding:10px;transition:background .16s,border-color .16s;display:grid}.lesson-card:hover{background:var(--surface-soft)}.lesson-card.active{background:var(--surface-strong);color:#153f3c;border-color:#96c9c5}.lesson-number{color:#475467;background:#eef2f6;border-radius:8px;place-items:center;width:36px;height:36px;font-size:.82rem;font-weight:900;display:grid}.lesson-card.active .lesson-number{background:var(--accent);color:#fff}.lesson-copy{gap:6px;min-width:0;display:grid}.lesson-card h3{color:inherit;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.9rem;line-height:1.35;overflow:hidden}.lesson-card p{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.78rem;line-height:1.45;overflow:hidden}.lesson-details{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.lesson-status{width:max-content;color:var(--accent);background:#1b7f791a;border-radius:999px;flex:none;padding:3px 8px;font-size:.74rem;font-weight:800}.workspace{min-width:0;padding:32px}.lesson-detail-panel{min-width:0}.lesson-header{border-bottom:1px solid var(--border);padding-bottom:24px}.eyebrow{color:var(--accent);margin-bottom:10px;font-size:.82rem;font-weight:900;display:inline-flex}.lesson-header h2{color:#18212f;margin:0;font-size:2.1rem;line-height:1.15}.study-tabs{flex-wrap:wrap;gap:8px;margin:24px 0 0;display:flex}.study-tab{color:#475467;cursor:pointer;background:#fff;border:1px solid #cfd8e3;border-radius:8px;min-width:84px;min-height:40px;font-weight:800}.study-tab.active{border-color:var(--accent-dark);background:var(--accent-dark);color:#fff}.lesson-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:24px;display:grid}.lesson-section{border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:0;padding:22px}.lesson-section h3{color:var(--accent-dark);margin:0 0 12px;font-size:1.12rem}.lesson-section p{color:#475467;margin:0;line-height:1.7}.lesson-summary{font-weight:800}.core-explanation{color:#344054;gap:12px;margin:16px 0 0;padding-left:20px;line-height:1.75;display:grid}.core-explanation li{padding-left:4px}.value-reference{border-top:1px solid var(--border);margin-top:18px;padding-top:18px}.value-reference h4{color:var(--accent-dark);margin:0 0 12px;font-size:1rem}.value-reference dl{gap:12px;margin:0;display:grid}.value-reference-group{background:#f8fafc;border-radius:8px;gap:6px;padding:12px;display:grid}.value-reference dt{color:#18212f;font-weight:900}.value-reference dd{margin:0}.value-reference ul{color:#344054;gap:6px;margin:0;padding-left:18px;line-height:1.6;display:grid}.lesson-section:first-child,.lesson-section:nth-child(2),.exercise-card,.empty-state{grid-column:1/-1}.example-frame{border:1px solid var(--border);background:#fff;border-radius:8px;overflow:hidden}.example-preview{border:0;width:100%;min-height:190px;display:block}.code-block{color:#edf4ff;tab-size:2;white-space:pre;background:#101828;border:1px solid #263344;border-radius:8px;max-width:100%;margin:14px 0 0;padding:16px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.88rem;line-height:1.65;overflow-x:auto}.code-block code,.practice-code-editor{tab-size:2;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.88rem;line-height:1.65}.syntax-comment{color:#8996a9}.syntax-tag,.syntax-selector{color:#78d6ff}.syntax-attr,.syntax-property{color:#8dd6a5}.syntax-string{color:#ffd479}.syntax-atrule,.syntax-keyword,.syntax-important{color:#c7a8ff}.syntax-number,.syntax-variable{color:#ff9da4}.syntax-function{color:#82e6d9}.syntax-punctuation{color:#b9c6d8}.exercise-card{gap:14px;display:grid}.exercise-card ul{color:#344054;gap:10px;margin:0;padding-left:20px;line-height:1.65;display:grid}.exercise-card li{margin:0}.review-card{gap:16px;display:grid}.review-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.review-list li{border-left:4px solid var(--accent);color:#344054;padding-left:12px;line-height:1.65}.button-row{flex-wrap:wrap;gap:10px;display:flex}.solution-panel{gap:12px;padding-top:4px;display:grid}.solution-panel[hidden]{display:none}.solution-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.solution-header h4{color:var(--accent-dark);margin:0;font-size:1rem}.exercise-solutions{color:#344054;gap:12px;margin:0;padding-left:20px;line-height:1.65;display:grid}.exercise-solutions li{padding-left:4px}.exercise-solutions strong{color:#18212f;display:block}.exercise-solutions p{margin:4px 0 0}.solution-code-title{color:var(--accent-dark);margin:4px 0 -6px;font-size:.95rem}.practice-workspace{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);align-items:stretch;gap:16px;display:grid}.practice-editor-wrap,.practice-preview-wrap{gap:8px;min-width:0;display:grid}.practice-editor-wrap span,.practice-preview-wrap span{color:#344054;font-size:.82rem;font-weight:900}.code-editor-shell{background:#101828;border:1px solid #263344;border-radius:8px;outline:none;width:100%;min-height:260px;position:relative;overflow:hidden}.code-editor-shell:focus-within{border-color:#51b7b0;box-shadow:0 0 0 3px #1b7f792e}.practice-code-editor{resize:vertical;color:#edf4ff;font-variant-ligatures:none;white-space:pre-wrap;overflow-wrap:break-word;caret-color:#edf4ff;background:0 0;outline:none;width:100%;min-height:260px;margin:0;padding:16px;display:block;overflow:auto}.practice-code-editor::selection{background:#51b7b047}.practice-code-editor ::selection{background:#51b7b047}.practice-preview{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;min-height:260px;display:block}.complete-button,.secondary-button{background:var(--accent-dark);color:#fff;cursor:pointer;border:none;border-radius:8px;width:max-content;min-height:44px;padding:10px 16px;font-weight:800}.secondary-button{color:#344054;background:#fff;border:1px solid #cfd8e3}.complete-button.completed{color:#475467;cursor:default;background:#e2e8f0}.empty-state{border:1px dashed var(--border);background:var(--surface);color:var(--text-muted);text-align:center;border-radius:8px;padding:56px 20px}@media (width<=980px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:10;border-right:0;border-bottom:1px solid var(--border);gap:14px;height:auto;padding:18px 16px 14px;position:sticky;top:0}.brand{grid-template-columns:44px minmax(0,1fr)}.brand-mark{width:44px;height:44px}.progress-panel{padding:12px}.mobile-lesson-picker{color:#344054;gap:8px;font-size:.86rem;font-weight:900;display:grid}.mobile-lesson-picker select{background:var(--surface-strong);color:#153f3c;border:1px solid #96c9c5;border-radius:8px;width:100%;min-height:46px;padding:0 12px;font-weight:800}.lesson-list{display:none}.workspace{padding:24px 16px}}@media (width<=720px){body{font-size:17px}.sidebar{padding-left:max(16px, env(safe-area-inset-left));padding-right:max(16px, env(safe-area-inset-right));position:static}.workspace{padding:20px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left))}.brand p{font-size:1.18rem}.brand span,.progress-value{font-size:.88rem}.lesson-header{padding-bottom:20px}.lesson-header h2{font-size:1.85rem}.study-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px;display:grid}.study-tab{min-width:0;min-height:48px}.lesson-content{grid-template-columns:1fr;gap:16px;padding-top:20px}.lesson-section{padding:18px}.lesson-section h3{font-size:1.1rem}.example-preview{min-height:170px}.code-block{padding:14px;font-size:.82rem;line-height:1.6}.complete-button{width:100%}.button-row,.practice-workspace{grid-template-columns:1fr}.button-row{display:grid}.practice-code-editor,.practice-preview{min-height:240px}.empty-state{padding:36px 16px}}
