@charset "UTF-8";
.td-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 12px; }
.td-opt { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.td-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.td-summary { margin: 0 0 12px; font-size: 0.95rem; min-height: 22px; }
.td-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.82rem; font-weight: 600; color: #fff; }
.td-badge-ins { background: var(--tool-success); }
.td-badge-del { background: var(--tool-danger); }
.td-same { color: var(--tool-success); font-weight: 600; }

.td-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.td-side { display: flex; flex-direction: column; min-width: 0; }
.td-side-head { font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }

.td-pane { display: flex; height: 560px; border: 1px solid var(--border-color); border-radius: var(--tool-radius); overflow: hidden; background: var(--bg-color); }
.td-gutter { flex: 0 0 48px; overflow: hidden; background: var(--alt-content-bg-color); border-right: 1px solid var(--border-color); padding: 8px 0 0; box-sizing: border-box; }
.td-gutter .g { display: block; height: 20px; line-height: 20px; padding: 0 8px; text-align: right; font: 12px/20px 'Courier New', monospace; color: var(--font-color); opacity: 0.5; white-space: pre; }
.td-gutter .g.del { background: rgba(220,53,69,0.18); opacity: 0.85; }
.td-gutter .g.ins { background: rgba(40,167,69,0.20); opacity: 0.85; }
.td-gutter .g.chg { background: rgba(240,173,78,0.22); opacity: 0.85; }

.td-scroll { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.td-hl, .td-ta { margin: 0; border: 0; padding: 8px 10px; box-sizing: border-box; font: 13px/20px 'Courier New', monospace; tab-size: 4; -moz-tab-size: 4; }
.td-hl { position: absolute; inset: 0; overflow: hidden; z-index: 1; color: transparent; pointer-events: none; }
.td-hl .ln { display: block; width: max-content; min-width: 100%; min-height: 20px; line-height: 20px; white-space: pre; }
.td-hl .ln.del { background: rgba(220,53,69,0.15); }
.td-hl .ln.ins { background: rgba(40,167,69,0.17); }
.td-hl .ln.chg { background: rgba(240,173,78,0.14); }
.td-hl .w-del { background: rgba(220,53,69,0.42); border-radius: 2px; }
.td-hl .w-ins { background: rgba(40,167,69,0.45); border-radius: 2px; }
.td-ta { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; background: transparent; color: var(--font-color); white-space: pre; overflow: auto; outline: none; }
.td-ta:focus { outline: none; box-shadow: none; }

.td-resize { height: 14px; margin-top: 6px; display: flex; align-items: center; justify-content: center; cursor: ns-resize; border: 1px solid var(--border-color); border-radius: var(--tool-radius-sm); background: var(--alt-content-bg-color); user-select: none; }
.td-resize:hover { border-color: var(--tool-accent); }
.td-resize-grip { width: 44px; height: 4px; border-radius: 2px; background: var(--border-color); }
.td-resize:hover .td-resize-grip { background: var(--tool-accent); }
.td-about p { margin: 0 0 12px; }
@media (max-width: 720px) { .td-cols { grid-template-columns: 1fr; } .td-pane { height: 360px; } }
