.chat-rich-input { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; outline:none; cursor:text; }
.chat-rich-input[data-empty]::before { content:attr(data-placeholder); color:#9ba1b8; pointer-events:none; float:left; height:0; }
.chat-rich-input[aria-disabled] { opacity:.55; cursor:default; }
.chat-rich-input b,.chat-rich-input strong,.ac-message-text strong,.cc-message-text strong,.cs-secret-text strong { font-weight:700; }
.chat-bold-toolbar { position:fixed; z-index:1200; width:104px; height:36px; padding:4px; box-sizing:border-box; background:#fff; border:1px solid #e5e5ef; border-radius:10px; box-shadow:0 6px 20px #2526381a; font:14px/20px Manrope,sans-serif; }
.chat-bold-toolbar button { display:flex; align-items:center; justify-content:center; gap:13px; width:100%; height:100%; border:0; background:transparent; border-radius:6px; color:#353642; padding:0; cursor:pointer; }
.chat-bold-toolbar button b { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:5px; font-size:16px; font-weight:750; }
.chat-bold-toolbar button span { border-left:1px solid #e8e8ef; padding-left:12px; color:#9698ad; font-size:11px; }
.chat-bold-toolbar kbd { font:inherit; color:inherit; background:#f3f3f5; border-radius:5px; padding:2px 5px; }
.chat-bold-toolbar button[aria-pressed=true] b { color:#7764ed; background:#f0ecff; }
.chat-bold-toolbar button:hover { background:#f5f3ff; }
.chat-bold-toolbar button:focus-visible { outline:2px solid #8675f6; outline-offset:1px; }
.chat-rich-notice { position:absolute; bottom:100%; padding:6px 10px; background:#fff; color:#a14c54; border-radius:8px; font:12px/18px Manrope,sans-serif; }

/* Rich editing keeps the published textarea metrics. The existing resize hook
   measures this surface in place, without a hidden mirror of secret text. */
.admin-chats .ac-composer .chat-rich-input { box-sizing:border-box; flex:1; min-width:0; width:100%; border:0; outline:none; padding:7px 0; min-height:34px; height:34px; max-height:none; overflow-y:hidden; color:var(--ac-ink); font-family:inherit; font-size:14px; line-height:20px; background:transparent; }
.admin-chats .ac-composer .chat-rich-input:focus-visible { outline:0; }
.cma-dialog .chat-rich-input { display:block; box-sizing:border-box; width:100%; min-height:128px; max-height:280px; overflow-y:auto; padding:12px; border:1px solid #dfe1e9; border-radius:12px; font:inherit; color:inherit; background:#fff; }
.cma-dialog .chat-rich-input:focus-visible { outline:2px solid #8171f9; outline-offset:2px; }
@media(max-width:780px) { .admin-chats[data-mobile-panel] .ac-composer .chat-rich-input { flex:1 1 auto; width:0; min-width:0; min-height:44px; height:44px; max-height:none; padding:10px 0; font-size:16px; line-height:24px; border:0; border-radius:0; overflow-y:hidden; } }
@media(max-width:760px) { .cma-dialog .chat-rich-input { font-size:16px; } }
