*{box-sizing:border-box}html,body{height:100%;margin:0}body{display:flex;flex-direction:column;background:#f5f7fb;color:#172033;font:14px system-ui,sans-serif}button,input,select{font:inherit}button,select{border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#25324b;padding:6px 10px}button{cursor:pointer}button:hover{background:#eef2ff}button:disabled{opacity:.42;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #95b4ff;outline-offset:1px}header{flex:0 0 auto;background:#fff;box-shadow:0 2px 8px #14213d12;z-index:10}.tools{display:flex;align-items:center;flex-wrap:nowrap;gap:3px;padding:6px 8px;min-height:44px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;background:#f8fafc}.tools>*{flex:0 0 auto}.tools button{display:inline-flex;align-items:center;justify-content:center;gap:2px;width:32px;height:32px;min-width:32px;padding:0;font-size:17px;line-height:1}.tools .brand{display:inline-flex;align-items:center;justify-content:center;width:38px;height:32px;color:#3157a6;text-decoration:none;font:italic bold 17px Georgia,serif;letter-spacing:-2px}.brand span,.paper-symbol span{position:relative;top:3px}.tools .separator{width:1px;height:23px;margin:0 3px;background:#d8dfeb}.tools .run{color:#188044}.tools .stop{color:#c32f38}.tools #insert{height:32px;width:142px;padding:3px 5px;font-size:12px}.tools #downloadPdf{width:42px}.tools small{font-size:8px;font-weight:bold}.auto-label{display:flex;align-items:center;gap:3px;padding:0 5px;font-size:11px;color:#6b7e98}.auto-label input{accent-color:#3157d5}.tabs{display:flex;align-items:stretch;gap:3px;overflow-x:auto;scrollbar-width:thin;padding:4px 6px 0;min-height:37px;background:#edf1f7;border-top:1px solid #e0e7f1}.tab{display:flex;align-items:center;gap:7px;max-width:250px;padding:0 6px 0 10px;min-height:33px;background:#e4eaf3;border:1px solid #ced8e6;border-bottom:0;border-radius:6px 6px 0 0;flex:0 0 auto}.tab.active{background:#fff;border-top:2px solid #5578d0}.tab-name{max-width:195px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;padding:4px 0;font-size:12px;text-align:left}.tab-name:hover{background:transparent}.tab-dot{color:#bd7e32;font-size:11px}.tab-close{padding:1px 4px;border:0;background:transparent;color:#7a8ea9;font-size:17px}.workspace{display:grid;grid-template-columns:minmax(0,var(--split,50%)) 6px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.code-pane,.pdf-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.pane-heading{display:flex;align-items:center;gap:10px;flex:0 0 auto;height:32px;background:#fff;border-bottom:1px solid #dce4ef;padding:0 12px;color:#75859e;font-size:11px}.pane-heading>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-heading>span:nth-child(2){margin-left:auto;white-space:nowrap;font-size:10px}#openPdf{width:25px;height:24px;padding:0;border:0;color:#7e90aa;background:transparent}.source-host{flex:1;min-height:0;background:#fbfcfe}.source-host textarea{width:100%;height:100%;padding:14px;border:0;outline:none;resize:none;background:#fbfcfe;font:14px/1.6 Consolas,monospace;color:#25324b}.source-host .CodeMirror{height:100%;font:14px/1.6 Consolas,"Courier New",monospace;background:#fbfcfe}.CodeMirror-gutters{background:#f2f5fa;border-right:1px solid #e1e7f0}.CodeMirror-linenumber{color:#9aabc2}.cm-s-default .cm-tag{color:#16669a}.cm-s-default .cm-bracket{color:#838ba0}.cm-s-default .cm-comment{color:#779896;font-style:italic}.cm-s-default .cm-string{color:#aa4b53}.cm-s-default .cm-number{color:#238550}.cm-s-default .cm-atom{color:#9865ad}.divider{background:#e1e7f0;cursor:col-resize;touch-action:none;z-index:3}.divider:hover,.divider.dragging{background:#a9bbdf}.divider:focus-visible{outline:2px solid #5578d0;outline-offset:-2px}.pdf-pane{background:#e5e9f0}.pdf-state.current{color:#29905d}.pdf-state.stale{color:#ad8542}.pdf-state.busy{color:#4d72bc}#pdfFrame{width:100%;height:100%;flex:1;min-height:0;border:0;background:#edf0f5}.placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#8a9ab0}.placeholder[hidden],#pdfFrame[hidden]{display:none}.placeholder h1{font-size:20px;font-weight:550;color:#71839d;margin:20px 0 8px}.placeholder p{font-size:13px;line-height:1.8;margin:4px 0}.placeholder .small{font-size:10px;color:#9caabe}.paper-symbol{display:flex;align-items:center;justify-content:center;width:90px;height:112px;border:1px solid #cad4e1;border-radius:5px;background:#f7f9fc;box-shadow:0 5px 20px #2c426510;color:#9bacc4;font:italic 28px Georgia,serif;letter-spacing:-3px}.diagnostics{max-height:110px;overflow:auto;background:#fff6f3;border-top:1px solid #edd7d0;padding:8px 12px;font-size:12px;color:#9f4b42}.diagnostics[hidden],.log-panel[hidden]{display:none}.diagnostic{display:block;border:0;padding:3px 0;background:transparent;color:inherit;text-align:left;font:inherit}.diagnostic:hover{background:transparent;text-decoration:underline}.log-panel{flex:0 0 auto;max-height:220px;min-height:0;background:#f4f6f9;border-top:1px solid #d3dce9;overflow:auto}.log-heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;padding:5px 12px;background:#edf1f7;font-size:11px;color:#71849f}.log-heading button{font-size:10px;padding:3px 7px}.log-panel pre{font:11px/1.5 Consolas,monospace;margin:0;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#556b87}footer{display:flex;align-items:center;gap:15px;flex:0 0 auto;padding:6px 12px;min-height:28px;background:#edf2fa;border-top:1px solid #dce5f3;color:#637791;font-size:11px}#status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#saved,#position{white-space:nowrap;font-size:10px;color:#7f92ac}.code-only .workspace{grid-template-columns:minmax(0,1fr)}.code-only .pdf-pane,.code-only .divider{display:none}.pdf-only .workspace{grid-template-columns:minmax(0,1fr)}.pdf-only .code-pane,.pdf-only .divider{display:none}dialog{border:1px solid #ccd6e7;border-radius:10px;width:min(650px,92vw);max-height:85vh;overflow:auto;padding:22px;color:#25324b;box-shadow:0 12px 45px #17203322}dialog::backdrop{background:#17203366}dialog h2{font-size:19px;margin:0 0 17px}dialog h3{font-size:13px;color:#72859f;margin:20px 0 8px}dialog p{font-size:13px;line-height:1.7}.field-label{display:block;margin:12px 0 5px;color:#72849f;font-size:12px}dialog input[type=text],dialog select{width:100%;padding:9px;border:1px solid #ccd6e5;border-radius:6px}dialog .hint{font-size:11px;color:#7b8ea9}dialog code{font:11px Consolas,monospace;background:#f1f4f9;padding:2px 4px;border-radius:3px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:20px}.primary{background:#315fbc;color:#fff;border-color:#315fbc}.file-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #e5eaf2}.file-row span:first-child{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}.file-row small{font-size:10px;color:#8c9db4}.file-row button{font-size:11px;padding:4px 8px}body.resizing,body.resizing *{cursor:col-resize!important;user-select:none!important}body.resizing iframe{pointer-events:none}@media(max-width:1050px){#saved{display:none}.auto-label{font-size:10px}}@media(max-width:760px){html,body{height:auto;min-height:100%}.workspace{display:flex;flex-direction:column;overflow:visible;flex:1}.code-pane{height:50vh;min-height:280px}.pdf-pane{height:65vh;min-height:350px}.divider{display:none}.tools{padding:5px}.tools #insert{width:118px}footer{position:sticky;bottom:0;z-index:5}#position{display:none}.code-only .code-pane,.pdf-only .pdf-pane{height:calc(100vh - 110px)}.placeholder p.small{font-size:10px}}

.tools #engine{height:32px;width:115px;padding:3px 5px;font-size:12px}
