.fc-card { padding: 28px; }
.fc-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; }
.fc-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.fc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.fc-field label:first-child { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.fc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.fc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #ddd; border-radius: 10px; padding: 26px 16px; text-align: center; cursor: pointer; background: #fafbfc; transition: border-color .15s ease, background .15s ease; min-height: 140px; box-sizing: border-box; }
.fc-drop:hover, .fc-drop.fc-drop-active { border-color: var(--site-light); background: #f0fdfa; }
.fc-drop i { font-size: 1.8em; color: var(--site-dark); }
.fc-drop-text { font-weight: 600; color: #23272f; font-size: .92em; }
.fc-file-meta { font-size: .82em; color: #6b7280; word-break: break-all; }
.fc-drop.fc-has-file { border-style: solid; border-color: var(--site-light); }
.fc-drop.fc-has-file .fc-file-meta { color: var(--site-dark); font-weight: 600; }

.fc-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fc-compare-btn, .fc-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; }
.fc-compare-btn { background: var(--site-light); color: #fff; }
.fc-compare-btn:hover { background: var(--site-dark); }
.fc-clear-btn { background: #f3f4f6; color: #4b5563; }
.fc-clear-btn:hover { background: #e5e7eb; }

.fc-error { background: var(--site-danger-bg); border: 1px solid var(--site-danger-border); color: var(--site-danger); border-radius: 8px; padding: 10px 14px; font-size: .88em; margin-bottom: 18px; }
.fc-error.hide { display: none; }

.fc-output.hide { display: none; }
.fc-text-mode.hide, .fc-binary-mode.hide { display: none; }

/* ===== Text diff mode ===== */
.fc-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fc-summary { font-weight: 700; font-size: 1em; color: #23272f; }
.fc-summary .fc-added-count { color: var(--site-success); }
.fc-summary .fc-removed-count { color: var(--site-danger); }
.fc-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; }
.fc-copy-btn:hover { background: #f3f4f6; border-color: var(--site-light); color: var(--site-dark); }
.fc-copied { font-size: .85em; font-weight: 600; color: var(--site-success); display: inline-flex; align-items: center; gap: 5px; }
.fc-copied.hide { display: none; }

.fc-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; }
.fc-empty { padding: 22px; text-align: center; color: #6b7280; font-family: "Nunito", "Segoe UI", Arial, sans-serif; }

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

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

/* ===== Binary summary mode ===== */
.fc-verdict { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: .95em; margin-bottom: 16px; }
.fc-verdict.fc-identical { background: var(--site-success-bg); color: var(--site-success); }
.fc-verdict.fc-different { background: var(--site-danger-bg); color: var(--site-danger); }

.fc-summary-table-wrap { overflow-x: auto; }
table.fc-summary-table { width: 100%; border-collapse: collapse; font-size: .9em; }
table.fc-summary-table th { background: var(--site-light); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
table.fc-summary-table th:first-child { border-top-left-radius: 8px; }
table.fc-summary-table th:last-child { border-top-right-radius: 8px; }
table.fc-summary-table td { padding: 12px 16px; border-bottom: 1px solid #eee; word-break: break-word; vertical-align: top; }
table.fc-summary-table tr:nth-child(even) td { background: #f7f8fa; }
table.fc-summary-table td:first-child { font-weight: 600; color: #23272f; white-space: nowrap; }
.fc-hash-cell { font-family: "Courier New", monospace; font-size: .85em; }

@media (max-width: 700px) {
    .fc-inputs { grid-template-columns: 1fr; }
    .fc-ln { flex-basis: 34px; padding: 3px 5px; font-size: .85em; }
    .fc-result { max-height: 480px; font-size: .8em; }
    table.fc-summary-table { font-size: .8em; }
    table.fc-summary-table th, table.fc-summary-table td { padding: 9px 10px; }
}
