:root{--bg:#eef3f7;--card:#fff;--ink:#172534;--muted:#627284;--navy:#17324d;--blue:#256ea8;--green:#16784a;--red:#b43b42;--line:#d8e2ea;--soft:#f5f8fa;--shadow:0 10px 30px rgba(22,44,66,.08);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}button,select,textarea{font:inherit}button{cursor:pointer}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem max(1rem,calc((100vw - 1200px)/2));background:var(--navy);color:#fff;box-shadow:0 3px 14px rgba(0,0,0,.16)}.brand{font-weight:900;font-size:1.35rem;letter-spacing:.02em}.subtitle{font-size:.86rem;opacity:.85}.top-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.status{display:inline-flex;align-items:center;padding:.45rem .7rem;border-radius:999px;font-weight:800;font-size:.86rem;background:#fff;color:var(--navy)}.status.offline{background:#ffe9e9;color:#8c1e27}.ghost{border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;border-radius:10px;padding:.5rem .7rem}.app-shell{max-width:1200px;margin:auto;padding:1rem}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.hero{display:flex;justify-content:space-between;gap:1.5rem;padding:1.4rem;margin-bottom:1rem}.hero h1{font-size:clamp(1.7rem,4vw,2.5rem);margin:.2rem 0 .5rem}.hero p{max-width:760px;margin:.4rem 0;line-height:1.6;color:var(--muted)}.eyebrow{font-weight:900;text-transform:uppercase;font-size:.73rem;letter-spacing:.08em;color:var(--blue)}.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(85px,1fr));gap:.6rem;min-width:300px;align-content:center}.hero-stats div{background:var(--soft);border-radius:14px;padding:.8rem;text-align:center}.hero-stats strong{display:block;font-size:1.35rem}.hero-stats span{font-size:.78rem;color:var(--muted)}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap;padding:.7rem;margin-bottom:1rem}.nav-btn{border:0;background:var(--soft);padding:.7rem .9rem;border-radius:11px;font-weight:800;color:var(--ink)}.nav-btn.active{background:var(--navy);color:#fff}.nav-btn.special{margin-left:auto;background:#e9f5ff;color:#155b91;border:1px solid #bcdcf3}.view{display:none}.view.active{display:block}.grid.two-col{display:grid;grid-template-columns:2fr 1fr;gap:1rem}.practice-card,.timer-card,.editor-card,.evidence-card{padding:1.2rem;margin-bottom:1rem}.practice-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.practice-head h2{margin:.3rem 0}.practice-head select,.section-head select{max-width:220px;padding:.6rem;border-radius:10px;border:1px solid var(--line);background:#fff}.pill{display:inline-block;background:#e9f5ff;color:#175f94;padding:.3rem .55rem;border-radius:999px;font-size:.78rem;font-weight:900}.statement{font-size:1.05rem;line-height:1.6}.hint-box,.requirements{padding:.8rem 1rem;background:var(--soft);border-radius:13px;margin-top:.8rem}.hint-box strong{display:block;margin-bottom:.3rem}.requirements ul{margin:.5rem 0 0;padding-left:1.2rem}.timer-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.timer-title{font-weight:900}.timer-display{font-size:2.1rem;font-variant-numeric:tabular-nums;font-weight:900;margin:.65rem}.timer-actions{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:center}.timer-actions button,.editor-actions button,.run-row button,.section-head button{border:1px solid var(--line);background:#fff;padding:.65rem .8rem;border-radius:10px;font-weight:800}.danger-soft{color:var(--red)}.muted{color:var(--muted);font-size:.9rem;line-height:1.5}.editor-header,.section-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.8rem}.editor-header small{display:block;color:var(--green);margin-top:.2rem}.editor-actions{display:flex;gap:.5rem;flex-wrap:wrap}.editor-actions #exportBtn{background:#e8f5ef;color:var(--green);border-color:#bfe1d0}#codeEditor{width:100%;min-height:360px;resize:vertical;border:1px solid #b9c8d4;border-radius:14px;background:#101820;color:#e6edf3;padding:1rem;font-family:"Cascadia Code","Fira Code",Consolas,monospace;font-size:15px;line-height:1.55;tab-size:4}.run-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}.run-row button{border:0;color:#fff}.primary{background:var(--blue)!important}.success{background:var(--green)!important}.ghost-dark{background:#fff;color:var(--navy)}.engine-status{margin-top:.7rem;padding:.65rem .8rem;border-radius:10px;background:#fff8df;color:#6f5710;font-size:.88rem;font-weight:700}.console{min-height:130px;max-height:300px;overflow:auto;background:#081018;color:#d5f5df;padding:1rem;border-radius:14px;white-space:pre-wrap;word-break:break-word}.evidence-card{display:flex;justify-content:space-between;align-items:center;gap:1rem}.evidence-card h3{margin:.1rem 0}.evidence-card p{margin:.35rem 0;color:var(--muted)}.dropbox-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#0061ff;color:#fff;padding:.8rem 1rem;border-radius:12px;font-weight:900;white-space:nowrap}.dropbox-btn.disabled{pointer-events:none;opacity:.45;filter:grayscale(1)}.practice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem}.practice-item{border:1px solid var(--line);border-radius:14px;padding:1rem;background:#fff;display:flex;flex-direction:column;gap:.55rem}.practice-item.done{border-color:#9ad0b6;background:#f4fbf7}.practice-item h3{font-size:1rem;margin:0}.practice-item p{color:var(--muted);font-size:.9rem;line-height:1.45;margin:0}.practice-item button{margin-top:auto;border:0;border-radius:9px;background:var(--navy);color:#fff;padding:.55rem;font-weight:800}.progressbar{height:14px;background:#e3eaf0;border-radius:999px;overflow:hidden;margin:1rem 0}.progressbar span{display:block;height:100%;width:0;background:var(--green);transition:width .25s}.progress-list{display:grid;gap:.55rem}.progress-row{display:grid;grid-template-columns:70px 1fr 110px 100px 110px;align-items:center;gap:.6rem;border:1px solid var(--line);border-radius:12px;padding:.7rem}.progress-row .status-text{font-weight:800}.progress-row button{border:0;background:#edf4fa;color:#194f77;border-radius:8px;padding:.45rem;font-weight:800}.toast{position:fixed;right:1rem;bottom:1rem;z-index:99;max-width:min(420px,calc(100vw - 2rem));background:#142536;color:#fff;padding:.85rem 1rem;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.24);opacity:0;transform:translateY(16px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}footer{text-align:center;color:var(--muted);padding:2rem 1rem 3rem;font-size:.85rem}
@media(max-width:820px){.hero{flex-direction:column}.hero-stats{min-width:0}.grid.two-col{grid-template-columns:1fr}.evidence-card{align-items:stretch;flex-direction:column}.dropbox-btn{width:100%}.progress-row{grid-template-columns:65px 1fr 90px}.progress-row .time-cell{display:none}.progress-row button{grid-column:3}}@media(max-width:560px){.topbar{align-items:flex-start}.top-actions{justify-content:flex-end}.app-shell{padding:.7rem}.hero,.practice-card,.timer-card,.editor-card,.evidence-card{border-radius:16px;padding:1rem}.hero-stats{grid-template-columns:repeat(3,1fr)}.toolbar{display:grid;grid-template-columns:1fr 1fr}.nav-btn.special{margin-left:0;grid-column:1/-1}.practice-head,.editor-header,.section-head{flex-direction:column;align-items:stretch}.practice-head select,.section-head select{max-width:none}.editor-actions{display:grid;grid-template-columns:1fr 1fr}.run-row{display:grid;grid-template-columns:1fr}.progress-row{grid-template-columns:55px 1fr}.progress-row .status-text,.progress-row button{grid-column:auto}.progress-row .time-cell{display:none}}

.brand-link{color:#fff;text-decoration:none}.brand-link:hover,.footer-brand:hover{text-decoration:underline}.footer-brand{color:inherit;font-weight:900;text-decoration:none}.learn-intro{padding:1.3rem;margin-bottom:1rem}.learn-intro h2{margin:.3rem 0}.learn-intro p{color:var(--muted);line-height:1.6}.learning-path{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.learning-path a{background:#eef6fc;color:#185c8c;text-decoration:none;padding:.55rem .75rem;border-radius:999px;font-weight:800;font-size:.86rem}.lesson{display:grid;grid-template-columns:70px 1fr;gap:1rem;padding:1.2rem;margin-bottom:1rem;scroll-margin-top:90px}.lesson-number{width:56px;height:56px;border-radius:16px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900;font-size:1.1rem}.lesson h3{margin:.1rem 0 .5rem}.lesson p,.lesson li{line-height:1.55}.lesson ol{padding-left:1.3rem}.lesson-code{background:#101820;color:#e6edf3;border-radius:12px;padding:.85rem;overflow:auto;white-space:pre-wrap;font-family:"Cascadia Code","Fira Code",Consolas,monospace;font-size:.9rem;line-height:1.5}.try-code,.guided-actions button{border:0;border-radius:9px;background:var(--navy);color:#fff;padding:.6rem .8rem;font-weight:800}.mini-task{background:#f5f8fa;border-left:4px solid var(--blue);padding:.7rem .8rem;border-radius:0 10px 10px 0}.concept-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;margin:.7rem 0}.concept-grid span{background:var(--soft);padding:.55rem .7rem;border-radius:9px}.guided-example{margin-top:.9rem;padding:1rem;background:#eef8ff;border:1px solid #b9dff5;border-radius:14px}.guided-head{display:flex;justify-content:space-between;gap:.8rem;align-items:center}.guided-head span{font-size:.78rem;color:var(--muted)}.guided-example p{color:var(--muted);line-height:1.5}.guided-actions{display:flex;gap:.5rem;flex-wrap:wrap}.independent-challenge{margin-top:.9rem;padding:1rem;background:#fff8e5;border:1px solid #edd799;border-radius:14px}.independent-challenge p{margin:.35rem 0 0;color:#6f5c20;line-height:1.5}
@media(max-width:560px){.lesson{grid-template-columns:1fr}.lesson-number{width:46px;height:46px}.guided-head{align-items:flex-start;flex-direction:column}.learning-path{display:grid;grid-template-columns:1fr 1fr}.try-code,.guided-actions button{width:100%}}
