.ch-kpis,.ch-profile-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.ch-kpis article,.ch-profile-kpis article{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;display:grid;gap:5px}.ch-kpis small,.ch-profile-kpis small{color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.08em}.ch-kpis b,.ch-profile-kpis b{font-size:25px}.ch-kpis span{color:var(--text-muted);font-size:13px}.ch-filters{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:10px;margin-bottom:16px}.ch-filters input,.ch-filters select,.ch-reconcile select{width:100%;min-height:46px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:0 14px;font:inherit;color:var(--text)}.ch-table .table-wrap{overflow-x:auto}.ch-table table{min-width:1080px}.ch-table td{vertical-align:middle}.ch-table td small,.ch-table td>b+small{display:block;color:var(--text-muted);margin-top:4px}.ch-table .ch-purchase-value{white-space:nowrap}.ch-sort-heading{display:inline-flex;align-items:center;gap:6px;width:100%;margin:-8px -6px;padding:8px 6px;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}.ch-sort-heading:hover,.ch-sort-heading.active{color:#8f0d12}.ch-sort-heading:focus-visible{outline:3px solid #f3d37b;outline-offset:2px;border-radius:6px}.ch-sort-indicator{display:inline-grid;place-items:center;min-width:16px;height:16px;border-radius:999px;background:#f1e4e2;color:#8f0d12;font-size:11px;font-weight:900}.ch-person{display:flex;align-items:center;gap:12px}.ch-person i{width:38px;height:38px;border-radius:11px;background:#f7dfdf;color:#a90e12;display:grid;place-items:center;font-style:normal;font-weight:800;flex:0 0 auto}.ch-person small,.ch-person span{display:block;color:var(--text-muted);margin-top:3px}.ch-state,.ch-count{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700;background:#e6efeb;color:#286b57;white-space:nowrap}.ch-state.agreement{background:#e3eefb;color:#1d4f8f}.ch-state.overdue,.ch-state.legal{background:#f9dddd;color:#b11218}.ch-state.open,.ch-count.warning{background:#fff0ce;color:#8b5e00}.ch-link{border:0;background:none;padding:0;font:inherit;font-weight:700;color:inherit;cursor:pointer;text-align:left}.ch-reconcile{display:flex;gap:8px}.ch-profile-hero{background:linear-gradient(120deg,#320506,#7b1f16);color:#fff;border-radius:20px;padding:26px;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.ch-profile-hero .ch-person i{width:58px;height:58px;border-radius:15px}.ch-profile-hero h2{font-size:28px;margin:2px 0}.ch-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.ch-open-rates{background:#fff;color:#7b1f16;border-color:#fff;white-space:nowrap}.ch-open-rates:hover{background:#fff5df;border-color:#fff5df;color:#4a090a}.ch-open-rates:focus-visible{outline:3px solid #f3d37b;outline-offset:3px}.ch-contact-editor{margin:0 0 16px}.ch-contact-editor form{padding:0 22px 22px}.ch-contact-editor form[hidden]{display:none}.ch-contact-editor .modal-actions{margin-top:16px}.ch-profile-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.ch-profile-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:18px}.ch-profile-grid section,.ch-profile-grid aside{display:grid;gap:18px;align-content:start}.ch-path-card{display:flex;justify-content:space-between;gap:16px;padding:16px 20px;border-top:1px solid var(--border)}.ch-path-card>div:last-child{text-align:right}.ch-path-card small{display:block;color:var(--text-muted);margin-top:4px}.ch-coach-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px}.ch-coach-summary span{background:#f8f3f3;border-radius:12px;padding:14px}.ch-coach-summary b{font-size:22px;display:block}.ch-path-card small.ch-pack-validation{color:#8b5e00;font-weight:700}.ch-path-card small.ch-pack-validated{color:#286b57}.ch-pack-validation-note{margin:0 15px 12px;padding:10px 14px;border-radius:12px;background:#fff5df;border:1px solid #edc06c;color:#745018;font-size:13px}.ch-source{display:flex;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid var(--border)}.ch-source i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e1f3ed;color:#127255}.ch-source div{flex:1}.ch-source small{display:block;color:var(--text-muted);margin-top:3px}.ch-source a{font-weight:700;color:#a90e12}.ch-timeline{padding:8px 18px 18px}.ch-timeline>div{display:flex;gap:10px;padding:10px 0}.ch-timeline i{width:9px;height:9px;border-radius:50%;background:#c59c52;margin-top:5px}.ch-timeline p{margin:0}.ch-timeline span,.ch-timeline small{display:block;color:var(--text-muted);margin-top:2px}.ch-source-help{display:flex;gap:12px;align-items:center;padding:14px 18px;background:#fff5df;border:1px solid #edc06c;border-radius:14px;margin-bottom:16px}.ch-source-help span{color:#745018}.ch-destinations{display:flex;flex-wrap:wrap;gap:7px}.ch-destinations label input{position:absolute;opacity:0}.ch-destinations label span{display:inline-flex;border:1px solid var(--border);border-radius:999px;padding:7px 10px;cursor:pointer}.ch-destinations label input:checked+span{background:#4a090a;color:#fff;border-color:#4a090a}@media(max-width:1100px){.ch-kpis,.ch-profile-kpis{grid-template-columns:repeat(2,1fr)}.ch-filters{grid-template-columns:1fr 1fr}.ch-profile-grid{grid-template-columns:1fr}}@media(max-width:700px){.ch-kpis,.ch-profile-kpis,.ch-filters{grid-template-columns:1fr}.ch-profile-hero{align-items:flex-start;flex-wrap:wrap;gap:16px}.ch-profile-actions{width:100%;justify-content:flex-start}.ch-open-rates{width:100%;justify-content:center}.ch-path-card{display:grid}.ch-path-card>div:last-child{text-align:left}}
.ch-contact-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 20px;margin:0;padding:16px 22px 20px}.ch-contact-summary dt{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.ch-contact-summary dd{margin:4px 0 0;overflow-wrap:anywhere}.ch-contact-emails{border:1px solid var(--border,var(--line));border-radius:12px;padding:12px 16px;margin:16px 0}.ch-contact-emails legend{font-size:11px;font-weight:700;padding:0 6px}.ch-contact-emails p{margin:4px 0 10px;font-size:13px}.ch-contact-email{display:flex;gap:8px;margin:0 0 8px}.ch-contact-email input{flex:1;min-width:0}
/* #29: card unica «Collega un file Google» e cronologia delle fonti */
.ch-rate-source-tools .ch-import-excel{grid-template-columns:1fr}.ch-source-tab-table{width:100%;border-collapse:collapse;margin:8px 0 12px}.ch-source-tab-table th{text-align:left;font-size:11px;letter-spacing:.06em;color:var(--muted);padding:6px 8px}.ch-source-tab-table td{padding:8px;border-top:1px solid var(--line);vertical-align:middle}.ch-source-tab-table td small{display:block;color:var(--muted)}.ch-source-tab-table select{width:100%;min-width:180px}.ch-source-tab-table select:disabled{opacity:.7}.ch-new-source-error .btn{margin-left:6px}.ch-source-history{margin-top:6px;font-size:12px}.ch-source-history summary{cursor:pointer;color:var(--green)}.ch-source-history ol{margin:6px 0 0;padding-left:18px;max-height:220px;overflow:auto}.ch-source-history li{margin:0 0 4px}.ch-source-history small{display:block;color:var(--muted);overflow-wrap:anywhere}
/* #29 parte b: anagrafica collegata a un foglio */
.ch-new-source-existing{margin:8px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.ch-new-source-existing p{margin:4px 0}.ch-enrichment-columns{margin:10px 0}.ch-enrichment-columns>p{margin:6px 0 8px}.ch-enrichment-columns select{min-width:150px}.ch-enrichment-report{margin:6px 0;font-size:12px}.ch-enrichment-report p{margin:3px 0}.ch-enrichment-preview{margin:6px 0;padding-left:18px;max-height:260px;overflow:auto;font-size:12px}.ch-enrichment-preview li{margin:0 0 4px;overflow-wrap:anywhere}.ch-destination-fixed{display:flex;flex-direction:column;gap:2px}.ch-destination-fixed small{color:var(--muted)}[data-ch-enrichment-editor]:not(:empty){margin-top:8px}.ch-origin{display:block;color:var(--muted);font-size:11px}.ch-contact-summary .danger-text{display:block}

/* #19.12: pratiche di altri closer sullo stesso cliente, senza dettagli. */
.ch-other-practices{margin:0 0 16px;padding:12px 16px;border-radius:14px;background:#fff5df;border:1px solid #edc06c;color:#745018;font-size:14px}
