.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}:root,[data-theme=dark]{--bg: #24283b;--bg-dark: #1f2335;--bg-darker: #1b1e2d;--bg-highlight: #292e42;--bg-visual: #2e3c64;--fg: #c0caf5;--fg-dark: #a9b1d6;--fg-gutter: #3b4261;--comment: #6b7394;--dark3: #545c7e;--dark5: #8891b5;--border: #292e42;--blue: #7aa2f7;--cyan: #7dcfff;--green: #9ece6a;--green1: #73daca;--yellow: #e0af68;--orange: #ff9e64;--red: #f7768e;--magenta: #bb9af7;--purple: #9d7cd8;--teal: #1abc9c;--blue5: #89ddff;--panel-header-bg: #303447;--panel-header-fg: #bbc0d9;--syn-keyword: #bb9af7;--syn-type: #2ac3de;--syn-string: #9ece6a;--syn-number: #ff9e64;--syn-comment: #6b7394;--syn-operator: #89ddff;--syn-builtin: #7aa2f7;--syn-atom: #ff9e64;--syn-variable: #c0caf5}[data-theme=dark-monokai]{--bg: #272822;--bg-dark: #1e1f1c;--bg-darker: #171812;--bg-highlight: #3e3d32;--bg-visual: #49483e;--fg: #f8f8f2;--fg-dark: #e6e6dc;--fg-gutter: #3b3a32;--comment: #75715e;--dark3: #5b594b;--dark5: #8f8b77;--border: #3e3d32;--blue: #66d9ef;--cyan: #66d9ef;--green: #a6e22e;--green1: #a6e22e;--yellow: #e6db74;--orange: #fd971f;--red: #f92672;--magenta: #ae81ff;--purple: #ae81ff;--teal: #4ec9b0;--blue5: #78dce8;--panel-header-bg: #34352d;--panel-header-fg: #f8f8f2;--syn-keyword: #f92672;--syn-type: #66d9ef;--syn-string: #e6db74;--syn-number: #ae81ff;--syn-comment: #75715e;--syn-operator: #f92672;--syn-builtin: #66d9ef;--syn-atom: #ae81ff;--syn-variable: #f8f8f2}[data-theme=light]{--bg: #e1e2e7;--bg-dark: #d0d5e3;--bg-darker: #c4c8da;--bg-highlight: #d2d4dd;--bg-visual: #b7c1e3;--fg: #1e3a5f;--fg-dark: #4e5f99;--fg-gutter: #8890b5;--comment: #6b739e;--dark3: #7880a3;--dark5: #505882;--border: #c4c8da;--blue: #2e7de9;--cyan: #007197;--green: #4a6530;--green1: #2b5a52;--yellow: #7a5c30;--orange: #d97a00;--red: #e02050;--magenta: #8740e0;--purple: #6a3aab;--teal: #0e7a65;--blue5: #007197;--panel-header-bg: #dadeec;--panel-header-fg: #1f395f;--syn-keyword: #8740e0;--syn-type: #006080;--syn-string: #4a6530;--syn-number: #9a4f00;--syn-comment: #6b739e;--syn-operator: #006080;--syn-builtin: #2567d0;--syn-atom: #9a4f00;--syn-variable: #1e3a5f}[data-theme=high-contrast]{--bg: #e1e2e7;--bg-dark: #d0d5e3;--bg-darker: #c4c8da;--bg-highlight: #d2d4dd;--bg-visual: #b7c1e3;--fg: #101828;--fg-dark: #283050;--fg-gutter: #505882;--comment: #6b739e;--dark3: #505882;--dark5: #303860;--border: #b0b4c8;--blue: #0055ff;--cyan: #0099cc;--green: #008800;--green1: #009977;--yellow: #bb8800;--orange: #dd6600;--red: #dd1144;--magenta: #9900dd;--purple: #7700cc;--teal: #009977;--blue5: #0099cc;--panel-header-bg: #dadeec;--panel-header-fg: #101828;--syn-keyword: #9900dd;--syn-type: #0e91bd;--syn-string: #008800;--syn-number: #dd6600;--syn-comment: #6b739e;--syn-operator: #0055ff;--syn-builtin: #0066ee;--syn-atom: #dd6600;--syn-variable: #101828}[data-theme=dracula]{--bg:#282a36;--bg-dark:#21222c;--bg-darker:#191a21;--bg-highlight:#343746;--bg-visual:#44475a;--fg:#f8f8f2;--fg-dark:#d7d7cf;--fg-gutter:#6272a4;--comment:#8b92b7;--dark3:#6272a4;--dark5:#aab0d0;--border:#44475a;--blue:#8be9fd;--cyan:#8be9fd;--green:#50fa7b;--green1:#69ff94;--yellow:#f1fa8c;--orange:#ffb86c;--red:#ff5555;--magenta:#ff79c6;--purple:#bd93f9;--teal:#8be9fd;--blue5:#8be9fd;--panel-header-bg:#30323f;--panel-header-fg:#f8f8f2;--syn-keyword:#ff79c6;--syn-type:#8be9fd;--syn-string:#f1fa8c;--syn-number:#bd93f9;--syn-comment:#8b92b7;--syn-operator:#ff79c6;--syn-builtin:#50fa7b;--syn-atom:#bd93f9;--syn-variable:#f8f8f2}[data-theme=nord]{--bg:#2e3440;--bg-dark:#272c36;--bg-darker:#20242d;--bg-highlight:#3b4252;--bg-visual:#434c5e;--fg:#eceff4;--fg-dark:#d8dee9;--fg-gutter:#4c566a;--comment:#929db2;--dark3:#616e88;--dark5:#aeb8c9;--border:#4c566a;--blue:#88c0d0;--cyan:#8fbcbb;--green:#a3be8c;--green1:#8fbcbb;--yellow:#ebcb8b;--orange:#d08770;--red:#bf616a;--magenta:#b48ead;--purple:#b48ead;--teal:#8fbcbb;--blue5:#81a1c1;--panel-header-bg:#353c49;--panel-header-fg:#eceff4;--syn-keyword:#b48ead;--syn-type:#8fbcbb;--syn-string:#a3be8c;--syn-number:#d08770;--syn-comment:#929db2;--syn-operator:#88c0d0;--syn-builtin:#81a1c1;--syn-atom:#d08770;--syn-variable:#eceff4}[data-theme=solarized-dark]{--bg:#073642;--bg-dark:#002f3b;--bg-darker:#002b36;--bg-highlight:#104552;--bg-visual:#15505e;--fg:#f3ead0;--fg-dark:#d7cdb2;--fg-gutter:#586e75;--comment:#8b9a9b;--dark3:#657b83;--dark5:#a9b4af;--border:#315763;--blue:#5faee3;--cyan:#2aa198;--green:#9ab51d;--green1:#2aa198;--yellow:#d0a900;--orange:#e27b2d;--red:#e75b66;--magenta:#d064b7;--purple:#8f79c6;--teal:#2aa198;--blue5:#5faee3;--panel-header-bg:#0d3c47;--panel-header-fg:#f3ead0;--syn-keyword:#d064b7;--syn-type:#2aa198;--syn-string:#9ab51d;--syn-number:#e27b2d;--syn-comment:#8b9a9b;--syn-operator:#5faee3;--syn-builtin:#5faee3;--syn-atom:#d0a900;--syn-variable:#f3ead0}[data-theme=github-light]{--bg:#fff;--bg-dark:#f6f8fa;--bg-darker:#eaeef2;--bg-highlight:#eaeef2;--bg-visual:#d0d7de;--fg:#24292f;--fg-dark:#424a53;--fg-gutter:#8c959f;--comment:#57606a;--dark3:#6e7781;--dark5:#424a53;--border:#d0d7de;--blue:#0969da;--cyan:#0969da;--green:#116329;--green1:#1a7f37;--yellow:#7d4e00;--orange:#bc4c00;--red:#cf222e;--magenta:#8250df;--purple:#8250df;--teal:#0a7a66;--blue5:#0969da;--panel-header-bg:#f0f3f6;--panel-header-fg:#24292f;--syn-keyword:#cf222e;--syn-type:#8250df;--syn-string:#0a3069;--syn-number:#0550ae;--syn-comment:#57606a;--syn-operator:#cf222e;--syn-builtin:#8250df;--syn-atom:#0550ae;--syn-variable:#24292f}[data-theme=solarized-light]{--bg:#fdf6e3;--bg-dark:#eee8d5;--bg-darker:#e1dac5;--bg-highlight:#e7dfca;--bg-visual:#d4cdb8;--fg:#3c4b4e;--fg-dark:#526467;--fg-gutter:#93a1a1;--comment:#657b83;--dark3:#839496;--dark5:#4f6063;--border:#c9c1aa;--blue:#006db3;--cyan:#087f78;--green:#5d7300;--green1:#087f78;--yellow:#8a6d00;--orange:#bd5200;--red:#cf3646;--magenta:#b12a89;--purple:#6c5aa0;--teal:#087f78;--blue5:#006db3;--panel-header-bg:#e8e1cc;--panel-header-fg:#3c4b4e;--syn-keyword:#b12a89;--syn-type:#087f78;--syn-string:#5d7300;--syn-number:#bd5200;--syn-comment:#657b83;--syn-operator:#006db3;--syn-builtin:#006db3;--syn-atom:#8a6d00;--syn-variable:#3c4b4e}[data-theme=high-contrast-dark]{--bg:#000;--bg-dark:#080808;--bg-darker:#000;--bg-highlight:#1f1f1f;--bg-visual:#333;--fg:#fff;--fg-dark:#eee;--fg-gutter:#aaa;--comment:#c7c7c7;--dark3:#aaa;--dark5:#ddd;--border:#fff;--blue:#6eb6ff;--cyan:#4de8ff;--green:#63ed73;--green1:#45f0c2;--yellow:#ffe66b;--orange:#ffad5c;--red:#ff727d;--magenta:#ff86ef;--purple:#c69cff;--teal:#45f0c2;--blue5:#4de8ff;--panel-header-bg:#111;--panel-header-fg:#fff;--syn-keyword:#ff86ef;--syn-type:#4de8ff;--syn-string:#63ed73;--syn-number:#ffad5c;--syn-comment:#c7c7c7;--syn-operator:#6eb6ff;--syn-builtin:#ffe66b;--syn-atom:#ffad5c;--syn-variable:#fff}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Arial,sans-serif;background:var(--bg-darker);color:var(--fg);min-height:100vh}.header{height:44px;background:var(--bg-dark);border-radius:8px;margin:15px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;position:fixed;top:0;left:0;right:0;z-index:100}.header-logo{display:flex;align-items:center;gap:6px;flex-shrink:0}.logo-icon{color:var(--blue);font-size:18px}.logo-text{color:var(--fg);font-size:20px;font-weight:600;white-space:nowrap}.logo-text small{color:#818ab2;font-weight:400;font-size:14px}.beta-tag{display:inline-flex;align-items:center;padding:2px 8px;margin-left:8px;font-size:11px;font-family:inherit;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--blue);background-color:var(--bg-highlight);border:1px solid var(--blue);border-radius:12px;vertical-align:middle;line-height:1.4;cursor:pointer}.beta-tag:hover{opacity:.85}:focus-visible{outline:3px solid var(--blue5);outline-offset:2px}button,select,input[type=button],input[type=submit]{min-width:24px;min-height:24px}input[type=checkbox]{min-width:20px;min-height:20px}.modal{max-height:calc(100vh - 32px);overflow:auto}.modal-tab-panel[hidden]{display:none!important}@media (max-width: 700px),(max-height: 520px){.modal-overlay{align-items:flex-start;overflow:auto;padding:8px}.modal{width:100%;max-width:100%;max-height:none}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.header-controls{display:flex;align-items:center;gap:4px;flex:1;justify-content:center;min-width:0;overflow:visible}.controls-exec,.controls-file{display:flex;align-items:center;gap:4px}.header-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.toolbar-btn.btn-menu,.mobile-menu{display:none}.toolbar-btn{background:var(--bg-highlight);color:var(--fg);border:1px solid var(--border);padding:4px 10px;font-size:12px;cursor:pointer;border-radius:4px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.toolbar-btn svg{width:14px;height:14px;transition:background .15s}.toolbar-btn:hover:not(:disabled){background:var(--bg-visual)}.toolbar-btn:disabled{opacity:.4;cursor:default}.btn-run{color:var(--green)}.btn-stop{color:var(--red)}.btn-step{color:var(--blue)}.btn-theme{color:var(--orange);font-size:14px;padding:4px 8px}.toolbar-separator{width:1px;height:20px;background:var(--border);margin:0 4px;flex-shrink:0}.btn-group{display:inline-flex;position:relative}.btn-group .toolbar-btn:first-child{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}.btn-dropdown{border-top-left-radius:0;border-bottom-left-radius:0;padding:4px 6px}.btn-dropdown svg{width:12px;height:12px}.dropdown-menu{position:absolute;top:100%;right:0;margin-top:4px;background:var(--bg);border:1px solid var(--border);border-radius:4px;box-shadow:0 4px 12px #0000004d;z-index:1000;min-width:140px}.dropdown-menu.hidden{display:none}.dropdown-item{display:block;width:100%;padding:8px 12px;text-align:left;background:none;border:none;color:var(--fg);font-size:12px;cursor:pointer;font-family:inherit}.dropdown-item:hover{background:var(--bg-highlight)}.footer{height:30px;background:var(--bg-dark);border-radius:8px;margin:15px;display:flex;align-items:center;padding:0 12px;position:fixed;bottom:0;left:0;right:0;z-index:100;gap:16px}.footer-item{font-size:12px;color:var(--dark5);white-space:nowrap;display:inline-flex;align-items:center;gap:4px}button.footer-item{background:none;border:none;padding:0;font-family:inherit}.footer-icon{width:13px;height:13px}.footer-item#compiler-status{color:var(--green);font-weight:500}.footer-version,.footer-credits{cursor:pointer;transition:color .15s}.footer-version:hover,.footer-credits:hover{color:var(--blue)}.footer-spacer{flex:1}.autosave-status,.section-visibility-trigger{cursor:pointer;transition:color .15s}.autosave-status:hover,.section-visibility-trigger:hover,.section-visibility-trigger[aria-expanded=true]{color:var(--blue)}.autosave-status.is-saving{color:var(--yellow)}.autosave-status.is-error{color:var(--red)}.autosave-status.is-restored{color:var(--green)}.section-visibility{position:relative;display:flex}.sections-menu{position:absolute;right:0;bottom:calc(100% + 10px);width:190px;padding:10px;display:flex;flex-direction:column;gap:8px;background:var(--bg-dark);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #00000059}.sections-menu.hidden{display:none}.sections-menu-title{color:var(--fg);font-size:12px;font-weight:600}.sections-menu label{display:flex;align-items:center;gap:8px;color:var(--fg-dark);font-size:12px;cursor:pointer}.sections-menu input{accent-color:var(--blue)}.sections-menu button{margin-top:3px;padding:6px 8px;color:var(--blue);background:var(--bg-highlight);border:1px solid var(--border);border-radius:5px;font:inherit;font-size:11px;cursor:pointer}.tab-bar{background-color:var(--panel-header-bg);display:flex;align-items:center;gap:6px;padding:3px;border-radius:8px 8px 0 0;min-height:28px;flex-shrink:0}.tab-list{display:flex;gap:1px;overflow-x:auto;flex:0 1 auto;min-width:0;scrollbar-width:none}.tab-list::-webkit-scrollbar{display:none}.tab-item{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:8px;font-size:12px;color:var(--comment);cursor:pointer;white-space:nowrap;flex-shrink:0;border:1px solid transparent;transition:background .15s,color .15s}.tab-item:hover{color:var(--fg-dark);background:var(--bg-highlight)}.tab-item.active{background:var(--bg);color:var(--fg);border-color:var(--border)}.tab-item.dragging{opacity:.4}.tab-item.drag-over-left{box-shadow:-2px 0 0 0 var(--blue)}.tab-item.drag-over-right{box-shadow:2px 0 0 0 var(--blue)}.tab-name{max-width:140px;overflow:hidden;text-overflow:ellipsis}.tab-close{display:flex;align-items:center;justify-content:center;background:none;border:none;color:inherit;cursor:pointer;padding:0;opacity:.4;transition:opacity .15s;line-height:1}.tab-close:hover{opacity:1;color:var(--red)}.tab-close svg{width:12px;height:12px}.tab-add{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--bg-dark);border:1px solid transparent;border-radius:8px;color:var(--comment);font-size:16px;cursor:pointer;flex-shrink:0;transition:background .15s,color .15s}.tab-add:hover{background:var(--bg-highlight);color:var(--fg)}.tab-bar-indent{display:flex;align-items:center;gap:4px;margin-left:auto;height:28px;padding:0 8px;background:var(--bg-dark);border:1px solid transparent;border-radius:8px;color:var(--comment);font-size:12px;cursor:pointer;flex-shrink:0;transition:background .15s,color .15s;white-space:nowrap}.tab-bar-indent:hover{background:var(--bg-highlight);color:var(--fg)}.tab-bar-indent svg{width:14px;height:14px}.main-content{padding:80px 15px 55px;min-height:100vh}.grid-container{display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr 1fr;gap:15px;height:calc(100vh - 145px)}.editor-column{grid-column:1}.variables-panel{grid-column:2;grid-row:1}.terminal-panel{grid-column:2;grid-row:2}.section-hidden{display:none!important}.grid-container.section-editor-hidden{grid-template-columns:1fr}.grid-container.section-editor-hidden .variables-panel,.grid-container.section-editor-hidden .terminal-panel{grid-column:1;width:100%}.grid-container.section-variables-hidden .terminal-panel,.grid-container.section-terminal-hidden .variables-panel{grid-row:1 / -1}.grid-container.section-variables-hidden.section-terminal-hidden{grid-template-columns:1fr}.editor-panel,.variables-panel,.terminal-panel{position:relative;overflow:hidden;border-radius:8px}.editor-column{grid-row:1 / -1;display:flex;flex-direction:column;min-height:200px;min-width:200px}.editor-panel{background:var(--bg);flex:1;min-height:0;border-radius:0 0 8px 8px}#codemirror-host{height:100%;width:100%}#codemirror-host .CodeMirror{height:100%;font-size:14px;font-family:Menlo,Meslo LG,Fira Code,Monaco,Courier New,monospace}.CodeMirror-scroll{padding-top:2px}.variables-panel{background:var(--bg);display:flex;flex-direction:column;width:350px;min-width:150px;min-height:240px}.terminal-panel{background:var(--bg-dark);display:flex;flex-direction:column;width:350px;min-width:150px;min-height:240px}.panel-header{font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding:4px 10px;background:var(--panel-header-bg);color:var(--panel-header-fg);border-bottom:1px solid var(--border);flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.panel-header-btn{background:none;border:none;color:var(--panel-header-fg);cursor:pointer;padding:2px;display:flex;align-items:center;opacity:.6}.panel-header-btn:hover:not(:disabled){opacity:1}.panel-header-btn:disabled{opacity:.3;cursor:not-allowed}.panel-header-btn svg{width:14px;height:14px}.panel-body{flex:1;overflow-y:auto;position:relative}#variables-table{width:100%;border-collapse:collapse;font-size:12px;font-family:Menlo,Meslo LG,Fira Code,Monaco,Courier New,monospace}#variables-table thead{position:sticky;top:0;background:var(--bg);z-index:1}#variables-table th{text-align:left;padding:4px 8px;color:var(--comment);font-weight:500;border-bottom:1px solid var(--border);font-size:10px;text-transform:uppercase}#variables-table td{padding:3px 8px;border-bottom:1px solid var(--bg-highlight);color:var(--fg)}#variables-table tr:hover td{background:var(--bg-highlight)}#variables-table td:first-child{color:var(--blue)}#variables-table td.var-type{color:var(--syn-type)}#variables-table td.var-value-inteiro,#variables-table td.var-value-real{color:var(--syn-number)}#variables-table td.var-value-caractere{color:var(--syn-string)}#variables-table td.var-value-logico{color:var(--syn-atom)}.var-changed td{animation:var-flash .5s ease}@keyframes var-flash{0%{background:#9ece6a26}to{background:transparent}}#terminal-output{padding:6px 10px;font-family:Menlo,Meslo LG,Fira Code,Monaco,Courier New,monospace;font-size:13px;color:var(--green1);white-space:pre-wrap;word-break:break-all;min-height:100%}#terminal-input-area{display:flex;padding:4px 8px;gap:4px;border-top:1px solid var(--border);background:var(--bg-dark);flex-shrink:0}#terminal-input-area.hidden{display:none}#terminal-input{flex:1;background:var(--bg);color:var(--fg);border:1px solid var(--border);padding:4px 8px;font-family:Menlo,Meslo LG,Fira Code,Monaco,Courier New,monospace;font-size:13px;outline:none;border-radius:3px}#terminal-input:focus{border-color:var(--blue)}#terminal-input-ok{background:var(--bg-highlight);color:var(--fg);border:1px solid var(--border);padding:4px 10px;cursor:pointer;border-radius:3px;font-size:12px}#terminal-input-ok:hover{background:var(--bg-visual)}.console-error{color:var(--red);white-space:pre-wrap}.console-error-link{display:inline;padding:0;color:inherit;background:none;border:none;border-bottom:1px dashed currentColor;font:inherit;text-align:left;cursor:pointer}.console-error-link:hover,.console-error-link:focus-visible{color:var(--orange);outline:none}.resize-handle-horizontal{position:absolute;top:0;right:-10px;width:20px;height:100%;cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:10}.resize-handle-horizontal:before{content:"";width:6px;height:50px;background:repeating-linear-gradient(to right,var(--dark3) 0px,var(--dark3) 2px,transparent 2px,transparent 4px);border-radius:3px;transition:background .2s}.resize-handle-horizontal:hover:before,.resize-handle-horizontal.dragging:before{background:repeating-linear-gradient(to right,var(--blue) 0px,var(--blue) 2px,transparent 2px,transparent 4px)}.resize-handle-vertical{display:none}body.resizing{user-select:none;-webkit-user-select:none}.panel-body::-webkit-scrollbar,#terminal-output::-webkit-scrollbar{width:8px}.panel-body::-webkit-scrollbar-track,#terminal-output::-webkit-scrollbar-track{background:transparent}.panel-body::-webkit-scrollbar-thumb,#terminal-output::-webkit-scrollbar-thumb{background:var(--bg-highlight);border-radius:4px}.panel-body::-webkit-scrollbar-thumb:hover,#terminal-output::-webkit-scrollbar-thumb:hover{background:var(--dark3)}.cm-s-tokyonight.CodeMirror{background:var(--bg);color:var(--fg)}.cm-s-tokyonight div.CodeMirror-selected{background:var(--bg-visual)}.cm-s-tokyonight .CodeMirror-line::selection,.cm-s-tokyonight .CodeMirror-line>span::selection,.cm-s-tokyonight .CodeMirror-line>span>span::selection{background:var(--bg-visual)}.cm-s-tokyonight .CodeMirror-gutters{background:var(--bg-dark);border-right:1px solid var(--border)}.cm-s-tokyonight .CodeMirror-linenumber{color:var(--fg-gutter)}.cm-s-tokyonight .CodeMirror-cursor{border-left:2px solid var(--fg)}.cm-s-tokyonight .CodeMirror-activeline-background{background:var(--bg-highlight)}[data-theme=light] .cm-s-tokyonight .CodeMirror-activeline-background,[data-theme=high-contrast] .cm-s-tokyonight .CodeMirror-activeline-background{background:#e4e7f0}.cm-s-tokyonight .CodeMirror-matchingbracket{color:var(--fg)!important;background:var(--bg-visual);font-weight:700}.cm-s-tokyonight .CodeMirror-nonmatchingbracket{color:var(--red)!important}.cm-s-tokyonight span.cm-keyword{color:var(--syn-keyword)}.cm-s-tokyonight span.cm-type{color:var(--syn-type)}.cm-s-tokyonight span.cm-string{color:var(--syn-string)}.cm-s-tokyonight span.cm-number{color:var(--syn-number)}.cm-s-tokyonight span.cm-comment{color:var(--syn-comment);font-style:italic}.cm-s-tokyonight span.cm-operator{color:var(--syn-operator)}.cm-s-tokyonight span.cm-builtin{color:var(--syn-builtin)}.cm-s-tokyonight span.cm-atom{color:var(--syn-atom)}.cm-s-tokyonight span.cm-variable-2{color:var(--syn-variable)}.cm-highlight-line{background:var(--bg-visual)!important}.cm-error-line{background:#f7768e29!important;box-shadow:inset 3px 0 0 var(--red)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:200}.modal-overlay.hidden{display:none}.modal{background:var(--bg-dark);border:1px solid var(--border);border-radius:8px;width:380px;max-width:90vw;box-shadow:0 8px 32px #0000004d}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:600;color:var(--fg)}.modal-header button{background:none;border:none;color:var(--comment);cursor:pointer;padding:0 4px;line-height:1;display:flex;align-items:center}.modal-header button svg{width:18px;height:18px}.modal-header button:hover{color:var(--fg)}.modal-body{padding:16px 16px 32px;display:flex;flex-direction:column;gap:14px}.modal-body p{font-size:13px;color:var(--fg-dark);line-height:1.5}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.modal-btn{padding:6px 16px;border:none;border-radius:6px;font-size:13px;cursor:pointer;font-weight:500;transition:background .15s}.modal-btn-secondary{background:var(--bg-highlight);color:var(--fg)}.modal-btn-secondary:hover{background:var(--border)}.modal-btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--blue);color:var(--bg-darker)}.modal-btn-primary:hover{filter:brightness(1.08)}.modal-btn:disabled{opacity:.45;cursor:not-allowed}.onboarding-modal{width:680px}.onboarding-intro{max-width:560px;font-size:15px!important}.onboarding-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.onboarding-step{min-height:130px;padding:14px;display:flex;flex-direction:column;gap:7px;background:var(--bg-highlight);border:1px solid var(--border);border-radius:8px}.onboarding-step>span{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;color:var(--bg-darker);background:var(--blue);border-radius:50%;font-size:13px;font-weight:700}.onboarding-step strong{color:var(--fg);font-size:14px}.onboarding-step small{color:var(--fg-dark);font-size:12px;line-height:1.45}.onboarding-save-note{display:flex;align-items:center;gap:7px;color:var(--green)!important}.onboarding-save-note svg,.recovery-current>svg{width:18px;height:18px;flex-shrink:0}.examples-modal{width:880px;max-height:88vh;display:flex;flex-direction:column}.examples-body{min-height:0;overflow-y:auto}.examples-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.example-card{padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--bg-highlight);border:1px solid var(--border);border-radius:8px}.example-card:last-child:nth-child(odd){grid-column:1 / -1}.example-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.example-card h3{color:var(--fg);font-size:14px}.example-level{padding:2px 7px;color:var(--cyan);border:1px solid var(--cyan);border-radius:10px;font-size:10px;white-space:nowrap}.example-card p{flex:1;font-size:12px}.example-actions{display:flex;justify-content:flex-end;gap:7px}.example-actions .modal-btn{padding:6px 10px;display:inline-flex;align-items:center;gap:5px}.example-actions svg{width:14px;height:14px}.recovery-modal{width:500px}.recovery-current{padding:12px;display:flex;align-items:center;gap:10px;color:var(--green);background:var(--bg-highlight);border-radius:8px}.recovery-current div,.recovery-copy{display:flex;flex-direction:column;gap:4px}.recovery-current strong,.recovery-copy strong{color:var(--fg);font-size:13px}.recovery-current small{color:var(--fg-dark);font-size:11px}.recovery-copy{align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:8px}.recovery-copy .modal-btn{margin-top:6px;display:inline-flex;align-items:center;gap:6px}.recovery-copy .modal-btn svg{width:15px;height:15px}.recovery-note{font-size:11px!important}.modal-btn-danger{background:var(--red);color:#fff}.modal-btn-danger:hover{opacity:.85}.modal-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 16px;gap:0}.modal-tab{background:none;border:none;border-bottom:2px solid transparent;padding:10px 12px;font-size:13px;font-family:inherit;color:var(--comment);cursor:pointer;transition:color .15s,border-color .15s}.modal-tab:hover{color:var(--fg)}.modal-tab.active{color:var(--blue);border-bottom-color:var(--blue)}.modal-tab-panel{display:none;flex-direction:column;gap:18px}.modal-tab-panel.active{display:flex}.docs-modal{width:900px;max-width:95vw;max-height:88vh;display:flex;flex-direction:column}.docs-modal .modal-tabs{flex-wrap:wrap}.docs-modal .modal-body{overflow-y:auto;flex:1;min-height:0;padding:20px 24px 24px}.docs-body .modal-tab-panel{gap:0}.docs-body h1{font-size:24px;color:var(--fg);line-height:1.2;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--border)}.docs-body h1+p{color:var(--fg);font-size:14px;line-height:1.65;margin-bottom:14px}.docs-body h2{font-size:17px;color:var(--fg);margin:26px 0 10px;padding-top:14px;border-top:1px solid var(--border)}.docs-body h3{font-size:15px;color:var(--fg);margin:18px 0 8px}.docs-body p{font-size:13px;color:var(--fg-dark);line-height:1.7;margin:8px 0}.docs-body strong{color:var(--fg)}.docs-body code{background:var(--bg-highlight);color:var(--blue5);padding:2px 5px;border-radius:4px;font-size:12px;font-family:Fira Code,Meslo LG,monospace}.docs-body pre{position:relative;background:var(--bg-darker);border:1px solid var(--border);border-radius:6px;padding:14px 42px 14px 14px;overflow-x:auto;margin:10px 0 14px;box-shadow:inset 0 1px #ffffff05}.docs-copy-btn{position:absolute;top:8px;right:8px;width:26px;height:26px;background:var(--bg-highlight);border:1px solid var(--border);border-radius:6px;color:var(--comment);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .15s}.docs-copy-btn:hover{color:var(--fg);border-color:var(--dark3)}.docs-copy-btn svg{width:14px;height:14px}.docs-body pre code{background:none;padding:0;color:var(--fg);font-size:12px;line-height:1.65;white-space:pre}.docs-body ul,.docs-body ol{font-size:13px;color:var(--fg-dark);line-height:1.7;padding-left:22px;margin:8px 0 12px}.docs-body li{margin:4px 0}.docs-body table{width:100%;border-collapse:collapse;font-size:13px;margin:10px 0 16px;display:block;overflow-x:auto;border:1px solid var(--border);border-radius:6px}.docs-body th{background:var(--bg-highlight);color:var(--fg);text-align:left;padding:8px 10px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);font-weight:600;white-space:nowrap}.docs-body td{padding:8px 10px;border-top:1px solid var(--border);border-right:1px solid var(--border);color:var(--fg-dark);vertical-align:top}.docs-body th:last-child,.docs-body td:last-child{border-right:none}.docs-body blockquote{border-left:3px solid var(--blue);background:var(--bg-highlight);border-radius:0 6px 6px 0;margin:12px 0 16px;padding:8px 12px;color:var(--fg-dark);font-size:13px}.docs-body blockquote p{margin:0}.setting-group{display:flex;flex-direction:column;gap:8px}.setting-group label{font-size:12px;color:var(--comment);text-transform:uppercase;letter-spacing:.3px}.setting-group select{background:var(--bg-highlight);color:var(--fg);border:1px solid var(--border);padding:6px 10px;border-radius:4px;font-size:13px;font-family:inherit;cursor:pointer;outline:none}.setting-group select:focus{border-color:var(--blue)}.font-size-control{display:flex;flex-direction:column;gap:6px}.font-size-input-row{display:flex;align-items:center;gap:6px}.setting-font-input{background:var(--bg-highlight);color:var(--fg);border:1px solid var(--border);padding:6px 10px;border-radius:4px;font-size:13px;font-family:inherit;outline:none;width:64px}.setting-font-input::-webkit-inner-spin-button,.setting-font-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.setting-font-input:focus{border-color:var(--blue)}.font-size-unit{font-size:13px;color:var(--comment)}.setting-font-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:4px;background:var(--bg-highlight);border-radius:2px;outline:none;cursor:pointer}.setting-font-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;background:var(--blue);border-radius:50%;cursor:pointer}.setting-font-slider::-moz-range-thumb{width:14px;height:14px;background:var(--blue);border:none;border-radius:50%;cursor:pointer}.setting-checkboxes{display:flex;gap:12px}.setting-checkbox{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--fg);cursor:pointer;text-transform:none;letter-spacing:0}.setting-checkbox input[type=checkbox]{accent-color:var(--blue);cursor:pointer}#variables-table .col-hidden{display:none}.setting-font-unit-select{background:var(--bg-highlight);color:var(--fg);border:1px solid var(--border);padding:6px;border-radius:4px;font-size:13px;font-family:inherit;cursor:pointer;outline:none}.setting-font-unit-select:focus{border-color:var(--blue)}@media (max-width: 768px){.header{margin:10px;padding:0 8px}.header-logo{gap:4px}.logo-text{font-size:16px}.logo-text small{font-size:12px}.beta-tag{padding:1px 5px;font-size:9px;margin-left:4px}.controls-file,.header-controls .toolbar-separator,.tab-bar-indent-label{display:none}.docs-modal{max-height:90vh}.docs-modal .modal-tab{font-size:11px;padding:8px 6px}.header-controls{gap:2px}.controls-exec{gap:1px}.controls-exec .toolbar-btn{padding:4px 6px;font-size:0}.controls-exec .toolbar-btn svg{width:16px;height:16px}.header-actions #btn-settings{display:none}.header-actions{gap:2px}.toolbar-btn.btn-menu{display:flex}.mobile-menu.open{display:flex;flex-direction:column;position:absolute;top:100%;right:0;margin-top:4px;background:var(--bg-dark);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 16px #0006;z-index:200;min-width:180px;padding:4px 0}.mobile-menu-item{display:flex;align-items:center;gap:8px;padding:10px 14px;background:none;border:none;color:var(--fg);font-size:13px;font-family:inherit;cursor:pointer;text-align:left}.mobile-menu-item:hover{background:var(--bg-highlight)}.mobile-menu-item svg{width:16px;height:16px;flex-shrink:0}.footer{height:auto;min-height:30px;margin:10px;flex-wrap:wrap;padding:6px 12px;gap:4px 16px}.footer-spacer{display:none}.sections-menu{position:fixed;right:10px;bottom:55px}.main-content{padding:70px 10px 80px}.grid-container{grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto}.grid-container.section-editor-hidden,.grid-container.section-variables-hidden.section-terminal-hidden{grid-template-columns:1fr}.editor-column{grid-column:1;grid-row:auto}.editor-panel{height:350px;max-height:80vh;overflow:auto}.variables-panel{grid-column:1;grid-row:auto!important;width:100%;order:3}.terminal-panel{grid-column:1;grid-row:auto!important;width:100%;order:2}.onboarding-steps,.examples-grid{grid-template-columns:1fr}.example-card:last-child:nth-child(odd){grid-column:auto}.onboarding-modal,.examples-modal{max-height:92vh}.resize-handle-horizontal{display:none}.resize-handle-vertical{display:flex;align-items:center;justify-content:center;position:absolute;bottom:0;left:50%;transform:translate(-50%);width:60px;height:28px;background:#0000004d;border-radius:8px 8px 0 0;cursor:ns-resize;touch-action:none;z-index:10}.resize-handle-vertical:before{content:"";width:30px;height:12px;background:repeating-linear-gradient(to bottom,var(--fg-dark) 0px,var(--fg-dark) 2px,transparent 2px,transparent 5px);border-radius:2px}.resize-handle-vertical:active,.resize-handle-vertical.dragging{background:#00000080}}
