.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; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: grab;
}

.card.is-dragging { opacity: 0.4; }
.card.is-target { border-color: var(--accent); }

.thumb {
  aspect-ratio: 1;
  display: flex;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.name {
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools { display: flex; justify-content: space-between; gap: 4px; }

.tool {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  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); }

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 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 select,
.options input {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

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