.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 140px;
  padding: 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.drop strong { color: var(--text); font-size: 1.1rem; }
.drop:hover,
.drop:focus-within,
.drop.is-over { border-color: var(--accent); }
.drop.is-over { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.status.is-error { color: var(--danger); }

.section-title { font-size: 1.05rem; margin: 24px 0 12px; }
.count { color: var(--muted); font-weight: 400; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}

.options label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.options .wide { grid-column: 1 / -1; }
.options output { color: var(--text); font-weight: 600; }
.options small { font-size: 13px; }
.options input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--accent); }

.options select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.file {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.file .thumb { width: 56px; height: 56px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.file .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.file .info { min-width: 0; }
.file .name { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { font-size: 13px; color: var(--muted); }
.file .meta .saved { color: var(--accent); font-weight: 600; }
.file .meta .bigger { color: var(--danger); font-weight: 600; }
.file .meta.is-error { color: var(--danger); }

.file .buttons { display: flex; gap: 6px; }

.tool {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tool:hover:not(:disabled) { border-color: var(--muted); }
.tool:disabled { opacity: 0.35; cursor: not-allowed; }
.tool.danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 520px) {
  .file { grid-template-columns: 56px 1fr; }
  .file .buttons { grid-column: 1 / -1; }
  .file .buttons .tool { flex: 1; }
}
