:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#e8edf5;background:#101317;--muted-color: #64748b}*{box-sizing:border-box}body{margin:0}button{border:1px solid #3d4653;background:#202832;color:#e8edf5;border-radius:6px;padding:7px 10px;cursor:pointer}button:hover,button.active{border-color:#78a6ff;background:#263b5f}.app-shell{height:100vh;display:flex;flex-direction:column;overflow:hidden;color:#e8edf5;background:#101317;color-scheme:dark}.app-shell.theme-light{color:#172033;background:#f4f7fb;color-scheme:light}.debug-actions,.tabs,.viewer-tabs{display:flex;gap:8px;align-items:center}.debug-actions button{width:36px;height:36px;display:grid;place-items:center;padding:0}.download-zip-tooltip-wrap{position:relative;display:inline-grid;place-items:center}.download-zip-tooltip{position:absolute;top:calc(100% + 12px);left:0;z-index:12;width:min(340px,calc(100vw - 28px));display:grid;gap:8px;padding:13px 14px;border:1px solid #5f7fb3;border-radius:8px;background:linear-gradient(135deg,#182331fa,#0e151efa),#101820;color:#dce7f7;font-size:12px;line-height:1.35;box-shadow:0 18px 44px #00000061,inset 0 1px #ffffff14;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}.download-zip-tooltip:before{content:"";position:absolute;top:-6px;left:14px;width:10px;height:10px;border-left:1px solid #5f7fb3;border-top:1px solid #5f7fb3;background:#182331;transform:rotate(45deg)}.download-zip-tooltip strong{color:#fff;font-size:13px;letter-spacing:.02em}.download-zip-tooltip .tooltip-note{width:max-content;border:1px solid #8f6b2d;border-radius:999px;background:#2d2614;color:#ffd37a;padding:2px 8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.download-zip-tooltip .tooltip-steps{display:grid;gap:5px;border-left:2px solid #78a6ff;padding-left:10px;color:#f3f7ff}.download-zip-tooltip-wrap:hover .download-zip-tooltip,.download-zip-tooltip-wrap:focus-within .download-zip-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.button-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon-plus{color:#e8edf5}.icon-open{color:#ffd45a}.icon-save{color:#9fd0ff}.icon-run{color:#61d66f}.icon-compile{color:#ffb07c}.icon-download{color:#58a6ff}.icon-help{color:#c7d2fe}.icon-sun{color:#ffd45a}.icon-moon{color:#6d7f9f}.tabs{display:flex;gap:8px;align-items:center}.editor-tabs-panel{display:flex;flex-direction:column;background:#171d24;border-bottom:1px solid #2c333d}.file-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;justify-content:flex-start;padding:10px 12px 0}.tabs{height:42px;padding:8px 12px 0;overflow-x:auto;overflow-y:hidden}.tabs button,.viewer-tabs button{position:relative;height:36px;border-color:transparent;border-bottom-color:#2c333d;border-radius:7px 7px 0 0;background:#141a21;color:#b9c5d6;white-space:nowrap}.tabs button{cursor:grab;-webkit-user-select:none;user-select:none}.tabs .tab-add,.tabs .tab-file-action{flex:0 0 36px;width:36px;display:grid;place-items:center;padding:0;cursor:pointer}.file-actions .tab-file-action{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;padding:0;cursor:pointer;border-radius:7px;border-bottom-color:#3d4653}.tabs button:active,.tabs button.dragging{cursor:grabbing}.tabs button.dragging{opacity:.58}.tabs button.drag-over-before:before,.tabs button.drag-over-after:after{content:"";position:absolute;top:6px;bottom:6px;width:2px;border-radius:999px;background:#78a6ff;box-shadow:0 0 8px #78a6ffbf}.tabs button.drag-over-before:before{left:-2px}.tabs button.drag-over-after:after{right:-2px}.tabs button:hover,.viewer-tabs button:hover{border-color:#3d4653;border-bottom-color:#2c333d;background:#1d2630;color:#e8edf5}.file-actions .tab-file-action:hover{border-bottom-color:#78a6ff}.tabs button.active,.viewer-tabs button.active{margin-bottom:-1px;border-color:#3d4653;border-bottom-color:#111820;background:#111820;color:#fff;box-shadow:inset 0 2px #78a6ff}.workspace{min-height:0;flex:1;display:flex;align-items:stretch}.editor-pane,.debug-pane{min-height:0;min-width:0}.editor-pane{flex:0 0 var(--editor-width, 58%)}.editor-shell{position:relative;width:100%;height:100%}.cursor-position{position:absolute;right:12px;bottom:8px;z-index:4;border:1px solid #3d4653;border-radius:4px;background:#111820eb;color:#b9c5d6;padding:3px 7px;font:12px Consolas,Monaco,monospace;pointer-events:none;box-shadow:0 6px 18px #0000004d}.workspace-splitter{position:relative;z-index:2;flex:0 0 6px;align-self:stretch;cursor:col-resize;background:#2c333d;transition:background .12s ease,box-shadow .12s ease;touch-action:none}.workspace-splitter:before{content:"";position:absolute;top:0;right:-5px;bottom:0;left:-5px}.workspace-splitter:hover,.workspace-splitter.active{background:#78a6ff;box-shadow:0 0 0 1px #78a6ff73}.is-resizing-workspace{cursor:col-resize;-webkit-user-select:none;user-select:none}.is-dragging-modal{cursor:move;-webkit-user-select:none;user-select:none}.debug-pane{flex:1 1 0;display:flex;flex-direction:column;background:#111820;position:relative}.theme-light .editor-tabs-panel,.theme-light .debug-pane,.theme-light .json-tree-toolbar{background:#f8fafc}.theme-light .json-tree-toolbar{background:#fff;border-bottom-color:#d9e2ee;box-shadow:0 -16px 0 16px #fff}.theme-light .debug-pane{border-left-color:#d9e2ee}.debug-actions{flex:0 0 auto;justify-content:flex-start;padding:10px 200px 0 10px}.debug-top-right{position:absolute;top:10px;right:10px;z-index:3;display:flex;align-items:center;gap:8px}.help-button,.theme-toggle,.author-link{display:inline-flex;align-items:center;gap:8px;min-height:36px}.theme-toggle{width:36px;height:36px;justify-content:center;padding:0;border-radius:7px;border-color:#3d4653;background:#182231;color:#e8edf5}.help-button{padding:0 12px;border-color:#3d4653;border-radius:7px;background:#182231;color:#e8edf5;font-size:12px;font-weight:700}.help-button:hover,.theme-toggle:hover{border-color:#78a6ff;background:#263b5f}.author-link{padding:0 12px;border:1px solid #1F4E8C;border-radius:999px;background:linear-gradient(90deg,#0d2040,#1e1200);color:#e6edf3;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:700;letter-spacing:.03em;text-decoration:none;box-shadow:0 0 0 1px #58a6ff14,0 10px 28px #00000038}.author-link:hover{border-color:#58a6ff;color:#fff;background:linear-gradient(90deg,#12366b,#392100)}.author-link .spark{color:#f0a347}.viewer-tabs{padding:8px 10px 0;border-bottom:1px solid #2c333d;overflow-x:auto;overflow-y:hidden}.theme-light button{border-color:#c7d3e2;background:#fff;color:#172033}.theme-light button:hover,.theme-light button.active{border-color:#2f6dd8;background:#e8f0ff}.theme-light .tabs button,.theme-light .viewer-tabs button,.theme-light .help-tabs button{border-bottom-color:#d9e2ee;background:#edf2f8;color:#526174}.theme-light .tabs button:hover,.theme-light .viewer-tabs button:hover,.theme-light .help-tabs button:hover{border-color:#c7d3e2;border-bottom-color:#d9e2ee;background:#fff;color:#172033}.theme-light .file-actions .tab-file-action:hover{border-bottom-color:#2f6dd8}.theme-light .tabs button.active,.theme-light .viewer-tabs button.active,.theme-light .help-tabs button.active{border-color:#c7d3e2;border-bottom-color:#f8fafc;background:#f8fafc;color:#111827;box-shadow:inset 0 2px #2f6dd8}.theme-light .viewer-tabs,.theme-light .editor-tabs-panel,.theme-light .help-tabs,.theme-light .modal-header{border-color:#d9e2ee}.theme-light .help-tabs{background:#f7f9fb}.theme-light .workspace-splitter{background:#d9e2ee}.theme-light .workspace-splitter:hover,.theme-light .workspace-splitter.active{background:#2f6dd8}.theme-light .theme-toggle{border-color:#c7d3e2;background:#fff;color:#172033}.theme-light .file-actions .tab-file-action{border-bottom-color:#c7d3e2}.theme-light .tab-add .icon-plus{color:#172033}.theme-light .author-link{border-color:#b8c8dc;background:linear-gradient(90deg,#fff,#eef4fb);color:#17324f;box-shadow:0 8px 24px #0f172a1a}.theme-light .author-link:hover{border-color:#2f6dd8;background:linear-gradient(90deg,#f8fbff,#e8f0ff);color:#0f172a}.theme-light .download-zip-tooltip{border-color:#b8c8dc;background:linear-gradient(135deg,#fffffffa,#ebf1f8fa),#fff;color:#344256;box-shadow:0 18px 44px #0f172a2e,inset 0 1px #fffc}.theme-light .download-zip-tooltip:before{border-color:#b8c8dc;background:#fff}.theme-light .download-zip-tooltip strong{color:#172033}.theme-light .download-zip-tooltip .tooltip-note{border-color:#d59b35;background:#fff4d7;color:#8a5900}.theme-light .download-zip-tooltip .tooltip-steps{border-left-color:#2f6dd8;color:#172033}.theme-light .app-welcome,.theme-light .help-pane{background:#eef4fb}.theme-light .app-welcome .splash{background:#fff}.theme-light .app-welcome .app-name{color:#172033}.theme-light .app-welcome .version-badge{background-color:#fff;color:#00f}.theme-light .app-welcome .pill,.theme-light .app-welcome .pill.blue,.theme-light .app-welcome .pill.amber{background-color:#fff}.theme-light .app-welcome .recommended-search{background-color:#ebebeb;color:#00f}.theme-light .app-welcome .recommended-link{background-color:transparent;border-bottom-color:#0000ff3d;color:#00f}.theme-light .app-welcome .recommended-group-title{border-color:#58a6ff;color:#000}.theme-light .app-welcome .recommended-link small{color:#465568}.theme-light .app-welcome .recommended-link:after{color:#64748b}.theme-light .app-welcome .recommended-link:hover{border-bottom-color:#00f;background-color:#0000ff0f;color:#00c}.theme-light .console,.theme-light .viewer-code,.theme-light .memory-viewer,.theme-light .memory-empty,.theme-light .json-tree{background:#f8fafc;color:#172033}.theme-light .cursor-position,.theme-light .new-file-modal,.theme-light .help-modal,.theme-light .help-section,.theme-light .help-table-wrap{border-color:#c7d3e2;background:#fff;color:#172033}.theme-light .new-file-field,.theme-light .help-section ul,.theme-light .help-table,.theme-light .memory-toolbar label,.theme-light .memory-empty,.theme-light .info{color:#526174}.theme-light .new-file-field input,.theme-light .memory-toolbar input,.theme-light .console-stdin input,.theme-light .fallback-editor{border-color:#c7d3e2;background:#fff;color:#172033}.theme-light .help-table th{background:#edf2f8;color:#172033}.theme-light .help-table th,.theme-light .help-table td{border-bottom-color:#d9e2ee}.theme-light .help-section h3,.theme-light .help-table-section h3{color:#172033}.theme-light .help-section code,.theme-light .help-table code{border-color:#c7d3e2;background:#eef4fb;color:#1f5fbf}.theme-light .json-tree-children{border-left-color:#d9e2ee}.theme-light .json-tree-row:hover{background:#2f6dd81a}.theme-light .json-tree-toolbar button{border-color:#c7d3e2;background:#fff;color:#172033}.theme-light .json-tree-toolbar button:hover,.theme-light .json-tree-toolbar button:focus-visible{border-color:#2f6dd8;background:#e8f0ff;color:#172033}.theme-light .json-toggle{border:none;background-color:transparent;color:#00f}.theme-light .json-toggle:hover,.theme-light .json-toggle:focus-visible{border:none;background-color:transparent;color:#5da3fd}.theme-light .json-key,.theme-light .asm-instruction{color:#00f}.theme-light .stdout{color:#000}.theme-light .success,.theme-light .json-string,.theme-light .memory-ascii{color:#017504}.theme-light .stdin-echo{color:#00f}.theme-light form.console-line input,.theme-light .console-line form input,.theme-light .console-stdin input{background-color:transparent;caret-color:#00f}.theme-light .asm-register{color:#0af}.theme-light .json-number,.theme-light .asm-number,.theme-light .memory-address{color:#0b9104}.theme-light .asm-size{color:#ff4900}.theme-light .memory-bytes span{background:#e8eef6}.theme-light .memory-bytes .nonzero{color:#fff;background:#2f6dd8}.theme-light .modal-actions .primary{border-color:#b8c8dc;background:#e8f0ff;color:#172033}.console,.viewer-code,.memory-viewer,.memory-empty,.app-welcome{flex:1;overflow:auto;margin:0;padding:14px}.console,.viewer-code,.memory-viewer,.memory-empty{font-family:Consolas,Monaco,monospace;font-size:13px;line-height:1.45}.app-welcome{display:grid;align-items:start;justify-items:center;background:#0d1117}.app-welcome .splash{width:min(680px,100%)}.console-line{white-space:pre-wrap;margin-bottom:4px}.console-stdin{display:inline-flex;width:min(360px,100%)}.console-stdin input{width:100%;min-width:16ch;border:0;background:#0d1117;background:transparent;color:inherit;caret-color:#9fd0ff;padding:0;font:inherit;line-height:inherit;outline:0}.success{color:#88d18a}.error{color:#ff8f8f}.warn{color:#ffd37a}.stdout{color:#9fd0ff}.stdin-echo{color:#ffd37a}.info{color:#b9c5d6}.viewer-code{color:#d8e2f0}.json-tree{white-space:pre;overflow:auto;line-height:1.45}.json-tree-toolbar{position:sticky;top:0;z-index:5;display:flex;gap:8px;margin:0;padding:10px 0 12px;background:#111820;border-bottom:1px solid #2c333d;box-shadow:0 -16px 0 16px #111820}.json-tree-toolbar button{border:1px solid #2c333d;border-radius:6px;background:#182331;color:#d8e2f0;font:inherit;line-height:1;padding:7px 10px;cursor:pointer}.json-tree-toolbar button:hover,.json-tree-toolbar button:focus-visible{border-color:#78a6ff;color:#fff;outline:none}.json-tree-node,.json-tree-leaf{min-width:max-content}.json-tree-row{display:flex;align-items:center;min-height:22px;border-radius:4px}.json-tree-row:hover{background:#78a6ff14}.json-tree-children{margin-left:20px;padding-left:10px;border-left:1px solid #2c333d}.json-toggle,.json-tree-spacer{flex:0 0 20px;width:20px;height:20px;margin:0 2px 0 0}.json-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#9fd0ff;font-family:Consolas,Monaco,monospace;font-size:12px;cursor:pointer}.json-toggle:hover,.json-toggle:focus-visible{border-color:#3a4a5e;background:#182331;color:#fff;outline:none}.json-key{color:#9fd0ff}.json-punctuation,.json-summary{color:#728197}.json-string{color:#88d18a}.json-number{color:#f2c97d}.json-boolean{color:#c9a7ff}.json-null{color:#728197}.assembly-code{-moz-tab-size:2;tab-size:2}.asm-line{display:inline}.asm-line-number{display:inline-block;width:36px;margin-right:12px;color:#526174;-webkit-user-select:none;user-select:none}.asm-source{white-space:pre}.asm-comment{color:#728197}.asm-label{color:#ffd37a}.asm-instruction{color:#9fd0ff;font-weight:700}.asm-register{color:#88d18a}.asm-directive{color:#d9a9ff}.asm-size{color:#ffb07c}.asm-number{color:#f4e285}.asm-punctuation{color:#8b98aa}.memory-empty{color:#b9c5d6}.memory-viewer{display:flex;flex-direction:column;gap:12px}.memory-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.memory-toolbar label{display:flex;align-items:center;gap:2px;color:#b9c5d6}.memory-toolbar input{width:92px;border:1px solid #3d4653;border-radius:4px;background:#101820;color:#e8edf5;padding:6px;font-family:Consolas,Monaco,monospace}.memory-table{display:grid;gap:4px}.memory-row{display:grid;grid-template-columns:86px minmax(400px,1fr) 150px;gap:12px;align-items:center}.memory-address{color:#ffd37a}.memory-bytes{display:grid;grid-template-columns:repeat(16,24px);gap:4px}.memory-bytes span{border-radius:4px;padding:3px 0;text-align:center;background:#1d2630}.memory-bytes .zero{color:#526174}.memory-bytes .nonzero{color:#101317;background:#9fd0ff}.memory-ascii{color:#88d18a;white-space:pre}.fallback-editor{width:100%;height:100%;resize:none;background:#111;color:#eee;border:0;padding:12px;font-family:Consolas,Monaco,monospace}.hidden{display:none}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:20px;background:#00000094}.new-file-modal{width:min(420px,100%);display:grid;gap:16px;border:1px solid #3d4653;border-radius:8px;background:#151a20;box-shadow:0 24px 80px #00000073}.help-modal{width:min(900px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 32px));display:grid;grid-template-rows:auto auto minmax(0,1fr);border:1px solid #3d4653;border-radius:8px;background:#151a20;box-shadow:0 24px 80px #00000073}.help-utility-window{position:fixed;top:50%;left:50%;z-index:20;transform:translate(calc(-50% + var(--help-x, 0px)),calc(-50% + var(--help-y, 0px)))}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #2c333d}.modal-header h2{margin:0;font-size:18px;font-weight:700}.modal-header button{width:32px;height:32px;padding:0}.draggable-modal-header{cursor:move;touch-action:none}.draggable-modal-header button{cursor:pointer}.new-file-field{display:grid;gap:8px;padding:0 16px;color:#b9c5d6;font-size:13px;font-weight:700}.new-file-field input{width:100%;border:1px solid #3d4653;border-radius:6px;background:#101820;color:#e8edf5;padding:10px 11px;font:14px Consolas,Monaco,monospace}.new-file-field input:focus{outline:2px solid #78a6ff;outline-offset:1px;border-color:#78a6ff}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 16px 16px}.modal-actions .primary{border-color:#78a6ff;background:#263b5f}.help-tabs{display:flex;gap:8px;padding:10px 16px 0;border-bottom:1px solid #2c333d;overflow-x:auto}.help-pane{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#0d1117}.help-tabs button{height:36px;border-color:transparent;border-bottom-color:#2c333d;border-radius:7px 7px 0 0;background:#141a21;color:#b9c5d6;font-weight:700}.help-tabs button:hover{border-color:#3d4653;border-bottom-color:#2c333d;background:#1d2630;color:#e8edf5}.help-tabs button.active{margin-bottom:-1px;border-color:#3d4653;border-bottom-color:#151a20;background:#151a20;color:#fff;box-shadow:inset 0 2px #78a6ff}.help-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:auto;padding:16px}.help-content-table,.help-content-structures{grid-template-columns:1fr}.help-section{min-width:0;border:1px solid #2c333d;border-radius:8px;background:#101820;padding:14px}.help-section h3{margin:0 0 10px;color:#fff;font-size:15px}.help-table-section{min-width:0;display:grid;gap:10px;align-content:start}.help-table-section h3{margin:0;color:#fff;font-size:15px}.help-table-wrap{overflow:auto;border:1px solid #2c333d;border-radius:8px;background:#101820}.help-table{width:100%;min-width:680px;border-collapse:collapse;color:#b9c5d6;font-size:13px;line-height:1.4}.help-data-table{min-width:860px}.help-table th,.help-table td{padding:10px 12px;border-bottom:1px solid #26313d;text-align:left;vertical-align:top}.help-table th{position:sticky;top:0;z-index:1;background:#182231;color:#fff;font-size:12px;text-transform:uppercase}.help-table tr:last-child td{border-bottom:0}.help-section ul{display:grid;gap:8px;margin:0;padding-left:18px;color:#b9c5d6;font-size:13px;line-height:1.45}.help-section code,.help-table code{border:1px solid #2c333d;border-radius:4px;background:#0d1117;color:#9fd0ff;padding:1px 4px;font-family:Consolas,Monaco,monospace;font-size:12px}.help-function-insert{height:auto;border:0;background:transparent;padding:0;color:inherit;text-align:left}.help-function-insert:hover{background:transparent}.help-function-insert:hover code,.help-function-insert:focus-visible code{border-color:#78a6ff;color:#fff;background:#182b46}.help-function-insert:focus-visible{outline:2px solid #78a6ff;outline-offset:2px}.help-status{display:inline-flex;align-items:center;min-height:22px;border:1px solid #3d4653;border-radius:999px;padding:2px 8px;white-space:nowrap;color:#d8e2f0;font-size:12px;font-weight:700}.help-status.available{border-color:#2f7d4a;background:#14321f;color:#88d18a}.help-status.reference{border-color:#6b5a2c;background:#2d2614;color:#ffd37a}@media(max-width:860px){.workspace{flex-direction:column}.editor-pane{flex:0 0 var(--editor-width, 25%)}.workspace-splitter{flex:0 0 12px;cursor:row-resize}.workspace-splitter:before{top:-6px;right:0;bottom:-6px;left:0}.debug-pane{flex:1 1 0;border-top:1px solid #2c333d}.is-resizing-workspace{cursor:row-resize}.file-actions{display:none}.debug-actions{padding-right:10px;padding-top:10px}.help-content{grid-template-columns:1fr}.help-table{min-width:620px}.author-link span:last-child{display:none}}
