/* Text Diff Checker — tool-specific styles */

.diff-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.diff-inputs textarea {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 180px;
}

.diff-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0 0.25rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.diff-summary {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.diff-summary .sum-add { color: #16a34a; }
.diff-summary .sum-del { color: #dc2626; }
.diff-summary .sum-same { color: var(--text-muted); }

.diff-view {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.83rem;
  line-height: 1.55;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--bg-alt);
}

.diff-line {
  display: flex;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1px 0;
}

.diff-gutter {
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  font-weight: 700;
  user-select: none;
}

.diff-text { flex: 1; padding-right: 8px; }

.diff-line.add { background: rgba(34, 197, 94, 0.14); }
.diff-line.add .diff-gutter { color: #16a34a; }
.diff-line.del { background: rgba(239, 68, 68, 0.14); }
.diff-line.del .diff-gutter { color: #dc2626; }
.diff-line.same .diff-gutter { color: var(--text-muted); }

/* chips used in content copy */
.add-chip, .del-chip {
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85em;
}
.add-chip { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.del-chip { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

@media (max-width: 700px) {
  .diff-inputs { grid-template-columns: 1fr; }
}
