.matcher-example {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 12px 18px;
  margin: 0 0 16px;
  background: #edf3e3;
  border: 1px solid #cfdbc8;
  border-radius: 12px;
}
.matcher-example p { margin: 2px 0 0; color: var(--job-muted); font-size: .92rem; }
.matcher-example button { flex-shrink: 0; }
.matcher-columns, .matcher-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.matcher-columns { align-items: start; }
.matcher-columns textarea { min-height: 12.5rem; }
.matcher-columns textarea, .matcher-columns small, .matcher-add input { font-weight: 400; }
.matcher-actions { margin-top: 16px; }
.matcher-results { margin-top: 20px; }
.matcher-counts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.matcher-counts li, .matcher-badge {
  padding: .27em .66em;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 680;
}
[data-match-status="found"] { background: #e7f3e9; color: #1b5034; }
[data-match-status="review"] { background: #fff3d5; color: #694900; }
[data-match-status="missing"] { background: #eef1f4; color: #374b57; }
.matcher-add {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  padding: 12px 0 0;
}
.matcher-add label { flex: 1 1 15rem; }
.matcher-matches { margin-top: 16px; }
.matcher-card { padding: 16px 0; border-top: 1px solid var(--job-line); }
.matcher-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 4px 18px; }
.matcher-card h3 { margin: .12em 0 .28em; }
.matcher-category { color: var(--job-muted); font-size: .84rem; font-weight: 650; }
.matcher-reason { margin: .55em 0; color: var(--job-muted); font-size: .92rem; }
.matcher-quote {
  min-width: 0;
  padding: 10px 12px 12px;
  background: #f7f9f5;
  border: 1px solid #dde5dc;
  border-radius: 8px;
}
.matcher-quote h4 { margin: 0 0 5px; font-size: .84rem; color: var(--job-muted); }
.matcher-quote p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.matcher-quote mark { background: #ffec9f; color: #332a0f; border-radius: 2px; }
.matcher-card > .job-actions, .matcher-card details { margin-top: 12px; }
.matcher-card details summary { padding-block: 5px; }
.matcher-card details form { max-width: 42rem; margin-top: 8px; }
.matcher-card details .job-actions { margin-top: 8px; }
.matcher-ignored { border-top: 1px solid var(--job-line); padding-top: 10px; }
.matcher-ignored li { margin-block: 8px; }
.matcher-next { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 15px; font-size: .9rem; }
.job-related details + details { margin-top: 5px; }
@media (max-width: 650px) {
  .matcher-example { align-items: start; flex-direction: column; }
  .matcher-columns, .matcher-pair { grid-template-columns: minmax(0, 1fr); }
  .matcher-pair { gap: 6px; }
  .matcher-columns textarea { height: 8rem; min-height: 8rem; }
  .matcher-add .job-actions { gap: 6px; }
  .matcher-add .job-actions button { font-size: .875rem; }
}
