.dropzone {
  display: block;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  outline: none;
  margin-bottom: 22px;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--bg-elev-2); }
.dropzone.is-dragover { border-color: var(--accent); background: rgba(124, 92, 255, 0.08); transform: scale(1.005); }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dropzone-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: #cdd3ff; border: 1px solid rgba(124, 92, 255, 0.3);
}
.dropzone-icon svg { width: 26px; height: 26px; }
.dropzone-text { color: var(--text); font-size: 15px; }
.dropzone-hint { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.images-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.images-header h2 { margin: 0; font-size: 18px; }
.muted { color: var(--text-dim); font-weight: 500; }
.hint  { color: var(--text-dim); font-size: 12px; }

.p2i-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.p2i-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.p2i-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.p2i-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  background: #ffffff;
  object-fit: contain;
}

.p2i-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.p2i-download {
  background: var(--accent-grad);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
