/* Text Diff Checker — tool-specific styles (loaded after /assets/base.css) */
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.df-input { width: 100%; min-height: 200px; resize: vertical; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; tab-size: 2; }
.df-input:focus { outline: none; border-color: var(--accent); }

.df-opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; color: var(--muted); font-size: .9rem; }
.df-opts label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.df-opts input { width: 16px; height: 16px; accent-color: var(--accent); }
.df-opts .btn { padding: 7px 13px; font-size: .82rem; }
.np-spacer { flex: 1; }
.df-stats { font-size: .88rem; font-weight: 600; }
.df-stats .add { color: var(--good); }
.df-stats .del { color: var(--danger); }

.df-result { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); overflow: auto; max-height: 58vh; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86rem; line-height: 1.6; }
.df-result:empty { display: none; }
.df-line { display: flex; white-space: pre-wrap; word-break: break-word; padding: 0 12px; }
.df-line .sign { width: 1.2em; flex-shrink: 0; color: var(--muted-2); user-select: none; }
.df-line .txt { flex: 1; }
.df-line.same { color: var(--muted); }
.df-line.add { background: rgba(68, 211, 155, .12); }
.df-line.add .sign, .df-line.add .txt { color: var(--good); }
.df-line.del { background: rgba(255, 107, 138, .12); }
.df-line.del .sign, .df-line.del .txt { color: var(--danger); }
.df-empty { padding: 20px; text-align: center; color: var(--muted-2); }
/* inline word-level highlights */
.df-line .wadd { background: rgba(68, 211, 155, .30); border-radius: 3px; padding: 0 1px; color: #d6ffe9; }
.df-line .wdel { background: rgba(255, 107, 138, .30); border-radius: 3px; padding: 0 1px; color: #ffd9e2; text-decoration: line-through; text-decoration-color: rgba(255,107,138,.6); }
.df-stats .same-msg { color: var(--good); }
.df-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .78rem; color: var(--muted-2); }
.df-legend span { display: inline-flex; align-items: center; gap: 6px; }
.df-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.df-legend .li-add { background: rgba(68, 211, 155, .4); }
.df-legend .li-del { background: rgba(255, 107, 138, .4); }

@media (max-width: 640px) { .df-grid { grid-template-columns: 1fr; } }
