/* Call Setup page only. Shared settings navigation and app shell remain untouched. */
.audio-message-sidebar {
  overflow: hidden;
}

.audio-message-sidebar__body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.audio-message-sidebar__form {
  min-height: 0;
  overflow: visible;
}
.call-setup-field textarea{resize: none!important;}

.call-setup-main{min-width:0;color:var(--text);font-size:14px}.call-setup-head{margin-bottom:10px;align-items:center}
.call-setup-tabs{margin-bottom:0;gap:0;overflow:visible;border-bottom:1px solid var(--border)}
.call-setup-tabs .set-tab{padding:14px 24px;margin-bottom:0px;border-bottom:0px;font-size:15px}
.call-setup-tabs .set-tab.active{color:var(--text);background:var(--surface);border-color:var(--border);
  border-bottom:1px solid var(--surface);margin-bottom:0px;font-weight:600}
.call-setup-intro{font-size:14px;line-height:1.55;color:var(--text-muted);padding:12px 0 10px;margin:0 0 16px;
  border-bottom:1px solid var(--border)}
.call-setup-main .link{color:var(--brand-ink,var(--brand));font-weight:600;text-decoration:none}
.call-setup-main .link:hover{text-decoration:underline}.call-setup-section{margin-bottom:20px
}
.call-setup-section-heading h2,.call-setup-integration h2{font-size:16px;font-weight:600;margin:0 0 5px}
.call-setup-section-heading p{font-size:13.5px;line-height:1.5;color:var(--text-muted);margin:0}
.call-setup-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:10px 0 12px}
.call-setup-actions>.btn-crm:first-child,.call-setup-actions>.call-setup-audio-anchor{margin-right:auto}
.call-setup-usage{font-size:13.5px;color:var(--text-muted);display:flex;align-items:center;gap:4px;margin-right:2px}
.call-setup-info{border:0;background:none;color:var(--text-muted);padding:0;cursor:help}
.call-setup-actions .btn-crm:disabled,.call-setup-nested-setting .btn-crm:disabled{opacity:.5;cursor:not-allowed}
.call-setup-empty{border:1px solid var(--border);border-radius:10px;background:var(--surface);display:flex;
  align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;min-height:176px}
.call-setup-empty-copy{max-width:650px}
.call-setup-empty-copy h3{font-size:16px;line-height:1.35;font-weight:600;margin:0 0 8px}
.call-setup-empty-copy p{font-size:13.5px;line-height:1.55;color:var(--text-muted);margin:0}
.call-setup-illustration{flex:none;display:grid;place-items:center}
.call-setup-illustration svg{display:block;width:145px;max-width:100%;height:auto}
.call-setup-empty--registered{min-height:180px;flex-direction:column;justify-content:center;gap:0;padding:14px}
.call-setup-illustration--search svg{width:130px}
.call-setup-empty--registered p{font-size:13.5px;margin:0;color:var(--text)}
.call-setup-meter-card{border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-top:10px;
  background:var(--surface)}
  .call-setup-meter-top{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13.5px;
    margin-bottom:8px}
.call-setup-meter-top strong{font-weight:600}
.call-setup-progress{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden}
.call-setup-progress span{display:block;height:100%;background:var(--brand);border-radius:inherit}
.call-setup-meter-card p{font-size:13.5px;color:var(--text-muted);margin:10px 0 0;line-height:1.45}
.call-setup-meter-card--compact{padding:14px 16px}
.call-setup-meter-card--compact p{margin-top:0}
.call-setup-integration{margin-top:2px}
.call-setup-integration-link{display:flex;align-items:center;gap:10px;margin-top:10px;text-decoration:none;color:var(--text)}.call-setup-integration-link>span:first-child{font-size:24px;color:var(--text-muted)}
.call-setup-integration-link strong,.call-setup-integration-link small{display:block}
.call-setup-integration-link strong{font-size:16px;color:var(--brand-ink,var(--brand))}
.call-setup-integration-link small{font-size:13.5px;color:var(--text-muted);margin-top:3px}.call-setup-config-section{margin:0 0 28px}.call-setup-config-section>h2{font-size:15px;font-weight:600;margin:0 0 12px}.call-setup-config-copy{font-size:13.5px;line-height:1.5;color:var(--text-muted);max-width:800px;margin:0 0 10px}.call-setup-setting-row{display:grid;grid-template-columns:18px minmax(0,1fr);gap:12px;padding:13px 0;border-top:1px solid var(--border)}.call-setup-setting-row:first-of-type{border-top:0}.call-setup-setting-row h3{font-size:15px;font-weight:600;margin:0 0 3px;line-height:1.4}.call-setup-setting-row p{font-size:13.5px;color:var(--text-muted);line-height:1.45;margin:0;max-width:790px}.call-setup-checkbox{display:block;padding-top:1px}.call-setup-checkbox input{width:15px;height:15px;margin:0;accent-color:var(--brand)}.call-setup-inline-link{font:inherit;font-size:13.5px;color:var(--brand-ink,var(--brand));border:0;background:none;padding:0 0 0 6px;cursor:pointer}.call-setup-options{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;padding:10px;background:var(--surface-2);border:1px solid var(--border);border-radius:6px}.call-setup-options label{display:flex;align-items:center;gap:6px}.call-setup-options input,.call-setup-nested-setting input{accent-color:var(--brand)}.call-setup-setting-row--plain{grid-template-columns:minmax(0,1fr);padding-left:30px}.call-setup-nested-setting{display:grid;gap:12px;margin-top:12px}.call-setup-nested-setting label{display:flex;align-items:flex-start;gap:8px;font-size:14px}.call-setup-nested-setting strong,.call-setup-nested-setting small{display:block}.call-setup-nested-setting small{font-size:13.5px;color:var(--text-muted);line-height:1.45;max-width:640px;margin:3px 0 6px}.call-setup-usage-line{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;margin:10px 0 5px}.call-setup-panel[hidden],.call-setup-options[hidden],.call-setup-nested-setting[hidden],.call-setup-usage-div[hidden]{display:none!important}
@media(max-width:900px){.call-setup-empty{padding:20px;min-height:160px}.call-setup-illustration svg{width:120px}.call-setup-actions{justify-content:flex-start}.call-setup-actions>.btn-crm:first-child,.call-setup-actions>.call-setup-audio-anchor{margin-right:auto}}
@media(max-width:600px){.call-setup-head .set-head__title{font-size:21px}.call-setup-intro br{display:none}.call-setup-tabs{overflow-x:auto;white-space:nowrap}.call-setup-tabs .set-tab{padding:10px 12px;font-size:12px}.call-setup-actions{justify-content:flex-start;gap:7px}.call-setup-usage{width:100%;order:3}.call-setup-actions>.btn-crm:first-child,.call-setup-actions>.call-setup-audio-anchor{margin-right:0}.call-setup-empty{align-items:flex-start;flex-direction:column;padding:18px;gap:12px}.call-setup-empty-copy h3{font-size:15px}.call-setup-illustration--calling{align-self:center}.call-setup-empty--registered{align-items:center;min-height:165px}.call-setup-meter-top{align-items:flex-start;flex-direction:column;gap:6px}.call-setup-setting-row{gap:8px}.call-setup-setting-row--plain{padding-left:23px}.call-setup-usage-line{flex-direction:column;gap:4px}}

