:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#e8edf5;background:#0b1220;font-size:14px}*{box-sizing:border-box}body{margin:0;min-width:300px}button,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,.splitter:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 20px;background:#111b2c;border-bottom:1px solid #26364c}.brand,.top-actions,.tool-group,.toolbar,.panel-head,.preview-actions{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;background:#16a34a;color:white;text-decoration:none;font-weight:800;width:40px;height:40px;border-radius:11px}.brand div{display:grid;gap:2px}.brand span{font-size:12px;color:#91a1b9}.top-actions{margin-left:auto}.saved,.muted,.panel-foot,.privacy{color:#777777;font-size:12px}.button,.icon-btn,select{border:1px solid #34445d;border-radius:2px;color:#dce5f2;background:#1a2940;min-height:34px;padding:4px 12px}.button:hover,.icon-btn:hover{background:#293e59}.button.primary{background:#16a34a;border-color:#16a34a;color:white;font-weight:700}.button.primary:hover{background:#15803d}.button.danger{color:#ffbdc1}.toolbar{padding:2px 18px;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid #26364c;background:#101a2b;gap:10px}.tool-group{flex-wrap:wrap}.settings label{display:flex;align-items:center;gap:7px;color:#aebdd1}.switch-label input{accent-color:#16a34a;width:16px;height:16px}.file-label{cursor:pointer}.workspace{display:flex;height:calc(109vh - 172px);min-height:420px;padding:1px 6px; gap:0}.panel{background:#111b2c;border:1px solid #2c3b52;border-radius:4px;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.editor-panel{flex:0 0 calc(50% - 6px)}.preview-panel{flex:1}.panel-head{min-height:40px;padding:2px 14px;justify-content:space-between;border-bottom:1px solid #2c3b52;gap:8px}.panel-head>div{display:flex;align-items:center;gap:9px;min-width:0}.status-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#f59e0b}.status-dot.green{background:#22c55e}.editor-wrap{flex:1;min-height:0;overflow:hidden}.CodeMirror{height:100%;font-size:14px;line-height:1.65;background:#0e1726}.CodeMirror-gutters{background:#111d30;border-right:1px solid #273850}.CodeMirror-linenumber{color:#71839b}.editor-wrap textarea{width:100%;height:100%;resize:none;background:#0e1726;color:#e8edf5;padding:15px;border:0;font:14px/1.65 monospace}.panel-foot{display:flex;justify-content:space-between;padding:7px 14px;border-top:1px solid #2c3b52;min-height:30px}.splitter{flex:0 0 10px;cursor:col-resize;position:relative}.splitter:after{content:'';position:absolute;top:45%;bottom:45%;left:5px;width:2px;background:#526783;border-radius:2px}.preview-actions select{max-width:150px}.icon-btn{min-width:36px;padding:7px}.preview-stage{background:#d9e1eb;flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center;overflow:auto;padding:0}.preview-stage iframe{display:block;border:0;background:white;width:100%;height:100%;min-height:100%}.preview-stage iframe.device{flex:none;box-shadow:0 3px 20px #0002}.preview-stage:has(iframe.device){padding:18px}.privacy{padding:0 18px 4px;margin:0}dialog{border:1px solid #35465d;border-radius:14px;background:#162238;color:#eaf0f8;max-width:min(530px,92vw);line-height:1.6;box-shadow:0 20px 70px #0008}dialog::backdrop{background:#050b16bb}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}kbd{background:#293d58;padding:2px 5px;border-radius:4px}#toast{position:fixed;right:18px;bottom:18px;background:#176f46;color:white;padding:10px 16px;border-radius:8px;box-shadow:0 8px 30px #0005;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}#toast.visible{opacity:1}body.light{background:#eef3f9;color:#1c293b}body.light .topbar,body.light .toolbar,body.light .panel{background:#fff;border-color:#d5deeb}body.light .button,body.light .icon-btn,body.light select{background:#f5f8fc;color:#23354c;border-color:#c9d6e5}body.light .button.primary{background:#16a34a;color:white}body.light .panel-head,body.light .panel-foot{border-color:#d5deeb}body.light .CodeMirror{background:#fff;color:#17253b}body.light .CodeMirror-gutters{background:#f3f6fa;border-color:#d5deeb}body.light .CodeMirror-linenumber{color:#75869c}body.light .settings label{color:#44576e}@media(max-width:900px){.workspace{height:auto;min-height:0;flex-direction:column}.editor-panel{flex:none!important;height:47vh;min-height:290px}.splitter{flex:0 0 12px;cursor:row-resize}.splitter:after{left:45%;right:45%;top:5px;bottom:auto;height:2px;width:auto}.preview-panel{height:47vh;min-height:290px;flex:none}.toolbar{justify-content:flex-start}.topbar{padding:10px 12px}}@media(max-width:520px){.brand span,.saved{display:none}.top-actions{gap:5px}.button{padding:7px 9px}.toolbar{padding:9px}.panel-head{padding:7px}.panel-head .muted{display:none}.privacy{line-height:1.5}}
