/* Core Rich Text Editor v2 — Tiptap / ProseMirror — core.design.rich-text-editor/v1 */
.nv-rte{border:1px solid var(--nv-color-border,#e1e8e3);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 18px rgba(18,42,25,.05)}
.nv-rte__label{display:block;padding:10px 12px 0;font-weight:800;color:var(--nv-color-text,#1f2822)}
.nv-rte__engine-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px 0;font:700 11px/1.2 Inter,system-ui,sans-serif;color:#68736c}.nv-rte__engine{display:inline-flex;align-items:center;gap:6px}.nv-rte__engine:before{content:'●';color:#2abd40}.nv-rte__state[data-state=error]{color:#c62828}.nv-rte__state[data-state=ready]{color:#167b26}
.nv-rte__toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;border-bottom:1px solid var(--nv-color-border,#e1e8e3);background:#f8faf9;position:sticky;top:0;z-index:2}
.nv-rte__group{display:flex;align-items:center;gap:4px;padding-right:6px;margin-right:2px;border-right:1px solid #e4eae6}.nv-rte__group:last-child{border-right:0}
.nv-rte__btn,.nv-rte__select,.nv-rte__input{min-height:34px;border:1px solid #d8e0da;border-radius:8px;background:#fff;color:#1f2822;font:600 12px/1.1 Inter,system-ui,sans-serif}
.nv-rte__btn{min-width:34px;padding:0 8px;cursor:pointer}.nv-rte__btn:hover{border-color:#a8b9ad;background:#f1f7f2}.nv-rte__btn.is-active{border-color:#2abd40;background:#effaf1;color:#167b26}.nv-rte__btn:focus-visible,.nv-rte__select:focus-visible,.nv-rte__input:focus-visible{outline:3px solid rgba(42,189,64,.18);outline-offset:1px}
.nv-rte__select{padding:0 26px 0 8px;max-width:180px}.nv-rte__select--font{min-width:155px}.nv-rte__select--size{min-width:82px}.nv-rte__select--block{min-width:105px}
.nv-rte__color{display:flex;align-items:center;gap:4px;font:800 12px Inter,system-ui,sans-serif}.nv-rte__color input[type=color]{width:34px;height:34px;padding:3px;border:1px solid #d8e0da;border-radius:8px;background:#fff;cursor:pointer}
.nv-rte__editor{min-height:var(--nv-rte-height,220px);max-height:680px;overflow:auto;color:#1f2822;background:#fff;outline:0;word-break:break-word}
.nv-rte__prosemirror,.nv-rte__fallback{min-height:var(--nv-rte-height,220px);padding:14px 16px;outline:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;white-space:pre-wrap}
.nv-rte__prosemirror:focus,.nv-rte__fallback:focus{box-shadow:inset 0 0 0 2px rgba(42,189,64,.16)}
.nv-rte__prosemirror p.is-editor-empty:first-child:before,.nv-rte__fallback:empty:before{content:attr(data-placeholder);float:left;color:#9aa59e;pointer-events:none;height:0}
.nv-rte__prosemirror p{margin:.45em 0}.nv-rte__prosemirror h1,.nv-rte__prosemirror h2,.nv-rte__prosemirror h3,.nv-rte__prosemirror h4{margin:.55em 0 .35em;line-height:1.2}.nv-rte__prosemirror h1{font-size:2em}.nv-rte__prosemirror h2{font-size:1.55em}.nv-rte__prosemirror h3{font-size:1.25em}.nv-rte__prosemirror blockquote{margin:.8em 0;padding:.4em .9em;border-left:4px solid #cfe5d3;background:#f7faf8}.nv-rte__prosemirror ul,.nv-rte__prosemirror ol{padding-left:1.6em}.nv-rte__prosemirror a{color:#245a9b;text-decoration:underline}.nv-rte__prosemirror code{background:#f0f3f1;border-radius:5px;padding:.1em .3em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.nv-rte__prosemirror pre{background:#172019;color:#f4fff6;border-radius:10px;padding:12px;overflow:auto}.nv-rte__prosemirror hr{border:0;border-top:1px solid #dfe7e1;margin:1em 0}
.nv-rte__source{display:none!important}.nv-rte__kbd{font-size:11px;color:#68736c;margin-left:auto;padding:0 4px}.nv-rte__fallback-warning{padding:7px 9px;border-radius:8px;background:#fff4e5;color:#8a5500;font-weight:800;font-size:12px}
@media(max-width:900px){.nv-rte__toolbar{gap:4px}.nv-rte__group{padding-right:4px}.nv-rte__select--font{min-width:120px;max-width:140px}.nv-rte__kbd{display:none}.nv-rte__engine-row{align-items:flex-start;flex-direction:column;gap:3px}}

.nv-rte__editor img{max-width:100%;height:auto;border-radius:4px}.nv-rte__editor img.ProseMirror-selectednode{outline:2px solid var(--nv-green,#2abd40)}
