.wv-rich-editor{--re-border:#b9b3c480;--re-accent:#8060bc;display:block;min-width:0;max-width:100%;border:1px solid var(--re-border);border-radius:14px;overflow:hidden;background:var(--surface,transparent);color:inherit;text-align:left;font:inherit}
.wv-rich-editor [hidden]{display:none!important}
.wv-rich-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 10px;min-height:44px}
.wv-rich-head .wv-rich-toggle{display:inline-flex;align-items:center;min-height:40px;width:auto;border:0;background:transparent;color:inherit;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;padding:6px 0;text-align:left}
.wv-rich-count{font:11px/1.2 system-ui,sans-serif;white-space:nowrap;opacity:.7}
.wv-rich-editor .wv-rich-tools{display:flex;flex-wrap:wrap;gap:5px;padding:9px;max-height:152px;overflow:auto;border-top:1px solid var(--re-border);border-bottom:1px solid var(--re-border);overscroll-behavior:contain}
.wv-rich-tools button{flex:0 0 auto;min-width:36px;min-height:36px;width:auto;padding:6px 9px;border:1px solid var(--re-border);border-radius:8px;color:inherit;background:transparent;font:12px/1.2 system-ui,sans-serif;cursor:pointer}
.wv-rich-tools button:hover{background:#8060bc18}
.wv-rich-editor :focus-visible{outline:2px solid var(--re-accent);outline-offset:-2px}
.wv-rich-input,.wv-rich-preview{min-height:110px;max-height:320px;overflow:auto;padding:12px 14px;outline:none;font:inherit;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap;overscroll-behavior:contain;cursor:text}
.wv-rich-input:empty:before{content:attr(data-placeholder);opacity:.55;pointer-events:none}
.wv-rich-editor .wv-rich-status{display:block;min-height:0;padding:0 12px 8px;color:#b34b4b;font:12px/1.4 system-ui,sans-serif}
.wv-rich-editor .wv-rich-status:empty{display:none}
.wv-rich-link{display:flex;gap:6px;align-items:center;width:100%}
.wv-rich-link input{min-width:0;flex:1;font-size:16px}
.wv-rich-read{overflow-wrap:anywhere;white-space:pre-wrap}
.wv-rich-input :is(p,h2,h3,ul,ol,blockquote,pre),.wv-rich-read :is(p,h2,h3,ul,ol,blockquote,pre){margin:0 0 .6em}
.wv-rich-input :is(h2,h3),.wv-rich-read :is(h2,h3){font-size:1.15em;line-height:1.35}
.wv-rich-input :is(ul,ol),.wv-rich-read :is(ul,ol){padding-left:1.5em;white-space:normal}
.wv-rich-input blockquote,.wv-rich-read blockquote{border-left:3px solid #8060bc;padding-left:12px;opacity:.9}
.wv-rich-input a,.wv-rich-read a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.wv-rich-input{font-size:16px;min-height:96px;max-height:260px}.wv-rich-tools button{min-height:44px}.wv-rich-editor .wv-rich-tools{max-height:160px}.wv-rich-head{padding-inline:10px}}

/* U15: readable editing surface, focus workspace and contained toolbars. */
.wv-rich-editor{border-color:#a89ab9;box-shadow:0 3px 14px #25153509;background:var(--surface,#fff);color:var(--text,#30243d)}
.wv-rich-head{background:linear-gradient(105deg,#f6f1ff,#f8fafc);padding:5px 12px;flex-wrap:wrap}
.wv-rich-editor .wv-rich-focus{font:600 12px system-ui;min-height:36px;padding:6px 10px;border:1px solid #c9bfda;border-radius:9px;color:#513581;background:#fff;cursor:pointer}
.wv-rich-count{margin-left:auto;color:#685b77;opacity:1}
.wv-rich-tools button{background:#fff;color:#392a4a;border-color:#c8bdd8}
.wv-rich-tools button:disabled{opacity:.4;cursor:default}
.wv-rich-input[aria-readonly=true]{background:#f2f0f5;cursor:default}
.wv-editor-dialog{width:min(1000px,96vw);max-width:96vw;height:min(850px,92dvh);max-height:92dvh;margin:auto;padding:0;border:1px solid #b5a6ca;border-radius:18px;background:#fff;color:#30243d;box-shadow:0 24px 100px #11092066;overflow:hidden}
.wv-editor-dialog::backdrop{background:#140b25a6}
.wv-editor-dialog .wv-rich-editor{height:100%;display:flex;flex-direction:column;border:0;border-radius:0}
.wv-editor-dialog .wv-rich-input,.wv-editor-dialog .wv-rich-preview{flex:1;min-height:0;max-height:none;padding:20px clamp(14px,4vw,48px);font-size:17px;line-height:1.8}
.wv-editor-dialog .wv-rich-head,.wv-editor-dialog .wv-rich-tools{flex-shrink:0}
@media(max-width:600px){.wv-rich-head{gap:6px}.wv-rich-toggle{flex:1}.wv-rich-focus{min-height:44px!important}.wv-editor-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.wv-editor-dialog .wv-rich-head{padding-top:max(5px,env(safe-area-inset-top))}.wv-editor-dialog .wv-rich-tools{max-height:24dvh}.wv-editor-dialog .wv-rich-input{padding-bottom:max(20px,env(safe-area-inset-bottom))}}
