#page-editor[hidden]{display:none}#page-editor{position:fixed;inset:0;z-index:60;background:var(--panel);overflow:auto}#editor-content{height:100dvh;display:flex;flex-direction:column}.editing-page{overflow:hidden}.editing-page .modal-header{flex-shrink:0}.editing-page .editor-details{padding:12px 20px}.editing-page .editor-grid{display:grid;grid-template-columns:minmax(0,var(--editor-split,50%)) 8px minmax(0,1fr);flex:1;height:auto;min-height:250px}.editing-page .code-pane{height:auto;min-height:0;display:flex;flex-direction:column}.editor-divider{cursor:col-resize;background:var(--line);touch-action:none}.editor-divider:focus-visible{outline:2px solid var(--feed-blue)}.source-editor{flex:1;min-height:0;width:100%;overflow:hidden}.cm-editor{height:100%;font:14px/1.6 monospace}.cm-scroller{overflow:auto}.editing-page .preview-pane{height:auto}.editing-page .editor-help{padding:8px 20px}.editing-page .modal-footer{flex-shrink:0;padding:12px 20px}.editor-status{flex-shrink:0}.editor-confirm{display:flex;align-items:center;gap:12px;padding:12px 20px;background:var(--ink);border-top:1px solid var(--line)}.editor-confirm button{border:1px solid var(--line);padding:8px;border-radius:6px}.editor-preview-tab{display:none}
@media(max-width:720px){#editor-content{height:100dvh}.editing-page .modal-header p,.editing-page .editor-help{display:none}.editing-page .editor-details{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editing-page .editor-details .field:last-child{grid-column:1/-1}.editing-page .editor-toolbar{padding:6px 12px}.editing-page .editor-grid{display:flex;min-height:180px}.editing-page .code-pane,.editing-page .preview-pane{height:100%;width:100%}.editor-divider{display:none}.editor-preview-tab{display:inline-block}.editing-page .preview-pane{display:none}.editing-page[data-editor-tab=preview] .code-pane{display:none}.editing-page[data-editor-tab=preview] .preview-pane{display:block}.editing-page .modal-footer small{display:none}.editing-page .modal-footer{justify-content:flex-end;padding:8px 12px}.editing-page .editor-status{margin:4px 12px}.editor-confirm{flex-wrap:wrap}}
#page-editor .mobile-editor-tabs{display:none}@media(max-width:720px){#page-editor .mobile-editor-tabs{display:flex;gap:8px;padding:6px 12px}#page-editor .mobile-editor-tabs button{border:1px solid var(--line);border-radius:6px;padding:6px 14px}#page-editor .editor-preview-tab{display:none}}
