/* Clients and Partners - consistent CapTask profile components */
#clients-view > [hidden],
#clients-view .cp-tabs[hidden],
#clients-view .cp-overlay[hidden],
#partners-panel[hidden],
#partner-profile-panel[hidden] { display:none !important; }
.cp-tabs {display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.cp-tab {padding:9px 20px;border:1px solid #cbd5e1;border-radius:10px;color:#334155;background:#fff;font-weight:700;cursor:pointer}
.cp-tab.active {border-color:#d6df20;background:#d6df20;color:#19202a}
html.dark .cp-tab {background:#192332;border-color:#475569;color:#e2e8f0}
html.dark .cp-tab.active {background:#d6df20;border-color:#d6df20;color:#17212d}
.cp-toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}
.cp-toolbar h2 {font-size:1.4rem;font-weight:750;color:#1f2937}
.cp-toolbar p,.cp-hint {font-size:.83rem;color:#64748b}
.cp-toolbar-actions {display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cp-toolbar-actions input {min-width:215px;max-width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:10px;background:white;color:#1f2937}
.cp-btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:9px 14px;font-size:.84rem;font-weight:700;border:1px solid transparent;text-decoration:none;cursor:pointer;white-space:nowrap}
.cp-btn:disabled {opacity:.55;cursor:not-allowed}
.cp-primary {background:#d6df20;color:#1a242e;border-color:#bfcc17}
.cp-primary:hover {background:#e5ef55}
.cp-secondary {background:#fff;color:#334155;border-color:#d1d5db}
.cp-secondary:hover {background:#f5f7fb}
.cp-error {color:#b91c1c;font-size:.85rem;margin:5px 0}
.cp-error:empty {display:none}
.cp-empty {color:#64748b;border:1px dashed #cbd5e1;padding:24px 16px;text-align:center;border-radius:12px;font-size:.89rem}
.cp-card-contact {color:#64748b;font-size:.8rem;overflow-wrap:anywhere}
.cp-card-summary {white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.cp-logo-empty {display:grid;place-items:center;color:#64748b;font-size:1.3rem}
.cp-profile-bar {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.cp-profile-header {display:flex;align-items:center;gap:18px;padding:22px;background:linear-gradient(120deg,#f8fadf,#fff);border:1px solid #e4e9a1;border-radius:15px;margin-bottom:18px}
.cp-profile-logo {width:86px;height:86px;flex:0 0 86px;border:1px solid #e2e8f0;background:white;border-radius:13px;display:grid;place-items:center;color:#64748b;font-size:2rem;overflow:hidden}
.cp-profile-logo img {display:block;max-width:100%;max-height:100%;object-fit:contain}
.cp-profile-heading {min-width:0}
.cp-kicker {color:#77851c;letter-spacing:.12em;font-size:.68rem;font-weight:850;margin-bottom:5px}
.cp-profile-heading h2 {font-size:clamp(1.3rem,2.4vw,2rem);line-height:1.2;font-weight:800;color:#17212d;overflow-wrap:anywhere}
.cp-profile-heading p {font-size:.9rem;color:#475569;max-width:850px;white-space:pre-line;overflow-wrap:anywhere;margin-top:8px}
.cp-profile-links {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.cp-profile-layout {display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px;align-items:start}
.cp-profile-main {display:grid;gap:18px;min-width:0}
.cp-section {background:white;padding:20px;border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 2px 10px rgba(0,0,0,.035);min-width:0}
.cp-section h3 {font-size:1rem;font-weight:750;color:#1f2937}
.cp-section h3 i {color:#96a610;margin-right:6px}
.cp-section-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:10px}
.cp-shortcuts {display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:16px}
.cp-shortcut {border:1px solid #e0e6ad;border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center;min-width:0;transition:box-shadow .15s}
.cp-shortcut:hover {box-shadow:0 4px 12px rgba(3,10,30,.1)}
.cp-shortcut-link {display:flex;align-items:center;gap:9px;min-width:0;padding:12px;flex:1;color:#202b36;text-decoration:none}
.cp-shortcut .sc-chip {flex:0 0 34px}
.cp-shortcut-title {font-weight:700;font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-shortcut-external {color:#94a3b8;font-size:.7rem}
.cp-shortcut-actions {display:flex;gap:2px;padding-right:8px}
.cp-shortcut-actions button,.cp-note button,.cp-icon-btn {border:0;background:transparent;color:#64748b;padding:7px;cursor:pointer}
.cp-shortcut-actions button:hover,.cp-note button:hover,.cp-icon-btn:hover {color:#cf4c22}
.cp-contact dl {display:grid;gap:14px;margin-top:16px}
.cp-contact dt {font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:750}
.cp-contact dd {font-size:.89rem;color:#1e293b;margin-top:3px;overflow-wrap:anywhere}
.cp-contact dd a {color:#2563eb;text-decoration:underline}
.cp-section textarea,.cp-form textarea {min-height:82px}
.cp-section textarea,.cp-form input,.cp-form textarea,.cp-form select {width:100%;background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:10px;color:#1e293b;outline-offset:2px}
.cp-form-actions {display:flex;justify-content:flex-end;gap:9px;margin-top:10px}
.cp-notes {display:grid;gap:10px;margin-top:15px}
.cp-note {border:1px solid #e2e8f0;border-radius:11px;padding:12px 14px}
.cp-note-head {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:5px}
.cp-note-head small {font-size:.72rem;color:#64748b}
.cp-note p {font-size:.85rem;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere}
.cp-overlay {position:fixed;inset:0;z-index:1200;background:rgba(8,15,28,.64);overflow-y:auto;display:flex;align-items:flex-start;justify-content:center;padding:5vh 16px}
.cp-dialog {width:min(680px,100%);border-radius:16px;background:#fff;padding:24px;color:#1e293b;box-shadow:0 15px 50px rgba(0,0,0,.25)}
.cp-dialog-small {max-width:500px}
.cp-dialog-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.cp-dialog-head h3 {font-size:1.25rem;font-weight:800}
.cp-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cp-form label {font-size:.82rem;font-weight:650;display:grid;gap:6px}
.cp-full {grid-column:1/-1}
.cp-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.dark .cp-toolbar h2,html.dark .cp-section h3,html.dark .cp-contact dd,html.dark .cp-note p {color:#e5e7eb}
html.dark .cp-toolbar p,html.dark .cp-hint,html.dark .cp-contact dt,html.dark .cp-note small {color:#aab8cb}
html.dark .cp-profile-header {background:linear-gradient(120deg,#263227,#18212d);border-color:#49532c}
html.dark .cp-profile-heading h2 {color:#f8fafc}
html.dark .cp-profile-heading p {color:#cbd5e1}
html.dark .cp-section,html.dark .cp-dialog,html.dark .cp-shortcut,html.dark .cp-note {background:#1c2636;color:#f8fafc;border-color:#475569}
html.dark .cp-shortcut-link {color:#f8fafc}
html.dark .cp-secondary {background:#253249;color:#e2e8f0;border-color:#64748b}
html.dark .cp-toolbar-actions input,html.dark .cp-form input,html.dark .cp-form textarea,html.dark .cp-form select,html.dark .cp-section textarea {background:#121b2a;color:#f8fafc;border-color:#475569}
@media(max-width:820px){.cp-profile-layout{grid-template-columns:minmax(0,1fr)}.cp-toolbar-actions{width:100%}.cp-toolbar-actions input{flex:1}}
@media(max-width:560px){.cp-profile-header{align-items:flex-start;padding:15px;gap:12px}.cp-profile-logo{width:62px;height:62px;flex-basis:62px}.cp-form{grid-template-columns:1fr}.cp-section{padding:14px}.cp-profile-bar .cp-btn{flex:1}}
