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

.ifc-dropzone { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 36px 20px; text-align: center; color: #6b7280; cursor: pointer; transition: all .15s ease; margin-bottom: 8px; }
.ifc-dropzone:hover { border-color: var(--site-light); }
.ifc-dropzone.dragover { border-color: var(--site-light); background: #fff7ed; }
.ifc-dropzone i { font-size: 2.2em; margin-bottom: 10px; display: block; color: var(--site-dark); }
.ifc-dropzone p { margin: 0; font-size: .95em; }
.ifc-dropzone input[type="file"] { display: none; }

.ifc-error { color: var(--site-danger); background: var(--site-danger-bg); border: 1px solid var(--site-danger-border); border-radius: 8px; padding: 10px 14px; font-size: .9em; font-weight: 600; margin: 10px 0 0; }
.ifc-error.hide { display: none; }

.ifc-workspace { margin-top: 22px; }

.ifc-preview-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.ifc-preview-box { flex: 1; min-width: 180px; max-width: 320px; text-align: center; background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 14px; }
.ifc-preview-label { display: block; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 10px; }
.ifc-preview-box img { max-width: 100%; max-height: 180px; border-radius: 6px; background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: none; object-fit: contain; }
.ifc-preview-box img[src] { display: inline-block; }
.ifc-preview-meta { display: block; font-size: .85em; color: #374151; margin-top: 10px; font-weight: 600; word-break: break-word; }
.ifc-arrow { color: var(--site-dark); font-size: 1.4em; flex-shrink: 0; }

.ifc-field { margin-bottom: 20px; }
.ifc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.ifc-field.hide { display: none; }

.ifc-format-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ifc-format-opt { display: flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: .92em; color: #4b5563; transition: all .15s ease; }
.ifc-format-opt i { color: #9aa0aa; }
.ifc-format-opt:hover { border-color: var(--site-light); }
.ifc-format-opt input[type="radio"] { accent-color: var(--site-dark); margin: 0; }
.ifc-format-opt:has(input:checked) { border-color: var(--site-dark); background: #fff7ed; color: var(--site-dark); }
.ifc-format-opt:has(input:checked) i { color: var(--site-dark); }
.ifc-format-opt.ifc-checked { border-color: var(--site-dark); background: #fff7ed; color: var(--site-dark); }
.ifc-format-opt.ifc-checked i { color: var(--site-dark); }

.ifc-swatch-row { display: flex; align-items: center; gap: 12px; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; }
.ifc-swatch-row input[type="color"] { width: 42px; height: 42px; border: none; border-radius: 6px; padding: 0; cursor: pointer; background: none; flex-shrink: 0; }
.ifc-hint { font-size: .82em; color: #6b7280; line-height: 1.5; }

#ifcQuality { width: 100%; accent-color: var(--site-dark); }
.ifc-field.ifc-disabled label, .ifc-field.ifc-disabled .ifc-hint { color: #b0b5bd; }
#ifcQuality:disabled { opacity: .5; cursor: not-allowed; }

.ifc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ifc-btn { flex: 1; min-width: 150px; background: var(--site-dark); color: #fff; border: none; border-radius: 8px; padding: 13px 20px; font-weight: 700; font-size: .95em; cursor: pointer; transition: background .2s ease; }
.ifc-btn:hover { background: var(--site-dark-2); }
.ifc-btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.ifc-btn-download { background: var(--site-accent); }
.ifc-btn-download:hover { background: #d97f06; }
.ifc-btn-download:disabled { background: #cbd5e1; }

.ifc-status { margin: 14px 0 0; font-size: .88em; font-weight: 600; color: #6b7280; text-align: center; min-height: 1.2em; }
.ifc-status.ifc-status-ok { color: var(--site-success); }
.ifc-status.ifc-status-err { color: var(--site-danger); }

@media (max-width: 600px) {
    .ifc-preview-row { flex-direction: column; }
    .ifc-arrow { transform: rotate(90deg); }
    .ifc-actions { flex-direction: column; }
}