/* Call action buttons and the audio-message side panel */
.call-setup-actions .call-setup-pill-btn{padding:8px 17px!important;min-height:34px;font-size:13.5px;font-weight:600;white-space:nowrap}
.call-setup-drawer-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.28);z-index:1200}
.call-setup-drawer{position:fixed;z-index:1201;inset:0 0 0 auto;width:min(700px,100vw);height:100dvh;display:flex;flex-direction:column;background:var(--surface);color:var(--text);box-shadow:-12px 0 36px rgba(16,24,40,.16);border-left:1px solid var(--border);overflow:hidden}
.call-setup-drawer[hidden],.call-setup-drawer-backdrop[hidden]{display:none!important}
.call-setup-drawer__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 20px;border-bottom:1px solid var(--border);flex:none}
.call-setup-drawer__header h2{font-size:20px;font-weight:600;margin:0}
.call-setup-drawer__close{    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #475467);
    background: none;
    border: 0;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;}
.call-setup-drawer__close:hover{background: var(--surface-hover, #f2f4f7);
    color: var(--text, #101828);}
.call-setup-drawer__tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border);flex:none}
.call-setup-drawer__tabs button{min-height:48px;padding:12px 18px;border:0;border-right:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);font-size:13px;font-weight:500;cursor:pointer}
.call-setup-drawer__tabs button:last-child{border-right:0}
.call-setup-drawer__tabs button.is-active{background:var(--surface);color:var(--text);box-shadow:inset 0 -2px 0 var(--brand-ink,var(--brand));font-weight:600}
.call-setup-drawer__body{padding:20px 24px 28px;overflow:auto;flex:1;min-height:0}
.call-setup-drawer__body[hidden]{display:none!important}
.call-setup-drawer__description{font-size:13px;line-height:1.5;color:var(--text-muted);margin:0 0 18px}
.call-setup-field{display:block;font-size:13px;font-weight:600;color:var(--text);margin:0 0 18px}
.call-setup-field input:not([type=file]),.call-setup-field select,.call-setup-field textarea{display:block;width:100%;min-height:39px;margin-top:8px;padding:9px 12px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-weight:400;outline-offset:2px}
.call-setup-field textarea{resize:vertical}
.call-setup-help{color:var(--text-muted);margin-left:4px}
.call-setup-field-hint{display:block;margin-top:5px;color:var(--text-muted);font-size:12px;font-weight:400}
.call-setup-upload{min-height:112px;border:1px dashed var(--border-strong);border-radius:5px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:18px;padding:18px;cursor:pointer;color:var(--text-muted)}
.call-setup-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.call-setup-upload svg{width:42px;height:42px;flex:none;color:var(--text-muted)}
.call-setup-upload strong,.call-setup-upload small,.call-setup-upload em{display:block}
.call-setup-upload strong{font-size:13px;color:var(--brand-ink,var(--brand));font-weight:600}
.call-setup-upload small{font-size:12px;line-height:1.7;margin-top:4px}
.call-setup-upload em{font-size:11px;margin-top:5px;font-style:normal}
.call-setup-legal{font-size:12px;line-height:1.6;color:var(--text-muted);margin:30px 0 0}
.call-setup-legal+.call-setup-legal{margin-top:14px}
.call-setup-drawer .link{color:var(--brand-ink,var(--brand));font-weight:600}
.call-setup-audio-empty{padding:24px;border:1px solid var(--border);border-radius:6px;color:var(--text-muted);font-size:13px;text-align:center}
.call-setup-drawer__footer{display:flex;align-items:center;gap:10px;padding:14px 24px;border-top:1px solid var(--border);background:var(--surface);flex:none}
.call-setup-drawer__footer [disabled]{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.call-setup-actions .call-setup-pill-btn{padding:8px 12px!important}.call-setup-drawer{width:100vw;border-left:0}.call-setup-drawer__header{padding:18px 18px}.call-setup-drawer__header h2{font-size:18px}.call-setup-drawer__tabs button{padding:11px 8px;font-size:12px}.call-setup-drawer__body{padding:18px}.call-setup-upload{justify-content:flex-start;gap:12px}.call-setup-legal{margin-top:22px}}

