.ca-panel{padding:26px;display:grid;gap:20px}.ca-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.ca-heading h2,.ca-card h3{margin:0;color:#244a4b}.ca-heading p,.ca-help{color:#6b8185;line-height:1.7;margin:6px 0}.ca-settings{display:flex;align-items:end;gap:20px;flex-wrap:wrap;padding:20px;border:1px solid #dcebea;border-radius:14px;background:#f6faf9}.ca-settings label{display:grid;gap:8px;font-weight:600}.ca-settings .ca-toggle{display:flex;align-items:center;align-self:center;gap:8px}.ca-settings select{min-width:240px}.ca-metrics{display:flex;gap:30px;flex-wrap:wrap;padding:18px 0;border-block:1px solid #e7eeee;color:#6b8185}.ca-metrics strong{font-size:25px;color:#2a8875;margin-right:5px}.ca-card-list{display:grid;gap:18px}.ca-card{border:1px solid #e0ebeb;padding:22px;border-radius:14px;background:white}.ca-card-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:18px}.ca-card h3{font-size:17px}.ca-script-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,2fr);gap:24px}.ca-script-grid label{display:grid;gap:8px;font-size:14px;color:#526d72}.ca-script-grid textarea{width:100%;min-height:175px;line-height:1.85;resize:vertical}.ca-source{white-space:pre-wrap;line-height:1.85;max-height:280px;overflow:auto;padding:12px 0;font-size:14px;color:#6d8083}.ca-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.ca-preview{display:flex;align-items:center;gap:18px;padding:14px 18px;border-radius:12px;background:#edf7f3}.ca-error{color:#a65c20;font-size:14px}.ca-pagination{display:flex;align-items:center;justify-content:center;gap:18px}.ca-card button:disabled{opacity:.48;cursor:default}@media(max-width:900px){.ca-script-grid{grid-template-columns:1fr}.ca-card-head,.ca-heading{align-items:flex-start;flex-direction:column}.ca-preview{flex-wrap:wrap}.ca-panel{padding:16px}}

.ca-settings .ca-toggle{flex-shrink:0;white-space:nowrap}.ca-toggle input[type=checkbox]{width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:0}.ca-toggle span{white-space:nowrap;font-size:14px;line-height:1.6}
.ca-card-location{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px;font-size:13px;color:#637681}.ca-card-location>strong{padding:5px 10px;border-radius:7px;background:#f0f3f7;color:#58697c;white-space:nowrap}.ca-card-location>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:5px 10px;border:1px solid #e3ddf7;border-radius:7px;background:#f7f4ff}.ca-card-location b{font-weight:600;color:#655397}.ca-card-location small{font-size:12px;color:#7c7892}.ca-batch-footer{margin-top:4px}.ca-clear-selection{border-color:#9badaa;color:#345953}@media(max-width:900px){.ca-card-location>span{align-items:flex-start;flex-direction:column;gap:3px}}
.ca-batch{padding:20px;border:1px solid #cddfdb;border-radius:14px;background:#f4faf8}.ca-batch h3{margin:0;color:#244a4b;font-size:18px}.ca-batch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}.ca-selection-count{color:#3c7066;font-size:14px;white-space:nowrap}.ca-batch-divider{height:24px;width:1px;background:#d7e4e0;margin:0 4px}.ca-batch-progress{margin-top:16px;padding:16px;background:white;border-radius:10px;border:1px solid #dcebe6}.ca-batch-progress progress{display:block;width:100%;height:8px;margin:14px 0;accent-color:#33977c}.ca-batch-progress p,.ca-batch-progress li{font-size:14px;line-height:1.7;color:#526d72;margin:6px 0}.ca-batch-progress ul{margin-bottom:0;padding-left:20px}.ca-card-select{display:flex;align-items:center;gap:12px;cursor:pointer;min-width:0}.ca-card-select input[type=checkbox]{width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#33977c}.ca-card.is-selected{border-color:#68ad99;box-shadow:0 0 0 1px #68ad9920}.ca-quick-actions summary{cursor:pointer;color:#526d72;font-size:14px}.ca-help a{color:#287e69}.ca-panel button:disabled{opacity:.48;cursor:default}@media(max-width:900px){.ca-batch{padding:16px}.ca-selection-count{white-space:normal}.ca-batch-divider{display:none}.ca-batch-actions button{flex:1 1 180px}}
.ca-voice-preview{padding:18px 20px;border:1px solid #dcdcf0;border-radius:14px;background:linear-gradient(120deg,#f3f7ff,#f6f1ff)}.ca-voice-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ca-voice-preview-heading>div{display:grid;gap:6px}.ca-voice-preview strong{color:#394565;font-size:16px}.ca-voice-feedback,.ca-voice-preview small{font-size:13px;color:#6d6e8d;line-height:1.7}.ca-voice-preview audio{display:block;width:min(100%,460px);height:38px;margin:14px 0}.ca-voice-preview p{margin:8px 0;color:#53617b;font-size:14px;line-height:1.8}.ca-card.is-working{border-color:#b8a9ed;background:linear-gradient(115deg,#fafaff 0%,#eaf2ff 35%,#f1e9ff 65%,#fafaff 100%);background-size:220% 220%;box-shadow:0 4px 20px #8572c614;animation:ca-card-flow 5s ease-in-out infinite}.ca-card.is-working .status-pill{background:#e9e3fb;color:#594696;border:1px solid #d9ccf3}.ca-card.is-queued{background:#faf9ff;border-color:#ddd7f0}.ca-work-note{display:flex;align-items:center;gap:9px;margin:0 0 14px;color:#6751a2;font-size:13px;font-weight:600}.ca-work-note::before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:#a998d3}.is-working .ca-work-note::before{background:#8370d9;box-shadow:0 0 0 4px #a997e522;animation:ca-work-pulse 1.8s ease-in-out infinite}.ca-work-note[hidden],.ca-job-sync[hidden],.ca-job-error[hidden],.ca-voice-summary[hidden]{display:none}.ca-card.is-working textarea{background:#ffffffd9}@keyframes ca-card-flow{0%,100%{background-position:0% 45%}50%{background-position:100% 55%}}@keyframes ca-work-pulse{0%,100%{opacity:.5}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.ca-card.is-working,.is-working .ca-work-note::before{animation:none}}@media(max-width:900px){.ca-voice-preview-heading{align-items:flex-start;flex-direction:column}.ca-voice-preview{padding:16px}}
/* Three-column workspace: the existing CRM navigation is the first column. */
.ca-status{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.ca-panel .ca-status .status-pill{font-weight:600;border:1px solid transparent;padding:4px 9px;border-radius:7px;line-height:1.6}.ca-panel .ca-status .ca-status-ready{background:#e9efff;border-color:#b8c8fa;color:#344caa}.ca-panel .ca-status .ca-status-published{background:#daf4e6;border-color:#83c9a6;color:#17603e}.ca-panel .ca-status .ca-status-working{background:#eee7ff;border-color:#c9b6ef;color:#624095}.ca-panel .ca-status .ca-status-warning{background:#fff0d8;border-color:#edc78d;color:#894715}.ca-panel .ca-status .ca-status-draft{background:#fff6df;color:#7a5921;border-color:#e9d5a0}.ca-panel .ca-status .ca-status-neutral{background:#f1f4f5;color:#53656b;border-color:#dbe3e6}
/* Keep controls above the CRM panel watermark without inheriting its relative positioning. */
.ca-panel>aside.ca-batch-dock{position:fixed;z-index:110}
.ca-feedback{padding:13px 16px;border:1px solid #9bcab9;border-radius:10px;background:#ecf8f2;color:#235c48;font-size:14px;line-height:1.8}.ca-publish-help{color:#526d72;font-size:13px;line-height:1.7;margin:6px 0}.ca-queue-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fff5e9;border:1px solid #e9cfaa;border-radius:9px;color:#785229;font-size:13px;line-height:1.7}.ca-queue-controls button{flex:none}
.ca-batch-dock{position:fixed;z-index:110;bottom:18px;left:max(275px,calc((100vw - 1120px)/2));right:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border:1px solid #baabe9;border-radius:14px;background:linear-gradient(115deg,#f0efff,#e6f0ff);box-shadow:0 8px 30px #483d7830}.ca-batch-dock>div:first-child{display:grid;gap:5px;min-width:0}.ca-batch-dock strong{color:#3b3671;font-size:15px}.ca-batch-dock span{color:#5b5a78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ca-batch-dock small{color:#676581;line-height:1.6}.ca-batch-dock .ca-actions{margin:0;flex:none}.ca-panel .ca-cancel{color:#8d3939;border-color:#d7aaaa;background:#fff}.has-batch-dock{padding-bottom:140px!important}
.ca-dialog-backdrop{position:fixed;inset:0;z-index:10000;background:#17253570;display:flex;align-items:center;justify-content:center;padding:20px}.ca-original-dialog{width:min(540px,100%);max-height:90vh;overflow:auto;box-sizing:border-box;background:#fff;border-radius:16px;padding:26px;box-shadow:0 18px 70px #18202d44}.ca-original-dialog h3{font-size:20px;color:#273d58;margin:0 0 16px}.ca-original-dialog p{font-size:15px;line-height:1.9;color:#536779}.ca-original-dialog .ca-actions{margin-top:22px}.ca-original-dialog button:focus-visible{outline:2px solid #725ac2;outline-offset:3px}@media(max-width:900px){.ca-batch-dock{left:14px;right:14px;bottom:10px;flex-wrap:wrap;gap:10px}.ca-queue-controls{align-items:flex-start;flex-direction:column}.ca-dialog-backdrop{padding:12px}}
.ca-panel{padding:20px;gap:14px;min-width:0}.ca-panel [hidden]{display:none!important}.ca-panel button{white-space:normal}.ca-settings-panel{border:1px solid #dce9e7;border-radius:12px;background:#f6faf9;padding:12px 16px}.ca-settings-panel>summary{cursor:pointer;color:#315e59;font-weight:600;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ca-settings-panel>summary>span{margin-left:auto;color:#688780;font-size:13px;font-weight:400}.ca-settings{padding:16px 0 8px;border:0;margin:0}.ca-metrics{padding:9px 0;gap:24px;align-items:center}.ca-metrics strong{font-size:22px}.ca-metrics small{margin-left:auto;color:#718387}.ca-heading h2{font-size:21px}.ca-heading p{font-size:13px}
.ca-workbench{display:grid;grid-template-columns:minmax(270px,34%) minmax(0,1fr);gap:16px;min-width:0;align-items:stretch}.ca-browser{min-width:0;border:1px solid #dfe9e8;border-radius:13px;overflow:hidden;background:#fbfdfd;display:flex;flex-direction:column}.ca-list-tools{padding:16px;display:grid;gap:12px;border-bottom:1px solid #e0e9e8}.ca-list-tools h3{margin:0;font-size:16px;color:#244a4b}.ca-list-tools .ca-heading{gap:8px;align-items:center;flex-direction:row}.ca-list-tools label{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}.ca-list-tools select{min-width:0;width:auto;padding:6px 8px}.ca-filters{display:grid;grid-template-columns:1fr;gap:8px}.ca-filters input,.ca-filters select{width:100%;min-width:0}.ca-list-tools small{font-size:12px;line-height:1.7;color:#6d8380}.ca-selection-actions{display:flex;gap:6px;flex-wrap:wrap}.ca-selection-actions button{padding:5px 10px;font-size:12px;flex:1}.ca-list-scroll{height:610px;min-height:300px;overflow:auto;overscroll-behavior:contain;padding:8px;scrollbar-gutter:stable}.ca-card.ca-list-card{padding:10px;display:flex;align-items:flex-start;gap:9px;margin:4px 0;border-radius:10px;box-shadow:none}.ca-list-card>input[type=checkbox]{width:17px;height:17px;flex:none;margin:5px 0 0;accent-color:#318e7b}.ca-list-card .ca-card-open{display:grid;gap:7px;text-align:left;border:0;background:transparent;padding:0;box-shadow:none;flex:1;min-width:0;color:#294a4b;line-height:1.6}.ca-card-open strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.ca-card-open .status-pill{justify-self:start;font-size:11px;max-width:100%;white-space:normal}.ca-card.ca-list-card.is-current{border-color:#a398df;background:#f3f1ff}.ca-list-card .ca-card-location{gap:5px;margin:0;font-size:11px;display:flex;align-items:flex-start}.ca-list-card .ca-card-location>strong,.ca-list-card .ca-card-location>span{padding:1px 5px;font-size:11px;border:0;background:transparent}.ca-list-card .ca-card-location small{display:none}.ca-list-card .ca-card-location>span{color:#7d7796}.ca-pagination{padding:12px 10px;border-top:1px solid #e1e9e7;gap:10px;font-size:12px;margin-top:auto}.ca-pagination button{padding:6px 10px;font-size:12px}.ca-pagination span{text-align:center}
.ca-card-list{display:block;max-height:790px;min-width:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;border:1px solid #dfe9e8;border-radius:13px}.ca-card.ca-editor{border:0;padding:22px;min-height:100%;border-radius:0}.ca-editor .ca-card-head{display:grid;gap:10px;margin:12px 0 18px}.ca-editor .ca-card-head h3{font-size:19px;line-height:1.65}.ca-editor .ca-card-head .status-pill{justify-self:start}.ca-original{padding:14px 16px;border:1px solid #e3eae8;border-radius:10px;background:#f7faf9;margin-bottom:20px}.ca-original summary{font-size:14px;color:#3c625c;font-weight:600;cursor:pointer}.ca-original small{font-size:12px;font-weight:400;color:#88988f;margin-left:10px}.ca-source{max-height:220px;color:#657a78;padding:10px 0 0;font-size:14px}.ca-editor-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:15px;font-weight:600;color:#294d4b}.ca-panel .ca-ai{background:#f1efff;color:#6253ac;border-color:#dcd5f3;font-weight:500}.ca-editor textarea{width:100%;min-height:210px;resize:vertical;line-height:1.9;padding:14px;box-sizing:border-box;border:1px solid #d8e3e2;border-radius:9px;background:#fff;font-family:inherit;font-size:14px;line-height:1.9;color:#36575c}.ca-editor textarea:focus{outline:2px solid #a69ae7;outline-offset:1px}.ca-draft-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0;color:#80908e;font-size:12px}.ca-draft-tools span{margin-right:auto}.ca-draft-tools button{border:0;padding:4px;font-size:12px;color:#6d718e}.ca-editor .ca-actions{justify-content:flex-start;margin:12px 0}.ca-preview{padding:10px;gap:8px;flex-wrap:wrap}.ca-preview audio{width:min(100%,380px);height:38px}.ca-editor-empty{padding:40px;text-align:center;color:#82948e}.ca-batch{padding:16px 20px}.ca-batch h3{font-size:16px}.ca-batch .ca-heading>span{font-size:13px;color:#628077}.ca-batch-actions{margin:10px 0;gap:8px}.ca-batch-actions button{padding:8px 14px;font-size:13px}.ca-help{font-size:13px}.ca-batch-progress ul{max-height:180px;overflow:auto}.ca-batch-progress li button{border:0;color:#6657ad;padding:3px 6px}.ca-quick-actions{font-size:13px}.ca-quick-actions button{margin:10px 8px 0 0}.ca-panel button:focus-visible,.ca-card-open:focus-visible{outline:2px solid #8976d5;outline-offset:2px}
@media(max-width:1100px){.ca-workbench{grid-template-columns:minmax(240px,35%) minmax(0,1fr)}.ca-panel{padding:14px}.ca-card.ca-editor{padding:16px}.ca-editor .ca-card-head h3{font-size:17px}.ca-draft-tools{font-size:11px}}
@media(max-width:760px){.ca-workbench{grid-template-columns:1fr}.ca-list-scroll{height:260px;min-height:0}.ca-card-list{max-height:none;overflow:visible}.ca-settings-panel>summary>span,.ca-metrics small{margin-left:0}.ca-settings select{min-width:0;max-width:100%}.ca-settings .ca-toggle{white-space:normal}.ca-toggle span{white-space:normal}.ca-heading{gap:10px}.ca-list-tools .ca-heading{flex-direction:row}.ca-editor-label{flex-wrap:wrap}.ca-panel .ca-preview audio{max-width:100%}.ca-batch-actions button{flex:1 1 150px}}

.ca-generation-progress{margin-top:14px;padding:16px 18px;border:1px solid #d4d8f3;border-radius:11px;background:linear-gradient(115deg,#f7f8ff,#f4f8ff)}.ca-generation-progress .ca-heading strong{font-size:16px;color:#394778}.ca-generation-progress .ca-heading>span{font-size:12px;color:#6c7391}.ca-generation-progress progress{display:block;width:100%;height:10px;margin:15px 0;accent-color:#6b61d8}.ca-generation-counts{display:flex;flex-wrap:wrap;gap:10px 22px;color:#65708a;font-size:13px;line-height:1.7}.ca-generation-counts b{font-size:16px;color:#4559a0;margin-left:3px}.ca-generation-progress p{margin:9px 0 0;font-size:13px;line-height:1.7;color:#69728c}

.ca-batch-progress.ca-submit-summary{padding:10px 0 0;border:0;background:transparent}.ca-submit-summary .ca-heading strong{font-size:13px;color:#607477}.ca-submit-summary p{font-size:12px}

.ca-list-tools .ca-unit-picker{display:grid;gap:6px;white-space:normal;color:#526d72}.ca-unit-picker select{width:100%;max-width:100%}

/* Generation voice choices sit beside the production flow, not in global settings. */
.ca-panel{min-width:0;grid-template-columns:minmax(0,1fr)}
.ca-voice-mode,.ca-rotation-preview ol{min-width:0}
.ca-voice-mode{margin:16px 0;padding:20px;border:1px solid #dcdff1;border-radius:14px;background:linear-gradient(120deg,#f9faff,#f5f4fc);color:#354662}
.ca-voice-mode h3{margin:0;font-size:16px;color:#303e5b}
.ca-voice-mode .ca-heading p{margin:5px 0 0;font-size:13px;color:#788197}
.ca-mode-scope{font-size:12px;color:#7669a8;background:#eeebfa;border-radius:20px;padding:5px 10px;white-space:nowrap}
.ca-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.ca-panel button.ca-mode-option{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;padding:13px 16px;text-align:left;background:#fff;border:1px solid #dde2ee;border-radius:10px;color:#56617b;min-width:0;white-space:normal}
.ca-mode-option strong{font-size:14px;font-weight:600;padding-right:16px}
.ca-mode-option small{grid-column:2;font-size:12px;color:#8790a2;line-height:1.5}
.ca-panel button.ca-mode-option.is-selected{border-color:#8b7bd4;box-shadow:0 0 0 1px #8b7bd4;background:#f5f2ff;color:#6551a4}
.ca-mode-check{position:absolute;right:12px;top:13px;font-size:13px;color:#7560bf}
.ca-mode-dots{display:flex;grid-row:span 2;align-items:center;gap:3px;min-width:31px}
.ca-mode-dots i{display:block;width:8px;height:24px;border-radius:5px;background:var(--slot-color)}
.ca-mode-dots i:nth-child(2){height:32px}.ca-mode-dots i:nth-child(3){height:20px}
.ca-slot-0{--slot-color:#7a67c4;--slot-tint:#eee9fa}.ca-slot-1{--slot-color:#3d8b90;--slot-tint:#e1f1f0}.ca-slot-2{--slot-color:#b47a42;--slot-tint:#f7eddf}
.ca-voice-slots{display:grid;grid-template-columns:repeat(var(--ca-slots),minmax(0,1fr));gap:12px}
.ca-voice-slot{min-width:0;background:#fff;border:1px solid #e1e4ef;border-radius:10px;padding:12px}
.ca-voice-slot label{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600;color:#626e83;margin-bottom:9px}
.ca-slot-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:23px;height:23px;border-radius:7px;background:var(--slot-tint);color:var(--slot-color);font-size:11px;font-weight:700}
.ca-voice-slot>div{display:flex;gap:8px;align-items:center;min-width:0}
.ca-voice-slot select{width:100%;min-width:0;flex:1;border:1px solid #dce1ec;border-radius:7px;background:#fff;padding:8px;color:#38465d;font-size:13px;height:36px}
.ca-panel .ca-voice-slot button{flex:none;padding:7px 10px;font-size:12px;color:#6857a7;border:1px solid #e0daee;background:#faf9ff;white-space:nowrap}
.ca-rotation-preview{display:flex;align-items:center;gap:12px;margin-top:16px;min-width:0}
.ca-rotation-preview>span{font-size:12px;color:#7c859a;flex:none}
.ca-rotation-preview ol{display:flex;gap:8px;list-style:none;padding:0;margin:0;flex:1;overflow-x:auto}
.ca-rotation-preview li{display:flex;align-items:center;gap:7px;flex:1 0 100px;min-width:0;padding:8px;background:#ffffffa6;border:1px solid #e5e5ef;border-radius:8px;font-size:11px;color:#59647a}
.ca-rotation-preview li>span:last-child{min-width:0}.ca-rotation-preview small{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#8490a1;margin-top:3px}
.ca-mode-help{font-size:12px;line-height:1.8;color:#7a8397;margin:12px 0 0}
.ca-mode-sample{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:10px 12px;background:#fff;border:1px solid #e4e1ef;border-radius:9px;margin-top:12px;font-size:13px;color:#695a99}
.ca-mode-sample audio{height:34px;width:280px;max-width:100%}.ca-mode-sample small{color:#8790a0;font-size:12px}
.ca-panel button.ca-mode-link{border:0;background:none;color:#7765b1;font-size:12px;padding:4px 0}
.ca-voice-mode select:focus-visible{outline:2px solid #8976d5;outline-offset:2px}
@media(max-width:1100px){.ca-voice-slots{grid-template-columns:1fr}.ca-voice-slot{display:flex;align-items:center;gap:12px}.ca-voice-slot label{margin:0;flex:none}.ca-voice-slot>div{flex:1}.ca-panel button.ca-mode-option{padding:12px}.ca-mode-dots{display:none}.ca-mode-option small{grid-column:1}}
@media(max-width:760px){.ca-voice-mode{padding:14px}.ca-mode-options{gap:7px}.ca-panel button.ca-mode-option{display:block;padding:12px 8px}.ca-mode-option strong{font-size:13px;padding:0}.ca-mode-option small{display:none}.ca-mode-check{display:none}.ca-mode-scope{display:none}.ca-rotation-preview{display:block}.ca-rotation-preview ol{margin-top:8px}.ca-voice-slot{display:block}.ca-voice-slot label{margin-bottom:8px}}
