/* One conversation workspace across Home, Messages and the case editor. */
.workflow .workflow-chat{display:grid;grid-template-columns:minmax(240px,35%) minmax(0,1fr);width:100%;border:1px solid var(--form_field,#c8cdcc);border-radius:8px;overflow:hidden;background:#fff;margin:16px 0 24px;min-height:440px}
.workflow .workflow-chat-list{min-width:0;border-right:1px solid var(--form_field,#c8cdcc);background:#fff}
.workflow .workflow-chat-list>h3{font-size:16px;margin:16px 16px 4px}
.workflow .workflow-chat-count{font-size:13px;margin:0 16px 12px;color:#4b5653;font-variant-numeric:tabular-nums}
.workflow .workflow-chat-contacts{max-height:560px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--primary,#3c615d) #f0f3f2}
.workflow .workflow-chat-contact{display:block;padding:13px 16px;border-top:1px solid #e4e9e7;color:#283832;text-decoration:none;overflow-wrap:anywhere}
.workflow .workflow-chat-contact:hover,.workflow .workflow-chat-contact[aria-current=true]{background:#edf3f1}
.workflow .workflow-chat-contact:focus-visible,.workflow .workflow-chat a:focus-visible,.workflow .workflow-chat button:focus-visible,.workflow .workflow-chat textarea:focus-visible{outline:3px solid #243f39;outline-offset:-3px}
.workflow .workflow-chat-contact-title{display:block;font-size:14px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow .workflow-chat-contact--unread .workflow-chat-contact-title{font-weight:700}
.workflow .workflow-chat-reference,.workflow .workflow-chat-preview{display:block;font-size:13px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#4b5653}
.workflow .workflow-chat-contact-meta{display:block;font-size:12px;line-height:1.6;margin-top:5px;color:#4b5653;font-variant-numeric:tabular-nums}
.workflow .workflow-chat-contact-meta strong{color:#243f39}
.workflow .workflow-chat-thread{display:flex;flex-direction:column;min-width:0;background:#fafbf9}
.workflow .workflow-chat-heading{padding:14px 18px;border-bottom:1px solid var(--form_field,#c8cdcc);background:#f2f5f3}
.workflow .workflow-chat-heading h3{font-size:15px;margin:6px 0;line-height:1.6;overflow-wrap:anywhere}
.workflow .workflow-chat-heading p{font-size:13px;margin:5px 0;color:#46554e;overflow-wrap:anywhere}
.workflow .workflow-chat-back{display:none}
.workflow .workflow-chat .message-timeline{display:flex;flex-direction:column;gap:14px;padding:18px;max-width:none;margin:0;min-height:160px;max-height:560px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--primary,#3c615d) #f0f3f2}
.workflow .workflow-chat .message-bubble{max-width:84%;min-width:0;padding:12px 16px;border-radius:16px;overflow-wrap:anywhere;border:1px solid #d6dfdb;background:#fff;color:#263b32;align-self:flex-start}
.workflow .workflow-chat .message-bubble--sent{background:#dceee7;color:#183f36;align-self:flex-end;border-color:#b7d2c6;border-end-end-radius:4px}
.workflow .workflow-chat .message-bubble--received{border-end-start-radius:4px}
.workflow .workflow-chat .message-bubble__meta{font-size:12px;line-height:1.6;margin:0 0 7px;color:inherit}
.workflow .workflow-chat .message-bubble__body{max-width:70ch;overflow:auto;line-height:1.6}
.workflow .workflow-chat .message-bubble__body>:first-child{margin-top:0}.workflow .workflow-chat .message-bubble__body>:last-child{margin-bottom:0}
.workflow .workflow-chat .message-bubble img,.workflow .workflow-chat .message-bubble table{max-width:100%;height:auto}
.workflow .workflow-chat .message-bubble pre{white-space:pre-wrap}.workflow .workflow-chat .message-bubble a{color:inherit;text-decoration:underline}
.workflow .workflow-chat-reply{padding:14px 18px;background:#fff;border-top:1px solid var(--form_field,#c8cdcc)}
.workflow .workflow-chat .workflow-chat-reply label{display:block;font-size:14px;margin:0 0 10px}
.workflow .workflow-chat .workflow-chat-reply textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:88px;margin-top:6px;caret-color:#183f36}
.workflow .workflow-chat .workflow-chat-reply .content-attachments p{font-size:12px;color:#4b5653}
.workflow .workflow-chat-history,.workflow .workflow-chat-notice{padding:10px 18px;margin:0;font-size:13px}
.workflow .workflow-chat-empty{padding:24px 18px;line-height:1.7}.workflow .workflow-chat-empty h3{font-size:17px;margin-top:0}
.workflow .workflow-chat ::selection{background:#c6e0d3;color:#183f36}
@media(max-width:760px){.workflow .workflow-chat{display:block;min-height:0}.workflow .workflow-chat-list{border:0}.workflow .workflow-chat-contacts{max-height:none}.workflow .workflow-chat-thread{display:none}.workflow .workflow-chat--selected .workflow-chat-list{display:none}.workflow .workflow-chat--selected .workflow-chat-thread{display:flex}.workflow .workflow-chat-back{display:inline-block;padding:7px 0;min-height:24px}.workflow .workflow-chat .message-timeline{max-height:none;padding:14px;min-height:120px}.workflow .workflow-chat .message-bubble{max-width:92%;padding:11px 13px}.workflow .workflow-chat-contact{padding:14px}.workflow .workflow-chat-heading,.workflow .workflow-chat-reply{padding:12px 14px}}

.workflow .workflow-chat-filters{display:flex;gap:8px;flex-wrap:wrap;padding:6px 16px 12px}.workflow .workflow-chat-filters a{font-size:13px;padding:6px 10px;color:#243f39;border:1px solid #bdcdc6;border-radius:16px;text-decoration:none}.workflow .workflow-chat-filters a[aria-current=page]{background:#dceee7;font-weight:700}

.workflow .workflow-chat-pages{display:flex;gap:12px;flex-wrap:wrap;padding:12px 16px;font-size:13px;margin:0;border-top:1px solid #e4e9e7}

.workflow .case-editor .workflow-chat .message-timeline{margin:0;gap:14px}.workflow .case-editor .workflow-chat .workflow-chat-reply textarea{min-height:88px;width:100%}
/* One branded, neutral conversation design on every workspace surface. */
.workflow .workflow-chat-list,.workflow .workflow-chat-thread{background:#fff}.workflow .workflow-chat-contact{position:relative;padding-left:58px;color:var(--workspace-secondary);text-decoration:none;border-color:#e4e5e6}.workflow .workflow-chat-contact:hover,.workflow .workflow-chat-contact[aria-current=true]{background:rgba(var(--brand-rgb),.05)}.workflow .workflow-chat-avatar{position:absolute;left:14px;top:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f1f2f3;color:var(--workspace-secondary);font-family:Poppins-Medium,Arial,sans-serif}.workflow .workflow-chat-reference,.workflow .workflow-chat-preview,.workflow .workflow-chat-contact-meta,.workflow .workflow-chat-count,.workflow .workflow-chat-heading p{color:#6b7177}.workflow .workflow-chat-contact-meta strong{display:inline-block;background:var(--workspace-primary);color:#fff;border-radius:12px;padding:1px 7px}.workflow .workflow-chat-heading{background:#f6f6f5;border-color:#e4e5e6}.workflow .workflow-chat .message-bubble--received{background:#f6f6f5;border-color:#e4e5e6;color:var(--body_text)}.workflow .workflow-chat .message-bubble--sent{background:rgba(var(--brand-rgb),.05);border-color:#e4e5e6;color:var(--body_text)}.workflow .workflow-chat-filters a{border-color:#c9cbce;color:var(--workspace-secondary);border-radius:6px}.workflow .workflow-chat-filters a[aria-current=page]{background:#f6f6f5}.workflow .workflow-chat :is(a,button,textarea):focus-visible{outline-color:var(--workspace-primary)}
