.td-result { margin-top: 8px; }
.td-add { color: #2b8a3e; }
.td-del { color: #d6336c; }
.td-result ins, .td-result del { text-decoration: none; border-radius: 3px; }
.td-result ins { background: rgba(64, 192, 87, .28); }
.td-result del { background: rgba(250, 82, 82, .28); text-decoration: line-through; text-decoration-color: rgba(214, 51, 108, .6); }
.td-inline { white-space: pre-wrap; word-break: break-word; }
.td-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-split > .output { word-break: break-word; overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.td-table td { vertical-align: top; padding: 2px 6px; white-space: pre-wrap; word-break: break-word; border-bottom: 1px solid var(--border); }
.td-table td.n { width: 3em; color: var(--muted); text-align: right; user-select: none; padding-right: 6px; }
.td-table td.add-line { background: rgba(64, 192, 87, .12); }
.td-table td.del-line { background: rgba(250, 82, 82, .12); }
.td-table td.empty { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--border) 4px 5px); }
.td-wrap { overflow-x: auto; }
.td-same { color: var(--muted); }
@media (max-width: 560px) {
    .td-split { grid-template-columns: 1fr; }
    .td-table td.n { width: 2.2em; }
}
.check[hidden] { display: none; }
