.pending-chip{display:inline-block;width:fit-content;padding:3px 7px;border-radius:6px;background:#fff0f2;color:#b42d3f;font-size:12px!important;font-weight:600;line-height:1.4}
.chat-thread-title .pending-chip{margin-left:10px;color:#b42d3f}
.chat-contact .pending-chip{margin-right:30px}
.pending-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;border-left:4px solid #b42d3f;border-radius:7px;background:#fff0f2;color:#a32537;padding:12px 16px;margin:10px 0}
.pending-banner button{color:#a32537;border-color:#e1a9b1;background:#fff;flex-shrink:0}
.pending-banner p{margin:6px 0 0;overflow-wrap:anywhere}
.inbox-item.urgent{border-left:4px solid #b42d3f;background:#fff0f2;padding-left:12px}
.chat-ai-panel{margin:8px 16px 0;border:1px solid #a6c6b4;border-radius:9px;background:#fff;flex:none;overflow:hidden}
.chat-ai-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#e5f0e8;cursor:pointer;font-size:14px;color:#245946}
.chat-ai-panel>summary::after{content:'▾';flex-shrink:0}.chat-ai-panel:not([open])>summary::after{content:'▸'}
.chat-ai-panel>summary span{font-size:12px;color:#526e60;margin-left:auto}
.chat-ai-body{padding:10px 12px;max-height:230px;overflow:auto;font-size:14px;line-height:1.5}
.chat-ai-body p{margin:0 0 8px}.chat-ai-body .muted{font-size:12px}
.chat-ai-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:10px}
.chat-ai-tools{display:flex;flex-wrap:wrap;gap:7px}.chat-ai-tools button{font-size:13px;padding:6px 10px}
.staff-ai-consult{max-width:960px}.staff-ai-consult [data-ai-answer]{white-space:pre-wrap;line-height:1.6;margin-top:18px;overflow-wrap:anywhere}
.staff-notification-settings .check{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.staff-notification-settings .check small{width:100%;margin-left:24px;color:#61776c}
@media(max-width:700px){.chat-ai-panel{margin:5px 10px 0}.chat-ai-body{max-height:170px}.chat-ai-panel>summary{flex-wrap:wrap;gap:4px}.chat-ai-panel>summary span{margin-left:0}.pending-banner{flex-wrap:wrap}.chat-thread-title .pending-chip{margin-left:0;margin-top:5px}}

body.ui-readable :is(.chat-ai-panel,.chat-ai-body,.chat-ai-text,.staff-ai-consult [data-ai-answer]){text-align:left;align-self:stretch}
body.ui-readable .chat-ai-panel>summary{justify-content:flex-start;text-align:left}
