.candidate-match-body { min-height: 100vh; }
.candidate-match-topbar { min-height: 126px; }
.candidate-match-topbar h1 { max-width: 760px; }
.candidate-match-page { width: min(1420px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.candidate-match-intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); gap: 30px; align-items: center; margin-top: 0; }
.candidate-match-intro h2 { margin: 4px 0 10px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 37px); font-weight: 500; line-height: 1.18; }
.candidate-match-intro p:last-child { margin: 0; color: var(--muted); }
.candidate-match-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.candidate-match-summary-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f6f1; }
.candidate-match-summary-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.candidate-match-summary-card strong { display: block; margin-top: 3px; font-size: 24px; font-variant-numeric: tabular-nums; }
.candidate-match-controls { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: minmax(190px, .82fr) minmax(220px, 1fr) minmax(165px, .7fr) minmax(230px, 1fr) minmax(165px, .7fr) minmax(175px, .72fr); gap: 12px; background: rgba(255,254,249,.96); backdrop-filter: blur(12px); }
.candidate-match-controls label { color: #53605a; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.candidate-match-controls select, .candidate-match-controls input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #cfd3cc; border-radius: 9px; color: var(--ink); background: white; outline: none; font-size: 13px; text-transform: none; letter-spacing: normal; }
.candidate-match-controls select:focus, .candidate-match-controls input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,115,74,.1); }
.candidate-visible-summary { margin: 17px 2px 9px; color: var(--muted); font-size: 13px; }
.candidate-match-list { padding: 0; overflow: hidden; }
.candidate-match-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 180px; gap: 15px; align-items: start; min-height: 108px; padding: 17px 19px; border-top: 1px solid var(--line); background: white; }
.candidate-match-row:first-child { border-top: 0; }
.candidate-match-row.matched { background: linear-gradient(90deg, rgba(226,243,233,.68), #fff 36%); }
.candidate-match-row.unmatched { background: linear-gradient(90deg, rgba(249,233,229,.62), #fff 36%); }
.candidate-order { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #65706a; background: #eceeea; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.candidate-match-row.matched .candidate-order { color: #0e613c; background: #d8eee2; }
.candidate-copy h3 { margin: 0; font-size: 14px; line-height: 1.48; }
.candidate-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.candidate-model-badge { color: #275141; background: #e1eee7; }
.candidate-match-box { padding: 12px 14px; border-radius: 11px; background: #eff1ed; text-align: right; }
.candidate-match-box strong { display: block; font-size: 27px; font-variant-numeric: tabular-nums; }
.candidate-match-box > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.candidate-match-box.matched { color: #0e613c; background: var(--green-soft); }
.candidate-match-box.unmatched { color: var(--red); background: var(--red-soft); }
.candidate-best-score { margin-top: 5px; font-size: 11px; }
.candidate-ground-truth { margin-top: 11px; }
.candidate-ground-truth summary { color: #1d6247; cursor: pointer; font-size: 12px; font-weight: 750; }
.candidate-ground-truth ol { margin: 9px 0 0; padding-left: 22px; color: #46514c; }
.candidate-ground-truth li { margin: 5px 0; font-size: 12px; line-height: 1.45; }
.candidate-ground-truth b { color: #0e613c; font-variant-numeric: tabular-nums; }
.candidate-no-results { padding: 42px; color: var(--muted); text-align: center; }

@media (max-width: 1040px) {
  .candidate-match-topbar { align-items: flex-start; flex-direction: column; }
  .site-nav { flex-wrap: wrap; }
  .candidate-match-intro { grid-template-columns: 1fr; }
  .candidate-match-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .candidate-match-page { width: min(100% - 18px, 1420px); padding-top: 10px; }
  .candidate-match-controls { position: static; grid-template-columns: 1fr; }
  .candidate-match-row { grid-template-columns: 38px minmax(0, 1fr); }
  .candidate-match-box { grid-column: 2; text-align: left; }
}
