/* R831 — non-scrolling group header fixed above the message timeline. */
.client-inbox-workspace .client-shell.inbox .conversation.chat-panel>.client-chat-head-stack {display:flex!important;flex-direction:column!important;flex:0 0 auto!important;min-width:0;min-height:0;max-height:none;position:relative;z-index:4;background:var(--ref-panel,var(--surface,#fff));}
.client-inbox-workspace .client-shell.inbox .conversation.chat-panel>.client-chat-head-stack>.conversation-header {display:flex!important;order:0!important;flex:0 0 auto!important;min-height:54px;max-height:none;position:relative;}
.client-inbox-workspace .client-shell.inbox .conversation.chat-panel>.client-chat-head-stack>.client-group-member-tabs-conversation {display:flex!important;order:1!important;flex:0 0 auto!important;align-items:center;align-content:center;flex-wrap:wrap!important;gap:5px 6px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:0;padding:6px 11px;overflow:visible!important;scrollbar-width:none!important;border-bottom:1px solid var(--ref-line,rgba(127,127,127,.15));background:var(--ref-panel,var(--surface,#fff));}
.client-inbox-workspace .client-shell.inbox .client-group-member-tabs-conversation .client-group-participants-open {margin-left:auto;min-height:29px;}
.client-inbox-workspace .client-shell.inbox .client-group-member-tabs-conversation .pipeline-tab {padding:5px 9px;min-height:29px;display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;max-width:100%;}
.client-inbox-workspace .client-shell.inbox .client-group-member-tabs-conversation .pipeline-tab small{font-size:10px;font-variant-numeric:tabular-nums;}
.client-inbox-workspace .client-shell.inbox .client-group-pipeline-loading,.client-inbox-workspace .client-shell.inbox .client-group-ai-inactive {color:var(--ref-dim,var(--muted));font-size:11px;}
.client-inbox-workspace .client-shell.inbox .conversation.chat-panel>.client-reference-body {order:0!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;}
.client-inbox-workspace .client-shell.inbox .client-chat-head-stack .r477-heading-text strong {font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;}
/* Do not add a scrollbar to the pipeline; only message history should scroll. */
.client-inbox-workspace .client-shell.inbox .client-chat-head-stack .client-group-member-tabs::-webkit-scrollbar{display:none!important;}
/* Telegram-like links: readable in both themes, no artificial underlining. */
.client-inbox-workspace .client-shell.inbox #messages .r224-message-text a:not(.client-telegram-button),
.client-inbox-workspace .client-shell.inbox #messages .r224-message-text a[href]{color:var(--ref-blue,var(--blue,#338ad3))!important;text-decoration:none!important;font-weight:550;overflow-wrap:anywhere;word-break:break-word;}
.client-inbox-workspace .client-shell.inbox #messages .r224-message-text a:hover{text-decoration:underline!important;text-underline-offset:2px;}
.client-inbox-workspace .client-shell.inbox #messages .r224-message-text a:focus-visible {outline:2px solid currentColor;outline-offset:2px;border-radius:2px;}
/* Media is edge-to-edge within its bubble; not another framed card. */
.client-inbox-workspace .client-shell.inbox #messages article.client-seamless-media {padding:0!important;overflow:hidden!important;border:0!important;outline:0!important;}
.client-inbox-workspace .client-shell.inbox #messages article.client-seamless-media :is(img.client-message-photo,video.client-message-video) {display:block;max-width:100%;width:100%;height:auto;margin:0!important;padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;}
.client-inbox-workspace .client-shell.inbox #messages :is(img.client-message-photo,video.client-message-video){border:0!important;outline:0!important;box-shadow:none!important;}
.client-inbox-workspace .client-shell.inbox #messages .client-telegram-message-stack {transition:none!important;}
.client-inbox-workspace .client-shell.inbox #messages .client-telegram-message-stack :is(.msg,.client-group-message-row){animation:none!important;}
/* Popup reuse from the same shared knowledge markup; avoid nested dialog scrollbars. */
.client-inbox-workspace .r216-popup [data-r216-section="knowledge"] .client-shared-knowledge {min-width:0;width:100%;max-width:100%;box-sizing:border-box;}
.client-inbox-workspace .r216-popup [data-r216-section="knowledge"] .client-knowledge-list {max-height:none!important;overflow:visible!important;}
.client-inbox-workspace .r216-popup [data-r216-section="knowledge"] {min-width:0;}
@media(max-width:750px){.client-inbox-workspace .client-shell.inbox .conversation.chat-panel>.client-chat-head-stack>.client-group-member-tabs-conversation{padding:5px 7px;gap:4px;}.client-inbox-workspace .client-shell.inbox .client-chat-head-stack .conversation-header{min-height:50px!important;}}
