/* Diff Checker — two-up inputs, diff table, change navigation. */
.diff-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0.75rem; min-width: 0; }
.diff-inputs textarea { font-family: var(--font-mono); font-size: 0.84rem; }
.diff-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; min-width: 0; }
.diff-stats { font-family: var(--font-mono); font-size: 0.84rem; display: inline-flex; gap: 0.6rem; align-items: baseline; }
.diff-stat-add { color: #15803d; font-weight: 600; }
.diff-stat-del { color: #b91c1c; font-weight: 600; }
[data-theme="dark"] .diff-stat-add { color: #4ade80; }
[data-theme="dark"] .diff-stat-del { color: #f87171; }
.diff-nav { display: inline-flex; align-items: center; gap: 0.4rem; }
.diff-wrap { max-height: 640px; }
.diff-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; table-layout: fixed; }
.diff-table td { padding: 0 0.5rem; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--border-subtle); }
.diff-table .diff-n { width: 3.2em; text-align: right; color: var(--text-muted); user-select: none; background: var(--surface-elevated); font-size: 0.72rem; padding-top: 0.1rem; }
.diff-table .diff-c { color: var(--text-primary); }
.diff-add td.diff-c, .diff-chg td.diff-r { background: rgba(22, 163, 74, 0.12); }
.diff-del td.diff-c, .diff-chg td.diff-l { background: rgba(220, 38, 38, 0.12); }
.diff-table em { font-style: normal; border-radius: 2px; background: rgba(220, 38, 38, 0.3); }
.diff-table .diff-r em, .diff-table .diff-add em { background: rgba(22, 163, 74, 0.35); }
.diff-skip td { text-align: center; color: var(--text-muted); background: var(--surface-elevated); font-family: var(--font-family); font-size: 0.76rem; padding: 0.3rem; }
.diff-table tr.is-current td.diff-n { color: var(--brand); font-weight: 700; }
.diff-table tr.is-current td { box-shadow: inset 0 2px 0 var(--brand); }
