/* One Calenvella client-management workspace: dark base, cyan accents, orange actions. */
.cv-cm-main{max-width:1500px!important;width:min(100% - 28px,1500px)!important;margin:18px auto 48px!important;padding:0!important}
.cv-cm-header{padding:14px 5px 12px!important}
.cv-cm-header h1{font-size:clamp(27px,4vw,37px)!important;letter-spacing:-.035em;margin:3px 0 6px}
.cv-cm-header .cv-cm-sub{max-width:760px;color:#b7cbd4;font-size:14px;line-height:1.5}
.cv-unified-workspace{border:1px solid #285063;border-radius:18px;background:#071722;box-shadow:0 12px 36px rgba(0,0,0,.24);overflow:hidden;margin:12px 0 22px;min-width:0}
.cv-hub-topbar{background:#091d29;border-bottom:1px solid #325366;overflow:hidden}
.cv-hub-tabbar{display:flex;gap:5px;overflow-x:auto;padding:9px 10px;scrollbar-width:thin;scrollbar-color:#3b6d7a transparent;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.cv-hub-tab{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:10px 17px;border:1px solid transparent;border-radius:12px;color:#e4eff2;background:transparent;font-weight:760;font:inherit;font-size:14px;cursor:pointer}
.cv-hub-tab:hover{background:#143340;border-color:#3a6570}.cv-hub-tab[aria-selected="true"]{color:#001219;background:#20c7d6;border-color:#20c7d6;font-weight:800;box-shadow:inset 0 -3px 0 #ff7900}
.cv-hub-tab:focus-visible,.cv-hub-return:focus-visible{outline:2px solid #ff850d;outline-offset:2px}
.cv-hub-workspace{min-height:620px;position:relative}
.cv-hub-workspace-toolbar{background:#0b2230;border-bottom:1px solid #294b5c;padding:12px 15px;display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:64px}
.cv-hub-workspace-label{display:grid;gap:3px;min-width:0}.cv-hub-workspace-label b{font-size:16px;color:#fff}.cv-hub-workspace-label span{color:#adc6d1;font-size:12px;line-height:1.35}
.cv-hub-return{min-height:39px;background:#17313e;border:1px solid #426273;border-radius:9px;color:#e6f8ff;padding:8px 12px;cursor:pointer;font-size:12px;white-space:nowrap}
.cv-hub-loading{padding:28px 18px;color:#b4d8e0;font-size:14px;text-align:center}
#cvHubFrame{width:100%;height:1050px;min-height:600px;display:block;border:0;background:#071720;overflow:auto;color-scheme:dark}
#cvHubFrame:not([src]){display:none}
.cv-hub-overview[hidden],.cv-hub-workspace[hidden]{display:none!important}
.cv-hub-overview{padding:4px 3px 0}
.cv-hub-overview .cv-cm-actions:first-child{margin-top:8px}
.cv-hub-overview .cv-cm-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.cv-cm-direct{color:#39d9e4!important;font-weight:800!important}
@media(min-width:950px){.cv-cm-main{width:min(100% - 52px,1500px)!important}.cv-hub-tabbar{gap:8px;padding:11px 16px}.cv-hub-workspace-toolbar{padding:14px 25px}}
@media(max-width:600px){.cv-cm-main{width:calc(100% - 16px)!important;margin:9px auto 35px!important}.cv-cm-header{padding:10px 7px 7px!important}.cv-cm-header .cv-cm-sub{font-size:12px}.cv-unified-workspace{border-radius:13px}.cv-hub-tabbar{padding:7px 8px;gap:3px}.cv-hub-tab{font-size:12px;padding:9px 13px}.cv-hub-workspace-toolbar{padding:10px;min-height:54px}.cv-hub-workspace-label b{font-size:14px}.cv-hub-workspace-label span{font-size:11px}.cv-hub-return{font-size:11px;padding:6px 9px}.cv-hub-overview{padding:0}.cv-hub-overview .cv-cm-grid{grid-template-columns:1fr}}

.cv-hub-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cv-hub-open-full,.cv-hub-open-full:visited{color:#4dd9e4;text-decoration:underline;font-size:12px;font-weight:700;padding:8px}
.cv-hub-load-error{margin:10px 12px 20px;border:1px solid #ff7900;border-radius:10px;background:#162531;color:#eaf9fc;padding:18px;font-size:14px;line-height:1.5}
.cv-hub-load-error[hidden],#cvHubFrame[hidden]{display:none!important}
.cv-hub-load-error a{color:#38d7e2;text-decoration:underline;font-weight:700}
@media(max-width:600px){.cv-hub-workspace-toolbar{align-items:flex-start}.cv-hub-tools{justify-content:flex-end}.cv-hub-open-full{font-size:11px}}

/* Simplified Clients Overview, one directory, no duplicated client database tab. */
.cv-hub-tabbar{scroll-padding-inline:9px}
.cv-hub-overview{max-width:1200px;margin:0 auto;padding:12px clamp(9px,2.2vw,22px)!important}
.cv-cm-header{scroll-margin-top:95px}
.cv-unified-workspace,.cv-hub-topbar,.cv-hub-overview,.cv-cm-card{min-width:0}
.cv-hub-overview .cv-cm-actions.cv-cm-primary-actions{margin:5px 0 14px;gap:8px}
.cv-hub-overview .cv-cm-actions.cv-cm-primary-actions>*{flex:1 1 170px}
.cv-hub-overview .cv-cm-kpis{margin:10px 0}
.cv-cm-new-contact{margin:8px 0 16px}
.cv-cm-new-contact>summary{cursor:pointer;color:#7ceaf4;font-size:15px;font-weight:800;padding:5px 0}
.cv-cm-new-contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.cv-cm-new-contact-form label{display:flex;flex-direction:column;gap:5px;color:#d4ebf3;font-size:13px;font-weight:700}
.cv-cm-new-contact-form input,.cv-cm-new-contact-form textarea{min-height:43px;background:#061b25;color:#f3fcff;border:1px solid #3e7083;border-radius:9px;padding:10px 12px;box-sizing:border-box;font:inherit;font-size:16px;width:100%;min-width:0}
.cv-cm-new-contact-form button{border:1px solid #26c5d5;background:#26c5d5;color:#071d25;font-weight:800;border-radius:10px;min-height:44px;cursor:pointer}
.cv-cm-new-contact-form #cvHubAddClientResult{color:#97eff4;font-size:13px;margin:3px 0;overflow-wrap:anywhere}
.cv-cm-new-contact-form #cvHubAddClientResult a{color:#62e5ef;margin-left:5px;text-decoration:underline}
.cv-cm-new-contact-form .cv-cm-privacy{grid-column:1 / -1;margin:0}
.cv-cm-secondary-records{margin:13px 0;border:1px solid #2c596b;border-radius:13px;padding:0 12px;background:#0b202b}
.cv-cm-secondary-records>summary{cursor:pointer;color:#c7eff7;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:750}
.cv-cm-secondary-records[open]>summary{border-bottom:1px solid #335563}
.cv-cm-secondary-records .cv-cm-grid{margin-top:12px}
@media(max-width:620px){.cv-hub-overview{padding:10px 7px!important}.cv-cm-new-contact-form{grid-template-columns:1fr}.cv-hub-tabbar{scroll-snap-type:x proximity}.cv-hub-tab{scroll-snap-align:start}.cv-hub-overview .cv-cm-actions.cv-cm-primary-actions>*{flex:1 1 44%;padding:10px 7px!important}.cv-cm-header h1{font-size:28px!important}.cv-cm-header .cv-cm-sub{font-size:13px!important}}
