/* Derived mobile context is never exposed in desktop/table layouts. */
.mcm-contact-context,.mcm-contact-finances,.mcm-relationship-tabs{display:none}
/* Final mobile sheet vocabulary; all values come from native scoped records. */
@media(max-width:640px){
 #content :is(.cpp-page,.cd-page,.lx,.ac-page,.aw,.cw){--mcm-card:var(--card,#fff);--mcm-line:var(--line,#dfdcd5);--mcm-muted:var(--mut,var(--stone,#706b63))}
 #content :is(.cpp-page,.cd-page,.lx,.ac-page,.aw,.cw) :is(h1,h2){font-family:var(--font-sans,Geist,Arial,sans-serif)!important;letter-spacing:-.025em}
 #content :is(.cd-heading,.lx-head,.ac-heading,.aw-head){gap:12px!important;margin-bottom:16px!important;align-items:center!important}
 #content :is(.cd-heading,.lx-head,.ac-heading,.aw-head) h1{font-size:23px!important;line-height:30px!important;margin:0!important}
 #content :is(.cd-heading,.ac-heading,.aw-head) p{font-size:13px!important;line-height:19px!important;margin:4px 0 0!important}
 #content :is(.cd-heading,.ac-heading,.aw-head)>div:last-child{gap:8px!important}
 #content .cd-heading>div:last-child{display:flex;flex-wrap:wrap}
 #content :is(.cd-heading,.ac-heading,.aw-head) .btn{min-height:44px!important;padding:9px 12px!important;font-size:13px!important}
 #content :is(.cd-tabs,.lx-tabs,.aw-inboxes,.finance-process,.cw-view-tabs,.mcm-relationship-tabs){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;white-space:nowrap;scrollbar-width:none;gap:0!important;max-width:100%;border-radius:0!important;background:transparent!important;border-bottom:1px solid var(--mcm-line);margin:8px 0!important}
 #content :is(.cd-tabs,.lx-tabs,.aw-inboxes,.finance-process,.mcm-relationship-tabs)>:is(button,details){flex:0 0 auto!important;min-height:44px!important}
 #content :is(.cd-tabs,.lx-tabs,.aw-inboxes,.mcm-relationship-tabs)>button{border:0!important;border-radius:0!important;padding:10px 12px!important;background:transparent!important;font-size:12px!important;color:var(--mcm-muted)}
 #content :is(.cd-tabs,.lx-tabs,.mcm-relationship-tabs)>button[aria-pressed=true],#content .aw-inboxes>button[aria-current=page]{color:var(--ink)!important;border-bottom:2px solid var(--blue,#007aff)!important;font-weight:650}
 #content .cpp-page [data-status]{font-size:12px!important;line-height:18px;margin:8px 0!important}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) tbody{display:block!important;border:1px solid var(--mcm-line)!important;border-radius:12px!important;overflow:hidden;background:var(--mcm-card)}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) tr.mcm-contact-row{display:block!important;border:0!important;border-bottom:1px solid var(--mcm-line)!important;border-radius:0!important;padding:10px 12px!important;margin:0!important;background:var(--mcm-card)!important;box-shadow:none!important;position:relative}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) tr.mcm-contact-row:last-child{border-bottom:0!important}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) .mcm-contact-row>td{padding:0!important;border:0!important}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) .mcm-contact-row>td:not(:first-child){display:none!important}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) .mcm-contact-row.mcm-finances-open>td:is([data-bux-label="We sold them"],[data-bux-label="We bought from them"]){display:block!important;padding:8px 0 0 44px!important;font-size:13px}
 #content .cpp-scroll table:is([data-cv-view=card],[data-bleu-tables-layout=card]):not([data-cv-view=spreadsheet]) .mcm-contact-row>td:first-child::before{display:none!important}
 #content .ori-customer-identity{gap:10px!important;align-items:flex-start!important}
 #content .ori-customer-copy{min-width:0!important;flex:1;padding-right:32px}
 #content .ori-customer-copy .cpp-name{display:block!important;min-height:44px!important;line-height:20px!important;padding:0!important;text-align:left;font-size:14px!important}
 #content .mcm-contact-row .cpp-kind{display:none!important}
 #content .mcm-contact-context{display:block;color:var(--mcm-muted);font-size:12px;line-height:18px;overflow-wrap:anywhere}
 #content .mcm-contact-finances{position:absolute;right:8px;top:10px;display:block;min-height:44px;min-width:44px;border:0;background:transparent;color:var(--blue,#007aff);font:inherit;font-size:12px;padding:4px 0;text-align:left}
 #content .cd-row{padding:12px!important;gap:8px!important;flex-direction:row!important;align-items:flex-start!important;background:var(--mcm-card)}
 #content [data-cd-list]>.card{border-radius:12px!important;overflow:hidden;padding:0!important}
 #content [data-cd-list]>.card .cd-row>span:first-child{padding-left:0!important;min-width:0}
 #content [data-cd-list]>.card .cd-row>span:last-child{padding-left:0!important;flex:none!important;width:auto!important;max-width:92px!important;flex-direction:column!important;align-items:flex-end!important;gap:4px!important;text-align:right!important}
 #content .cd-row .bleu-deal-identity{gap:10px!important;align-items:flex-start!important}
 #content .cd-row .bleu-deal-photo,#content .cd-row .cphrow{width:40px!important;height:40px!important;min-width:40px!important;border-radius:8px!important;overflow:hidden}
 #content .cd-row strong{font-size:14px!important;line-height:20px!important}
 #content .cd-row small{font-size:12px!important;line-height:18px!important}
 #content .cd-row>span:last-child b{font-size:11px!important;line-height:16px!important;padding:3px 6px!important;white-space:normal!important}
 #content .cd-count{font-size:12px!important;margin:12px 0!important}
 #content .cd-toolbar{gap:8px!important}
 #content .lx-head .lx-keys{display:none!important}
 #content .lx-summary{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin:0!important}
 #content .lx-link{min-width:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 #content .lx-list{border-radius:12px!important;border:1px solid var(--mcm-line)!important;overflow:hidden}
 #content .lx-row{padding:12px!important;background:var(--mcm-card)!important;gap:10px!important;border-bottom:1px solid var(--mcm-line)!important}
 #content .lx-row-main{min-width:0!important}
 #content .lx-row-top{gap:8px!important}
 #content .lx-who{font-size:14px!important;line-height:20px!important}
 #content .lx-row-sub{display:block!important}
 #content .lx-snip{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;overflow:hidden;font-size:12px!important;line-height:18px!important}
 #content .lx-kind{display:block!important;font-size:12px!important;margin:2px 0!important;color:var(--mcm-muted)}
 .lx-detail :is(.lx-link,.ment.mcar.click){min-width:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;white-space:normal!important}
 #content .ac-stats{display:flex!important;gap:16px!important;margin:8px 0 16px!important;padding:0!important;border:0!important;background:transparent!important}
 #content .ac-stat{padding:0!important;border:0!important;display:flex!important;gap:4px!important;align-items:baseline!important;flex-wrap:wrap}
 #content .ac-stat b{font-size:15px!important}#content .ac-stat span{font-size:12px!important}
 #content .ac-team-group{border-radius:12px!important;overflow:hidden;margin:16px 0!important}
 #content .ac-team-group h2{font-size:13px!important;padding:8px 0!important;background:transparent!important}
 #content .ac-member{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;gap:4px 10px!important;align-items:center!important;min-height:76px!important;padding:12px!important;background:var(--mcm-card)!important;border-radius:0!important}
 #content .ac-member .ac-avatar{grid-row:1/4!important;width:34px!important;height:34px!important;font-size:12px!important}
 #content .ac-member .ac-person{grid-column:2!important;min-width:0!important}
 #content .ac-person strong{font-size:14px!important;line-height:20px!important;overflow-wrap:anywhere}
 #content .ac-person small{font-size:12px!important;line-height:18px!important;overflow-wrap:anywhere}
 #content .ac-member .ac-role{grid-column:2!important;grid-row:2!important;font-size:12px!important;white-space:normal!important}
 #content .ac-member .ac-pill{grid-column:3!important;grid-row:1/3!important;font-size:11px!important;max-width:75px;white-space:normal!important}
 #content .ac-member>.ac-icon{display:none!important}
 #content .aw .finance-step-number{display:none!important}
 #content .aw .finance-process>button{padding:8px 12px!important;font-size:12px!important;border-radius:0!important;background:transparent!important;gap:6px!important}
 #content .aw .finance-process .finance-step-label{font-size:12px!important}
 #content .aw .aw-tools{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important}
 #content .aw .aw-tools>label{flex:1!important;min-width:0!important}
 #content .aw .aw-tools input{width:100%!important;font-size:16px!important;min-height:44px!important}
 #content .aw .of-secondary{font-size:12px!important;line-height:18px!important;margin:8px 0 12px!important}
 #content .aw .aw-scroll{border-radius:12px!important;overflow:hidden!important}
 #content .aw .aw-scroll tbody tr{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;gap:6px 10px!important;padding:12px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--mcm-line)!important;border-radius:0!important;background:var(--mcm-card)!important;position:relative}
 #content .aw .aw-scroll tbody tr>*{width:auto!important;min-width:0!important;position:static!important;padding:0!important;border:0!important;font-size:12px!important;line-height:18px!important}
 #content .aw .aw-scroll tbody tr>td:first-child{grid-column:1!important;grid-row:1/4!important}
 #content .aw .aw-scroll tbody tr>th{grid-column:2!important;grid-row:1!important}
 #content .aw .aw-scroll tbody tr>td:nth-child(3){grid-column:2/4!important;grid-row:2!important}
 #content .aw .aw-scroll tbody tr>.aw-number{grid-column:3!important;grid-row:1!important;font-size:13px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
 #content .aw .aw-scroll tbody tr>td:nth-child(5){grid-column:2/4!important;grid-row:3!important}
 #content .aw .aw-scroll tbody tr>td:last-child{grid-column:2/4!important;grid-row:4!important}
 #content .aw .aw-scroll .aw-link{min-height:44px!important;display:block!important;text-align:left!important;font-size:14px!important;line-height:20px!important;white-space:normal!important;overflow-wrap:anywhere}
 #content .aw .aw-scroll .aw-link small{display:block!important;font-size:12px!important;line-height:18px!important}
 #content .aw .aw-scroll .pct-identity{display:block!important}
 #content .aw .aw-scroll .pct-details{margin:4px 0!important;position:static!important}
 #content .aw .aw-scroll .pct-details summary{min-height:44px!important;display:flex!important;align-items:center!important;min-width:44px}
 #content .aw .aw-scroll .aw-attention{display:block!important;margin-top:4px!important}
 #content .aw .aw-scroll td>strong{display:inline-block!important;position:static!important;white-space:normal!important;max-width:100%}
 #content .aw .aw-scroll .btn{min-height:44px!important;padding:8px 12px!important;max-width:100%}
 #content .ap-page button[data-ap-sort],#content .ap-page .ap-fgroup>summary,#content .cw-more-filters>summary{min-height:44px!important;min-width:44px!important}
 #drawer[data-brs=customer] :is(.pbyc,.pcontact,.dbig),#drawer:has(.cd-editor) :is(.cd-section,.cd-facts){border-radius:12px!important}
 #drawer[data-brs=customer] :is(.dfield,.brs-fact){font-size:13px!important;line-height:20px!important}
 #drawer :is(.cd-editor,.customer-profile) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important;min-height:44px!important}
}
@media(max-width:640px){
 #content .cd-row{display:block!important}
 #content .cd-row .bleu-deal-identity{display:flex!important;width:100%!important}
 #content .cd-row .bleu-deal-photo{flex:0 0 40px!important;max-width:40px!important}
 #content .cd-row .bleu-deal-photo>*{max-width:40px!important;width:40px!important;height:40px!important}
 #content .cd-row .bleu-deal-identity>span:last-child{min-width:0!important;flex:1!important}
 #content [data-cd-list]>.card .cd-row>span:last-child{max-width:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;margin-top:6px!important;gap:8px!important}
 #content [data-cd-list]>.card .cd-row:has(.bleu-deal-photo)>span:last-child{margin-left:50px!important}
 #content .ac-person{margin:0!important;padding:0!important;max-width:none!important;width:auto!important;align-self:center!important}
 #content .ac-person small{display:none!important}
 #content .ac-member .ac-role{display:block!important}
 #content .ac-member .ac-pill:not(.off){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)}
 #content .ac-member{grid-template-columns:36px minmax(0,1fr) auto!important;position:relative}
 #content .ac-avatar{align-self:center!important}
 #content .ac-stats .ac-stat{display:block!important;text-align:left!important}
 #content .ac-stats .ac-stat span{display:block!important}
}
@media(max-width:640px){
 html[data-claude-money] #content :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important;min-height:44px!important}
 #content .aw .finance-process-heading{margin:8px 0!important}
 #content .aw .finance-process-heading>strong{font-size:12px!important}
 #content .aw .finance-process-heading p{font-size:12px!important;line-height:18px!important;margin:4px 0!important}
 #content .cw .cw-more-filters>summary{min-width:44px!important;min-height:44px!important}
}

