  #leadsView .thx-tabs{margin-bottom:12px}
  #leadsView .thx-kpis{grid-template-columns:repeat(6,1fr)}
  #leadsView .thx-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;align-items:end;padding:14px;margin-bottom:14px}
  #leadsView .thx-filters label,#leadsView .thx-correction label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;min-width:0}
  #leadsView .thx-filters select,#leadsView .thx-filters input,#leadsView .thx-correction input,#leadsView .thx-correction select{width:100%;min-width:0;min-height:36px}
  #leadsView .thx-filters input[type=search]{padding-left:30px}
  #leadsView .thx-filter-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
  #leadsView .thx-sync{padding:12px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
  #leadsView .thx-runs{color:var(--dim);font-size:11px;margin-top:4px}
  #leadsView .thx-message{min-height:22px;margin:4px 0 8px;color:var(--muted)}
  #leadsView .thx-message.neg{color:var(--red)}
  #leadsView .thx-table-wrap{overflow-x:auto}
  #leadsView .thx-table{min-width:1080px}
  #leadsView .thx-table td{vertical-align:top;white-space:normal;min-width:80px}
  #leadsView .thx-table th{cursor:default}
  #leadsView .thx-table .thx-wide{min-width:175px}
  #leadsView .thx-muted{color:var(--dim);font-size:10.5px;display:block;margin-top:3px;overflow-wrap:anywhere}
  #leadsView .thx-badge{display:inline-block;padding:2px 6px;margin:1px 2px 1px 0;border:1px solid var(--border2);border-radius:5px;color:var(--muted);font-size:10px;white-space:nowrap}
  #leadsView .thx-badge.valid{color:var(--acc);border-color:rgba(61,220,151,.4)}
  #leadsView .thx-badge.invalid,#leadsView .thx-badge.changed{color:var(--red);border-color:rgba(255,95,109,.4)}
  #leadsView .thx-badge.pending{color:var(--amber)}
  #leadsView .thx-badge.canonical{color:var(--acc2);border-color:rgba(77,159,255,.4)}
  #leadsView .thx-changed{color:var(--red);background:rgba(255,95,109,.09);border-radius:4px;padding:2px 4px}
  #leadsView .thx-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:12px 0}
  #leadsView .thx-group{margin-bottom:10px}
  #leadsView .thx-group-head{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px 14px;flex-wrap:wrap}
  #leadsView .thx-group-body{border-top:1px solid var(--border);padding:12px;overflow-x:auto}
  #leadsView .thx-attempt{border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:10px;min-width:720px}
  #leadsView .thx-attempt.canonical{border-color:rgba(77,159,255,.55)}
  #leadsView .thx-attempt-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px}
  #leadsView .thx-contacts{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0}
  #leadsView .thx-correction{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:8px;align-items:end;margin-top:10px}
  #leadsView .thx-correction .thx-correction-actions{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}
  #leadsView .thx-local-note{color:var(--dim);font-size:11px;margin:8px 0}
  #leadsView .thx-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .thx-modal-open{overflow:hidden}
  .thx-person-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(1220px,calc(100vw - 40px));height:min(820px,calc(100dvh - 48px));max-width:none;max-height:none;border:1px solid var(--border2);border-radius:14px;background:var(--panel);color:var(--text);overflow:hidden}
  .thx-person-dialog[open]{display:flex;flex-direction:column}
  .thx-person-dialog::backdrop{background:rgba(0,0,0,.68)}
  .thx-person-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--border);flex-shrink:0}
  .thx-person-header h2{font-size:16px;margin:0;overflow-wrap:anywhere}
  .thx-person-close{display:grid;place-items:center;width:36px;height:36px;padding:0;line-height:1;flex-shrink:0;border:1px solid var(--border2);border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
  .thx-person-close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .thx-person-body{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(400px,1.3fr);min-height:0;flex:1}
  .thx-person-info,.thx-person-history{padding:20px;overflow-y:auto;min-width:0}
  .thx-person-info{border-right:1px solid var(--border)}
  .thx-person-section-title{font-size:13px;margin:0 0 16px;display:flex;align-items:center;gap:7px}
  .thx-person-facts{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 14px;font-size:12px;margin:0}
  .thx-person-facts dt{color:var(--dim)}
  .thx-person-facts dd{margin:0;overflow-wrap:anywhere}
  .thx-person-advertising{margin:20px 0;padding:16px;border:1px solid var(--border);border-radius:10px;min-width:0}
  .thx-person-advertising .thx-person-facts{grid-template-columns:118px minmax(0,1fr)}
  .thx-person-advertising .thx-muted{font-size:11px;overflow-wrap:anywhere}
  .thx-ad-click{margin:0 0 14px}
  .thx-ad-select{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:12px;color:var(--muted)}
  .thx-ad-select select{width:100%;min-width:0}
  .thx-person-summary{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
  .thx-person-registrations{margin-top:24px;border-top:1px solid var(--border);padding-top:14px}
  .thx-person-registration{padding:10px 0;border-bottom:1px solid var(--row);font-size:11px}
  .thx-person-registration:last-child{border-bottom:0}
  .thx-person-registration-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:6px}
  .thx-person-registration-head>b{min-width:0;overflow-wrap:anywhere}
  .thx-person-registration p{margin:4px 0;overflow-wrap:anywhere}
  .thx-person-pp-path{margin:16px 0;padding:10px;border:1px solid var(--border);border-radius:8px;font-size:11px;overflow-wrap:anywhere}
  .thx-timeline{list-style:none;margin:18px 0 0;padding:0}
  .thx-timeline-event{position:relative;margin-left:10px;padding:0 0 25px 32px;border-left:2px solid var(--border2)}
  .thx-timeline-event:last-child{border-left-color:transparent;padding-bottom:4px}
  .thx-timeline-event::before{content:'';position:absolute;left:-11px;top:0;width:18px;height:18px;border:2px solid var(--acc2);border-radius:50%;background:var(--panel);box-shadow:inset 0 0 0 4px var(--panel)}
  .thx-timeline-event[data-tone=green]::before{border-color:var(--acc);background:var(--acc);box-shadow:none}
  .thx-timeline-event[data-tone=red]::before{border-color:var(--red);background:rgba(255,95,109,.2)}
  .thx-timeline-event[data-tone=amber]::before{border-color:var(--amber);background:rgba(227,179,65,.15)}
  .thx-timeline-title{font-size:13px;font-weight:600;color:var(--acc2)}
  .thx-timeline-event[data-tone=green] .thx-timeline-title{color:var(--acc)}
  .thx-timeline-event[data-tone=red] .thx-timeline-title{color:var(--red)}
  .thx-timeline-time{font-size:12px;color:var(--text);margin-top:7px}
  .thx-timeline-context{font-size:11px;color:var(--dim);margin-bottom:6px}
  .thx-registration-time{font-size:12px;font-weight:600}
  .thx-registration-status{margin-top:12px;padding:10px 12px;border-left:3px solid var(--border2);background:rgba(128,128,128,.06);border-radius:4px}
  .thx-registration-status b{font-size:12px}
  .thx-registration-status[data-tone=red]{border-left-color:var(--red)}
  .thx-registration-status[data-tone=green]{border-left-color:var(--acc)}
  .thx-timeline-detail{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5;overflow-wrap:anywhere}
  .thx-person-row{cursor:pointer}
  .thx-person-row:focus{outline:2px solid var(--acc2);outline-offset:-2px}
  @media(max-width:780px){
    .thx-person-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px)}
    .thx-person-header{padding:13px 15px}.thx-person-header h2{font-size:14px}
    .thx-person-body{display:block;overflow-y:auto}
    .thx-person-info,.thx-person-history{padding:16px;overflow:visible}
    .thx-person-info{border-right:0;border-bottom:1px solid var(--border)}
  }
