/* Scoped WhatsApp-style voice interface; no global CRM selectors. */
.xcv-launch{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border:0;background:transparent;color:inherit;border-radius:50%;cursor:pointer}.xcv-launch:hover{background:rgba(128,128,128,.12)}.xcv-btn{border:0;border-radius:24px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#e9edef;color:#182c35;cursor:pointer;font:inherit;line-height:1.1;min-height:40px}.xcv-btn:disabled{opacity:.4;cursor:not-allowed}.xcv-compact{padding:8px;min-height:32px;background:transparent;color:inherit}.xcv-green{background:#008069;color:white}.xcv-red{background:#ea3445;color:white}.xcv-round{background:#273a42;color:#e9edef}.xcv-text{background:transparent;color:inherit}.xcv-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.52);display:grid;place-items:center;z-index:30000;padding:12px}.xcv-sheet{background:#fff;color:#111b21;width:min(480px,100%);max-height:min(82dvh,760px);overflow:auto;border-radius:18px;padding:18px;box-shadow:0 12px 50px #0005;display:flex;flex-direction:column;gap:14px}.xcv-sheet header{display:flex;align-items:center;justify-content:space-between}.xcv-sheet h2,.xcv-call h2{margin:0;font-size:20px;font-weight:600}.xcv-sheet label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.xcv-sheet select,.xcv-sheet input[type=tel]{font:inherit;border:1px solid #b8c6c9;border-radius:9px;padding:10px;background:transparent;color:inherit}.xcv-number{text-align:center;font-size:26px!important;letter-spacing:2px;width:100%;box-sizing:border-box}.xcv-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.xcv-keypad button{border:0;background:#f0f2f5;border-radius:10px;padding:14px;color:inherit;font:inherit;font-size:23px;cursor:pointer}.xcv-controlrow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.xcv-call{position:fixed;right:24px;bottom:24px;width:min(355px,calc(100vw - 32px));min-height:360px;z-index:30010;background:#111b21;color:#e9edef;box-shadow:0 16px 50px #0006;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:24px;box-sizing:border-box}.xcv-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#c2cbd0}.xcv-call-center{display:flex;flex:1;flex-direction:column;align-items:center;text-align:center;gap:10px;justify-content:center;padding:14px 0}.xcv-call-center p{margin:0;color:#aebac1;font-size:15px}.xcv-avatar{width:100px;height:100px;border-radius:50%;display:grid;place-items:center;background:#30434c;color:#dae5e8;font-size:40px;font-weight:500;flex-shrink:0}.xcv-small{width:43px;height:43px;font-size:17px}.xcv-call .xcv-controlrow .xcv-btn{flex-direction:column;border-radius:50%;width:58px;height:58px;padding:6px;gap:3px;min-height:58px;font-size:12px}.xcv-call small{font-size:10px}.xcv-float,.xcv-missed-banner{position:fixed;z-index:29999;right:18px;bottom:18px;border:0;background:#008069;color:#fff;display:flex;align-items:center;gap:8px;border-radius:26px;padding:12px 18px;box-shadow:0 4px 18px #0004;cursor:pointer;font:inherit}.xcv-missed-banner{bottom:90px;background:#fff;color:#b91c1c;border:1px solid #efd2d2}.xcv-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #dfe4e6}.xcv-row strong,.xcv-row small{display:block;overflow-wrap:anywhere}.xcv-row small{color:#667781;font-size:12px}.xcv-row .xcv-missed{color:#c33943}.xcv-grow{flex:1;min-width:0}.xcv-target{display:flex;align-items:center;gap:12px}.xcv-tabs{display:flex;gap:6px;flex-wrap:wrap}.xcv-tabs button{border:0;background:#eef2f3;color:#33474f;border-radius:20px;padding:8px 12px;cursor:pointer}.xcv-tabs button.active{background:#d9fdd3;color:#075e54}.xcv-error{color:#c33e47;font-size:13px}.xcv-call .xcv-error{color:#fca5a5}.xcv-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);z-index:30020;background:#24353e;color:#fff;padding:12px;border-radius:8px;display:flex;gap:12px;align-items:center}.xcv-sheet p{margin:0}.xcv-sheet small{font-size:12px}.xcv-sheet button:focus-visible,.xcv-call button:focus-visible,.xcv-launch:focus-visible{outline:2px solid #25d366;outline-offset:3px}html[data-ghr-appearance=dark] .xcv-sheet{background:#17242b;color:#e9edef}html[data-ghr-appearance=dark] .xcv-keypad button,html[data-ghr-appearance=dark] .xcv-tabs button{background:#273a42;color:#e9edef}html[data-ghr-appearance=dark] .xcv-tabs button.active{background:#075e54}html[data-ghr-appearance=dark] .xcv-row{border-color:#35454d}@media(max-width:600px){.xcv-call{right:0;bottom:0;width:100%;border-radius:20px 20px 0 0;min-height: min(62dvh,440px);padding:20px 18px max(24px,env(safe-area-inset-bottom));}.xcv-sheet{width:100%;max-height:90dvh;box-sizing:border-box}.xcv-backdrop{place-items:end center;padding:8px}.xcv-float{bottom:max(76px,env(safe-area-inset-bottom));right:12px}.xcv-missed-banner{bottom:135px;right:12px;max-width:85vw}.xcv-launch{min-width:32px;height:32px}}

.xcv-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.xcv-summary>div,.xcv-guide{padding:12px;background:rgba(128,128,128,.1);border-radius:12px}.xcv-summary strong,.xcv-summary small{display:block}.xcv-summary strong{font-size:20px;margin-top:5px}.xcv-guide{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.45}.xcv-connected{color:#008069!important}html[data-ghr-appearance=dark] .xcv-connected{color:#55d9b3!important}.xcv-sheet input[type=checkbox]{width:18px;height:18px;accent-color:#008069;flex-shrink:0}
/* Native conversation call rows, with independent light/dark palettes. */
.xcv-timeline{display:flex;width:100%;box-sizing:border-box;padding:3px 12px;flex:none}.xcv-in{justify-content:flex-start}.xcv-out{justify-content:flex-end}.xcv-bubble{display:flex;align-items:center;gap:12px;max-width: min(86%,340px);min-width:min(215px,80%);padding:10px 12px;border:0;border-radius:12px;background:#fff;color:#111b21;text-align:left;font:inherit;box-shadow:0 1px 1px #0002}.xcv-out .xcv-bubble{background:#d9fdd3}.xcv-bubble-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#edf0f2;color:#54656f;flex:none}.xcv-is-missed .xcv-bubble-symbol,.xcv-is-missed-preview{color:#e54858!important}.xcv-bubble-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}.xcv-bubble-copy strong{font-size:14px;font-weight:650}.xcv-bubble-copy>span{font-size:13px;color:#667781}.xcv-bubble-copy time{align-self:flex-end;font-size:11px;color:#667781}.xcv-preview{display:inline-flex;gap:4px;align-items:center;min-width:0}.xcv-preview svg,.xcv-row small svg{width:15px;height:15px;vertical-align:middle;flex:none}.xcv-call .xcv-controlrow{gap:18px}.xcv-call .xcv-controlrow .xcv-btn{width:62px;height:62px}.xcv-row .xcv-compact{color:#008069}.xcv-missed-banner{display:none!important} /* call indicators now appear in the native timeline/list */
html[data-ghr-appearance=dark] .xcv-bubble{background:#202c33;color:#e9edef}html[data-ghr-appearance=dark] .xcv-out .xcv-bubble{background:#005c4b}html[data-ghr-appearance=dark] .xcv-bubble-symbol{background:#34434b;color:#aebac1}html[data-ghr-appearance=dark] .xcv-bubble-copy>span,html[data-ghr-appearance=dark] .xcv-bubble-copy time{color:#b0b9be}
/* Preserve CRM controls, but integrate them into the existing composer/header. */
.chat .head .xcv-launch{flex:0 0 36px;width:36px;height:36px;min-width:36px;align-self:center;margin:0;color:#54656f}.chat .head .xcv-launch svg{width:22px;height:22px}.chat .ghr-connect-template-picker{padding:4px 8px!important;gap:6px!important;min-height:0!important;background:#f0f2f5!important;border:0!important}.chat .ghr-connect-template-picker>button{border:0!important;border-radius:18px!important;background:#fff!important;color:#54656f!important;font-size:12px!important;min-height:30px!important;padding:5px 10px!important;box-shadow:none!important}.chat .ghrNativeComposerRow{background:#f0f2f5!important;padding:3px 4px 4px!important}.chat .ghrWaComposer{gap:5px!important;padding:4px!important;background:transparent!important}.chat .ghrWaComposer .ghrComposePill{border:0!important;border-radius:26px!important;background:#fff!important;box-shadow:none!important;min-height:46px!important}.chat .ghrWaComposer .ghrComposeIcon{color:#667781!important;background:transparent!important;border:0!important}.chat .ghrWaComposer .ghrComposePrimary{background:#008069!important;color:#fff!important;box-shadow:none!important;border-radius:50%!important;border:0!important}.chat .ghrWaComposer[data-note-mode=true] .ghrComposePill{outline:1px solid #d3a344!important}.chat .ghrWaComposer textarea{color:#111b21!important;background:transparent!important}.chat .ghrWaComposer textarea::placeholder{color:#667781!important}
html[data-ghr-appearance=dark] .chat .head .xcv-launch{color:#e9edef}html[data-ghr-appearance=dark] .chat .ghr-connect-template-picker,html[data-ghr-appearance=dark] .chat .ghrNativeComposerRow{background:#111b21!important}html[data-ghr-appearance=dark] .chat .ghr-connect-template-picker>button,html[data-ghr-appearance=dark] .chat .ghrWaComposer .ghrComposePill{background:#202c33!important;color:#e9edef!important}html[data-ghr-appearance=dark] .chat .ghrWaComposer textarea{color:#e9edef!important}html[data-ghr-appearance=dark] .chat .ghrWaComposer .ghrComposeIcon{color:#aebac1!important}
@media(max-width:700px){.chat .head .xcv-launch{grid-column:auto!important;grid-row:1!important;justify-self:end!important;align-self:center!important;flex:none!important;order:3!important}.chat .head .replyAccountControl{min-width:0!important;max-width:100%!important;margin:2px 0!important}.chat .head .replyAccountControl select{border-radius:14px!important;padding:5px 8px!important;font-size:13px!important;min-height:30px!important}.chat .ghrWaComposer textarea{font-size:16px!important}.chat .ghrWaComposer .ghrComposePrimary{width:46px!important;height:46px!important;min-width:46px!important}.xcv-sheet{border-radius:20px 20px 0 0;max-height:94dvh}.xcv-call{min-height:min(70dvh,500px)}.xcv-bubble{max-width:88%}}
.xcv-sidebar-calls{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;border:0!important;background:transparent!important;color:inherit!important;border-radius:50%;cursor:pointer}.xcv-sidebar-calls:hover{background:#8882!important}.xcv-count{position:absolute;top:0;right:-3px;background:#008069;color:white;font-size:10px;font-weight:700;min-width:16px;line-height:16px;border-radius:9px;padding:0 3px;box-sizing:border-box}.xcv-sidebar-calls:focus-visible{outline:2px solid #008069}

/* Contact picker and restored header action. */
.xcv-contact-picker{display:flex;flex-direction:column;gap:7px;min-width:0}.xcv-contact-picker input[type=search]{box-sizing:border-box;width:100%;border:1px solid #aebac1;border-radius:22px;padding:11px 14px;background:transparent;color:inherit;font:inherit}.xcv-contact-result{display:flex;align-items:center;gap:10px;text-align:left;width:100%;border:0;border-bottom:1px solid #8883;background:transparent;color:inherit;padding:9px 2px;cursor:pointer;font:inherit}.xcv-contact-result:hover{background:#8881}.xcv-contact-result strong,.xcv-contact-result small,.xcv-target small{display:block;overflow-wrap:anywhere}.xcv-contact-result small,.xcv-target small{color:#667781}.xcv-contact-result>svg{color:#008069;flex:none}.xcv-target .xcv-grow{overflow-wrap:anywhere}.xcv-launch{display:inline-flex!important;visibility:visible!important;opacity:1!important}.chat .head .xcv-launch{grid-column:auto!important;grid-row:auto!important;order:0!important;flex:0 0 36px!important;margin:0!important;position:static!important}html[data-ghr-appearance=dark] .xcv-contact-result small,html[data-ghr-appearance=dark] .xcv-target small{color:#aebac1}
/* Reserve a dedicated top-row slot for the phone on the existing mobile grid.
   Assignment moves to row two; the native account menu remains at top right. */
@media(max-width:700px){.app .chat>.head:has(>.xcv-launch){position:relative}.app .chat>.head:has(>.xcv-launch)>.xcv-launch{position:absolute!important;inset-block-start:12px;inset-inline-end:64px;z-index:2;min-width:40px!important;width:40px!important;height:40px!important}.app .chat>.head:has(>.xcv-launch)>.headName{padding-inline-end:110px!important;min-width:0}.app .chat>.head:has(>.xcv-launch)>.ghrMobileAssignHeader{position:static!important;grid-row:2!important;grid-column:4!important;inset:auto!important;margin:0!important;padding:4px 8px!important}.app .chat>.head:has(>.xcv-launch)>.replyAccountControl{grid-column:1/4!important;grid-row:2!important}.app .sidebar .brand .ghrBrandHeading>.xcv-sidebar-calls{flex:0 0 32px;width:32px;min-width:32px}}

/* Stable WhatsApp-style workspace geometry; only content scrolls. */
.xcv-backdrop{box-sizing:border-box;place-items:center;padding:12px;overflow:hidden}
.xcv-sheet{--xcv-panel-bg:#fff;--xcv-panel-fg:#111b21;--xcv-panel-muted:#667781;--xcv-panel-border:#e9edef;--xcv-panel-soft:#f0f2f5;--xcv-panel-active:#d9fdd3;--xcv-panel-active-fg:#075e54;box-sizing:border-box;width:min(480px,100%);height:min(760px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);min-height:0;padding:0;gap:0;overflow:hidden;background:var(--xcv-panel-bg);color:var(--xcv-panel-fg)}
html[data-ghr-appearance=dark] .xcv-sheet{--xcv-panel-bg:#111b21;--xcv-panel-fg:#e9edef;--xcv-panel-muted:#aebac1;--xcv-panel-border:#2a3942;--xcv-panel-soft:#202c33;--xcv-panel-active:#005c4b;--xcv-panel-active-fg:#e9edef;background:var(--xcv-panel-bg);color:var(--xcv-panel-fg)}
.xcv-sheet>header{flex:none;min-height:58px;padding:8px 16px;border-bottom:1px solid var(--xcv-panel-border);box-sizing:border-box;background:var(--xcv-panel-bg)}
.xcv-sheet-body{display:flex;flex:1 1 0;min-height:0;min-width:0;flex-direction:column;gap:12px;padding:14px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box}
.xcv-sheet-body>*{flex-shrink:0;min-width:0}.xcv-sheet-history .xcv-sheet-body{overflow:hidden}.xcv-history-list{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:4px}.xcv-history-list .xcv-row{min-height:64px;box-sizing:border-box}.xcv-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:160px;height:100%;box-sizing:border-box;text-align:center;color:var(--xcv-panel-muted)}.xcv-empty svg{width:36px;height:36px}.xcv-sheet .xcv-tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}.xcv-sheet .xcv-tabs button{flex:0 0 auto;min-height:36px;padding:8px 12px;background:var(--xcv-panel-soft);color:var(--xcv-panel-fg);white-space:nowrap;font-size:13px}.xcv-sheet .xcv-tabs button.active{background:var(--xcv-panel-active);color:var(--xcv-panel-active-fg)}.xcv-sheet .xcv-row{border-color:var(--xcv-panel-border)}.xcv-sheet .xcv-row small,.xcv-sheet .xcv-contact-result small,.xcv-sheet .xcv-target small{color:var(--xcv-panel-muted)}.xcv-sheet .xcv-btn:not(.xcv-green):not(.xcv-red):not(.xcv-round){color:var(--xcv-panel-fg);background:var(--xcv-panel-soft)}.xcv-sheet .xcv-compact{background:transparent!important}.xcv-sheet .xcv-keypad button{background:var(--xcv-panel-soft);color:var(--xcv-panel-fg)}.xcv-sheet .xcv-controlrow{gap:8px}.xcv-sheet .xcv-green{background:#008069;color:#fff}.xcv-sheet select,.xcv-sheet input[type=tel],.xcv-sheet input[type=search]{background:var(--xcv-panel-bg);color:var(--xcv-panel-fg);border-color:var(--xcv-panel-border);max-width:100%}.xcv-sheet select option{background:var(--xcv-panel-bg);color:var(--xcv-panel-fg)}
@media(max-width:700px){.xcv-backdrop{place-items:end center;padding:0}.xcv-sheet{width:100%;height:min(92dvh,760px);max-height:92dvh;border-radius:18px 18px 0 0}.xcv-sheet-body{padding:12px 14px max(14px,env(safe-area-inset-bottom));}.xcv-sheet>header{padding:8px 14px}.xcv-sheet .xcv-tabs button{padding:8px 10px}}
@media(max-height:420px){.xcv-sheet{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.xcv-sheet-history .xcv-sheet-body{overflow:auto}.xcv-history-list{min-height:100px}}
.xcv-sheet .xcv-tabs button.xcv-btn.active{background:var(--xcv-panel-active);color:var(--xcv-panel-active-fg)}