@media(max-width:640px){#content table[data-cv-view=spreadsheet] :is(.mcm-contact-context,.mcm-contact-finances){display:none!important}}
/* Authoritative native concealment always wins over presentation layout. */
@media(max-width:640px){#content [hidden],#drawer [hidden],.lx-detail [hidden]{display:none!important}}
@media(max-width:640px){
 #content .cd-heading{display:flex!important;flex-direction:row!important;align-items:flex-start!important}
 #content .cd-heading>div:first-child{flex:1;min-width:0}
 #content .cd-heading p{display:none!important}
 #content .cd-heading>div:last-child{flex:none!important;display:flex!important;flex-wrap:nowrap!important;gap:8px!important}
 #content .mcm-deal-options{position:relative}
 #content .mcm-deal-options>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;border:1px solid var(--mcm-line);border-radius:8px;background:var(--mcm-card);font-size:16px}
 #content .mcm-deal-options>div{position:absolute;top:calc(100% + 6px);right:0;z-index:15;display:flex;flex-direction:column;gap:8px;min-width:220px;max-width:calc(100vw - 40px);padding:12px;background:var(--mcm-card);border:1px solid var(--mcm-line);border-radius:12px;box-shadow:0 8px 24px #0002}
 #content .mcm-deal-options .btn{width:100%!important;min-height:44px!important;white-space:normal!important}
}
/* Customers uses the native unified header as one compact block. Its former
   display:contents/sticky toolbar retained layout space while moving the search
   independently of the title and scope text after the new shell changed chrome. */
@media(max-width:640px){
 html[data-bleu-unified] #shell #content#content .cpp-page .blh{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:0!important;height:auto!important;margin:0 0 8px!important;padding:0!important;position:static!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-top{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-head{display:flex!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-line{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-title{font-size:23px!important;line-height:30px!important;margin:0!important;min-width:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-count{font-size:12px!important;line-height:18px!important;flex:none!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-acts{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:0!important;margin:0!important;padding:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-bar{position:static!important;top:auto!important;inset:auto!important;transform:none!important;min-height:44px!important;height:auto!important;width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh-chips{position:static!important;margin:0!important;padding:0!important;min-height:0!important}
 html[data-bleu-unified] #shell #content#content .cpp-page>.mcm-relationship-tabs{margin:4px 0 8px!important}
 html[data-bleu-unified] #shell #content#content .cpp-page>p[data-status]{min-height:0!important;margin:4px 0!important;font-size:12px!important;line-height:18px!important}
 html[data-bleu-unified] #shell #content#content .cpp-page .blh [hidden]{display:none!important}
}
