/* Diff Checker — dark editor panes, cyan + green */
.df-inputs { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid #23262e; background: #15171c; }
@media (max-width: 760px) { .df-inputs { grid-template-columns: 1fr; } }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane + .pane { border-left: 1px solid #23262e; }
@media (max-width: 760px) { .pane + .pane { border-left: 0; border-top: 1px solid #23262e; } }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px 7px 14px; background: #1b1e24; border-bottom: 1px solid #23262e; }
.pane-head > label { color: #9aa3b2; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.pane-btn { cursor: pointer; color: #9aa3b2; font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 6px; }
.pane-btn:hover { background: #262a33; color: #e6e9ef; }
.pane-btn:has(input:focus-visible) { outline: 2px solid var(--accent); }
.df-inputs textarea {
  min-height: 300px; height: 300px; margin: 0; border: 0; border-radius: 0; resize: vertical;
  background: #15171c; color: #e6e9ef; font: 13.5px/1.6 var(--mono); padding: 12px 14px; white-space: pre; overflow: auto;
}
.df-inputs textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.df-inputs textarea::placeholder { color: #5b6372; }

.df-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.df-bar .tabs { margin: 0; }
.df-bar .check { margin: 0; }
.df-bar .spacer { flex: 1; }
.df-bar .btn.primary { min-height: 44px; padding: 0 20px; }

.df-result { margin-top: 22px; }
.df-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; font-size: 14.5px; }
.df-pill { font-weight: 700; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.df-pill.del { background: color-mix(in oklab, #ef4444 14%, var(--surface)); color: #b91c1c; }
.df-pill.ins { background: color-mix(in oklab, #22c55e 16%, var(--surface)); color: #15803d; }
@media (prefers-color-scheme: dark) { .df-pill.del { color: #fca5a5; } .df-pill.ins { color: #86efac; } }
.df-same { font-weight: 650; color: var(--ok); }

.df-out { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.df-scroll { overflow: auto; max-height: 70vh; }
.df-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 13px/1.55 var(--mono); }
.df-table col.c-ln { width: 48px; }
.df-table td { padding: 1px 10px; vertical-align: top; }
.df-table .ln { color: var(--muted); text-align: right; user-select: none; font-size: 12px; padding-top: 2px; border-right: 1px solid var(--line); background: var(--raised); }
.df-table .tx { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.df-table.split td.tx:nth-child(2) { border-right: 1px solid var(--line); }
.df-table .d { background: color-mix(in oklab, #ef4444 9%, var(--surface)); }
.df-table .i { background: color-mix(in oklab, #22c55e 10%, var(--surface)); }
.df-table .ln.d { background: color-mix(in oklab, #ef4444 14%, var(--surface)); color: #b91c1c; }
.df-table .ln.i { background: color-mix(in oklab, #22c55e 16%, var(--surface)); color: #15803d; }
.df-table .e { background: repeating-linear-gradient(-45deg, var(--raised), var(--raised) 4px, var(--surface) 4px, var(--surface) 8px); }
.df-table .sg { display: inline-block; width: 1.4ch; color: var(--muted); user-select: none; }
.df-table del, .df-words del { background: color-mix(in oklab, #ef4444 30%, var(--surface)); color: inherit; text-decoration: none; border-radius: 3px; }
.df-table ins, .df-words ins { background: color-mix(in oklab, #22c55e 34%, var(--surface)); color: inherit; text-decoration: none; border-radius: 3px; }
.df-fold td { padding: 0; background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.df-fold button { font: 600 12.5px var(--body); color: var(--link); background: none; border: 0; width: 100%; text-align: left; padding: 6px 14px; cursor: pointer; }
.df-fold button:hover { text-decoration: underline; }
.df-words { padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.75; max-height: 70vh; overflow: auto; color: var(--ink); }
.df-words del { text-decoration: line-through; text-decoration-color: color-mix(in oklab, #ef4444 70%, transparent); }
.df-note { padding: 16px; margin: 0; }
@media (max-width: 760px) {
  .df-table { font-size: 12px; }
  .df-table col.c-ln { width: 34px; }
  .df-table td { padding: 1px 5px; }
}
.content pre { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow: auto; font-size: 14px; line-height: 1.6; }
.content pre code { background: none; padding: 0; }
