:root{color:#1c302c;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--ink:#1c302c;--muted:#50655f;--border:#dbe4de;--accent:#126450;--accent-dark:#0d5140;--wash:#e6f1e9;--paper:#fff;background:#f3f6f3;font-family:Inter,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:300px;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}summary{cursor:pointer}button:disabled{cursor:wait;opacity:.75}:focus-visible{outline-offset:3px;outline:3px solid #2d8e76}h1,h2,p{margin:0}h1,h2{letter-spacing:-.035em}[hidden]{display:none!important}.topbar{color:#f2faf5;background:#172c26;border-bottom:1px solid #27483e;min-height:67px}.topbar-inner{max-width:1330px;min-height:inherit;align-items:center;gap:16px;margin:auto;padding:0 28px;display:flex}.brand{align-items:center;gap:10px;font-size:1.12rem;font-weight:740;display:inline-flex}.brand-icon{color:#ccffdc;background:#294e41;border-radius:9px;place-items:center;width:37px;height:37px;display:grid}.group{color:#b7ccc1;border-left:1px solid #496358;padding-left:16px;font:500 .84rem ui-monospace,monospace}.header-link{color:#d9e8df;margin-left:auto;font-size:.9rem;font-weight:650}.header-link:hover{color:#b8ffda}.container{max-width:1330px;margin:0 auto;padding-inline:28px}.centered{justify-items:start;gap:20px;padding-block:45px;display:grid}.home{max-width:1170px;padding-block:42px 60px}.hero{background:linear-gradient(108deg,#e5f4e8,#d0eadc);border:1px solid #cbded2;border-radius:17px;justify-content:space-between;align-items:center;gap:32px;min-height:210px;padding:40px;display:flex;position:relative;overflow:hidden}.hero h1{font-size:clamp(2.35rem,5vw,4.1rem);font-weight:760;line-height:1}.hero p{color:#3e5b50;max-width:490px;margin-top:17px;font-size:1.08rem;line-height:1.6}.hero-art{color:#276952;align-items:center;gap:30px;padding-right:30px;display:flex}.section-title{margin:28px 0 12px;font-size:1.3rem}.lesson-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.lesson-card{border:1px solid var(--border);background:var(--paper);border-radius:13px;flex-direction:column;align-items:flex-start;gap:7px;padding:21px;display:flex}.lesson-card--featured{border-color:#bad9c8}.lesson-meta{color:#3c6253;align-items:center;gap:10px;font:.84rem ui-monospace,monospace;display:flex}.lesson-icon{width:39px;height:39px;color:var(--accent);background:var(--wash);border-radius:10px;place-items:center;display:grid}.lesson-card h2{font-size:1.4rem}.lesson-card p{color:var(--muted);line-height:1.5}.lesson-card .lesson-detail{color:var(--ink);font-weight:650}.lesson-actions{justify-content:space-between;align-items:center;gap:12px;width:100%;margin-top:auto;padding-top:12px;display:flex}.lesson-progress{color:var(--muted);align-items:center;gap:5px;font-size:.86rem;display:flex}#root:has(.practice){flex-direction:column;min-height:100dvh;display:flex}#root:has(.practice) .topbar-inner{max-width:none;padding-inline:clamp(14px,2vw,28px)}.practice{flex-direction:column;flex:1;gap:13px;min-width:0;padding:13px clamp(14px,2vw,28px) 18px;display:flex}.practice-header,.panel{border:1px solid var(--border);background:var(--paper);border-radius:13px}.exercise-navigation{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px 14px;padding:8px 15px;display:flex}.lesson-label{color:var(--accent-dark);font-size:.86rem;font-weight:680}.lesson-label span{color:var(--muted);margin-inline:2px}.exercise-links{flex-wrap:wrap;gap:4px;display:flex}.exercise-links a{color:#334a43;border-radius:7px;align-items:center;gap:6px;min-height:32px;padding:4px 7px;font-size:.85rem;display:flex}.exercise-links a:hover{background:#f0f5f0}.exercise-links a[aria-current=page]{background:var(--wash);color:var(--accent-dark);font-weight:660}.exercise-index{background:#eff3ef;border-radius:5px;flex:0 0 22px;place-items:center;width:22px;height:22px;font:600 .8rem ui-monospace,monospace;display:grid}[aria-current=page] .exercise-index{background:#cfebdb}.instruction{padding:11px 15px 13px}.instruction-summary{justify-content:space-between;align-items:center;gap:10px 20px;display:flex}.instruction h1{font-size:clamp(1.5rem,2.5vw,2.1rem);line-height:1.12}.description{color:var(--muted);margin-top:5px;line-height:1.45}.instruction-actions{flex-wrap:wrap;flex:none;align-items:center;gap:7px;display:flex}.exercise-completed{align-items:center;gap:4px;font-size:.87rem;font-weight:650;display:inline-flex}.goals{color:#334a43;gap:4px;margin:10px 0 0;padding-left:20px;line-height:1.45;display:grid}.goals li::marker{color:#357e62}.topics{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.topics span{color:#36564a;background:#edf3ef;border-radius:5px;padding:5px 8px;font:.8rem ui-monospace,monospace}.hint-button{color:var(--accent);background:#fff;border:1px solid #d5e2d9;border-radius:7px;align-items:center;gap:6px;min-height:32px;padding:6px 9px;font-size:.87rem;font-weight:650;display:flex}.hint-button:hover,.hint-button[aria-expanded=true]{background:var(--wash)}.hint{color:#315244;background:#f2f7ed;border-radius:7px;margin-top:9px;padding:9px 12px;line-height:1.45}.workbench{flex:1;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:13px;min-height:410px;display:grid}.panel{flex-direction:column;min-width:0;display:flex;overflow:hidden}.panel-heading,.panel-controls{justify-content:space-between;align-items:center;gap:9px;padding:9px 13px;display:flex}.panel-heading{border-bottom:1px solid var(--border);min-height:43px}.panel-heading h2{align-items:center;gap:7px;font-size:1rem;display:flex}.panel-controls{border-top:1px solid var(--border);min-height:56px}.preview-panel .panel-controls{justify-content:flex-end}.file-label,.preview-status{color:var(--muted);font:.8rem ui-monospace,monospace}.file-tabs{scrollbar-width:thin;scrollbar-color:#6f8f7f #20342b;background:#20342b;display:flex;overflow-x:auto}.file-tab{border-bottom:2px solid #0000;border-right:1px solid #375046;flex:none;align-items:center;display:flex}.file-tab[data-active=true]{background:#182923;border-bottom-color:#81d5ad}.file-tab button{color:#c4d7cb;background:0 0;border:0}.file-tab [role=tab]{white-space:nowrap;min-height:37px;padding:7px 8px 7px 11px;font:.85rem ui-monospace,monospace}.file-tab [role=tab][aria-selected=true]{color:#effaf2}.file-tab .file-tab-close{border-radius:4px;place-items:center;width:26px;height:26px;margin-right:4px;padding:0;display:grid}.file-tab button:hover{color:#fff;background:#2a4539}.file-tab button:focus-visible{outline-offset:-2px;outline:2px solid #81d5ad}.editor-slot,.frame-wrapper{flex:1;min-height:0;position:relative}.editor{background:#182923;position:absolute;inset:0}.no-open-file{color:#c4d7cb;text-align:center;background:#182923;flex:1;place-items:center;padding:14px;display:grid}.frame-wrapper{background:#f8faf8;overflow:auto}.frame-wrapper iframe{border:0;width:100%;height:100%;display:block;position:absolute;inset:0}.grade-frame{clip-path:inset(50%);pointer-events:none;border:0;width:1px;height:1px;position:fixed}.preview-error{color:#8c2b22;overflow-wrap:anywhere;background:#fdf0ec;border-radius:7px;margin:13px;padding:14px}.button{white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:7px 12px;font-size:.91rem;font-weight:650;display:inline-flex}.primary{background:var(--accent);color:#fff}.primary:hover{background:var(--accent-dark)}.secondary,.reset{color:var(--ink);background:#fff;border-color:#d4e0d9}.secondary:hover,.reset:hover{background:var(--wash)}.reset{padding-inline:9px}.results{border-top:1px solid var(--border);max-height:min(220px,32vh);padding:12px 15px;overflow:auto}.results h2{align-items:center;gap:7px;font-size:1.12rem;display:flex}.results ul{gap:8px;margin:12px 0;padding:0;list-style:none;display:grid}.results li{align-items:baseline;gap:8px;line-height:1.4;display:flex}.results li svg{flex-shrink:0;align-self:start}.results li p{color:var(--muted)}.success{color:#17624b}.attention,.error-text{color:#973b28}.error-text{overflow-wrap:anywhere;margin-top:9px}@media (width<=1020px){.container,.topbar-inner{padding-inline:17px}}@media (width<=790px){.hero-art{gap:9px;padding-right:0}.instruction-summary{flex-wrap:wrap}}@media (width<=590px){.lesson-list{grid-template-columns:minmax(0,1fr)}.topbar-inner{gap:10px}.group{padding-left:9px}.brand{gap:7px;font-size:.99rem}.brand-icon{width:31px;height:31px}.topbar{min-height:57px}.home{padding-top:22px}.hero{min-height:0;padding:24px}.hero-art{display:none}.exercise-navigation,.instruction{padding-inline:12px}}.exercise-steps{color:#334a43;gap:5px;margin:10px 0 0;padding-left:23px;line-height:1.45;display:grid}.exercise-steps li::marker{color:var(--accent);font-weight:700}.step-file{max-width:100%;color:var(--accent-dark);overflow-wrap:anywhere;text-align:left;background:#edf4ef;border:1px solid #d3e2d9;border-radius:5px;margin:0 7px 0 0;padding:3px 6px;font:.82rem ui-monospace,monospace}.step-file:hover{background:#dbece2}.step-example{color:var(--accent-dark);margin:4px 0 2px}.step-example summary{width:fit-content;font-size:.87rem;font-weight:650}.step-example pre{max-width:100%;color:var(--ink);background:#edf4ef;border-radius:6px;margin:6px 0;padding:8px 11px;font-size:.86rem;overflow-x:auto}.code-panel .file-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.code-workspace{flex:1;grid-template-columns:minmax(145px,190px) minmax(0,1fr);min-height:0;display:grid}.project-explorer{color:#d4e5db;background:#20342b;border-right:1px solid #3b5549;overflow:auto}.project-explorer ul{margin:0;padding-inline-start:11px;list-style:none}.project-explorer summary{white-space:nowrap;padding:5px 8px}.project-explorer summary svg{vertical-align:-.15em}.project-explorer .explorer-group>summary{color:#f0faf4;padding:11px 8px;font-size:.87rem;font-weight:690}.project-explorer .explorer-group ul ul summary{font:.84rem/1.5 ui-monospace,monospace}.tree-file{width:100%;min-height:31px;color:inherit;text-align:left;white-space:nowrap;background:0 0;border:0;border-left:2px solid #0000;align-items:center;gap:5px;padding:4px 7px;font:.82rem ui-monospace,monospace;display:flex}.tree-file svg{flex-shrink:0}.tree-file:hover,.project-explorer summary:hover{background:#2a4539}.tree-file[aria-current=true]{color:#f5fcf7;background:#2c4b3e;border-left-color:#81d5ad}.tree-file:focus-visible,.project-explorer summary:focus-visible{outline-offset:-2px;outline-color:#81d5ad}.open-source{flex-direction:column;min-width:0;display:flex}.preview-address{border-bottom:1px solid var(--border);color:var(--muted);background:#f8faf8;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 13px;font-size:.86rem;display:grid}.preview-address input{border:1px solid var(--border);width:100%;min-width:0;color:var(--ink);border-radius:5px;padding:7px 8px;font:.85rem ui-monospace,monospace}.preview-address .button{min-height:33px;padding-block:5px}.preview-address p{color:#973b28;grid-column:1/-1}.code-controls{flex-wrap:wrap}.restore-controls{align-items:center;gap:7px;margin-left:auto;display:flex}.restore-controls button:disabled{cursor:default;color:var(--muted)}.archive-button{min-height:36px;color:var(--accent-dark);background:0 0;border:0;align-items:center;gap:5px;padding:5px;font-size:.84rem;display:inline-flex}.archive-button:hover{text-underline-offset:3px;text-decoration:underline}.archive-dialog,.lesson-reset-dialog{border:1px solid var(--border);color:var(--ink);border-radius:12px;padding:15px}.archive-dialog{width:min(720px,100% - 28px)}.archive-dialog::backdrop,.lesson-reset-dialog::backdrop{background:#0e211a9e}.archive-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.archive-header h2{font-size:1.2rem}.archive-dialog p,.lesson-reset-dialog p{color:var(--muted);margin:9px 0 12px;line-height:1.4}.archive-source{border-radius:7px;height:min(440px,55dvh);position:relative;overflow:hidden}@media (width<=880px){.workbench{grid-template-columns:minmax(0,1fr)}.code-panel{height:min(610px,72svh);min-height:430px}.preview-panel{min-height:390px}.frame-wrapper{min-height:210px}}@media (width<=460px){.code-workspace{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.project-explorer{border-bottom:1px solid #3b5549;border-right:0;max-height:142px}.open-source{min-height:0}}.exercise-links .locked-exercise{min-height:32px;color:var(--muted);align-items:center;gap:6px;padding:4px 7px;font-size:.85rem;display:inline-flex}.sequence-note{color:var(--accent-dark);margin-top:7px;font-size:.9rem;line-height:1.45}.hint-button.restart-lesson{color:#8b3529;border-color:#e8d4cd}.hint-button.restart-lesson:hover{background:#fdf0ec}.lesson-reset-dialog{width:min(470px,100% - 28px)}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.danger{color:#fff;background:#923c30}.danger:hover{background:#742e24}
