.fa-dedup-dialog{width:min(760px,calc(100vw - 28px));max-height:min(88dvh,900px);padding:0;border:1px solid #c8d4df;border-radius:18px;background:#f8fafb;color:#17324d;box-shadow:0 24px 80px #09264740}
.fa-dedup-dialog::backdrop{background:#09264780;backdrop-filter:blur(3px)}
.fa-dedup-dialog>form{max-height:inherit;overflow:auto;padding:clamp(20px,4vw,34px)}
.fa-dedup-dialog header h2{margin:4px 0 14px;font-size:clamp(1.35rem,3vw,1.8rem);color:#0c3154}
.fa-dedup-content>p{line-height:1.55}
.fa-dedup-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}
.fa-dedup-match-list,.fa-dedup-groups ul,.fa-dedup-history{list-style:none;padding:0}
.fa-dedup-match-list li,.fa-dedup-groups section{display:grid;gap:9px;margin:10px 0;padding:14px;border:1px solid #d4dee7;border-radius:12px;background:#fff}
.fa-dedup-match-list li span,.fa-dedup-groups small,.fa-dedup-history small{color:#5a6e80;font-size:.88rem}
.fa-dedup-note,.fa-dedup-conflicts{padding:12px 14px;border-left:3px solid #d38842;background:#fff5e9;border-radius:0 9px 9px 0}
.fa-dedup-error{color:#9a302c;min-height:1.3em}
.fa-dedup-empty{padding:25px;border-radius:14px;background:#edf3f6;text-align:center}
.fa-dedup-groups section h3{margin:0}
.fa-dedup-groups section>ul li{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #e5ebf0}
.fa-dedup-groups section>ul li>div{display:grid;gap:4px}
.fa-dedup-groups label,.fa-dedup-dialog label{display:grid;gap:6px}
.fa-dedup-groups select,.fa-dedup-dialog textarea,.fa-dedup-dialog select{width:100%;padding:10px;border:1px solid #bdcbd7;border-radius:8px;background:#fff;color:inherit;font:inherit}
.fa-dedup-compare{overflow:auto;border:1px solid #d4dee7;border-radius:12px;background:#fff}
.fa-dedup-compare-head,.fa-dedup-compare-row{display:grid;grid-template-columns:minmax(100px,.8fr) repeat(2,minmax(150px,1fr));gap:10px;padding:11px 13px;border-bottom:1px solid #e5ebf0}
.fa-dedup-compare-head{position:sticky;top:0;background:#eaf1f5}
.fa-dedup-compare-row label{display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere}
.fa-dedup-compare-row input{margin-top:4px;accent-color:#cf7841}
.fa-dedup-impact ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;padding:0;list-style:none}
.fa-dedup-impact li{display:flex;justify-content:space-between;padding:10px;background:#edf3f6;border-radius:8px}
.fa-dedup-history>li{display:grid;gap:6px;padding:14px 0;border-bottom:1px solid #d9e2e8}
.fa-dedup-history ul{margin:4px 0;padding-left:18px;list-style:disc}
.agency-dedup-toolbar{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 14px}
@media(max-width:600px){.fa-dedup-compare-head,.fa-dedup-compare-row{grid-template-columns:1fr}.fa-dedup-compare-head strong{display:none}.fa-dedup-groups section>ul li{flex-direction:column}}
