.cc-conversation-host{min-height:0}
.cc-conversation-host>:not(#cc-conversation-workspace){visibility:hidden!important;pointer-events:none!important}
body:has(#cc-conversation-workspace)>.cc-reply-launch{display:none!important}
.cc-conversation-workspace{--ccw-accent:#127b65;--ccw-soft:#e5f3ed;--ccw-line:#e6ebe8;position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#243d35;font:14px Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;isolation:isolate}
.cc-conversation-workspace[data-channel=EMAIL]{--ccw-accent:#0675ed;--ccw-soft:#e8f2ff;--ccw-line:#e5eaf0;color:#263a50}
.cc-conversation-workspace *{box-sizing:border-box}
.cc-conversation-workspace button,.cc-conversation-workspace input,.cc-conversation-workspace textarea{font:inherit}
.cc-conversation-workspace button{cursor:pointer}
.cc-conversation-workspace button:disabled{cursor:default;opacity:.6}
.cc-conversation-workspace [hidden]{display:none!important}
.cc-conversation-workspace button:focus-visible,.cc-conversation-workspace a:focus-visible,.cc-conversation-workspace input:focus-visible,.cc-conversation-workspace textarea:focus-visible{outline:3px solid var(--ccw-accent);outline-offset:3px}
.ccw-toolbar{display:flex;align-items:center;gap:24px;min-height:89px;padding:18px 26px;border-bottom:1px solid var(--ccw-line);background:#fff;flex-shrink:0}
.ccw-heading{margin-right:auto}.ccw-eyebrow{display:block;color:#7f9289;font-size:10px;font-weight:750;letter-spacing:.16em;margin-bottom:3px}.ccw-heading h1{margin:0;font-size:23px;font-weight:700;letter-spacing:-.7px}
.ccw-channels{display:flex;gap:3px;background:#f1f4f2;border:1px solid var(--ccw-line);padding:4px;border-radius:10px}
.ccw-channels button{border:0;border-radius:7px;background:transparent;color:#6a7b73;padding:8px 20px;font-weight:650;font-size:13px}
.ccw-channels button[aria-pressed=true]{background:#fff;color:var(--ccw-accent);box-shadow:0 1px 4px #203d3617}
.ccw-refresh{background:transparent;border:1px solid var(--ccw-line);border-radius:8px;padding:9px 13px;color:#61746b;font-size:12px!important}
.ccw-navigation{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:31px;height:31px;border:1px solid var(--ccw-line);border-radius:8px;background:#fff;color:var(--ccw-accent);font-size:18px!important;padding:0}
.ccw-split{display:grid;grid-template-columns:minmax(270px,330px) minmax(0,1fr);flex:1;min-height:0}
.ccw-inbox{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--ccw-line);background:#fff;padding-top:18px}
.ccw-search{width:calc(100% - 32px);margin:0 16px;padding:11px 13px;border:1px solid transparent;border-radius:9px;background:#f1f5f3;font-size:12px!important;color:inherit;outline:none}
[data-channel=EMAIL] .ccw-search{background:#f2f5f9}
.ccw-search:focus{border-color:var(--ccw-accent);background:#fff}
.ccw-filters{display:flex;gap:7px;padding:14px 16px 0}.ccw-filters button{border:0;border-radius:20px;padding:7px 13px;background:#f5f7f6;color:#75867e;font-size:11px;font-weight:650}.ccw-filters button[aria-pressed=true]{background:var(--ccw-soft);color:var(--ccw-accent)}
.ccw-count{font-size:10px;line-height:1.5;min-height:15px;color:#8b9b93;margin:13px 20px 10px}
.ccw-list{flex:1;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#dce5df transparent}
.ccw-conversation{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;border:0;border-left:3px solid transparent;background:#fff;padding:17px 17px 17px 14px;color:inherit;border-bottom:1px solid #f1f4f2}
.ccw-conversation:hover{background:#f8fbf9}.ccw-conversation[aria-current=true]{background:var(--ccw-soft);border-left-color:var(--ccw-accent)}
.ccw-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;margin-top:1px;border-radius:50%;background:#edf2ee;color:#83968b;font-size:12px;font-weight:650}
.ccw-conversation[aria-current=true] .ccw-avatar{background:#fff;color:var(--ccw-accent)}
.ccw-preview{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.ccw-preview-top{display:flex;align-items:center;gap:8px}.ccw-preview-top strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650;font-size:12px;flex:1}.ccw-preview-top time{color:#91a097;font-size:9px;white-space:nowrap}
.ccw-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#7d8e84;line-height:1.6;font-size:11px;overflow-wrap:anywhere}.ccw-subject-preview{color:#607181;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ccw-reply-badge,.ccw-block-badge{font-size:9px;color:var(--ccw-accent);font-weight:700}.ccw-block-badge{color:#a36a47}
.ccw-more,.ccw-older{display:block;border:0;background:transparent;color:var(--ccw-accent);padding:12px 18px;font-size:11px!important;text-align:center}
.ccw-reader{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f5f8f6}
.ccw-thread-head{display:flex;align-items:center;gap:12px;min-height:76px;padding:16px 28px;background:#fff;border-bottom:1px solid var(--ccw-line);flex-shrink:0}
.ccw-identity{flex:1;min-width:0}.ccw-identity h2{font-size:15px;line-height:1.5;font-weight:650;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere}.ccw-identity p{color:#82938a;margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}
.ccw-record{font-size:10px;text-decoration:none;white-space:nowrap;color:var(--ccw-accent);padding:7px 10px;border:1px solid var(--ccw-line);border-radius:6px}
.ccw-back{display:none;border:0;background:transparent;color:var(--ccw-accent);font-size:30px!important;padding:0 8px 4px 0}
.ccw-history{flex:1;overflow-y:auto;min-height:0;padding:20px 30px;scrollbar-width:thin;scrollbar-color:#ccd9d0 transparent;background-color:#f0f5f1;background-image:radial-gradient(#b8c8bc38 .7px,transparent .7px);background-size:15px 15px}
.ccw-messages{display:flex;flex-direction:column;gap:12px;padding-bottom:8px}
.ccw-day{align-self:center;margin:10px 0 12px;background:#fff;color:#8a9a90;box-shadow:0 1px 3px #23432c0a;padding:5px 12px;border-radius:6px;font-size:9px}
.ccw-message{max-width:76%;padding:12px 15px 8px;box-shadow:0 1px 2px #28452d0c;border:1px solid #e7eee9;border-radius:2px 12px 12px 12px;background:#fff;align-self:flex-start}
.ccw-message.ccw-outgoing{align-self:flex-end;background:#def2e6;border-color:#d5ebdc;border-radius:12px 2px 12px 12px}
.ccw-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:12px;margin:0;color:#354b3e}
.ccw-message-meta{display:flex;justify-content:flex-end;gap:7px;margin-top:7px;color:#8a9f90;font-size:9px;line-height:1.5}.ccw-failed{color:#b25148}
.ccw-compose{flex-shrink:0;border-top:1px solid var(--ccw-line);background:#fff;padding:17px 24px;max-height:46%;overflow-y:auto}
.ccw-no-contact,.ccw-read-error{font-size:12px;line-height:1.6;color:#a26539;background:#fff4e9;border-radius:7px;padding:12px 16px;margin:0}
.ccw-read-error{margin-bottom:14px}.ccw-loading,.ccw-list-empty{padding:26px;color:#8b9c91;font-size:12px;line-height:1.8}
.ccw-empty{margin:auto;padding:40px;text-align:center;max-width:390px}.ccw-empty-symbol{font-size:46px;color:#bed4c6;margin-bottom:25px}.ccw-empty h2{font-size:18px;letter-spacing:-.4px;font-weight:600}.ccw-empty p{font-size:12px;line-height:1.9;color:#95a59a}
.cc-compose-inline{position:static!important;inset:auto!important;display:block!important;background:transparent!important;backdrop-filter:none!important;padding:0!important;z-index:auto!important}
.cc-compose-inline .cc-compose-dialog{width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.cc-compose-inline .cc-compose-head,.cc-compose-inline>.cc-compose-dialog>.cc-compose-from{display:none!important}
.cc-compose-inline .cc-compose-form{padding:0!important;margin:0!important}
.cc-compose-inline .cc-compose-message{background:#f6f8f6!important;border:1px solid var(--ccw-line)!important;border-radius:9px!important;padding:13px!important;color:inherit;box-sizing:border-box;width:100%;font:inherit;line-height:1.6;resize:vertical;min-height:50px}
.cc-compose-inline .cc-compose-status{font-size:10px;line-height:1.6;color:#788f80;margin:10px 0 0!important;padding:0!important}
.cc-compose-inline .cc-compose-status.cc-compose-error{color:#a94c45}
.cc-compose-inline .cc-compose-actions{padding:0!important;margin:0!important;display:flex;gap:10px;align-items:center;border:0!important}
.cc-compose-inline .cc-compose-send{border:0;border-radius:8px;background:var(--ccw-accent);color:#fff;font-size:11px;padding:12px 17px;white-space:nowrap}
.cc-compose-inline .cc-compose-another{border:1px solid var(--ccw-line);border-radius:7px;background:#fff;color:var(--ccw-accent);font-size:10px;padding:10px 12px}
.cc-sms-inline .cc-compose-number,.cc-sms-inline label,.cc-sms-inline .cc-compose-note,.cc-sms-inline .cc-compose-conversations,.cc-sms-inline .cc-compose-actions>button:not(.cc-compose-send):not(.cc-compose-another){display:none!important}
.cc-sms-inline .cc-compose-form{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start}
.cc-sms-inline .cc-compose-message{grid-column:1;grid-row:1;min-height:48px;max-height:130px;height:48px;resize:vertical;font-size:12px!important;margin:0!important}
.cc-sms-inline .cc-compose-actions{grid-column:2;grid-row:1;align-self:start;max-width:125px;flex-wrap:wrap}
.cc-sms-inline .cc-compose-count{grid-column:1;font-size:9px!important;color:#a1aea5;margin:6px 0 0!important}
.cc-sms-inline .cc-compose-status{grid-column:1/-1}
[data-channel=EMAIL] .ccw-reader{background:#f7f9fc}[data-channel=EMAIL] .ccw-history{background:#f7f9fc;padding:26px 32px}
[data-channel=EMAIL] .ccw-message{max-width:none;align-self:stretch;background:#fff;border:1px solid #e4eaf1;border-radius:10px;padding:23px 26px;box-shadow:0 2px 7px #304b7011}
[data-channel=EMAIL] .ccw-messages{gap:18px}[data-channel=EMAIL] .ccw-message-text{color:#46566c;font-size:13px;line-height:1.9;margin-top:22px}
.ccw-mail-head{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;align-items:center}.ccw-mail-head strong{color:#344963;font-weight:650;font-size:12px;overflow-wrap:anywhere}.ccw-mail-head time{font-size:10px;color:#97a3b3}.ccw-mail-to{font-size:10px;color:#9aa5b4;overflow-wrap:anywhere;margin:7px 0 0}
.ccw-attachment{display:inline-block;font-size:11px;color:var(--ccw-accent);padding:10px 12px;margin-top:16px;background:var(--ccw-soft);border-radius:6px;text-decoration:none}
.ccw-email-reply{border:1px solid var(--ccw-line);background:#fff;color:var(--ccw-accent);font-size:12px!important;border-radius:8px;padding:11px 24px}
.cc-email-inline .cc-reply-content{padding:0!important}.cc-email-inline .cc-compose-from{font-size:11px!important;color:#94a1b1;margin:0 0 12px!important}.cc-email-inline .cc-compose-form{display:flex;flex-direction:column;gap:8px}
.cc-email-inline label{font-size:10px;color:#8e9bab}.cc-email-inline .cc-compose-number{width:100%;background:#fff;border:0;border-bottom:1px solid var(--ccw-line);border-radius:0;padding:5px 0 10px!important;font-size:12px;color:inherit}
.cc-email-inline .cc-compose-note{font-size:9px;color:#9ba8b4;margin:0 0 5px!important}.cc-email-inline .cc-compose-message{font-size:12px!important;min-height:90px;background:#f9fbfe!important}
.cc-email-inline .cc-compose-actions{justify-content:flex-end}
@media(min-width:1500px){.ccw-split{grid-template-columns:360px minmax(0,1fr)}.ccw-history{padding-left:7%;padding-right:7%}.ccw-message{max-width:68%}}
@media(max-width:1000px){.ccw-toolbar{gap:12px;padding:16px 18px}.ccw-heading h1{font-size:20px}.ccw-channels button{padding:8px 13px}.ccw-split{grid-template-columns:260px minmax(0,1fr)}.ccw-thread-head{padding:14px 18px}.ccw-history{padding:15px}.ccw-message{max-width:90%}.ccw-compose{padding:12px 14px}[data-channel=EMAIL] .ccw-history{padding:18px}[data-channel=EMAIL] .ccw-message{padding:18px}}
@media(max-width:700px){.ccw-toolbar{min-height:76px;gap:10px;padding:13px 15px}.ccw-eyebrow{font-size:8px}.ccw-heading h1{font-size:18px}.ccw-refresh{font-size:0!important;width:31px;height:31px;padding:0}.ccw-refresh:after{content:'↻';font-size:21px}.ccw-channels{padding:3px;border-radius:8px}.ccw-channels button{padding:7px 11px;font-size:11px}.ccw-split{display:flex;position:relative}.ccw-inbox{width:100%;border:0}.ccw-reader{display:none;width:100%}.ccw-open .ccw-inbox{display:none}.ccw-open .ccw-reader{display:flex}.ccw-back{display:block}.ccw-identity h2{font-size:13px}.ccw-thread-head{padding:12px 15px;min-height:70px}.ccw-message{max-width:88%;padding:10px 12px 7px}.ccw-message-text{font-size:12px}.ccw-history{padding:12px 14px}.ccw-message-meta{font-size:8px}.ccw-compose{padding:12px;max-height:48%}.ccw-record{font-size:9px}.ccw-sms-inline .cc-compose-actions{max-width:90px}.cc-compose-inline .cc-compose-send{padding:12px 13px;font-size:10px}.ccw-conversation{padding:18px}.ccw-preview-top strong{font-size:13px}.ccw-snippet{font-size:12px}.ccw-compose .cc-compose-another{font-size:9px;padding:8px}.cc-sms-inline .cc-compose-actions{max-width:100px}[data-channel=EMAIL] .ccw-history{padding:14px}[data-channel=EMAIL] .ccw-message{padding:18px 16px}[data-channel=EMAIL] .ccw-message-text{font-size:12px}.ccw-mail-head time{font-size:9px}.ccw-empty{padding:25px}}

/* Cali Clean conversations: follow the native CRM light/dark preference. */
html.dark .cc-conversation-workspace{--ccw-accent:#8ed9b8;--ccw-soft:#264f44;--ccw-line:#344253;background:#222b3b;color:#edf1f8;color-scheme:dark}
html.dark .cc-conversation-workspace[data-channel=EMAIL]{--ccw-accent:#9bc9ff;--ccw-soft:#263f5c;--ccw-line:#344253;color:#edf1f8}
html.dark .ccw-toolbar,html.dark .ccw-inbox,html.dark .ccw-thread-head,html.dark .ccw-compose,html.dark .ccw-conversation,html.dark .ccw-navigation{background:#222b3b}
html.dark .ccw-conversation{border-bottom-color:#344253}
html.dark .ccw-conversation:hover{background:#2d394d}
html.dark .ccw-conversation[aria-current=true]{background:var(--ccw-soft)}
html.dark .ccw-channels,html.dark .ccw-search,html.dark [data-channel=EMAIL] .ccw-search,html.dark .ccw-filters button,html.dark .ccw-avatar{background:#192332;color:#b6c1d1}
html.dark .ccw-channels button{color:#b6c1d1}
html.dark .ccw-channels button[aria-pressed=true],html.dark .ccw-conversation[aria-current=true] .ccw-avatar{background:#344253;color:var(--ccw-accent)}
html.dark .ccw-filters button[aria-pressed=true]{background:var(--ccw-soft);color:var(--ccw-accent)}
html.dark .ccw-reader,html.dark .ccw-history,html.dark [data-channel=EMAIL] .ccw-reader,html.dark [data-channel=EMAIL] .ccw-history{background-color:#181f2d;background-image:none}
html.dark .ccw-day,html.dark .ccw-message,html.dark [data-channel=EMAIL] .ccw-message{background:#263143;border-color:#344253;color:#edf1f8}
html.dark .ccw-message.ccw-outgoing{background:#264f44;border-color:#39755c}
html.dark [data-channel=EMAIL] .ccw-message.ccw-outgoing{background:#263f5c;border-color:#45678f}
html.dark .ccw-message-text{color:#edf1f8}
html.dark .ccw-eyebrow,html.dark .ccw-refresh,html.dark .ccw-count,html.dark .ccw-preview-top time,html.dark .ccw-snippet,html.dark .ccw-subject-preview,html.dark .ccw-identity p,html.dark .ccw-message-meta,html.dark .ccw-loading,html.dark .ccw-list-empty,html.dark .ccw-empty p,html.dark .ccw-mail-head time{color:#b6c1d1}
html.dark .ccw-compose .cc-compose-message,html.dark .cc-email-inline .cc-compose-message{background:#192332!important;color:#edf1f8!important;border-color:#53627a!important}
html.dark .ccw-compose input,html.dark .ccw-compose textarea,html.dark .cc-compose-inline .cc-compose-another{background:#192332;color:#edf1f8}
html.dark .ccw-compose input::placeholder,html.dark .ccw-compose textarea::placeholder,html.dark .ccw-search::placeholder{color:#a7b3c4;opacity:1}
html.dark .cc-compose-inline .cc-compose-send{color:#142b22}
html.dark [data-channel=EMAIL] .cc-compose-send{color:#142638}
html.dark .ccw-no-contact,html.dark .ccw-read-error{background:#493423;color:#ffcea3}
html.dark .ccw-failed,html.dark .cc-compose-inline .cc-compose-status.cc-compose-error{color:#ffb2a9}
html.dark .ccw-block-badge{color:#ffcea3}
html.dark .ccw-list,html.dark .ccw-history{scrollbar-color:#53627a transparent}

/* Reply controls use one palette, including native text-fill and the caret. */
.cc-conversation-workspace{--ccw-editor-bg:var(--t-background-secondary,#f6f8f6);--ccw-editor-ink:var(--t-font-color-primary,#243d35);--ccw-editor-muted:var(--t-font-color-secondary,#61746b);--ccw-editor-border:var(--t-border-color-strong,#75867e)}
html.dark .cc-conversation-workspace{--ccw-editor-bg:var(--t-background-secondary,#192332);--ccw-editor-ink:var(--t-font-color-primary,#edf1f8);--ccw-editor-muted:var(--t-font-color-secondary,#b6c1d1);--ccw-editor-border:var(--t-border-color-strong,#53627a)}
.cc-conversation-workspace .ccw-compose .cc-compose-dialog{color:var(--ccw-editor-ink)!important}
.cc-conversation-workspace .ccw-compose .cc-compose-message,.cc-conversation-workspace .ccw-compose .cc-compose-number,.cc-conversation-workspace .ccw-search{background:var(--ccw-editor-bg)!important;color:var(--ccw-editor-ink)!important;-webkit-text-fill-color:var(--ccw-editor-ink)!important;caret-color:var(--ccw-editor-ink)!important;border-color:var(--ccw-editor-border)!important;opacity:1}
.cc-conversation-workspace .ccw-compose .cc-compose-message::placeholder,.cc-conversation-workspace .ccw-compose .cc-compose-number::placeholder,.cc-conversation-workspace .ccw-search::placeholder{color:var(--ccw-editor-muted)!important;-webkit-text-fill-color:var(--ccw-editor-muted)!important;opacity:1}
.cc-conversation-workspace .ccw-compose label,.cc-conversation-workspace .ccw-compose .cc-compose-from,.cc-conversation-workspace .ccw-compose .cc-compose-count{color:var(--ccw-editor-muted)!important}
.cc-conversation-workspace .ccw-compose .cc-compose-message:focus-visible,.cc-conversation-workspace .ccw-compose .cc-compose-number:focus-visible{outline:2px solid var(--ccw-accent);outline-offset:3px}
html.dark .ccw-mail-head strong,html.dark .ccw-mail-to{color:#cbd7e8}
