:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172554;background:#edf2f8;font-size:16px;font-synthesis:none}main.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.examples-menu{position:relative}.examples-menu>summary{list-style:none;border:1px solid #cbd5e1;background:#fff;border-radius:7px;padding:.5rem .75rem;color:#1e3a8a}.examples-menu>summary::-webkit-details-marker{display:none}.examples-list{position:fixed;right:0;top:calc(100% + 8px);z-index:100;background:#fff;border:1px solid #cbd5e1;box-shadow:0 12px 32px #17255426;border-radius:9px;padding:8px;width:min(360px,85vw);max-height:65vh;overflow:auto;display:grid;gap:4px}.examples-list button{text-align:left;border:0;font-weight:400}dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;padding:24px;color:#172554}dialog::backdrop{background:#10213d80}dialog h2{margin-top:0;font-size:1.3rem}dialog p{font-size:.9rem;line-height:1.6}dialog input,dialog textarea{width:100%;margin:6px 0 16px;background:#fffce8}#exerciseSource{font:15px/1.6 Consolas,monospace;resize:vertical}.starter-heading,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-actions{justify-content:flex-end}.hint{font-size:.85rem;line-height:1.6;color:#475569}#exerciseError{color:#991b1b}#inputDialog #inputForm{display:block;padding:0}#inputDialog{width:min(440px,calc(100vw - 32px))}#auditEvents{padding-left:24px;max-height:350px;overflow:auto;font-size:.85rem;line-height:1.5}#auditEvents>li{margin:12px 0}#auditEvents pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f9;padding:10px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #cbd5e1;background:#fff;color:#1e3a8a;border-radius:7px;padding:.5rem .75rem;font-size:.875rem;font-weight:600}button:hover{background:#eff6ff}button:disabled{opacity:.45;cursor:default}.action-icon{width:18px;height:18px;vertical-align:-4px;margin-right:7px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#settings .action-icon{margin-right:0}#settings{min-width:40px;min-height:38px}#settingsDialog{width:min(440px,calc(100vw - 32px))}#settingsDialog select{width:100%;margin-bottom:24px}#settingsError{color:#991b1b}#run:not(:disabled){background:#15803d;color:#fff;border-color:#15803d}#run:not(:disabled):hover{background:#166534}#stop:not(:disabled),#cancelInput:not(:disabled){background:#b91c1c;color:#fff;border-color:#b91c1c}#stop:not(:disabled):hover,#cancelInput:not(:disabled):hover{background:#991b1b}#run .action-icon,#stop .action-icon,#cancelInput .action-icon{fill:currentColor}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.primary{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.primary:hover{background:#1e40af}#export{background:#dbeafe;color:#1e40af;border-color:#93c5fd}#export:hover{background:#bfdbfe;border-color:#60a5fa}header{min-height:78px;background:#fff;border-bottom:1px solid #cbd5e1;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;gap:16px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#172554;font-weight:750;font-size:1.25rem}.mark{display:grid;place-items:center;border-radius:10px;width:42px;height:42px;background:#1d4ed8;color:#fff;font-family:monospace}.brand small{display:block;font-size:.8rem;color:#64748b;font-weight:400;margin-top:3px}.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1;justify-content:flex-end}#saveStatus{font-size:.85rem;margin-right:8px;color:#475569}main{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 78px)}aside{background:#f8fafc;border-right:1px solid #cbd5e1;padding:24px 16px;display:flex;flex-direction:column;gap:18px}.section-title{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:.9rem}.section-title button{font-size:1.1rem;padding:3px 9px}#projects{display:grid;gap:8px}#projects button{text-align:left;overflow-wrap:anywhere;padding:12px}#projects .active{background:#dbeafe;border-color:#93c5fd;color:#1e40af}#projects small{display:block;font-weight:400;color:#64748b;margin-top:5px;font-size:.75rem}.aside-bottom{margin-top:auto;display:grid;gap:10px;font-size:.85rem}.aside-bottom button{text-align:left;font-weight:400}.aside-bottom p{line-height:1.6;color:#64748b}.workspace{margin:22px;min-width:0;max-width:1400px}.project-bar{display:flex;gap:20px;align-items:end;justify-content:space-between;margin-bottom:14px}label{display:block;font-size:.85rem;color:#475569}.name-label{flex:1;font-weight:650}input,select,textarea{border:1px solid #cbd5e1;border-radius:6px;padding:9px 12px;color:#172554;background:#fff}#name{display:block;width:100%;margin-top:6px;font-size:1.6rem;font-weight:750;border-color:#94a3b8;background:#fffce8}select{display:block;margin-top:6px}details summary{cursor:pointer;font-size:.875rem;font-weight:600;padding:10px 0}.assignment{margin-bottom:14px;border:1px solid #93c5fd;border-radius:9px;background:#eff6ff;padding:0 16px}.assignment>summary{font-size:1.1rem;font-weight:700;color:#1e3a8a;padding:14px 0}.assignment>summary:hover{color:#1d4ed8}.assignment[open]>summary{border-bottom:1px solid #bfdbfe;margin-bottom:12px}.assignment textarea{width:100%;background:#fffce8;font-size:1.05rem;line-height:1.6;margin-bottom:12px;resize:vertical}.tabs{display:flex;align-items:center;gap:8px;padding:12px;background:#fff;border:1px solid #cbd5e1;border-radius:10px 10px 0 0;flex-wrap:wrap;position:sticky;top:8px;z-index:30}.tabs [role=tab]{border:0;background:transparent;color:#64748b}.tabs [aria-selected=true]{background:#dbeafe;color:#1d4ed8}.spacer{flex:1}#textPanel,#blocksPanel,#flowPanel{background:#fff;border:1px solid #cbd5e1;border-top:0}.editor-tools{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;font-size:.85rem;color:#64748b;border-bottom:1px solid #e2e8f0}#source{display:block;width:100%;height:330px;resize:vertical;border:0;border-radius:0;padding:22px 24px;background:#fffef4;font:16px/1.75 Consolas,monospace;-moz-tab-size:2;tab-size:2}.numbered-editor{display:flex;overflow:hidden;background:#fffef4}#lineNumbers{flex:0 0 56px;height:330px;overflow:hidden;padding:22px 8px;text-align:right;color:#64748b;background:#f1f5f9;font:16px/28px Consolas,monospace;-webkit-user-select:none;user-select:none}#lineNumbers .current-line{color:#172554;background:#fcd34d;font-weight:700;box-shadow:inset 4px 0 #92400e}.numbered-editor #source{flex:1;min-width:0;line-height:28px;padding:22px 16px;background:linear-gradient(to bottom,transparent var(--active-top, -100px),#fcd34d var(--active-top, -100px),#fcd34d calc(var(--active-top, -100px) + 28px),transparent calc(var(--active-top, -100px) + 28px)) local,#fffef4}.help{padding:0 16px}.wiki-link{border:1px solid #cbd5e1;border-radius:7px;padding:.5rem .75rem;background:#fff;color:#1e3a8a;font-size:.875rem;font-weight:600;text-decoration:none}.wiki-link:hover{background:#eff6ff}.wiki-link:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.syntax-quick{font-size:.85rem;line-height:1.6;padding-bottom:10px}.syntax-quick>div{display:flex;flex-wrap:wrap;gap:4px 10px;margin:3px 0}.syntax-quick strong{min-width:130px;color:#334155}.syntax-quick code{overflow-wrap:anywhere}.help .syntax-quick p{margin:8px 0 0;font-size:.85rem;line-height:1.6}.help p{font-size:.875rem;line-height:1.9;color:#475569}#blockly{height:440px;width:100%}#flow{overflow:auto;height:440px;background:#fbfdff}.flow-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#fff;font-size:.875rem}#flowZoom{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}#flow svg{display:block;width:100%;min-width:650px;min-height:100%;height:auto}.flow-view #flowPanel{border-radius:0 0 10px 10px}.flow-view #flow{height:calc(100dvh - 260px)}#message{padding:12px 16px;background:#fee2e2;color:#991b1b;border:1px solid #fecaca;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:25dvh;overflow:auto}.console{margin-top:18px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;overflow:hidden;padding:0 16px 10px}.console-heading{display:flex;align-items:center;gap:14px}.console h2{font-size:.95rem;margin:15px 0}.console-heading button{margin-left:auto;font-weight:400}#executionState{font-size:.8rem;color:#64748b}#output{margin:0 -16px;padding:16px;min-height:100px;max-height:240px;overflow:auto;background:#10213d;color:#e2e8f0;font:15px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--console-font-size, 15px)}#inputForm{display:flex;align-items:center;gap:10px;padding-top:14px}#inputValue{flex:1;min-width:0;background:#fffce8}#variables{white-space:pre-wrap;font-size:.85rem;overflow-wrap:anywhere;font-size:var(--console-font-size, 15px)}.console-zoom{display:flex;align-items:center;gap:6px}.zoom-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.console-heading .console-zoom button{margin-left:0;min-width:38px}#consoleFontSize{font-size:.8rem;min-width:36px;text-align:center;color:#475569}.stepping .numbered-editor #source{height:clamp(100px,calc(100dvh - 360px),300px)}.stepping .help{display:none}.tabs{scroll-margin-top:8px}#stepRun:not(:disabled),#nextStep:not(:disabled){color:#5b21b6;background:#ede9fe;border-color:#c4b5fd}#stepRun:not(:disabled):hover,#nextStep:not(:disabled):hover{background:#ddd6fe}#stepRun[aria-pressed=true]{opacity:1;color:#5b21b6;background:#ede9fe;border-color:#a78bfa}.stepping #output{min-height:60px;max-height:100px}.stepping #variables{max-height:100px;overflow:auto}.console-heading,.editor-tools,.dialog-actions,.starter-heading{flex-wrap:wrap}#executionState{overflow-wrap:anywhere}dialog{max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px)}dialog .dialog-actions{position:sticky;bottom:-24px;background:#fff;padding:12px 0}dialog button{max-width:100%;white-space:normal}dialog input,dialog select,dialog textarea{min-width:0}body [hidden]{display:none!important}@media(max-width:900px){header{align-items:start;flex-direction:column}main{grid-template-columns:180px minmax(0,1fr)}aside{padding:16px 10px}.workspace{margin:14px}.header-actions{gap:6px;justify-content:flex-start}.project-bar{gap:10px}}@media(max-width:650px){main{display:block}aside{border-right:0;border-bottom:1px solid #cbd5e1}#projects{display:flex;overflow:auto}.aside-bottom{display:none}.workspace{margin:12px}.project-bar{flex-wrap:wrap}.name-label{min-width:190px}.tabs{gap:4px}.tabs button{padding:8px}#source{height:300px;padding:16px}.editor-tools{gap:10px}#flow svg{min-width:600px}}
