[hidden] { display: none !important; }

#drop-zone {
  padding: 34px 20px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}

#drop-zone:hover,
#drop-zone:focus-visible,
#drop-zone.dragover {
  background: var(--accent-soft);
  border-color: var(--accent);
  outline: none;
}

#drop-zone.is-disabled,
#drop-zone.is-disabled:hover,
#drop-zone.is-disabled:focus-visible {
  cursor: not-allowed;
  opacity: 0.65;
  background: var(--white);
  border-color: var(--border-strong);
}

#drop-zone strong { display: block; color: var(--fg); }

.file-list {
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.file-details { min-width: 0; }
.file-details strong,
.file-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details span,
.file-state { color: var(--fg-muted); font-size: 13px; }
.file-state.error { color: var(--danger); }
.remove-file { min-height: 38px; padding: 7px 12px; font-size: 13px; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.setting-disabled { opacity: 0.55; }
.check-label { display: flex; gap: 7px; align-items: center; }
.check-label input { margin: 0; }

.progress {
  height: 9px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.progress div { width: 0; height: 100%; background: var(--success); transition: width 150ms ease; }

.result-list { display: grid; gap: 14px; }
.result-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-card img {
  width: 132px;
  height: 96px;
  object-fit: contain;
  background: repeating-conic-gradient(#eef1f6 0 25%, #fff 0 50%) 50% / 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.result-body { min-width: 0; }
.result-body h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.result-body p { margin-bottom: 7px; }
.size-comparison { color: var(--success-hover); font-weight: 600; }
.size-comparison.warning { color: var(--danger); }

@media (max-width: 600px) {
  .settings-grid { grid-template-columns: 1fr; }
  .file-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .file-state { grid-column: 1; grid-row: 2; }
  .remove-file { grid-column: 2; grid-row: 1 / span 2; }
  .result-card { grid-template-columns: 88px minmax(0, 1fr); }
  .result-card img { width: 88px; height: 88px; }
}
