.editor-page{display:flex;flex-direction:column;height:calc(100vh - 61px);max-width:100%;margin:0;padding:0;background:var(--bg)}.editor-page~.site-footer{display:none}.editor-toolbar{display:flex;align-items:center;gap:2px;padding:6px 12px;background:var(--bg-card);border-bottom:1px solid var(--border);flex-wrap:wrap}.toolbar-btn{width:32px;height:32px;border:none;border-radius:6px;background:transparent;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:.15s}.toolbar-btn:hover{background:var(--accent-light);color:var(--accent)}.toolbar-divider{width:1px;height:20px;background:var(--border);margin:0 4px}.editor-container{display:grid;grid-template-columns:1fr 1fr;flex:1;overflow:hidden}.editor-pane{display:flex;flex-direction:column;min-width:0}.editor-pane+.editor-pane{border-left:1px solid var(--border)}.editor-input-wrap{display:flex;flex:1;overflow:hidden}.editor-gutter{padding:20px 10px 20px 12px;text-align:right;font-family:Fira Code,Consolas,monospace;font-size:14px;line-height:1.8;color:var(--text-secondary);background:var(--input-bg);-webkit-user-select:none;user-select:none;overflow:hidden;min-width:46px;border-right:1px solid var(--border);box-sizing:border-box;white-space:pre}#editor-input{flex:1;border:none;border-radius:0;padding:20px 16px;font-family:Fira Code,Consolas,monospace;font-size:14px;line-height:1.8;tab-size:2;resize:none;background:transparent;color:var(--text);outline:none;white-space:pre-wrap;overflow-wrap:break-word;overflow-y:auto;overflow-x:hidden}#editor-preview{flex:1;overflow-y:auto;padding:20px 24px;font-size:.95em;line-height:1.75;background:var(--bg);color:var(--text)}#editor-preview p:last-child{margin-bottom:0}#editor-preview pre{overflow-x:auto;white-space:pre-wrap!important;word-break:break-word!important}#editor-preview pre code{tab-size:2;white-space:pre-wrap!important;word-break:break-word!important}#editor-preview .hljs{background:transparent}[data-theme=dark] #editor-preview .hljs-keyword,[data-theme=dark] #editor-preview .hljs-selector-tag,[data-theme=dark] #editor-preview .hljs-literal,[data-theme=dark] #editor-preview .hljs-section,[data-theme=dark] #editor-preview .hljs-link{color:#ff7b72}[data-theme=dark] #editor-preview .hljs-string,[data-theme=dark] #editor-preview .hljs-title,[data-theme=dark] #editor-preview .hljs-name,[data-theme=dark] #editor-preview .hljs-type,[data-theme=dark] #editor-preview .hljs-attribute,[data-theme=dark] #editor-preview .hljs-selector-id{color:#a5d6ff}[data-theme=dark] #editor-preview .hljs-number,[data-theme=dark] #editor-preview .hljs-meta{color:#d2a8ff}[data-theme=dark] #editor-preview .hljs-comment{color:#8b949e}[data-theme=dark] #editor-preview .hljs-built_in{color:#ffa657}[data-theme=dark] #editor-preview .hljs-deletion{color:#ffdcd7;background:#67060c}[data-theme=dark] #editor-preview .hljs-addition{color:#aff5b4;background:#033a16}.view-mode-btn.active{background:var(--accent-light);color:var(--accent)}.editor-container.mode-edit .editor-pane:last-child{display:none}.editor-container.mode-preview .editor-pane:first-child{display:none}.editor-container.mode-edit,.editor-container.mode-preview{grid-template-columns:1fr}@media(max-width:768px){.editor-page{height:auto;min-height:calc(100vh - 61px)}.editor-container{grid-template-columns:1fr}.editor-pane+.editor-pane{border-left:none;border-top:1px solid var(--border)}#editor-input,#editor-preview{min-height:40vh}}
