/* Candidate review stays beside the unchanged source text. */
.batch-preview { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.batch-preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }
.batch-preview-head h2 { font-size: 1.125rem; font-weight: 650; }
.batch-preview-head [role=status] { color: var(--action); font-size: .875rem; }
.batch-preview .tool-desc { margin-bottom: var(--space-4); }
.batch-preview-filters { display: flex; align-items: end; gap: var(--space-4); margin-top: var(--space-4); }
.batch-preview-filters label { display: grid; gap: 6px; font-size: .8125rem; color: var(--gray); }
.batch-preview-search { flex: 1; }
.batch-preview-filters input, .batch-preview-filters select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); color: var(--ink); background: var(--card); }
.batch-select-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-3) 0; }
.batch-select-actions button { min-height: 36px; }
.batch-candidates { max-height: 400px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
.batch-candidates > .empty { padding: var(--space-4); }
.batch-candidate { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.batch-candidate:last-child { border-bottom: 0; }
.batch-candidate.is-selected { background: var(--surface-tint); }
.batch-candidate input { flex: none; width: 17px; height: 17px; }
.batch-candidate-main { flex: 1; min-width: 0; }
.batch-candidate-main strong { font-family: var(--font-mono); font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.batch-candidate-context { display: block; color: var(--gray); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-candidate-meta { display: grid; gap: 3px; text-align: right; font-size: .8125rem; }
.batch-candidate-meta span:last-child { font-size: .75rem; }
.batch-match { color: var(--ok); }
.batch-review { color: var(--warn-ink); }
.batch-result { scroll-margin-top: 100px; }
@media (max-width: 560px) {
  .batch-actions .btn { flex: 1 0 auto; padding-inline: 12px; }
  .batch-preview-filters { align-items: stretch; flex-direction: column; gap: var(--space-3); }
  .batch-candidate { display: grid; grid-template-columns: 17px minmax(0, 1fr); padding: 12px; }
  .batch-candidate-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px 12px; text-align: left; }
}
