.crm-shell-v2[data-page=dialogs] .main-nav-resize>span{top:20px}
.conversation-list,.conversation,.detail-pane{padding:0;overflow:hidden;display:flex;flex-direction:column}
.conversation-top{display:flex;align-items:center;gap:11px;padding:17px 17px;border-bottom:1px solid var(--line);min-height:77px}
.conversation-top h3{font-size:13px}
.conversation-top p{color:#6083ad;font-size:10px;margin-top:3px}
.messages{padding:18px 18px 8px;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.bubble{background:#aed0f332;border:1px solid #ffffff36;padding:11px 13px;border-radius:15px 15px 15px 4px;font-size:12px;line-height:1.65}
.out .bubble{color:#fff;background:linear-gradient(145deg,#65aaff,#408aff);border-color:#a5d0ff80;border-radius:15px 15px 4px 15px;box-shadow:0 3px 9px #1674e513}
.message-time{font-size:9px;color:#6b8cba;display:flex;gap:4px;align-items:center}
.message-time .icon{width:12px;height:12px;color:var(--blue)}
.detail-tabs{padding:10px;border-bottom:1px solid var(--line);flex-shrink:0}
.detail-tabs .tabs{padding:0;background:none;border:0;gap:0}
.detail-tabs .tabs button{padding:10px 9px;flex:1}
.detail-scroll{padding:18px;overflow-y:auto;flex:1}
@media(max-width:1260px){.detail-scroll{padding:14px}
.detail-tabs .tabs button{font-size:10px;padding-inline:7px}
.conversation-top{padding:14px 12px}
.messages{padding:16px 13px}
}
@media(max-width:800px){.conversation-list,.conversation,.detail-pane{height:100%;border-radius:18px}
.conversation-list{padding:0}
.conversation{display:none}
.triple.chat-open>.conversation-list{display:none}
.triple.chat-open>.conversation{display:flex}
.conversation-top{padding:14px}
.conversation-top h3{font-size:13px}
.messages{padding:18px 15px;gap:15px}
.bubble{font-size:13px}
.conversation-list .tabs button{flex:1}
}

.live-chat .conversation-list{grid-column:1!important;padding:0;display:flex;flex-direction:column;overflow:hidden}
.live-chat .conversation{grid-column:2!important;padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.live-chat-list{overflow:auto;flex:1}
.live-contact{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:transparent;border:0;border-bottom:1px solid #8aadce22;padding:16px;cursor:pointer;color:inherit}
.live-contact.active{background:#bfdcff55}
.live-contact>span:not(.avatar){flex:1;min-width:0}
.live-contact strong,.live-contact small,.live-contact em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-contact small{font-size:12px;margin:6px 0;color:var(--muted)}
.live-contact em{font-size:10px;font-style:normal;color:var(--muted)}
.messages{overflow:auto;min-height:0;padding:20px!important;flex:1}
.live-message{display:flex;justify-content:flex-start;margin:12px 0}
.live-message.outbound{justify-content:flex-end}
.live-message .bubble{max-width:85%;border-radius:18px;background:#ffffff66;border:1px solid #ffffffaa;padding:12px 16px;overflow-wrap:anywhere}
.live-message.outbound .bubble{background:#b5d9ff66}
.live-message p{white-space:pre-wrap;margin:0 0 9px}
.live-message small{font-size:10px;color:var(--muted)}
.message-image{display:block;max-height:240px;max-width:100%;border-radius:12px;margin:8px 0}
.live-message audio,.live-message video{max-width:100%;width:300px}
@media(max-width:700px){.live-chat .conversation{display:none!important}
.live-chat.chat-open .conversation-list{display:none}
.live-chat.chat-open .conversation{display:flex!important;grid-column:1!important}
.live-message .bubble{max-width:95%}
}
@media(max-width:700px){.conversation-top{flex-wrap:wrap;gap:6px;padding:12px!important}
.conversation-top .contact{flex:1;min-width:120px}
.conversation-top>.btn{flex-shrink:0;min-height:34px;padding:0 8px;font-size:10px}
.conversation-top .mobile-chat-back{font-size:11px}
}
.crm-dialogs .live-chat-list{flex:1;min-height:0;overflow:auto}
.crm-dialogs .conversation-top{justify-content:space-between;gap:12px}
.social-contact-profile{text-align:center;margin:10px 0 20px}
.social-contact-profile .avatar.big{width:76px;height:76px;display:inline-flex;margin-bottom:12px}
.social-contact-profile h2{font-size:17px}
.social-contact-profile p{color:var(--muted);margin-top:5px}
.crm-dialogs .detail-scroll{overflow:auto;padding:20px}
.crm-dialogs .detail-tabs{padding:18px 20px;border-bottom:1px solid var(--line)}
.crm-dialogs .messages{padding:20px!important}
.crm-dialogs .live-message{width:100%;display:flex;justify-content:flex-start;align-self:auto}
.crm-dialogs .live-message.outbound{justify-content:flex-end}
.crm-dialogs .bubble{margin:0;min-width:60px;max-width:min(85%,650px);padding:13px 17px;white-space:pre-wrap}
.crm-dialogs .bubble p{line-height:1.65;margin:0 0 7px}
.crm-dialogs .bubble small{font-size:9px}
.crm-dialogs .cw-composer{border-top:1px solid var(--line)}
.crm-dialogs .cw-toolbar .cw-idle-left{display:flex!important}
.crm-dialogs .cw-compose.is-typed .cw-channel{display:none!important}
.crm-dialogs .cw-compose.is-typed .cw-typed-channel{display:none!important}
.crm-dialogs .cw-idle-actions[hidden],.crm-dialogs .cw-translate[hidden]{display:none!important}
.crm-dialogs .cw-composer[hidden]{display:none}
.crm-dialogs .cw-send:disabled{opacity:.45;cursor:progress}
.crm-dialogs .cw-ai{box-shadow:0 0 20px #4387ff40,0 0 8px #905bff35}
.crm-dialogs .live-contact.active{box-shadow:inset 3px 0 0 var(--blue);background:#a7cfff28}
.crm-dialogs .cw-aside-close{padding:9px}
.crm-dialogs[data-layout=single] .conversation-top h3{font-size:14px}
.crm-dialogs .message-image{max-height:300px;max-width:100%;border-radius:13px}
.cw-replies-grid{grid-template-columns:minmax(0,1fr)!important}
.cw-composer *[hidden],.cw-popover *[hidden]{display:none!important}
@media(max-width:760px){.cw-replies-list,.cw-reply-editor{padding:15px}
.crm-dialogs .cw-idle-left,.crm-dialogs .cw-toolbar-end,.crm-dialogs .cw-idle-actions{gap:4px}
.crm-dialogs .cw-channel-label{display:none}
.crm-dialogs .cw-channel{max-width:45px}
.crm-dialogs .cw-compose-footer>span:first-child{display:none}
}
.chat-shared-post{display:flex;gap:13px;margin:3px 0 13px;border-radius:16px;padding:14px;min-width:180px;color:inherit;text-decoration:none;border:1px solid #fff9}
.chat-shared-post>img{width:86px;height:112px;object-fit:cover;border-radius:11px}
.chat-shared-art{width:48px;height:60px;flex:none;display:grid;place-items:center;background:#82b7ff25;border-radius:12px;color:var(--blue)}
.chat-shared-post>div{min-width:0}
.chat-shared-post p{font-size:12px;margin:7px 0!important}
.chat-shared-post span:last-child{font-size:10px;color:var(--blue)}

.crm-dialogs .live-chat-list{flex:1;min-height:0;overflow:auto}
.crm-dialogs .conversation-top{justify-content:space-between;gap:12px}
.social-contact-profile{text-align:center;margin:10px 0 20px}
.social-contact-profile .avatar.big{width:76px;height:76px;display:inline-flex;margin-bottom:12px}
.social-contact-profile h2{font-size:17px}
.social-contact-profile p{color:var(--muted);margin-top:5px}
.crm-dialogs .detail-scroll{overflow:auto;padding:20px}
.crm-dialogs .detail-tabs{padding:18px 20px;border-bottom:1px solid var(--line)}
.crm-dialogs .messages{padding:20px!important}
.crm-dialogs .live-message{width:100%;display:flex;justify-content:flex-start;align-self:auto}
.crm-dialogs .live-message.outbound{justify-content:flex-end}
.crm-dialogs .bubble{margin:0;min-width:60px;max-width:min(85%,650px);padding:13px 17px;white-space:pre-wrap}
.crm-dialogs .bubble p{line-height:1.65;margin:0 0 7px}
.crm-dialogs .bubble small{font-size:9px}
.crm-dialogs .cw-composer{border-top:1px solid var(--line)}
.crm-dialogs .cw-toolbar .cw-idle-left{display:flex!important}
.crm-dialogs .cw-compose.is-typed .cw-channel{display:none!important}
.crm-dialogs .cw-compose.is-typed .cw-typed-channel{display:none!important}
.crm-dialogs .cw-idle-actions[hidden],.crm-dialogs .cw-translate[hidden]{display:none!important}
.crm-dialogs .cw-composer[hidden]{display:none}
.crm-dialogs .cw-send:disabled{opacity:.45;cursor:progress}
.crm-dialogs .cw-ai{box-shadow:0 0 20px #4387ff40,0 0 8px #905bff35}
.crm-dialogs .live-contact.active{box-shadow:inset 3px 0 0 var(--blue);background:#a7cfff28}
.crm-dialogs .cw-aside-close{padding:9px}
.crm-dialogs[data-layout=single] .conversation-top h3{font-size:14px}
.crm-dialogs .message-image{max-height:300px;max-width:100%;border-radius:13px}
.cw-replies-grid{grid-template-columns:minmax(0,1fr)!important}
.cw-composer *[hidden],.cw-popover *[hidden]{display:none!important}
@media(max-width:760px){.cw-replies-list,.cw-reply-editor{padding:15px}
.crm-dialogs .cw-idle-left,.crm-dialogs .cw-toolbar-end,.crm-dialogs .cw-idle-actions{gap:4px}
.crm-dialogs .cw-channel-label{display:none}
.crm-dialogs .cw-channel{max-width:45px}
.crm-dialogs .cw-compose-footer>span:first-child{display:none}
}
.main>[data-action^=more-],.live-chat-list>[data-action=more-chats],.messages>[data-action=more-messages]{display:flex;margin:20px auto;justify-content:center;align-items:center}
.media-viewer{display:grid;place-items:center;min-height:180px}
.media-viewer img,.media-viewer video{max-width:100%;max-height:72dvh;border-radius:17px}
.media-viewer iframe{width:min(900px,80vw);height:70dvh;border:0;border-radius:16px}
.message-media{padding:0;border:0;background:transparent;cursor:pointer;position:relative;display:block;max-width:100%;color:#0757dc}
.message-media.document{display:flex;align-items:center;gap:10px;padding:12px}
.message-media img,.message-media video{display:block;max-width:100%;max-height:340px;border-radius:13px}
.media-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 0 5px #005cff)}
.media-play svg{width:42px;height:42px}
.crm-dialogs .live-message{display:flex;flex-direction:column;align-items:flex-start;gap:4px;justify-content:initial}
.crm-dialogs .live-message.outbound{align-items:flex-end}
.crm-dialogs .bubble{padding:11px 15px;white-space:normal}
.crm-dialogs .bubble p{margin:0;line-height:1.5}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.message-long:not(.expanded){display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.message-long+.btn{margin-top:8px;font-size:11px}
.message-details{font-size:10px;color:#5475a3;padding:1px 6px 10px;max-width:85%}
.message-details[hidden]{display:none!important}
.message-actions{display:flex;gap:8px;margin-top:8px}
.message-actions .btn{font-size:11px;padding:7px 11px}
.message-platform .brand-icon{width:21px;height:21px;font-size:15px}
.message-platform .icon{width:15px;height:15px}
.live-contact em .brand-icon{width:15px;height:15px;font-size:11px;display:inline-flex;vertical-align:middle;margin-right:3px}
.live-contact em .brand-icon .icon{width:12px;height:12px}
.message-audio{display:flex;gap:10px;align-items:center;width:min(360px,65vw);padding:9px;border-radius:15px;margin:3px 0}
.message-audio audio{display:none}
.message-audio .icon-btn{width:38px;height:38px;flex:none}
.audio-track{position:relative;flex:1;min-width:0;padding-bottom:14px}
.audio-track canvas{width:100%;height:38px;display:block}
.audio-track input{position:absolute;top:0;left:0;right:0;width:100%;height:38px;opacity:0;cursor:pointer}
.audio-track output{display:block;color:#466899;font-size:10px;position:absolute;bottom:0;left:0}
.call-transcript{min-width:min(260px,65vw);max-width:100%}
.call-heading{display:flex;gap:8px;align-items:center;color:#0757dc;font-weight:600;margin-bottom:12px}
.call-turn{margin:9px 0 0;max-width:92%;padding:9px 12px;border-radius:13px;background:#c6deff48}
.call-turn.assistant{margin-left:auto;background:#81b5ff33}
.call-turn small{display:block;color:#4870a2;font-size:10px;margin-bottom:4px}
.call-turn p{white-space:pre-wrap}
.cw-record-bars i{animation:none!important;transition:height .07s linear;min-height:2px}
.cw-icon.is-recording{color:#e63a67!important;box-shadow:0 0 0 5px #ef466326;animation:mic-glow 1s ease-in-out infinite}
.mic-held .cw-voice-slot{min-height:0}
.cw-record-wait{display:flex;gap:10px;align-items:center;padding:12px;border-radius:15px}
.cw-record-error:empty{display:none}
.cw-integration-option .brand-icon{width:30px;height:30px}
.cw-integration-option .brand-icon .icon{width:20px;height:20px}
@media(max-width:760px){.crm-dialogs.show-details #chat-aside .detail-tabs:after{content:'Нажмите значок контакта, чтобы закрыть';font-size:9px;display:block;margin-top:7px}
.message-audio{width:min(310px,65vw)}
}
.chat-shared-post{display:flex;gap:13px;margin:3px 0 13px;border-radius:16px;padding:14px;min-width:180px;color:inherit;text-decoration:none;border:1px solid #fff9}
.chat-shared-post>img{width:86px;height:112px;object-fit:cover;border-radius:11px}
.chat-shared-art{width:48px;height:60px;flex:none;display:grid;place-items:center;background:#82b7ff25;border-radius:12px;color:var(--blue)}
.chat-shared-post>div{min-width:0}
.chat-shared-post p{font-size:12px;margin:7px 0!important}
.chat-shared-post span:last-child{font-size:10px;color:var(--blue)}
.cw-schedule-links{display:flex;gap:12px}
.cw-schedule-links button{display:inline-flex;gap:4px;align-items:center;color:#0757dc;font-size:10px;padding:0}
.cw-schedule-links .icon{width:13px;height:13px}
.live-contact[hidden],.social-comment-row[hidden]{display:none!important}
@media(max-width:760px){.cw-compose-footer{flex-wrap:wrap;gap:8px}
}

/* Scroll belongs to the inner content, so the optical canvas never creates
   scrollbars or changes the measured size of an open dialog. */
.live-modal>.panel.dialog{padding:0!important;overflow:visible!important;contain:layout;max-height:90dvh;box-sizing:border-box;height:auto;isolation:isolate}
.live-modal .dialog-scroll{padding:30px;max-height:90dvh;overflow-y:auto;overflow-x:hidden;border-radius:inherit;scrollbar-gutter:stable}
.live-modal>.panel.dialog>.sg-pane{inset:0!important;width:100%!important;height:100%!important}
.live-modal>.panel.dialog>.modal-close{right:16px;top:16px;width:36px;height:36px;z-index:4}
.live-modal .dialog-scroll>h2:first-child{padding-right:38px;margin:0 0 18px;font-size:21px;line-height:1.4}
.live-modal .payment-methods>.btn{margin:0;color:#0757dc}
.live-modal .payment-methods>.btn.primary{color:white}
.dialog .btn.primary{color:white}
.live-modal .media-viewer{width:100%;min-height:120px;max-height:calc(90dvh - 110px);display:flex;justify-content:center;align-items:center;overflow:hidden}
.media-viewer video,.media-viewer img{display:block;max-height:calc(90dvh - 110px);max-width:100%;width:auto;height:auto;object-fit:contain}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.app.is-chats{padding-bottom:16px}.app.is-chats .page-footer,.app.is-chats .cw-resize-hint{display:none}.app.is-chats .main{min-width:0}.app.is-chats .crm-dialogs{height:var(--cw-height,calc(100dvh - 126px));min-height:0}.app.is-chats .crm-dialogs .cw-composer{max-height:min(66%,calc(var(--cw-height,650px) - 144px))}
.app.is-chats .social-contact-profile h2{overflow-wrap:anywhere;line-height:1.35}
@media(min-width:761px){.app.is-chats .sidebar{height:calc(100dvh - 115px);max-height:calc(100dvh - 115px);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}}
@media(min-width:761px) and (max-height:760px){.app.is-chats .crm-dialogs .detail-scroll{padding:14px 18px}.app.is-chats .social-contact-profile{margin:2px 0 12px}.app.is-chats .social-contact-profile .avatar.big{width:60px;height:60px;margin-bottom:8px}}
.crm-dialogs .conversation-top{min-height:64px;padding:10px 16px!important;flex-shrink:0;gap:12px}
.crm-dialogs .conversation-top .contact{gap:10px;min-width:0;min-height:0;flex:1}
.crm-dialogs .conversation-top .contact>.avatar{width:36px;height:36px}
.crm-dialogs .conversation-top h3{font-size:13px;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-dialogs .conversation-top .contact small{display:block;margin-top:3px;line-height:1.3;font-size:10px}
.crm-dialogs .conversation-top>[data-action=chat-details][hidden]{display:none!important}
.crm-dialogs .detail-tabs{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;min-height:64px;gap:12px}
.detail-tabs .icon-btn{width:32px;height:32px;min-width:32px;padding:0}
.crm-dialogs .detail-tabs:after{display:none!important}.contact-platform{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px}.contact-platform .brand-icon{width:20px;height:20px}
.chat-platform-field{display:block;margin-top:10px}.chat-platform-field>.select-trigger{width:100%;min-height:36px;justify-content:space-between;font-size:11px}
.crm-dialogs .list-top{padding:14px}.crm-dialogs .list-top h3{font-size:13px;margin-bottom:10px}
.crm-dialogs .bubble:not(.glass-painted){background:#eaf3ff44}.crm-dialogs .outbound .bubble:not(.glass-painted){background:#8dbdff3b;border-color:#96baff80}
.crm-dialogs .bubble.glass-painted{background:transparent}
.crm-dialogs .bubble:has(.media-gallery){width:min(85%,540px)}
.media-gallery{display:grid;grid-template-columns:repeat(var(--media-cols,1),minmax(0,1fr));gap:8px;margin:8px 0;max-width:100%;min-width:0}
.media-gallery>.message-media{width:100%;min-width:0;align-self:stretch;border-radius:13px;overflow:hidden;background:#97bdf81c}
.media-gallery>.message-media img,.media-gallery>.message-media video{width:100%;height:100%;max-height:340px;object-fit:contain;display:block;margin:0;border-radius:inherit}
.media-gallery:not([data-count="1"])>.message-media{aspect-ratio:3/4}
.social-post-media>.media-gallery{margin:0}.social-post-media .media-gallery[data-count="1"] img,.social-post-media .media-gallery[data-count="1"] video{max-height:560px;height:auto}
.social-post-media .media-gallery:not([data-count="1"])>.message-media{aspect-ratio:3/4}.social-post-media .media-gallery img,.social-post-media .media-gallery video{max-height:420px;object-fit:contain}
.message-audio{width:100%;min-width:0;max-width:330px;gap:10px;margin:0;padding:10px;border-radius:17px;align-items:center}
.crm-dialogs .bubble:has(.message-audio){width:min(85%,360px);padding:9px}
.message-audio>.icon-btn{width:36px;height:36px;min-width:36px;flex:0 0 36px;color:#075aff}
.audio-track{padding-bottom:0;min-width:0;flex:1}.audio-track canvas.audio-wave{width:100%;height:34px;display:block}
.audio-track>input{top:0;height:34px;opacity:0;width:100%;margin:0;z-index:2;touch-action:pan-y}
.audio-position{position:absolute;top:12px;left:var(--audio-progress,0%);width:10px;height:10px;margin-left:-5px;border-radius:50%;pointer-events:none;background:#075aff;border:2px solid #ddecff;box-shadow:0 0 0 1px #075aff38}
.audio-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:16px;font-size:10px;white-space:nowrap}
.audio-caption>output{position:static;font-variant-numeric:tabular-nums;color:#416591;flex-shrink:0}
.audio-state{font-size:9px;color:#075aff;overflow:hidden;text-overflow:ellipsis}
.message-audio.is-playing{border-color:#488aff95;box-shadow:0 0 0 1px #639eff1e,0 4px 18px #387cea18}
.message-audio.is-playing .audio-position{box-shadow:0 0 0 3px #075aff20}
.message-tools{display:flex;justify-content:flex-start;width:min(85%,360px);gap:8px;margin:2px 0 8px}.outbound .message-tools{justify-content:flex-end}
.message-tools .btn{font-size:10px;padding:0 11px;min-height:31px}
.crm-dialogs .message-details{padding:0 4px 6px;max-width:85%}.crm-dialogs .message-actions{justify-content:flex-start}.crm-dialogs .outbound .message-actions{justify-content:flex-end}
.token-history,.billing-history{padding:0 4px;max-height:340px;scrollbar-gutter:stable}
.token-history table,.billing-history table{border-collapse:separate;border-spacing:0;min-width:760px}
.token-history thead,.billing-history thead{background:transparent}.token-history th,.billing-history th{position:sticky;top:0;padding:7px 5px 8px;background:transparent;z-index:3;font-size:11px;border-bottom:1px solid #699ae62a}
.table-head-cell{display:block;min-height:35px;padding:10px 12px;border-radius:11px;color:#235490;font-size:11px;font-weight:600;white-space:nowrap}
.token-history td,.billing-history td{font-size:11px;padding:14px 17px;color:#304966;line-height:1.5}.token-history tbody tr:hover td{background:#81b9fa17}
.cw-compose .cw-channel .brand-icon{width:18px;height:18px}.cw-channel-icon{display:flex;align-items:center}
.cw-recorder{gap:8px!important;padding:11px 12px!important}.cw-record-top{min-height:16px}.cw-record-time{margin-left:auto}
.cw-record-row{display:flex;align-items:center;gap:10px;min-width:0}.cw-recorder .cw-live-wave{flex:1;width:auto;height:44px;min-width:0}
.cw-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}.cw-record-actions>.cw-icon{flex:none}
.cw-live-wave svg>.cw-wave-played{display:none}.cw-recorder .cw-record-bottom{min-height:15px;font-size:9px}
.cw-record-wait{display:flex;align-items:center;gap:10px;padding:12px;border-radius:15px;font-size:11px}.cw-record-wait>.cw-icon{margin-left:auto}.cw-record-wait .loading-orbit{width:24px;height:24px;flex-shrink:0}.cw-record-wait .cw-record-error{margin:0}
.cw-wave-editor>svg .cw-wave-played{clip-path:inset(0 calc(100% - var(--voice-progress,0%)) 0 var(--trim-start,0%))}.cw-wave-editor>svg .cw-wave-played line{stroke:#075aff;stroke-width:2.6}
.cw-voice-editor .cw-playhead{width:2px;background:#075aff}.cw-voice-editor .cw-playhead:after{content:"";position:absolute;width:6px;height:6px;top:calc(50% - 3px);left:-2px;border-radius:50%;background:#075aff;box-shadow:0 0 0 2px #dcecffa8}
.cw-voice-position{font-size:9px;color:#235c9c;font-variant-numeric:tabular-nums;white-space:nowrap}.cw-trim-caption{flex-wrap:wrap}.cw-voice-editor[aria-busy=true] .cw-wave-editor{opacity:.5}.cw-voice-editor .cw-record-error{font-size:10px;margin:8px 0 0;color:#a9334a}
@container(max-width:410px){.cw-voice-editor .cw-trim-caption>span{display:none}.cw-record-row{gap:7px}.cw-record-actions{gap:5px}.cw-voice-editor .cw-trim-caption{justify-content:space-between}.cw-record-bottom>small{font-size:8px}.cw-voice-editor .cw-wave-editor{min-width:0}}
@media(max-width:760px){.app.is-chats .crm-dialogs{height:var(--cw-height,calc(100dvh - 162px));min-height:0}.crm-dialogs .conversation-top{min-height:58px;padding:9px 12px!important;flex-wrap:nowrap}.crm-dialogs .detail-tabs{min-height:58px;padding:10px 14px}.crm-dialogs .show-details{position:relative}.live-modal .dialog-scroll{padding:24px 18px}.live-modal>.panel.dialog>.modal-close{top:12px;right:12px}.live-modal .dialog-scroll>h2:first-child{font-size:19px;margin-right:14px}.media-gallery{gap:6px}.media-gallery[style*="--media-cols:3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dialogs .bubble:has(.media-gallery),.crm-dialogs .bubble:has(.message-audio){width:95%;max-width:95%}.message-audio{max-width:100%;padding:8px;gap:8px}.audio-state{display:none}.message-tools{width:95%}.token-history td{padding:13px 12px}.table-head-cell{padding:10px}}
/* Keep discussion context visible while browsing long comment histories. */
.social-comments-list{display:flex;flex-direction:column;min-width:0;max-height:min(760px,calc(100dvh - 230px));overflow:hidden!important}
.social-comments-list>#comment-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px}
.social-comments-list>.search{flex:none;margin-bottom:14px}
.social-comments-list>[data-action="more-comments"]{flex:none;align-self:center;margin:16px auto 0}
.social-comments-layout.in-post .social-comments-list{max-height:420px}
@media(max-width:760px){.social-comments-list{max-height:460px}.social-comments-layout.in-post .social-comments-list{max-height:360px}}
.message-translation{border-top:1px solid rgba(73,117,178,.16);margin-top:9px;padding-top:7px;max-width:100%;color:#4b607b;font-size:.92em}
.message-translation>button{display:flex;align-items:center;gap:6px;width:100%;padding:0;background:none;border:0;color:#4b607b;text-align:left;cursor:pointer;font:inherit}
.message-translation>button .icon{width:14px;height:14px;flex:none;stroke:currentColor}
.message-translation>button small{margin-left:auto;padding-left:10px;color:#1261d7}
.message-translation>p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.message-translation>p[hidden]{display:none}
.scheduled-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.scheduled-actions .btn{min-height:40px;margin:0}
.scheduled-actions .icon-btn{width:40px;height:40px;flex:none;color:#065dff}
.scheduled-message .row{gap:10px;flex-wrap:wrap}

/* Calendar is a single translucent surface, with no native date popup. */
.glass-date-picker{width:100%;max-width:420px;margin:18px auto;padding:16px;border:1px solid #ffffffa3;border-radius:22px;background:linear-gradient(135deg,#ffffff42,#b4d6ff26);box-shadow:inset 0 1px 1px #fff8,0 6px 20px #3169a512;backdrop-filter:blur(18px);color:#18385b}
.date-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.date-picker-heading strong{text-transform:capitalize;font-size:14px}
.glass-date-picker button{border:1px solid transparent;border-radius:12px;background:transparent;color:#145ccc;min-height:38px;padding:7px;cursor:pointer;font:inherit;font-size:13px;box-shadow:none;touch-action:manipulation}
.date-picker-heading button{font-size:25px;line-height:1;width:38px;background:#ffffff38;border-color:#ffffff80}
.date-grid,.date-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.date-week{margin-bottom:7px}.date-week span{text-align:center;font-size:11px;color:#50729a;padding:4px}
.glass-date-picker button:hover:not(:disabled){background:#ffffff69;border-color:#ffffffb0}.glass-date-picker button:focus-visible{outline:2px solid #176dff;outline-offset:2px}
.glass-date-picker button.selected{background:linear-gradient(145deg,#438bfa,#075dff);border-color:#80b4ff;color:white;box-shadow:0 3px 10px #0060ff33,inset 0 1px #ffffff66}
.glass-date-picker button:disabled{opacity:.3;cursor:default}.date-day.outside{opacity:.18!important}
.date-time-row{display:flex;gap:9px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #75a3d833;font-size:12px}.date-time-row>span:first-child{margin-right:auto}.date-time-row .time-value{min-width:44px;background:#ffffff50;border-color:#ffffff99;font-size:18px;font-variant-numeric:tabular-nums}.date-time-row small{color:#547298;font-size:10px;max-width:65px}
.date-time-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:12px;padding-top:10px;border-top:1px solid #75a3d822}.date-picked{margin-top:13px;text-align:center;color:#356394;font-size:12px}
.schedule-presets{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.schedule-presets .btn{min-height:35px;font-size:11px;padding:8px 12px}.scheduled-preview{padding:12px 14px;border-radius:14px;background:#ffffff25;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.schedule-timezone{font-size:11px;line-height:1.6}.cw-delivery-info{font-size:10px;color:#456b99;line-height:1.5;padding:8px 10px 0;overflow-wrap:anywhere}.cw-channel-label{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-dialogs .message-translation{margin:12px 0 2px;padding:12px 2px 2px}.crm-dialogs .message-translation>button{width:auto;max-width:100%;min-height:30px;padding:5px 7px;gap:8px;border-radius:8px;line-height:1.4}.crm-dialogs .message-translation>button:focus{outline:none}.crm-dialogs .message-translation>button:focus-visible{outline:2px solid #428bfa;outline-offset:2px}.crm-dialogs .message-translation>p{margin:8px 7px 3px;line-height:1.65}.crm-dialogs .message-translation>button small{padding-left:12px}
.message-audio .audio-transcribe{flex:none;width:34px;height:34px;min-width:34px;min-height:34px;padding:8px;color:#075aff}.message-audio .audio-transcribe svg{width:17px;height:17px}.message-audio .audio-transcribe[aria-busy=true]{animation:transcribe-pulse 1.4s ease-in-out infinite}.message-transcript{margin:12px 3px 3px;padding:11px 6px 4px;border-top:1px solid #6594c92c;max-width:100%;overflow-wrap:anywhere}.message-transcript[hidden]{display:none}.transcript-label{font-size:10px;color:#527298}.message-transcript p{margin:7px 0 0;white-space:pre-wrap;line-height:1.65;font-size:12px;color:#344e6d}.transcription-pending{display:flex;gap:9px;align-items:center;font-size:11px;color:#3a689b}.transcription-pending .loading-orbit{width:18px;height:18px}
@keyframes transcribe-pulse{50%{box-shadow:0 0 0 4px #2582ff22}}
@media(max-width:480px){.glass-date-picker{padding:12px;margin:12px auto}.glass-date-picker button{min-height:36px}.date-grid{gap:2px}.date-time-row{gap:7px}.cw-channel-label{max-width:170px}.message-audio{gap:7px}.crm-dialogs .message-translation>button{flex-wrap:wrap}.crm-dialogs .message-translation>button small{padding-left:2px}.schedule-presets{gap:6px}}
@media(prefers-reduced-motion:reduce){.message-audio .audio-transcribe[aria-busy=true]{animation:none}}
.pdf-document{width:min(800px,100%);min-width:0;max-height:calc(90dvh - 120px);overflow:auto;padding:8px;box-sizing:border-box}.media-viewer:has(.pdf-document){align-items:flex-start}.pdf-document canvas{display:block;max-width:100%;height:auto!important;margin:12px auto;background:white;border-radius:8px}.pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:16px;position:sticky;top:0;z-index:1;padding:8px;border-radius:14px;background:#d7eafdde;backdrop-filter:blur(18px)}.pdf-toolbar .btn{padding:8px 14px}.pdf-toolbar output{font-size:12px;color:#244675}

.pdf-toolbar .btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;padding:0!important;flex:none}.pdf-toolbar .btn svg{width:20px;height:20px;display:block;flex:none}.pdf-toolbar output{align-self:center;min-width:44px;text-align:center}
.chat-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.chat-list-heading h3{margin:0}.chat-list-heading .icon-btn{width:36px;height:36px;flex:none}.chat-selection-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 14px;font-size:11px;color:#315d98}.chat-selection-bar[hidden]{display:none!important}.chat-selection-bar .btn{font-size:11px;padding:8px 10px}.chat-selection-bar .icon-btn{width:30px;height:30px}.live-contact{position:relative;touch-action:pan-y;user-select:none}.live-contact.selected{background:#79b0ff38!important;box-shadow:inset 0 0 0 1px #3e8cff}.chat-choice{display:none;position:absolute;left:7px;top:7px;width:17px;height:17px;border:1px solid #65a0ed;border-radius:6px;background:#eaf5ff;color:#0564e8}.selecting-chats .chat-choice{display:grid;place-items:center}.chat-choice .icon{width:13px;height:13px}.merge-choices{border:0;padding:0;display:grid;gap:12px;margin:20px 0}.merge-choices legend{font-size:12px;color:#496b98;margin-bottom:12px}.merge-choice{display:flex;align-items:center;gap:12px;padding:14px;border-radius:17px;cursor:pointer}.merge-choice input{width:18px;height:18px;accent-color:#0763f5}.merge-choice>span:last-child{display:grid;gap:6px;min-width:0}.merge-choice strong{overflow-wrap:anywhere}.merge-choice small{display:flex;gap:6px;align-items:center;color:#456b99;font-size:11px}.form-actions{display:flex;justify-content:flex-end;margin-top:22px}.form-actions .btn{margin:0}.compact-chats .list-top{padding:12px 8px!important}.compact-chats .chat-list-heading{justify-content:center;margin:0}.compact-chats .chat-list-heading h3,.compact-chats .list-top>.search,.compact-chats .chat-platform-field,.compact-chats .chat-row-text{display:none!important}.compact-chats .live-contact{padding:14px 10px!important;justify-content:center;gap:0}.compact-chats .live-contact .avatar{width:40px;height:40px;flex:none}.compact-chats .live-contact .count{position:absolute;right:3px;top:4px;font-size:9px;min-width:15px;height:15px;padding:1px 4px}.compact-chats .live-contact .chat-choice{left:3px;bottom:3px;top:auto}.compact-chats .chat-selection-bar{justify-content:center}.compact-chats .chat-selection-bar>span{font-size:9px}.compact-chats .chat-selection-bar .btn{padding:7px 3px;font-size:8px;gap:2px}.compact-chats .chat-selection-bar .btn .icon{width:12px;height:12px}.cw-compose-footer{display:flex;align-items:center;gap:12px;flex-wrap:nowrap!important;min-width:0;padding-top:7px}.cw-compose-footer .cw-delivery-info{padding:0;min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cw-compose-footer .cw-schedule-links{flex:none;gap:10px}.cw-compose-footer>#cw-send-hint{flex:none;margin-left:auto;font-size:9px;white-space:nowrap}.back-mobile{display:none!important}.sidebar .mobile-drawer-close{display:none!important}@media(max-width:760px){.back-mobile{display:inline-flex!important;width:36px;height:36px;flex:none;align-items:center;justify-content:center;padding:0!important}.nav-open .sidebar .mobile-drawer-close{display:inline-flex!important}.cw-compose-footer{gap:7px}.cw-compose-footer .cw-delivery-info{font-size:9px}.cw-compose-footer .cw-schedule-links{gap:7px}.cw-compose-footer .cw-schedule-links button{font-size:9px}.cw-compose-footer>#cw-send-hint{display:none!important}.form-actions .btn{width:100%;justify-content:center}.merge-choice{padding:12px}}

.chat-list-tools{display:flex;align-items:center;gap:8px;min-width:0}
.chat-list-tools>.search{flex:1;min-width:0;margin:0}
.chat-list-tools>.search input{width:100%;min-width:0}
.chat-list-tools>.chat-platform-field{flex:none;margin:0}
.chat-platform-field>.select-icon-only{width:60px;min-width:60px;max-width:60px;min-height:38px;padding:6px 8px;gap:5px}
.select-trigger .selected-label{display:flex;align-items:center;gap:8px;min-width:0}
.select-icon-only>.icon{width:12px;height:12px;flex:none}
.select-icon-only .brand-icon{width:23px;height:23px;flex:none}
.social-native-select .select-option{display:flex;align-items:center;gap:10px}
.social-native-select .select-option>span:not(.brand-icon){flex:1;min-width:0;text-align:left}
.social-native-select .select-option.selected{color:var(--ink)}
.social-native-select .select-option>.icon{flex:none;width:16px;height:16px;color:var(--accent-display)}
.social-native-select .brand-icon{width:26px;height:26px;flex:none}
.brand-icon.tiktok{background:#141418!important;color:#fff!important;box-shadow:inset 2px 0 #27ede4,inset -2px 0 #ff3c6b}
.compact-chats .chat-list-tools{display:none!important}
.cw-compose .cw-toolbar{margin-top:10px;gap:8px}
.cw-compose .cw-toolbar-end{gap:8px}
.icon-btn .control-loader{display:none}
.icon-btn.is-loading{background:var(--control-fill)!important;opacity:1!important}
.icon-btn.is-loading>:not(.control-loader){visibility:hidden!important}
.icon-btn.is-loading::after{content:none!important}
.icon-btn.is-loading>.control-loader{display:block;position:absolute;inset:0;visibility:visible;pointer-events:none}
.control-loader::before{content:'';position:absolute;width:15px;height:18px;left:calc(50% - 7.5px);top:calc(50% - 9px);border-radius:65% 40% 60% 45%;background:radial-gradient(circle at 30% 24%,#fff 0 12%,#bfe8ff 24%,var(--accent-display) 74%);border:1px solid color-mix(in srgb,var(--accent-display) 58%,white);box-shadow:inset 0 1px 3px #fff,0 2px 5px #10234b33;animation:control-droplet .95s ease-in-out infinite alternate}
@keyframes control-droplet{from{transform:translateX(-5px) rotate(-25deg) scale(.9)}to{transform:translateX(5px) rotate(25deg) scale(1.05)}}
.transcript-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px}
.transcript-heading .transcript-translate{width:30px;height:30px;min-height:30px;flex:none;padding:6px;border-radius:8px}
.transcript-translate>.icon{width:17px;height:17px}
.crm-dialogs .message-translation{border-top:0;border-left:3px solid var(--accent-display);padding:8px 10px;margin-top:12px;background:color-mix(in srgb,var(--theme-accent) 7%,transparent);border-radius:0 8px 8px 0;color:var(--ink)}
.crm-dialogs .message-translation>button{color:var(--accent-display)}
.crm-dialogs .message-translation>p{color:var(--ink)}
.transcription-pending .loading-orbit{width:38px;height:24px;flex:none}
.transcription-pending .loading-orbit i{width:12px;height:12px;top:5px;left:1px}
.contact-points{display:grid;gap:0;margin:20px 0}
.contact-point{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);min-width:0}
.contact-point>.brand-icon{width:34px;height:34px;flex:none;border-radius:8px}
.contact-point>div{display:grid;gap:5px;min-width:0}
.contact-point span:not(.brand-icon){font-size:11px;color:var(--muted)}
.contact-point strong{font-size:14px;font-weight:550;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap;user-select:text}
@media(prefers-reduced-motion:reduce){.control-loader::before{animation:none}}
.social-native-select.select-menu{max-height:calc(100dvh - 24px);overflow:hidden}
.social-native-select.select-menu .select-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.call-card{width:460px;max-width:100%;min-width:0;color:var(--ink,#172235)}
.live-message:has(.call-card)>.bubble{width:490px;max-width:min(92%,600px);padding:16px}
.call-card>header{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.call-card>header>div{min-width:0;display:grid;gap:4px}
.call-card>header strong{font-size:14px;line-height:1.4}
.call-card>header small,.call-card .call-note{font-size:12px;line-height:1.5;color:var(--muted,#526b8b)}
.call-symbol{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;color:var(--accent-display,#085cff)}
.call-card .message-audio{width:100%;max-width:100%;min-width:0;margin:0 0 12px;box-sizing:border-box}
.call-card .audio-caption,.call-card .audio-caption output{color:var(--muted)}
.call-card .audio-state{color:var(--accent-display)}
.call-card .audio-position{background:var(--accent-display)}
.call-card .audio-track input{accent-color:var(--theme-accent)}
.call-card .call-note{margin:8px 0}
.call-card .call-transcript{min-width:0;margin-top:12px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.call-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:12px 0 2px;font-size:12px;color:var(--accent-display,#085cff);list-style:none}
.call-card summary::-webkit-details-marker{display:none}
.call-card summary .icon{width:16px;height:16px;flex:none;transition:transform .15s}
.call-card details[open]>summary .icon{transform:rotate(180deg)}
.call-card summary:focus-visible{outline:2px solid var(--theme-accent,#085cff);outline-offset:3px;border-radius:4px}
.call-card .call-turns{display:flex;flex-direction:column;gap:10px;padding-top:14px}
.call-card .call-turn{box-sizing:border-box;max-width:88%;margin:0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--theme-secondary,#159d91) 18%,transparent);border:1px solid color-mix(in srgb,var(--theme-secondary,#159d91) 34%,transparent);border-left-width:3px;align-self:flex-start}
.call-card .call-turn.assistant{margin:0;align-self:flex-end;background:color-mix(in srgb,var(--theme-accent,#085cff) 17%,transparent);border-color:color-mix(in srgb,var(--theme-accent,#085cff) 32%,transparent);border-left-width:1px;border-right-width:3px}
.call-card .call-turn small{font-size:10px;color:var(--muted,#526b8b);margin:0 0 5px;line-height:1.4}
.call-card .call-turn p,.call-card .call-plain{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.call-compact{width:auto;min-width:210px}.call-compact>header{margin-bottom:0}
.live-message:has(.call-compact)>.bubble{width:auto}
@media(max-width:600px){.live-message:has(.call-card)>.bubble{max-width:100%;padding:12px}.call-card{width:100%}.call-card .call-turn{max-width:92%}}

/* Keep the service visible when the contact text is collapsed. */
.live-contact>span.chat-row-avatar{position:relative;display:inline-flex;flex:none;overflow:visible}
.chat-avatar-platform{display:none}
.compact-chats .chat-avatar-platform{position:absolute;display:grid;place-items:center;right:-5px;bottom:-3px;width:22px;height:22px;border:2px solid var(--theme-bg-2,#dcecff);border-radius:8px;background:var(--theme-bg-2,#dcecff)}
.compact-chats .chat-avatar-platform>.brand-icon{width:18px;height:18px;min-width:0;border-radius:5px;font-size:15px;line-height:18px;flex:none}
.compact-chats .chat-avatar-platform .icon{width:13px;height:13px}

.message-draft-review{width:100%;margin-top:6px;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.message-draft-label{font-size:12px;color:var(--muted,#667085)}
.message-draft-actions{display:flex;justify-content:space-between;gap:12px;width:100%}
.message-draft-actions .btn{min-height:40px;min-width:100px;border:1px solid currentColor;box-shadow:none}
.message-draft-actions .message-draft-send{color:#13733b;background:rgba(34,197,94,.13)}
.message-draft-actions .message-draft-cancel{color:#b42318;background:rgba(239,68,68,.12)}
.message-draft-actions .btn:disabled{opacity:.55;cursor:wait}
.message-draft-actions .btn:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.message-draft-actions .message-draft-edit{color:var(--text,#344054);background:rgba(127,127,127,.1);min-width:0;flex:1}
.message-draft-actions{gap:7px;flex-wrap:wrap}
.message-draft-actions .btn{min-width:80px;padding:8px 10px;font-size:12px}
.message-reply-quote{display:flex;gap:8px;text-align:left;align-items:center;width:100%;max-width:100%;border:0;border-left:3px solid #558cec;border-radius:8px;padding:8px 10px;margin:0 0 8px;background:rgba(85,140,236,.1);color:inherit;cursor:pointer;min-width:0}
.message-reply-quote>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.message-reply-quote strong{font-size:11px;color:#477cd2}
.message-reply-quote span span{font-size:12px;white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.message-reply-quote img{width:40px;height:40px;object-fit:cover;border-radius:5px;flex:none}
.cw-reply-context,.cw-edit-context{display:flex;align-items:center;gap:8px;padding:7px 4px;min-width:0}
.cw-reply-context .message-reply-quote{flex:1;margin:0}
.cw-edit-context>span{flex:1;font-size:12px}
.cw-edit-context .btn{font-size:12px;min-height:32px;padding:6px 10px}
.cw-message-context[hidden]{display:none}
.live-message .bubble{touch-action:pan-y}
.live-message.reply-dragging .bubble{transform:translateX(var(--reply-drag));transition:none}
.live-message.reply-dragging::before{content:'↩';color:#558cec;font-size:22px;position:absolute;inset-inline-start:50%;opacity:.8}
.live-message.reply-highlight .bubble{outline:2px solid #558cec;outline-offset:3px}
@media(max-width:460px){.message-draft-actions .btn{min-width:65px;padding:8px 6px;font-size:11px}.message-draft-actions{gap:5px}.cw-edit-context{flex-wrap:wrap}}

/* Compact draft actions aligned with the right edge of the message. */
.crm-dialogs .live-message .message-draft-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;width:auto;flex-wrap:nowrap}
.crm-dialogs .live-message .message-draft-actions .btn{flex:none;width:auto;min-width:0;min-height:30px;height:30px;padding:5px 9px;font-size:11px;line-height:18px;border-radius:10px}
.crm-dialogs .live-message .message-draft-actions .btn.message-draft-send{color:#13733b!important}
.crm-dialogs .live-message .message-draft-actions .btn.message-draft-cancel{color:#b42318!important}
.crm-dialogs .live-message .message-draft-actions .btn.message-draft-edit{color:var(--text,#344054)!important;width:30px;min-width:30px;height:30px;padding:6px}
.message-draft-actions .message-draft-edit .icon{width:16px;height:16px}

.live-message .message-text a.message-link,.cw-local-message a.message-link{color:var(--accent-display,#0757dc);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere;word-break:normal;border-radius:3px}
.live-message .message-text a.message-link:hover,.cw-local-message a.message-link:hover{background:color-mix(in srgb,var(--accent-display,#0757dc) 12%,transparent);text-decoration-thickness:2px}
.live-message .message-text a.message-link:focus-visible,.cw-local-message a.message-link:focus-visible{outline:2px solid var(--accent-display,#0757dc);outline-offset:2px;background:color-mix(in srgb,var(--accent-display,#0757dc) 12%,transparent)}

.message-audio .audio-caption{min-height:20px;gap:6px}
.message-audio .audio-state{min-width:0;flex:1;text-align:right}
.message-audio .audio-speed{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:20px;min-height:20px;margin:0;padding:0;border:1px solid color-mix(in srgb,var(--accent-display,#075aff) 18%,transparent);border-radius:5px;background:color-mix(in srgb,var(--accent-display,#075aff) 5%,transparent);color:var(--accent-display,#075aff);font-family:inherit;font-size:10px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;touch-action:manipulation;user-select:none}
.message-audio .audio-speed::after{content:"";position:absolute;inset:-5px -4px}
.message-audio .audio-speed:hover{background:color-mix(in srgb,var(--accent-display,#075aff) 15%,transparent)}
.message-audio .audio-speed:focus-visible{outline:2px solid var(--accent-display,#075aff);outline-offset:2px}

/* Scoped temporal surfaces inherit the service's current light/dark/custom tokens. */
.gt-original{display:none!important}.gt-control{display:block;min-width:0;max-width:100%;width:100%}.gt-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:10px 12px;text-align:left;border:1px solid var(--glass-border,#f2faffb8);border-radius:12px;background:var(--control-fill,#e7f2ff99);color:var(--ink,#111829);font:inherit;font-size:12px;line-height:1.4;isolation:isolate;box-shadow:inset 0 1px 0 #ffffff25,0 3px 12px #12345314}.gt-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gt-trigger>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.gt-trigger>*{position:relative;z-index:1}.gt-empty{color:var(--muted,#54709b)}.gt-trigger[aria-expanded=true],.gt-trigger:focus-visible{outline:2px solid var(--accent-display,var(--blue,#075aff));outline-offset:2px}.gt-trigger:disabled{cursor:not-allowed;opacity:.5}
.gt-popup.glass{position:fixed!important;z-index:4000!important;padding:12px!important;border:1px solid var(--glass-border,#f2faffb8)!important;border-radius:18px!important;background:var(--surface-fill,#e7f2fff0)!important;color:var(--ink,#111829)!important;box-shadow:0 18px 54px #071a3c40;backdrop-filter:blur(22px) saturate(1.15);-webkit-backdrop-filter:blur(22px) saturate(1.15);overflow:auto;overscroll-behavior:contain;isolation:isolate;font:13px/1.4 Arial,Helvetica,sans-serif}.gt-popup>*:not(.sg-pane){position:relative;z-index:1}.gt-popup button{font:inherit;color:var(--ink,#111829);background:transparent;border:1px solid transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:0;padding:0;margin:0}.gt-popup button:disabled{cursor:not-allowed;opacity:.35}.gt-title{font-size:12px;font-weight:700;padding:2px 4px 9px;color:var(--muted,#54709b)}.gt-calendar-head{display:grid;grid-template-columns:30px 30px minmax(0,1fr) 30px 30px;align-items:center;gap:2px;margin-bottom:8px}.gt-calendar-head strong{text-align:center;text-transform:capitalize;font-size:13px;color:var(--ink,#111829)}.gt-calendar-head button{min-height:38px;border-radius:10px;font-size:22px;background:var(--soft-fill,#c6e1ff55);color:var(--accent-display,var(--blue,#075aff))}.gt-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.gt-weekday{display:grid;place-items:center;height:28px;font-size:11px;color:var(--muted,#54709b)}.gt-calendar-grid .gt-day{min-height:38px;border-radius:10px;font-variant-numeric:tabular-nums}.gt-day.gt-other-month{color:var(--muted,#54709b)}.gt-day[aria-current=date]{border-color:var(--accent-display,var(--blue,#075aff));font-weight:700}.gt-calendar-grid .gt-day[aria-selected=true],.gt-popup .gt-apply{color:var(--accent-contrast,#fff);background:var(--theme-accent,var(--blue,#075aff))}.gt-popup button:hover:not(:disabled),.gt-popup button:focus-visible{outline:2px solid var(--accent-display,var(--blue,#075aff));outline-offset:-2px;background:var(--soft-fill,#c6e1ff55)}.gt-calendar-grid .gt-day[aria-selected=true]:hover,.gt-calendar-grid .gt-day[aria-selected=true]:focus-visible,.gt-popup .gt-apply:hover,.gt-popup .gt-apply:focus-visible{color:var(--accent-contrast,#fff);background:var(--theme-accent,var(--blue,#075aff))}.gt-time-row{display:flex;align-items:end;justify-content:center;gap:14px;margin:10px 0}.gt-time-field{display:grid;gap:6px;max-width:90px;min-width:0;flex:1}.gt-time-field>span{font-size:11px;color:var(--muted,#54709b)}.gt-popup .gt-time-field>input{display:block;width:100%;height:46px;margin:0;padding:8px;border:1px solid var(--glass-border,#ffffffa8);border-radius:10px;background:var(--control-fill,#d8eaff88);color:var(--ink,#111829);text-align:center;font:20px/1.2 Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums}.gt-popup .gt-time-field>input:focus-visible{outline:2px solid var(--accent-display,var(--blue,#075aff));outline-offset:1px}.gt-footer{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-top:9px;padding-top:10px;border-top:1px solid var(--line,#6397dc38)}.gt-footer button{min-height:40px;padding:8px 10px;border-radius:10px;background:var(--soft-fill,#c6e1ff55);font-size:11px}.gt-error{margin:8px 2px 0;color:var(--ink,#111829);font-size:11px}.gt-error:empty{display:none}.field-shell>.gt-control{border:0}.field-shell:has(>.gt-control){padding:0!important;overflow:visible}.glass-off .gt-popup{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:380px){.gt-popup.glass{padding:9px!important}.gt-calendar-head{grid-template-columns:28px 28px minmax(0,1fr) 28px 28px}.gt-calendar-head strong{font-size:12px}.gt-footer button{padding-inline:8px}}

/* Keep the optical canvas inside the scrollport: its shared -1px inset
   otherwise produces rounding-only scrollbars around an already fitting popup. */
.gt-popup.glass{box-sizing:border-box;overflow-x:hidden;overflow-y:auto}
.gt-popup>.sg-pane{inset:0!important;width:100%!important;height:100%!important}

/* Chat belongs to the CRM layout; the lead already supplies its contact header. */
.crm-dialogs{--soft-fill:#ffffff55;--glass-border:#ffffff90;--theme-accent:var(--blue,#1675fa)}
.crm-dialogs .conversation-list,.crm-dialogs .conversation,.crm-dialogs .detail-pane{flex-direction:column}
.crm-dialogs .conversation-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-bottom:1px solid #8aadce33}
.crm-dialogs .conversation-top .contact{display:flex;align-items:center;min-width:0;gap:10px}.crm-dialogs .contact h3{margin:0;font-size:14px}.crm-dialogs .contact small{font-size:10px;color:var(--muted)}
.crm-dialogs .avatar{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:#d7b9af;color:#47586c;overflow:hidden}.crm-dialogs .avatar img{width:100%;height:100%;object-fit:cover}
.crm-dialogs .list-top{padding:12px}.crm-dialogs .search{display:flex;align-items:center;gap:6px;padding:7px;background:#ffffff33;border-radius:12px}.crm-dialogs .search input{width:100%;min-width:0;background:none;border:0;outline:0;font:inherit;font-size:12px;color:inherit}
.crm-dialogs .chat-list-heading{display:flex;align-items:center;justify-content:space-between}.crm-dialogs .chat-list-heading h3{font-size:14px}.crm-dialogs #chat-filter{width:100%;margin-top:8px;font-size:11px;justify-content:space-between}
.crm-dialogs .live-chat-list{overflow:auto;flex:1;min-height:0}.crm-dialogs .live-contact{display:flex;align-items:center;gap:10px;padding:12px}.crm-dialogs .live-contact .chat-row-avatar{flex:0 0 40px}.crm-dialogs .chat-row-text{flex:1;min-width:0}.crm-dialogs .chat-row-avatar{position:relative}.crm-dialogs .chat-avatar-platform{position:absolute;right:-4px;bottom:-4px}.crm-dialogs .chat-avatar-platform svg{width:17px;height:17px}
.crm-dialogs .messages{overflow:auto;min-height:0;flex:1;padding:18px;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:auto;overflow-anchor:none}
.translation-picker{margin:12px 0 18px;min-width:0}.translation-label{display:block;margin-bottom:8px;font-size:12px;color:var(--muted)}.translation-picker summary{list-style:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer}.translation-picker summary::-webkit-details-marker{display:none}.translation-picker [data-language-label]{display:flex;align-items:center;gap:10px}.translation-flag{display:inline-block;width:25px;height:19px;object-fit:cover;vertical-align:middle;border-radius:3px;flex:none}.translation-options{padding:10px;margin-top:8px;border-radius:14px;background:var(--panel,#dcecff)}.translation-options>input{width:100%;padding:10px;border:1px solid var(--line,#b2cce4);border-radius:10px;background:transparent;color:inherit;font:inherit}.translation-language-list{max-height:230px;overflow:auto;overscroll-behavior:contain;padding:6px 0}.translation-language-list .select-option{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer}.translation-language-list .select-option[aria-selected=true],.translation-language-list .select-option:hover{background:#3785eb22}.translation-language-list strong,.translation-language-list small{display:block}.translation-language-list small{font-size:11px;color:var(--muted);margin-top:3px}.translation-picker :focus-visible{outline:2px solid #3785eb;outline-offset:2px}.message-translation summary .translation-flag{margin:0 5px}.field-error:empty{display:none}
.crm-dialogs .live-message{width:100%;max-width:none;background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;margin:15px 0;border-radius:0}.crm-dialogs .live-message.outbound{align-items:flex-end}.crm-dialogs .live-message .bubble{width:fit-content;max-width:88%;padding:12px 16px;border-radius:18px}.crm-dialogs .live-message .bubble p{white-space:pre-wrap;margin:0;line-height:1.5}.crm-dialogs .message-platform{height:20px;margin-bottom:5px}.crm-dialogs .message-platform svg{height:16px;width:16px}.crm-dialogs .message-details{max-width:88%}.crm-dialogs .message-actions{display:flex;gap:6px}.crm-dialogs .message-actions button{font-size:11px;min-height:28px;padding:5px 8px}.crm-dialogs .chat-loading{padding:20px;text-align:center;color:var(--muted)}
.crm-dialogs .detail-scroll{padding:18px;overflow:auto}.crm-dialogs .detail-tabs{display:flex;align-items:center;justify-content:space-between;padding:12px}.crm-dialogs .detail-tabs h3{font-size:14px}.crm-dialogs .detail-scroll .stack{display:grid;gap:8px}
.crm-dialogs.hide-details[data-layout=full]{grid-template-columns:var(--cw-left,270px) 12px minmax(0,1fr)}.crm-dialogs.hide-details>.detail-pane,.crm-dialogs.hide-details>.cw-split-right{display:none}
.lead-center-body.is-lead-chat{padding:0;display:flex;flex-direction:column;overflow:hidden;min-height:0}.crm-lead-chat{height:100%;min-height:0;display:flex;flex:1;flex-direction:column}.crm-lead-chat .crm-chat-in-lead{display:flex!important;flex:1;height:100%;min-height:0;max-height:none}.crm-lead-chat .crm-chat-in-lead>.conversation{display:flex!important;flex:1;border:0;border-radius:0;background:none;overflow:hidden;height:100%;min-height:0;width:100%;position:relative}.crm-chat-in-lead .messages{min-height:120px;padding:14px}.crm-chat-in-lead .cw-composer{padding:10px!important}.crm-chat-in-lead .bubble{max-width:93%!important}.crm-chat-in-lead .cw-compose-footer{flex-wrap:wrap;gap:4px}.crm-chat-in-lead .cw-compose-footer>span:last-child{display:none}
.reply-highlight .bubble{outline:2px solid var(--blue)}
@media(max-width:760px){.crm-dialogs.triple{min-height:350px;height:var(--cw-height,550px)}.crm-dialogs .messages{padding:12px}.crm-dialogs .live-message .bubble{max-width:93%}.crm-chat-in-lead .cw-input{font-size:16px}.crm-chat-in-lead .cw-channel-label{max-width:100px}.crm-dialogs .cw-compose-footer{flex-wrap:wrap}}

.crm-lead-chat .crm-chat-in-lead{height:var(--cw-height,100%);max-height:var(--cw-height,100%)}

.crm-dialogs .chat-avatar-platform{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;background:var(--theme-bg-2,#dcecff);border:2px solid var(--theme-bg-2,#dcecff);border-radius:7px}.crm-dialogs .chat-avatar-platform .provider-logo{width:17px;height:17px;min-width:17px}.crm-dialogs .chat-platform-label{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap}.crm-dialogs .chat-platform-label .provider-logo{display:inline-flex;width:17px;height:17px;min-width:17px}.crm-dialogs .chat-platform-label svg{width:17px;height:17px}.crm-dialogs .chat-row-text em{display:flex;align-items:center;gap:4px;flex-wrap:wrap;white-space:normal}.crm-dialogs .conversation-top .contact>div{min-width:0}.crm-dialogs .conversation-top small{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.crm-dialogs .message-platform{height:auto;min-height:20px;font-size:11px;color:var(--muted)}

/* Flags keep their 4:3 viewport even inside full-width select controls. */
.translation-picker .translation-flag,.translation-settings .translation-flag,.message-translation .translation-flag{width:24px!important;min-width:24px!important;max-width:24px!important;height:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 24px!important;aspect-ratio:4/3;overflow:hidden;border-radius:2px}.translation-show-all{display:block;margin:6px 0 0 auto;padding:4px 2px;border:0;background:transparent;color:var(--muted,#526d89);font:inherit;font-size:11px;cursor:pointer}.translation-show-all:hover{color:var(--accent-display,#1764b5)}.translation-settings{margin:20px 0;padding:16px;border:1px solid var(--line,#b2cce4);border-radius:14px}.translation-settings legend{font-weight:600;font-size:14px}.translation-settings>input{width:100%;padding:10px;border:1px solid var(--line,#b2cce4);border-radius:10px;background:transparent;color:inherit}.translation-settings-list{max-height:230px;overflow:auto;margin:10px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px}.translation-setting-option{display:flex;align-items:center;gap:9px;padding:8px;font-size:12px;cursor:pointer}.translation-setting-option[hidden]{display:none}.translation-setting-option>input{width:16px;height:16px;flex:none;margin:0}.translation-settings>small{color:var(--muted);font-size:11px}
.translation-language-list .select-option{justify-content:flex-start}.translation-language-list .select-option>span:last-child{flex:1;text-align:left}
.crm-chat-modal .field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:100px;padding:14px 16px;border:1px solid var(--crm-border,rgba(255,255,255,.6));border-radius:16px;background:var(--crm-soft,rgba(235,246,255,.3));color:var(--ink,#111829);font:inherit;font-size:16px;line-height:1.5;box-shadow:inset 0 1px 1px #ffffff40;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);resize:vertical;appearance:none;-webkit-appearance:none}
.crm-chat-modal .field textarea:focus{outline:2px solid var(--blue,#075aff);outline-offset:2px}
.crm-chat-modal .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.crm-chat-modal .actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 16px;border:1px solid var(--crm-border,#ffffff80);border-radius:14px;color:var(--ink,#111829);background:var(--crm-soft,#ffffff30);font:inherit;font-weight:600;line-height:1.35;cursor:pointer}
.crm-chat-modal .actions .btn.primary{color:#fff!important;background:#075aff!important;border-color:#075aff;box-shadow:0 4px 12px #075aff26}
.crm-chat-modal .actions .btn.primary>.sg-pane{display:none!important}
.crm-chat-modal .actions .btn .icon{width:20px;height:20px;flex:none;stroke:currentColor}
.crm-chat-modal .actions .btn:disabled{opacity:.65;cursor:wait}
@media(max-width:600px){.crm-chat-modal .actions .btn{flex:1 1 180px;width:auto;white-space:normal}.crm-chat-modal .field textarea{min-height:90px}}

/* Shared chat presentation, also shipped to Social. */
.translation-picker{margin:12px 0 18px;min-width:0}.translation-label{display:block;margin-bottom:8px;font-size:12px;color:var(--muted)}.translation-picker summary{list-style:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer}.translation-picker summary::-webkit-details-marker{display:none}.translation-picker [data-language-label]{display:flex;align-items:center;gap:10px}.translation-flag{display:inline-block;width:25px;height:19px;object-fit:cover;vertical-align:middle;border-radius:3px;flex:none}.translation-options{padding:10px;margin-top:8px;border-radius:14px;background:var(--panel,#dcecff)}.translation-options>input{width:100%;padding:10px;border:1px solid var(--line,#b2cce4);border-radius:10px;background:transparent;color:inherit;font:inherit}.translation-language-list{max-height:230px;overflow:auto;overscroll-behavior:contain;padding:6px 0}.translation-language-list .select-option{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer}.translation-language-list .select-option[aria-selected=true],.translation-language-list .select-option:hover{background:#3785eb22}.translation-language-list strong,.translation-language-list small{display:block}.translation-language-list small{font-size:11px;color:var(--muted);margin-top:3px}.translation-picker :focus-visible{outline:2px solid #3785eb;outline-offset:2px}.message-translation summary .translation-flag{margin:0 5px}.field-error:empty{display:none}
.translation-picker .translation-flag,.translation-settings .translation-flag,.message-translation .translation-flag{width:24px!important;min-width:24px!important;max-width:24px!important;height:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 24px!important;aspect-ratio:4/3;overflow:hidden;border-radius:2px}.translation-show-all{display:block;margin:6px 0 0 auto;padding:4px 2px;border:0;background:transparent;color:var(--muted,#526d89);font:inherit;font-size:11px;cursor:pointer}.translation-show-all:hover{color:var(--accent-display,#1764b5)}.translation-settings{margin:20px 0;padding:16px;border:1px solid var(--line,#b2cce4);border-radius:14px}.translation-settings legend{font-weight:600;font-size:14px}.translation-settings>input{width:100%;padding:10px;border:1px solid var(--line,#b2cce4);border-radius:10px;background:transparent;color:inherit}.translation-settings-list{max-height:230px;overflow:auto;margin:10px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px}.translation-setting-option{display:flex;align-items:center;gap:9px;padding:8px;font-size:12px;cursor:pointer}.translation-setting-option[hidden]{display:none}.translation-setting-option>input{width:16px;height:16px;flex:none;margin:0}.translation-settings>small{color:var(--muted);font-size:11px}
.translation-language-list .select-option{justify-content:flex-start}.translation-language-list .select-option>span:last-child{flex:1;text-align:left}
.crm-chat-modal .field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:100px;padding:14px 16px;border:1px solid var(--crm-border,rgba(255,255,255,.6));border-radius:16px;background:var(--crm-soft,var(--glass-fill,rgba(235,246,255,.3)));color:var(--ink,#111829);font:inherit;font-size:16px;line-height:1.5;box-shadow:inset 0 1px 1px #ffffff40;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);resize:vertical;appearance:none;-webkit-appearance:none}
.crm-chat-modal .field textarea:focus{outline:2px solid var(--blue,#075aff);outline-offset:2px}
.crm-chat-modal .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.crm-chat-modal .actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 16px;border:1px solid var(--crm-border,#ffffff80);border-radius:14px;color:var(--ink,#111829);background:var(--crm-soft,var(--glass-fill,#ffffff30));font:inherit;font-weight:600;line-height:1.35;cursor:pointer}
.crm-chat-modal .actions .btn.primary{color:#fff!important;background:#075aff!important;border-color:#075aff;box-shadow:0 4px 12px #075aff26}
.crm-chat-modal .actions .btn.primary>.sg-pane{display:none!important}
.crm-chat-modal .actions .btn .icon{width:20px;height:20px;flex:none;stroke:currentColor}
.crm-chat-modal .actions .btn:disabled{opacity:.65;cursor:wait}
@media(max-width:600px){.crm-chat-modal .actions .btn{flex:1 1 180px;width:auto;white-space:normal}.crm-chat-modal .field textarea{min-height:90px}}
.provider-logo{display:inline-flex;width:24px;height:24px;flex:none;vertical-align:middle;border-radius:6px;overflow:hidden}.provider-logo>svg{display:block;width:100%;height:100%;stroke:none}.chat-platform-label{display:inline-flex;align-items:center;gap:5px}.chat-avatar-platform .provider-logo,.message-platform .provider-logo,.conversation-top small .provider-logo,.contact-platform .provider-logo{width:18px;height:18px}.message-platform{display:flex;align-items:center;gap:5px}.message-translation summary{cursor:pointer;font-size:12px}.message-translation p{white-space:pre-wrap;overflow-wrap:anywhere}.crm-chat-modal .field textarea{background:var(--crm-soft,var(--glass-fill,rgba(235,246,255,.3)))}

.crm-chat-modal .btn.primary>.sg-pane{display:none!important}

/* Keep chat modal text and actions readable in either shell. */
.crm-chat-modal>p{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.5}.crm-chat-modal .actions .btn:not(.primary){color:var(--ink,#111829)!important}.crm-chat-modal .field>span:not(.field-shell){font-size:14px;font-weight:400;color:var(--ink,#111829)}
