.desktop-site #window.chapter-window{width:min(1030px,calc(100% - 40px));height:min(850px,calc(100svh - 70px));background:#f8f8ee}
.chapter{padding:28px 36px 36px;color:#344832}.chapter p{font-size:14px;line-height:1.85;color:#617158}.chapter h3{font-family:inherit;font-weight:600;font-size:clamp(24px,3vw,34px);line-height:1.35;letter-spacing:-.7px;margin:10px 0}.chapter h3:focus{outline:none}.chapter h4{font-size:19px;line-height:1.5;margin:14px 0}.chapter-top{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.chapter-kicker{font:10px/1.5 ui-monospace,monospace;letter-spacing:1.8px;color:#758566}.chapter-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.chapter-heading p{margin:7px 0 17px}.chapter-count{white-space:nowrap;font:12px ui-monospace,monospace;background:#e7eddb;border:1px solid #c9d6b9;border-radius:20px;padding:10px 13px}.chapter-progress{display:block;width:100%;height:7px;border:0;border-radius:9px;overflow:hidden;background:#e5eadc;accent-color:#658651;margin:8px 0 27px}.chapter-progress::-webkit-progress-bar{background:#e5eadc}.chapter-progress::-webkit-progress-value{background:#7f9d67;border-radius:9px}.chapter-map-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(230px,.85fr);gap:35px;align-items:start}.chapter-route{list-style:none;margin:0;padding:6px 0;position:relative;display:grid;gap:14px}.chapter-route:before{content:"";position:absolute;top:24px;bottom:24px;left:35px;border-left:3px dashed #c0cea8}.chapter-route li{position:relative}.chapter-route li:nth-child(even){margin-left:23px}.chapter-node{width:100%;display:flex;align-items:center;gap:14px;min-height:76px;padding:13px 17px;text-align:left;border:1px solid #ccd7bd;border-radius:13px;background:#eef2e5;box-shadow:0 3px 0 #d8e0cd;color:#435a39}.chapter-node strong{display:block;font-size:14px;font-weight:600;line-height:1.45}.chapter-node small{display:block;font-size:10px;margin-top:5px;color:#64765a}.chapter-node>span:last-child{margin-left:auto}.node-number{display:grid;place-items:center;flex:none;width:32px;height:32px;background:#e0e8d4;border:1px solid #c2d1b0;border-radius:50%;font:12px ui-monospace,monospace}.chapter-node.selected{border-color:#b69d53;background:#f6edc9;box-shadow:0 3px #d8c589}.chapter-node.selected .node-number{background:#eacc77;border-color:#b99b48}.chapter-node.done .node-number{background:#668657;color:#fff;border-color:#668657}.chapter-node.locked{background:#f0f0e7;color:#7b8670;box-shadow:none}.chapter-detail{position:sticky;top:85px;padding:27px 25px;background:#f2edcf;border:1px solid #ded5ac;border-radius:12px;box-shadow:0 9px 20px #43533309}.chapter-detail .chapter-button{width:100%;margin-top:10px}.chapter-detail .chapter-rule{border-top:1px solid #d8d2b4;padding-top:15px;font-size:12px}.chapter-detail .chapter-save-note{font-size:11px;margin-bottom:0;color:#7a7f64}.chapter-button{padding:11px 16px;background:#eef2e5;border:1px solid #c4d0b6;border-radius:7px;font-family:inherit;font-weight:500;font-size:13px;line-height:1.4;min-height:42px;color:#45603a;cursor:pointer}.chapter-button.primary{background:#58764d;color:#fff;border-color:#58764d}.chapter-button.quiet{background:transparent;border-color:transparent;padding-left:0}.chapter-button:disabled{opacity:.5;cursor:default}.chapter-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.chapter-celebration{padding:20px;background:#e5edda;border-radius:9px;margin-top:25px;font-size:15px}.chapter-lesson{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;background:#f1f3e7;border:1px solid #d6dec8;border-radius:12px;padding:30px;margin-top:20px;min-height:280px}.chapter-diagram{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;min-height:130px}.chapter-cell{padding:16px 10px;background:#fcfaf0;border:1px solid #b8caa6;border-radius:7px;box-shadow:0 4px #d7e2cb;font:12px/1.5 ui-monospace,monospace;overflow-wrap:anywhere;max-width:100%}.chapter-cell:first-child{background:#f6e7b6;border-color:#cabb87}.chapter-arrow{color:#93a57e}.chapter-step{font-size:12px;color:#7b876e}.chapter-clock{font:16px ui-monospace,monospace;white-space:nowrap;background:#eee9cb;border:1px solid #d4cba2;border-radius:6px;padding:8px 12px}.chapter-question{padding:25px;background:#f2f4e9;border:1px solid #d5dec6;border-radius:12px;margin-top:18px}.chapter-question h4{margin-top:0}.chapter-options{display:grid;gap:10px;margin:22px 0}.chapter-options button{display:flex;gap:14px;align-items:center;text-align:left;padding:16px;background:#fffdf4;border:1px solid #ced9bf;border-radius:7px;line-height:1.6;font-size:14px;color:#465e3d}.chapter-options button>span{font:11px ui-monospace,monospace;color:#7f906f}.chapter-options button.correct{background:#dceacd;border-color:#6e935a}.chapter-options button.wrong{background:#f2ded2;border-color:#c28b72}.chapter-options button:disabled{cursor:default;opacity:1}.chapter-feedback{padding:20px;background:#e9efde;border:1px solid #cbd9ba;border-radius:8px;margin-top:20px;font-size:14px;line-height:1.7}.chapter-feedback p:last-child{margin-bottom:0}.chapter-language{display:flex;flex-direction:column;gap:5px;flex:none;font-size:11px;color:#6f8061}.chapter-language select{padding:7px 10px;border:1px solid #c7d3ba;border-radius:6px;background:#fffdf4;color:#405937;font-family:inherit;font-size:12px}.chapter-editor-label{display:block;font-size:12px;margin:18px 0 8px}.chapter-editor{display:block;width:100%;min-height:265px;resize:vertical;background:#26352d;color:#eff2df;border:1px solid #536850;border-radius:9px;padding:18px;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:4}.chapter-editor:focus{outline:2px solid #9aaa75;outline-offset:2px}.chapter-editor::placeholder{color:#b2bda7}.chapter-editor:disabled{opacity:.8}.chapter-reference{background:#f7f8ec;padding:18px;border-radius:7px;overflow:auto;color:#344f2d;font:12px/1.8 ui-monospace,monospace;max-height:400px}.chapter-hints{font-size:13px;line-height:1.9;padding-left:22px;color:#617653}.chapter-checks{display:grid;gap:12px;margin:20px 0}.chapter-checks label{display:flex;gap:10px;align-items:start;font-size:13px}.chapter-checks input{margin-top:4px;accent-color:#58764d;flex:none}.chapter-result{max-width:650px;margin:35px auto;text-align:center}.chapter-result-icon{display:inline-grid;place-items:center;width:80px;height:80px;background:#f0dfa4;border:1px solid #d2c082;border-radius:50%;font-size:34px;color:#88763d}.chapter-result .chapter-actions{justify-content:center}.chapter-review{text-align:left;background:#eef1e3;border:1px solid #d2ddc1;padding:18px;border-radius:9px;margin:20px 0}.chapter-review summary{cursor:pointer;font-size:13px}.chapter-notice{padding:12px;background:#f5e4c8;border-radius:7px}.chapter button:focus-visible,.chapter select:focus-visible,.chapter input:focus-visible{outline:2px solid #45643a;outline-offset:3px}
@media(max-width:700px){.chapter{padding:23px}.chapter-map-layout{gap:20px;grid-template-columns:1fr}.chapter-route{grid-template-columns:1fr 1fr;gap:12px}.chapter-route:before{display:none}.chapter-route li:nth-child(even){margin-left:0}.chapter-node{padding:12px;gap:10px;min-height:95px}.chapter-node>span:last-child{display:none}.chapter-detail{position:static;padding:22px}.chapter-lesson{grid-template-columns:1fr;gap:12px;padding:22px}.chapter-heading{align-items:start}.chapter-heading h3{font-size:25px}.chapter-heading .chapter-count{font-size:10px}.chapter-question{padding:20px}.chapter-lesson .chapter-diagram{min-height:100px}}
@media(max-width:600px){.desktop-site #window.chapter-window{width:100%;max-width:none;height:100svh;max-height:100svh}.chapter{padding:20px 17px 32px}.chapter-heading{flex-wrap:wrap;gap:10px}.chapter-count{margin-bottom:10px}.chapter-node strong{font-size:12px}.chapter-node small{font-size:9px}.chapter-node{gap:7px;padding:10px;align-items:start}.node-number{width:25px;height:25px;font-size:10px}.chapter-cell{font-size:11px;padding:12px 8px}.chapter-arrow{font-size:12px}.chapter-language{flex-direction:row;align-items:center}.chapter-editor{font-size:12px;padding:13px}.chapter-actions .chapter-button{flex:1;min-width:110px}.chapter-question h4{font-size:17px}.chapter-options button{font-size:13px;padding:13px}.chapter-result{margin:22px 0}.chapter-reference{font-size:11px}.chapter-top{gap:10px}.chapter-kicker{letter-spacing:1px;font-size:9px}}
.chapter-lesson>div{min-width:0}.chapter-lesson-code .chapter-language{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:12px}.chapter-lesson-code pre{margin:0;padding:17px;max-height:430px;overflow:auto;background:#26352d;color:#eff2df;border:1px solid #536850;border-radius:8px;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:4}.chapter-lesson-code pre:focus-visible{outline:2px solid #9aaa75;outline-offset:2px}
@media(max-width:700px){.chapter-lesson-code pre{max-height:330px;font-size:11px}}
