:root{color-scheme:light;--ink:#1b365d;--text:#304359;--muted:#768496;--line:#e3e9ef;--page:#f4f6f9;--orange:#c85d32;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--page)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button{border:0}a{color:var(--ink)}[hidden]{display:none!important}:focus-visible{outline:3px solid #cb784e;outline-offset:3px}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:absolute;top:10px;left:10px;z-index:50;padding:12px;background:#fff}
.topbar{height:72px;background:#142b46;color:white;padding:0 36px;display:flex;align-items:center;gap:24px}.brand{font-size:17px;font-weight:700;letter-spacing:-.025em;color:white;text-decoration:none;white-space:nowrap}.brand span{font-weight:500}.studio-name{display:flex;align-items:center;gap:24px;font-size:13px;color:#d7e0eb}.brand-divider{height:22px;border-left:1px solid #ffffff30}.topbar nav{display:flex;align-items:center;gap:24px;margin-left:auto}.topbar .quiet,.back-link{color:#e1e8f1;font-size:12px;text-decoration:none}.quiet{background:transparent;color:var(--muted);padding:6px 8px;font-size:12px;font-weight:550;border-radius:5px;white-space:nowrap}.quiet:hover{color:var(--ink);background:#e9eef5}.topbar .quiet:hover{background:#ffffff10;color:white}.back-link span{margin-left:8px}
main{max-width:1600px;margin:auto;padding:36px 36px 16px}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:700;margin:0 0 10px;color:var(--muted)}h1{font-family:Georgia,serif;font-size:36px;font-weight:500;line-height:1.2;margin:0 0 10px;color:var(--ink);letter-spacing:-.03em}h1 em{font-weight:400;color:#5f7999}.intro p:not(.eyebrow){margin:0;font-size:13px;color:var(--muted)}.local-note{font-size:11px;color:#718276;display:flex;gap:8px;align-items:center;margin-bottom:3px}.status-dot{width:6px;height:6px;border-radius:50%;background:#688777}
.workbench{background:white;border:1px solid #dce3eb;border-radius:12px;box-shadow:0 10px 38px #142b4606;overflow:hidden}.toolbar{min-height:66px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:#fcfdfe}.file-tools,.run-tools{display:flex;align-items:center;gap:10px;min-width:0}.toolbar select{color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:8px 28px 8px 10px;max-width:205px;background:#fff;font-size:12px;cursor:pointer}.toolbar-rule{height:20px;border-left:1px solid var(--line);margin:0 3px}#runtime-status{font-size:11px;color:var(--muted);max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run,.stop{height:36px;border-radius:6px;display:flex;gap:10px;align-items:center;padding:0 16px;font-size:12px;font-weight:600}.run{background:var(--ink);color:white;min-width:105px;justify-content:center}.run:hover:enabled{background:#2b4d78}.run span{font-size:10px}.run kbd{font-size:10px;font-family:inherit;font-weight:400;opacity:.55;margin-left:5px}.stop{background:#f0f3f7;color:#516378;padding-inline:10px}.stop span{font-size:9px}.stop:enabled{color:#a7472c;background:#f9ede8}.panels{display:grid;grid-template-columns:1fr 1fr;height:clamp(560px,calc(100dvh - 304px),950px)}.editor-panel{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}.panel-head{height:43px;min-height:43px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:8px}.panel-head h2{margin:0;font-size:11px;font-weight:650;letter-spacing:.01em;display:flex;align-items:center;gap:8px}.file-dot{width:6px;height:6px;border-radius:50%;background:#c78c56}#save-status{font-size:10px;color:#8994a2}.editor-foot{display:flex;justify-content:space-between;gap:12px;color:#9aa5b1;padding:8px 18px;border-top:1px solid var(--line);font-size:10px}#editor{flex:1;min-height:0;overflow:hidden}#fallback-editor{width:100%;height:100%;resize:none;border:0;outline:0;padding:24px;font:15px/1.8 Consolas,monospace;tab-size:4;color:var(--ink)}.result-column{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(220px,1fr) minmax(185px,.65fr)}.visual-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}.figure-tools{display:flex;align-items:center;gap:2px}.count{font-size:10px;color:var(--muted);font-weight:400}.empty-state{margin:auto;text-align:center;color:#9aa6b4;padding:20px}.empty-state svg{width:110px;height:82px;fill:none;stroke:#d5dee8;stroke-width:1.5;margin-bottom:12px}.empty-state svg .curve{stroke:#90a6c0;stroke-width:2}.empty-state svg circle{fill:#c6845c;stroke:#c6845c}.empty-state h3{font-family:Georgia,serif;font-size:21px;font-weight:400;margin:0 0 9px;color:#60738c}.empty-state p{font-size:12px;line-height:1.7;margin:0}#visual-output{flex:1;min-height:0;display:flex;overflow:auto;background:#fff}#figures{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}#figures>img,#figures>svg{width:100%;height:100%;object-fit:contain;display:block}#figures>svg{background:white}
.console-panel{display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--line);background:#f9fbfd}.console-panel .panel-head{background:#f6f8fb}#console-output{margin:0;padding:16px 20px;flex:1;min-height:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 "Cascadia Code",Consolas,monospace;color:#314b67}.console-hint{color:#91a0b0}.console-error{color:#b33e35}.console-input-echo{color:#327369}.console-info{color:#7c8b9b}#input-form{display:flex;gap:8px;align-items:center;padding:10px 18px;background:#edf3fa;border-top:1px solid #dfe7f1}#input-form label{color:#587ba2;font-size:22px}#console-input{min-width:0;flex:1;background:white;border:1px solid #bdcfe2;border-radius:5px;padding:8px 10px;font:13px Consolas,monospace;color:var(--ink)}#input-form button{background:var(--ink);color:white;border-radius:5px;font-size:11px;padding:9px 12px}.console-state{margin:0;padding:6px 18px;border-top:1px solid var(--line);font-size:10px;color:#8a98a8}.studio-footer{display:flex;justify-content:space-between;align-items:center;color:#8c99a8;font-size:11px;padding-top:10px}.studio-footer p{margin:0}.notice{font-size:12px;background:#fff5e9;color:#845c2c;padding:12px 18px;border-bottom:1px solid #f0dfc8}.notice a{color:inherit}
dialog{border:1px solid var(--line);border-radius:16px;padding:28px 32px;max-width:640px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;color:var(--text);box-shadow:0 24px 100px #10294144}dialog::backdrop{background:#122b4680;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.dialog-head p{margin:0}dialog h2{font:32px Georgia,serif;color:var(--ink);margin:16px 0}dialog h3{font-size:14px;color:var(--ink);margin-top:24px}dialog p,dialog li{font-size:13px;line-height:1.75}dialog ol{padding-left:20px}dialog code{font:12px Consolas,monospace;background:#edf2f7;padding:2px 4px;border-radius:3px}
.data-files{padding:8px 18px;display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);background:#f8fafc}.data-files button{font:11px Consolas,monospace;color:#416281;background:#e8eff7;padding:5px 9px;border-radius:4px}.data-files button:hover{background:#d8e4f1}
.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:24px}#replace-dialog{max-width:460px}
@media(min-width:1700px){main{padding-top:46px}.intro{margin-bottom:32px}}
@media(max-width:1050px){.topbar{padding:0 22px}.studio-name{display:none}main{padding:26px 20px 14px}.toolbar{flex-wrap:wrap}.run-tools{margin-left:auto}#runtime-status{max-width:130px}.panels{height:650px}.local-note{display:none}.toolbar-rule{display:none}}
@media(max-width:700px){.topbar{height:64px;gap:12px}.brand{font-size:14px}.topbar nav{gap:4px}.back-link{display:none}main{padding:24px 12px 12px}.intro{padding-inline:6px}h1{font-size:31px}.intro p:not(.eyebrow){font-size:12px}.toolbar{padding:10px;gap:10px}.file-tools{width:100%;justify-content:space-between;gap:4px}.toolbar select{max-width:190px}.run-tools{width:100%;justify-content:flex-end}#runtime-status{margin-right:auto;max-width:180px}.panels{grid-template-columns:1fr;height:auto}.editor-panel{height:380px;border-right:0;border-bottom:1px solid var(--line)}.result-column{grid-template-rows:320px 230px}.editor-foot{font-size:9px;padding-inline:12px}.panel-head{padding-inline:12px}#save-status{font-size:9px}.studio-footer{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 6px}.studio-footer button{padding-left:0}.run kbd{display:none}dialog{padding:22px}#input-form{padding-inline:12px}}
@media(max-width:700px){.file-tools{flex-wrap:wrap;justify-content:flex-start;gap:4px}.toolbar select{flex:1;max-width:none;min-width:100%;margin-bottom:2px}.file-tools>.quiet{flex:1}}