/* Audio message controls matching the reference drawer */
.call-setup-search-select{position:relative;margin-top:8px;font-weight:400}.call-setup-search-select__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:39px;padding:9px 12px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}.call-setup-search-select__menu{position:absolute;z-index:8;top:calc(100% + 3px);left:0;right:0;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(16,24,40,.16)}.call-setup-search-select__menu[hidden]{display:none}.call-setup-search-select__menu>input,.call-setup-filter-menu>input{width:100%;height:36px;border:1px solid var(--border-strong);border-radius:8px;padding:7px 12px;background:var(--surface);color:var(--text);font:inherit;margin-bottom:6px}.call-setup-search-select__options{max-height:220px;overflow:auto}.call-setup-search-select__options button,.call-setup-filter-menu [data-filter-option]{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:10px 8px;border-radius:4px;font:inherit;cursor:pointer}.call-setup-search-select__options button:hover,.call-setup-filter-menu [data-filter-option]:hover{background:var(--surface-3)}.call-setup-voice-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;gap:14px;align-items:end}.call-setup-voice-row .call-setup-field{min-width:0}.call-setup-char-count{display:block;text-align:right;font-size:11px;font-weight:400;color:var(--text-muted);margin-top:5px}.call-setup-preview{width:38px;height:38px;margin-bottom:18px;border:0;border-radius:50%;background:var(--surface-3);color:var(--text-muted);cursor:pointer}.call-setup-preview:disabled{opacity:.45;cursor:not-allowed}.call-setup-edit-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}.call-setup-searchbox{display:flex;align-items:center;gap:8px;width:min(290px,100%);border:1px solid var(--border-strong);border-radius:8px;padding:8px 12px;color:var(--text-muted)}.call-setup-searchbox input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit}.call-setup-filter-wrap{position:relative}.call-setup-filter-wrap>button{border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer;padding:7px 2px}.call-setup-filter-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:9;width:220px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(16,24,40,.15)}.call-setup-filter-menu[hidden]{display:none}.call-setup-audio-table-wrap{overflow:auto;border:1px solid var(--border);min-height:300px;background:var(--surface-2)}.call-setup-audio-table{width:100%;border-collapse:collapse;font-size:11px}.call-setup-audio-table th{padding:12px 10px;text-align:left;border-bottom:1px solid var(--border);font-weight:600;color:var(--text-muted);background:var(--surface);min-width:90px}.call-setup-audio-table td{padding:12px 10px;border-bottom:1px solid var(--border);color:var(--text)}.call-setup-audio-empty-row td{padding:0}.call-setup-audio-empty{min-height:270px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:0;border-radius:0;background:var(--surface-2)}.call-setup-audio-empty p{margin:0}.call-setup-empty-search{font-size:68px;line-height:1;color:#c8d9e9}.call-setup-audio-row{cursor:pointer}.call-setup-audio-row:hover{background:var(--surface-hover)}
@media(max-width:600px){.call-setup-voice-row{grid-template-columns:1fr;gap:8px}.call-setup-preview{margin:0 0 18px}.call-setup-edit-toolbar{align-items:stretch;gap:8px}.call-setup-searchbox{width:100%}.call-setup-audio-table{min-width:560px}}

/* Dropdown and table affordances from the audio-message reference screens */
.call-setup-dropdown-empty{margin:0;padding:12px 8px;color:var(--text-muted);font-size:12px}.call-setup-audio-table th[data-sort-key]{cursor:pointer;user-select:none}.call-setup-audio-table th[data-sort-key]:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.call-setup-search-select__options button:focus-visible,.call-setup-filter-menu [data-filter-option]:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}

/* Reference-matched select menus used in the audio-message drawer */
.call-setup-select{position:relative;margin-top:8px;font-weight:400;min-width:0}
.call-setup-select__trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:39px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-weight:400;text-align:left;cursor:pointer}
.call-setup-select__trigger:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.call-setup-select__trigger span{font-size:15px;line-height:1;color:var(--text-muted)}
.call-setup-select__menu{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:230px;overflow-y:auto;padding:5px 0;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px rgba(16,24,40,.18)}
.call-setup-select__menu[hidden]{display:none}
.call-setup-select__menu button{display:block;width:100%;min-height:39px;padding:9px 14px;border:0;background:transparent;color:var(--text);font:inherit;font-weight:400;text-align:left;cursor:pointer;white-space:normal}
.call-setup-select__menu button:hover,.call-setup-select__menu button:focus-visible{background:var(--surface-3);outline:0}
.call-setup-filter-menu{padding:5px 0;max-height:245px;overflow:auto;border-radius:8px}
.call-setup-filter-menu [data-filter-options] button{display:block;width:100%;padding:10px 14px;border:0;background:transparent;text-align:left;color:var(--text);font:inherit;cursor:pointer}
.call-setup-filter-menu [data-filter-options] button:hover{background:var(--surface-3)}
.call-setup-filter-wrap{position:relative}
.call-setup-filter-menu:before{content:"";position:absolute;top:-6px;left:22px;width:10px;height:10px;background:var(--surface);border-top:1px solid var(--border);border-left:1px solid var(--border);transform:rotate(45deg)}

/* Keep custom dropdown menus interactive and above adjacent drawer fields. */
.call-setup-select{z-index:1}
.call-setup-select:focus-within{z-index:40}
.call-setup-select__menu[hidden],.call-setup-search-select__menu[hidden],.call-setup-filter-menu[hidden]{display:none!important}
.call-setup-select__menu:not([hidden]){display:block!important;z-index:80}
.call-setup-search-select__menu:not([hidden]),
.call-setup-filter-menu:not([hidden]){display:block!important;z-index:80}


/* SVG iconography and Settings-style searchable select fields */
.call-setup-icon{display:inline-block;flex:none;width:16px;height:16px;color:currentColor;vertical-align:middle}
.call-setup-icon--chevron{width:15px;height:15px;transition:transform .16s ease;color:var(--text-muted)}
.call-setup-search-select__trigger[aria-expanded="true"] .call-setup-icon--chevron,.call-setup-select__trigger[aria-expanded="true"] .call-setup-icon--chevron{transform:rotate(180deg)}
.call-setup-search-select__trigger{gap:10px}
.call-setup-search-select__trigger [data-search-label]{min-width:0;flex:1}
.call-setup-dropdown-search{display:flex;align-items:center;gap:9px;width:100%;height:38px;padding:0 12px;border:1px solid var(--brand-ink,var(--brand));border-radius:22px;background:var(--surface);color:var(--text-muted);margin:0 0 7px}
.call-setup-dropdown-search:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-ink,var(--brand)) 14%,transparent)}
.call-setup-dropdown-search .call-setup-icon--search{width:16px;height:16px}
.call-setup-dropdown-search input{width:100%;min-width:0;height:100%;padding:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--text)!important;font:inherit!important;margin:0!important;border-radius:0!important}
.call-setup-select__menu{padding:7px 6px}
.call-setup-select__menu [data-select-option][hidden]{display:none!important}
.call-setup-select__menu .call-setup-dropdown-search{padding:0 11px}
.call-setup-search-select__menu{padding:8px}
.call-setup-searchbox .call-setup-icon--search{width:15px;height:15px}
.call-setup-empty-search{display:block;width:64px;height:64px}

