/* Keep the original upload picker; uploaded media stays inside its border. */
.upload-area {
  border: 1px dashed #d3b2eb;
  border-radius: 8px;
  background: #fdfaff;
  min-width: 0;
  transition: background .2s, border-color .2s;
}
.upload-area:hover, .upload-area.dragover { background: #f5eafa; border-color: #b17ada; }
.upload-area > .dropzone { border: 0; background: transparent; width: 100%; }
.upload-area > .asset-grid { width: 100%; margin: 0; padding: 0 12px 12px; cursor: default; }
.upload-area > .asset-grid:empty { display: none; }
#asset-grid .asset-add {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px dashed #d3b2eb;
  border-radius: 6px;
  background: #fdfaff;
  color: #b39ac8;
  cursor: pointer;
}
#asset-grid .asset-add span { font-size: 36px; font-weight: 300; line-height: 1; }
#asset-grid .asset-add:hover:not(:disabled) { background: #f0e6fb; border-color: #a66dea; color: #8b30f5; }
#asset-grid .asset-item { cursor: grab; user-select: none; -webkit-user-select: none; }
#asset-grid .asset-item img, #asset-grid .asset-item video { pointer-events: none; }
#asset-grid .asset-sort-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #fffdf9e8;
  color: #704491;
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}
#asset-grid button:focus-visible { outline: 2px solid #b380f3; outline-offset: -2px; }
#asset-grid .asset-item.is-dragging { opacity: .7; z-index: 5; pointer-events: none; cursor: grabbing; }
#asset-grid .asset-item.is-drop-target { outline: 2px solid #9650ed; outline-offset: 1px; }
@media (pointer: coarse) {
  #asset-grid .asset-sort-handle { width: 28px; height: 28px; }
}
