/* Text compare - line and word diffs (marked with -/+ and del/ins, not colour alone). */
.tc-diff { margin-top: 10px; max-height: 360px; overflow: auto; border: 1px solid var(--e-line); border-radius: 8px; font: .84em/1.5 var(--e-mono); background: var(--e-surface); }
.tc-line { display: grid; grid-template-columns: 2.6em 2.6em 1.2em minmax(0, 1fr); }
.tc-no { color: var(--e-ink-3); text-align: right; padding-right: 6px; user-select: none; }
.tc-mark { font-weight: 700; text-align: center; user-select: none; }
.tc-text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; padding-right: 6px; }
.tc-del { background: color-mix(in srgb, #ef4444 16%, transparent); }
.tc-del .tc-mark { color: var(--e-bad); }
.tc-ins { background: color-mix(in srgb, #10b981 18%, transparent); }
.tc-ins .tc-mark { color: var(--e-ok); }
.tc-skip { padding: 2px 8px; color: var(--e-ink-3); font-style: italic; border-top: 1px dashed var(--e-line); border-bottom: 1px dashed var(--e-line); }
.tc-words { margin-top: 10px; font-family: var(--e-font); font-size: .95em; }
.tc-words del { background: color-mix(in srgb, #ef4444 20%, transparent); text-decoration: line-through; text-decoration-thickness: 2px; }
.tc-words ins { background: color-mix(in srgb, #10b981 22%, transparent); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 400px) { .tc-line { grid-template-columns: 2.2em 2.2em 1em minmax(0, 1fr); } }
