/* Customer and sales mobile layouts. Keep one semantic record and one set of actions. */
.customer-screen,.sales-screen,.customer-profile-panel{display:contents}
.customer-filter-options{display:contents}
body .customer-filter-toggle,body .customer-profile-toggle{display:none}
@media(max-width:760px){
 body .customer-screen,body .sales-screen{display:block;min-width:0;color:#233d49}
 body .customer-screen .page-head,body .sales-screen .page-head{margin:0 0 14px;gap:10px}
 body .customer-screen .page-head h1,body .sales-screen .page-head h1{font-size:24px;line-height:1.2;letter-spacing:-.65px;overflow-wrap:anywhere}
 body .customer-screen .page-head p,body .sales-screen .page-head p{font-size:13px;line-height:1.5;margin-top:6px;color:#58717d}
 body .customer-screen .page-head .eyebrow,body .sales-screen .page-head .eyebrow{display:none}
 body .customer-screen .page-actions,body .sales-screen .page-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
 body .customer-screen .page-actions .btn,body .sales-screen .page-actions .btn{min-height:42px;font-size:12px;white-space:normal;text-align:center;line-height:1.3}
 body .customer-screen .page-actions .btn.primary,body .sales-screen .page-actions .btn.primary{background:var(--primary,#0b5751);color:#fff}
 body .customer-screen .summary-grid,body .sales-screen .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
 body .customer-screen .summary-grid .stat,body .sales-screen .summary-grid .stat{padding:12px 9px;min-height:98px;display:flex;flex-direction:column;gap:5px;border-radius:13px;background:#eff8f5;border-color:#d6ebe3}
 body .customer-screen .summary-grid .stat:nth-child(2),body .sales-screen .summary-grid .stat:nth-child(2){background:#eff5ff;border-color:#dce7fa}
 body .customer-screen .summary-grid .stat:nth-child(3),body .sales-screen .summary-grid .stat:nth-child(3){background:#fff7e9;border-color:#f0e7cf}
 body .customer-screen .summary-grid .stat>span,body .sales-screen .summary-grid .stat>small{font-size:10px;line-height:1.35;color:#4b6472}
 body .customer-screen .summary-grid .stat>strong,body .sales-screen .summary-grid .stat>strong{font-size:22px;line-height:1.1;letter-spacing:-.5px;margin:0;color:#173f49;overflow-wrap:anywhere}
 body .customer-screen .summary-grid .stat>small,body .sales-screen .summary-grid .stat>span{font-size:10px;line-height:1.35;color:#5d7480}
 body .sales-screen .summary-grid .currency-total{font-size:16px;letter-spacing:-.2px}
 body .customer-screen .filterbar,body .sales-screen .filterbar{padding:12px;gap:8px;display:flex;flex-wrap:wrap;min-width:0;align-items:end}
 body .customer-screen .filterbar .search-field{flex:1 1 100%;min-width:0;max-width:none;margin:0;min-height:44px;border-radius:10px;gap:5px;padding:0 8px}
 body .customer-screen .search-field input{width:100%;min-width:0;padding:8px 0;font-size:14px}
 body .customer-screen .search-field>.btn{padding:6px;min-height:40px;flex-shrink:0;font-size:12px}
 body .customer-filter-toggle{display:inline-flex;min-height:40px;gap:6px;font-size:12px}
 body .customer-filter-options{display:none;flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
 body .customer-filter-options.expanded{display:grid}
 body .customer-filter-options .field{width:auto;min-width:0;margin:0}
 body .customer-filter-options select{min-width:0;width:100%;min-height:44px;font-size:13px}
 body .customer-screen .table-wrap:has(>.mobile-record-table),body .sales-screen .table-wrap:has(>.mobile-record-table){overflow:visible;border:0;padding:0 11px 12px}
 body table.mobile-record-table,body .mobile-record-table tbody{display:block;width:100%;min-width:0;max-width:100%;border:0;background:none}
 body .mobile-record-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 body .mobile-record-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;width:auto;min-width:0;padding:14px;margin:0 0 10px;border:1px solid #dbe7e8;border-radius:13px;background:#fff;box-shadow:0 3px 10px #17465406}
 body .mobile-record-table tbody>tr:last-child{margin-bottom:0}
 body .mobile-record-table tbody>tr>td{display:block;min-width:0;padding:0!important;border:0;font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;color:#36505e;background:transparent}
 body .mobile-record-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;font-weight:650;color:#687d86;letter-spacing:.2px;margin-bottom:3px}
 body .mobile-record-table td.mobile-record-identity{grid-column:1/-1;padding-bottom:9px!important;border-bottom:1px solid #edf2f3}
 body .mobile-record-table td.mobile-record-identity::before,body .mobile-record-table td.mobile-record-action::before{display:none}
 body .mobile-record-table .entity-cell{gap:10px;min-width:0;align-items:center}
 body .mobile-record-table .entity-cell>div{min-width:0}
 body .mobile-record-table .avatar{width:40px;height:40px;flex:0 0 40px;border-radius:11px;font-size:14px;background:#e3f3ed;color:#216a59}
 body .mobile-record-table td strong,body .mobile-record-table .entity-title,body .mobile-record-table .text-button{font-size:15px;font-weight:650;color:#164f59;white-space:normal;overflow-wrap:anywhere}
 body .mobile-record-table td small{display:block;font-size:11px;color:#617883;margin-top:3px;overflow-wrap:anywhere;white-space:normal}
 body .mobile-record-table .cell-main{font-size:13px;color:#294d5b;white-space:normal}
 body .mobile-record-table .badge{font-size:11px;padding:5px 8px;border-radius:6px;line-height:1.3;white-space:normal}
 body .mobile-record-table td.mobile-record-next{grid-column:1/-1;padding:9px 10px!important;background:#f4f8fb;border-radius:8px}
 body .mobile-record-table td.mobile-record-action{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:2px!important}
 body .mobile-record-table td.mobile-record-action .btn{font-size:12px;min-height:42px;min-width:92px;padding:8px 12px;border-color:#cfe0e4;color:#165968;background:#f0f8fa}
 body .customer-screen .record-breadcrumb{font-size:12px;line-height:1.4;margin-bottom:9px;overflow-wrap:anywhere}
 body .customer-screen .record-head,body .sales-screen .record-head{gap:12px;margin-bottom:14px;display:flex;flex-direction:column;align-items:stretch}
 body .customer-screen .record-title{gap:10px;min-width:0}
 body .customer-screen .record-title>div{min-width:0}
 body .customer-screen .record-title>.avatar{width:44px;height:44px;flex:0 0 44px;border-radius:13px;font-size:16px}
 body .customer-screen .record-title-line{gap:7px;align-items:start;flex-wrap:wrap}
 body .customer-screen .record-head h1,body .sales-screen .record-head h1{font-size:23px;line-height:1.2;overflow-wrap:anywhere}
 body .customer-screen .record-head p,body .sales-screen .record-head p{font-size:12px;line-height:1.4;color:#5b7380;overflow-wrap:anywhere}
 body .customer-screen .record-head .badge{font-size:11px;padding:5px 7px}
 body .customer-screen .customer-record-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body .customer-screen .customer-record-actions .icon-btn{width:100%;height:40px}
 body .customer-screen .customer-profile-toggle{display:inline-flex}
 body .customer-screen .customer-map-action{background:#edf5ff;border-color:#d3e2f7;color:#326495}
 body .customer-screen .record-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:11px 0;margin-bottom:13px;gap:0;border-radius:12px;background:#f4f8fa}
 body .customer-screen .record-metrics>div{padding:0 9px;min-width:0}
 body .customer-screen .record-metrics span{font-size:10px;color:#5c7380}
 body .customer-screen .record-metrics strong{font-size:14px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere;white-space:normal;color:#264c5b}
 body .customer-screen .record-metrics small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
 body .customer-screen .customer-record-layout{display:flex;flex-direction:column;gap:12px;min-width:0}
 body .customer-screen .customer-profile-panel{display:none}
 body .customer-screen .profile-expanded .customer-profile-panel{display:block}
 body .customer-screen .customer-profile-panel .record-profile{display:grid;grid-template-columns:1fr;gap:10px;width:100%;margin:0}
 body .customer-screen .record-workspace,body .sales-screen .record-workspace{min-width:0;width:100%}
 body .customer-screen .record-tabs-bar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;padding:0;gap:0;border:1px solid #dce8e9;border-radius:12px 12px 0 0;overflow:hidden;background:#fff}
 body .customer-screen .record-communication-actions{order:-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px;background:#f4f9f8;border-bottom:1px solid #dce8e9}
 body .customer-screen .record-communication-actions .btn{min-height:44px;font-size:13px;white-space:normal;border-radius:9px}
 body .customer-screen .record-communication-actions .channel-email{background:#edf4ff;color:#24599e;border-color:#cfdef7}
 body .customer-screen .record-communication-actions .channel-whatsapp{background:#e8f8ed;color:#176338;border-color:#cbe8d3}
 body .customer-screen .record-tabs-bar>.record-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:stretch;overflow:visible;margin:0;padding:0;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
 body .customer-screen .record-tabs-bar>.record-tabs>.btn{width:100%;min-width:0;padding:8px 3px;min-height:44px;height:auto;font-size:12px;line-height:1.3;border-radius:0;white-space:normal;overflow-wrap:anywhere;justify-content:center;text-align:center}
 body .customer-screen .record-tabs .btn.active{color:#0b5e59;border-bottom:3px solid #0b5e59;background:#f0f9f6;font-weight:700}
 body .customer-screen .record-workspace>.record-section{padding:10px 0 0;border:0;box-shadow:none;background:transparent;border-radius:0}
 body .customer-screen .record-workspace .panel,body .sales-screen .record-workspace .panel{margin-bottom:11px;border-radius:12px;overflow:hidden}
 body .customer-screen .panel-head,body .sales-screen .panel-head{padding:12px;gap:9px;align-items:start;flex-wrap:wrap}
 body .customer-screen .panel-head h2,body .sales-screen .panel-head h2{font-size:15px;line-height:1.4;color:#244c5a}
 body .customer-screen .panel-head p,body .sales-screen .panel-head p{font-size:12px;line-height:1.45;color:#617783}
 body .customer-screen .panel-body,body .sales-screen .panel-body{padding:12px}
 body .customer-screen .panel .btn,body .sales-screen .panel .btn{min-height:40px;font-size:12px;white-space:normal}
 body .customer-screen .detail-list,body .sales-screen .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body .customer-screen .detail-list dt,body .sales-screen .detail-list dt{font-size:11px;color:#697e89}
 body .customer-screen .detail-list dd,body .sales-screen .detail-list dd{font-size:13px;line-height:1.45;color:#2d4d5a;overflow-wrap:anywhere;min-width:0}
 body .customer-screen .company-summary{font-size:13px;line-height:1.5;margin-bottom:14px}
 body .customer-screen .customer-people-cards{display:grid;grid-template-columns:1fr;gap:10px}
 body .customer-screen .contact-card{padding:13px;border-radius:12px;background:#fff}
 body .customer-screen .contact-card h3,body .customer-screen .person-profile strong{font-size:15px;color:#244d5c}
 body .customer-screen .contact-card-head>div{min-width:0;overflow-wrap:anywhere}
 body .customer-screen .contact-card p,body .customer-screen .contact-card small{font-size:12px;color:#627a85}
 body .customer-screen .contact-card-actions,body .customer-screen .contact-channel-actions{display:flex;flex-wrap:wrap;gap:7px}
 body .customer-screen .contact-card-actions .btn{min-width:74px}
 body .customer-screen .task-row{padding:12px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:7px 9px;align-items:center}
 body .customer-screen .task-row>span{grid-column:2;max-width:none;text-align:left;font-size:11px;overflow-wrap:anywhere}
 body .customer-screen .task-check{width:36px;height:36px}
 body .customer-screen .task-row strong,body .customer-screen .timeline-content strong,body .sales-screen .timeline-item strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
 body .customer-screen .task-row small,body .customer-screen .timeline-content p,body .sales-screen .timeline-item p{font-size:12px;line-height:1.5;color:#516c79;overflow-wrap:anywhere}
 body .customer-screen .timeline-heading{flex-wrap:wrap;gap:5px;align-items:start}
 body .customer-screen .timeline-heading time{font-size:10px;max-width:none;text-align:left}
 body .customer-screen .activity-meta{gap:6px;font-size:10px;flex-wrap:wrap}
 body .customer-screen .activity-filters{display:flex;overflow:auto;gap:5px;flex-wrap:nowrap;max-width:100%;padding-bottom:3px}
 body .customer-screen .activity-filters .btn{flex-shrink:0;white-space:nowrap}
 body .customer-screen .linked-deals{grid-template-columns:1fr;gap:10px}
 body .customer-screen .linked-deal-card{padding:13px;min-width:0;border-radius:11px;background:#f5f9fd}
 body .customer-screen .linked-deal-card strong,body .customer-screen .linked-deal-card p{overflow-wrap:anywhere;font-size:13px;color:#2b5263}
 body .customer-screen .linked-deal-card small{font-size:11px;flex-wrap:wrap}
 body .customer-screen .empty,body .sales-screen .empty{min-height:0;padding:24px 14px;text-align:center}
 body .customer-screen .empty h3,body .sales-screen .empty strong{font-size:16px;color:#264e5c}
 body .customer-screen .empty p,body .sales-screen .empty p{font-size:13px;line-height:1.5;color:#607b86;margin:7px 0 14px}
 body .sales-screen .workflow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;margin:0 0 13px;border-radius:13px;background:#f0f8f6;border-color:#d9eae5}
 body .sales-screen .workflow-steps>div{display:flex;flex-direction:column;align-items:start;gap:6px;min-width:0;padding:0;border:0}
 body .sales-screen .workflow-steps>div>span{position:static;width:25px;height:25px;font-size:12px;border-radius:8px;background:#dcefe8;color:#226b57;display:grid;place-items:center}
 body .sales-screen .workflow-steps>div>strong{font-size:12px;line-height:1.3;color:#3b625b}
 body .sales-screen .workflow-steps>div>small{display:none}
 body .sales-screen .tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:0;min-width:0;padding:0 6px;scrollbar-width:none}
 body .sales-screen .tabs>button{flex:0 0 auto;min-height:44px;padding:10px;font-size:12px;white-space:nowrap;gap:5px}
 body .sales-screen .tabs>button .count,body .sales-screen .tabs>button span{font-size:11px;min-width:21px;padding:3px 5px;border-radius:6px}
 body .sales-screen .filterbar>.field{flex:1 1 125px;min-width:0;margin:0}
 body .sales-screen .filterbar .field>span{font-size:11px;color:#56717e}
 body .sales-screen .filterbar input,body .sales-screen .filterbar select{font-size:13px;min-height:44px;min-width:0;width:100%;border-radius:9px}
 body .sales-screen .filterbar .filter-note{font-size:11px;color:#657e87;width:100%}
 body .sales-screen .board{display:flex;gap:11px;overflow-x:auto;min-width:0;width:100%;padding:3px 0 12px;scroll-snap-type:x proximity;align-items:stretch}
 body .sales-screen .board-column{flex:0 0 min(84vw,340px);width:min(84vw,340px);min-width:0;border-radius:13px;padding:12px;background:#eef5f8;border:1px solid #d8e5ec;scroll-snap-align:start}
 body .sales-screen .board-column:nth-child(2n){background:#f3f0fa;border-color:#e2dcef}
 body .sales-screen .board-column-head h2{font-size:15px;color:#345567;line-height:1.3}
 body .sales-screen .board-column-head>div{font-size:12px;color:#526f80}
 body .sales-screen .stage-guidance{font-size:12px;min-height:0;line-height:1.4;color:#6c7d8a;margin:7px 0}
 body .sales-screen .deal-card{padding:13px;border-radius:11px;background:#fff;border-color:#dce7ed;margin:9px 0}
 body .sales-screen .deal-card-top a{font-size:15px;line-height:1.4;color:#24586b;overflow-wrap:anywhere}
 body .sales-screen .deal-card>p>a{font-size:12px;color:#5e7b8a;overflow-wrap:anywhere}
 body .sales-screen .deal-card>.deal-value{font-size:24px;color:#214f62;margin-top:9px}
 body .sales-screen .deal-card-meta,body .sales-screen .deal-next{font-size:12px;line-height:1.5;color:#597480;overflow-wrap:anywhere}
 body .sales-screen .deal-card-actions .btn{min-height:42px;font-size:12px;color:#1f6474;padding:8px}
 body .sales-screen .board-empty{padding:20px 12px;font-size:13px;color:#71848d}
 body .sales-screen .stage-track{display:flex;overflow:auto;gap:0;min-width:0;padding:0 0 10px}
 body .sales-screen .stage-step{flex:0 0 auto;min-height:44px;font-size:12px;padding:8px 11px;gap:6px;white-space:nowrap}
 body .sales-screen .stage-step>span{width:22px;height:22px;font-size:11px;flex-shrink:0}
 body .sales-screen .record-layout{display:flex;flex-direction:column;gap:12px;min-width:0}
 body .sales-screen .record-profile.panel{width:100%;margin:0;min-width:0}
 body .sales-screen .record-profile .detail-list{margin:0}
 body .sales-screen .record-value{font-size:27px;color:#265468;margin-bottom:15px}
 body .sales-screen .record-subheading{font-size:12px;flex-wrap:wrap;margin-bottom:12px;gap:7px}
 body .sales-screen .next-step-card{padding:14px;border-radius:12px;margin-bottom:12px;flex-wrap:wrap;background:#edf7f4}
 body .sales-screen .next-step-card h3{font-size:16px;color:#265a50;overflow-wrap:anywhere}
 body .sales-screen .next-step-card p{font-size:13px;line-height:1.45;color:#4d746b}
 body .sales-screen .next-step-card .btn{min-height:42px;font-size:12px;white-space:normal}
 body .sales-screen .record-detail-groups{grid-template-columns:1fr;gap:14px}
 body .sales-screen .detail-group h3{font-size:14px;color:#42647a}
 body .sales-screen .timeline-item{gap:10px;padding-bottom:16px;min-width:0}
 body .sales-screen .timeline-mark{width:30px;height:30px;font-size:12px;flex:0 0 30px;border-radius:9px;background:#e8f1fa;color:#44678c}
 body .sales-screen .activity-heading{display:flex;gap:6px;flex-wrap:wrap;align-items:start}
 body .sales-screen .timeline-item small{font-size:11px;color:#6c8590}
 body .sales-screen .record-workspace .mini-list>div{flex-wrap:wrap;gap:8px}
 body .sales-screen .record-workspace .mini-list strong{font-size:13px;overflow-wrap:anywhere}
 body .sales-screen .record-workspace .mini-list small{font-size:12px;color:#687f89;overflow-wrap:anywhere}
 body .sales-screen .notice.compact{font-size:12px;line-height:1.4;padding:11px;margin:0 0 12px;gap:5px;flex-wrap:wrap}
}
@media(max-width:370px){
 body .customer-screen .page-head h1,body .sales-screen .page-head h1{font-size:22px}
 body .customer-screen .summary-grid .stat,body .sales-screen .summary-grid .stat{padding:10px 7px}
 body .customer-screen .summary-grid .stat>strong{font-size:21px}
 body .customer-screen .record-metrics{grid-template-columns:1fr}
 body .customer-screen .record-metrics>div{display:grid;grid-template-columns:83px minmax(0,1fr);gap:3px 9px;padding:7px 10px;border-right:0;border-bottom:1px solid #e4edf0}
 body .customer-screen .record-metrics>div:last-child{border-bottom:0}
 body .customer-screen .record-metrics strong{margin:0;font-size:13px}
 body .customer-screen .record-metrics small{grid-column:2}
 body .customer-screen .detail-list,body .sales-screen .detail-list{grid-template-columns:1fr}
 body .sales-screen .workflow-steps>div>strong{font-size:11px}
}

/* Shared customer and lead history. Keep long CRM values within the record. */
.record-history {
  --history-line: #e6dfe2;
  min-width: 0;
  max-width: 100%;
  color: #30232b;
  background: #fff;
  container-type: inline-size;
}
.record-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--history-line);
}
.record-history-head > div { min-width: 0; }
.record-history-head h3 { margin: 0 0 3px; font-size: 1.05rem; }
.record-history-head p { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; overflow-wrap: anywhere; }
.record-history-recordid, .record-history-status, .record-history-source, .record-history-byline > span, .record-history-byline time { color: #665e64; font-size: .82rem; }
.record-history .record-history-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--history-line);
}
.record-history-filters label { flex: 1 1 105px; min-width: 0; margin: 0; font-size: .8rem; color: #51454b; }
.record-history-filters label select, .record-history-filters label input { display: block; margin-top: 4px; box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; }
.record-history-filters button { margin: 0; }
.record-history .record-history-status { margin: 0; padding: 12px 20px; }
.record-history .record-history-list { display: block; list-style: none; padding: 0 20px; margin: 0; }
.record-history .record-history-event {
  display: grid;
  grid-template-columns: minmax(78px,94px) minmax(0,1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 15px 0;
  border-top: 1px solid var(--history-line);
}
.record-history-kind {
  display: inline-block;
  justify-self: start;
  border-radius: 20px;
  background: #eef0f3;
  color: #364352;
  font-size: .72rem;
  line-height: 1.5;
  font-weight: 650;
  padding: 3px 10px;
  overflow-wrap: anywhere;
}
.record-history-kind[data-kind="reassigned"] { background: #e7effa; color: #26497b; }
.record-history-kind[data-kind="updated"], .record-history-kind[data-kind="stage"] { background:#fff2ce; color:#745114; }
.record-history-kind[data-kind="followup"], .record-history-kind[data-kind="call"] { background:#f9e9ef; color:#862643; }
.record-history-kind[data-kind="created"] { background:#e6f3ee; color:#255947; }
.record-history-entry { min-width: 0; overflow-wrap: anywhere; }
.record-history-byline { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 9px; }
.record-history-entry h4, .record-history-entry p { margin: 6px 0; font-size: .91rem; }
.record-history-entry .record-history-body { white-space: pre-wrap; }
.record-history .record-history-changes { table-layout: fixed; border-collapse: separate; border-spacing: 0; width: 100%; min-width: 0; margin: 9px 0; color:#342c30; font-size: .85rem; }
.record-history-changes th, .record-history-changes td { padding: 6px 8px; text-align: start; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; border: 0; border-bottom: 1px solid var(--history-line); font-weight: 400; }
.record-history-changes thead th { background: #f2f0f3; font-size: .77rem; font-weight: 650; }
.record-history-changes tbody th { font-weight: 600; }
.record-history-changes tbody td:nth-child(2) { background: #fcf7ef; }
.record-history-changes tbody td:nth-child(3) { background: #f0f8f3; }
.record-history-unknown, .record-history-blank { font-style: italic; color: #665e64; }
.record-history-extra summary { width: fit-content; min-height: 28px; padding: 4px 0; color: #8b1841; cursor: pointer; font-size: .84rem; }
.record-history-source { display: block; margin-top: 6px; }
.record-history [data-history-more] { margin: 0 20px 14px; }
.lead-review > .record-history { margin-top: 16px; }
@container (max-width: 560px) {
  .record-history-head, .record-history .record-history-filters, .record-history .record-history-status { padding-inline: 12px; }
  .record-history .record-history-list { padding-inline: 12px; }
  .record-history .record-history-event { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .record-history .record-history-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-history .record-history-filters > button { justify-self: start; }
  .record-history-changes td, .record-history-changes th { padding: 6px 4px; }
  .record-history .record-history-changes { font-size: .8rem; }
}
