.matches-heading,.matches-extra-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:24px 0 16px}.matches-heading h2,.matches-extra-heading h3{margin:0 0 5px}.matches-heading p,.matches-extra-heading p{margin:0;color:var(--muted)}
.matches-policy{padding:12px 14px;border:1px solid #b9d2c4;background:#eef7f1;border-radius:12px;color:#285d49;margin-bottom:14px}
.matches-sources{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin-bottom:14px}.matches-source{display:grid;grid-template-columns:1fr auto;gap:5px 10px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.matches-source small{grid-column:1/-1;color:var(--muted);overflow-wrap:anywhere}.matches-source-counts{font-size:.78rem;color:var(--muted)}
.match-source-status{font-size:.78rem;font-weight:700;padding:4px 8px;border-radius:999px;background:#edf1ef;color:var(--muted)}.match-source-status.ok{background:#e8f5ef;color:#17644f}.match-source-status.waiting{background:#fff3d7;color:#705216}.match-source-status.error{background:#fdebea;color:#9b392f}.match-source-status.off{background:#edf1ef;color:#63716b}
.matches-stats{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:14px}.matches-stats div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.matches-stats span{display:block;color:var(--muted);font-size:.82rem}.matches-stats strong{display:block;font-size:1.35rem;margin-top:5px}.matches-stats div:nth-child(3) strong,.matches-stats div:nth-child(4) strong{color:#a54135}
.matches-toolbar{margin-bottom:14px}.matches-table td{vertical-align:top;min-width:190px}.match-product strong,.match-product small{display:block}.match-product small{margin-top:3px}.match-cell{display:grid;gap:5px}.match-cell-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.match-pill{display:inline-block;border-radius:999px;padding:2px 7px;font-size:.72rem;font-weight:700;background:#e8f5ef;color:#17644f}.match-pill.missing,.match-pill.ambiguous,.match-pill.unmatched{background:#fdebea;color:#9b392f}.match-pill.unavailable{background:#edf1ef;color:#63716b}.match-method{font-size:.76rem;color:var(--muted)}
.matches-extra-heading{margin-top:25px}.matches-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.matches-extra-card{background:#fff;border:1px solid #edcbc7;border-radius:10px;padding:12px 14px;display:grid;grid-template-columns:1fr auto;gap:4px 10px}.matches-extra-card strong,.matches-extra-card small{display:block}.matches-extra-card small{color:var(--muted)}.matches-extra-card .match-pill{align-self:start}
.match-choose{justify-self:start;margin-top:4px;padding:6px 9px;font-size:.78rem}.match-link-dialog{width:min(720px,calc(100% - 24px))}.match-link-dialog>div{padding:25px}.match-link-dialog h2{margin:4px 0 5px}.match-link-dialog label{display:block;margin-top:18px}.match-link-candidates{display:grid;gap:9px;max-height:min(54vh,520px);overflow:auto;margin-top:14px;padding-right:3px}.match-candidate{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;text-align:left}.match-candidate:hover{border-color:#7ba48e;background:#f7fbf8}.match-candidate.selected{border-color:#438267;background:#edf7f1}.match-candidate-info strong,.match-candidate-info small{display:block}.match-candidate-info small{color:var(--muted);margin-top:3px}.match-candidate-link{font-size:.75rem;color:#9b392f}.match-candidate .primary{white-space:nowrap}.match-link-dialog .dialog-actions{justify-content:space-between}
@media(max-width:900px){.matches-stats{grid-template-columns:repeat(2,1fr)}.matches-extra{grid-template-columns:1fr}}
@media(max-width:760px){.matches-sources{grid-template-columns:1fr}.matches-heading{flex-direction:column}.matches-heading .heading-actions{width:100%;display:flex}.matches-table{border:0;background:transparent;overflow:visible}.matches-table thead{display:none}.matches-table table,.matches-table tbody,.matches-table tr,.matches-table td{display:block;width:100%}.matches-table tr{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden}.matches-table td{min-width:0;border-top:1px solid var(--line);padding:12px 14px}.matches-table td:first-child{border-top:0;background:#f7f9f6}.matches-table td:not(:first-child)::before{display:block;font-size:.72rem;font-weight:700;color:var(--muted);margin-bottom:5px}.matches-table td:nth-child(2)::before{content:'Ozon'}.matches-table td:nth-child(3)::before{content:'Wildberries'}.match-candidate{grid-template-columns:1fr}.match-candidate .primary{justify-self:start}.match-link-dialog>div{padding:18px}}

.duplicate-count{padding:0;border:0;background:transparent;text-align:left;color:var(--text);cursor:pointer}.duplicate-count strong{margin:0}.duplicate-count small{color:var(--muted)}.duplicate-details{grid-column:1/-1;margin:6px 0;padding:10px;border-radius:8px;background:#f0f5f1;overflow-wrap:anywhere}.duplicate-details small{margin-top:3px}.match-pill.duplicate{background:#eaf0f7;color:#365b80}
