.editor-shell{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface,#fff);min-width:0}.editor-topbar,.editor-toolbar,.editor-footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px;background:var(--bg);border-bottom:1px solid var(--line)}.editor-topbar label,.editor-toolbar label{display:flex;gap:8px;align-items:center}.editor-topbar select,.editor-toolbar select{min-height:36px;width:auto}.editor-frame{display:block;width:100%;height:740px;height:min(800px,82dvh);min-height:540px;border:0;background:#f6f8f8}.editor-status{margin:0;padding:10px 16px;font-size:13px;color:var(--muted);min-height:40px;overflow-wrap:anywhere}.editor-footer{justify-content:space-between;border-top:1px solid var(--line);border-bottom:0}.editor-footer label{display:flex;align-items:center;gap:8px}.editor-find{padding:12px 16px;border-bottom:1px solid var(--line)}.editor-find summary{cursor:pointer;font-weight:600}.editor-find input{width:100%;min-width:0}.document-page{max-width:850px;margin:24px auto;padding:40px;min-height:540px;box-shadow:0 2px 20px #183d380d;background:#fff}.document-page .tiptap{outline:0;min-height:460px;overflow-wrap:anywhere}.document-page .tiptap:focus-visible{outline:2px solid var(--accent);outline-offset:12px}.document-page .tiptap p{margin:0 0 12px}.document-page .tiptap h1,.document-page .tiptap h2,.document-page .tiptap h3{line-height:1.3;margin:20px 0 12px}.document-page .tiptap blockquote{border-left:3px solid var(--accent);padding-left:16px;margin-left:0}.document-page .tiptap table{border-collapse:collapse;width:100%;table-layout:fixed}.document-page .tiptap th,.document-page .tiptap td{border:1px solid var(--line);padding:8px;min-width:20px;vertical-align:top}.document-page .tiptap th{background:var(--accent-soft)}.document-page .tiptap pre{padding:14px;background:var(--bg);overflow:auto}.editor-toolbar .btn[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);outline:1px solid var(--accent)}#te-link-dialog{border:1px solid var(--line);border-radius:16px;max-width:calc(100vw - 32px);width:440px;padding:24px}#te-link-dialog input{width:100%;margin:12px 0}.pv-fs.editor-shell .editor-frame{height:calc(100dvh - 140px)}
@media(max-width:700px){.editor-topbar,.editor-toolbar,.editor-footer{gap:8px;padding:10px}.editor-topbar .hint{flex-basis:100%}.editor-frame{height:800px;min-height:600px}.editor-toolbar .btn{font-size:12px;min-height:36px;padding:6px 9px}.document-page{padding:20px;margin:0;min-height:420px}.document-page .tiptap{min-height:380px}.editor-find form{align-items:stretch}.editor-find label{display:grid;flex:1 1 130px}.editor-topbar .editor-format{font-size:12px}.editor-footer{font-size:13px}}
@media print{body.page-editor .site-header,body.page-editor .site-footer,body.page-editor .breadcrumbs,body.page-editor .tool-head,body.page-editor .tool-info,body.page-editor .related,body.page-editor .ad-slot,body.page-editor .editor-topbar,body.page-editor .editor-toolbar,body.page-editor .editor-find,body.page-editor .editor-footer,body.page-editor .editor-status,body.page-editor dialog,body.page-editor .fb{display:none!important}.text-editor{border:0;overflow:visible}.document-page{box-shadow:none;padding:0;max-width:none;margin:0}.container-editor{width:100%!important;max-width:none!important;padding:0!important}}

/* Keep the feedback control out of the editing workspace. */
.page-editor .fb{position:static;align-items:flex-end;margin:16px 24px}

.editor-find input{min-height:36px}

.editor-topbar label.btn:focus-within{outline:3px solid var(--accent);outline-offset:3px}
#recovery-leave{width:520px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--text);background:var(--surface,#fff)}#recovery-leave::backdrop{background:#183d3866}#recovery-leave .btn-row{display:flex;gap:10px;flex-wrap:wrap}#recovery-leave-status{color:var(--muted)}
