.rte{border:1px solid var(--line,#d8e0db);border-radius:12px;background:var(--surface,#fff);overflow:hidden}.rte:focus-within{border-color:var(--gold-500,#c9a24b);box-shadow:0 0 0 3px #c9a24b2e}.rte-bar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:6px 8px;border-bottom:1px solid var(--line,#e2e9e4);background:var(--surface-2,#f7faf8)}.rte-bar button{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 6px;border:0;border-radius:7px;background:none;color:var(--ink,#12261f);font:inherit;font-size:14px;cursor:pointer}.rte-bar button:hover,.rte-bar button:focus-visible{background:#0f403214}.rte-bar select{height:32px;border:1px solid var(--line,#d8e0db);border-radius:7px;background:var(--surface,#fff);color:var(--ink,#12261f);font:inherit;font-size:13px;padding:0 6px}.rte-sep{width:1px;height:20px;background:var(--line,#d8e0db);margin:0 4px}.rte-linkbox{display:inline-flex;gap:4px;margin-left:4px}.rte-linkbox[hidden]{display:none}.rte-linkbox input{height:30px;width:220px;border:1px solid var(--line,#d8e0db);border-radius:7px;padding:0 8px;font:inherit;font-size:13px;background:var(--surface,#fff);color:var(--ink,#12261f)}.rte-linkbox .rte-linkok{background:var(--green-800,#0f4032)!important;color:#fff!important;padding:0 10px}.rte-body{position:relative;padding:12px 14px;outline:none;font-size:14.5px;line-height:1.6;color:var(--ink,#12261f);max-height:60vh;overflow:auto;overflow-wrap:anywhere}.rte-body.rte-empty:before{content:attr(data-ph);color:var(--ink-3,#5f7068);pointer-events:none;position:absolute}.rte-body.rte-drop{background:#c9a24b14;outline:2px dashed var(--gold-500,#c9a24b);outline-offset:-6px}.rte-hint{padding:5px 12px 7px;font-size:12px;color:var(--ink-3,#5f7068);border-top:1px solid var(--line,#e2e9e4)}.rte-hint kbd{font:inherit;font-size:11px;padding:0 4px;border:1px solid var(--line,#d8e0db);border-radius:4px;background:var(--surface,#fff)}.rte-body p,.rte-view p{margin:0 0 .7em}.rte-body h2,.rte-view h2{font-size:1.25em;margin:.9em 0 .4em}.rte-body h3,.rte-view h3{font-size:1.08em;margin:.8em 0 .35em}.rte-body ul,.rte-body ol,.rte-view ul,.rte-view ol{margin:0 0 .7em;padding-left:1.5em}.rte-body blockquote,.rte-view blockquote{margin:.4em 0 .8em;padding:8px 12px;border-left:4px solid var(--gold-500,#c9a24b);background:#c9a24b14;border-radius:0 8px 8px 0}.rte-body img,.rte-view img{max-width:100%;height:auto;border:1px solid var(--line,#e2e9e4);border-radius:8px;display:block;margin:6px 0}.rte-view img{cursor:zoom-in}.rte-view a,.rte-body a{color:var(--green-700,#16543f);text-decoration:underline}.rte-view{overflow-wrap:anywhere}.rte-view>:last-child{margin-bottom:0}.rte-lb{position:fixed;inset:0;z-index:9000;background:#050f0adb;display:grid;place-items:center;padding:24px;cursor:zoom-out}.rte-lb img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 20px 60px #00000080;background:#fff}.rte-lb button{position:absolute;top:14px;right:18px;width:42px;height:42px;border-radius:50%;border:0;background:#ffffff26;color:#fff;font-size:26px;cursor:pointer}[data-theme=dark] .rte-bar button{color:var(--ink,#e8f0ea)}@media (max-width:700px){.rte-linkbox input{width:150px}.rte-hint{display:none}.rte-body{max-height:50vh}}
