.cb-btn,.cb-editor .cb-btn,.cb-mail button,.ch-tools button,.ch-mobile button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 14px;border:1px solid transparent;border-radius:7px;font:600 .94rem/1.35 system-ui,sans-serif;cursor:pointer;color:#fff;background:#5042b1;text-decoration:none}
.cb-btn:hover,.cb-mail button:hover,.ch-tools button:hover,.ch-mobile button:hover{background:#3f3295;color:white}
.cb-btn.cb-secondary,.ch-tools .ch-secondary,.cb-mail button.secondary{background:#eeeaff;border:1px solid #9387d4;color:#392880}
.cb-btn:focus-visible,.cb-mail button:focus-visible,.ch-tools button:focus-visible{outline:3px solid #0076b0;outline-offset:2px}
.cb-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:.7rem;flex-wrap:wrap;margin:.6rem 0}.cb-editor{max-width:58rem}.cb-editor form{margin-top:1rem}.cb-editor .cb-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem;align-items:end;padding:.5rem 0}.cb-editor .cb-field>div{overflow-wrap:anywhere}.cb-editor label,.cb-mail label{display:grid;gap:.25rem}.cb-editor input,.cb-editor textarea,.cb-mail textarea{width:100%;box-sizing:border-box}.cb-editor form>button{margin:.8rem 0}.cb-editor [role=alert],.ch-tools [role=alert]{font-weight:bold;color:#b22929}.ch-tools,.ch-contacts{margin:.45rem 0;clear:both}.ch-contacts{border:0;padding:0}.ch-contacts legend{font:600 .88rem/1.5 system-ui,sans-serif}.ch-contacts label{display:inline-flex;align-items:center;gap:.3rem;margin:3px 12px 3px 0}.ch-contacts input[type=checkbox]{width:1.1rem;height:1.1rem;margin:0}.ch-contacts [hidden],.ch-tools [hidden]{display:none!important}.ch-tools img{display:block;background:white;padding:8px;width:176px;height:176px;box-sizing:content-box}.ch-tools p{margin:5px 0}.cb-mail textarea{min-height:12rem}.cb-mail button[type=submit]{margin-top:8px}
[data-bs-theme=dark] .cb-btn,[data-bs-theme=dark] .ch-tools button,[data-bs-theme=dark] .cb-mail button{background:#6858c3;color:#fff}[data-bs-theme=dark] .cb-secondary,[data-bs-theme=dark] .ch-secondary{background:#383052;color:#f3eeff;border-color:#a092da}
@media(max-width:640px){.cb-editor .cb-field{grid-template-columns:minmax(0,1fr);gap:.2rem}.cb-btn,.ch-tools button,.cb-mail button{min-height:44px}.cb-editor input,.cb-editor textarea,.cb-mail textarea{font-size:16px}}
.ch-mobile{max-width:30rem;margin:2rem auto;padding:1rem;font:400 1rem/1.5 system-ui,sans-serif;color:#24213b;background:white}.ch-mobile input{display:block;margin:.75rem 0;font-size:1rem}.ch-mobile button:disabled{opacity:.6}.ch-tools button:disabled{opacity:.65}
.client-360[data-cb-client],.client-360[data-cb-client] :is(.panel,.client-360-grid,.client-profile-card,.client-360-hero,.client-360-actions,.client-360-table,.table-responsive,dl,dd,.record-list,.activity-list){min-width:0;max-height:none!important;overflow:visible!important;overflow-wrap:anywhere}
.client-360[data-cb-client] .client-360-hero{position:static!important;height:auto!important;align-self:start}.client-360[data-cb-client] .client-360-actions .button,.client-360[data-cb-client] .button.secondary{opacity:1;color:#35246e;background:#eee9ff;border:1px solid #b2a5da}
.client-360[data-cb-client] .client-360-actions .button:not(.secondary){color:white;background:#5042b1}.client-360[data-cb-client] .cb-add{color:#44329a;font-weight:650;text-decoration:underline;text-underline-offset:.16em}.client-360[data-cb-client] .client-360-table{width:100%;table-layout:fixed;min-width:0!important}.client-360[data-cb-client] .client-360-table :is(td,th){white-space:normal!important}
[data-bs-theme=dark] .client-360[data-cb-client] .cb-add{color:#c9c0ff}
@media(max-width:1220px){.client-360[data-cb-client]{display:block!important}.client-360[data-cb-client] .client-360-kpis{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))!important;margin-block:.75rem}.client-360[data-cb-client] .client-360-hero{width:auto!important}}
@media(max-width:820px){.client-360[data-cb-client] .client-360-grid{grid-template-columns:minmax(0,1fr)!important}.client-360[data-cb-client] .client-360-table,.client-360[data-cb-client] .client-360-table tbody{display:block}.client-360[data-cb-client] .client-360-table tr:first-child:has(th){position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.client-360[data-cb-client] .client-360-table tr:has(td){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.5rem 0}.client-360[data-cb-client] .client-360-table td{display:block;min-width:0;padding:.4rem}.client-360[data-cb-client] .client-360-table td::before{content:attr(data-cb-label);display:block;font-weight:600;font-size:.82rem}}
@media(min-width:1200px){html:has(.client-360[data-cb-client]) #layout-menu{position:relative!important;inset:auto!important;align-self:flex-start;height:auto!important;max-height:none!important;overflow:visible!important;flex-shrink:0}html:has(.client-360[data-cb-client]) #layout-menu .menu-inner{height:auto!important;max-height:none!important;overflow:visible!important}html:has(.client-360[data-cb-client]) .layout-page{padding-inline-start:0!important;margin-inline-start:0!important}}
.cb-editor textarea,.cb-mail textarea{field-sizing:content;overflow:hidden;resize:none}.cb-toolbar .cb-btn{width:100%}
.client-360[data-cb-client] .client-360-actions a.button,.client-360[data-cb-client] .client-360-actions a.btn,.cb-editor .cb-btn,.cb-mail button,.ch-tools button,.ch-mobile button,.cb-mail a.button{background:#5042b1!important;color:#fff!important;border:1px solid #5042b1!important;opacity:1;text-decoration:none}
.client-360[data-cb-client] .client-360-actions a:hover,.cb-editor .cb-btn:hover,.cb-mail button:hover,.ch-tools button:hover,.cb-mail a.button:hover{background:#3e318d!important}
.client-360-actions a:focus-visible,.cb-mail a:focus-visible{outline:3px solid #167fa4;outline-offset:3px}

/* Shared CRM buttons in both themes, including the client header and linked workspace. */
.layout-page main :is(a.button,button.secondary,.btn-secondary,.btn-outline-secondary,.btn-label-secondary):not(:disabled,[aria-disabled=true],.disabled,.danger,.btn-danger){background:#5042b1!important;color:white!important;border-color:#5042b1!important;opacity:1!important}
.layout-page main :is(a.button,button.secondary,.btn-secondary,.btn-outline-secondary,.btn-label-secondary):not(:disabled,[aria-disabled=true],.disabled,.danger,.btn-danger):hover{background:#3e318d!important;border-color:#3e318d!important}
.layout-page main :is(a.button,button,.btn):focus-visible{outline:3px solid #167fa4;outline-offset:3px}
.cb-mail .cb-copy-option{display:inline-flex;align-items:center;gap:.4rem;margin-right:1rem}.cb-mail .cb-copy-option input{width:auto}.cb-mail fieldset{margin:.6rem 0;padding:.5rem .75rem}