/* Existing audio messages tab — match the compact HubSpot filter popovers. */
.call-setup-edit-toolbar{gap:18px;align-items:center;margin-bottom:12px}
.call-setup-searchbox{height:38px;width:290px;max-width:100%;padding:0 12px;gap:9px;background:var(--surface);border-color:var(--border-strong)}
.call-setup-searchbox .call-setup-icon--search{width:15px;height:15px;flex:none}
.call-setup-filter-wrap>button{display:inline-flex;align-items:center;gap:4px;padding:7px 4px;font-size:14px;font-weight:600;color:var(--text-muted);white-space:nowrap}
.call-setup-icon--filter-chevron{width:11px;height:11px;transition:transform .15s ease}
.call-setup-filter-wrap>button[aria-expanded="true"] .call-setup-icon--filter-chevron{transform:rotate(180deg)}
.call-setup-filter-menu{top:calc(100% + 8px);left:0;width:195px;max-height:235px;padding:5px 0;overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 12px 30px rgba(16,24,40,.16)}
.call-setup-filter-menu:before{top:-6px;left:18px;width:10px;height:10px;background:var(--surface)}
.call-setup-filter-menu [data-filter-options] button{min-height:38px;padding:10px 14px;font-size:12px;line-height:1.3;text-align:left;white-space:normal}
.call-setup-filter-menu [data-filter-options] button:hover,.call-setup-filter-menu [data-filter-options] button:focus-visible{background:var(--surface-3);outline:0}
.call-setup-audio-table-wrap{min-height:335px;background:var(--surface);border-color:var(--border)}
.call-setup-audio-table th{height:45px;padding:10px 12px;font-size:11px;line-height:1.35;letter-spacing:.02em;vertical-align:middle}
.call-setup-audio-table td{padding:12px;font-size:12px;vertical-align:top}
.call-setup-audio-table th .call-setup-icon{width:14px;height:14px}
.call-setup-audio-empty{min-height:285px;background:var(--surface);gap:18px}
.call-setup-empty-search{width:150px;height:130px;max-width:100%;color:#c8d9e9}
.call-setup-audio-empty p{font-size:13px;color:var(--text-muted)}
@media(max-width:600px){.call-setup-edit-toolbar{align-items:flex-start;gap:8px 14px}.call-setup-searchbox{width:100%;flex-basis:100%}.call-setup-filter-wrap>button{min-height:34px}.call-setup-filter-menu{max-width:calc(100vw - 48px)}.call-setup-audio-table{min-width:560px}}

/* Existing audio messages: keep search on its own row and filters directly below. */
.call-setup-edit-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:start;
  gap:8px;
  width:100%;
  min-width:0;
}
.call-setup-edit-toolbar .call-setup-searchbox{
  grid-column:1;
  grid-row:1;
  width:min(290px,100%);
  max-width:100%;
  min-width:0;
}
.call-setup-edit-toolbar .call-setup-filter-wrap{
  grid-row:2;
  align-self:start;
  min-width:0;
}
.call-setup-edit-toolbar .call-setup-filter-wrap[data-filter-wrap="type"]{grid-column:1}
.call-setup-edit-toolbar .call-setup-filter-wrap[data-filter-wrap="creator"]{grid-column:1}
/* The markup doesn't need extra wrapper attributes: place the two filters side by side below search. */
.call-setup-edit-toolbar .call-setup-filter-wrap:nth-of-type(1){grid-column:1;grid-row:2}
.call-setup-edit-toolbar .call-setup-filter-wrap:nth-of-type(2){grid-column:2;grid-row:2}
.call-setup-edit-toolbar{grid-template-columns:max-content max-content;justify-content:start}
.call-setup-edit-toolbar .call-setup-searchbox{grid-column:1 / -1}
.call-setup-filter-menu{max-width:min(240px,calc(100vw - 48px))}
.call-setup-filter-wrap:last-child .call-setup-filter-menu{left:auto;right:0;padding: 10px;}
@media(max-width:600px){
  .call-setup-edit-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:6px}
  .call-setup-edit-toolbar .call-setup-searchbox{width:100%;flex-basis:auto}
  .call-setup-edit-toolbar .call-setup-filter-wrap{width:max-content;max-width:100%}
  .call-setup-filter-wrap:last-child .call-setup-filter-menu{left:0;right:auto}
}

