:root{--mono:"SF Mono", Menlo, Consolas, monospace;--ink:#132846;--muted:#4b6055;--accent:#cef46e;--green:#376419;--border:#d7e4c9;--panel:#fff;--tint:#f0f8e6;--editor-surface:#fcfefb;color:var(--ink);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f8ed;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*,:before,:after{box-sizing:border-box}body{min-width:280px;margin:0}button{font:inherit;cursor:pointer;transition:background-color .16s,border-color .16s}button:disabled{cursor:default;opacity:.53}button:focus-visible{outline:2px solid var(--green);outline-offset:3px}svg{vertical-align:middle;flex-shrink:0}h1,h2,h3,p,pre{margin:0}pre,code{font-family:var(--mono)}pre{white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}.shell{min-height:100dvh}.top{background:linear-gradient(103deg, var(--accent) 10%, #def7a6);border-bottom:1px solid #b5d77b;align-items:center;gap:12px;min-height:70px;padding:8px 24px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand-icon{background:var(--accent);border:1px solid #95b754;border-radius:10px;flex-shrink:0;width:42px;height:42px;display:block}.brand-name{letter-spacing:-.03em;font-size:1.45rem;font-weight:780}.storage-warning{color:#693900;margin-left:auto;font-size:.82rem}.layout{grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 70px);display:grid}.sidebar{border-right:1px solid var(--border);background:#eff6e4;flex-direction:column;gap:22px;padding:24px 14px 21px;display:flex}.sidebar h2{color:var(--green);align-items:center;gap:9px;margin-bottom:14px;padding:0 8px;font-size:.9rem;font-weight:720;display:flex}.sidebar ul{margin:0;padding:0;list-style:none}.sidebar li+li{margin-top:6px}.sidebar li button{text-align:left;width:100%;min-height:46px;color:var(--ink);overflow-wrap:anywhere;background:0 0;border:1px solid #0000;border-radius:9px;grid-template-columns:27px minmax(0,1fr) 15px;align-items:center;gap:7px;padding:10px 9px;font-size:1rem;font-weight:700;display:grid}.sidebar li button:hover{background:#e0edcc}.sidebar li button.selected{background:#e2f6b6;border-color:#b6d681;box-shadow:inset 3px 0 #80ab3e}.task-number{width:25px;height:25px;color:var(--green);font:650 .82rem var(--mono);background:#e4efd6;border-radius:7px;place-items:center;display:grid}.selected .task-number{background:#d1ed91}.task-done,.task-chevron{color:var(--green)}.progress{border-top:1px solid #cfddbf;margin-top:auto;padding:16px 8px 0}.progress div{color:var(--muted);justify-content:space-between;gap:8px;font-size:.875rem;display:flex}.progress strong{font-family:var(--mono);color:var(--ink);font-weight:650}.progress progress{appearance:none;color:#5b942c;background:#d5e5c4;border:none;border-radius:8px;width:100%;height:7px;margin-top:10px;display:block}.progress progress::-webkit-progress-bar{background:#d5e5c4;border-radius:8px}.progress progress::-webkit-progress-value{background:#5b942c;border-radius:8px}.progress progress::-moz-progress-bar{background:#5b942c;border-radius:8px}.menu-toggle{display:none}.workspace{grid-template-columns:minmax(300px,.92fr) minmax(360px,1.08fr);align-content:start;gap:16px;padding:16px;display:grid}.task-pane,.right-pane{flex-direction:column;gap:16px;min-width:0;display:flex}.panel{background:var(--panel);border:1px solid var(--border);border-radius:15px;min-width:0;overflow:hidden;box-shadow:0 2px 6px #28472709}.panel-heading{border-bottom:1px solid var(--border);color:#284521;background:linear-gradient(105deg,#eaf5dd,#f8fbf2);align-items:center;gap:9px;min-height:54px;padding:0 15px;font-size:1.06rem;font-weight:750;display:flex}.panel-heading>svg{color:var(--green)}.panel-heading h2{font-size:inherit;font-weight:inherit}.description-body{padding:clamp(16px,2vw,22px)}.task-meta{align-items:center;margin-bottom:10px;display:flex}.status{border:1px solid var(--border);color:var(--muted);background:#f7faf4;border-radius:7px;align-items:center;gap:6px;padding:4px 8px;font-size:.92rem;font-weight:670;display:inline-flex}.status.solved{color:var(--green);background:#e8f8cd;border-color:#cbe4a7}h1{letter-spacing:-.035em;margin-bottom:9px;font-size:clamp(2rem,4vw,3rem);line-height:1.13}.task-heading-number{color:var(--green);margin-right:.07em}.description p{color:#394e45;font-size:clamp(1.08rem,1.55vw,1.25rem);line-height:1.5}.theory-page{min-width:0;padding:18px}.theory{border-top:4px solid #bce35f;max-width:860px;padding:clamp(18px,3.2vw,35px)}.theory p{color:#394e45;font-size:1.08rem;line-height:1.55}.theory p code{color:var(--green);font-weight:650}.theory-section{border-top:1px solid var(--border);margin-top:21px;padding-top:17px}.theory-section h2{margin-bottom:5px;font-size:1.28rem}.robot-commands{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0 0;display:grid}.robot-commands div{border:1px solid var(--border);background:var(--tint);border-radius:10px;padding:10px 10px 10px 58px;position:relative}.command-direction{width:39px;height:39px;color:var(--green);background:#e0f2c0;border-radius:8px;place-items:center;display:grid;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.robot-commands code{color:#2e591b;overflow-wrap:anywhere;font-size:1rem;font-weight:650}.robot-commands dd{color:var(--muted);margin:4px 0 0;line-height:1.3}.theory-example{flex-wrap:wrap;align-items:center;gap:9px 18px;margin-top:9px;display:flex}.theory-example pre{border:1px solid var(--border);color:#2e591b;background:#f0f9e3;border-radius:9px;padding:12px 14px;font-size:1.03rem;line-height:1.55}.theory-example ol{color:var(--muted);margin:0;padding-left:1.35em;line-height:1.55}.theory-start{margin-top:21px}.workbench{flex-direction:column;flex:1;min-height:325px;display:flex}.editor-commands{border-bottom:1px solid var(--border);background:#fafff2;padding:10px 13px 12px}.editor-commands h3{color:#284521;margin-right:9px;font-size:.99rem;display:inline-block}.editor-commands>span{color:var(--muted);font-size:.84rem;display:inline-block}.editor-commands .commands-compact{gap:6px;margin-top:7px}.commands-compact>div{background:#f0f8e4;border-radius:8px;padding:6px 6px 6px 36px}.commands-compact .command-direction{border-radius:5px;width:23px;height:23px;left:7px}.commands-compact code{font-size:.84rem}.commands-compact dd{margin-top:1px;font-size:.83rem}@media (width>=1440px){.editor-commands .commands-compact{grid-template-columns:repeat(4,minmax(0,1fr))}.commands-compact>div{padding-left:32px}.commands-compact .command-direction{left:5px}}.editor-host{background:var(--editor-surface);flex:195px;min-height:188px;position:relative}.editor-loading{color:var(--muted);padding:16px;font-size:.875rem}.editor-host .cm-editor{position:absolute;inset:0}.actions{border-top:1px solid var(--border);background:#f7fbf0;flex-wrap:wrap;gap:9px;padding:12px;display:flex}.action{border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:50px;padding:8px 14px;font-size:1rem;font-weight:730;display:inline-flex}.action.primary{color:var(--ink);background:var(--accent);border:1px solid #b7d96c}.action.primary:hover:enabled{background:#bfe754;border-color:#9dc445}.action.stop{color:#833335;background:#fff0ef;border:1px solid #e8b9b6}.action.stop:hover{background:#fbe0de}.quiet{color:var(--muted);background:0 0;border:1px solid #0000;border-radius:6px}.quiet:hover:enabled{color:var(--green);background:#e1efcd}.clear{margin-left:auto;padding:5px 8px;font-size:.83rem}.console-output{min-height:126px;max-height:305px;color:var(--ink);background:var(--editor-surface);padding:13px;overflow:auto}.verdict{background:#f2f8e9;border:1px solid #d5e6c6;border-radius:11px;align-items:center;gap:12px;min-height:92px;padding:11px;animation:.32s ease-out both verdict-arrive;display:flex}.verdict strong{font-size:clamp(1.13rem,2.2vw,1.48rem);line-height:1.15;display:block}.verdict p{color:var(--muted);margin-top:5px;font-size:1rem;line-height:1.38}.verdict-icon{width:49px;height:49px;color:var(--green);background:#dfedcc;border-radius:13px;flex-shrink:0;place-items:center;display:grid}.verdict-busy .verdict-icon{animation:.6s ease-in-out infinite alternate busy-bob}.verdict-success{color:#2b5414;background:#edfad3;border-color:#b6d681}.verdict-success .verdict-icon{background:#d3ef9d;animation:.52s ease-out both goal-hop}.verdict-warning{color:#744700;background:#fff7e2;border-color:#eed79c}.verdict-warning .verdict-icon{color:#744700;background:#fae7ad}.verdict-crash,.verdict-error{color:#853726;background:#fff0e8;border-color:#efc8b3}.verdict-crash .verdict-icon,.verdict-error .verdict-icon{color:#853726;background:#f9d9c7}.verdict-crash .verdict-icon{animation:.38s ease-out both impact-nudge}.console-output pre{font:.9rem/1.5 var(--mono);margin-top:9px}.console-output pre.error{color:#912b26}.robot-body{grid-template-columns:minmax(0,270px) minmax(110px,1fr);align-items:center;gap:clamp(12px,3vw,23px);padding:14px;display:grid}.robot-field{aspect-ratio:1;grid-template-columns:repeat(var(--cells), minmax(0, 1fr));grid-template-rows:repeat(var(--cells), minmax(0, 1fr));background:#f8fbed;border:1px solid #a1bc7d;border-radius:12px;display:grid;position:relative;overflow:hidden;box-shadow:0 3px #dce9ca}.robot-cell{color:#45633b;place-items:center;display:grid;box-shadow:inset 0 0 0 .5px #c5d9ae}.robot-cell-shaded{background:#edf5dd}.robot-goal{background:#fff3cc}.robot-visited:not(.robot-goal){background:#deefb5}.robot-wall{background:#d4dfcb}.robot-wall>svg{background:#edf1e8;border-radius:5px;padding:3px}.goal-star{color:#9a5b05;fill:#ffd062}.robot-start{color:#668258}.robot-position{width:calc(100% / var(--cells));height:calc(100% / var(--cells));pointer-events:none;place-items:center;display:grid;position:absolute;inset:0 auto auto 0}.robot-moving{transition:transform .165s ease-out}.robot-token{aspect-ratio:1;width:76%;color:var(--ink);background:linear-gradient(145deg, #ecffb8, var(--accent) 62%);border:1px solid #a3c858;border-radius:11px;place-items:center;display:grid;box-shadow:0 2px 4px #27502325}.robot-won{background:#ffda7c;border-color:#d6aa46}.robot-guide{color:var(--muted);gap:8px;font-size:1rem;display:grid}.robot-key{color:#314b35;align-items:center;gap:8px;display:flex}.robot-guide p{margin-top:3px}.robot-guide strong{color:var(--ink)}.robot-guide .found{color:var(--green)}.robot-guide .crashed{color:#853726}.field-star{animation:1.3s ease-in-out 2 alternate star-float}.robot-won{animation:.52s ease-out both goal-hop}.field-crashed{animation:.34s ease-out both impact-nudge}.robot-crashed .robot-token{opacity:0;animation:.43s ease-out both robot-crash}.robot-burst{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.robot-burst strong{z-index:1;color:#782f1a;white-space:nowrap;background:#ffce75;border:2px solid #a94c27;border-radius:8px;padding:3px 4px;font-size:clamp(.85rem,2.2vw,1.16rem);animation:.82s .12s both boom-word}.robot-burst i{opacity:0;background:#6ea026;border-radius:2px;width:9px;height:9px;animation:.62s cubic-bezier(.15,.55,.3,1) both spark-flight;position:absolute}.robot-burst i:nth-of-type(2n){background:#ffbd3e}.burst-crash i{background:#e46638;animation-delay:.12s}@keyframes verdict-arrive{0%{opacity:.46;transform:translateY(6px)scale(.98)}to{opacity:1;transform:none}}@keyframes busy-bob{0%{transform:translateY(2px)}to{transform:translateY(-3px)}}@keyframes star-float{0%{transform:translateY(2px)}to{transform:translateY(-3px)}}@keyframes goal-hop{0%,to{transform:none}45%{transform:translateY(-8px)rotate(8deg)scale(1.08)}}@keyframes impact-nudge{20%,55%{transform:translate(3px)}38%,75%{transform:translate(-3px)}}@keyframes robot-crash{0%{opacity:1;transform:none}30%{opacity:1;transform:translate(var(--bump-x), var(--bump-y)) scale(.89)}to{opacity:0;transform:rotate(20deg)scale(.48)}}@keyframes boom-word{0%{opacity:0;transform:rotate(-12deg)scale(.35)}23%{opacity:1;transform:rotate(-9deg)scale(1.1)}78%{opacity:1;transform:rotate(-9deg)scale(1)}to{opacity:0;transform:rotate(-5deg)scale(.9)}}@keyframes spark-flight{0%{opacity:0;transform:scale(.2)}22%{opacity:1}to{opacity:0;transform:translate(var(--spark-x), var(--spark-y)) rotate(95deg) scale(.45)}}@keyframes appear{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (width<=1150px){.layout{grid-template-columns:180px minmax(0,1fr)}.workspace{grid-template-columns:minmax(285px,.92fr) minmax(335px,1.08fr)}}@media (width<=850px){.layout{min-height:auto;display:block}.top{gap:8px;padding-inline:10px}.brand-name{font-size:1.2rem}.menu-toggle{place-items:center;width:36px;height:36px;display:inline-grid}.sidebar{border-right:0;border-bottom:1px solid var(--border);padding:14px;display:none}.sidebar.sidebar-open{animation:.18s both appear;display:flex}.progress{margin-top:0}}@media (width<=680px){.workspace{grid-template-columns:1fr;gap:10px;padding:10px}.theory-page{padding:10px}.theory .robot-commands{grid-template-columns:1fr}.task-pane,.right-pane{display:contents}.description{order:1}.workbench{order:2;min-height:0}.robot-panel{order:3;scroll-margin-block:10px}.console{order:4}}@media (width<=365px){.robot-body{grid-template-columns:minmax(0,180px) minmax(93px,1fr);gap:9px;padding:10px}.actions .action{width:100%}.commands-compact>div{padding-left:7px}.commands-compact .command-direction{display:none}.brand-name{font-size:1rem}.brand{gap:8px}.brand-icon{width:36px;height:36px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}.robot-crashed .robot-burst strong{transform:rotate(-8deg)}}
