*{box-sizing:border-box}html{scrollbar-gutter:stable}body{margin:0;background:#f5f7fb;color:#172033;font:14px system-ui,sans-serif}button,select{font:inherit}button,select{border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#25324b;padding:7px 10px}button{cursor:pointer}button:hover{background:#eef2ff}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible{outline:3px solid #95b4ff;outline-offset:1px}header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 2px 10px #14213d16}.tools{display:flex;align-items:center;flex-wrap:nowrap;gap:3px;padding:6px 8px;min-height:44px;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;background:#f8fafc}.tools>*{flex:0 0 auto}.tools button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;padding:0;font-size:17px;line-height:1;border-radius:5px}.tools .brand{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;text-decoration:none;border-radius:5px}.brand:hover{background:#eaf0ff}.brand img{display:block;width:28px;height:28px;object-fit:contain}.tools #type{height:32px;width:105px;padding:3px 5px;font-size:13px}.tools .separator{width:1px;height:23px;margin:0 3px;background:#d8dfeb}.tools .run{color:#188044}.tools #stop{color:#c32f38}.tools :focus-visible{outline-offset:-2px}main{padding:20px 70px 100px 16px;max-width:1500px;margin:auto;min-height:65vh}.cell{display:grid;grid-template-columns:75px minmax(0,1fr);padding:7px 0;border-left:4px solid transparent;margin:0 0 10px;scroll-margin-top:68px}.cell.selected{border-left-color:#3157d5}.prompt{font:12px ui-monospace,Consolas,monospace;color:#2445b7;text-align:right;padding:12px 9px 0 0;white-space:nowrap}.cell-content{min-width:0;background:#fff;border:1px solid #d8dfeb;border-radius:6px;overflow:hidden}.cell.selected .cell-content{border-color:#91a9eb}.cell.markdown .cell-content,.cell.raw .cell-content{padding:12px 18px}.cell textarea{width:100%;border:0;outline:none;resize:vertical;min-height:65px;padding:10px;font:14px/1.5 ui-monospace,Consolas,monospace}.cell .CodeMirror{height:auto;font:14px/1.55 ui-monospace,Consolas,monospace;background:#fbfcfe}.cell .CodeMirror-scroll{height:auto;overflow-y:hidden!important}.cell .CodeMirror-gutters{background:#f2f5fa;border-right:1px solid #e1e7f0}.CodeMirror .cm-keyword{color:#008000;font-weight:bold}.CodeMirror .cm-comment{color:#408080;font-style:italic}.CodeMirror .cm-string{color:#ba2121}.CodeMirror .cm-number{color:#080}.CodeMirror .cm-builtin{color:#008000}.cm-variable{color:#172033}.preview{line-height:1.65;overflow-wrap:anywhere}.preview:empty{min-height:40px}.preview h1{font-size:26px}.preview h2{font-size:22px}.preview h3{font-size:18px}.preview pre{padding:12px;background:#f3f6fa;border-radius:5px;overflow:auto}.preview code{font-family:ui-monospace,Consolas,monospace}.preview table,.output table{border-collapse:collapse;margin:10px 0;max-width:100%;font-size:13px}.preview th,.preview td,.output th,.output td{border:1px solid #d5ddea;padding:5px 9px;text-align:left}.preview img,.output img,.output svg{max-width:100%;height:auto}.preview p:first-child{margin-top:0}.preview p:last-child{margin-bottom:0}.output{padding:0 12px;overflow:auto;max-height:none;background:#fff}.output:empty{display:none}.output pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.55 ui-monospace,Consolas,monospace}.output .error{color:#b42318}.output .result{color:#64469c}.output .table-wrap{overflow:auto}footer{position:fixed;bottom:0;left:0;right:0;padding:7px 15px;background:#edf2fa;border-top:1px solid #dce5f3;color:#52667f;z-index:25;display:flex;justify-content:space-between;gap:10px;font-size:12px}dialog{border:1px solid #ccd6e7;border-radius:12px;width:min(650px,92vw);max-height:80vh;padding:22px;color:#172033}dialog::backdrop{background:#17203366}dialog h2{font-size:19px}#fileList{max-height:45vh;overflow:auto}.file-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e4e9f1;padding:10px 0}.file-row span:first-child{flex:1;overflow-wrap:anywhere}.file-row .kind{font-size:11px;color:#62738c}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:20px}#status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#runtime{flex:0 0 auto;color:#63728a;font-size:11px}.shortcuts{margin-left:auto;white-space:nowrap}@media(max-width:1000px){footer .shortcuts{display:none}}@media(max-width:650px){.tools{padding:5px;gap:2px}.tools .separator{margin:0 2px}.tools #type{width:96px}footer #runtime{display:none}main{padding:12px 36px 75px 4px}.cell{grid-template-columns:44px minmax(0,1fr)}.prompt{font-size:10px;padding-right:4px}.cell.markdown .cell-content{padding:9px}}@media print{header,footer,dialog{display:none!important}body{background:#fff}main{padding:0;max-width:none}.cell{border:0;break-inside:avoid-page;grid-template-columns:55px minmax(0,1fr)}.cell-content{overflow:visible}.CodeMirror-scroll{overflow:visible!important}.output{overflow:visible}.prompt{color:#555}.cell textarea{height:auto}}

.print-code{display:none}@media print{.CodeMirror,.cell textarea{display:none!important}.print-code{display:block;margin:0;padding:10px;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 ui-monospace,Consolas,monospace}.cell{break-inside:auto}.output pre{font-size:12px}}
