.rich-editor{border:1px solid var(--line);border-radius:6px;overflow:visible;background:#fff;position:relative}.rich-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:7px;background:#f8fafc;border-bottom:1px solid var(--line)}.rich-toolbar button,.rich-toolbar select{height:30px;border:1px solid var(--line);background:#fff;border-radius:4px;padding:3px 9px;color:var(--ink);cursor:pointer}.rich-toolbar button:hover,.rich-toolbar select:hover{border-color:var(--blue);color:var(--blue)}.rich-content{min-height:260px;padding:14px;outline:0;line-height:1.8}.rich-content:focus{box-shadow:inset 0 0 0 2px rgba(22,119,255,.12)}.rich-content img{max-width:100%;height:auto}.color-palette{position:fixed;z-index:1000;max-width:calc(100vw - 16px);border-radius:6px;display:grid;grid-template-columns:repeat(8,18px);gap:5px;padding:10px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 22px rgba(0,0,0,.15)}.color-palette .swatch{width:18px;height:18px;min-width:18px;padding:0;border:1px solid #ddd}@media(max-width:700px){.rich-toolbar{position:sticky;top:56px;z-index:3;flex-wrap:nowrap;overflow:auto}.rich-toolbar button,.rich-toolbar select{min-width:42px;min-height:36px;white-space:nowrap}.rich-content{min-height:300px}}
