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

/* ===== Dropzone ===== */
.ic-dropzone { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 36px 20px; text-align: center; color: #6b7280; cursor: pointer; transition: all .15s ease; }
.ic-dropzone.dragover { border-color: var(--site-light); background: #f0fdfa; }
.ic-dropzone i { font-size: 2.3em; margin-bottom: 10px; display: block; color: var(--site-dark); }
.ic-dropzone p { margin: 0 0 4px; font-weight: 600; color: #374151; }
.ic-dropzone .ic-hint { font-size: .82em; color: #9ca3af; }
.ic-dropzone input[type="file"] { display: none; }

.ic-hint { font-size: .82em; color: #9ca3af; margin: 8px 0 0; }

.ic-error { color: var(--site-danger); background: var(--site-danger-bg); border: 1px solid var(--site-danger-border); border-radius: 8px; padding: 12px 16px; font-size: .9em; margin: 16px 0 0; }
.ic-error.hide { display: none; }

/* ===== Workspace ===== */
.ic-workspace { margin-top: 22px; }
.ic-change-file { background: none; border: none; color: var(--site-dark); font-weight: 600; font-size: .88em; cursor: pointer; padding: 0 0 16px; display: inline-flex; align-items: center; gap: 6px; }
.ic-change-file:hover { color: var(--site-dark); }

.ic-preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.ic-preview-col { display: flex; flex-direction: column; }
.ic-preview-label { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 8px; }
.ic-preview-box { background: repeating-conic-gradient(#f1f3f6 0% 25%, #fff 0% 50%) 50% / 20px 20px; border: 1px solid #e5e7eb; border-radius: 10px; min-height: 180px; max-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; }
.ic-preview-box img, .ic-preview-box canvas { max-width: 100%; max-height: 300px; object-fit: contain; display: block; }
.ic-preview-meta { font-size: .82em; color: #6b7280; margin-top: 8px; text-align: center; min-height: 1.3em; }

/* ===== Controls ===== */
.ic-controls { border: 1px solid #eee; border-radius: 10px; padding: 18px 20px; background: #fafbfc; margin-bottom: 20px; }
.ic-field { margin-bottom: 16px; }
.ic-field:last-child { margin-bottom: 0; }
.ic-field label { display: block; font-size: .85em; font-weight: 600; color: #374151; margin-bottom: 6px; }
.ic-field select, .ic-field input[type="number"] { width: 100%; border: 1px solid #ddd; border-radius: 7px; padding: 9px 10px; font-size: .92em; box-sizing: border-box; background: #fff; color: #23272f; }
.ic-field input[type="range"] { width: 100%; accent-color: var(--site-light); }
.ic-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#icQualityField.ic-disabled { opacity: .45; pointer-events: none; }

/* ===== Stats ===== */
.ic-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ic-stat { border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; text-align: center; background: #f7f8fa; }
.ic-stat-label { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; display: block; margin-bottom: 6px; }
.ic-stat-value { font-weight: 700; font-size: 1.05em; color: #23272f; }
.ic-stat-highlight { background: var(--site-success-bg); border-color: var(--site-success-border); }
.ic-stat-highlight .ic-stat-value { color: var(--site-success); }
.ic-stat-highlight.ic-worse { background: var(--site-danger-bg); border-color: var(--site-danger-border); }
.ic-stat-highlight.ic-worse .ic-stat-value { color: var(--site-danger); }

.ic-btn { border: none; border-radius: 8px; padding: 13px 26px; font-weight: 700; cursor: pointer; font-size: .98em; display: flex; align-items: center; gap: 8px; background: var(--site-light); color: #fff; width: 100%; justify-content: center; transition: filter .15s ease; }
.ic-btn:disabled { opacity: .45; cursor: not-allowed; }
.ic-btn:not(:disabled):hover { filter: brightness(1.08); }

.ic-status { text-align: center; color: #6b7280; font-size: .88em; margin-top: 12px; min-height: 1.3em; }
.ic-status:empty { display: none; }

@media (max-width: 640px) {
    .ic-preview-row { grid-template-columns: 1fr; }
    .ic-field-row { grid-template-columns: 1fr; }
}