/* Call configuration switches: same HubSpot switch component used in settings-notetaker. */
.call-setup-setting-row .hs-switch{position:relative;display:inline-block;cursor:pointer;user-select:none;line-height:0}
.call-setup-setting-row .hs-switch input{position:absolute;opacity:0;width:0;height:0}
.call-setup-setting-row .hs-switch__track{width:62px;height:30px;background:var(--surface-2);border:1.5px solid var(--border-strong);border-radius:var(--radius-pill);display:flex;align-items:center;position:relative;transition:background-color var(--fast) var(--ease),border-color var(--fast) var(--ease);box-sizing:border-box}
.call-setup-setting-row .hs-switch input:checked + .hs-switch__track{background:var(--brand);border-color:var(--brand)}
.call-setup-setting-row .hs-switch__label{position:absolute;font-size:11px;font-weight:700;line-height:1;letter-spacing:.02em;transition:opacity var(--fast) var(--ease)}
.call-setup-setting-row .hs-switch__label--on{left:9px;color:var(--brand-contrast,#fff);opacity:0}
.call-setup-setting-row .hs-switch__label--off{right:8px;color:var(--text-muted);opacity:1}
.call-setup-setting-row .hs-switch input:checked + .hs-switch__track .hs-switch__label--on{opacity:1}
.call-setup-setting-row .hs-switch input:checked + .hs-switch__track .hs-switch__label--off{opacity:0}
.call-setup-setting-row .hs-switch__knob{position:absolute;left:4px;top:3px;width:21px;height:21px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:transform var(--fast) var(--ease)}
.call-setup-setting-row .hs-switch input:checked + .hs-switch__track .hs-switch__knob{transform:translateX(31px)}
.call-setup-setting-row .hs-switch__check{width:13px;height:13px;color:var(--brand);opacity:0;transition:opacity var(--fast) var(--ease)}
.call-setup-setting-row .hs-switch input:checked + .hs-switch__track .hs-switch__check{opacity:1}
.call-setup-setting-row .hs-switch:has(input:disabled){opacity:.55;cursor:not-allowed}
.call-setup-setting-row .hs-switch input:focus-visible + .hs-switch__track{outline:2px solid var(--focus-ring-color,var(--brand));outline-offset:2px}
.call-setup-setting-row{grid-template-columns:62px minmax(0,1fr);column-gap:14px}
.call-setup-setting-row--plain{grid-template-columns:minmax(0,1fr);padding-left:76px}
.call-setup-options input[type="checkbox"],
.call-setup-nested-setting input[type="checkbox"]{
  width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all var(--fast) var(--ease);
    flex-shrink: 0;
}
@media(max-width:600px){
  .call-setup-setting-row{grid-template-columns:62px minmax(0,1fr);column-gap:10px}
  .call-setup-setting-row--plain{padding-left:72px}
}


/* Fix: lock the page behind the drawer and keep scrolling inside the drawer content only. */
html:has(body.call-setup-drawer-open){overflow:hidden!important;overscroll-behavior:none!important}
body.call-setup-drawer-open{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}
body.call-setup-drawer-open .call-setup-drawer{position:fixed!important;top:0!important;right:0!important;bottom:0!important;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden!important;overscroll-behavior:contain}
.call-setup-drawer__header,.call-setup-drawer__tabs,.call-setup-drawer__footer{flex:0 0 auto}
.call-setup-drawer__body{flex:1 1 0%;min-height:0;max-height:100%;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.call-setup-drawer__body[hidden]{display:none!important}
.call-setup-drawer__body form{min-height:0;overflow:visible}
@media(max-width:600px){
  body.call-setup-drawer-open .call-setup-drawer{width:100vw;max-width:100vw}
  .call-setup-drawer__body{padding-bottom:24px}
}

/* ============================================================================
   TURN OFF CALLING CONFIRMATION MODAL (Screenshot 1)
   ============================================================================ */
.call-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  backdrop-filter: blur(2px);
  animation: callFadeIn 0.15s ease;
}
.call-modal-backdrop[hidden] {
  display: none !important;
}

.call-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  padding: 30px 32px 26px;
  box-sizing: border-box;
  animation: callPopIn 0.15s ease;
  position: relative;
  color: var(--text);
}

.call-modal__title {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.call-modal__divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 -32px 18px -32px;
}

.call-modal__body {
  margin-bottom: 22px;
}

.call-modal__lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 12px 0;
}
.call-modal__lead u {
  text-decoration: underline;
  font-weight: 700;
  color: var(--text);
}

.call-modal__list {
  margin: 0 0 16px 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.call-modal__list li {
  margin-bottom: 8px;
}
.call-modal__list li:last-child {
  margin-bottom: 0;
}

.call-modal__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 18px 0;
}

.call-modal__confirm-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.call-modal__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.call-modal__input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.call-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-modal__btn-turnoff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  border-radius:  var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  font-family: inherit;
  transition: all 0.15s ease;
}
.call-modal__btn-turnoff:disabled {
  background: var(--surface-3);
  color: var(--text-subtle);
  cursor: not-allowed;
}
.call-modal__btn-turnoff:not(:disabled) {
  background: var(--brand);
  color: var(--brand-contrast);
  cursor: pointer;
}
.call-modal__btn-turnoff:not(:disabled):hover {
  background: var(--brand-hover);
}

.call-modal__btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  border-radius:  var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.15s ease;
}
.call-modal__btn-cancel:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* ============================================================================
   SETTINGS UPDATED SUCCESS TOAST (Screenshot 2)
   ============================================================================ */
.call-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg, #ecfdf3);
  border: 1.5px solid var(--success, #067647);
  border-radius: var(--radius-pill, 9999px);
  padding: 10px 18px 10px 22px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  color: var(--text, #101828);
  animation: callToastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  white-space: nowrap;
}
.call-toast[hidden] {
  display: none !important;
}
.call-toast.is-hiding {
  animation: callToastSlideOut 0.2s ease forwards;
}

.call-toast__title {
  font-weight: 700;
  color: var(--text, #101828);
}

.call-toast__msg {
  font-weight: 400;
  color: var(--text, #101828);
  margin-right: 4px;
}

.call-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted, #475467);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.call-toast__close:hover {
  color: var(--text, #101828);
  background: var(--surface-hover, rgba(0, 0, 0, 0.06));
}

@keyframes callFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes callPopIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes callToastSlideIn {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes callToastSlideOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -18px); }
}

@media(max-width: 600px) {
  .call-toast {
    max-width: calc(100vw - 32px);
    white-space: normal;
    font-size: 13.5px;
    padding: 8px 14px 8px 18px;
  }
  .call-modal {
    padding: 22px 18px 20px;
    margin: 12px;
  }
  .call-modal__divider {
    margin: 0 -18px 14px -18px;
  }
  .call-modal__title {
    font-size: 20px;
  }
}

/* ============================================================================
   EDIT CALL AND MEETING TYPES SIDE DRAWER (Screenshots 1 & 2)
   ============================================================================ */
.call-types-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  z-index: 10000;
  backdrop-filter: blur(2px);
  animation: callFadeIn 0.2s ease;
}
.call-types-drawer-backdrop[hidden] {
  display: none !important;
}

.call-types-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(16, 24, 40, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 10001;
  animation: callTypesDrawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.call-types-drawer[hidden] {
  display: none !important;
}
.call-types-drawer.is-closing {
  animation: callTypesDrawerSlideOut 0.2s ease forwards;
}

@keyframes callTypesDrawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes callTypesDrawerSlideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.call-types-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.call-types-drawer__header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.call-types-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.call-types-drawer__close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.call-types-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

/* Sort dropdown */
.call-types-sort-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13.5px;
}
.call-types-sort-label {
  color: var(--text-muted);
  font-weight: 500;
}
.call-types-sort-dropdown {
  position: relative;
}
.call-types-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: inherit;
  transition: background 0.15s ease;
}
.call-types-sort-trigger:hover {
  background: var(--surface-hover);
}
.call-types-sort-trigger svg {
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.call-types-sort-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.call-types-sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow);
  min-width: 140px;
  padding: 4px 0;
  z-index: 20;
}
.call-types-sort-menu[hidden] {
  display: none !important;
}

