.lesson-page{background:#f8fafc;min-height:100vh}.lesson-header{background:linear-gradient(135deg,#eef2ff,#f0f9ff);padding:35px 20px}.back-link{color:#4f46e5;max-width:1000px;margin:0 auto 25px;font-size:14px;font-weight:700;display:inline-block}.lesson-title{align-items:center;gap:18px;max-width:1000px;margin:auto;display:flex}.lesson-title>span{background:#fff;border-radius:20px;justify-content:center;align-items:center;width:75px;height:75px;font-size:38px;display:flex;box-shadow:0 8px 25px #0f172a12}.lesson-title p{color:#64748b;margin-bottom:2px;font-size:13px}.lesson-title h1{color:#172033;font-size:35px}.lesson-content{max-width:900px;margin:auto;padding:55px 20px 80px}.lesson-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:35px;box-shadow:0 12px 35px #0f172a0f}.lesson-step{color:#4f46e5;background:#eef2ff;border-radius:20px;margin-bottom:15px;padding:6px 12px;font-size:12px;font-weight:700;display:inline-block}.lesson-card h2{color:#1e293b;margin-bottom:15px;font-size:28px}.lesson-explanation{color:#475569;margin-bottom:30px;font-size:17px;line-height:1.8}.code-box{background:#111827;border-radius:15px;margin-bottom:20px;overflow:hidden}.code-header{color:#cbd5e1;background:#1f2937;padding:11px 16px;font-size:13px;font-weight:700}.code-box pre{color:#e2e8f0;padding:22px;font-family:Consolas,Courier New,monospace;font-size:15px;line-height:1.7;overflow-x:auto}.output-box{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:15px;margin-bottom:30px;overflow:hidden}.output-box>div{color:#334155;background:#e2e8f0;padding:10px 15px;font-size:12px;font-weight:700}.output-box pre{color:#334155;white-space:pre-wrap;padding:18px;font-family:Consolas,Courier New,monospace}.lesson-controls{justify-content:space-between;align-items:center;gap:12px;display:flex}.lesson-button{border-radius:10px;justify-content:center;align-items:center;padding:12px 18px;font-size:13px;font-weight:700;transition:all .2s;display:inline-flex}.lesson-button.primary{color:#fff;background:#4f46e5}.lesson-button.primary:hover{background:#4338ca;transform:translateY(-2px)}.lesson-button.secondary{color:#475569;background:#f1f5f9}.lesson-button.secondary:hover:not(:disabled){background:#e2e8f0}.lesson-button:disabled{opacity:.45;cursor:not-allowed}.lesson-complete{text-align:center;color:#15803d;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:13px;margin-top:25px;padding:18px;font-weight:700;animation:.4s completePop}@keyframes completePop{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@media (width<=600px){.lesson-header{padding:25px 18px}.lesson-title{gap:12px}.lesson-title>span{width:60px;height:60px;font-size:30px}.lesson-title h1{font-size:25px}.lesson-card{padding:22px}.lesson-card h2{font-size:24px}.lesson-explanation{font-size:15px}.lesson-controls{flex-direction:column;align-items:stretch}.lesson-button{width:100%}}.lesson-progress-info{text-align:right;color:#64748b;margin-bottom:8px;font-size:12px;font-weight:700}.lesson-progress{background:#e2e8f0;border-radius:20px;height:8px;margin-bottom:30px;overflow:hidden}.lesson-progress-fill{background:linear-gradient(90deg,#6366f1,#38bdf8);border-radius:20px;height:100%;transition:width .4s}.lesson-points{color:#c2410c;background:#fff7ed;border-radius:20px;margin-bottom:25px;padding:9px 13px;font-size:12px;font-weight:700;display:inline-block}@media (width<=600px){.lesson-progress-info{text-align:left}}.code-box .code-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.try-it-button{color:#fff;background:#16a34a;border-radius:8px;padding:6px 13px;font-size:12px;font-weight:700;transition:all .2s}.try-it-button:hover:not(:disabled){background:#15803d;transform:translateY(-1px)}.try-it-button:disabled{opacity:.6;cursor:wait}.output-live{color:#16a34a}.output-box pre.output-status{color:#4f46e5;font-family:inherit;font-weight:700}.output-box pre.output-error{color:#b91c1c;background:#fef2f2}.lesson-title h1{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.lesson-completed-badge{color:#15803d;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:20px;padding:5px 11px;font-size:13px;font-weight:700}.lesson-complete-links{margin-top:12px}.lesson-practice{text-align:center;color:#64748b;border-top:1px solid #f1f5f9;margin-top:22px;padding-top:18px;font-size:14px}.lesson-practice a{color:#4f46e5;font-weight:700}.lesson-practice a:hover{text-decoration:underline}.lesson-summary{max-width:900px;margin:-40px auto 0;padding:0 20px 80px}.lesson-summary h2{color:#1e293b;margin-bottom:10px;font-size:26px}.lesson-summary-intro{color:#475569;margin-bottom:22px;line-height:1.7}.lesson-summary-list{grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0;list-style:none;display:grid}.lesson-summary-item{background:#fff;border:1px solid #e5e7eb;border-radius:18px;min-width:0;padding:22px 24px;box-shadow:0 8px 24px #0f172a0a}.lesson-summary-item.current{border-color:#6366f1;box-shadow:0 0 0 3px #6366f126}.lesson-summary-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.lesson-summary-head h3{color:#1e293b;margin:0;font-size:19px}.lesson-summary-go{color:#4338ca;cursor:pointer;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:7px 14px;font-size:14px;font-weight:700}.lesson-summary-go:hover{background:#e0e7ff}.lesson-summary-item p{color:#475569;margin:0 0 12px;line-height:1.7}.lesson-summary-code{color:#e5e7eb;white-space:pre;background:#111827;border-radius:12px;margin:0;padding:14px 16px;font-family:Fira Code,Consolas,monospace;font-size:14px;line-height:1.6;overflow-x:auto}@media (width<=600px){.lesson-summary-item{padding:18px}}
