.crm-members-inline{display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap}
.customers-demo-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 14px;padding:14px 16px;border:1px solid #cfe4ef;border-radius:12px;background:linear-gradient(135deg,#f3f8fc,#eef7f8);color:#0a1633}
.customers-demo-banner.d-none,.project-no-team-notice.d-none,#customersNoTeam.d-none{display:none!important}
.customers-demo-banner__copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.customers-demo-banner__copy strong{font-size:14px;font-weight:650;color:#00558b}
.customers-demo-banner__copy span{font-size:13px;color:#5c6478;line-height:1.55}
.customers-demo-banner .crm-button{flex-shrink:0}
.customers-shell,.crm-dialog{--crm-accent:#009c98;--crm-ink:#192b33;--crm-line:#e2e9ed;--crm-muted:#72808b;color:var(--crm-ink);font-size:14px;line-height:1.6}
.customers-shell *,.crm-dialog *{box-sizing:border-box}
/* 外壳固定视口高度，列表与详情各自内部滚动，避免整页下滑后详情滚出视口 */
#customersPage.page-content:not(.d-none){flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:16px}
#customersPage .customers-demo-banner,#customersPage #customersNoTeam{flex:0 0 auto}
.customers-shell{display:grid;grid-template-columns:minmax(0,1fr);background:#fff;border:1px solid var(--crm-line);border-radius:12px;flex:1 1 auto;min-height:0;height:calc(100vh - 150px);max-height:calc(100vh - 150px);overflow:hidden}
.customers-shell.is-detail{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.customers-list-pane{padding:20px 22px;min-width:0;min-height:0;display:flex;flex-direction:column;gap:20px;overflow:hidden}
.customers-detail-pane{border-left:1px solid var(--crm-line);min-width:0;min-height:0;padding:24px;overflow:auto;background:#fff}
.customers-shell [hidden],.crm-dialog [hidden]{display:none!important}
.crm-scope-tabs,.crm-detail-tabs{display:flex;border-bottom:1px solid var(--crm-line);gap:28px}
.crm-scope-tabs button,.crm-detail-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:10px 4px 13px;font:inherit;color:#56636b;cursor:pointer;white-space:nowrap}
.crm-scope-tabs [aria-selected=true],.crm-detail-tabs [aria-current=page]{color:var(--crm-accent);font-weight:600;border-bottom-color:var(--crm-accent)}
.crm-scope-tabs{margin-bottom:6px;font-size:16px}
.customers-list-head{display:flex;gap:12px;align-items:center}.customers-list-head input{flex:1;min-width:100px}
.crm-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 12px;border:1px solid #dce5e9;border-radius:7px;background:#fff;color:#334950;font:inherit;cursor:pointer;white-space:nowrap;text-decoration:none}
.crm-button:hover{background:#f1f8f8;border-color:#9ccac8;color:#007f7c}.crm-button.crm-primary{background:var(--crm-accent);border-color:var(--crm-accent);color:#fff;font-weight:600}.crm-button.crm-primary:hover{background:#008783}.crm-button:disabled{opacity:.5;cursor:default}
.crm-input{width:100%;min-width:0;min-height:38px;border:1px solid #dce4e9;border-radius:7px;padding:8px 11px;background:#fff;color:#273e47;font:inherit;line-height:1.5}
.crm-input::placeholder{color:#98a3ab}.crm-input:focus{outline:2px solid #009c9840;border-color:var(--crm-accent)}
.crm-text-button{padding:2px;border:0;background:none;color:var(--crm-accent);font:inherit;cursor:pointer;white-space:nowrap}
.customers-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:center}.customers-filters .crm-input{padding:7px 6px;font-size:12px}
.crm-list-meta{display:flex;justify-content:space-between;align-items:center;color:var(--crm-muted);font-size:12px;margin-top:-8px;margin-bottom:-8px}
.customers-list{min-width:0;min-height:0;overflow:auto;border:1px solid var(--crm-line);border-radius:8px;flex:1}
.crm-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}.crm-table th{font-weight:600;color:#34454d;background:#f5f8fa;white-space:nowrap}.crm-table th,.crm-table td{padding:16px 12px;border-bottom:1px solid var(--crm-line);vertical-align:middle}.crm-table td{overflow-wrap:anywhere}.crm-table tr:last-child td{border-bottom:0}.crm-table tbody tr{cursor:pointer}.crm-table tbody tr:hover{background:#f2faf9}.crm-table tbody tr.is-active{background:#e0f5f3}
.crm-customer-name{border:0;padding:0;background:none;font:inherit;font-weight:600;color:#213b44;text-align:left;cursor:pointer}.crm-table .is-active .crm-customer-name{color:#008d88}.crm-alias{display:block;color:#819099;font-size:11px}.crm-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.crm-tag{display:inline-block;background:#edf6f6;border:1px solid #e0eeee;color:#008e88;padding:1px 7px;border-radius:5px;font-size:11px;white-space:nowrap;margin:2px 0}.crm-tag-blue{background:#e8f2ff;border-color:#d7e7fb;color:#2872b8}.crm-tag-green{background:#e9f7ed;border-color:#dbefdf;color:#2f8050}
.crm-person{border:0;background:none;display:inline-flex;gap:7px;align-items:center;color:#334c55;padding:2px 0;font:inherit;cursor:pointer;text-align:left}.crm-person>span:last-child{border-bottom:1px dotted #9db7bc}.crm-person:hover{color:var(--crm-accent)}.crm-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:#e5f4f3;border-radius:50%;color:#008d87;font-size:13px;flex-shrink:0}
.customers-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:auto;font-size:12px}.customers-muted{color:var(--crm-muted);font-size:12px}
.customers-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.customers-detail-head h2{font-size:23px;margin:0 0 6px;font-weight:650;overflow-wrap:anywhere}.customers-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--crm-muted)}.crm-detail-actions{display:flex;gap:6px}.crm-detail-actions .crm-button{padding:4px 8px;font-size:12px}.crm-write-row{display:flex;justify-content:flex-end;margin:6px 0 10px}
.crm-detail-tabs{gap:25px;margin-bottom:20px}.crm-section{border:1px solid var(--crm-line);border-radius:9px;margin-bottom:12px;padding:13px 15px;overflow:hidden}.crm-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.crm-section-head h3{font-size:15px;font-weight:650;margin:0}.crm-section-head .crm-button{min-height:26px;font-size:12px;padding:1px 8px}.crm-facts{display:grid;grid-template-columns:76px minmax(0,1fr) 76px minmax(0,1fr);gap:11px 9px;margin:0;font-size:12px}.crm-facts dt{color:var(--crm-muted);font-weight:400}.crm-facts dd{margin:0;overflow-wrap:anywhere}.crm-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#40535c;font-size:13px;line-height:1.8}
.crm-member-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;gap:12px}.crm-member-row .crm-button{font-size:11px;min-height:26px;padding:1px 8px}.crm-contact-card+.crm-contact-card{border-top:1px solid var(--crm-line);padding-top:12px;margin-top:12px}.crm-contact-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-contact-top>.crm-button{margin-left:auto;font-size:11px}.crm-contact-body{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;margin:8px 0;font-size:12px}.crm-contact-body strong{font-weight:400;color:#73818b}.crm-contact-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.crm-contact-actions .crm-button{font-size:11px;min-height:26px;padding:2px 8px}
.crm-timeline{list-style:none;padding:0 0 0 17px;margin:12px 0 0}.crm-timeline li{position:relative;border-left:1px solid #a4dcd8;padding:0 0 23px 20px}.crm-timeline li:last-child{padding-bottom:4px;border-left-color:transparent}.crm-timeline li:before{content:'';position:absolute;width:8px;height:8px;left:-5px;top:7px;background:white;border:2px solid var(--crm-accent);border-radius:50%}.crm-followup-time{font-weight:600;font-size:13px;color:#29414a;font-variant-numeric:tabular-nums;margin-bottom:6px}.crm-followup-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#344d57;line-height:1.8}.crm-followup-people{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;font-size:11px;color:#73838a;margin-top:6px}.crm-followup-people>span:first-child{color:#8e9ba2;min-width:66px}.crm-followup-people .crm-person{font-size:11px}.crm-recorded{font-size:10px;color:#9aa5ab;margin-top:7px}.crm-timeline.is-compact .crm-recorded{display:none}.crm-followups-panel>.customers-pager{margin-top:20px}
.crm-empty{color:#8b99a1;padding:38px 16px;text-align:center;font-size:13px}.crm-section .crm-empty{padding:14px 4px}.crm-empty button{margin-top:8px}.crm-pair-row{display:flex;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--crm-line);flex-wrap:wrap}.crm-pair-row .crm-button{margin-left:auto;font-size:11px;min-height:24px}.crm-history-relations{margin-top:12px;color:#7a8b93;font-size:12px}.crm-history-relations summary{padding:8px 0;cursor:pointer}.crm-project-row{background:#fff;border:0;border-bottom:1px solid var(--crm-line);padding:14px 0;width:100%;display:flex;align-items:center;justify-content:space-between;color:#3b5762;cursor:pointer;font:inherit}.crm-project-row span{color:var(--crm-accent);font-size:12px}
.crm-dialog{width:min(650px,calc(100vw - 32px));max-height:90vh;border:1px solid #d8e5e8;border-radius:14px;padding:0;background:#fff;box-shadow:0 24px 90px #143c4533;overflow:auto}.crm-dialog::backdrop{background:#17333c55;backdrop-filter:blur(2px)}.crm-dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--crm-line);padding:19px 24px;position:sticky;top:0;background:#fff;z-index:2}.crm-dialog-head h2{font-size:18px;margin:0;font-weight:650}.crm-dialog-head .crm-button{font-size:20px;min-height:26px;padding:0 8px;border:0}.crm-dialog-body{padding:22px 24px}.crm-dialog-footer{padding:16px 24px;border-top:1px solid var(--crm-line);display:flex;justify-content:flex-end;gap:10px;background:white;position:sticky;bottom:0;z-index:2}.crm-dialog .crm-field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px;font-size:13px;color:#46616a}.crm-field input,.crm-field select,.crm-field textarea{font-size:13px}.crm-field textarea{resize:vertical}.crm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.crm-form-grid .span-2{grid-column:1/-1}.crm-check-group{border:1px solid var(--crm-line);padding:12px;border-radius:8px;margin:0 0 16px;min-width:0}.crm-check-group legend{float:none;width:auto;font-size:12px;padding:0 5px;margin:0;color:#536f78}.crm-check-group label{display:inline-flex;gap:7px;align-items:center;margin:4px 14px 4px 0;font-size:13px}.crm-check-group input{accent-color:var(--crm-accent)}.crm-dialog-error{white-space:pre-wrap;color:#b44444;background:#fff4f2;border-radius:6px;padding:9px 12px;font-size:12px;margin-bottom:12px}.crm-dialog-hint{font-size:12px;color:var(--crm-muted);margin:0 0 16px}.crm-option-row,.crm-method-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--crm-line);font-size:13px}.crm-method-row>div{overflow-wrap:anywhere;min-width:0}.crm-method-fields{display:grid;grid-template-columns:100px 1fr auto;gap:8px;align-items:center;margin-bottom:9px}.crm-method-fields .crm-input{min-height:34px;font-size:12px}.crm-method-fields .crm-button{min-height:30px;font-size:12px}.crm-snapshot-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.crm-snapshot-fields .crm-input{min-height:30px;padding:5px 8px;font-size:12px}.crm-snapshot-fields h4{grid-column:1/-1;font-size:12px;font-weight:400;color:#6e848e;margin:7px 0}.crm-history-subtitle{color:#86979f;font-size:12px;margin:0 0 18px}.crm-error-actions{display:flex;justify-content:center;gap:8px;margin:12px}
.customers-shell button:focus-visible,.crm-dialog button:focus-visible,.crm-person:focus-visible{outline:2px solid #009c9880;outline-offset:3px}
.project-customer-picker{position:relative}.project-customer-picker-menu{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #e6e8eb;border-radius:10px;max-height:280px;overflow:auto}.project-customer-picker-item,.customers-pick-item{display:block;width:100%;text-align:left;border:0;background:#fff;padding:8px 10px}.project-customer-picker-item:hover{background:#f0f8f8}.project-customer-picker-clear{position:absolute;right:8px;top:6px;border:0;background:transparent}
.crm-option-tabs{display:flex;gap:18px;border-bottom:1px solid var(--crm-line);margin:0 0 16px}
.crm-option-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:8px 2px 11px;font:inherit;color:#56636b;cursor:pointer}
.crm-option-tabs [aria-selected=true]{color:var(--crm-accent);font-weight:600;border-bottom-color:var(--crm-accent)}
.crm-tagify-field .tagify,.crm-tagify-manage-wrap .tagify{width:100%;min-height:38px;border:1px solid #dce4e9;border-radius:7px;padding:4px 8px;background:#fff;--tags-border-color:#dce4e9;--tags-hover-border-color:#9ccac8;--tags-focus-border-color:#009c98;--tag-bg:#edf6f6;--tag-hover:#e0f5f3;--tag-text-color:#007f7c;--tag-remove-bg:#dff1f0;--tag-remove-btn-color:#5a8a87;--tag-pad:.35em .45em}
.crm-tagify-field .tagify:focus-within,.crm-tagify-manage-wrap .tagify--focus{outline:2px solid #009c9840;border-color:var(--crm-accent)}
.crm-tagify-field .tagify__dropdown,.crm-tagify-manage-wrap .tagify__dropdown,.tagify__dropdown{border:1px solid #d8e5e8;border-radius:8px;box-shadow:0 12px 40px #143c4522;z-index:10020}
.tagify__dropdown__item--active{background:#e0f5f3!important;color:#007f7c!important}
[data-followup-people]>.crm-check-group{margin-bottom:8px}[data-followup-people]>.crm-button{margin:0 0 16px}[data-history-count]{font-size:13px;color:var(--crm-muted);margin:0 0 16px}
.crm-tagify-manage-wrap{margin-bottom:8px}
.crm-dialog .crm-tagify-field{margin-bottom:15px}
@media(min-width:1450px){.crm-table th,.crm-table td{padding:19px 14px}.customers-detail-pane{padding:27px}.crm-facts{font-size:13px}}
@media(max-width:1150px){.customers-shell.is-detail{grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr)}.customers-list-pane{padding:16px 14px}.customers-detail-pane{padding:20px 16px}.customers-filters{grid-template-columns:1fr 1fr auto}.customers-filters .crm-text-button{grid-column:3;grid-row:1/3}.crm-facts{grid-template-columns:76px minmax(0,1fr)}.crm-table{min-width:530px}.crm-detail-tabs{gap:20px}}
@media(max-width:800px){.customers-shell.is-detail{grid-template-columns:minmax(0,1fr)}.customers-shell.is-detail .customers-list-pane{display:none}.customers-detail-pane{border-left:0}.customers-shell{height:calc(100vh - 110px);max-height:calc(100vh - 110px)}.crm-contact-body{grid-template-columns:1fr 1fr}.crm-detail-actions .crm-button{font-size:11px}.crm-dialog-body{padding:18px}.crm-dialog-head,.crm-dialog-footer{padding:15px 18px}.crm-form-grid{grid-template-columns:1fr}.crm-dialog{max-height:94dvh}.crm-method-fields{grid-template-columns:85px 1fr auto}.crm-snapshot-fields{grid-template-columns:1fr}.crm-list-meta{margin-top:0}.customers-list-head{gap:8px}.customers-list-head .crm-primary{padding:7px 10px}.customers-detail-head h2{font-size:21px}}