.call-types-sort-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.call-types-sort-opt:hover {
  background: var(--surface-hover);
}
.call-types-sort-opt.is-active {
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-link);
}

/* Types List Rows */
.call-types-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.15s ease;
}
.call-type-row.is-dragging {
  opacity: 0.4;
}

.call-type-input-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  padding: 0 10px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.call-type-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.call-type-input-wrap.is-error {
  border-color: var(--danger) !important;
  border-width: 1.5px;
  box-shadow: none !important;
}

.call-type-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--text-muted);
  margin-right: 8px;
  user-select: none;
}
.call-type-drag:active {
  cursor: grabbing;
}

.call-type-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  height: 100%;
  padding: 0;
}

.call-type-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.call-type-delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* Error message under input (Screenshot 2) */
.call-type-error-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  margin-bottom: 4px;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.call-type-error-wrap svg {
  flex-shrink: 0;
  color: var(--danger);
}

/* + Add type button */
.call-types-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  padding: 8px 0;
  margin-top: 6px;
  font-family: inherit;
  transition: color 0.15s ease;
}
.call-types-add-btn:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}
.call-types-add-btn:disabled,
.call-types-add-btn.is-disabled {
  color: var(--text-subtle) !important;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none !important;
}
.call-types-add-plus {
  font-size: 16px;
  line-height: 1;
}

/* Drawer Footer */
.call-types-drawer__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex: none;
}

.call-drawer-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.call-drawer-pill-btn--save:disabled {
  background: var(--surface-3);
  color: var(--text-subtle);
  border: none;
  cursor: not-allowed;
}
.call-drawer-pill-btn--save:not(:disabled) {
  background: var(--brand);
  color: var(--brand-contrast);
  border: none;
  cursor: pointer;
}
.call-drawer-pill-btn--save:not(:disabled):hover {
  background: var(--brand-hover);
}

.call-drawer-pill-btn--cancel {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.call-drawer-pill-btn--cancel:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.save-bar {
  z-index: 9999;
}

/* ============================================================================
   CALL OUTCOMES DRAWER & ROWS (Screenshots 1 & 2)
   ============================================================================ */
.call-outcome-row-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm, 6px);
  transition: all 0.15s ease;
}

.call-outcome-row--default {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.call-outcome-box {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover CSS on .call-outcome-row-item */
.call-outcome-row-item:hover .call-outcome-box {
  border-color: var(--brand);
  background-color: var(--surface-hover);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.call-outcome-row-item:hover .call-outcome-custom-wrap:not(.is-error):not(:focus-within) {
  border-color: var(--brand);
  background-color: var(--surface-hover);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

/* Selected State on .call-outcome-row-item */
.call-outcome-row-item.selected .call-outcome-box,
.call-outcome-row-item.is-selected .call-outcome-box {
  border-color: var(--brand);
  box-shadow: 0 0 0 1.5px var(--brand);
  background-color: var(--brand-link);
}

.call-outcome-row-item.selected .call-outcome-custom-wrap,
.call-outcome-row-item.is-selected .call-outcome-custom-wrap {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1.5px var(--brand) !important;
}

.call-outcome-row--default:hover .call-outcome-box,
.call-outcome-row--default:focus .call-outcome-box {
  border-color: var(--brand);
  background-color: var(--surface-hover);
}

/* Tooltip Popover on Hover: "Default call outcomes can't be deleted." */
.call-outcome-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 20px;
  background: var(--panel, #182026);
  color: var(--panel-text, #ffffff);
  border: 1px solid var(--panel-2, #182026);
  padding: 8px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  width: max-content;
  max-width: 250px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.call-outcome-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--panel, #182026) transparent transparent transparent;
}

.call-outcome-row--default:hover .call-outcome-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-2px);
}

/* Custom outcome input (Screenshot 2) */
.call-outcome-custom-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  padding: 0 12px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.call-outcome-custom-wrap:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand) !important;
}

.call-outcome-custom-wrap.is-error {
  border-color: var(--danger);
  border-width: 1.5px;
}

.call-outcome-custom-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  height: 100%;
  padding: 0;
}

/* ============================================================================
   EDIT INBOUND EXEMPTIONS DRAWER & SELECTS (Screenshots 1 - 4)
   ============================================================================ */
.call-exemptions-drawer {
  width: min(480px, 100vw);
}

.call-exemptions-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.call-exemptions-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 18px;
}

.call-exemption-field {
  margin-bottom: 24px;
}

.call-exemption-field h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
}

.call-exemption-field p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.call-exemption-select {
  position: relative;
}

.call-exemption-trigger {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  padding: 4px 10px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.call-exemption-trigger:hover {
  border-color: var(--brand);
}

.call-exemption-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.call-exemption-trigger__label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.call-exemption-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.call-exemption-placeholder {
  color: var(--text);
  font-size: 14px;
}

.call-exemption-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  background: var(--surface-3, #f2f4f7);
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 4px;
  color: var(--text, #101828);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}

.call-exemption-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.12s ease, background 0.12s ease;
}

.call-exemption-chip__remove:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.08);
}

.call-exemption-trigger svg {
  color: var(--text);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.call-exemption-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.call-exemption-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0 6px;
  z-index: 50;
  animation: callFadeIn 0.15s ease;
}

.call-exemption-menu[hidden] {
  display: none !important;
}

.call-exemption-search-wrap {
  position: relative;
  padding: 0 12px 10px;
}

.call-exemption-search-input {
  width: 100%;
  height: 38px;
  border: 1.5px solid var(--border-strong);
  border-radius:  var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 0 38px 0 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.call-exemption-search-input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.call-exemption-search-icon {
  position: absolute;
  right: 26px;
  top: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.call-exemption-options-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px 0;
}

.call-exemption-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.call-exemption-option:hover {
  background: var(--surface-hover);
}

.call-exemption-option.is-selected {
  background: var(--teal-bg, #f0fdfa);
}

.call-exemption-option--sub {
  padding-left: 44px;
}

.call-exemption-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.call-exemption-option.is-disabled:hover {
  background: var(--teal-bg, #f0fdfa);
}

.call-exemption-option.is-disabled .call-exemption-checkbox {
  cursor: not-allowed;
}

.call-exemption-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong, #94a3b8);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  position: relative;
}

.call-exemption-checkbox:checked {
  background: #182026;
  border-color: #182026;
}

.call-exemption-checkbox:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.call-exemption-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}

.call-exemption-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-exemption-empty-msg {
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
}

/* ============================================================================
   EDIT TRACKED TERMS SIDE DRAWER (Screenshots 1-5)
   ============================================================================ */
.call-tracked-terms-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #101828);
  margin: 0 0 20px;
}

