.dc-card { padding: 28px; }
.dc-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.dc-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.dc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.dc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.dc-field textarea { width: 100%; min-height: 220px; resize: vertical; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font-family: "Courier New", monospace; font-size: .9em; line-height: 1.5; color: #23272f; outline: none; box-sizing: border-box; transition: border-color .15s ease; }
.dc-field textarea:focus { border-color: var(--site-light); }

.dc-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.dc-compare-btn, .dc-clear-btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 30px; padding: 10px 26px; font-weight: 700; font-size: .95em; cursor: pointer; transition: background .2s ease; }
.dc-compare-btn { background: var(--site-dark); color: #fff; }
.dc-compare-btn:hover { background: var(--site-dark-2); }
.dc-clear-btn { background: #f3f4f6; color: #4b5563; }
.dc-clear-btn:hover { background: #e5e7eb; }

.dc-output.hide { display: none; }

.dc-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dc-summary { font-weight: 700; font-size: 1em; color: #23272f; }
.dc-summary .dc-added-count { color: var(--site-success); }
.dc-summary .dc-removed-count { color: var(--site-danger); }
.dc-copy-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid #ddd; border-radius: 20px; padding: 7px 16px; font-size: .85em; font-weight: 600; color: #6b7280; cursor: pointer; }
.dc-copy-btn:hover { background: #f3f4f6; border-color: var(--site-light); color: var(--site-dark); }
.dc-copied { font-size: .85em; font-weight: 600; color: var(--site-success); display: inline-flex; align-items: center; gap: 5px; }
.dc-copied.hide { display: none; }

.dc-result { border: 1px solid #eee; border-radius: 10px; overflow: auto; max-height: 640px; font-family: "Courier New", monospace; font-size: .88em; line-height: 1.6; background: #fafbfc; }
.dc-empty { padding: 22px; text-align: center; color: #6b7280; font-family: "Nunito", "Segoe UI", Arial, sans-serif; }

.dc-line { display: flex; white-space: pre-wrap; word-break: break-word; border-bottom: 1px solid #eef0f3; }
.dc-line:last-child { border-bottom: none; }
.dc-ln { flex: 0 0 46px; text-align: right; padding: 3px 8px; color: #9aa0aa; user-select: none; border-right: 1px solid #eef0f3; font-size: .92em; }
.dc-marker { flex: 0 0 22px; text-align: center; padding: 3px 0; user-select: none; font-weight: 700; }
.dc-text { flex: 1 1 auto; padding: 3px 12px 3px 4px; min-width: 0; }

.dc-line-unchanged { background: #fff; color: #3d4148; }
.dc-line-added { background: var(--site-success-bg); color: #14532d; }
.dc-line-added .dc-marker { color: var(--site-success); }
.dc-line-removed { background: var(--site-danger-bg); color: #7f1d1d; }
.dc-line-removed .dc-marker { color: var(--site-danger); }

@media (max-width: 700px) {
    .dc-inputs { grid-template-columns: 1fr; }
    .dc-field textarea { min-height: 160px; }
    .dc-ln { flex-basis: 34px; padding: 3px 5px; font-size: .85em; }
    .dc-result { max-height: 480px; font-size: .8em; }
}
