:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;color:#1b2b41;background:#f5f7fb;font-size:14px;--blue:#2685ee;--line:#e3e9f1;--soft:#f7f9fc;--editor-width:51%;--code-bg:#121d2c;--code-fg:#dbe8f7}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[tabindex]:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #6caeff;outline-offset:2px}button{border:1px solid transparent;background:0 0;color:inherit;border-radius:9px;padding:8px 11px}button:hover{background:#edf4fc}a{text-decoration:none;color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{min-height:100vh}.topbar{min-height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:10px 24px}.brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:750;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:linear-gradient(145deg,#5bf,#3975e9);color:#fff;border-radius:11px;font-size:21px;box-shadow:0 3px 11px #267aef25}.brand-suffix{color:#8292a7;font-weight:500}.project-meta{margin:auto;display:flex;align-items:center;gap:9px;min-width:0}.project-meta input{width:min(235px,24vw);font-size:14px;text-align:center;border:1px solid transparent;border-radius:9px;font-weight:650;color:#34465e;background:0 0;padding:8px 9px}.project-meta input:focus,.project-meta input:hover{background:#f5f8fd;border-color:#dce6f4}.save-status{font-size:11px;white-space:nowrap;color:#7488a0}.top-actions{display:flex;align-items:center;gap:5px}.quiet{font-weight:600;color:#475f78}.primary{background:#2685ee;color:#fff;border-color:#227bdc;font-weight:650;box-shadow:0 3px 10px #2072dc28;padding:10px 15px}.primary:hover{background:#1975d9}.subbar{display:flex;justify-content:space-between;align-items:center;background:#fbfcfe;border-bottom:1px solid var(--line);padding:10px 24px;gap:12px;min-height:52px}.subbar-left,.subbar-right{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;color:#486179}.subbar-right select{max-width:185px}.workspace-icon{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e8f2ff;color:#1875d8;font-size:17px}.muted-divider{color:#abb9ca}.privacy{font-weight:500;color:#68829a;margin-left:18px}.privacy-dot{display:inline-block;background:#36b685;border-radius:100%;width:7px;height:7px;margin-right:4px}select{border:1px solid #dde6f0;background:#fff;border-radius:8px;padding:7px 8px;color:#334f6b}.subtle{border:1px solid #dde6f0;background:#fff;font-size:12px;padding:7px 10px}.workspace{display:flex;height:clamp(610px,calc(100vh - 177px),1100px);min-height:610px;padding:13px 15px;gap:0}.edit-pane,.preview-pane{min-width:0;background:#fff;border:1px solid #e0e7ef;box-shadow:0 3px 18px #2b46670a;display:flex;flex-direction:column;overflow:hidden}.edit-pane{width:var(--editor-width);border-radius:15px 0 0 15px}.preview-pane{flex:1;border-radius:0 15px 15px 0}.splitter{width:12px;flex-shrink:0;cursor:col-resize;display:grid;place-items:center;background:#e7edf5;touch-action:none}.splitter span{height:40px;width:4px;border-left:2px solid #b5c5d7;border-right:2px solid #b5c5d7}.pane-title{flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;min-height:60px;border-bottom:1px solid #e7edf4}.pane-label{display:flex;align-items:center;gap:8px;font-weight:750;font-size:13px;white-space:nowrap}.pane-symbol{color:#1882ea;background:#edf5ff;border-radius:8px;padding:5px 6px;font-family:ui-monospace,monospace;font-weight:850}.pane-controls{display:flex;align-items:center;gap:9px}.checkline{display:flex;align-items:center;gap:5px;color:#627a92;font-size:12px;white-space:nowrap;cursor:pointer}.checkline input{accent-color:#2083ed;margin:0}.run-btn{color:#fff;background:#2685ee;font-weight:700;white-space:nowrap}.run-btn:hover{background:#146ece}.shortcut-hint{color:#d2e9ff;margin-left:4px;font-weight:500;font-size:11px}.tabs{display:flex;align-items:center;flex:none;background:#f7f9fc;border-bottom:1px solid #e1eaf4;padding:7px 9px 0;gap:4px;min-height:48px}.tabs button[role=tab]{border-radius:8px 8px 0 0;font-size:12px;font-weight:650;padding:9px 11px;border-bottom:2px solid transparent;color:#6c829b;white-space:nowrap}.tabs button[aria-selected=true]{background:#fff;color:#1d6fc8;border-bottom-color:#2584e7}.tab-flag{font-size:10px}.tab-flag.html{color:#e58553}.tab-flag.css{color:#428dea}.tab-flag.js{color:#d2a81d}.file-ext{font-size:10px;color:#9caab9}.tab-spacer{flex:1}.tabs .small{font-size:11px;padding:6px 8px;margin-bottom:5px;background:#edf3fa}.tabs .small[aria-pressed=true]{background:#d9eafc;color:#146ec8}.editors{display:flex;min-height:100px;flex:1;flex-direction:column;background:var(--code-bg);overflow:hidden}.code-panel{display:flex;flex-direction:column;min-height:0;flex:1}.code-panel[hidden]{display:none}.panel-caption{padding:7px 15px;background:#172438;border-bottom:1px solid #28374b;color:#a3b8d0;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:650;flex:none}.lines-count{font-weight:400;color:#7995af}.editor-body{flex:1;display:flex;overflow:hidden;min-height:0;background:var(--code-bg)}.line-nums{width:46px;flex:none;overflow:hidden;text-align:right;white-space:pre;color:#637b94;background:#122031;border-right:1px solid #283a4e;padding:15px 11px 30px 3px;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;user-select:none;pointer-events:none}.editor-body textarea{flex:1;min-width:0;min-height:0;resize:none;tab-size:2;background:0 0;color:var(--code-fg);padding:15px 14px 30px;border:none;outline:0!important;white-space:pre;overflow:auto;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;caret-color:#fff}.editor-body:focus-within{box-shadow:inset 0 0 0 1px #4384b778}.editors.stacked{gap:0}.editors.stacked .code-panel{flex:1;min-height:0;border-bottom:2px solid #33435a}.editors.stacked .panel-caption{padding:4px 12px}.editors.stacked .editor-body textarea{padding:8px 10px}.editors.stacked .line-nums{padding-top:8px}.editor-foot{flex:none;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 12px;color:#6c7f95;background:#f7f9fc;border-top:1px solid var(--line);font-size:11px}.editor-foot-actions{display:flex;align-items:center;gap:6px}.editor-foot select{padding:3px 4px;font-size:11px}.text-action{padding:4px 8px;font-size:11px;color:#496785;font-weight:650}.find-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 10px;background:#f7fbff;font-size:11px;border-top:1px solid #d6e5f7}.find-bar[hidden]{display:none}.find-bar input{width:145px;min-width:50px;flex:1;padding:7px;border:1px solid #cad8e8;border-radius:6px}.find-bar button{border:1px solid #d9e3ef;background:#fff;padding:6px 9px}.find-bar span{font-size:10px;color:#64809b}.result-dot{width:8px;height:8px;border-radius:50%;background:#35b783}.render-status{font-size:11px;font-weight:500;color:#8296ad;margin-left:3px}.icon-action{padding:5px 9px;font-size:20px;color:#67809c}.device-toolbar{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 11px;background:#f9fbfd;border-bottom:1px solid #e5ecf4;flex:none;min-height:49px}.device-options{display:flex;gap:2px}.device{padding:7px 8px;font-size:11px;color:#6a8095;white-space:nowrap}.device.active{background:#e8f3ff;color:#1779dd;font-weight:700}.unit,.viewport-size,.width-label{font-size:11px;color:#7b90a5}.width-label{margin-left:auto}.device-toolbar input[type=number]{width:67px;border:1px solid #dce6ef;border-radius:7px;padding:6px;text-align:right;background:#fff;font-size:12px}.preview-background{flex:1;min-height:150px;overflow:auto;background:radial-gradient(circle at center,#e7edf5,#e1eaf4);display:flex;justify-content:center;align-items:flex-start;padding:20px 14px}.preview-frame-wrap{width:100%;height:100%;min-height:220px;max-width:100%;background:#fff;border-radius:5px;overflow:hidden;box-shadow:0 5px 28px #14263e24;flex:none}.preview-frame-wrap iframe{width:100%;height:100%;border:0;display:block;background:#fff}.console-bar{padding:8px 12px;background:#f8fafc;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:8px;min-height:44px;flex:none}.console-heading{font-size:12px;font-weight:750;display:flex;align-items:center;gap:7px}.console-icon{font:700 15px ui-monospace,monospace;color:#3093e9}.counter{background:#e8eef5;font-size:10px;padding:3px 7px;border-radius:12px;color:#667b91}.console-actions{display:flex;align-items:center;gap:8px}.netcheck{font-size:11px}.console-panel{height:180px;min-height:60px;overflow:auto;flex:none;background:#fff}.console-panel[hidden]{display:none}.console-output{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#263c53}.console-line{padding:6px 12px;border-bottom:1px solid #eef2f6;white-space:pre-wrap;overflow-wrap:anywhere;display:flex;gap:8px;align-items:flex-start}.console-line .ts{color:#8c9cad;font-size:10px;white-space:nowrap;min-width:66px}.console-line.error{background:#fff1f0;color:#a92e35}.console-line.warn{background:#fffbeb;color:#916512}.console-line.info{color:#1976cf}.console-empty{color:#8da0b4;padding:17px 12px;font-family:inherit;font-size:12px}.console-empty code{background:#f4f6fa;padding:2px 4px;border-radius:4px}.result-foot{min-height:29px;background:#fbfcfe;border-top:1px solid var(--line);padding:7px 12px;display:flex;justify-content:space-between;gap:10px;color:#8798a9;font-size:10px;flex:none}.site-footer{display:flex;justify-content:space-between;gap:16px;padding:0 25px 12px;color:#8a9bad;font-size:11px}.seo-section{max-width:1000px;padding:45px 24px 70px;margin:auto;color:#567084;line-height:1.75;font-size:14px}.seo-section h1,.seo-section h2{color:#2e445c}.seo-section h1{font-size:27px}.seo-section h2{font-size:19px}.toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translate(-50%,20px);background:#23394e;color:#fff;padding:11px 16px;border-radius:11px;box-shadow:0 8px 28px #14253e30;opacity:0;pointer-events:none;transition:.2s;max-width:min(90vw,600px)}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{width:min(520px,calc(100vw - 28px));border:1px solid #dce6f1;border-radius:17px;box-shadow:0 18px 70px #1d365e40;padding:0;color:#253d58}dialog::backdrop{background:#1c2d45a8}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #e3ebf4}.dialog-head h2{margin:0;font-size:18px}.dialog-body{padding:6px 22px 16px;font-size:13px;line-height:1.65}.dialog-body dl{display:grid;grid-template-columns:135px 1fr;gap:9px 15px}.dialog-body dt{font-weight:750;color:#286bac}.dialog-body dd{margin:0}.dialog-done{margin:0 22px 20px;float:right}.workspace.focus-preview .edit-pane,.workspace.focus-preview .splitter{display:none}.workspace.focus-preview .preview-pane{border-radius:15px}.workspace.focus-preview .preview-background{min-height:430px}@media(max-width:1130px){.topbar{padding:10px 15px}.brand-suffix{display:none}.privacy{display:none}.workspace{padding:10px}.file-ext{display:none}.unit,.viewport-size,.width-label{display:none}.console-panel{height:160px}}@media(max-width:800px){.topbar{flex-wrap:wrap;gap:7px 9px}.brand{flex:1}.project-meta{order:3;width:100%;justify-content:center}.project-meta input{width:160px}.top-actions{gap:2px}.top-actions button{font-size:12px;padding:7px}.hide-compact{display:none}.subbar{padding:8px 12px}.subbar-left{font-size:11px}.subbar-right label{display:none}.subbar-right select{max-width:130px;font-size:11px}.subbar-right .subtle{display:none}.workspace{height:auto;min-height:0;display:flex;flex-direction:column;gap:10px;padding:9px}.edit-pane{width:100%!important;height:405px;min-height:350px;border-radius:14px}.splitter{display:none}.preview-pane{min-height:525px;height:610px;border-radius:14px}.preview-background{min-height:190px}.console-panel{height:160px}.site-footer{flex-direction:column;padding:0 12px 12px}.workspace.focus-preview .preview-pane{height:calc(100vh - 160px);min-height:540px}.workspace.focus-preview .edit-pane{display:none}}@media(max-width:440px){.brand{font-size:13px}.topbar{gap:2px}.top-actions button{font-size:11px}.pane-title{padding:8px 9px}.shortcut-hint{display:none}.tabs button[role=tab]{padding:8px;font-size:11px}.tabs{gap:1px}.device{padding:7px 5px}.device span{display:none}.netcheck{font-size:10px}.editor-foot-actions label{display:none}.project-meta{padding:0}.subbar-right select{width:112px}.editor-foot{font-size:10px}}.edit-pane.drop-active{box-shadow:0 0 0 3px #429df3,inset 0 0 0 3px #429df3;outline:0}.editor-stack{position:relative;min-width:0;min-height:0;flex:1;overflow:hidden;background:var(--code-bg)}.editor-stack textarea{position:absolute;inset:0;width:100%;height:100%;background:0 0;z-index:2;white-space:pre;resize:none}.editor-stack.syntax-on textarea{color:transparent;-webkit-text-fill-color:transparent;caret-color:#fff}.editor-stack.syntax-on textarea::selection{background:rgba(70,139,220,.45);-webkit-text-fill-color:transparent}.editor-stack:not(.syntax-on) textarea{color:var(--code-fg);-webkit-text-fill-color:var(--code-fg)}.highlight-layer{position:absolute;top:0;left:0;margin:0;pointer-events:none;overflow:visible;white-space:pre;tab-size:2;box-sizing:border-box;min-width:100%;padding:15px 14px 30px;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;color:var(--code-fg);z-index:1}.editor-stack:not(.syntax-on) .highlight-layer{display:none}.editors.stacked .highlight-layer{padding:8px 10px}.syntax-tag{color:#83c7ff}.syntax-comment{color:#8494a6}.syntax-string{color:#bfe19b}.syntax-keyword{color:#d1a4ff}.syntax-number{color:#f2bc86}.syntax-selector{color:#88d4c6}.highlight-control{font-size:11px;white-space:nowrap}.preview-frame-wrap{max-width:none;min-width:0;flex:none}.preview-background{justify-content:flex-start}.preview-frame-wrap{margin-inline:auto}.device-toolbar{flex-wrap:wrap}.console-actions select{max-width:116px;font-size:11px;padding:5px}.console-line[hidden]{display:none!important}.find-bar label{white-space:nowrap}.find-bar input[type=search],.find-bar input[type=text]{max-width:165px;flex:1 1 120px}@media(max-width:600px){.device-toolbar input[type=number]{width:64px}.device-toolbar .unit{display:none}.device-toolbar .width-label{display:inline}.device-toolbar .viewport-size{display:inline}.console-actions{gap:3px}.console-actions .netcheck{font-size:10px}.console-actions select{max-width:82px}.highlight-control{display:none}.find-bar input[type=search],.find-bar input[type=text]{width:95px;min-width:70px}}