
/* R829 group toolbar: exactly once, inside the opened chat above pinned messages. */
.client-inbox-workspace .client-group-member-tabs-conversation {
 flex:0 0 auto;display:flex;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;
 min-height:46px;padding:7px 11px;border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent);
 background:var(--client-chat-background,var(--surface,#fff));scrollbar-width:thin;
}
.client-inbox-workspace .client-group-member-tabs-conversation .client-group-pipeline-label{flex:0 0 auto;font-size:12px;font-weight:700;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.client-inbox-workspace .client-group-member-tabs-conversation .pipeline-tab{flex:0 0 auto;min-width:max-content;border-radius:999px;padding:6px 10px;font-size:12px;min-height:29px;}
.client-inbox-workspace .client-group-member-tabs-conversation .client-group-participants-open{flex:0 0 auto;}
.client-inbox-workspace .client-group-card-stages{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:4px;min-width:0;}
.client-inbox-workspace .client-group-stage-placeholder{font-size:10px;opacity:.55;}
.client-inbox-workspace .client-group-count-chip{border-radius:7px;padding:3px 6px;font-size:10px;line-height:1.3;font-weight:700;background:rgba(59,130,246,.13);color:#3b82f6;}
.client-inbox-workspace .client-group-count-chip[data-stage=lead_detected]{background:rgba(139,92,246,.16);color:#9567dc;}
.client-inbox-workspace .client-group-count-chip[data-stage=general_support]{background:rgba(14,165,233,.13);color:#1584af;}
.client-inbox-workspace .client-group-count-chip[data-stage=qualified]{background:rgba(16,185,129,.15);color:#0c9470;}
.client-inbox-workspace .client-group-count-chip[data-stage=negotiating]{background:rgba(234,179,8,.14);color:#a27b07;}
.client-inbox-workspace .client-group-count-chip[data-stage=won]{background:rgba(34,197,94,.15);color:#178a47;}
.client-inbox-workspace .client-group-count-chip[data-stage=spam]{background:rgba(239,68,68,.13);color:#c83d3d;}
.client-inbox-workspace .client-card[data-kind=groups] .client-card-controls:empty{display:none;}
/* Keep image space reserved while decoding; avoid jitter on reflows. */
.client-inbox-workspace #messages img.client-message-photo{display:block;object-fit:contain;max-width:100%;height:auto;contain-intrinsic-size:320px 240px;}
.client-inbox-workspace #messages img.client-media-unavailable{visibility:hidden;}
/* In-client browser is isolated from the chat's layout and scrolling. */
.client-browser-overlay{position:fixed;inset:clamp(10px,4vh,40px) clamp(8px,5vw,65px);z-index:2147483000;display:flex;flex-direction:column;
 background:var(--surface,#f9fafb);color:var(--text,#17202a);border:1px solid #b8c3d2;border-radius:15px;box-shadow:0 12px 55px #0005;overflow:hidden;}
.client-browser-header{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#edf2f9;color:#17202a;border-bottom:1px solid #ccd6e0;}
.client-browser-header strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;}
.client-browser-header span{font-size:11px;opacity:.7;}
.client-browser-header button,.client-browser-address button{border-radius:9px;background:#fff;color:#1d2632;border:1px solid #ccd6e0;padding:8px 11px;cursor:pointer;}
.client-browser-address{display:flex;gap:8px;padding:9px;background:#fff;color:#141d2b;}
.client-browser-address input{flex:1;min-width:0;border:1px solid #c7d0d9;border-radius:8px;padding:9px;font-size:13px;color:#17202a;background:#fff;}
.client-browser-content{flex:1;display:flex;flex-direction:column;min-height:0;background:#f8fafc;color:#17202a;}
.client-browser-content iframe{flex:1;width:100%;height:100%;border:0;background:white;}
.client-browser-notice{padding:24px;max-width:690px;margin:auto;line-height:1.5;overflow-wrap:anywhere;}
.client-browser-notice h2{margin:0 0 8px;font-size:18px;}
.client-browser-notice code{word-break:break-all;}
.client-browser-hint{padding:6px 11px;margin:0;font-size:11px;color:#64748b;}
@media(max-width:750px){.client-browser-overlay{inset:0;border-radius:0}.client-inbox-workspace .client-group-member-tabs-conversation{padding:6px 8px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.client-inbox-workspace #messages *{transition-duration:.01ms!important;animation-duration:.01ms!important;}}
