#workspace.crm-active{display:block!important;overflow:auto}#workspace.crm-active>*:not(#crmPage){display:none!important}.app.crm-open #messenger,.app.crm-open #chatLauncher{display:none!important}.crm-page{max-width:1220px;margin:auto;padding:28px 30px 80px;color:#263e33}.crm-page[hidden],#openPersonalCRM[hidden],#contactsPersonalCRM[hidden],#openArchiveCRM[hidden]{display:none!important}.crm-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.crm-heading h1{font-size:24px;letter-spacing:-.5px;margin:0 0 8px}.crm-heading p,.crm-help{font-size:13px;line-height:1.8;color:#75847b;margin:0}.crm-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.crm-tabs{display:flex;gap:22px;border-bottom:1px solid #dde6df;margin:20px 0}.crm-tab{border:0;border-bottom:2px solid transparent;padding:12px 0;background:none;font:inherit;font-size:14px;color:#77897e;cursor:pointer}.crm-tab.selected{border-color:#16805b;color:#176d50;font-weight:600}.crm-tools{display:flex;align-items:center;gap:10px;margin:14px 0}.crm-tools input[type=search]{flex:1;min-width:80px;max-width:480px}.crm-page input:not([type=checkbox]):not([type=radio]):not([type=file]),.crm-page select,.crm-page textarea{box-sizing:border-box;width:100%;min-width:0;min-height:42px;border:1px solid #dce5df;border-radius:8px;background:#fff;padding:10px 12px;font:inherit;font-size:14px;color:#2b4336}.crm-page textarea{resize:vertical}.crm-page input:focus,.crm-page select:focus,.crm-page textarea:focus{outline:2px solid #29845e;outline-offset:1px}.crm-page label{font-size:12px;color:#5b7163;display:grid;gap:7px}.crm-check{display:flex!important;align-items:center;gap:7px!important;font-size:13px!important}.crm-check input{accent-color:#18805c;width:16px;height:16px;flex:none}.crm-count{font-size:12px;color:#7e8e83;margin:20px 0 12px}.crm-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.crm-card{min-width:0;border:1px solid #e1e8e3;background:#fff;border-radius:12px;padding:18px}.crm-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.crm-card-top strong{font-size:15px;overflow-wrap:anywhere}.crm-category{font-size:10px;background:#f0f5f2;color:#577262;padding:4px 7px;border-radius:5px;max-width:55%;flex:none}.crm-card-phone{font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.3px;margin-top:12px;overflow-wrap:anywhere}.crm-card-note{font-size:13px;color:#708476;margin:9px 0 12px;line-height:1.7;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;white-space:pre-wrap}.crm-card-meta{font-size:11px;line-height:1.7;color:#8a988f;overflow-wrap:anywhere}.crm-card-actions{margin-top:14px;border-top:1px solid #edf1ed;padding-top:12px}.crm-card-actions button{width:100%;font-size:12px}.crm-card.duplicate{border-color:#e5a5a3;background:#fffafa}.crm-match-details{font-size:12px;color:#b34942;margin-top:10px}.crm-match-details p{line-height:1.8;margin:5px 0}.crm-duplicate-summary{padding:13px 16px;border:1px solid #edc4bf;background:#fff5f3;border-radius:8px;color:#a94137;font-size:14px;line-height:1.8}.crm-duplicate-summary small{display:block;font-size:11px;color:#a06c65}.crm-pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:24px 0;font-size:13px;color:#7b8c80}.crm-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#15704e;line-height:1.7}.crm-message:empty{display:none}.crm-message.crm-error{background:#fff2ef;color:#b44034;border-radius:8px;padding:12px}.crm-empty{grid-column:1/-1;padding:64px 20px;text-align:center;color:#7c9080;font-size:14px;line-height:1.9}.crm-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.crm-field-wide{margin:20px 0}.crm-guidance{font-size:12px;line-height:1.9;color:#7b8e80;background:#f2f6f3;padding:14px 18px;border-radius:9px;margin:20px 0}.crm-guidance summary{cursor:pointer;color:#3c6951}.crm-guidance p{margin:8px 0 0}.crm-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.crm-page h2{font-size:17px;margin:0 0 14px}.crm-visits fieldset{border:1px solid #e0e9e2;border-radius:10px;padding:16px;margin:14px 0}.crm-visits legend{font-size:12px;color:#7b8e80;padding:0 6px}.crm-visits label{margin-bottom:12px}.crm-text-button{border:0;background:transparent;color:#8d6b62;padding:8px 0;font:inherit;font-size:12px;cursor:pointer}.crm-form-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 0;margin-top:24px;border-top:1px solid #e3ebe5}.crm-attachments,.crm-history{margin:22px 0;color:#6a7e6e;font-size:13px}.crm-attachments summary,.crm-history summary{cursor:pointer;padding:10px 0}#crmDropzone{border:1px dashed #c6d6c9;border-radius:10px;background:#f5f8f5;padding:18px;font-size:12px}#crmDropzone p{margin:0 0 12px}#crmImages{max-width:100%;font-size:12px}#crmImagePreviews{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px}#crmImagePreviews>div{width:90px}#crmImagePreviews img{display:block;width:90px;height:110px;object-fit:contain;background:white;border:1px solid #e1e8e3;border-radius:7px}#crmImagePreviews button{width:100%}.crm-history p{white-space:pre-wrap;border-bottom:1px solid #e7ece8;padding:12px 0;overflow-wrap:anywhere}.crm-import,.crm-export{max-width:780px}.crm-import>label{margin:20px 0}.crm-import input[type=file]{padding:16px;background:#f1f6f2;border-radius:8px}.crm-import .primary-btn{margin-top:16px}.crm-preview-table{overflow:auto;border:1px solid #e0e7e2;border-radius:8px}.crm-preview-table table{border-collapse:collapse;width:100%;min-width:600px;font-size:12px}.crm-preview-table th,.crm-preview-table td{text-align:left;border-bottom:1px solid #e6ece7;padding:12px;line-height:1.8;overflow-wrap:anywhere}.crm-preview-table th{background:#f2f6f3}.crm-preview-table tr.duplicate{background:#fff5f3;color:#ac4b42}.crm-warnings{color:#a7743d;font-size:12px;line-height:1.8;padding-left:20px}#crmImportPreview{margin-top:30px}.crm-export fieldset{margin:20px 0;border:1px solid #dce6de;border-radius:10px;padding:18px}.crm-export legend{padding:0 8px;font-size:13px;color:#66806d}.crm-export fieldset label{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}.crm-export input[type=radio]{accent-color:#16805b;width:17px;height:17px}.crm-preset{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}.crm-export>.crm-help{margin:20px 0}.crm-page button:disabled{opacity:.45;cursor:default}.crm-page button:focus-visible{outline:2px solid #278562;outline-offset:3px}
@media(max-width:1000px){.crm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-heading{flex-wrap:wrap}}@media(max-width:760px){.crm-page{padding:20px 16px calc(90px + env(safe-area-inset-bottom));max-width:100%;overflow-x:hidden}.crm-heading{gap:12px;margin-bottom:12px}.crm-heading h1{font-size:21px}.crm-heading p{font-size:12px}.crm-actions{width:100%;gap:7px}.crm-actions button{flex:1;padding:10px 8px;font-size:12px;min-height:42px}.crm-tools{flex-wrap:wrap;gap:8px}.crm-tools input[type=search]{flex-basis:100%;max-width:none}.crm-tools button{min-height:38px;font-size:12px;padding:8px 12px}.crm-check{margin-right:auto}.crm-cards{grid-template-columns:1fr;gap:10px}.crm-card{padding:16px}.crm-card-actions button{min-height:40px}.crm-card-note{-webkit-line-clamp:2}.crm-fields{gap:15px 12px}.crm-fields label{min-width:0;font-size:11px}.crm-page input:not([type=checkbox]):not([type=radio]):not([type=file]),.crm-page select,.crm-page textarea{font-size:16px;min-height:44px;padding:10px;max-width:100%}.crm-form-footer{position:sticky;bottom:0;background:#fff;padding:12px 0;margin-bottom:0;z-index:2}.crm-form-footer button{flex:1;min-height:46px}.crm-guidance{padding:12px}.crm-visits .crm-fields{grid-template-columns:1fr}.crm-visits fieldset{padding:12px}.crm-export fieldset label{font-size:13px}.crm-preset button{flex:1;padding:9px 5px;font-size:12px}.crm-tabs{margin:10px 0}.crm-tab{font-size:13px}.crm-history{max-width:100%}.crm-card-meta{font-size:11px}.crm-preview-table td{max-width:240px}.crm-page .primary-btn{min-height:44px}}

@media(max-width:760px){.crm-fields .crm-date-field{grid-column:1/-1}}
