/* Customer list owns layout; project branch keeps its existing roots. */
.customer-list-page{--crm-page-max-width:1560px;color:#24292f;min-width:0}
.customer-list-page :is(.cl-shell,.cl-main){width:100%;min-width:0;margin:0;padding:0;background:none}
.customer-list-page .cl-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.customer-list-page .cl-heading h1{font-size:24px;line-height:32px;font-weight:650;margin:0}
.customer-list-page .crm-inline{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.customer-list-page .cl-tabs{display:flex;gap:24px;border-bottom:1px solid #e5e7eb;margin-bottom:16px}
.customer-list-page .cl-tabs>button{display:inline-flex;align-items:center;gap:7px;padding:0 0 12px;min-height:40px;border:0;border-radius:0;background:none;color:#667085;font-size:14px;line-height:22px}
.customer-list-page .cl-tabs>button[aria-selected=true]{color:#18181b;border-bottom:2px solid #18181b;font-weight:600}
.customer-list-page .cl-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.customer-list-page .cl-search{display:flex;align-items:center;gap:8px;flex:0 1 300px;min-width:180px;max-width:320px;border:1px solid #d4d7dc;border-radius:8px;height:38px;padding:0 12px;background:#fff}
.customer-list-page .cl-search:focus-within{outline:2px solid #667085;outline-offset:2px}
.customer-list-page .cl-search>svg{flex:none;color:#667085}
.customer-list-page .cl-search input{border:0;background:none;padding:0;width:100%;min-width:0;height:34px;outline:0;box-shadow:none;font-size:14px;line-height:22px}
.customer-list-page :is(.crm-select,.crm-tool-button,.cl-sort,.cl-view-options>summary){min-height:38px;border:1px solid #d4d7dc;border-radius:8px;background:#fff;font-size:13px;line-height:20px}
.customer-list-page .crm-select{padding:7px 10px}
.customer-list-page .cl-owner{display:block;visibility:visible;width:132px}
.customer-list-page .crm-tool-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px}
.customer-list-page .cl-sort{display:flex;align-items:center;gap:0;margin-left:auto}
.customer-list-page .cl-sort select{border:0;background:none;padding:7px 8px;font-size:13px}
.customer-list-page .cl-sort>button{border:0;background:none;padding:7px 10px;min-height:36px}
.customer-list-page .cl-view-options{position:relative;flex:0 0 auto}
.customer-list-page .cl-view-options>summary{list-style:none;padding:8px 12px;cursor:pointer}
.customer-list-page .cl-view-options>div{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;max-width:min(340px,80vw);z-index:30;padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px #0001}
.customer-list-page :is(.crm-filter-summary,.crm-list-meta){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;margin-bottom:8px;font-size:13px;line-height:20px;color:#667085}
.customer-list-page .cl-table-wrap{border:1px solid #e5e7eb;border-radius:8px;overflow-x:auto}
.customer-list-page .cl-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:0}
.customer-list-page .cl-table th{padding:10px 8px;background:#f7f8fa;border-bottom:1px solid #e5e7eb;font-size:13px;line-height:20px;font-weight:500;color:#667085;text-align:left}
.customer-list-page .cl-table td{padding:12px 8px;border-bottom:1px solid #edf0f2;font-size:14px;line-height:22px;vertical-align:middle;overflow-wrap:anywhere}
.customer-list-page .cl-table tbody tr:last-child td{border-bottom:0}
.customer-list-page .cl-table tbody tr:hover{background:#fafbfc}
.customer-list-page .cl-table tr[data-selected=true]{background:#f4f5f6}
.customer-list-page .crm-select-cell{width:36px;text-align:center}
.customer-list-page input[type=checkbox]{width:16px;height:16px;margin:3px 0;accent-color:#24292f}
.customer-list-page .crm-entity{display:block;border:0;background:none;padding:0;max-width:100%;text-align:left;font-size:14px;line-height:22px;color:#24292f}
.customer-list-page .crm-entity strong{font-weight:600;overflow-wrap:anywhere}
.customer-list-page .crm-entity:hover{text-decoration:underline;text-underline-offset:3px}
.customer-list-page .crm-entity-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:3px;font-size:13px;line-height:20px;color:#667085}
.customer-list-page .crm-entity-secondary:empty{display:none}
.customer-list-page .crm-entity-secondary small{font-size:13px;line-height:20px}
.customer-list-page :is(td[data-field=owner],td[data-field=country],td[data-field=nature]) :is(span,small){font-size:13px;line-height:20px}
.customer-list-page .cl-opportunity-count{font-size:13px;line-height:20px;color:#667085}
.customer-list-page .cp-latest-followup{display:flex;flex-direction:row;align-items:center;gap:10px;border:0;background:none;padding:0;width:100%;text-align:left;color:#353b45;min-height:0}
.customer-list-page .cp-followup-excerpt{flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:14px;line-height:22px}
.customer-list-page .cp-latest-followup time{flex:0 0 auto;white-space:nowrap;font-size:12px;line-height:18px;color:#667085}
.customer-list-page .cp-latest-followup:hover .cp-followup-excerpt{text-decoration:underline;text-underline-offset:3px}
.customer-list-page :is(.cp-followup-state,.cp-followup-error){font-size:13px;line-height:20px}
.customer-list-page .cl-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:12px;line-height:20px;color:#667085}
.customer-list-page .cl-pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.customer-list-page .crm-empty{padding:40px 16px;text-align:center;font-size:14px}
.customer-list-page .cl-mobile{display:none}
.customer-list-page button:focus-visible{outline:2px solid #667085;outline-offset:3px}
@media(max-width:767px){
 .customer-list-page .cl-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .customer-list-page .cl-heading button,.customer-list-page .cl-tabs>button{min-height:44px}
 .customer-list-page .cl-toolbar{gap:8px}
 .customer-list-page .cl-search{flex:1 1 100%;max-width:none;height:44px}
 .customer-list-page .cl-search input{height:40px}
 .customer-list-page :is(.crm-select,.crm-tool-button,.cl-sort,.cl-view-options>summary){min-height:44px}
 .customer-list-page .cl-owner{flex:1 1 120px}
 .customer-list-page .cl-sort{margin-left:0}
 .customer-list-page .cl-sort>button{min-height:42px}
 .customer-list-page .cl-table-wrap{display:none}
 .customer-list-page .cl-mobile{display:block;border-top:1px solid #e5e7eb}
 .customer-list-page .cl-card{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:10px 0;border-bottom:1px solid #e5e7eb}
 .customer-list-page .cl-card-head{flex:1 1 100%;display:flex;align-items:flex-start;gap:10px;min-width:0}
 .customer-list-page .cl-card-head .crm-entity{flex:1;min-width:0;min-height:44px}
 .customer-list-page .cl-card-field{flex:1 1 100%;min-width:0;font-size:14px;line-height:22px}
 .customer-list-page .cl-card-field>span{display:block;font-size:12px;line-height:18px;color:#667085;margin-bottom:3px}
 .customer-list-page .cl-card-field:is([data-field=owner],[data-field=country],[data-field=nature]){flex:0 0 auto}
 .customer-list-page .cl-card-field:is([data-field=owner],[data-field=country],[data-field=nature])>span{display:none}
 .customer-list-page .cl-card-field:is([data-field=projectCount],[data-field=openProjectCount])>span{display:none}
 .customer-list-page .cp-latest-followup{min-height:44px}
 .customer-list-page .cl-pagination{flex-wrap:wrap}
 .customer-list-page .cl-pagination button{min-height:44px;min-width:44px}
}

.customer-list-page .cl-project-customer{display:block;padding:0;border:0;background:none;font-size:14px;line-height:22px;color:#353b45;text-align:left;overflow-wrap:anywhere}
.customer-list-page .cl-project-customer:hover{text-decoration:underline;text-underline-offset:3px}
.customer-list-page .cp-project-demand{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:20px;color:#667085;margin-top:3px}
.customer-list-page .cl-project-time{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:20px;white-space:nowrap}
.customer-list-page .cl-project-time small{font-size:12px;line-height:18px;white-space:normal}
.customer-list-page .cl-project-amount{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:22px}
.customer-list-page .cl-project-amount small{font-size:12px;line-height:18px;color:#667085}
.customer-list-page .crm-stage{display:inline-block;padding:2px 6px;border-radius:4px;background:#f4f5f6;color:#475467;font-size:13px;line-height:20px}
@media(max-width:767px){
 .customer-list-page .cl-card-field[data-field=latestFollowUp]>span{display:none}
 .customer-list-page .cl-card-field[data-field=latestFollowUp]{margin-top:2px}
 .customer-list-page[data-list-kind=projects] .cl-card-field:is([data-field=owner],[data-field=stage]){flex:0 0 auto}
 .customer-list-page[data-list-kind=projects] .cl-card-field[data-field=stage]>span{display:none}
}

.customer-list-page .cl-active-label{display:none}
@media(max-width:767px){.customer-list-page .cl-active-label{display:inline}.customer-list-page .cp-latest-followup{gap:8px}}

.customer-list-page .cl-active-opportunity{display:inline-flex;align-items:center;gap:2px;padding:0;border:0;background:none;font-size:13px;line-height:20px;color:#353b45;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:767px){.customer-list-page .cl-active-opportunity{min-height:44px}}

@media(max-width:767px){
 .customer-list-page .cl-owner{display:block;visibility:visible;flex:1 1 130px;max-width:none;min-width:0}
 .customer-list-page[data-list-kind=customers] .cl-card-field[data-field=latestFollowUp]{flex:1 1 200px;min-width:0}
 .customer-list-page[data-list-kind=customers] .cl-card-field[data-field=openProjectCount]{flex:0 0 auto;margin-left:auto}
 .customer-list-page .cl-card-head .crm-entity{display:flex;align-items:center}
 .customer-list-page .cl-card-field .cl-active-opportunity{white-space:nowrap}
}

/* Long identities retain full text/title and shared badge color, never vertical towers. */
.customer-list-page .crm-entity strong.cl-customer-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:22px;overflow-wrap:anywhere}
.customer-list-page .cl-customer-company{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-list-page .cl-identity-value{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px}
.customer-list-page .cl-identity-value>span.crm-identity-tag[data-identity-kind]{display:inline-block;vertical-align:middle;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px}
.customer-list-page .cl-identity-value>span :is(span,small){min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:767px){.customer-list-page .cl-card-field:is([data-field=owner],[data-field=country],[data-field=nature]){max-width:45%}}

@media(max-width:767px){
 .customer-list-page[data-list-kind=customers] .cl-card{position:relative}
 .customer-list-page[data-list-kind=customers] .cl-card-field[data-field=latestFollowUp]{flex:1 1 100%;width:100%}
 .customer-list-page[data-list-kind=customers] .cp-latest-followup{display:flex;flex-direction:column;align-items:stretch;gap:2px;width:100%;min-height:44px}
 .customer-list-page[data-list-kind=customers] .cp-followup-excerpt{flex:none;width:100%;max-width:100%}
 .customer-list-page[data-list-kind=customers] .cp-latest-followup time{display:flex;align-items:center;min-height:20px;padding-right:0}
 .customer-list-page[data-list-kind=customers] .cl-card:has(.cl-active-opportunity) .cp-latest-followup time{min-height:44px;padding-right:132px}
 .customer-list-page[data-list-kind=customers] .cl-card-field[data-field=openProjectCount]:has(.cl-active-opportunity){position:absolute;right:0;bottom:10px;margin:0;max-width:132px}
 .customer-list-page[data-list-kind=customers] .cl-card:has(.cl-active-opportunity) .cl-card-field[data-field=latestFollowUp]{min-height:44px}
 .customer-list-page[data-list-kind=customers] .cl-card-field[data-field=openProjectCount]:has([data-active-count="0"]){display:none}
}

/* Owned customer detail only. Existing identity tags/readers/dialog contracts stay intact. */
.customer-whole.profile-polish.cd-redesign{width:100%;max-width:1280px;min-width:0;margin:0 auto;padding:20px 24px;background:#fff;color:var(--crm-color-text,#18181b)}
.cd-redesign .r11-identity h1{font-size:24px;line-height:32px;letter-spacing:0}
.cd-redesign .cw-identity-block{flex:1;min-width:0}
.cd-redesign .r11-identity-title{width:100%;min-width:0}
.cd-redesign .r11-company{font-size:14px;line-height:22px}
.cd-redesign .r11-back{margin-bottom:12px}
.cd-redesign .cw-tabs{overflow-x:auto;overflow-y:hidden;min-height:44px;margin-bottom:16px;gap:24px}
.cd-redesign .cw-panel>.crm-section{margin-bottom:20px}
.cd-redesign .cw-panel .crm-section-head{min-height:0;margin-bottom:12px}
.cd-redesign .crm-facts{row-gap:14px;column-gap:24px;max-width:1040px}
.cd-redesign .crm-facts dd{font-size:14px;line-height:22px;min-width:0;overflow-wrap:anywhere}
.cd-redesign .cw-reference-fields{margin-top:16px;padding-top:14px}
.cd-redesign .cw-reference-title{margin-bottom:12px;font-size:12px}
.cd-redesign .cw-history{margin-top:16px;padding-top:12px}
.cd-redesign .cw-history .r11-original-metadata{padding:0;background:transparent;margin:14px 0}
.cd-redesign .cw-history>.crm-section>.crm-section-head{display:none}
/* Flat contact records: field geometry follows each record, never competing cards. */
.cd-redesign .cd-contact-list{display:block;max-width:1040px;min-width:0}
.cd-redesign .cd-contact-record{padding:16px 0;border-bottom:1px solid #e4e4e7;min-width:0}
.cd-redesign .cd-contact-record:first-child{padding-top:0}
.cd-redesign .cd-contact-record:last-child{border-bottom:0}
.cd-redesign .cd-contact-record>div{min-width:0}
.cd-redesign .cd-contact-record h3{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.cd-redesign .cd-contact-record button{min-height:38px;height:auto;padding:6px 12px;margin:0;flex-shrink:0}
.cd-redesign .cd-contact-record .cp-contact-channels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px;margin-top:12px}
.cd-redesign .cd-contact-record .cp-contact-channels>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;min-width:0;margin:0}
.cd-redesign .cd-contact-record .cp-contact-channels dt{width:auto;min-width:0;font-size:12px;line-height:22px}
.cd-redesign .cd-contact-record .cp-contact-channels dd{min-width:0;width:auto;margin:0;font-size:14px;line-height:22px;overflow-wrap:anywhere;word-break:normal}
.cd-redesign .cd-contact-record .cp-contact-channels>div:last-child:has(dd.whitespace-pre-wrap){grid-column:1/-1}
.cd-redesign .cd-linked-opportunities{display:block;min-width:0}
.cd-redesign .cd-linked-opportunities>button{min-width:0;border:0;border-bottom:1px solid #e4e4e7;border-radius:0;padding:14px 0;font-size:14px}
.cd-redesign .cd-linked-opportunities>button p{font-size:14px;line-height:22px;margin-top:6px}
.cd-redesign .cd-linked-opportunities>button .mt-3{margin-top:6px;font-size:12px;line-height:18px}
.cd-redesign .cp-followups{max-width:1040px}
.cd-redesign .cp-followups .crm-section-head{margin-bottom:12px}
/* Current-page type projection remains explicit; rows are the only reading trigger. */
.cd-redesign .cp-correspondence .cw-collection-heading{margin-bottom:8px}
.cd-redesign .cp-correspondence .cw-collection-tabs{margin-bottom:8px;overflow-x:auto;overflow-y:hidden}
.cd-redesign .cp-correspondence .cw-collection-tabs button{font-size:14px;line-height:22px;white-space:nowrap;min-height:38px;padding:8px 12px}
.cd-redesign .cp-correspondence .cw-collection-tabs button[aria-pressed=true]{color:#18181b;border-color:#18181b}
.cd-redesign .cp-correspondence .cw-collection-row{grid-template-columns:minmax(0,1fr) 100px 160px;padding:14px 0;gap:16px;font-size:14px;line-height:22px}
.cd-redesign .cp-correspondence .cw-collection-main{min-width:0;gap:4px}
.cd-redesign .cp-correspondence .cw-collection-main>span{overflow-wrap:anywhere;font-size:12px;line-height:18px}
.cd-redesign .cp-correspondence .cw-collection-count,.cd-redesign .cp-correspondence .cw-collection-row time{font-size:12px;line-height:18px}
.cd-redesign .cp-correspondence>.cw-collection-scope{margin:8px 0;font-size:12px;line-height:18px}
.cd-redesign .cp-ai-report{max-width:1040px}
.cd-redesign .cp-ai-report .cw-collection-heading{margin-bottom:4px}
.cd-redesign .cp-ai-report .cw-collection-heading h2{font-size:16px;line-height:24px}
.cd-redesign .cp-ai-report .cw-ai-disclaimer{padding:8px 0;margin:0;line-height:18px}
.cd-redesign .cp-ai-report .cw-ai-metadata{gap:12px 28px;padding:12px 0;flex-wrap:wrap}
.cd-redesign .cp-ai-report .cw-ai-metadata dd{font-size:14px;line-height:22px}
.cd-redesign .cp-ai-report .cw-ai-sections>section{padding:16px 0}
.cd-redesign .cp-ai-report .cw-ai-sections p{font-size:14px;line-height:22px;max-width:90ch}
@media(max-width:760px){
 .customer-whole.profile-polish.cd-redesign{padding:16px;max-width:100%}
 .cd-redesign .r11-identity h1{font-size:24px;line-height:32px}
 .cd-redesign .r11-actions{width:100%;flex-wrap:wrap}
 .cd-redesign .r11-actions button,.cd-redesign .r11-actions summary,.cd-redesign .cd-contact-record button,.cd-redesign .crm-section-head>button{min-height:44px}
 .cd-redesign .cd-contact-record .cp-contact-channels{grid-template-columns:minmax(0,1fr)}
 .cd-redesign .cp-correspondence .cw-collection-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
 .cd-redesign .cp-correspondence .cw-collection-row time{grid-column:1/-1}
 .cd-redesign .cp-correspondence .cw-collection-tabs button,.cd-redesign .cp-correspondence .cw-collection-pagination button,.cd-redesign .cp-correspondence .cw-collection-heading select{min-height:44px}
}
/* R2 true field and record groups, without legacy wide/grid utilities. */
.cd-redesign .cd-short-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0;min-width:0;max-width:1040px}
.cd-redesign .cd-short-facts>div{min-width:0}
.cd-redesign .cd-short-facts dt,.cd-redesign .cd-address-fact dt,.cd-redesign .cd-company-information h3{margin:0 0 6px;font-size:12px;line-height:18px;font-weight:400;color:#71717a}
.cd-redesign .cd-short-facts dd,.cd-redesign .cd-address-fact dd{min-width:0;margin:0;font-size:14px;line-height:22px;overflow-wrap:anywhere}
.cd-redesign .cd-readonly-label{display:inline-flex;gap:6px;align-items:baseline}
.cd-redesign .cd-readonly-label small{font-size:12px;color:#71717a}
.cd-redesign .cd-address-fact,.cd-redesign .cd-company-information{margin:14px 0 0;max-width:1040px;min-width:0}
.cd-redesign .cd-company-information p{margin:0;font-size:14px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}
.cd-redesign .cw-facts .crm-section-head:has(.cd-note-edit),.cd-redesign .cw-contacts>.crm-section>.crm-section-head{justify-content:flex-start;gap:12px}
.cd-redesign .cd-contact-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 12px;min-width:0}
.cd-redesign .cd-contact-head>.cd-contact-position{margin:0;font-size:12px;line-height:18px;color:#71717a}
.cd-redesign .cd-contact-record{padding:12px 0}
.cd-redesign .cd-contact-record .cp-contact-channels{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:8px 20px;margin-top:8px}
.cd-redesign .cd-contact-record .cp-contact-channels>div{grid-template-columns:64px minmax(0,1fr)}
.crm-r11-customer.cd-redesign[data-crm-ui-section] .r11-nav{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:16px;min-height:44px}
.crm-r11-customer.cd-redesign .r11-identity{padding-top:0;padding-bottom:0}
@media(min-width:761px) and (max-width:1200px){.cd-redesign .cd-short-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.cd-redesign .cd-contact-record .cp-contact-channels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cd-redesign .cd-short-facts,.cd-redesign .cd-contact-record .cp-contact-channels{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Current opportunity detail/form only; removes old CP root ownership, not a global theme. */
.os-opportunity-surface .crm-shell{display:block;min-width:0}
.os-opportunity-surface .crm-main{width:100%;max-width:none;padding:24px 32px}
.os-opportunity{width:100%;max-width:1180px;margin:0 auto;color:#202020;font-size:14px;line-height:22px}
.os-opportunity>button:first-child{min-height:36px;margin:0 0 12px;font-size:13px}
.os-opportunity .cp-opportunity-header{gap:16px;padding:0 0 20px;align-items:flex-start}
.os-opportunity .cp-opportunity-header h1{font-size:26px;line-height:34px;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.os-opportunity .cp-opportunity-header>div:first-child>div:first-child{margin:0 0 10px;gap:8px 12px;font-size:13px}
.os-opportunity .cp-opportunity-header>div:first-child>div:last-child{margin-top:10px;font-size:13px}
.os-opportunity button,.os-opportunity summary{font-size:13px;line-height:20px;border-radius:8px}
.os-opportunity .cp-opportunity-actions{display:flex;flex-wrap:wrap;gap:8px}
.os-opportunity .cp-opportunity-actions button{min-height:38px;padding:8px 12px;border:1px solid #d4d4d4;background:#fff;color:#222}
.os-opportunity .cp-opportunity-actions .cp-opportunity-primary{background:#171717;color:white;border-color:#171717}
.os-opportunity .cp-opportunity-actions svg{height:16px;width:16px}
.os-opportunity .os-stage-disclosure>summary{cursor:pointer;min-height:34px;padding:6px 10px;border:1px solid #d4d4d4;border-radius:8px}
.os-opportunity .os-stage-disclosure[open]{flex-basis:100%}
.os-opportunity .os-stage-disclosure>div{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;padding:10px 0 0}
.os-opportunity .os-stage-disclosure button{min-width:96px;flex:0 1 auto;min-height:38px;padding:7px 10px;font-size:13px;border:1px solid #ddd;border-radius:8px}
.os-opportunity .os-stage-disclosure button[aria-current=step]{background:#171717;color:#fff;border-color:#171717}
.os-opportunity>.crm-section{padding:20px 0;border-top:1px solid #e5e5e5;border-bottom:0}
.os-opportunity .crm-section-head{margin:0 0 14px}
.os-opportunity .crm-section-head h2{font-size:16px;line-height:24px}
.os-opportunity .crm-section>dl{gap:16px 24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.os-opportunity .crm-section dt{font-size:13px;line-height:20px;color:#737373;margin-bottom:4px}
.os-opportunity .crm-section dd{font-size:14px;line-height:22px;overflow-wrap:anywhere;white-space:pre-wrap}
.os-opportunity .crm-section>div.grid{grid-template-columns:160px minmax(200px,1fr) minmax(180px,1fr);gap:20px}
.os-opportunity .os-record-times summary{cursor:pointer;color:#525252;padding:6px 0}
.os-opportunity .os-record-times dl{margin:10px 0}
.os-project-orders{display:grid;gap:12px;font-size:14px;line-height:22px}
.os-project-orders>div:first-child{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.os-project-orders button,.os-project-orders summary{font-size:13px;min-height:36px}
.os-project-orders .os-order-more>summary{cursor:pointer;color:#525252;width:max-content;padding:4px 0}
.os-project-orders .os-order-more>label{padding:8px 0}
.os-project-orders .os-order-more input{width:16px;height:16px;flex:none}
/* Form owns padding once: dialog header / scrollable fieldset / fixed action footer. */
.crm-modal:has(.os-project-editor){display:flex;flex-direction:column;width:min(800px,calc(100vw - 32px));max-width:800px;max-height:calc(100dvh - 32px);padding:24px;gap:18px;overflow:hidden}
.os-project-editor{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;gap:16px;margin:0}
.os-project-editor>.os-editor-scroll{display:block;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 6px 8px 0;margin:0}
.os-project-editor>.os-editor-scroll>fieldset.crm-project-editor-body{display:flex;flex-direction:column;min-width:0;width:100%;min-height:auto;flex:none;overflow:visible;padding:0;border:0;margin:0;gap:24px}
.os-project-editor .os-form-group{display:flex;flex-direction:column;gap:16px;margin:0;padding:0}
.os-project-editor .os-form-group h3{margin:0;font-size:15px;line-height:22px}
.os-project-editor .crm-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.os-project-editor .crm-field>span:first-child{font-size:13px;line-height:20px;font-weight:500}
.os-project-editor .cp-opportunity-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.os-project-editor :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:40px;border:1px solid #d4d4d4;border-radius:8px;font-size:14px;line-height:22px;padding:8px 10px;color:#202020;background:#fff}
.os-project-editor textarea{min-height:112px;resize:vertical}
.os-project-editor select:disabled[aria-label="关联客户"]{appearance:none;opacity:1;border-color:transparent;padding-left:0;background:transparent;color:#525252}
.os-project-editor .os-owner-context{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;line-height:20px}
.os-project-editor .os-owner-context>span:last-child{font-size:12px;color:#737373}
.os-project-editor>[data-slot=dialog-footer]{flex:none;margin:0;padding:16px 0 0;border-top:1px solid #e5e5e5;display:flex;justify-content:flex-end;gap:8px;background:#fff}
.os-project-editor>[data-slot=dialog-footer] button{min-height:40px;padding:8px 16px;border-radius:8px;border:1px solid #d4d4d4;font-size:14px;background:white;color:#222}
.os-project-editor>[data-slot=dialog-footer] button[type=submit]{background:#171717;border-color:#171717;color:white}
.os-project-editor button:disabled{opacity:.5}
.os-opportunity :is(button,summary):focus-visible,.os-project-editor :is(input,select,textarea,button):focus-visible{outline:2px solid #525252;outline-offset:2px}
@media(max-width:700px){.os-opportunity-surface .crm-main{padding:16px}.os-opportunity .cp-opportunity-header h1{font-size:23px;line-height:30px}.os-opportunity .cp-opportunity-actions{width:100%;justify-content:flex-end}.os-opportunity button,.os-opportunity summary{min-height:44px}.os-opportunity .crm-section>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.os-opportunity .crm-section>div.grid{grid-template-columns:minmax(0,1fr);gap:16px}.crm-modal:has(.os-project-editor){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;gap:16px}.os-project-editor .cp-opportunity-field-pair{grid-template-columns:minmax(0,1fr)}.os-project-editor :is(input,select,textarea){font-size:16px;min-height:44px}.os-project-editor>[data-slot=dialog-footer] button{min-height:44px}.os-project-orders button,.os-project-orders summary{min-height:44px}}
.os-opportunity .crm-section>dl>[class~="sm:col-span-2"]{grid-column:1/-1}
.crm-modal:has(.os-project-editor)>[data-slot=dialog-header]{flex:none;margin:0;padding:0 28px 0 0}
.crm-modal:has(.os-project-editor)>[data-slot=dialog-header] h2{font-size:20px;line-height:28px}
/* R2: orders are two compact rows, not four independently stacked panels. */
.os-opportunity>.os-order-section{padding:18px 0}
.os-order-section .os-project-orders{grid-template-columns:max-content minmax(0,1fr);column-gap:16px;row-gap:8px}
.os-order-section .os-project-orders>.os-order-heading{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;gap:12px;margin:0}
.os-order-heading h4{font-size:16px;line-height:24px;font-weight:600;margin:0}
.os-order-heading>button{margin:0}
.os-order-section .os-project-orders>.os-order-empty{grid-column:1;margin:0;align-self:center;color:#737373;font-size:14px;line-height:22px}
.os-order-section .os-project-orders>.os-order-more{grid-column:2;margin:0}
.os-order-section .os-project-orders>.os-order-more[open]{grid-column:1/-1}
.os-order-section .os-project-orders>div:not(.os-order-heading),.os-order-section .os-project-orders>[role]{grid-column:1/-1}
/* Contacts form a bounded readable block; metadata stays close to its value. */
.os-opportunity .os-contact-layout{display:grid;grid-template-columns:minmax(280px,1.35fr) minmax(240px,1fr);gap:32px;max-width:900px}
.os-contact-main{min-width:0;display:flex;flex-direction:column;gap:12px}
.os-contact-main>div:first-child>div{margin:0;gap:8px}
.os-contact-main>div:last-child>p{margin:0 0 10px;font-size:13px}
.os-contact-main p{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.os-contact-main p.font-medium{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.os-contact-main p.font-medium>span{margin:0;font-size:12px}
.os-opportunity .os-contact-context>dl{display:flex;flex-direction:column;gap:12px;margin:0;font-size:13px}
.os-opportunity .os-contact-context>dl>div{display:flex;justify-content:flex-start;align-items:baseline;gap:12px;margin:0}
.os-opportunity .os-contact-context dt{flex:none;width:94px;margin:0;font-size:13px}
.os-opportunity .os-contact-context dd{margin:0;font-size:14px;line-height:22px}
.os-opportunity .os-contact-context .os-record-times>div{display:flex;justify-content:flex-start;gap:12px}
@media(max-width:700px){.os-opportunity .os-contact-layout{grid-template-columns:minmax(0,1fr);gap:20px}.os-order-section .os-project-orders{column-gap:12px}.os-order-heading{flex-wrap:wrap}.os-order-heading h4{margin-right:4px}.os-opportunity .os-contact-context dt{width:88px}}

/* No new customer-reader CSS: this layer only opts the customer email callsite into existing audited reading presentation. */

/* Customer contact form only; original validation and fixed three-part shell unchanged. */
.co-contact-form .crm-required-group-title{display:none}
.co-contact-form .crm-required-help{margin:0 0 16px;font-size:13px;line-height:20px}
.co-contact-form .cp-contact-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.co-contact-form .cp-contact-footer [data-slot="dialog-footer"]{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:0;border:0}
@media(max-width:760px){
 .co-contact-form .cp-contact-footer{flex-wrap:wrap}
 .co-contact-form .cp-contact-footer [data-slot="dialog-footer"]{margin-left:auto;flex-wrap:nowrap}
 .co-contact-form .cp-contact-footer button{min-height:44px}
}

/* Customer/opportunity only; no message-center or global UI controls. */
.cp-polished-list .crm-main{padding:22px 24px!important;max-width:1480px;margin:auto}
.cp-polished-list .crm-title-row{margin-bottom:16px;gap:12px;align-items:center}
.cp-polished-list .crm-title-row h1{font-size:24px;line-height:32px;margin:0}
.cp-polished-list .crm-tabs{margin-bottom:14px;min-height:42px}
.cp-polished-list .crm-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0;margin-bottom:10px}
.cp-polished-list .crm-search{flex:1 1 360px!important;min-width:260px!important;max-width:none;height:38px}
.cp-polished-list .crm-toolbar>div:not(.crm-search){flex:0 1 auto;min-width:0}
.cp-polished-list .crm-toolbar select{height:38px;min-height:38px;border-radius:7px}
.cp-polished-list .crm-toolbar .crm-source-event-filter>span{display:none}
.cp-polished-list .crm-table{table-layout:fixed!important;min-width:880px}
.cp-polished-list .crm-table th,.cp-polished-list .crm-table td{padding:13px 14px!important;vertical-align:top}
.cp-polished-list .crm-table th{font-size:12px;line-height:18px;font-weight:500}
.cp-polished-list .crm-table .crm-select-cell{width:40px;padding-left:14px!important;padding-right:8px!important}
.cp-polished-list .crm-table th:last-child,.cp-polished-list .crm-table td:last-child{width:38px;padding-left:6px!important;padding-right:8px!important}
.cp-polished-list[data-list-kind=customers] .crm-table [data-field=name]{width:auto!important}
.cp-polished-list[data-list-kind=customers] .crm-table [data-field=identitySummary]{width:170px!important}
.cp-polished-list[data-list-kind=customers] .crm-table [data-field=contactSummary]{width:100px!important}
.cp-polished-list[data-list-kind=customers] .crm-table [data-field=latestFollowUp]{width:230px!important}
.cp-polished-list[data-list-kind=customers] .crm-table [data-field=projectCount]{width:110px!important}
.cp-polished-list .crm-entity{gap:0;min-width:0;align-items:flex-start;text-align:left}
.cp-polished-list .crm-entity strong{font-size:14px;line-height:21px;font-weight:600;overflow-wrap:anywhere}
.cp-polished-list .crm-tags{gap:5px;align-items:center;flex-wrap:wrap}
.cp-polished-list .crm-tags>*,.cp-polished-list .crm-tags button{white-space:nowrap}
.cp-polished-list .crm-cell-lines{font-size:13px;line-height:20px;gap:4px}
.cp-polished-list .crm-count{font-size:13px;line-height:20px;text-align:left}
.cp-polished-list .crm-count small{font-size:11px;line-height:16px;white-space:nowrap}
.cp-latest-followup{display:flex;flex-direction:column;gap:5px;width:100%;min-width:0;text-align:left;border:0;background:none;padding:0;color:#404650;font-size:13px;line-height:20px}
.cp-followup-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.cp-latest-followup time,.cp-followup-state{font-size:12px;color:#7b8492;line-height:18px}
.cp-followup-error{font-size:12px;color:#b45309}
/* The button reference: rectangular 8px corners, icon and label on the same baseline. */
.cp-polished-list .crm-title-row>.crm-inline>button,.cp-polished-list .crm-tool-button,
.profile-polish .r11-actions>button,.profile-polish .crm-section-head>button,.profile-polish .cp-contact button,
.profile-polish .cw-collection-pagination>button,.profile-polish .cp-followups>.crm-section>button{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid #d7dadd!important;border-radius:8px!important;background:#fff!important;color:#202124!important;box-shadow:none!important;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap
}
.cp-polished-list .crm-title-row>.crm-inline>button:last-child,.profile-polish .r11-actions>button.r11-primary{background:#111!important;border-color:#111!important;color:#fff!important}
.cp-polished-list .crm-title-row button svg,.cp-polished-list .crm-tool-button svg,.profile-polish .r11-actions button svg,.profile-polish .crm-section-head button svg,.profile-polish .cp-contact button svg{width:16px;height:16px;flex:0 0 16px;stroke-width:1.8}
.cp-polished-list button:disabled,.profile-polish button:disabled{opacity:.45;cursor:not-allowed}
.cp-polished-list button:focus-visible,.profile-polish button:focus-visible{outline:2px solid #525252;outline-offset:3px}
@media(max-width:640px){
 .cp-polished-list .crm-main{padding:16px 12px!important}
 .cp-polished-list .crm-title-row{flex-wrap:nowrap;gap:8px}
 .cp-polished-list .crm-title-row h1{font-size:20px;white-space:nowrap}
 .cp-polished-list .crm-title-row>.crm-inline{gap:6px;flex-wrap:nowrap}
 .cp-polished-list .crm-title-row>.crm-inline>button{padding:6px 8px;min-height:34px;font-size:12px}
 .cp-polished-list .crm-search{flex-basis:100%!important;min-width:0!important;width:100%}
 .cp-polished-list .crm-mobile-records{gap:10px}
 .cp-polished-list .crm-mobile-record{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:13px!important}
 .cp-polished-list .crm-mobile-record-head{grid-column:1/-1;padding:0!important;margin:0!important;gap:9px}
 .cp-polished-list .crm-mobile-record-field{display:block!important;padding:0!important;margin:0!important;border:0;min-width:0}
 .cp-polished-list .crm-mobile-record-field>span{display:none}
 .cp-polished-list .crm-mobile-record-field[data-field=identitySummary]{grid-column:1/-1;order:1}
 .cp-polished-list .crm-mobile-record-field[data-field=contactSummary]{order:2}
 .cp-polished-list .crm-mobile-record-field[data-field=projectCount]{order:3;text-align:right}
 .cp-polished-list .crm-mobile-record-field[data-field=latestFollowUp]{grid-column:1/-1;order:4;border-top:1px solid #edf0f3;padding-top:8px!important}
 .cp-polished-list .crm-mobile-record-field[data-field=latestFollowUp]>span{display:block;font-size:11px;color:#868e99;margin-bottom:4px}
 .cp-polished-list .crm-mobile-record .crm-entity>span{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center}
 .cp-polished-list .crm-mobile-record .crm-entity-secondary{margin:0}
 .cp-polished-list .crm-mobile-record .crm-count{display:flex;gap:6px;flex-wrap:wrap}
}
@media(max-width:640px){
 .cp-polished-list[data-list-kind=projects] .crm-mobile-record-field[data-field=stage]{grid-column:1/-1;order:1}
 .cp-polished-list[data-list-kind=projects] .crm-mobile-record-field[data-field=customer]{grid-column:1/-1;order:2}
 .cp-polished-list[data-list-kind=projects] .crm-mobile-record-field[data-field=orders]{order:3}
 .cp-polished-list[data-list-kind=projects] .crm-mobile-record-field[data-field=lastEvent]{order:4;text-align:right}
 .cp-polished-list[data-list-kind=projects] .crm-opportunity-stage{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}
 .cp-polished-list[data-list-kind=projects] [data-field=customer] .crm-cell-lines{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px 10px}
 .cp-polished-list[data-list-kind=projects] [data-field=name] small,.cp-polished-list[data-list-kind=projects] .crm-mobile-record-head .crm-entity small{font-size:13px;line-height:20px;color:#59616c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
}
/* Exact-title scoped form class from No; no effect on order/message/other dialogs. */
.cp-form-modal{width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;padding:22px!important;gap:16px!important;border-radius:12px!important}
.cp-form-modal h2{font-size:20px;line-height:28px}
.cp-form-modal input:not([type=checkbox]):not([type=radio]),.cp-form-modal select{min-height:38px;border-radius:7px}
.cp-form-modal textarea{border-radius:7px;line-height:1.6}
.cp-form-modal label{gap:6px}
.cp-form-modal [data-slot=dialog-footer]{gap:8px}
.cp-form-modal [data-slot=dialog-footer]>button,.cp-form-modal .crm-modal-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 14px;border:1px solid #d7dadd!important;border-radius:8px!important;background:#fff!important;color:#202124!important;box-shadow:none;font-size:13px;line-height:20px;white-space:nowrap}
.cp-form-modal [data-slot=dialog-footer]>button:last-child,.cp-form-modal .crm-modal-actions>button:last-child{background:#111!important;border-color:#111!important;color:#fff!important}
.cp-form-modal button:disabled{opacity:.45;cursor:not-allowed}
.cp-form-modal button svg{width:16px;height:16px;flex-shrink:0;stroke-width:1.8}
@media(max-width:640px){.cp-form-modal{padding:18px 14px!important;width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)}}

/* Mobile cards never inherit table column sizing. */
.cp-latest-followup time{white-space:nowrap}
@media(max-width:640px){.cp-polished-list .crm-mobile-record-field[data-field]{width:auto!important;min-width:0}.cp-polished-list .crm-mobile-record-field[data-field=latestFollowUp]{width:100%!important}.cp-polished-list .crm-mobile-record .crm-tags{width:100%;display:flex;gap:5px;flex-wrap:wrap}.cp-polished-list .crm-mobile-record .cp-latest-followup{width:100%;min-width:0}}
/* The actual retained six-section markup uses data-r11-section, not a shadow wrapper. */
.profile-polish [data-r11-section=opportunities] button h3{font-size:14px;font-weight:600;color:#30343b}
.profile-polish [data-r11-section=opportunities] button p{font-size:14px;line-height:1.6;color:#59616c;margin-top:7px}
.profile-polish [data-r11-section=opportunities] button p+div{font-size:14px;line-height:1.6;color:#626a75;margin-top:8px}

/* Customer six-section shell only. No shared message-reader, business, or label-color rules. */
.customer-whole.profile-polish{padding:22px 28px!important;min-width:0}
.profile-polish .r11-back{margin:0 0 12px;padding:0}
.profile-polish .cw-identity{gap:20px;margin-bottom:14px!important;align-items:center}
.profile-polish .cw-identity-block{gap:12px;align-items:center}
.profile-polish .cw-avatar{width:42px;flex-basis:42px;height:42px;border-radius:9px;font-size:20px}
.profile-polish .r11-identity-title{min-width:0}
.profile-polish .r11-identity h1{font-size:25px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.profile-polish .r11-company{margin:4px 0 0;font-size:12px;line-height:1.5}
.profile-polish .r11-tags{margin-top:7px;gap:6px}
.profile-polish .r11-actions{gap:8px;align-items:center}
.profile-polish .cw-tabs{gap:26px;min-height:42px;margin-bottom:18px}
.profile-polish .cw-tabs>[role=tab]{padding:10px 0;min-height:42px;font-size:14px}
.profile-polish .cw-panel>.crm-section{margin-bottom:22px}
.profile-polish .cw-panel .crm-section-head{margin-bottom:13px;min-height:30px;gap:10px}
.profile-polish .cw-panel .crm-section-head h2{font-size:15px;line-height:1.5}
.profile-polish .crm-facts{column-gap:32px;row-gap:16px;max-width:1120px}
.profile-polish .crm-facts dt{font-size:12px;margin-bottom:5px;color:#7b8492}
.profile-polish .crm-facts dd{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.profile-polish .cw-reference-fields{margin-top:20px;padding-top:16px}
.profile-polish .cw-reference-title{margin-bottom:12px}
.profile-polish .cw-history{margin-top:18px;padding-top:14px}
.profile-polish .cw-contacts .divide-y{gap:16px 24px;max-width:1120px}
.profile-polish .cp-contact{padding:14px 0!important;min-width:0}
.profile-polish .cp-contact-channels{margin-top:10px;display:grid;gap:8px}
.profile-polish .cp-contact-channels>div{margin:0;gap:12px;min-width:0}
.profile-polish .cp-contact-channels dt{width:70px;flex-basis:70px;color:#808996}
.profile-polish .cp-contact-channels dd{overflow-wrap:anywhere}
/* Natural-height followups: one readable column, not a full-width empty card. */
.profile-polish .cp-followups{width:100%;max-width:960px;min-height:0;margin:0}
.profile-polish .cp-followups>.crm-section{padding:0;margin:0;border:0;background:transparent;box-shadow:none}
.profile-polish .cp-followup-list{display:grid;gap:0;min-width:0}
.profile-polish .cp-followup-list>.cp-followup-record{margin:0!important;padding:13px 0 14px 16px;border-left:2px solid #e4e8ed;border-bottom:1px solid #edf0f3;min-height:0;height:auto;background:transparent}
.profile-polish .cp-followup-list>.cp-followup-record:last-child{border-bottom:0}
.profile-polish .cp-followup-meta{display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;row-gap:5px;min-height:24px;font-size:12px}
.profile-polish .cp-followup-time{font-size:12px;color:#858d99;font-variant-numeric:tabular-nums}
.profile-polish .cp-followup-body{margin:7px 0 0;font-size:14px;line-height:1.75;max-width:84ch;overflow-wrap:anywhere}
.profile-polish .cp-followups [role=status]:empty{margin:0;padding:0;min-height:0}
.profile-polish .cp-followups>.crm-section>button{margin-top:12px}
/* Collections / report: compress chrome, preserve original readers and warnings. */
.profile-polish .cp-correspondence .cw-collection-heading{margin-bottom:12px;gap:12px}
.profile-polish .cp-correspondence .cw-collection-heading h2{font-size:16px;margin-bottom:0}
.profile-polish .cp-correspondence .cw-collection-tabs{margin-bottom:8px;gap:8px}
.profile-polish .cp-correspondence .cw-collection-tabs button{padding:9px 12px}
.profile-polish .cp-correspondence .cw-collection-row{padding:14px 10px;gap:14px}
.profile-polish .cp-correspondence .cw-collection-pagination{padding-top:14px}
.profile-polish .cp-ai-report{max-width:1100px}
.profile-polish .cp-ai-report .cw-collection-heading{margin-bottom:10px}
.profile-polish .cp-ai-report .cw-collection-heading h2{font-size:17px}
.profile-polish .cp-ai-report .cw-ai-disclaimer{padding:9px 0;line-height:1.7}
.profile-polish .cp-ai-report .cw-ai-metadata{padding:14px 0;gap:40px}
.profile-polish .cp-ai-report .cw-ai-sections>section{padding:18px 0}
.profile-polish .cp-ai-report .cw-ai-sections h3{font-size:15px;margin-bottom:8px}
.profile-polish .cp-ai-report .cw-ai-sections p{font-size:14px;line-height:1.8;max-width:92ch}
@media(max-width:760px){
 .customer-whole.profile-polish{padding:16px!important}
 .profile-polish .cw-identity{align-items:flex-start;gap:12px;margin-bottom:10px!important}
 .profile-polish .cw-avatar{width:36px;flex-basis:36px;height:36px;font-size:17px}
 .profile-polish .r11-identity h1{font-size:20px;line-height:1.35}
 .profile-polish .cw-tabs{gap:22px;margin-bottom:15px;min-height:44px}
 .profile-polish .cw-tabs>[role=tab]{min-height:44px}
 .profile-polish .crm-facts{row-gap:14px}
 .profile-polish .cp-followup-list>.cp-followup-record{padding:12px 0 12px 12px}
 .profile-polish .cp-followup-meta{column-gap:8px}
 .profile-polish .cp-followup-body{margin-top:7px;font-size:14px}
 .profile-polish .cp-correspondence .cw-collection-row{padding:13px 0;gap:9px}
 .profile-polish .cp-ai-report .cw-ai-metadata{gap:20px}
}
.profile-polish .cp-followup-section{padding:0;margin:0;border:0;min-height:0}
.profile-polish .cp-followup-section>button{margin-top:12px}
.crm-modal.cp-followup-modal{height:auto;min-height:0;max-width:520px;max-height:calc(100dvh - 32px);padding:20px;gap:16px;overflow-y:auto}
.cp-followup-modal form[aria-label="记录本次跟进"],.cp-followup-modal fieldset{margin:0;min-height:0}
.cp-followup-modal fieldset>*+*{margin-top:14px}
.cp-followup-modal textarea.crm-textarea{min-height:112px;height:112px;resize:vertical}
.cp-followup-modal select.crm-input{min-height:38px;padding:8px 10px}
@media(max-width:600px){.crm-modal.cp-followup-modal{width:calc(100vw - 24px);padding:18px;max-height:calc(100dvh - 24px)}}
/* Merge collection navigation and sort into one desktop toolbar; reader toolbar remains intact. */
.profile-polish .cp-correspondence{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:start}
.profile-polish .cp-correspondence>*{grid-column:1/-1;min-width:0}
.profile-polish .cp-correspondence>.cw-collection-heading{grid-row:1;grid-column:2;margin:0;min-height:40px}
.profile-polish .cp-correspondence>.cw-collection-heading h2{display:none}
.profile-polish .cp-correspondence>.cw-collection-tabs{grid-row:1;grid-column:1;margin-bottom:8px}
.profile-polish .cp-correspondence .cw-collection-tabs button[aria-pressed=true]{color:#171717;border-bottom-color:#171717}
.profile-polish .cp-correspondence:has(.cw-reader-navigation)>.cw-collection-heading{grid-column:1/-1;margin-bottom:10px}
.profile-polish .cw-opportunities button h3{font-size:14px;font-weight:600;color:#30343b}
.profile-polish .cw-opportunities button p+div{font-size:14px;line-height:1.6;color:#626a75}
.profile-polish .cp-ai-report .cw-ai-metadata{display:flex;flex-wrap:wrap;gap:12px 30px;padding:12px 0}
.profile-polish .cp-ai-report .cw-ai-metadata>div{display:flex;align-items:baseline;gap:10px}
.profile-polish .cp-ai-report .cw-ai-metadata dt{margin:0}
@media(max-width:600px){
 .profile-polish .cp-correspondence{column-gap:8px}
 .profile-polish .cp-correspondence>.cw-collection-tabs{gap:2px}
 .profile-polish .cp-correspondence .cw-collection-tabs button{padding:8px 4px;font-size:12px}
 .profile-polish .cp-correspondence .cw-collection-tabs span{margin-left:4px}
 .profile-polish .cp-correspondence>.cw-collection-heading select{padding:7px 5px;font-size:12px;max-width:105px}
 .profile-polish .cp-ai-report .cw-ai-metadata>div{flex-wrap:wrap;gap:4px 8px}
}

/* Current user prototype r2+customer v3. Opportunity-only; no shared/message button selectors. */
.cp-opportunity{max-width:1180px!important;width:100%;padding:0}
.cp-opportunity>button:first-child{margin-bottom:16px;min-height:32px}
.cp-opportunity .cp-opportunity-header{padding-bottom:20px;gap:16px;align-items:flex-start}
.cp-opportunity-header h1{font-size:26px;line-height:1.35;margin:0;letter-spacing:-.02em}
.cp-opportunity-header>div:first-child>div:first-child{margin-bottom:8px}
.cp-opportunity-header>div:first-child>div:last-child{margin-top:10px;gap:8px 16px}
.cp-opportunity-actions{gap:8px;flex-wrap:wrap}
/* Screenshot contract: 8px rectangular corners, thin neutral border, linear icon to left. */
.cp-opportunity-actions>button,.cp-opportunity .crm-section-head>button,
.cp-opportunity-editor [data-slot="dialog-footer"]>button,
.customer-source[data-list-kind="projects"] .crm-title-row>.crm-inline>button{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 14px;border:1px solid #d4d4d4;border-radius:8px!important;background:#fff;color:#171717;box-shadow:none;font-size:13px;line-height:18px;font-weight:500;white-space:nowrap
}
.cp-opportunity-actions>button svg,.cp-opportunity .crm-section-head>button svg,
.cp-opportunity-editor [data-slot="dialog-footer"]>button svg,
.customer-source[data-list-kind="projects"] .crm-title-row>.crm-inline>button svg{width:16px;height:16px;flex:0 0 16px;stroke-width:1.8}
.cp-opportunity-actions>button.cp-opportunity-primary,
.cp-opportunity-editor [data-slot="dialog-footer"]>button:last-child,
.customer-source[data-list-kind="projects"] .crm-title-row>.crm-inline>button:last-child{background:#0a0a0a;color:white;border-color:#0a0a0a}
.cp-opportunity-actions>button:hover:not(:disabled),.cp-opportunity .crm-section-head>button:hover:not(:disabled),.cp-opportunity-editor [data-slot="dialog-footer"]>button:hover:not(:disabled){filter:brightness(.96)}
.cp-opportunity-actions>button:disabled,.cp-opportunity-editor [data-slot="dialog-footer"]>button:disabled{opacity:.45;cursor:not-allowed}
.cp-opportunity button:focus-visible,.cp-opportunity-editor button:focus-visible{outline:2px solid #525252;outline-offset:3px}
.cp-opportunity .cp-opportunity-stage{padding:10px 0;margin-bottom:0}
.cp-opportunity-stage>div{gap:4px;padding-bottom:0}
.cp-opportunity-stage>div>button{padding:9px 8px;min-height:42px;min-width:100px;border-radius:6px 6px 0 0;gap:6px}
.cp-opportunity-stage>div>button>span:first-child{border-radius:5px;width:20px;height:20px}
.cp-opportunity>.crm-section{padding:22px 0!important}
.cp-opportunity .crm-section-head{margin-bottom:16px!important;gap:12px}
.cp-opportunity .crm-section-head h2{font-size:15px;line-height:22px}
.cp-opportunity .crm-section dl{row-gap:18px;column-gap:28px}
.cp-opportunity .crm-section dt{margin-bottom:5px}
.cp-opportunity .crm-section dd{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.cp-opportunity .crm-section>div.grid{gap:24px}
/* Preserve scroll body and native form associations, keep error and actions outside body. */
.crm-modal:has(.cp-opportunity-editor){width:min(760px,calc(100vw - 32px));max-width:760px!important;max-height:calc(100dvh - 32px);padding:22px;gap:14px;display:flex;flex-direction:column;overflow:hidden}
.cp-opportunity-editor{display:flex;flex-direction:column;min-height:0;gap:12px;overflow:hidden}
.cp-opportunity-editor .crm-project-editor-body{padding-right:10px;gap:16px;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.cp-opportunity-editor .cp-opportunity-field-pair{gap:16px}
.cp-opportunity-editor .crm-field{gap:6px;min-width:0}
.cp-opportunity-editor .crm-field>span:first-child{font-size:12px;line-height:18px}
.cp-opportunity-editor input,.cp-opportunity-editor select{min-height:38px;border-radius:7px!important}
.cp-opportunity-editor textarea{min-height:84px;line-height:1.6;border-radius:7px!important}
.cp-opportunity-editor .cp-opportunity-owner-context{padding:10px 0;gap:6px 10px}
.cp-opportunity-editor [data-slot="dialog-footer"]{position:sticky;bottom:0;flex:0 0 auto;background:white;display:flex;flex-direction:row;justify-content:flex-end;gap:10px;margin:0!important;padding:14px 0 0!important;border-top:1px solid #e5e5e5}
/* List remains its current query/paging/field selection implementation. */
.customer-source[data-list-kind="projects"] .crm-title-row{margin-bottom:16px;gap:16px}
.customer-source[data-list-kind="projects"] .crm-toolbar{gap:8px;padding-top:12px;padding-bottom:12px}
.customer-source[data-list-kind="projects"] .crm-list-range{padding-top:8px;padding-bottom:8px}
.customer-source[data-list-kind="projects"] .crm-table th{padding-top:10px;padding-bottom:10px;white-space:nowrap}
.customer-source[data-list-kind="projects"] .crm-table td{padding-top:12px;padding-bottom:12px;vertical-align:top}
.customer-source[data-list-kind="projects"] .crm-table td[data-field="name"]{font-weight:500}
.customer-source[data-list-kind="projects"] .crm-tool-button,.customer-source[data-list-kind="projects"] .crm-select{border-radius:7px!important}
@media(max-width:640px){
 .cp-opportunity-header h1{font-size:22px}
 .cp-opportunity .cp-opportunity-header{gap:12px}
 .cp-opportunity-actions{width:100%;justify-content:flex-end}
 .cp-opportunity-stage>div>button{min-width:104px}
 .crm-modal:has(.cp-opportunity-editor){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;gap:12px}
 .cp-opportunity-editor .cp-opportunity-field-pair{grid-template-columns:minmax(0,1fr);gap:14px}
 .cp-opportunity-editor input,.cp-opportunity-editor select,.cp-opportunity-editor textarea{font-size:16px}
 .cp-opportunity-editor [data-slot="dialog-footer"]>button{min-height:40px;flex:1}
 .customer-source[data-list-kind="projects"] .crm-title-row>.crm-inline{gap:8px;flex-wrap:wrap}
}
/* Actual Rae project-name cell: no decorative avatar, full name + two-line real demand. */
.customer-source[data-list-kind="projects"] .cp-project-entity{display:block;grid-template-columns:none;width:100%;min-width:0;text-align:left;padding:0;background:transparent;border:0}
.customer-source[data-list-kind="projects"] .cp-project-entity>span{display:block;min-width:0}
.customer-source[data-list-kind="projects"] .cp-project-entity strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.55}
.customer-source[data-list-kind="projects"] .cp-project-demand{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.6;margin-top:5px}
.customer-source[data-list-kind="projects"] .cp-project-demand:empty{display:none}
.cp-opportunity .cp-opportunity-stage{padding:6px 0}
.cp-opportunity-editor .cp-opportunity-owner-context>span:last-child{font-size:12px;line-height:18px}

/* Actual qL → No → LL → Uae form; load after previous runtime styling. */
.crm-modal form.cp-opportunity-editor.crm-project-editor .crm-project-editor-body{display:flex!important;flex-direction:column!important;gap:16px!important;min-width:0;margin:0!important;padding:0!important}
.crm-modal form.cp-opportunity-editor.crm-project-editor .crm-project-editor-body>*,.crm-modal form.cp-opportunity-editor.crm-project-editor .cp-opportunity-field-pair>*{margin-top:0!important;margin-bottom:0!important;min-width:0}
.crm-modal form.cp-opportunity-editor.crm-project-editor .cp-opportunity-field-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}
.crm-modal form.cp-opportunity-editor.crm-project-editor label{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0;margin:0!important}
.crm-modal form.cp-opportunity-editor.crm-project-editor label>span{margin:0!important;line-height:1.5}
.crm-modal form.cp-opportunity-editor.crm-project-editor label>input,.crm-modal form.cp-opportunity-editor.crm-project-editor label>select,.crm-modal form.cp-opportunity-editor.crm-project-editor label>textarea{margin:0!important;width:100%;min-width:0;border-radius:8px}
.crm-modal form.cp-opportunity-editor.crm-project-editor .cp-opportunity-owner-context{padding:8px 0!important;gap:8px!important}
.crm-modal form.cp-opportunity-editor.crm-project-editor textarea{min-height:84px!important}
@media(max-width:600px){.crm-modal form.cp-opportunity-editor.crm-project-editor .cp-opportunity-field-pair{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}}

/* Customer list only. The body and its explicitly named timestamp form one record. */
.customer-list-page[data-list-kind=customers] .cp-latest-followup{flex-direction:column;align-items:flex-start;gap:3px}
.customer-list-page[data-list-kind=customers] .cp-followup-excerpt{flex:none;width:100%;min-width:0}
.customer-list-page[data-list-kind=customers] .cp-latest-followup time{min-height:0;white-space:normal;padding:0;line-height:18px}
.customer-list-page[data-list-kind=customers] .cf-sort-label{padding:7px 8px;font-size:13px;line-height:20px;white-space:nowrap}
.customer-list-page[data-list-kind=customers] .cf-opportunities{min-width:0;max-width:100%}
.customer-list-page[data-list-kind=customers] .cf-opportunity-link{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;width:100%;white-space:normal;text-align:left;text-decoration:none;font-size:14px;line-height:22px}
.customer-list-page[data-list-kind=customers] .cf-opportunity-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.customer-list-page[data-list-kind=customers] .cf-opportunity-title{max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-decoration:underline;text-underline-offset:3px}
.customer-list-page[data-list-kind=customers] .cf-opportunity-stage{color:#667085;font-size:13px;line-height:20px}
.customer-list-page[data-list-kind=customers] :is(.cf-opportunity-state,.cf-opportunity-error){font-size:13px;line-height:20px}
.customer-list-page[data-list-kind=customers] .cf-more-opportunities>summary{font-size:13px;line-height:20px;padding:6px 0;cursor:pointer}
@media(max-width:767px){
.customer-list-page[data-list-kind=customers] .cl-card:has(.cl-active-opportunity) .cp-latest-followup time{min-height:0;padding-right:0}
.customer-list-page[data-list-kind=customers] .cl-card-field[data-field=openProjectCount]:has(.cl-active-opportunity){position:static;max-width:none;margin:8px 0 0;width:100%}
.customer-list-page[data-list-kind=customers] .cl-card-field .cf-opportunity-link{white-space:normal;min-height:44px}
.customer-list-page[data-list-kind=customers] .cf-more-opportunities>summary{min-height:44px;box-sizing:border-box;padding:12px 0}
}

.customer-list-page[data-list-kind=customers] .cf-opportunity-remainder{display:flex;flex-direction:column;gap:8px}
.customer-list-page[data-list-kind=customers] .cf-opportunity-remainder .cf-opportunity-title{text-decoration:none}

/* R2: retire the former right-aligned count slot, not actual follow-up touch targets. */
.customer-list-page[data-list-kind=customers] .cf-mobile-opportunity-label{display:none}
@media(max-width:767px){
.customer-list-page[data-list-kind=customers] .cl-card:has(.cl-active-opportunity) .cl-card-field[data-field=latestFollowUp]{min-height:0}
.customer-list-page[data-list-kind=customers] .cf-opportunities{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:6px;row-gap:0;align-items:start}
.customer-list-page[data-list-kind=customers] .cf-mobile-opportunity-label{display:block;grid-column:1;font-size:13px;line-height:22px;color:#667085}
.customer-list-page[data-list-kind=customers] .cf-opportunities>.cf-opportunity-link,.customer-list-page[data-list-kind=customers] .cf-opportunities>.cf-more-opportunities{grid-column:2;min-width:0}
}

/* Exact v23 .crm-vnext layout declarations, restricted to this customer list. */
.customer-list-page.crm-vnext { max-width: var(--crm-page-max-width,1680px); min-width: 0px; color: var(--crm-color-body); background: var(--crm-color-surface); --crm-line: #e5e7eb; --crm-muted: #66707d; box-sizing: border-box !important; width: 100% !important; margin-inline: auto !important; padding: 24px 32px 32px !important; }
@media(max-width:767px){.customer-list-page.crm-vnext{padding:16px 14px 24px!important}}
/* Exact v23 main surface rule, narrowed to active customer/opportunity content. */
main:has(.customer-list-page,.customer-whole,.opportunity-source){background:var(--crm-color-surface)}

/* Exact approved v23 message reader CSS, scoped only inside customer details. */
/* Only message-center standalone reader and compose; not shared customer history. */
.customer-whole dialog.crm-fm-native-reader.mr-reader-dialog{width:calc(100vw - 64px);max-width:1120px;height:90dvh;max-height:90dvh;padding:0;border:1px solid #d4d4d8;border-radius:12px;background:#fff;color:#18181b}
.customer-whole dialog.crm-fm-native-reader.mr-reader-dialog[open]{height:90dvh}
.customer-whole dialog.crm-fm-native-reader.mr-reader-dialog.is-full[open]{height:100dvh;max-height:100dvh;width:100vw;max-width:none;border-radius:0}
.customer-whole .mr-reader-dialog .mr-reader-shellbar{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:52px;padding:6px 20px;border-bottom:1px solid #e4e4e7;background:#fff}
.customer-whole .mr-reader-dialog .mr-reader-back-label{font-size:13px;color:#52525b}
.customer-whole .mr-reader-dialog .mc-reader-scroll{padding:20px 24px 0;min-width:0}
.customer-whole .mr-reader-dialog .mr-reader-heading{display:flex;flex-direction:column;gap:8px;padding:0;margin:0 0 12px}
.customer-whole .mr-reader-dialog .mc-reader-subject{font-size:22px;line-height:30px;font-weight:650;margin:0;color:#18181b}
.customer-whole .mr-reader-dialog .mr-reader-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.customer-whole .mr-reader-dialog .mc-reader-chips{margin:0;gap:6px}
.customer-whole .mr-reader-dialog .mc-reader-count{margin:0;font-size:12px;line-height:20px;white-space:nowrap;color:#71717a}
.customer-whole .mr-reader-dialog .mr-reader-context:empty,.customer-whole .mr-reader-dialog .mr-reader-actions:empty{display:none}
.customer-whole .mr-reader-dialog .mr-reader-context{font-size:12px;line-height:20px;color:#52525b}
.customer-whole .mr-reader-dialog .mr-reader-context p{margin:0}
.customer-whole .mr-reader-dialog .mr-reader-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.customer-whole .mr-reader-dialog .mc-reader-tools{margin:0;padding:7px 0;min-height:48px;border-color:#e4e4e7;background:white;gap:8px}
.customer-whole .mr-reader-dialog .mc-reader-tools button{font-size:13px;min-height:34px;border-radius:8px;padding:6px 10px}
.customer-whole .mr-reader-dialog .mc-reader-content>.mail-history-list{padding:0 2px 20px 0;scrollbar-gutter:stable}
.customer-whole .mr-reader-dialog .mc-reader-message{border:0;border-bottom:1px solid #e4e4e7;border-radius:0;background:white;margin-top:0;padding:0}
.customer-whole .mr-reader-dialog .mc-reader-message-toggle{padding:14px 0 10px;gap:10px;background:white;color:#18181b}
.customer-whole .mr-reader-dialog .mr-sender-name{margin:0;font-size:14px;line-height:22px;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
.customer-whole .mr-reader-dialog .mr-message-date{margin:2px 0 0;font-size:12px;line-height:18px;color:#71717a}
.customer-whole .mr-reader-dialog .mc-reader-message-toggle>div:first-child{border-radius:8px;width:30px;height:30px;font-size:12px;background:#f4f4f5;color:#52525b}
.customer-whole .mr-reader-dialog .mr-address-disclosure{padding:0 0 10px 40px;border:0;background:white;font-size:12px;line-height:20px;color:#52525b}
.customer-whole .mr-reader-dialog .mr-address-disclosure>summary{cursor:pointer;min-height:28px;padding:4px 0;display:list-item;list-style-position:inside;font-size:12px;line-height:20px}
.customer-whole .mr-reader-dialog .mr-address-lines{padding:8px 12px;margin-top:4px;background:#fafafa;border-left:2px solid #e4e4e7;overflow-wrap:anywhere;word-break:normal}
.customer-whole .mr-reader-dialog .mr-address-lines p{margin:4px 0;word-break:normal;overflow-wrap:anywhere}
.customer-whole .mr-reader-dialog .mc-reader-body{padding:0 0 18px;min-width:0;font-size:14px;line-height:22px}
.customer-whole .mr-reader-dialog .mail-reading-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 10px;min-width:0}
.customer-whole .mr-reader-dialog .mail-reading-bar button{font-size:13px;min-height:34px;padding:6px 10px;border-radius:8px}
.customer-whole .mr-reader-dialog .mail-attachments{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid #e4e4e7;font-size:13px}
.customer-whole .mr-reader-dialog .mail-attachments li{max-width:100%;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa;padding:8px 10px}
.customer-whole .mr-reader-dialog .mail-attachments button{font-size:13px;line-height:20px;color:#18181b;white-space:normal;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.customer-whole .mr-reader-dialog button:focus-visible,.customer-whole .mr-reader-dialog summary:focus-visible{outline:2px solid #52525b;outline-offset:2px}
/* Preserve existing HTML sandbox and iframe geometry; no srcdoc/sanitizer/reset. */
.customer-whole .mr-compose-dialog[data-slot=dialog-content]{width:calc(100vw - 40px);max-width:840px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;border-radius:12px;background:#fff;color:#18181b}
.customer-whole .mr-compose-dialog>[data-slot=dialog-header]{flex:none;padding:20px 56px 16px 24px;border-bottom:1px solid #e4e4e7;gap:6px;text-align:left}
.customer-whole .mr-compose-dialog [data-slot=dialog-title]{font-size:22px;line-height:30px}
.customer-whole .mr-compose-dialog [data-slot=dialog-description]{font-size:12px;line-height:20px;color:#52525b;margin:0}
.customer-whole .mr-compose-dialog>.mr-compose-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 24px;display:flex;flex-direction:column;gap:24px}
.customer-whole .mr-compose-dialog .mr-compose-group{display:flex;flex-direction:column;gap:14px;margin:0;padding:0}
.customer-whole .mr-compose-dialog .mr-compose-group+section{padding-top:0;border-top:0}
.customer-whole .mr-compose-dialog .mr-compose-group h3{margin:0;font-size:14px;line-height:22px;font-weight:650}
.customer-whole .mr-compose-dialog .mr-compose-body label{font-size:13px;line-height:20px;gap:6px;margin:0}
.customer-whole .mr-compose-dialog .mr-compose-body input:not([type=file]):not([type=checkbox]),.customer-whole .mr-compose-dialog .mr-compose-body select,.customer-whole .mr-compose-dialog .mr-compose-body textarea{font-size:14px;line-height:22px;min-height:40px;border:1px solid #d4d4d8;border-radius:8px;padding:8px 10px;max-width:100%;min-width:0;background:#fff;color:#18181b}
.customer-whole .mr-compose-dialog .mr-compose-body textarea{min-height:220px}
.customer-whole .mr-compose-dialog .mr-compose-tracking{padding-top:16px;border-top:1px solid #e4e4e7;font-size:13px;line-height:22px}
.customer-whole .mr-compose-dialog .mr-compose-tracking>summary{cursor:pointer;min-height:36px;padding:7px 0}
.customer-whole .mr-compose-dialog .mr-compose-tracking>div{padding:0;border:0;border-radius:0}
.customer-whole .mr-compose-dialog button{border-radius:8px;font-size:13px;min-height:38px}
.customer-whole .mr-compose-dialog>[data-slot=dialog-footer]{display:flex;flex:none;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0;padding:14px 24px;border-top:1px solid #e4e4e7;background:#fff}
.customer-whole .mr-compose-dialog>[data-slot=dialog-footer] button{font-size:14px;padding:8px 16px;min-width:80px}
.customer-whole .mr-compose-dialog :is(input,textarea,select,button,summary):focus-visible{outline:2px solid #52525b;outline-offset:2px}
@media(max-width:640px){
 .customer-whole dialog.crm-fm-native-reader.mr-reader-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .customer-whole .mr-reader-dialog .mr-reader-shellbar{padding:4px 12px;min-height:52px}
 .customer-whole .mr-reader-dialog .mc-reader-scroll{padding:16px 16px 0}
 .customer-whole .mr-reader-dialog .mc-reader-subject{font-size:18px;line-height:26px}
 .customer-whole .mr-reader-dialog .mr-reader-meta{gap:6px 12px}
 .customer-whole .mr-reader-dialog .mc-reader-tools{padding:4px 0}
 .customer-whole .mr-reader-dialog .mc-reader-tools button,.customer-whole .mr-reader-dialog .mail-reading-bar button,.customer-whole .mr-reader-dialog .mail-attachments button{min-height:44px}
 .customer-whole .mr-reader-dialog .mr-address-disclosure{padding-left:0}
 .customer-whole .mr-reader-dialog .mr-address-disclosure>summary{min-height:44px;padding:12px 0;box-sizing:border-box}
 .customer-whole .mr-reader-dialog .mc-reader-body{padding-bottom:16px}
 .customer-whole .mr-compose-dialog[data-slot=dialog-content]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px}
 .customer-whole .mr-compose-dialog>[data-slot=dialog-header]{padding:16px 52px 14px 16px}
 .customer-whole .mr-compose-dialog>.mr-compose-body{padding:16px;gap:20px}
 .customer-whole .mr-compose-dialog>[data-slot=dialog-footer]{padding:12px 16px;gap:8px}
 .customer-whole .mr-compose-dialog button,.customer-whole .mr-compose-dialog .mr-compose-tracking>summary{min-height:44px}
 .customer-whole .mr-compose-dialog .mr-compose-body input:not([type=file]):not([type=checkbox]),.customer-whole .mr-compose-dialog .mr-compose-body select{font-size:16px;min-height:44px}
 .customer-whole .mr-compose-dialog .mr-compose-body textarea[aria-label="正文"]{font-size:16px;min-height:140px;resize:vertical}
}
/* R2 compact thread header; count belongs to the sorting toolbar, not its own row. */
.customer-whole .mr-reader-dialog .mc-reader-tools{justify-content:flex-start;gap:8px}
.customer-whole .mr-reader-dialog .mc-reader-tools>.mc-reader-count{flex:none;margin:0 4px 0 0}
.customer-whole .mr-reader-dialog .mc-reader-tools>button:last-child{margin-left:auto}
.customer-whole .mr-reader-dialog .mc-reader-message-toggle{padding:10px 0 6px;gap:8px}
.customer-whole .mr-reader-dialog .mc-reader-message-toggle>div:first-child{width:auto;height:auto;min-width:0;flex:1;background:none;border-radius:0;color:#18181b;font-size:14px}
.customer-whole .mr-reader-dialog .mr-message-date{margin-top:0;line-height:18px}
.customer-whole .mr-reader-dialog .mr-address-disclosure{padding-left:0;padding-bottom:4px}
.customer-whole .mr-reader-dialog .crm-reader-mode{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa}
.customer-whole .mr-reader-dialog .crm-reader-mode button{border:1px solid transparent;background:transparent;color:#52525b;border-radius:6px;font-size:13px;padding:6px 12px}
.customer-whole .mr-reader-dialog .crm-reader-mode button[aria-pressed=true]{background:#18181b;color:#fff;border-color:#18181b;font-weight:600}
.customer-whole .mr-reader-dialog .mr-pairing-note{margin:0 0 8px;font-size:12px;line-height:20px;color:#71717a}
.customer-whole .mr-reader-dialog .mr-pairing-note>summary{cursor:pointer;min-height:28px;padding:4px 0}
.customer-whole .mr-reader-dialog .mr-pairing-note .crm-bilingual-note{margin:4px 0 8px;padding:8px 10px;background:#fafafa;font-size:12px;line-height:20px;color:#52525b}
@media(max-width:640px){
 .customer-whole .mr-reader-dialog .mc-reader-tools{gap:4px}
 .customer-whole .mr-reader-dialog .mc-reader-tools button{padding-left:8px;padding-right:8px}
 .customer-whole .mr-reader-dialog .crm-reader-mode button,.customer-whole .mr-reader-dialog .mr-pairing-note>summary{min-height:44px}
 .customer-whole .mr-reader-dialog .mc-reader-message-toggle{padding:8px 0 4px}
}

/* Unchanged exact v23 identity layout rules; additional ancestor scope only. No tag color rules copied. */
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
.customer-prototype-page .customer-whole .cw-identity { justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0px 0px 28px; padding: 0px; border: 0px; display: flex !important; }
.customer-prototype-page .customer-whole .cw-identity-block { display: flex; gap: 16px; min-width: 0px; align-items: flex-start; }
.customer-prototype-page .customer-whole .cw-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px; background: var(--muted,#f3f4f6); color: var(--foreground,#242424); border: 1px solid var(--border,#e5e7eb); border-radius: 12px; font-size: 21px; font-weight: 600; }
.customer-prototype-page .customer-whole .r11-identity-title { min-width: 0px; }
.customer-prototype-page .customer-whole .r11-identity h1 { font-size: 25px; line-height: 1.35; letter-spacing: -0.02em; margin: 0px; overflow-wrap: anywhere; }
.customer-prototype-page .customer-whole .r11-company { font-size: 14px; color: var(--muted-foreground,#737373); margin: 6px 0px 0px; line-height: 1.6; overflow-wrap: anywhere; }
.customer-prototype-page .customer-whole .r11-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.customer-prototype-page .customer-whole .cw-tabs { gap: 24px; overflow-x: auto; white-space: nowrap; border-top: 0px; border-right: 0px; border-left: 0px; border-image: none; border-bottom: 1px solid var(--border,#e5e7eb); padding: 0px; margin: 0px 0px 24px; scrollbar-width: thin; display: flex !important; }
.customer-prototype-page .customer-whole .cw-tabs > [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border-width: 0px 0px 2px; border-style: none none solid; border-color: currentcolor currentcolor transparent; border-image: none; background: transparent; padding: 12px 0px; margin-bottom: -1px; font-size: 14px; color: var(--muted-foreground,#737373); cursor: pointer; }
.customer-prototype-page .customer-whole .cw-tabs > [role="tab"][aria-selected="true"] { color: var(--foreground,#242424); font-weight: 600; border-bottom-color: currentcolor; }
.customer-prototype-page .customer-whole .cw-tabs > [role="tab"] > span { font-size: 12px; font-weight: 400; color: var(--muted-foreground,#737373); }
.customer-prototype-page .customer-whole .cw-tabs > [role="tab"]:focus-visible { outline: 2px solid var(--ring,#737373); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 760px) {
  .customer-prototype-page .customer-whole .cw-identity { gap: 16px; flex-direction: column; margin-bottom: 20px; }
  .customer-prototype-page .customer-whole .cw-identity-block { gap: 12px; }
  .customer-prototype-page .customer-whole .cw-avatar { flex-basis: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
  .customer-prototype-page .customer-whole .r11-identity h1 { font-size: 21px; }
  .customer-prototype-page .customer-whole .cw-tabs { gap: 22px; margin-bottom: 22px; }
  .customer-prototype-page .customer-whole .cw-tabs > [role="tab"] { min-height: 44px; }
}
.customer-prototype-page .customer-whole .cw-identity { margin-bottom: 16px; }
.customer-prototype-page .customer-whole .cw-tabs { overflow-y: hidden; min-height: 48px; }
@media (max-width: 600px) {
  .customer-prototype-page .customer-whole .cw-identity { margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .customer-prototype-page [data-customer-prototype].customer-source.crm-r11-customer.customer-whole .r11-country { flex-wrap: wrap; gap: 6px; display: inline-flex !important; visibility: visible !important; }
  .customer-prototype-page [data-customer-prototype].customer-source.crm-r11-customer.customer-whole .r11-tags { display: flex !important; flex-wrap: wrap !important; }
}
.customer-prototype-page .profile-polish .cw-identity { gap: 20px; align-items: center; margin-bottom: 14px !important; }
.customer-prototype-page .profile-polish .cw-identity-block { gap: 12px; align-items: center; }
.customer-prototype-page .profile-polish .cw-avatar { width: 42px; flex-basis: 42px; height: 42px; border-radius: 9px; font-size: 20px; }
.customer-prototype-page .profile-polish .r11-identity-title { min-width: 0px; }
.customer-prototype-page .profile-polish .r11-identity h1 { font-size: 25px; line-height: 1.3; margin: 0px; overflow-wrap: anywhere; }
.customer-prototype-page .profile-polish .r11-company { margin: 4px 0px 0px; font-size: 12px; line-height: 1.5; }
.customer-prototype-page .profile-polish .r11-tags { margin-top: 7px; gap: 6px; }
.customer-prototype-page .profile-polish .cw-tabs { gap: 26px; min-height: 42px; margin-bottom: 18px; }
.customer-prototype-page .profile-polish .cw-tabs > [role="tab"] { padding: 10px 0px; min-height: 42px; font-size: 14px; }
@media (max-width: 760px) {
  .customer-prototype-page .profile-polish .cw-identity { align-items: flex-start; gap: 12px; margin-bottom: 10px !important; }
  .customer-prototype-page .profile-polish .cw-avatar { width: 36px; flex-basis: 36px; height: 36px; font-size: 17px; }
  .customer-prototype-page .profile-polish .r11-identity h1 { font-size: 20px; line-height: 1.35; }
  .customer-prototype-page .profile-polish .cw-tabs { gap: 22px; margin-bottom: 15px; min-height: 44px; }
  .customer-prototype-page .profile-polish .cw-tabs > [role="tab"] { min-height: 44px; }
}
@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
.customer-prototype-page .crm-r11-customer .r11-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border: 0px; }
.customer-prototype-page .crm-r11-customer .r11-identity-title { flex: 1 1 0%; min-width: 0px; }
.customer-prototype-page .crm-r11-customer .r11-identity h1 { font-size: 23px; line-height: 1.35; letter-spacing: -0.4px; margin: 0px; font-weight: 650; overflow-wrap: anywhere; }
.customer-prototype-page .crm-r11-customer .r11-company { font-size: 13px; color: rgb(108, 116, 128); margin: 4px 0px 0px; }
.customer-prototype-page .crm-r11-customer .r11-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; font-size: 12px; }
.customer-prototype-page .crm-r11-customer .r11-country { display: contents; }
.customer-prototype-page .crm-r11-customer .r11-nav { position: sticky; top: 0px; z-index: 6; background: rgb(255, 255, 255); display: flex; gap: 22px; align-items: center; overflow-x: auto; padding: 6px 5px 8px; margin: 0px -5px 10px; border-bottom: 1px solid rgb(229, 232, 237); scrollbar-width: thin; }
.customer-prototype-page .crm-r11-customer .r11-nav a { white-space: nowrap; font-size: 13px; line-height: 1.6; padding: 4px 0px; color: rgb(102, 115, 134); text-decoration: none; }
.customer-prototype-page .crm-r11-customer .r11-nav a span { margin-left: 4px; color: rgb(135, 144, 157); font-size: 11px; }
@media (max-width: 640px) {
  .customer-prototype-page .crm-r11-customer .r11-identity { gap: 10px; padding-bottom: 8px; }
  .customer-prototype-page .crm-r11-customer .r11-identity h1 { font-size: 21px; }
  .customer-prototype-page .crm-r11-customer .r11-company,.customer-prototype-page  .crm-r11-customer .r11-country { display: none; }
  .customer-prototype-page .crm-r11-customer .r11-tags { margin-top: 5px; }
  .customer-prototype-page .crm-r11-customer .r11-nav { gap: 17px; padding-bottom: 5px; margin-bottom: 7px; }
}
.customer-prototype-page .crm-r11-customer[data-crm-ui-section] .r11-nav { gap: 28px; padding-top: 4px; padding-bottom: 0px; margin-bottom: 24px; }
.customer-prototype-page .crm-r11-customer[data-crm-ui-section] .r11-nav a { padding: 10px 2px; border-bottom: 2px solid transparent; min-height: 42px; }
.customer-prototype-page .crm-r11-customer[data-crm-ui-section] .r11-nav a[aria-current="page"] { color: rgb(32, 35, 41); font-weight: 600; border-bottom-color: rgb(32, 35, 41); }
.customer-prototype-page .crm-r11-customer[data-crm-ui-section] .r11-nav a span { color: inherit; }
@media (max-width: 640px) {
  .customer-prototype-page .crm-r11-customer[data-crm-ui-section] .r11-nav { gap: 22px; margin-bottom: 18px; }
}
.customer-prototype-page .crm-r11-customer .r11-nav { top: var(--r12-sticky-top,0px); }
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
@media (hover: hover) {
}
.customer-prototype-page .cd-redesign .r11-identity h1 { font-size: 24px; line-height: 32px; letter-spacing: 0px; }
.customer-prototype-page .cd-redesign .cw-identity-block { flex: 1 1 0%; min-width: 0px; }
.customer-prototype-page .cd-redesign .r11-identity-title { width: 100%; min-width: 0px; }
.customer-prototype-page .cd-redesign .r11-company { font-size: 14px; line-height: 22px; }
.customer-prototype-page .cd-redesign .cw-tabs { overflow: auto hidden; min-height: 44px; margin-bottom: 16px; gap: 24px; }
@media (max-width: 760px) {
  .customer-prototype-page .cd-redesign .r11-identity h1 { font-size: 24px; line-height: 32px; }
}
.customer-prototype-page .crm-r11-customer.cd-redesign[data-crm-ui-section] .r11-nav { padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 16px; min-height: 44px; }
.customer-prototype-page .crm-r11-customer.cd-redesign .r11-identity { padding-top: 0px; padding-bottom: 0px; }