/* V16.19 — ElevenLabs-specific UI only */
.cf-el-home{width:100%;margin-top:16px;display:flex;align-items:center;justify-content:center;min-height:62px;border:1px solid #aecdc3;border-radius:23px;background:linear-gradient(115deg,#ecf7f1,#fbf9f1);color:#175848;font-size:18px;font-weight:700;line-height:1.3;cursor:pointer}.cf-el-home:hover{background:#e3f3ec}
.cf-el-box{margin-top:22px;padding:23px 22px;border:1px solid #bedbd0;border-radius:24px;background:linear-gradient(120deg,#eef8f2,#faf9f3);color:#214d44}
.cf-el-box h3{margin:0 0 10px;font-size:23px;color:#123f35}.cf-el-box p{margin:0 0 16px;color:#5b786d;font-size:15px;line-height:1.55}
.cf-el-box label{display:block;margin:0 0 9px;font-weight:650;font-size:14px}
.cf-el-box select{display:block;width:100%;min-height:55px;padding:12px;border:1px solid #d2e0db;border-radius:14px;background:#fff;color:#183a32;font:inherit}
.cf-el-action{padding:13px 17px;min-height:48px;border:1px solid #c2dbd0;border-radius:14px;background:#edf6f1;color:#206652;font-size:15px;font-weight:750;cursor:pointer}
.cf-el-action:disabled{opacity:.5;cursor:default}.cf-el-muted{display:block;margin-top:9px;color:#657c74;font-size:13px;line-height:1.5}
/* V16.21 — iPhone popup mirrors the original full-height layout.
   All selectors scoped to the new cloned-voice UI. */
.cf-el-layer{position:fixed;inset:0;z-index:250;display:none;align-items:center;justify-content:center;padding:11px;background:#10352dd4;overflow:hidden;overscroll-behavior:contain}
.cf-el-layer.open{display:flex}
.cf-el-is-open{overflow:hidden}
.cf-el-modal{position:relative;display:flex;flex-direction:column;width:min(100%,520px);height:min(720px,calc(100dvh - 22px));box-sizing:border-box;background:#fbfdfb;padding:24px 20px 17px;border-radius:30px;box-shadow:0 25px 100px #0a392f43;color:#193f35;overflow:hidden;flex-shrink:0;font-size:14px;line-height:1.4}
.cf-el-modal .cf-el-eyebrow{display:block;color:#819586;letter-spacing:.11em;font-size:10px;font-weight:750;margin:0 51px 9px 0;line-height:1.2}
.cf-el-modal h2{margin:0 48px 16px 0;color:#133f32;font-size:24px;line-height:1.12;font-weight:750}
.cf-el-modal .cf-el-intro{color:#617b70;line-height:1.6;margin:0 0 16px;font-size:14px;font-weight:400}
.cf-el-modal .cf-el-label{display:block;font-weight:700;font-size:13px;margin:13px 0 8px;color:#4e695e;line-height:1.3}
.cf-el-modal input[type=text]{width:100%;height:46px;min-height:46px;border:1px solid #ceded7;border-radius:14px;padding:10px 12px;color:#214b41;background:white;font:inherit;font-size:15px;box-sizing:border-box}
.cf-el-modal input[type=checkbox]{width:23px;height:23px;flex-shrink:0;accent-color:#147c69;margin:2px 0 0}
.cf-el-record-row{display:flex;gap:12px;align-items:center;flex-wrap:nowrap;margin:15px 0 8px}
.cf-el-record-row .cf-el-action{min-height:41px;padding:9px 15px;border-radius:14px;white-space:nowrap;font-size:14px}
#cf-el-record-info{font-size:13px;color:#5b7469;min-width:0;overflow-wrap:anywhere}
.cf-el-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;clip-path:inset(50%);pointer-events:none}
.cf-el-file-picker{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;border:1px solid #ceded7;border-radius:14px;padding:7px 10px;background:#fff;cursor:pointer;box-sizing:border-box}
.cf-el-file-picker span:first-child{flex-shrink:0;border-radius:10px;background:#eaf5ef;color:#256956;font-size:13px;font-weight:750;padding:8px 11px}
#cf-el-file-summary{font-size:14px;color:#486b5e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cf-el-consent{display:flex;gap:13px;align-items:flex-start;margin:18px 0 12px;color:#496c61;font-size:13px;line-height:1.5;font-weight:600}
.cf-el-disclosure{color:#617b70;font-size:12px;line-height:1.55;margin:0 0 16px;font-weight:400}
.cf-el-status{border-radius:14px;background:#e8f4ec;color:#247260;padding:12px 13px;margin:0 0 3px;font-size:13px;min-height:38px;box-sizing:border-box;line-height:1.35;overflow-wrap:anywhere}
.cf-el-status:not(.cf-el-status-active){visibility:hidden}
.cf-el-save{display:block;width:100%;min-height:45px;border:0;border-radius:15px;background:#147f67;color:#fff;padding:10px 14px;font-weight:700;font-size:15px;cursor:pointer}
.cf-el-save:disabled{opacity:.55}
.cf-el-close{position:absolute;top:19px;right:19px;border:1px solid #d0e3db;border-radius:50%;width:42px;height:42px;background:#edf6f1;color:#265a4c;font-size:30px;line-height:1;cursor:pointer}
.cf-el-saved{margin-top:auto;padding-top:14px;border-top:1px solid #d8e8e0;font-size:12px}
.cf-el-saved summary{cursor:pointer;font-weight:700;color:#234b40;font-size:13px}
.cf-el-saved summary span{color:#748c7f;font-weight:500;margin-left:6px}
.cf-el-saved ul{margin:6px 0 0;padding-left:20px}
.cf-el-saved li{padding:3px 0}
.cf-el-saved #cf-el-saved-list:not(:has(ul)){padding-top:6px;color:#71857b}
.cf-el-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cf-el-note-output{width:100%;margin-top:10px}
.cf-el-modal.cf-el-expanded{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:460px){.cf-el-box{padding:19px 16px}.cf-el-home{font-size:17px}}
@media(max-height:735px){.cf-el-modal{padding-top:21px;padding-bottom:13px}.cf-el-modal .cf-el-intro{line-height:1.5;margin-bottom:12px}.cf-el-modal h2{margin-bottom:11px}.cf-el-consent{margin:11px 0 9px}.cf-el-disclosure{margin-bottom:10px}.cf-el-modal .cf-el-label{margin-top:10px;margin-bottom:5px}.cf-el-record-row{margin:10px 0 5px}.cf-el-saved{padding-top:9px}}
@media(max-height:600px){.cf-el-modal{padding-top:13px;padding-bottom:9px}.cf-el-modal .cf-el-intro{font-size:12px;line-height:1.38;margin-bottom:7px}.cf-el-modal h2{font-size:21px;margin-bottom:7px}.cf-el-modal .cf-el-label{font-size:12px;margin-top:6px;margin-bottom:4px}.cf-el-status{min-height:31px;padding:8px 10px;font-size:11px}.cf-el-consent{font-size:11px;line-height:1.3;margin:7px 0 5px}.cf-el-disclosure{font-size:10px;line-height:1.3;margin-bottom:6px}.cf-el-file-picker{min-height:38px}.cf-el-modal input[type=text]{height:37px;min-height:37px}.cf-el-record-row .cf-el-action{min-height:34px;padding:6px 10px}.cf-el-record-row{margin:7px 0 3px}.cf-el-save{min-height:38px}.cf-el-saved{padding-top:6px}}

/* V16.22: branded badge and accessible file-type feedback. */
.cf-el-home{position:relative;gap:10px}.cf-clone-hot{position:absolute;right:11px;top:-12px;transform:rotate(8deg);background:linear-gradient(115deg,#9b202c,#f44259);color:white;letter-spacing:.09em;font-size:10px;line-height:1;padding:7px 10px;border-radius:7px 9px 9px 3px;border:2px solid #ffe1dd;box-shadow:0 4px 14px #b41b4b40;font-weight:900;animation:cfHotGlow 2.7s ease-in-out infinite}
@keyframes cfHotGlow{50%{box-shadow:0 3px 18px #df234e99;transform:rotate(6deg) scale(1.04)}}
.cf-el-status-error{background:#ffe8ea!important;color:#ad1024!important;border:1px solid #ee8493!important}
.cf-el-file-alert{position:fixed;z-index:2147483647;left:50%;top:calc(env(safe-area-inset-top,0px) + 18px);width:min(92vw,450px);transform:translateX(-50%);background:#b91c32;color:#fff;padding:16px 18px;border:2px solid #f8c4ce;border-radius:17px;box-shadow:0 15px 50px #5e0e2355;font:700 14px/1.45 system-ui,sans-serif;overflow-wrap:anywhere;text-align:left}
@media(prefers-reduced-motion:reduce){.cf-clone-hot{animation:none}}

/* V16.23: position the voice-cloning CTA directly below Start a new call.
   Keep the original four action cards below it; no change to their handlers. */
.hero-actions > #cf-el-home-btn{
  width:min(100%,560px);
  max-width:100%;
  margin-top:4px;
  margin-bottom:4px;
  flex-shrink:0;
}
@media(max-width:620px){
  .hero-actions > #cf-el-home-btn{width:100%;}
}

/* V16.32 — safe account-wide voice-capacity feedback and explicit own-voice removal. */
.cf-el-capacity:not([hidden]){display:block;padding:11px 13px;margin:0 0 8px;border-radius:13px;border:1px solid #e4ae68;background:#fff5e8;color:#794d1a;font-size:12px;line-height:1.45;font-weight:650}
.cf-el-file-picker-disabled{opacity:.55;pointer-events:none;cursor:not-allowed}
.cf-el-saved-item{display:flex;align-items:center;gap:8px;justify-content:space-between;list-style:disc;min-height:34px}
.cf-el-saved-item span{min-width:0;overflow-wrap:anywhere}
.cf-el-delete{flex:none;border:1px solid #e3bdba;border-radius:9px;padding:5px 9px;background:#fff8f7;color:#a33d36;font:700 11px Manrope,system-ui,sans-serif;cursor:pointer}
.cf-el-delete:focus-visible{outline:2px solid #ae514b;outline-offset:2px}

/* When shared clone capacity is full, don't show unusable recording controls. */
.cf-el-modal.cf-el-full{height:auto;min-height:0;max-height:calc(100dvh - 22px);overflow-y:auto}
.cf-el-modal.cf-el-full .cf-el-status,.cf-el-modal.cf-el-full .cf-el-label,.cf-el-modal.cf-el-full #cf-el-name,.cf-el-modal.cf-el-full .cf-el-record-row,.cf-el-modal.cf-el-full .cf-el-file-picker,.cf-el-modal.cf-el-full .cf-el-file-input,.cf-el-modal.cf-el-full .cf-el-consent,.cf-el-modal.cf-el-full .cf-el-disclosure,.cf-el-modal.cf-el-full .cf-el-save{display:none!important}
.cf-el-modal.cf-el-full .cf-el-intro{margin-bottom:12px}
.cf-el-modal.cf-el-full .cf-el-capacity{margin-bottom:10px}
.cf-el-modal.cf-el-full .cf-el-saved{margin-top:10px}

/* V16.33 — local audio conversion, scoped to the cloning upload field. */
.cf-el-convert-tools:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;column-gap:9px;row-gap:5px;margin:7px 0 0;color:#4a7061;font-size:11px;line-height:1.35}
.cf-el-convert-btn{border:1px solid #91c4af;border-radius:10px;background:#e5f5eb;color:#136b53;font-weight:800;font-size:12px;padding:8px 12px;min-height:34px;cursor:pointer;white-space:nowrap}
.cf-el-convert-btn:disabled{opacity:.55;cursor:wait}
.cf-el-convert-hint{flex:1;min-width:100px;overflow-wrap:anywhere}
#cf-el-convert-progress:not([hidden]){display:block;flex-basis:100%;width:100%;height:5px;accent-color:#128266;margin-top:2px}
.cf-el-modal:has(.cf-el-convert-tools:not([hidden])){overflow-y:auto;overscroll-behavior:contain}
@media(max-height:730px){.cf-el-convert-btn{padding:5px 10px;min-height:29px}.cf-el-convert-tools:not([hidden]){margin-top:5px}}

/* V16.34: one-time voice prep, no saved-customer-voice library. */
.cf-el-modal{height:auto;min-height:0;max-height:calc(100dvh - 22px);overflow-y:auto;overscroll-behavior:contain}
.cf-el-once-note{margin:9px 1px 0;text-align:center;color:#6f887c;font-size:11px;line-height:1.5}
.cf-el-modal.cf-el-full .cf-el-once-note{display:none}
.cf-el-box select{width:100%}

/* V16.40: compact branded temporary-unavailability popup. */
.cf-el-modal.cf-el-paused{height:auto!important;min-height:0!important;max-height:calc(100dvh - 28px);padding:28px 23px 25px;overflow-y:auto;zoom:1!important}
.cf-el-modal.cf-el-paused h2{font-size:26px;line-height:1.14;margin-bottom:12px}
.cf-el-modal.cf-el-paused .cf-el-intro{display:none}
.cf-el-modal.cf-el-paused .cf-el-capacity{display:block;padding:19px 18px;background:#eef8f2;color:#205d4c;border:1px solid #cde5d9;border-radius:17px;font-size:15px;line-height:1.55;font-weight:600;margin:16px 0 6px;overflow-wrap:anywhere}
.cf-el-modal.cf-el-paused .cf-el-once-note{display:none}

/* V16.45 permanent voice display refinements */
.cf-el-box .cf-el-action{margin-bottom:8px}.cf-el-box select{font-weight:650}