.call-tracked-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.call-tracked-cat-card {
  background: var(--surface);
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease;
}

.call-tracked-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.call-tracked-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.call-tracked-cat-name-input {
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  border: 1.5px solid transparent;
  border-radius: 4px;
  padding: 3px 6px;
  background: transparent;
  outline: none;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.call-tracked-cat-name-input:focus {
  border-color: #0066cc;
  background: var(--surface);
}

.call-tracked-cat-name-input.has-error {
  border-color: #c51d24 !important;
}

.call-tracked-cat-pencil {
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.call-tracked-cat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.call-tracked-cat-close-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.call-tracked-terms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.call-tracked-term-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-tracked-term-input {
  flex: 1 1 auto;
  height: 40px;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.call-tracked-term-input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 1px #0066cc;
}

.call-tracked-term-input.has-error {
  border-color: #c51d24 !important;
  box-shadow: none !important;
}

.call-tracked-term-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.call-tracked-term-delete:hover {
  color: var(--text);
}

.call-tracked-add-term-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--brand, #004d40);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.call-tracked-add-term-btn:hover {
  opacity: 0.85;
}

.call-tracked-add-term-plus {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.call-tracked-term-error {
  color: #990000;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.4;
}

.call-tracked-global-error {
  color: #990000;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 14px;
  line-height: 1.4;
}

.call-tracked-add-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius:  var(--radius-sm);
  color: var(--text, #101828);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.call-tracked-add-cat-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-hover);
}

.call-tracked-add-cat-btn__icon {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

#deleteCategoryModal .call-modal {
  max-width: 460px;
}

#deleteCategoryModal .call-modal__actions .btn-crm {
  border-radius:  var(--radius-sm);
  height: 38px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
}

@media(max-width: 600px) {
  .call-types-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}
/* ==========================================================================
   GLOBAL REUSABLE POPOVER / TOOLTIP COMPONENT
   Supports:
     - .calling-info--popover & .calling-info__popover
     - .crm-popover-wrap & .crm-popover
   Supports both nested children and adjacent sibling placement
   ========================================================================== */
.calling-info,
.calling-info--popover,
.crm-popover-wrap {
  position: relative;
  display: inline-flex;
  outline: none;
}

.calling-info--popover:focus-visible,
.crm-popover-wrap:focus-visible {
  outline: 2px solid var(--brand, #2456e6);
  outline-offset: 2px;
  border-radius: 4px;
}

.calling-info__popover,
.crm-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  white-space: normal;
  text-align: left;
  background: var(--panel, #0e1629);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  text-transform: none;
  letter-spacing: normal;
}

/* Default downward pointing triangle arrow */
.calling-info__popover::after,
.crm-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--panel, #0e1629) transparent transparent transparent;
}

/* Trigger on hover / focus for children and siblings */
.calling-info--popover:hover .calling-info__popover,
.calling-info--popover:focus .calling-info__popover,
.calling-info--popover:focus-within .calling-info__popover,
.calling-info--popover:hover + .calling-info__popover,
.calling-info--popover:focus + .calling-info__popover,
.calling-info--popover:focus-visible + .calling-info__popover,
.calling-info--popover:hover ~ .calling-info__popover,
.calling-info--popover:focus ~ .calling-info__popover,
.calling-info--popover:focus-within ~ .calling-info__popover,
.calling-info__popover:hover,
.crm-popover-wrap:hover > .crm-popover,
.crm-popover-wrap:focus > .crm-popover,
.crm-popover-wrap:focus-within > .crm-popover,
.crm-popover-wrap:hover > .calling-info__popover,
.crm-popover-wrap:focus > .calling-info__popover,
.crm-popover-wrap:focus-within > .calling-info__popover,
.crm-popover.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Connected / Rich Bullet Popover Card (White surface card matching Screenshot)
   ========================================================================== */
.calling-info__popover.calling-info__popover--connected {
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 16px 20px;
  background: var(--surface, #ffffff) !important;
  color: var(--text, #101828) !important;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
  pointer-events: auto;
  z-index: 10050;
  text-align: left;
}

.calling-info__popover.calling-info__popover--connected::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--surface, #ffffff) transparent transparent transparent !important;
  z-index: 2;
}

.calling-info__popover.calling-info__popover--connected::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: var(--border-strong, #cbd5e1) transparent transparent transparent !important;
  z-index: 1;
}

/* In drawer form fields, avoid clipping by opening downwards with arrow pointing UP */
.call-setup-field .calling-info__popover.calling-info__popover--connected {
  top: calc(100% + 10px);
  bottom: auto;
  left: -20px;
  transform: translateY(-4px);
}

.call-setup-field .calling-info--popover:hover .calling-info__popover.calling-info__popover--connected,
.call-setup-field .calling-info--popover:focus .calling-info__popover.calling-info__popover--connected,
.call-setup-field .calling-info--popover:focus-within .calling-info__popover.calling-info__popover--connected,
.call-setup-field .calling-info__popover.calling-info__popover--connected:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.call-setup-field .calling-info__popover.calling-info__popover--connected::after {
  top: auto;
  bottom: 100%;
  left: 27px;
  transform: none;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent var(--surface, #ffffff) transparent !important;
}

.call-setup-field .calling-info__popover.calling-info__popover--connected::before {
  top: auto;
  bottom: 100%;
  left: 26px;
  transform: none;
  border-width: 0 9px 9px 9px;
  border-color: transparent transparent var(--border-strong, #cbd5e1) transparent !important;
}

.calling-popover-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #101828);
  margin-bottom: 12px;
}

.calling-popover-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.calling-popover-list li {
  margin-bottom: 10px;
  color: var(--text, #101828);
  font-size: 13px;
  line-height: 1.5;
}

.calling-popover-list li:last-child {
  margin-bottom: 0;
}

.calling-popover-list strong {
  font-weight: 700;
  color: var(--text, #101828);
}

/* Modifiers for position */
.crm-popover--left,
.calling-info__popover--left {
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(4px);
}

.crm-popover-wrap:hover > .crm-popover--left,
.crm-popover-wrap:focus-within > .crm-popover--left,
.calling-info--popover:hover + .calling-info__popover--left,
.calling-info--popover:hover .calling-info__popover--left {
  transform: translateY(-50%) translateX(0);
}

.crm-popover--left::after,
.calling-info__popover--left::after {
  top: 50%;
  right: -8px;
  left: auto;
  bottom: auto;
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--panel, #0e1629);
  transform: translateY(-50%);
}

.crm-popover--bottom,
.calling-info__popover--bottom {
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

.crm-popover-wrap:hover > .crm-popover--bottom,
.crm-popover-wrap:focus-within > .crm-popover--bottom,
.calling-info--popover:hover + .calling-info__popover--bottom,
.calling-info--popover:hover .calling-info__popover--bottom {
  transform: translateX(-50%) translateY(0);
}

.crm-popover--bottom::after,
.calling-info__popover--bottom::after {
  bottom: 100%;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--panel, #0e1629) transparent;
}

/* ==========================================================================
   GET HUBSPOT NUMBER SIDE DRAWER (Screenshots 1-4)
   Using base.css design tokens for light & dark mode support
   ========================================================================== */
.call-get-number-drawer {
  width: 540px;
  max-width: 100vw;
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.call-get-number__step {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  background: var(--surface);
}

.call-get-number__step[hidden] {
  display: none !important;
}

.call-get-number__art-wrap {
  text-align: center;
  margin: 10px 0 24px;
}

.call-get-number__art {
  max-width: 140px;
  height: auto;
  display: inline-block;
}

[data-theme="dark"] .call-get-number__art {
  filter: brightness(0.92) contrast(1.08);
}

.call-get-number__heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.35;
}

.call-get-number__subheading {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.call-get-number__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.call-get-number__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.call-get-number__check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  margin-top: 1px;
}

.call-get-number__link {
  color: var(--brand-ink, var(--brand, #2456e6));
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color var(--fast, 0.15s) ease;
}

.call-get-number__link:hover {
  color: var(--brand-hover, #1c46c4);
}

.call-get-number__link-icon {
  display: inline-block;
  vertical-align: middle;
}

.call-get-number__available-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.call-get-number__available-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.call-get-number__available-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

/* Footer layout */
.call-get-number__footer {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  width: 100%;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.call-get-number__footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-drawer-pill-btn--next {
  background: var(--brand);
  color: var(--brand-contrast);
  border: none;
  border-radius: var(--radius-sm, 8px);
  height: 38px;
  padding: 0 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.call-drawer-pill-btn--next:hover {
  background: var(--brand-hover);
}

.call-drawer-pill-btn--next:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Step 2 Form Controls */
.call-gn-field {
  margin-bottom: 22px;
  position: relative;
}

.call-gn-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.call-gn-hint {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.call-gn-select-wrap {
  position: relative;
  width: 100%;
}

.call-gn-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.call-gn-select-trigger:focus,
.call-gn-select-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--focus-ring);
}

.call-gn-caret {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--fast, 0.15s) ease;
}

.call-gn-select-trigger[aria-expanded="true"] .call-gn-caret {
  transform: rotate(180deg);
}

.call-gn-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10050;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 290px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.call-gn-dropdown--dropup {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
}

.call-gn-dropdown--simple {
  max-height: 180px;
  padding: 4px;
}

.call-gn-dropdown[hidden] {
  display: none !important;
}

.call-gn-search-box {
  position: relative;
  margin-bottom: 8px;
}

.call-gn-search-input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.call-gn-search-input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.call-gn-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.call-gn-section-header {
  padding: 8px 12px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}

.call-gn-options {
  overflow-y: auto;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.call-gn-country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fast, 0.12s) ease;
}

.call-gn-country-option:hover,
.call-gn-country-option.is-selected {
  background: var(--surface-hover);
}

.call-gn-country-code {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  width: 24px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.call-gn-area-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fast, 0.12s) ease;
}

.call-gn-area-option:hover,
.call-gn-area-option.is-selected {
  background: var(--surface-hover);
}

.call-gn-area-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.call-gn-area-region {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.call-gn-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fast, 0.12s) ease;
}

.call-gn-option:hover,
.call-gn-option.is-selected {
  background: var(--surface-hover);
}

.call-gn-custom-area-wrap {
  margin-top: 8px;
}

.call-gn-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.call-gn-input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.call-gn-btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast, 0.15s) ease;
  margin: 6px 0 10px;
}

.call-gn-btn-generate:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.call-gn-btn-generate:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.call-gn-result-card {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius, 10px);
  background: var(--teal-bg, #e6f6f7);
  box-shadow: var(--shadow-sm);
  animation: callFadeIn 0.2s ease;
}

.call-gn-result-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.call-gn-result-number {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.call-gn-result-location {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.call-gn-result-radio-custom {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
}

.call-gn-result-option input:checked + .call-gn-result-radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.call-gn-result-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* Dark mode specific adjustments for call-get-number-drawer */
[data-theme="dark"] .call-get-number-drawer {
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .call-get-number__check-icon {
  color: var(--teal, #14b8a6);
}

[data-theme="dark"] .call-get-number__link {
  color: var(--brand-ink, var(--brand, #5b8cff));
}

[data-theme="dark"] .call-get-number__link:hover {
  color: var(--brand-hover, #7aa2ff);
}

[data-theme="dark"] .call-gn-result-card {
  border-color: var(--teal, #14b8a6);
  background: var(--teal-bg, rgba(20, 184, 166, 0.14));
}

[data-theme="dark"] .call-gn-result-radio-custom {
  border-color: var(--teal, #14b8a6);
  background: var(--surface);
}

[data-theme="dark"] .call-gn-result-option input:checked + .call-gn-result-radio-custom::after {
  background: var(--teal, #14b8a6);
}


