/* Scoped theme repair for the reviewed surfaces. */
.ws-media-selection{display:grid;gap:12px;max-height:340px;overflow:auto}
.ws-media-selection img,.ws-media-selection video{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:8px}
.ws-media-selection p,.ws-media-selected-note{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#modal .ws-ref-drop{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;text-align:center!important;padding:22px!important}
#modal .ws-ref-drop>svg{width:30px!important;height:30px!important}
#modal .ws-ref-client-page>.ws-ref-head{position:relative!important;top:auto!important;box-shadow:none!important}
.wshp-hero{position:relative;padding-top:58px!important}.wshp-back{position:absolute;top:16px;left:24px;border:1px solid #547087;border-radius:8px;padding:8px 14px;background:transparent;color:inherit;cursor:pointer;font-weight:700}
.wshp-bot-avatar{width:64px!important;height:76px!important;background:transparent!important}.wshp-bot-avatar img{width:100%;height:100%;object-fit:contain}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-head,.ws-ref-client-card,.ws-ref-client-copy,.ws-ref-existing-list,.ws-ref-info-card,.ws-ref-search,.ws-ref-client-page){background:#f7f9fc!important;color:#172033!important;border-color:#cbd5e1!important;box-shadow:none!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-head h2,.ws-ref-head p,.ws-ref-head small,.ws-ref-client-card h3,.ws-ref-client-card-head,.ws-ref-client-empty,.ws-ref-client-empty-media,.ws-ref-info-card h3,.ws-ref-info-card p,.ws-ref-info-meta,.ws-ref-info-main,.ws-ref-existing-list p){color:#172033!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-client-media,.ws-ref-client-preview,.ws-ref-client-carousel,.ws-ref-client-stage-shell,.ws-ref-client-single,.ws-ref-media-stage,.ws-ref-thumb.empty){background:#eef2f7!important;color:#475569!important;border-color:#cbd5e1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-client-note,.ws-ref-client-copy label,.ws-ref-client-single-controls,.ws-ref-client-carousel-bar,.ws-ref-client-zoom-label,.ws-ref-client-empty-media *){color:#475569!important;background-color:transparent!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal .ws-ref-search input{background:#fff!important;color:#172033!important;min-height:34px!important;border:1px solid #cbd5e1!important;padding:6px 10px!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal .ws-ref-existing-list>.wsr-existing-row{background:#fff!important;color:#172033!important;border-color:#dbe3ee!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-existing-list small,.ws-ref-client-card small){color:#52657b!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button{opacity:1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button:is(.green,.whatsapp){color:#08783b!important;background:#e7f6ec!important;border-color:#16a34a!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button.purple{color:#6825b9!important;background:#f2eafa!important;border-color:#9333ea!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button.blue{color:#1458ae!important;background:#eaf2ff!important;border-color:#2563eb!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button:is(.gold,.yellow){color:#604000!important;background:#fff0bd!important;border-color:#d99500!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button:is(.danger,.red){color:#b42338!important;background:#fff0f2!important;border-color:#ef6676!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button.neutral{color:#334155!important;background:#f1f5f9!important;border-color:#94a3b8!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal button *{color:inherit!important;opacity:1!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium :is(button.btn,.ws-drawer-actions button,.wsp-drawer-actions button){color:#174b76!important;opacity:1!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium button *{color:inherit!important;opacity:1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead{background:#f8fafc!important;color:#172033!important;border-color:#cbd5e1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(.ws-lead-editor-summary,.ws-lead-editor-head,.ws-lead-save-actions,.ws-lead-editor-body){background:#f8fafc!important;border-color:#d7e0ea!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(h2,h3,label,.ws-lead-summary-title,.ws-lead-score b){color:#172033!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(p,small,em,.ws-lead-editor-form label){color:#52657b!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(input:not([type=checkbox]),select,textarea){background:#fff!important;color:#172033!important;border-color:#bdcddd!important;box-shadow:none!important;color-scheme:light}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(.ws-lead-facts>div,.ws-lead-advanced-toggle,.ws-lead-expand,.ws-lead-quick button){background:#edf3fa!important;border-color:#bdcddd!important;color:#215a94!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead :is(.ws-lead-facts b,.ws-lead-advanced-toggle b){color:#172033!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-modal-x{color:#334155!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-contact-actions .btn{background:#fff!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-contact-actions .btn .ws-lead-action-copy b{color:#172033!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-contact-actions .btn .ws-lead-action-copy small{color:#52657b!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn.is-close{background:#eef2f6!important;color:#334155!important;border-color:#94a3b8!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn.is-proposal{background:#eaf3ff!important;color:#1458ae!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn.is-delete{background:#fff0f2!important;color:#b42338!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions){display:flex!important;flex-wrap:wrap!important;gap:7px!important;background:transparent!important;border:0!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button{min-height:34px!important;padding:7px 10px!important;border-radius:8px!important;border:1px solid #3d5369!important;font-size:11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;opacity:1}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button::before{display:none!important}
#propostas.ccp .ccp-models :is(.ccp-actions,.ccp-propactions){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-blue{background:#102b48!important;color:#83c0ff!important;border-color:#387ac0!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-purple{background:#2d1c45!important;color:#d2a4ff!important;border-color:#8655ba!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-gold{background:#30280e!important;color:#ffd261!important;border-color:#b58b26!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-orange{background:#352516!important;color:#ffb35b!important;border-color:#b37a39!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-danger{background:#321b23!important;color:#ff929e!important;border-color:#bc5061!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-green{background:#123322!important;color:#68e7a1!important;border-color:#32915a!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button *{color:inherit!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button{background:#f4f7fb!important;color:#215a94!important;border-color:#bfcede!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-danger{background:#fff0f2!important;color:#b42338!important;border-color:#eda2ae!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-purple{background:#f3eafa!important;color:#6825b9!important;border-color:#c6a8e9!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-green{background:#e7f6ec!important;color:#08783b!important;border-color:#9bd5b0!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button:is(.ccvs-action-gold,.ccvs-action-orange){background:#fff4cf!important;color:#775100!important;border-color:#e7c36d!important}
html body:is(.light,.ws-theme-light) #propostas.ccp .ccp-status{background:#fff1c2!important;color:#705000!important;border:1px solid #dbb353!important;opacity:1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-client-actions button.approve{background:#e7f6ec!important;color:#08783b!important;border-color:#16a34a!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-client-actions button.adjust{background:#fff4cf!important;color:#775100!important;border-color:#c89414!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-client-actions button.reject{background:#fff0f2!important;color:#b42338!important;border-color:#ef6676!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-client-actions button.close{background:#f1f5f9!important;color:#334155!important;border-color:#94a3b8!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-head{background:#f8fafc!important;color:#172033!important;position:relative!important;box-shadow:none!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-client-card{background:#fff!important;color:#172033!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium button[onclick*="Kanban"]{color:#08783b!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium button[onclick*="discard"]{color:#b42338!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal{--rbg:#f8fafc;--rsurface:#fff;--rfield:#fff;--rline:#cbd5e1;--rtext:#172033;--rmuted:#52657b}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-score>span{background:#f8fafc!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-score{background:conic-gradient(#2f8fff calc(var(--score)*1%),#d8e5f5 0)!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-quick-title{color:#334155!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn:not(.is-save) .ws-modal-action-icon{color:inherit!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-field>i{color:#215a94!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-advanced label:has(input[type=checkbox]){background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal .ws-ref-adjust-list>article{min-height:110px!important;padding:16px!important;background:#fff!important}
#propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-cyan{background:#103342!important;color:#71d7f1!important;border-color:#337c91!important}
html body:is(.light,.ws-theme-light) #propostas#propostas.ccp :is(.ccp-actions,.ccp-propactions) button.ccvs-action-cyan{background:#e8f7fc!important;color:#09617b!important;border-color:#86c7d8!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium .ux3-drawer-footer{background:#fff!important;border-color:#d7e0ea!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium .ux3-drawer-footer .ux3-green{color:#08783b!important;background:#e7f6ec!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium .ux3-drawer-footer .ux3-blue{color:#1458ae!important;background:#eaf2ff!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium .ux3-drawer-footer .ux3-red{color:#b42338!important;background:#fff0f2!important}

html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal.ws-ref-client-modal .ws-ref-head::before{background:#f8fafc!important}
html body:is(.light,.ws-theme-light) #wsClassDrawerPremium .ux3-drawer-footer button:last-child{color:#b42338!important;background:#fff0f2!important}

/* V36: actual nested media surfaces and explicit SVG stroke tones. */
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal :is(.ws-ref-slides,.ws-ref-slide,.ws-ref-slide img,.ws-ref-client-slide,.ws-ref-client-slide img,.ws-ref-client-strip,.ws-ref-client-empty-media){background:#eef2f7!important;color:#475569!important;border-color:#bdcddd!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal .ws-ref-client-arrow{background:#fff!important;color:#215a94!important;border-color:#bdcddd!important}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn{--lead-action-tone:#334155}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .is-delete{--lead-action-tone:#b42338}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .is-proposal{--lead-action-tone:#1458ae}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .is-save{--lead-action-tone:#fff}
html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn .ws-modal-action-icon svg,html body:is(.light,.ws-theme-light) #modal.modal.open>.box.ws-modal-lead .ws-lead-save-actions .btn .ws-modal-action-icon svg *{color:var(--lead-action-tone)!important;stroke:var(--lead-action-tone)!important;opacity:1!important}
#modal.modal.open.ws-ref-modal [hidden]{display:none!important}

#wsRefMediaLightbox.ws-ref-lightbox.open{z-index:2147483647!important;pointer-events:auto!important}
html body:is(.light,.ws-theme-light) #modal.modal.open.ws-ref-modal .ws-ref-client-single img{background:#eef2f7!important}
