/* LIKE A PRO .DEV — ~/diff (loaded after tools.css + tools-extra.css) */
.d-inputs { gap: 1rem 1.25rem; }
.d-btns { display: inline-flex; gap: .35rem; }
.d-btns .term-copy { position: static; }
.d-pane { border-radius: 8px; transition: box-shadow .2s; }
.d-pane.is-over { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-soft); }
.term textarea.d-area { min-height: 15rem; font-size: .78rem; line-height: 1.55; white-space: pre; overflow-wrap: normal; overflow: auto; tab-size: 4; }

.d-opts { gap: .5rem 1.2rem; margin-top: 1rem; }
.d-ctx-wrap { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--muted); }
.d-ctx-wrap label { color: var(--dim); }
.d-ctx-wrap label::before { content: '# '; color: var(--accent); }
.tool-ui input#d-ctx { width: 4.6rem; min-width: 0; padding: .35rem .5rem; }
.d-stats { margin: .4rem 0 .6rem; }
.d-plus { color: var(--green); font-weight: 600; }
.d-minus { color: var(--red); font-weight: 600; }

.d-view { max-height: 46rem; overflow: auto; border: 1px solid var(--border); border-radius: 6px; background: #0a0a0f; }
.d-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.d-empty { padding: 1rem; }
.d-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--font-mono); font-size: .76rem; line-height: 1.5; }
.d-col-ln { width: 3.6rem; }
.d-table thead th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 500; color: var(--muted); background: #101018; padding: .4rem .7rem; border-bottom: 1px solid var(--border); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-table thead th + th { border-left: 1px solid var(--border); }
.d-table td { vertical-align: top; padding: 0 .6rem; }
.d-ln { text-align: right; color: var(--dim); user-select: none; font-variant-numeric: tabular-nums; padding-right: .5rem !important; border-right: 1px solid rgba(255,255,255,.04); }
.d-code { white-space: pre-wrap; word-break: break-all; color: #c9c8c1; tab-size: 4; }
.d-split td.d-code:nth-child(2) { border-right: 1px solid var(--border); }
.d-eq .d-code { color: #9d9ca5; }
.d-del { background: rgba(255,95,87,.09); }
.d-add { background: rgba(40,200,64,.09); }
.d-code.d-del { color: #ffd2cf; }
.d-code.d-add { color: #d3f5d9; }
.d-ln.d-del { color: rgba(255,95,87,.75); }
.d-ln.d-add { color: rgba(40,200,64,.8); }
.d-none { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 6px, transparent 6px 12px); }
.d-del .d-cx { background: rgba(255,95,87,.38); color: #fff; border-radius: 2px; }
.d-add .d-cx { background: rgba(40,200,64,.36); color: #fff; border-radius: 2px; }
.d-sign { display: inline-block; width: 1.2ch; color: var(--dim); user-select: none; }
.d-del .d-sign { color: var(--red); }
.d-add .d-sign { color: var(--green); }
.d-fold td { padding: 0; background: rgba(124,92,255,.06); border-top: 1px dashed rgba(124,92,255,.25); border-bottom: 1px dashed rgba(124,92,255,.25); }
.d-fold-btn { width: 100%; text-align: left; padding: .25rem .9rem; font-family: var(--font-mono); font-size: .72rem; color: #a996ff; cursor: pointer; }
.d-fold-btn:hover, .d-fold-btn:focus-visible { color: var(--accent); background: rgba(124,92,255,.08); }
.d-hunk td { padding: .25rem .7rem; color: var(--cyan); background: rgba(46,230,255,.06); border-top: 1px solid rgba(46,230,255,.15); }
.d-file td { padding: .35rem .7rem; color: var(--muted); background: #101018; }

@media (max-width: 768px) {
    .term textarea.d-area { min-height: 10rem; }
    .d-col-ln { width: 2.6rem; }
    .d-table { font-size: .7rem; }
    .d-table td { padding: 0 .35rem; }
}
