.customer-stage-tabs{display:flex;overflow-x:auto;gap:4px;scrollbar-width:thin}
.customer-stage-tabs button{white-space:nowrap;flex:1;min-width:76px}
.pipeline-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.pipeline-card{min-width:0;align-content:start}
.pipeline-card .customer-phone{margin:10px 0}
.pipeline-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:#64748b;font-size:13px;line-height:1.6}
.pipeline-meta strong{color:#334155}
.pipeline-note{line-height:1.7;overflow-wrap:anywhere;margin:10px 0}
.pipeline-fields{display:grid;gap:12px;line-height:1.6;margin:12px 0}
.pipeline-fields div{display:grid;gap:4px}
.pipeline-fields dt{color:#64748b;font-size:13px}
.pipeline-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.pipeline-event{padding:12px 0;border-bottom:1px solid #edf0f3}
.pipeline-event small{color:#64748b}
.pipeline-event p{margin:6px 0;overflow-wrap:anywhere}
.pipeline-notes-link{margin:2px 0 12px;align-self:start;font-weight:600}
.pipeline-notes-list{display:grid;gap:12px;margin:16px 0}
.pipeline-note-record{padding:14px;border:1px solid #e2e8f0;border-radius:10px;min-width:0}
.pipeline-note-record>header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pipeline-note-record>header small{color:#64748b;line-height:1.6}
.pipeline-note-record>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:10px 0}
.note-revisions{margin-top:8px;background:#f8fafc;padding:10px;border-radius:6px}
.pipeline-entry+.pipeline-entry{border-top:1px solid #e2e8f0;margin-top:16px;padding-top:12px}
.pipeline-scope,.pipeline-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}
.pipeline-scope .field{flex:1;min-width:160px;margin:0}
.pipeline-search input{flex:1;min-width:150px;padding:11px;border:1px solid #dbe2ea;border-radius:8px;background:#fff}
.pipeline-team-links{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.batch-item-status{display:flex;align-items:center;gap:12px;margin:10px 0}
.contact-batch progress{width:100%;height:8px;accent-color:#cf0735;margin-bottom:10px}
#contactBatchBanner>div{flex-wrap:wrap;gap:12px}
#contactBatchBanner small{line-height:1.6}
#pipelineMeetingFields[hidden],#pipelineNoteFields[hidden]{display:none}
@media(max-width:640px){.pipeline-grid{grid-template-columns:1fr}.pipeline-search{gap:8px}.pipeline-card .card-actions .btn{min-height:42px}.customer-stage-tabs button{min-width:0;padding:12px 4px;font-size:13px}.pipeline-card .work-card-heading h2{font-size:17px}.pipeline-scope{padding:14px}}

.batch-heading{font-size:18px;margin:0 0 14px;color:#172b45}

.contact-flags{display:grid;gap:6px;margin:8px 0;padding:8px 10px;border-left:3px solid #b7791f;background:#fff8e8;color:#664611;font-size:13px}.contact-flags>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.contact-flags small{color:#78694d}.contact-flags .table-link{white-space:nowrap}#globalSearchButton{white-space:nowrap;min-width:52px;flex-shrink:0}#talkRecordResult{flex-shrink:0}
#talkRecordResult{display:block;width:100%;margin-top:8px;min-height:44px}

.detail-contact-main>div:only-child{grid-column:1/-1}
.detail-deadline{color:#4b5a6b;font-size:14px;line-height:1.5;margin:4px 0 12px}
.detail-deadline b{color:#39495c;margin-right:5px}
.pipeline-history .pipeline-entry>.pipeline-meta{margin-top:6px;color:#526175;font-size:13px}
.pipeline-history .pipeline-entry>.pipeline-note{color:#263749;font-size:16px;line-height:1.65}
.pipeline-history .detail-fold>summary{color:#344960;font-size:14px}
.intake-toolbar,.intake-scope{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.intake-toolbar{justify-content:space-between;margin:12px 0}
.intake-toolbar .pipeline-search{margin:0;min-width:0}
.intake-scope button[aria-pressed="true"]{background:#f9eaf0;color:#801233;border-color:#c991a1}
.intake-card .brief-list{margin:10px 0}
.intake-card .card-actions:empty{display:none}
.customer-records .company-cell>.record-contact{font-size:14px;color:#394858}
#contactBatchBanner .batch-top{justify-content:space-between;align-items:center}
#contactBatchBanner .batch-heading{margin:0}
#contactBatchBanner .batch-top>span,#contactBatchBanner .batch-figures>span{font-size:13px;color:#4c5c6c}
#contactBatchBanner .batch-figures{gap:4px 12px;margin:6px 0}
#contactBatchBanner .batch-choose{align-items:center}
#contactBatchBanner .batch-choose label{margin:0;min-width:0}
#contactBatchBanner .batch-choose .btn{margin:0}
.batch-help{font-size:13px;line-height:1.5;color:#4c5c6c}
.batch-help summary{cursor:pointer;min-height:32px;padding:6px 0}
.batch-help p{margin:4px 0}
@media(max-width:700px){
 .intake-toolbar,.intake-toolbar .pipeline-search{width:100%}
 .intake-toolbar .pipeline-search input{flex:1 1 130px;min-width:0}
 #contactBatchBanner .batch-choose{display:flex;gap:7px;flex-wrap:wrap}
 #contactBatchBanner .batch-choose label{flex:1 1 105px}
 #contactBatchBanner .batch-choose select{width:100%;max-width:100%;min-height:42px;margin:0}
 #contactBatchBanner .batch-choose .btn{flex:1 1 auto;min-height:42px;font-size:14px}
 .customer-list.workspace{min-height:0;background:transparent;border:0;overflow:visible}
 .customer-records.table-wrap{overflow:visible}
 .customer-records table,.customer-records tbody{display:block;width:100%;min-width:0;max-width:100%}
 .customer-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .customer-records tr[data-row]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0 0 12px;padding:14px;background:#fff;border:1px solid #dce1e7;border-radius:12px}
 .customer-records tr.selected{border-color:#c991a1;background:#fff9fb}
 .customer-records tr[data-row] td{display:block;width:auto;min-width:0;border:0;padding:0;text-align:left;white-space:normal;font-size:14px;overflow-wrap:anywhere}
 .customer-records td[data-field]::before{display:block;content:attr(data-field);font-size:12px;color:#5a6672;margin-bottom:3px}
 .customer-records td.record-identity,.customer-records td.record-select,.customer-records td.record-operations{grid-column:1/-1}
 .customer-records .record-identity .company-cell>strong{font-size:17px;line-height:1.45}
 .customer-records .company-cell .customer-address{max-width:none;min-height:0}
 .customer-records td:empty{display:none!important}
 .customer-records .customer-company-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
 .customer-records .customer-company-actions .table-link,.customer-records .customer-company-actions a{display:inline-flex;align-items:center;min-height:40px}
 .customer-records .table-footer{min-width:0;flex-wrap:wrap}
 .customer-records tr:not([data-row]) td[colspan]{display:block;width:auto;white-space:normal}
}

.pool-card-heading,.pool-card-info,.pool-card-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 12px;
}
.pool-card-heading { align-items:baseline; }
.pool-card-heading > strong { font-size:14px; white-space:normal; overflow-wrap:anywhere; }
.pool-card-heading .customer-company-lookup { white-space:nowrap; color:#465870; text-decoration:none; }
.pool-card-info .batch-item-status { margin:0; }
.pool-card-contact { margin-top:8px; padding-top:8px; border-top:1px solid #e5e9ee; }
.pool-card-contact .record-contact { margin:0 0 4px; color:#394858; font-size:14px; }
.pool-card-contact .customer-phone,.pool-card-contact .phone-numbers { margin-top:0; }
.pool-card-actions { margin-top:7px; }

@media (max-width:780px) {
  .pool-card-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px; }
  .pool-card-heading > strong { padding-top:6px; font-size:17px; line-height:1.45; }
  .pool-card-heading .customer-company-lookup,.pool-card-info .customer-detail-link {
    display:inline-flex; align-items:center; min-height:44px; padding:0 4px; font-size:14px;
  }
  .pool-card-heading .customer-company-lookup { gap:3px; }
  .pool-card-info { column-gap:18px; }
  .pool-card-info .table-link { min-height:44px; font-size:14px; }
  .pool-records .pool-card .customer-address { margin:0; min-height:0; max-width:none; font-size:13px; }
  .pool-card-contact { margin-top:10px; padding-top:10px; }
  .pool-card-contact .phone-numbers { align-items:stretch; flex-direction:column; max-width:100%; }
  .pool-card-contact .phone-link { min-height:44px; max-width:100%; white-space:normal; text-align:left; overflow-wrap:anywhere; }
  .pool-card-actions .btn,.pool-card-contact .my-contact-history-link { min-height:44px; font-size:14px; }
  .pool-card-contact .my-contact-summary { flex-direction:row; flex-wrap:wrap; align-items:center; gap:0 10px; max-width:none; margin:0; }
  .pool-card-contact .my-contact-summary small { color:#526274; font-size:12px; }
}

@media (min-width:701px) and (max-width:780px) {
  .customer-list:has(.pool-records) { min-height:0; border:0; background:transparent; }
  .pool-records.table-wrap { overflow:visible; }
  .pool-records table,.pool-records tbody { display:block; width:100%; min-width:0; }
  .pool-records thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .pool-records tr[data-row] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin-bottom:12px; padding:14px; background:white; border:1px solid #dce1e7; border-radius:12px; }
  .pool-records tr.selected { border-color:#c991a1; background:#fff9fb; }
  .pool-records tr[data-row] td { display:block; width:auto; min-width:0; border:0; padding:0; white-space:normal; overflow-wrap:anywhere; font-size:14px; }
  .pool-records td[data-field]::before { display:block; content:attr(data-field); margin-bottom:3px; color:#5a6672; font-size:12px; }
  .pool-records .record-identity,.pool-records .record-select,.pool-records .record-operations { grid-column:1/-1; }
  .pool-records td:empty { display:none!important; }
  .pool-records .table-footer { min-width:0; flex-wrap:wrap; }
}
