/* Infludar — Matching Page */

.match-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}

.match-grid{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}
.match-left{min-width:0;display:flex;flex-direction:column;gap:16px}
.match-right{position:sticky;top:80px;display:flex;flex-direction:column;gap:16px}

.match-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.match-card-head{display:flex;align-items:center;gap:8px;padding:14px 20px;border-bottom:1px solid var(--border)}
.match-card-head h2{font-size:13px;font-weight:600;color:var(--text-sec);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:8px;margin:0}
.match-head-sub{font-size:10px;color:var(--text-muted);margin-left:auto}
.match-card-body{padding:16px 20px}

.loading-text{color:var(--text-muted);text-align:center;padding:16px;font-size:13px}

/* Methods breakdown */
.method-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(30,30,46,0.3)}
.method-row:last-child{border-bottom:none}
.method-info{display:flex;align-items:center;gap:6px;min-width:130px}
.method-ico{flex-shrink:0;display:flex}
.method-label{font-size:12px;font-weight:500;color:var(--text-sec);white-space:nowrap}
.method-bar-wrap{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden;min-width:60px}
.method-bar{height:100%;border-radius:3px;transition:width .5s}
.method-count{font-size:13px;font-weight:700;min-width:50px;text-align:right;font-variant-numeric:tabular-nums}
.method-pct{font-size:11px;color:var(--text-muted);min-width:40px;text-align:right}

/* Pipeline (reuses settings.css pipe-* classes) */
.match-pipeline{padding:16px 20px 8px}

/* Actions */
.match-actions-body{display:flex;flex-direction:column;gap:0}
.match-action-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid rgba(30,30,46,0.3)}
.match-action-row:last-child{border-bottom:none}
.match-action-info{flex:1;min-width:0}
.match-action-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:2px}
.match-action-desc{font-size:11px;color:var(--text-muted);line-height:1.4}

.btn-accent{background:var(--accent);color:#fff;border:none;cursor:pointer;border-radius:6px;padding:8px 16px;font-weight:600;font-size:12px;transition:opacity .2s}
.btn-accent:hover{opacity:0.85}
.btn-accent:disabled{opacity:0.5;cursor:not-allowed}
.btn-danger{background:rgba(248,113,113,0.15);color:var(--red);border:1px solid rgba(248,113,113,0.25);cursor:pointer;border-radius:6px;padding:8px 16px;font-weight:600;font-size:12px;transition:all .2s}
.btn-danger:hover{background:rgba(248,113,113,0.25)}
.btn-danger:disabled{opacity:0.5;cursor:not-allowed}

.merge-inline{display:flex;align-items:center;gap:8px;flex-shrink:0}
.merge-arrow{color:var(--text-muted);font-size:16px}
.input-sm{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:7px 10px;color:var(--text);font-size:12px;width:90px;outline:none;transition:border-color .2s}
.input-sm:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
.input-sm::placeholder{color:var(--text-muted)}

/* Blocked emails */
.blocked-list{display:flex;flex-direction:column;gap:0}
.blocked-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(30,30,46,0.3)}
.blocked-row:last-child{border-bottom:none}
.blocked-email{font-size:12px;color:var(--text);font-family:'JetBrains Mono','SF Mono',monospace;word-break:break-all}
.blocked-count{font-size:11px;color:var(--red);font-weight:600;white-space:nowrap;margin-left:12px}
.blocked-note{font-size:10px;color:var(--text-muted);margin-top:12px;line-height:1.5;padding-top:8px;border-top:1px solid rgba(30,30,46,0.3)}

/* Chart */
.chart-bars{display:flex;height:12px;border-radius:6px;overflow:hidden;gap:2px}
.chart-segment{min-width:2px}
.chart-fill{height:100%;border-radius:2px}
.chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.chart-leg-item{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-sec)}
.chart-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}

@media(max-width:900px){
  .match-stats-grid{grid-template-columns:repeat(2,1fr)}
  .match-grid{grid-template-columns:1fr}
  .match-right{position:static}
}
@media(max-width:600px){
  .match-stats-grid{grid-template-columns:1fr 1fr}
}
