/* XBF rich text editor — uses the existing Service Desk tokens. */
.xbf-richtext{border:1px solid var(--line-strong,#cfd8e5);border-radius:10px;background:var(--surface-2,#f8fafc);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}
.xbf-richtext:focus-within{border-color:var(--accent,#1e6bff);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#1e6bff) 18%,transparent)}
.xbf-rich-toolbar{display:flex;align-items:center;gap:3px;min-height:38px;padding:5px 7px;border-bottom:1px solid var(--line,#dce4ee);background:var(--surface,#fff);flex-wrap:wrap}
.xbf-rich-btn{min-width:29px;height:27px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text,#14233d);font:600 12px/1 inherit;cursor:pointer}
.xbf-rich-btn:hover:not(:disabled),.xbf-rich-btn:focus-visible{border-color:var(--line-strong,#b8c5d6);background:var(--surface-2,#f2f6fb);outline:none}
.xbf-rich-btn:disabled{opacity:.42;cursor:not-allowed}.xbf-rich-highlight{background:#fff3a3;color:#6a5200}.xbf-rich-editor{min-height:96px;padding:10px 12px;background:var(--surface-2,#f8fafc);color:var(--text,#14233d);font:13px/1.55 inherit;outline:none;overflow:auto}.xbf-rich-editor[contenteditable="false"]{opacity:.72;cursor:not-allowed}
.xbf-rich-editor p,.xbf-rich-editor div{margin:0 0 6px}.xbf-rich-editor p:last-child,.xbf-rich-editor div:last-child{margin-bottom:0}.xbf-rich-editor ul,.xbf-rich-editor ol{margin:4px 0 7px;padding-left:23px}.xbf-rich-editor blockquote{margin:7px 0;padding-left:10px;border-left:3px solid var(--accent,#1e6bff);color:var(--text-2,#52627a)}.xbf-rich-editor mark{padding:0 2px;background:#fff3a3;border-radius:2px}.xbf-rich-editor a{color:var(--accent-text,#1455c0);text-decoration:underline}.xbf-rich-editor img{display:block;max-width:100%;height:auto;margin:8px 0;border-radius:7px;border:1px solid var(--line,#dce4ee)}
.xbf-rich-help{padding:5px 11px;border-top:1px solid var(--line,#dce4ee);color:var(--text-3,#708096);font-size:10px;line-height:1.35}.xbf-rich-empty{color:var(--text-3,#708096);font-style:italic}
.xbf-rich-attachments{display:flex;align-items:center;gap:8px;min-height:30px;padding:5px 11px;border-top:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--text-2,#52627a);font-size:10px}.xbf-rich-attachments-remove{margin-left:auto;border:0;background:transparent;color:var(--accent-text,#1455c0);font:600 10px/1.2 inherit;cursor:pointer;padding:3px 4px;border-radius:4px}.xbf-rich-attachments-remove:hover,.xbf-rich-attachments-remove:focus-visible{background:var(--surface-2,#f2f6fb);text-decoration:underline;outline:none}
