/* The CRM shell and Extended Profile provide the shared Pragtical design tokens. */
.cv-workspace { overflow: hidden; }
.cv-workspace [hidden], .cv-overlays [hidden] { display: none !important; }
.cv-screen { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 35px 35px 28px; font-size: 11px; }
.cv-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 19px; }
.cv-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; min-width: 0; }
.cv-page-title h1 { margin: 0; font-size: 16px; font-weight: 500; }
.cv-selection { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cv-selection .cv-conversation-picker { position: relative; flex: 1; width: max-content; max-width: 100%; min-width: 0; margin: 0; }
.cv-selection .cv-conversation-picker .import-data-select__toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 25px; padding: 4px 10px; border: 0; border-left: 9px solid #000; border-radius: 5px; background: var(--blue-strong); color: #111; text-transform: uppercase; font-size: 10px; }
.cv-conversation-picker [data-import-select-summary] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-selection .cv-conversation-picker .contact-create-multiselect__caret { position: static; flex: 0 0 9px; width: 9px; height: 9px; margin: 0; transform: none; }
.cv-selection .cv-conversation-picker.is-open .contact-create-multiselect__caret { transform: rotate(180deg); }
.cv-selection .cv-conversation-picker .import-data-select__menu { top: calc(100% + 5px); left: 0; right: auto; z-index: 60; width: max-content; min-width: 100%; max-width: min(380px, calc(100vw - 32px)); max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; box-shadow: 0 4px 12px #0002; }
.cv-selection .cv-conversation-picker [role="option"] { min-height: 28px; padding: 6px 9px; color: #111; font-size: 10px; text-transform: uppercase; }
.cv-selection .cv-conversation-picker [role="option"][aria-selected="true"] { background: var(--blue-strong); }
.cv-find { min-height: 23px; border: 1px solid #929b9f; border-radius: 6px; background: var(--blue-strong); font-size: 10px; }
.cv-new-group { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 23px; padding: 3px 7px; border: 1px solid #929b9f; border-radius: 6px; background: #fff; font-size: 9px; white-space: nowrap; }
.cv-new-group .icon { width: 13px; height: 13px; }
.cv-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 28px; padding: 6px 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; font-size: 10px; }
.cv-section-heading .cv-count { min-width: 98px; max-width: calc(100% - 20px); margin-left: 8px; white-space: nowrap; }
.cv-search { display: flex; align-items: center; gap: 5px; min-width: 0; width: 100%; max-width: 194px; min-height: 24px; padding: 3px 6px; border: 1px solid #969996; border-radius: 5px; background: #fff; }
.cv-search .icon { width: 11px; height: 11px; }
.cv-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 10px; }
.cv-search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.cv-filters { display: grid; justify-items: start; gap: 5px; }
.cv-filter-control { display: inline-flex; min-width: 0; max-width: 100%; }
.cv-filter { max-width: 100%; }
.cv-filter .filter-chip__toggle { min-width: 0; }
.cv-filter [data-filter-chip-value] { flex-shrink: 1; max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
.cv-filter-menu { width: 220px; max-width: calc(100vw - 16px); }
.cv-filter-menu .quick-filter-menu__options { max-height: min(220px, 40dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cv-filter-menu .quick-filter-menu__options > [role="option"] { overflow-wrap: anywhere; }
.cv-person-list { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cv-person-list--team { max-height: 112px; }
.cv-person { border-top: 1px solid var(--line-soft); }
.cv-person-toggle, .cv-thread-row { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 29px; padding: 5px 8px; border: 0; background: #fafafa; color: var(--ink); text-align: left; font-size: 10px; }
.cv-person-toggle > span:first-of-type, .cv-thread-row > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cv-person-toggle:hover, .cv-thread-row:hover { background: #f2f4e9; }
.cv-person.is-selected > .cv-person-toggle, .cv-thread-row.is-selected { background: #e8e8e8; }
.cv-thread-row.is-unread { font-weight: 600; }
.cv-thread-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.cv-person-actions { display: flex; gap: 5px; align-items: center; padding: 8px; }
.cv-person-actions small { color: var(--muted); }
.cv-avatar { flex: 0 0 17px; width: 17px; height: 17px; object-fit: contain; }
.cv-avatar--group { padding: 1px; border-radius: 50%; background: var(--blue-strong); }
.cv-badge { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 1px 6px; border-radius: 6px; font-size: 8px; font-weight: 500; }
.cv-badge--staff { background: var(--blue-strong); }
.cv-badge--client { background: var(--lime); }
.cv-badge--group { background: var(--blue-strong); }
.cv-badge--blocked { color: #7c1f1f; background: #ffe1dd; }
.cv-badge--logged { border: 0; background: rgb(255 173 115 / 72%); color: var(--ink); box-shadow: none; font-size: inherit; }
.cv-unread-dot { width: 5px; height: 5px; border-radius: 50%; background: #477fa9; }
.cv-empty { padding: 10px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cv-scope-note { margin: 0; color: var(--muted); font-size: 9px; }
.cv-thread-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line-soft); background: #fcfcfc; }
.cv-thread-header { display: flex; flex-wrap: wrap; align-items: center; flex-shrink: 0; gap: 10px; min-height: 44px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.cv-thread-header h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.cv-thread-tools { display: flex; align-items: center; gap: 4px; }
.cv-thread-header { position: relative; z-index: 3; }
.cv-thread-tools .cv-channel-select { position: relative; display: block; flex: 0 0 100px; width: 100px; min-width: 0; max-width: 100%; margin: 0; }
.cv-channel-select .import-data-select__toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 25px; min-height: 25px; padding: 2px 7px; border: 1px solid #999; border-radius: 5px; background: #eee; color: var(--ink); font: inherit; font-size: 10px; }
.cv-channel-select .contact-create-multiselect__caret { position: static; flex: 0 0 8px; width: 8px; height: 6px; margin: 0; transform: none; }
.cv-channel-select.is-open .contact-create-multiselect__caret { transform: rotate(180deg); }
.cv-channel-select .import-data-select__menu { top: calc(100% + 4px); right: 0; left: auto; z-index: 20; width: 130px; min-width: 100%; max-width: calc(100vw - 32px); }
.cv-thread-tools .cp-icon-button { width: 23px; }
.cv-channel-label { display: flex; align-items: center; justify-content: flex-start; gap: 7px; flex-wrap: wrap; flex-shrink: 0; padding: 5px 10px; color: var(--muted); font-size: 9px; }
.cv-channel-label small { color: var(--muted); font-size: 9px; }
.cv-history { flex: 1 1 0; min-height: 0; margin: 0 20px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid #d0d3c7; background: #fff; }
.cv-message { display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
.cv-message--outgoing { background: var(--pale-lime); }
.cv-message > .cv-avatar { flex-basis: 38px; width: 38px; height: 38px; }
.cv-message-content { flex: 1; min-width: 0; }
.cv-message header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; }
.cv-message strong { font-size: 11px; font-weight: 500; }
.cv-message time { font-size: 8px; }
.cv-message h3 { margin: 0 0 5px; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.cv-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.5; }
.cv-message-status { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.cv-history-empty, .cv-no-selection { display: grid; align-content: center; justify-items: center; min-height: 100%; padding: 25px; color: var(--muted); text-align: center; }
.cv-history-empty > .icon { width: 33px; height: 33px; opacity: .45; }
.cv-history-empty h2, .cv-no-selection h2 { margin: 12px 0 2px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cv-history-empty p, .cv-no-selection p { max-width: 280px; font-size: 10px; line-height: 1.6; }
.cv-composer { position: relative; flex: 0 1 auto; min-height: 0; margin: 0 20px 20px; padding: 7px; border: 1px solid var(--line-soft); border-top: 0; background: #fff; }
.cv-subject { display: flex; gap: 7px; align-items: center; margin-bottom: 4px; font-size: 10px; }
.cv-subject input { width: 100%; min-width: 0; padding: 5px 7px; border: 1px solid #999; border-radius: 5px; background: #fff; font-size: 11px; }
.cv-composer-row { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 33px; padding: 3px 5px; border: .75px solid #111; border-radius: 9px; background: #fff; }
.cv-composer textarea { display: block; flex: 1; width: 0; min-width: 0; height: 22px; min-height: 22px; max-height: 112px; resize: none; overflow-y: auto; padding: 3px 0; border: 0; border-radius: 0; background: transparent; font: inherit; line-height: 16px; scrollbar-width: thin; }
.cv-composer textarea::placeholder { color: #111; opacity: 1; }
.cv-composer textarea:focus-visible { outline: 0; }
.cv-composer-row:focus-within { outline: 1px solid var(--focus); outline-offset: 1px; }
.cv-composer-add { display: grid; place-items: center; align-self: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border: .75px solid #999; border-radius: 3px; background: #fff; color: #111; }
.cv-composer-add > span { position: relative; display: block; width: 12px; height: 12px; overflow: hidden; color: transparent; }
.cv-composer-add > span::before, .cv-composer-add > span::after { position: absolute; top: 50%; left: 50%; border-radius: 1px; background: #111; content: ""; transform: translate(-50%, -50%); }
.cv-composer-add > span::before { width: 7px; height: 1.5px; }
.cv-composer-add > span::after { width: 1.5px; height: 7px; }
.cv-composer-tools { display: flex; align-items: center; align-self: flex-end; flex-shrink: 0; gap: 4px; }
.cv-composer-tool { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; padding: 2px; border: .75px solid #111; border-radius: 9px; background: #fff; color: #111; font-size: 11px; }
.cv-composer-tool:hover:not(:disabled), .cv-composer-menu button:hover:not(:disabled) { background: var(--pale-lime); }
.cv-composer-more { font-size: 11px; letter-spacing: 1px; }
.cv-emoji-face { position: relative; display: block; width: 17px; height: 17px; border: 1px solid currentcolor; border-radius: 50%; }
.cv-emoji-face::before { position: absolute; top: 4px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: currentcolor; box-shadow: 5px 0 0 currentcolor; content: ""; }
.cv-emoji-face::after { position: absolute; left: 4px; bottom: 3px; width: 7px; height: 4px; border-bottom: 1px solid currentcolor; border-radius: 0 0 6px 6px; content: ""; }
.cv-composer-menu { position: absolute; bottom: calc(100% + 5px); z-index: 15; min-width: 160px; max-width: calc(100% - 10px); padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 3px 10px #0001; }
.cv-composer-menu--add { left: 5px; }
.cv-composer-menu--more { right: 5px; }
.cv-composer-menu--emoji { display: grid; grid-template-columns: repeat(4, 30px); justify-content: center; gap: 3px; right: 35px; min-width: 144px; }
.cv-composer-menu button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 0; border-radius: 3px; background: #fff; color: #111; text-align: left; font-size: 11px; }
.cv-composer-menu button .icon { width: 13px; height: 13px; }
.cv-composer-menu--emoji button { justify-content: center; padding: 3px; font-size: 18px; }
.cv-composer-menu p { margin: 5px 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.cv-composer button:disabled { opacity: .45; cursor: not-allowed; }
.cv-composer .cv-composer-gif:disabled { opacity: 1; }
.cv-composer-warning { margin: 5px 2px 0; color: var(--muted); font-size: 10px; }
.cv-attachments { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin-top: 7px; }
.cv-attachment { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 7px; border: 1px solid var(--line-soft); border-radius: 5px; background: #fff; }
.cv-attachment-icon { width: 16px; height: 18px; }
.cv-attachment-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cv-attachment-info > button { overflow-wrap: anywhere; font-size: 10px; }
.cv-attachment-info > small { color: var(--muted); font-size: 8px; }
.cv-attachment-download { flex: 0 0 auto; padding: 3px; }
.cv-attachment-download .icon { width: 13px; height: 14px; }
.cv-attachment-remove { flex: 0 0 auto; padding: 2px; border: 0; background: transparent; font-size: 13px; line-height: 1; }
.cv-file-preview { display: grid; gap: 10px; min-width: 0; }
.cv-file-preview img { display: block; max-width: 100%; max-height: 55dvh; margin: 0 auto; object-fit: contain; }
.cv-file-preview pre { max-height: 55dvh; margin: 0; padding: 10px; overflow: auto; background: #fafafa; border: 1px solid var(--line-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 11px; }
.cv-file-preview p { margin: 0; line-height: 1.5; }
.cv-composer-error { margin: 4px 2px 0; color: #a03131; font-size: 10px; }
.cv-composer-error:empty { display: none; }
.cv-status { min-height: 0; margin: 0; color: #386343; font-size: 11px; }
.cv-status:not(:empty) { margin-bottom: 10px; }
.cv-status.is-error { color: #a03131; }
.cv-return { margin: -8px 0 12px; }
.cv-profile-panel .cp-card-header { flex-wrap: wrap; }
.cv-profile-panel .cp-identity h2 { overflow-wrap: anywhere; }
.cv-profile-panel .cp-field { max-width: 220px; }
.cv-profile-panel .cp-card-title { font-size: 10px; }
.cv-profile-panel .cp-identity:not(.cp-identity--compact) .cp-avatar { width: 68px; height: 68px; margin-left: 9px; }
.cv-profile-panel .cp-compact-baseline > summary { list-style: none; }
.cv-profile-panel .cp-compact-baseline > summary::-webkit-details-marker { display: none; }
.cv-profile-panel .cp-compact-baseline:not([open]) > summary > span { transform: rotate(180deg); }
.cv-profile-panel .cp-profile-email > a { white-space: normal; overflow-wrap: anywhere; }
.cv-profile-close, .cv-mobile-back { display: none; }
.cv-new-messages { position: absolute; right: 33px; bottom: 80px; z-index: 2; padding: 5px 9px; border: 1px solid #a8b780; border-radius: 12px; background: var(--lime); font-size: 10px; }
.cv-find-results { display: grid; gap: 3px; max-height: 48vh; overflow-y: auto; margin-top: 12px; }
.cv-group-launch { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--blue-strong); text-align: left; }
.cv-group-launch .icon { width: 24px; height: 24px; }
.cv-group-launch span { display: grid; gap: 2px; }
.cv-group-launch small { color: var(--muted); font-size: 9px; }
.cv-group-picker { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.cv-group-picker legend { font-size: 11px; font-weight: 600; }
.cv-group-picker .cp-option-list { max-height: 42dvh; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 5px; }
.cv-group-picker .cp-option-list label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid var(--line-soft); }
.cv-group-picker .cp-option-list label:last-child { border-bottom: 0; }
.cv-group-picker .cp-option-list label > span { display: grid; gap: 2px; min-width: 0; }
.cv-group-picker .cp-option-list small { color: var(--muted); font-size: 9px; }
.cv-group-picker .cp-option-list .is-disabled { color: var(--muted); background: #f5f5f5; }
.cv-group-profile h2 { margin: 0 0 3px; font-size: 15px; overflow-wrap: anywhere; }
.cv-group-participants { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--line-soft); }
.cv-group-participants li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; border-bottom: 1px solid var(--line-soft); }
.cv-group-participants li:last-child { border-bottom: 0; }
.cv-group-participants li > span:not(.cv-badge) { display: grid; flex: 1; min-width: 0; gap: 2px; }
.cv-group-participants li strong, .cv-group-participants li small { overflow-wrap: anywhere; }
.cv-group-participants li small { color: var(--muted); font-size: 8px; }
.cv-management { display: grid; gap: 12px; }
.cv-management p { margin: 0; font-size: 11px; line-height: 1.6; }
.cv-settings-dialog .contact-create-drawer { overflow: hidden; }
.cv-settings-dialog .contact-list-create-drawer__body { overflow-y: auto; overscroll-behavior: contain; }
.cv-settings-dialog .contact-create-form__footer { justify-content: flex-start; }
.cv-settings-dialog .contact-list-create-drawer__directory { margin-top: 0; }
.cv-communication-settings { min-width: 0; font-size: 11px; }
.cv-communication-settings .communication-settings-heading { justify-content: flex-end; margin: 12px 0; }
.cv-communication-settings h3 { margin: 0 0 12px; }
.cv-communication-settings p { line-height: 1.5; }
.cv-communication-settings .cp-editor-field select { max-width: 100%; font: inherit; }
.cv-communication-settings .cp-record-details dd { overflow-wrap: anywhere; }
.cv-communication-settings .communication-setup { margin-top: 18px; }
.cv-conversation-menu { position: fixed; inset: auto; margin: 0; max-width: calc(100vw - 16px); }
.cv-email-templates { display: grid; gap: 8px; min-width: 0; padding-block: 12px; border-block: 1px solid var(--line-soft); }
.cv-email-templates .import-data-select { margin: 0; max-width: none; }
.cv-email-template-editor { gap: 10px; padding: 10px; }
.cv-email-template-editor .cp-editor-field { margin: 0; }
.cv-email-template-editor [data-communication-rich] { min-width: 0; }
.cv-email-template-editor .cp-email-body-field { border: 1px solid var(--line-soft); padding: 6px; }
.cv-email-template-editor .service-rich-text__document { min-height: 130px; }
.cv-email-template-editor .email-composer-controls { padding-inline: 0; }
.cv-email-templates [role="status"]:empty, .cv-email-templates [role="alert"]:empty { display: none; }
@media (min-width: 1180px) and (max-width: 1390px) {
.cv-screen { padding: 30px 24px 24px; }
.cv-history { margin-inline: 12px; }
.cv-composer { margin-inline: 12px; }
}

@media (max-width: 700px) {
.cv-screen { padding: 23px 14px 14px; }
.cv-page-header { gap: 12px; margin-bottom: 14px; }
.cv-page-title { gap: 8px; }
.cv-page-title h1 { font-size: 14px; }
.cv-mobile-back { display: inline-flex; }
.cv-thread-header h2 { flex: 1; font-size: 11px; }
.cv-history { margin-inline: 9px; }
.cv-composer { margin: 0 9px 9px; }
.cv-channel-label { gap: 2px 7px; }
.cv-message { gap: 7px; padding: 12px 8px; }
.cv-message > .cv-avatar { flex-basis: 29px; width: 29px; height: 29px; }
.cv-person-list { max-height: 230px; }
}
.cv-directory .cv-saved-view { padding-left: 27px; }
.cv-inbox { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line-soft); background: #fcfcfc; }
.cv-results-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.cv-results-header h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; }
.cv-results-header .cv-count { min-width: 0; margin: 0 0 0 9px; padding: 3px 8px; font-size: 8px; }
.cv-results-tabs { display: flex; align-items: stretch; flex-shrink: 0; gap: 5px; padding: 7px 6px 0; border-bottom: 1px solid var(--line-soft); background: #fff; }
.cv-results-tabs .view-button { flex: 1 1 0; align-self: stretch; min-width: 0; min-height: 31px; height: auto; padding: 6px 3px; font-size: 9px; line-height: 1.3; white-space: normal; gap: 3px; border-radius: 3px 3px 0 0; transform: none; }
.cv-results-tabs .view-button .icon { display: none; }
.cv-results-controls { display: grid; gap: 8px; padding: 10px; }
.cv-results-controls .cv-search { max-width: none; min-height: 29px; }
.cv-results-controls .cv-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-results-controls .filter-chip { font-size: 9px; }
.cv-results-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.cv-results-sort .import-data-select { flex: 1 1 130px; min-width: 100px; max-width: none; margin: 0; }
.cv-results-sort .import-data-select__toggle { min-height: 25px; font-size: 9px; }
.cv-results-sort .import-data-select__menu { max-height: 150px; overflow: auto; z-index: 20; }
.cv-results-sort .cp-link { flex: 0 0 auto; white-space: nowrap; font-size: 9px; }
.cv-list-note { margin: 0 10px 8px; padding: 5px 7px; background: var(--pale-lime); font-size: 9px; line-height: 1.5; }
.cv-outside { background: var(--blue); }
.cv-selection-toolbar { margin: 0; padding: 7px 9px; font-size: 9px; }
.cv-selection-toolbar output { width: 100%; }
.cv-selection-toolbar button { font-size: 9px; }
.cv-select-all { display: flex; gap: 7px; align-items: center; margin: 0; padding: 7px 10px; border-block: 1px solid var(--line-soft); font-size: 10px; }
.cv-thread-panel.is-email .cv-thread-header { gap:6px; padding:6px 10px; }
.cv-thread-panel.is-email .cv-thread-header .cv-search { min-height:26px; }
.cv-thread-panel.is-email .cv-channel-label { padding:5px 10px; font-size:10px; }
/* Email reading has its own directory and scroll area, separate from composing. */
.cv-email-channel { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; margin:0 10px; border:1px solid #d0d3c7; background:#fff; }
.cv-email-history-tools { display:flex; flex:0 0 auto; align-items:center; flex-wrap:wrap; gap:7px; padding:5px 7px; border-bottom:1px solid var(--line-soft); font-size:10px; }
.cv-email-history-tools .cv-search { flex:1; max-width:none; min-width:90px; }
.cv-email-history-tools small { font-size:9px; color:var(--muted); }
.cv-email-history-tools > .cp-icon-button { width:24px; height:24px; }
.cv-email-history-error { flex:0 0 auto; margin:0; padding:4px 7px; color:#a03131; font-size:10px; }
.cv-email-history-error:empty { display:none; }
.cv-email-browser { position:relative; display:flex; flex:1; min-width:0; min-height:0; overflow:hidden; }
.cv-thread-panel.is-email .cv-email-browser .cv-history { flex:1; min-width:0; min-height:0; max-height:none; margin:0; border:0; }
.cv-email-directory { flex:0 0 170px; width:170px; max-width:70%; min-height:0; overflow:auto; border-right:1px solid var(--line-soft); background:#fafafa; }
.cv-email-directory[hidden] { display:none; }
.cv-email-directory > header { padding:7px; border-bottom:1px solid var(--line-soft); }
.cv-email-directory h3 { margin:0 0 6px; font-size:10px; font-weight:500; }
.cv-email-directory nav button { display:flex; align-items:center; justify-content:space-between; gap:5px; width:100%; min-height:27px; border:0; border-radius:0; padding:5px 7px; background:transparent; color:var(--ink); font:10px/1.4 "DM Sans",sans-serif; text-align:left; }
.cv-email-directory nav button > span:first-child { min-width:0; overflow-wrap:anywhere; }
.cv-email-directory nav button.cv-email-directory-string { padding-left:17px; font-size:9px; }
.cv-email-directory nav button.cv-email-directory-string--root { padding-left:7px; font-size:10px; }
.cv-email-directory nav button[aria-current=true] { background:var(--blue,#d1e9ff); }
.cv-email-directory nav button:hover { background:var(--pale-lime); }
.cv-email-directory nav section { border-top:1px solid var(--line-soft); }
.cv-email-string-heading { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:6px 9px; border-bottom:1px solid var(--line-soft); background:#f5f5f5; font-size:10px; }
.cv-email-string-heading strong { flex:1; min-width:0; overflow-wrap:anywhere; font-weight:500; }
.cv-email-folder-group > summary { list-style:none; cursor:pointer; }
.cv-email-folder-group > summary::-webkit-details-marker { display:none; }
.cv-email-folder-group > summary:focus-visible { outline:1px solid #111; outline-offset:-2px; }
.cv-email-group-chevron { flex:0 0 9px; width:9px; height:7px; }
.cv-email-folder-group:not([open]) > summary .cv-email-group-chevron { transform:rotate(-90deg); }
.cv-email-string-heading small { flex-shrink:0; }
.cv-email-summary { display:flex; align-items:flex-start; gap:5px; padding:7px 9px; min-height:40px; border-bottom:1px solid var(--line-soft); background:#fff; }
.cv-email-summary--outgoing { background:var(--pale-lime); }
.cv-email-summary > [hidden] { display:none; }
.cv-email-subject { flex:1; min-width:0; align-self:stretch; padding:0; border:0; background:transparent; color:var(--ink); font:500 11px/1.5 "DM Sans",sans-serif; text-align:left; overflow-wrap:anywhere; }
.cv-email-summary .cp-icon-button { width:24px; height:24px; }
.cv-email-channel button:focus-visible { outline:1px solid #111; outline-offset:-2px; }
.cv-email-channel-dialog { inset:0; width:min(1100px,calc(100vw - 28px)); height:min(850px,calc(100dvh - 28px)); max-width:none; max-height:none; margin:auto; padding:0; border:1px solid #aaa; border-radius:5px; background:#fff; color:var(--ink); }
.cv-email-channel-dialog::backdrop, .cv-email-review::backdrop, .cv-email-organizer::backdrop { background:#0004; }
.cv-email-channel-dialog .cv-email-channel { height:100%; min-height:0; margin:0; border:0; }
.cv-email-channel-dialog .cv-history { flex:1; min-width:0; min-height:0; margin:0; border:0; }
.cv-email-review, .cv-email-organizer { inset:0; width:min(760px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); margin:auto; padding:0; border:1px solid #aaa; border-radius:5px; background:#fff; color:var(--ink); font:11px/1.5 "DM Sans",sans-serif; }
.cv-email-review[open], .cv-email-organizer[open], .cv-email-organizer form { display:flex; flex-direction:column; min-height:0; }
.cv-email-review > header, .cv-email-organizer form > header { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-bottom:1px solid var(--line-soft); background:#fafafa; }
.cv-email-review h2, .cv-email-organizer h2 { margin:0; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.cv-email-review-body, .cv-email-organizer-fields { min-height:0; overflow:auto; }
.cv-email-review-body { max-height:75dvh; }
.cv-email-review footer, .cv-email-organizer footer { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:6px; padding:8px 10px; border-top:1px solid var(--line-soft); }
.cv-email-organizer { width:min(440px,calc(100vw - 24px)); }
.cv-email-organizer-fields { padding:8px 12px; max-height:65dvh; }
.cv-email-organizer-fields .import-data-select { width:100%; margin:8px 0; }
.cv-email-organizer-fields .import-data-select__toggle { height:28px; min-height:28px; font:inherit; }
@media(max-width:1100px) {
.cv-email-directory { position:absolute; inset:0 auto 0 0; z-index:5; max-width:80%; width:210px; box-shadow:3px 0 8px #0002; }
}
@media(max-width:600px) {
.cv-email-history-tools > small { display:none; }
}
.cv-results-empty { padding: 20px 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cv-results-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 12px; font-weight: 500; }
.cv-results-scrollbar { position: absolute; right: 0; top: 3px; bottom: 3px; width: 8px; height: auto; }
.cv-inbox :focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cv-find-person { padding: 9px; border: 1px solid var(--line-soft); }
.cv-find-person > strong { margin-right: 6px; }
.cv-saved-views { display: grid; gap: 10px; margin: 12px 0; }
.cv-saved-views { padding: 0; list-style: none; }
.cv-saved-views > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid #ccc; }
.cv-view-actions { display: flex; align-items: center; gap: 8px; }
.cv-view-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #ccc; padding: 12px; }
.cv-view-fields > .cp-editor-field { grid-column: 1 / -1; }
@media (max-width: 700px) {
.cv-view-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 701px) and (max-width: 900px) {
.cv-screen { padding-inline: 14px; }
}
@media (max-width: 700px) {
.cv-results-tabs .view-button { font-size: 8px; padding-inline: 1px; }
.cv-results-header { padding-inline: 8px; }
.cv-results-header h2 { font-size: 12px; }
}
.cv-context-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff; border: 1px solid var(--line); }
.cv-context-pane[hidden] { display: none; }
.cv-context-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #f8f8f8; }
.cv-context-title h2 { margin: 0; font-size: 12px; font-weight: 500; }
[data-cv-profile-content] { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px; scrollbar-width: thin; }
.cv-context-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 3px 0; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.cv-context-rail .cp-icon-button { flex: 0 0 34px; width: 34px; height: 34px; background: #f8f8f8; }
.cv-context-rail .cp-icon-button[aria-pressed="true"] { background: var(--blue, #cde7fa); border-color: #78a4bb; }
.cv-context-rail .cp-icon-button:focus-visible { outline: 2px solid #285e96; outline-offset: 2px; }
.cv-context-person { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cv-context-person > strong { font-size: 16px; }
.cv-context-person .cp-editor-field { margin: 0; }
.cv-context-actions, .cv-composer-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.cv-composer-actions { margin-top: 8px; }
.cv-composer-actions button { border: 1px solid #aaa; border-radius: 5px; padding: 6px 10px; background: #f9f9f9; }
.cv-composer-actions .cp-save-button { background: #d4eafb; }
.cv-composer-actions small { font-size: 11px; color: #626866; }
.cv-email-summary { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; margin: 5px 0 9px; }
.cv-context-pane .cp-activity { margin: 10px 0; }
.cv-context-pane .cp-activity > summary { flex-wrap: wrap; }
.cv-context-pane .cp-properties > div { grid-template-columns: minmax(70px, .7fr) minmax(0, 1fr); }
.cv-context-pane .cp-card-body { min-width: 0; }
.cv-context-record-filters { display: grid; gap: 7px; margin-block: 10px; }
.cv-context-record-filters .cp-log-search { width: 100%; min-width: 0; }
.cv-context-record-filters .import-data-select { margin: 0; }
.cv-context-task-reference { padding-block: 9px; border-bottom: 1px solid var(--line-soft); }
.cv-context-task-reference .task-manager-name { text-decoration: none; }
.cv-context-task-reference .task-manager-name__title-line strong { white-space: normal; overflow-wrap: anywhere; }
.cv-context-pane .cp-activity--compact .cp-task-check { font-size: 11px; }
.cv-context-pane .cp-web-quick-filters { flex-wrap: wrap; }
.cv-context-pane .cp-web-search { min-width: 0; }
.cv-context-pane .cp-web-search input { min-width: 0; width: 100%; }
.cv-group-participants li { flex-wrap: wrap; }
@media (max-width: 700px) {
.cv-composer-tools { gap: 2px; }
.cv-composer-actions button { padding: 6px; }
}
/* One workspace layout contract. Width is measured after the directory takes
   its space, so opening either panel cannot squeeze the reader off screen. */
.cv-screen { container: cv-workspace / inline-size; }
.cv-directory-layout { flex: 1; gap: 22px; min-height: 0; padding: 0; }
.cv-directory-layout > .cv-directory-dock { position: relative; flex: 0 0 210px; width: 210px; height: 100%; min-height: 0; }
.cv-directory-layout > .cv-directory-dock[data-expanded="false"] { flex-basis: 32px; width: 32px; }
.cv-directory-layout .left-directory-panel { height: 100%; max-height: 100%; background: #fcfcfc; }
.cv-directory-layout .left-directory-handle button[aria-expanded="false"],
.cv-directory-layout .left-directory-handle button[aria-expanded="false"] .left-directory-handle__label { height: 158px; }
.cv-columns { position: relative; display: grid; flex: 1; grid-template-columns: 280px minmax(0, 1fr) 42px; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 16px; min-width: 0; min-height: 0; }
.cv-columns[data-cv-layout="wide"].has-context-open { grid-template-columns: 280px minmax(0, 1fr) 340px; }
.cv-discovery { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow: hidden; }
.cv-discovery-start { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cv-discovery-start .cv-find { flex: 1; min-width: 0; min-height: 29px; }
.cv-discovery-start .cv-new-group { min-height: 29px; }
.cv-inbox > :not(.cv-result-scroll-shell) { flex-shrink: 0; }
.cv-result-scroll-shell { position: relative; display: flex; flex: 1; min-height: 80px; min-width: 0; }
.cv-result-scroll.cv-thread-list { flex: 1; width: 100%; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-right: 9px; scrollbar-width: none; }
.cv-result-scroll::-webkit-scrollbar { display: none; }
.cv-results-scrollbar { position: absolute; right: 0; top: 3px; bottom: 3px; width: 8px; height: auto; }
.cv-thread-identity { flex: 1; min-width: 0; }
.cv-thread-header .cv-search { order: 3; flex: 1 0 100%; max-width: none; }
.cv-thread-panel.is-email .cv-email-channel { min-height: 80px; }
.cv-thread-panel:not(.is-email) { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cv-thread-panel > .cv-composer { flex: 0 0 auto; }
.cv-thread-panel .communication-composer-heading { flex: 0 0 auto; min-width: 0; margin: 6px 20px; padding: 2px 0; }
.cv-thread-panel [data-cv-composer-expand] { flex: 0 0 auto; max-width: 100%; min-height: 27px; margin-left: auto; padding: 4px 8px; line-height: 1.4; white-space: normal; }
@media (min-width:1180px) and (max-width:1390px) { .cv-thread-panel .communication-composer-heading { margin-inline:12px; } }
@media (max-width:700px) { .cv-thread-panel .communication-composer-heading { margin-inline:9px; } }
.cv-profile-panel.cp-workspace { display: grid; position: static; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; width: auto; height: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: transparent; border: 0; box-shadow: none; }
.cv-profile-panel.cp-workspace:not(.is-open) { grid-template-columns: 42px; }
.cv-columns[data-cv-layout="split"].has-context-open { grid-template-columns: minmax(0, 1fr) 320px; }
.cv-columns[data-cv-layout="split"].has-context-open[data-cv-pane="thread"] .cv-discovery,
.cv-columns[data-cv-layout="split"].has-context-open[data-cv-pane="list"] .cv-thread-panel { display: none; }
.cv-columns[data-cv-layout="split"].has-context-open .cv-mobile-back { display: inline-flex; }
.cv-columns[data-cv-layout="compact"] { grid-template-columns: minmax(0, 1fr) 38px; gap: 6px; }
.cv-columns[data-cv-layout="compact"] .cv-discovery,
.cv-columns[data-cv-layout="compact"] .cv-thread-panel { grid-column: 1; grid-row: 1; width: 100%; }
.cv-columns[data-cv-layout="compact"][data-cv-pane="list"] .cv-thread-panel,
.cv-columns[data-cv-layout="compact"][data-cv-pane="thread"] .cv-discovery { display: none; }
.cv-columns[data-cv-layout="compact"] .cv-mobile-back { display: inline-flex; }
.cv-columns[data-cv-layout="compact"] .cv-profile-panel.cp-workspace { display: contents; }
.cv-columns[data-cv-layout="compact"] [data-cv-context-rail] { grid-column: 2; grid-row: 1 / -1; min-height: 0; overflow: hidden; }
.cv-columns[data-cv-layout="compact"] .cv-context-pane { grid-column: 1; grid-row: 2; }
.cv-columns[data-cv-layout="compact"].has-context-open { grid-template-rows: minmax(170px, 1fr) minmax(120px, .65fr); }
.cv-columns[data-cv-layout="compact"].has-context-open .cv-thread-panel { overflow-y: auto; overscroll-behavior: contain; }
.cv-columns[data-cv-layout="compact"].has-context-open .cv-history { flex: 1 0 100px; min-height: 100px; }
.cv-columns[data-cv-layout="compact"].has-context-open .cv-email-channel { flex: 1; min-height: 100px; }
.cv-columns[data-cv-layout="compact"].has-context-open .cv-email-browser .cv-history { flex: 1; min-height: 0; }
.cv-columns[data-cv-layout="compact"] .cv-context-rail .cp-icon-button { width: 30px; height: 30px; }
.cv-columns[data-cv-layout="compact"] .cv-context-rail { gap: 6px; }
.cv-columns[data-cv-layout="compact"] .cv-thread-header { gap: 6px; padding-inline: 8px; }
.cv-columns[data-cv-layout="compact"] .cv-thread-tools { flex: 1 0 100%; justify-content: flex-end; }
.cv-columns[data-cv-layout="compact"] .cv-conversation-picker { max-width: min(330px, 60vw); }
/* Short viewports allow the whole inbox chrome to scroll, with a bounded
   results region inside it. The reader and context scroll independently. */
@media (max-height: 750px) {
  .cv-discovery { overflow-y: auto; }
  .cv-inbox { flex: 1 0 auto; }
  .cv-result-scroll-shell { flex: 1 0 160px; max-height: 240px; }
}
@container cv-workspace (max-width: 720px) {
  .cv-directory-layout { gap: 8px; padding-left: 48px; }
  .cv-directory-layout > .cv-directory-dock[data-expanded="false"] { position: absolute; left: 0; top: 0; }
  .cv-directory-layout:has(> .cv-directory-dock[data-expanded="true"]) { flex-direction: column; padding-left: 0; }
  .cv-directory-layout > .cv-directory-dock[data-expanded="true"] { flex: 0 0 150px; width: 100%; height: 150px; padding-right: 24px; }
  .cv-directory-layout > .cv-directory-dock[data-expanded="true"] .left-directory-handle { left: calc(100% - 25px); top: 0; }
}
/* Compact records use the existing Contact row selection and tag states. */
.cv-result-row { min-width: 0; padding: 7px 7px 6px; border-bottom: 1px solid var(--line-soft); background: #fafafa; }
.cv-result-row.is-selected { background: #e8e8e8; box-shadow: inset 3px 0 #111; }
.cv-result-heading { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
.cv-row-select { display: flex; flex: 0 0 11px; padding-top: 6px; cursor: pointer; }
.cv-result-row .cv-thread-row { display: flex; align-items: flex-start; flex: 1; min-width: 0; gap: 7px; padding: 3px 0; border: 0; background: transparent; }
.cv-result-row .cv-avatar { flex: 0 0 22px; width: 22px; height: 22px; }
.cv-result-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.cv-result-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cv-result-name strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; }
.cv-result-row.is-unread .cv-result-name strong { font-weight: 700; }
.cv-result-name time { flex: 0 0 auto; color: var(--muted); font-size: 8px; font-weight: 400; }
.cv-result-row .cv-unread-dot { flex: 0 0 5px; }
.cv-result-subject, .cv-result-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.4; font-weight: 400; }
.cv-result-subject { font-weight: 500; }
.cv-result-preview { color: var(--muted); }
.cv-row-star { flex: 0 0 18px; padding: 0; border: 0; background: transparent; color: #5c6b29; font-size: 16px; line-height: 22px; }
.cv-result-meta { display: flex; align-items: center; gap: 5px; min-width: 0; padding-left: 16px; margin-top: 3px; }
.cv-channel-actions { display: flex; flex: 0 0 auto; gap: 3px; }
.cv-channel-actions .cp-icon-button { width: 19px; height: 19px; padding: 3px; }
.cv-channel-actions .cp-icon-button .icon { width: 12px; height: 12px; }
.cv-channel-actions .cp-icon-button[aria-pressed="true"] { background: var(--blue); }
.cv-result-meta .cv-conversation-status { flex: 0 0 auto; padding: 2px 5px; border: 1px solid #b9c9ae; border-radius: 5px; background: #e5f2d9; color: #263b1d; font-size: 8px; line-height: 1.3; }
.cv-result-meta .cv-conversation-status--inactive,
.cv-result-meta .cv-conversation-status--closed,
.cv-result-meta .cv-conversation-status--archived { border-color: #c6c6c6; background: #ededed; color: #454545; }
.cv-result-assignee, .cv-result-record-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }
.cv-result-assignee { flex: 1; }
.cv-result-record-state { flex: 0 1 auto; }

/* Email workspace reads and organizes; the shared contact form lives in a popup. */
.cv-email-actions { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px; border-bottom: 1px solid var(--line-soft); }
.cv-email-actions button, .cv-email-reader-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line-soft); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.cv-email-actions .cp-save-button { background: var(--blue); }
.cv-email-actions [data-email-assistant] { margin-left: auto; }
.cv-email-actions [data-email-assistant] .icon { filter: brightness(0); }
.cv-email-auto-rule { display: flex; align-items: center; gap: 7px; }
.cv-email-actions .icon { width: 13px; height: 13px; }
.cv-email-actions button:disabled, .cv-email-reader-actions button:disabled { opacity: .5; }
.cv-email-subject { display: grid; gap: 4px; }
.cv-email-subject > strong, .cv-email-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-email-subject > small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.cv-email-row-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 10px; }
.cv-email-row-heading strong { overflow-wrap: anywhere; }
.cv-email-row-heading time { color: var(--muted); font-size: 9px; font-weight: normal; }
.cv-email-preview { color: var(--muted); font-size: 10px; font-weight: normal; }
.cv-email-summary.is-selected { box-shadow: inset 3px 0 #111; background: var(--blue); }
.cv-email-inline-reader { min-width: 0; border-bottom: 1px solid var(--line-soft); background: #fff; }
.cv-email-reader-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.cv-email-popup { position: fixed; inset: auto 16px 16px auto; z-index: 60; margin: 0; width: min(640px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 32px)); max-height: none; max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 8px 28px #0003; }
.cv-email-popup .cp-drawer { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.cv-email-popup .email-composer { flex: 1; min-height: 0; margin: 0; }
.cv-email-popup .cp-inline-fields { flex: 1; min-height: 0; }
.cv-email-popup.email-native-expanded { inset: 12px; width: min(1040px, calc(100vw - 24px)); height: calc(100dvh - 24px); margin: auto; }
.cv-email-popup.email-native-expanded .cp-drawer { width: 100%; }
.cv-email-popup:has(.is-minimized), .cv-email-popup:has(.is-minimized) .cp-drawer { height: auto; }
.cv-email-popup [data-email-origin-warning]:empty { display: none; }
@media (max-width: 700px) { .cv-email-popup { inset: auto 6px 6px; width: calc(100vw - 12px); height: calc(100dvh - 12px); } }

.cv-email-directory-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:0 0 170px; min-width:0; }
.cv-email-directory-heading h3 { margin:0; font-size:10px; font-weight:500; }
.cv-email-sidebar-toggle.cp-icon-button { flex:0 0 29px; width:29px; height:29px; border-radius:50%; background:#fff; }
.cv-email-sidebar-toggle[aria-expanded="true"] svg { transform:scaleX(-1); }
@media (max-width:700px) { .cv-email-directory-heading { flex-basis:auto; } }

.cv-directory .business-calendars-directory__item.is-active .business-calendars-directory__count { color:var(--ink); background:#d5d5d5; }

/* Channel disclosures share Calendar directory headings; inbox rows keep their existing presentation. */
.cv-channel-section + .cv-channel-section { border-top:1px solid var(--line-soft); }
.cv-channel-section .business-calendars-directory__group h3 > button { display:flex; justify-content:space-between; width:100%; min-height:32px; margin:0; padding:7px 10px; border-radius:0; background:#f5f5f5; }
.cv-channel-section .cv-section-search { margin:8px; min-width:0; width:calc(100% - 16px); max-width:none; }
.cv-section-search input { min-width:0; }
.cv-section-empty { margin:0; padding:10px; color:var(--muted); font-size:10px; }
