/* Customer archive: an open reading surface, independent company facts and quiet history. */
.customer-detail-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(1360px,96vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-left:1px solid var(--border-subtle);border-radius:14px 0 0 14px;padding:0;overflow:hidden;background:#fff;color:var(--text-primary);box-shadow:-16px 0 60px #10182312}
.customer-detail-drawer::backdrop{background:#10131829;backdrop-filter:blur(2px)}
.customer-detail-drawer[open]{display:flex;flex-direction:column;animation:customer-dossier-enter .18s ease-out}
body.has-customer-drawer{overflow:hidden}
.customer-detail-heading{position:relative;display:flex;flex-shrink:0;justify-content:space-between;gap:20px;padding:18px 24px 17px;border-bottom:1px solid var(--border-subtle)}
.customer-heading-main{flex:1;min-width:0}
.customer-detail-heading h2{margin:0;color:var(--text-primary);font-size:22px;font-weight:600;line-height:1.4;letter-spacing:-.03em;overflow-wrap:anywhere}
.customer-heading-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px}
.customer-website{color:var(--text-secondary);font-size:13px;line-height:1.7;text-decoration:none;overflow-wrap:anywhere;text-underline-offset:3px}
.customer-website:hover{text-decoration:underline}
.customer-heading-actions{display:flex;align-items:center;gap:9px;flex-shrink:0;align-self:flex-start}
.customer-detail-drawer .customer-heading-actions>.portal-button{min-height:38px;padding:9px 13px;font-size:var(--font-list-meta);border-radius:8px;box-shadow:none;white-space:nowrap}
.customer-detail-drawer .customer-heading-actions>.portal-button:hover{transform:none}
.customer-detail-drawer .customer-heading-actions .customer-close{display:grid;place-items:center;border:0;border-radius:8px;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;font-size:24px;color:var(--text-tertiary);background:transparent;cursor:pointer}
.customer-heading-actions .customer-close:hover{background:var(--surface-hover);color:var(--text-primary)}
.customer-heading-context{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px;margin-top:12px;min-width:0}
.customer-heading-context>[data-customer-summary-tags]{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.customer-detail-drawer .customer-match-heading{margin:0;flex:none}
.customer-detail-drawer .customer-fit-badge{padding:0;border:0;background:transparent;color:var(--text-secondary);gap:5px;border-radius:0;font-size:var(--font-list-meta)}
.customer-detail-drawer .customer-fit-badge strong{font-size:var(--font-list-number);font-weight:var(--weight-medium);letter-spacing:-.03em}
.customer-detail-drawer .customer-fit-badge.is-high strong{color:var(--action-ink)}
.customer-detail-drawer .customer-company-tags{gap:6px;margin:0;min-width:0}
.customer-detail-drawer .customer-company-tag{padding:3px 8px;border:1px solid #e2e7ed;border-radius:6px;background:#f5f7fa;color:var(--text-secondary);font-size:13px;line-height:1.7}
.customer-detail-drawer .customer-company-tag.is-companyType{border-color:var(--border-subtle);background:var(--surface-subtle);color:var(--text-secondary)}
.customer-detail-drawer .customer-company-tag.is-product{border-color:var(--border-subtle);background:var(--surface-subtle);color:var(--text-secondary)}
.customer-detail-state{flex-shrink:0;min-height:0}
.customer-detail-state>p{margin:15px 28px;font-size:13px;line-height:1.8}
.customer-detail-state>button{margin:0 28px 15px}
.customer-detail-skeleton{display:grid;gap:0;padding:8px 28px 20px}
.customer-detail-skeleton>div{height:92px;border-bottom:1px solid var(--border-subtle);background:linear-gradient(#eef0f3 0 0) left 10px top 22px/42% 12px no-repeat,linear-gradient(#f5f6f8 0 0) left 10px top 50px/70% 9px no-repeat;animation:customer-dossier-pulse 1.5s ease-in-out infinite}
.customer-detail-skeleton>div:nth-child(2){width:85%}.customer-detail-skeleton>div:nth-child(3){width:93%}
.customer-dossier-content{flex:1;min-height:0;display:flex;flex-direction:column}
.customer-dossier-layout{display:grid;grid-template-columns:minmax(260px,298px) minmax(0,1fr);grid-template-areas:"profile work";flex:1;min-height:0}
.customer-dossier-main{grid-area:work;display:flex;flex-direction:column;min-width:0;min-height:0}
.customer-dossier-tabs{display:flex;flex-shrink:0;align-items:stretch;gap:24px;min-height:52px;padding:0 24px;border-bottom:1px solid var(--border-subtle)}
.customer-dossier-tabs button{border:0;border-bottom:2px solid transparent;padding:0 1px;background:transparent;font:inherit;font-size:13px;line-height:1.7;white-space:nowrap;color:var(--text-tertiary);cursor:pointer;min-height:48px}
.customer-dossier-tabs button[aria-selected="true"]{border-bottom-color:var(--action);color:var(--action-ink);font-weight:500}
.customer-dossier-tabs button:focus-visible{outline:2px solid var(--field-keyboard,#7d97b0);outline-offset:-5px;border-radius:5px}
.customer-dossier-tabs [data-customer-tab="company"]{display:none}
.customer-dossier-scroll,.customer-aside-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#d8dce2 transparent;padding:22px 24px max(26px,env(safe-area-inset-bottom))}
.customer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.customer-section-heading h3,.customer-aside-heading h3,.customer-editor-heading h3{margin:0;font-size:14px;line-height:1.7;font-weight:var(--weight-medium);color:var(--text-primary)}
.customer-section-heading p{margin:6px 0 0;font-size:var(--font-list-meta);color:var(--text-tertiary);line-height:1.7}
.customer-timezone{font-size:var(--font-list-meta);color:var(--text-tertiary);white-space:nowrap;line-height:2}
.customer-history{list-style:none;padding:0;margin:0}
.customer-history-entry{position:relative;padding:0 0 26px 25px}
.customer-history-entry::before{content:'';position:absolute;top:8px;left:2px;width:6px;height:6px;border:2px solid #fff;border-radius:50%;background:#9aa3b0;z-index:1}
.customer-history-entry::after{content:'';position:absolute;left:6px;top:19px;bottom:-3px;width:1px;background:var(--border-subtle)}
.customer-history-entry:last-child::after{display:none}
.customer-history-entry.is-discovery::before{background:var(--action)}
.customer-history-entry.is-created::before{background:var(--action)}
.customer-history-card{border:0;border-radius:0;padding:0;background:transparent}
.customer-history-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.customer-history-head h4{margin:0;font-size:14px;line-height:1.8;font-weight:500;overflow-wrap:anywhere}
.customer-history-head time{color:var(--text-tertiary);font-size:11px;line-height:1.8;white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-history-task{font-size:13px;color:var(--text-secondary);margin:10px 0 3px;line-height:1.8;overflow-wrap:anywhere}
.customer-history-context{font-size:var(--font-list-meta);line-height:1.8;color:var(--text-tertiary);margin:7px 0 0;overflow-wrap:anywhere}
.customer-history-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:7px}
.customer-history-actions .customer-history-context{margin:0}
.customer-detail-drawer .portal-text-button{font-size:var(--font-list-meta);line-height:1.7;min-height:32px;padding:5px 0;text-align:left}
.customer-history-limit{color:var(--text-tertiary);font-size:var(--font-list-meta);margin:0 0 20px}
.customer-dossier-aside{grid-area:profile;display:flex;flex-direction:column;min-width:0;min-height:0;background:#fafbfc;border-right:1px solid var(--border-subtle)}
.customer-aside-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;flex-shrink:0;padding:0 20px;border-bottom:1px solid var(--border-subtle)}
.customer-aside-scroll{padding-left:20px;padding-right:20px}
.customer-company-summary{font-size:13px;color:var(--text-secondary);line-height:1.85;margin:0 0 20px;overflow-wrap:anywhere;white-space:pre-wrap}
.customer-company-facts{margin:0}
.customer-company-fact{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;margin-top:14px;font-size:var(--font-list-meta);line-height:1.9}
.customer-company-fact dt{color:var(--text-tertiary)}
.customer-company-fact dd{margin:0;color:var(--text-secondary);overflow-wrap:anywhere;white-space:pre-wrap}
.customer-company-origin{border-top:1px solid var(--border-subtle);margin-top:26px;padding-top:22px}
.customer-company-origin h4{font-size:13px;font-weight:500;margin:0 0 16px}
.customer-editor{margin-top:24px;border-top:1px solid var(--border-subtle);padding-top:23px}
.customer-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.customer-editor .portal-field{display:grid;gap:8px;margin-bottom:19px}
.customer-detail-drawer .customer-editor .portal-label{font-size:13px;font-weight:500;color:var(--text-secondary)}
.customer-detail-drawer .customer-editor :is(.portal-input,.portal-textarea){width:100%;min-width:0;font-size:14px;background:#fff;border:1px solid var(--border-default);border-radius:8px;line-height:1.8;padding:10px 12px}
.customer-detail-drawer .customer-editor :is(.portal-input,.portal-textarea):is(:focus,:focus-visible){outline:none;box-shadow:none;border-color:var(--field-focus-border,#c4cfda);background:#fff}
.customer-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.customer-detail-actions>span{font-size:var(--font-list-meta);line-height:1.7;color:var(--text-tertiary)}
.customer-detail-drawer .customer-detail-actions>.portal-button{min-height:38px;padding:8px 12px;font-size:var(--font-list-meta);border-radius:8px;box-shadow:none}
.customer-notes-copy{font-size:14px;line-height:1.95;color:var(--text-secondary);white-space:pre-wrap;overflow-wrap:anywhere;background:transparent;border:0;border-radius:0;padding:0;margin:0}
.customer-notes-copy.is-empty{color:var(--text-tertiary)}
.customer-contacts{min-width:0}
.customer-detail-drawer .people-heading h3{font-size:14px;font-weight:var(--weight-medium)}
.customer-detail-drawer .people-result-toolbar{margin-top:20px}
.customer-detail-drawer .directory-person{padding:18px 0}
.customer-detail-drawer .directory-person-heading h4{font-size:15px;font-weight:var(--weight-medium)}
.customer-detail-drawer .directory-person-title{font-size:13px}
.customer-detail-drawer .directory-person-email{font-size:13px}

/* Research stays a reading surface: supported facts and inspectable public evidence. */
.customer-research-state:empty{display:none}
.customer-research-state,.customer-research-error{font-size:13px;line-height:1.7;margin:0 0 14px;color:var(--text-tertiary)}
.customer-research-error{padding:10px 12px;border:1px solid #efdcd6;border-radius:8px;background:#fff8f5;color:#a34e3b}
.customer-research-overview{padding:0 0 20px;border-bottom:1px solid var(--border-subtle)}
.customer-research-overview-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.customer-research-overview-head time{font-size:12px;color:var(--text-tertiary);font-variant-numeric:tabular-nums}
.customer-research-basis{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:6px;background:#f1f3f5;color:#69717c;font-size:12px;line-height:1.6}
.customer-research-basis:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.customer-research-basis.is-current{background:#edf5f0;color:#4c7561}
.customer-research-summary{margin:0;font-size:14px;line-height:1.85;color:var(--text-primary);white-space:pre-wrap;overflow-wrap:anywhere}
.customer-research-reason{margin:12px 0 0;font-size:13px;line-height:1.85;color:var(--text-secondary);overflow-wrap:anywhere}
.customer-research-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.customer-research-fact-card{min-width:0;border:1px solid var(--border-subtle);border-radius:9px;padding:16px;background:#fff}
.customer-research-fact-card:only-child{grid-column:1/-1}
.customer-research-panel h4{font-size:13px;font-weight:500;line-height:1.7;color:var(--text-primary);margin:0 0 12px}
.customer-research-fact-card dl{margin:0;display:grid;gap:12px}
.customer-research-fact-card dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;font-size:13px;line-height:1.75}
.customer-research-fact-card dt{color:var(--text-tertiary)}
.customer-research-fact-card dd{margin:0;color:var(--text-secondary);overflow-wrap:anywhere}
.customer-research-reachability{margin-top:20px;border:1px solid var(--border-subtle);border-radius:9px;padding:16px}
.customer-research-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.customer-research-section-head h4{margin:0}
.customer-research-contact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
.customer-research-contact-metrics>div{display:flex;flex-direction:column;gap:6px;padding:0 14px;border-left:1px solid var(--border-subtle)}
.customer-research-contact-metrics>div:first-child{padding-left:0;border-left:0}
.customer-research-contact-metrics dt{font-size:12px;color:var(--text-tertiary);line-height:1.7}
.customer-research-contact-metrics dd{font-size:22px;line-height:1.4;font-weight:500;letter-spacing:-.02em;margin:0;color:var(--text-primary);font-variant-numeric:tabular-nums}
.customer-research-role-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:14px}
.customer-research-role-list span{font-size:12px;line-height:1.65;color:#687280;background:#f4f6f8;border-radius:5px;padding:3px 7px;overflow-wrap:anywhere}
.customer-research-evidence{margin-top:20px;border-top:1px solid var(--border-subtle)}
.customer-research-evidence>summary{padding:16px 0;font-size:13px;font-weight:500;color:var(--text-primary);cursor:pointer;transition:color .15s ease;list-style-position:inside}
.customer-research-evidence>summary:hover{color:#4e6d81}
.client-report-evidence{margin:20px 0}.customer-research-evidence-list{display:grid;gap:12px}
.customer-research-proof{padding:0 0 14px;border-bottom:1px solid var(--border-subtle);min-width:0}
.customer-research-proof:last-child{border-bottom:0}
.customer-research-proof h5{font-size:13px;font-weight:500;line-height:1.7;margin:0 0 8px;color:var(--text-secondary);overflow-wrap:anywhere}
.customer-research-proof blockquote{font-size:13px;line-height:1.8;margin:0 0 8px;padding:0 0 0 12px;border-left:2px solid #dce4df;color:var(--text-secondary);white-space:pre-wrap;overflow-wrap:anywhere}
.customer-research-proof-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.8;color:var(--text-tertiary)}
.customer-research-source-link{font-size:12px;color:#5e7b70;text-decoration:none;overflow-wrap:anywhere;text-underline-offset:3px}
.customer-research-source-link:hover{text-decoration:underline}
.customer-detail-drawer :is(.portal-button,.portal-text-button,.portal-icon-button,.customer-dossier-tabs button){transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}
.customer-detail-drawer .customer-dossier-tabs button:hover{color:var(--text-primary);background:#fafbfc}
.customer-detail-drawer :is(button,a,summary):focus-visible{outline:2px solid var(--field-keyboard,#7d97b0);outline-offset:3px}
@media(max-width:1100px){.customer-dossier-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1100px) and (min-width:901px){.customer-research-fact-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.customer-research-fact-grid{grid-template-columns:minmax(0,1fr)}.customer-research-contact-metrics>div{padding-inline:10px}.customer-research-contact-metrics dt{font-size:11px}.customer-research-contact-metrics dd{font-size:20px}.customer-research-fact-card,.customer-research-reachability{padding:14px}}
@media(prefers-reduced-motion:reduce){.customer-detail-drawer :is(button,a,summary){transition:none}}

@keyframes customer-dossier-enter{from{opacity:.5;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
@keyframes customer-dossier-pulse{50%{opacity:.45}}
@media(max-width:1100px){.customer-detail-drawer{width:94vw}.customer-heading-actions{gap:7px}.customer-detail-heading{gap:18px}.customer-dossier-tabs{gap:22px}}
@media(max-width:900px){
 .customer-detail-drawer{width:100vw;border:0;border-radius:0}
 .customer-detail-heading{padding:21px 22px 18px;gap:16px;flex-direction:column;align-items:stretch}
 .customer-heading-main{padding-right:45px}
 .customer-detail-heading h2{font-size:20px}
 .customer-heading-actions{flex-wrap:wrap;align-items:center}
 .customer-detail-drawer .customer-heading-actions>.portal-button,.customer-heading-actions .portal-text-button{min-height:44px;font-size:13px}
 .customer-detail-drawer .customer-heading-actions .customer-close{position:absolute;top:16px;right:17px;width:44px;height:44px;padding:12px}
 .customer-heading-context{gap:6px 14px;margin-top:10px}
 .customer-dossier-layout{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
 .customer-dossier-main{display:contents}
 .customer-dossier-tabs{position:sticky;top:0;z-index:2;background:#fff;padding:0 22px;gap:24px;min-height:54px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
 .customer-dossier-tabs button{flex:none}
 .customer-dossier-tabs [data-customer-tab="company"]{display:block}
 .customer-dossier-aside{display:none;border:0;flex:1;background:#fff}
 .customer-dossier-layout:is(.is-company-tab,.is-overview-tab) .customer-dossier-aside{display:flex;flex:none}
 .customer-dossier-layout.is-overview-tab .customer-dossier-aside{border-bottom:1px solid var(--border-subtle)}
 .customer-dossier-layout.is-overview-tab .customer-aside-scroll{padding-block:0 16px}
 .customer-dossier-layout.is-overview-tab :is(.customer-supporting-data,.customer-editor,.customer-profile-actions){display:none}
 .customer-dossier-layout.is-company-tab .customer-dossier-scroll{display:none}
 .customer-aside-heading{display:flex;min-height:48px;padding:0 18px}
 .customer-dossier-scroll,.customer-aside-scroll{flex:none;overflow:visible;padding:24px 22px max(30px,env(safe-area-inset-bottom))}
 .customer-detail-drawer :is(input,select,textarea){font-size:16px!important}
 .customer-detail-drawer .portal-text-button{min-height:40px}
 .customer-detail-drawer .customer-detail-actions>.portal-button{min-height:44px}
 .customer-detail-skeleton{padding-inline:22px}
}
@media(max-width:540px){
 .customer-detail-heading{padding:18px;gap:12px}
 .customer-detail-heading h2{font-size:21px}
 .customer-detail-drawer .customer-heading-actions .customer-close{top:12px;right:12px}
 .customer-heading-actions{gap:9px}
 .customer-heading-meta{gap:7px 12px;margin-top:8px}
 .customer-detail-drawer .customer-company-tags{gap:4px 10px}
 .customer-dossier-tabs{justify-content:space-between;gap:12px;padding:0 18px}
 .customer-dossier-scroll,.customer-aside-scroll{padding:23px 18px max(28px,env(safe-area-inset-bottom))}
 .customer-section-heading{gap:10px;margin-bottom:23px}
 .customer-history-entry{padding-left:23px;padding-bottom:26px}
 .customer-history-head time{font-size:11px}
 .customer-history-actions{gap:14px}
 .customer-detail-state>p{margin:12px 18px}
 .customer-detail-state>button{margin-left:18px}
 .customer-detail-skeleton{padding-inline:18px}
 .customer-company-fact{grid-template-columns:80px minmax(0,1fr);font-size:13px}
}
/* Landscape/keyboard-height layouts keep every field and action reachable. */
@media(max-width:900px) and (max-height:640px){
 .customer-detail-drawer{overflow-y:auto;overscroll-behavior:contain}
 .customer-dossier-content,.customer-dossier-layout{flex:none;overflow:visible}
}
@media(prefers-reduced-motion:reduce){.customer-detail-drawer[open],.customer-detail-skeleton>div{animation:none}}
@media(forced-colors:active){.customer-dossier-tabs button[aria-selected="true"]{border-bottom-color:Highlight}.customer-detail-drawer .customer-fit-badge{border:1px solid CanvasText}}
/* Programmatic dialog focus lands on a heading, not a field-shaped outline. */
#customer-detail-title:is(:focus,:focus-visible){outline:none;box-shadow:none}
@media(max-width:900px){
 .customer-detail-heading{padding:14px 18px;gap:10px}
 .customer-detail-heading h2{font-size:20px;line-height:1.4}
 .customer-heading-meta{margin-top:6px;gap:7px 10px}
 .customer-heading-context{flex-wrap:nowrap;gap:10px;margin-top:8px;min-height:28px}
 .customer-heading-context>[data-customer-summary-tags]{flex:1;flex-wrap:nowrap;overflow:hidden;gap:6px}
 .customer-detail-drawer .customer-heading-context .customer-company-tags{flex-wrap:nowrap;overflow:hidden;min-width:0}
 .customer-detail-drawer .customer-heading-context .customer-company-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:150px}
 .customer-detail-drawer .customer-heading-context :is(.customer-company-tag.is-product,.customer-company-tag.is-industry){display:none}
 .customer-detail-drawer .customer-heading-context .customer-company-location{flex:none;white-space:nowrap}
 .customer-heading-actions{gap:8px}
 .customer-dossier-tabs{min-height:48px}
 .customer-dossier-tabs button{min-height:48px}
}

/* Profile maintenance stays beside the company facts, away from primary work. */
.customer-detail-drawer .customer-profile-edit{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-width:32px;min-height:32px;padding:7px;margin:0;border:0;border-radius:7px;background:transparent;color:var(--text-tertiary);box-shadow:none;cursor:pointer}
.customer-detail-drawer .customer-profile-edit:hover:not(:disabled){background:var(--surface-hover);color:var(--text-primary)}
.customer-detail-drawer .customer-profile-edit:active:not(:disabled){transform:scale(.96)}
.customer-detail-drawer .customer-profile-edit .ui-icon{width:18px;height:18px}
.customer-profile-actions{margin-top:28px;padding-top:14px;border-top:1px solid var(--border-subtle)}
.customer-detail-drawer .customer-profile-actions>.customer-discard-action{max-width:100%;padding:6px 0;border:0;background:transparent;color:#9b746c;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.customer-detail-drawer .customer-profile-actions>.customer-discard-action:hover:not(:disabled){color:#87554c}
@media(max-width:900px){.customer-detail-drawer .customer-profile-edit{width:40px;height:40px;min-width:40px;min-height:40px}.customer-profile-actions{margin-top:24px}}
@media(prefers-reduced-motion:reduce){.customer-detail-drawer .customer-profile-edit:active:not(:disabled){transform:none}}

.customer-title-line{display:flex;align-items:center;gap:8px;min-width:0}
.customer-title-line h2{min-width:0}
.customer-context-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#customer-detail-drawer .customer-context-actions>.portal-text-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 10px;border:1px solid var(--border-subtle);border-radius:7px;background:var(--surface-canvas);color:var(--text-secondary);text-decoration:none}
#customer-detail-drawer .customer-context-actions>.portal-text-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text-primary)}
#customer-detail-drawer .customer-context-actions>.portal-text-button:focus-visible{outline:2px solid var(--text-secondary);outline-offset:2px}
.customer-section-heading:has(.customer-context-actions){flex-wrap:wrap;gap:10px}
@media(max-width:700px){#customer-detail-drawer .customer-context-actions>.portal-text-button{min-height:44px}}

/* Rich company facts remain in the supporting archive. */
.customer-enterprise-entry{margin:16px 0;overflow-wrap:anywhere}
.customer-enterprise-label{margin:0;font-size:var(--font-list-meta);line-height:1.9;color:var(--text-secondary);font-weight:500}
.customer-enterprise-evidence{margin-top:6px;font-size:var(--font-list-meta)}
.customer-enterprise-evidence>summary{color:var(--text-tertiary);cursor:pointer;line-height:1.8}
.customer-enterprise-evidence .customer-research-proof{margin-top:10px}
.customer-enterprise-highlight{margin-top:4px}

.customer-overview{margin-bottom:30px;padding-bottom:24px;border-bottom:1px solid var(--border-subtle)}
.customer-introduction{max-width:76ch;margin-top:0;padding-top:0;border-top:0}
.customer-introduction h4{margin-bottom:13px;font-size:16px}
.customer-introduction-body .customer-company-summary{font-size:14px;line-height:1.85;margin-bottom:14px}
.customer-introduction-body .customer-company-summary:last-child{margin-bottom:0}
.customer-introduction-sources{margin-top:12px}
.customer-cooperation-advice{max-width:76ch;margin-top:20px;padding-top:16px}
.customer-supporting-data>summary{font-size:13px;color:var(--text-secondary);cursor:pointer}
.customer-supporting-data[open]>summary{margin-bottom:18px}
