.dropzone {
  background: rgba(0, 0, 0, 0.03) none repeat scroll 0 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 3px;
  min-height: 122px;
  padding: 23px;
}
.dropzone .dz-default span {
  -webkit-transition: color 0.1s ease-in;
  -moz-transition: color 0.1s ease-in;
  transition: color 0.1s ease-in;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.2);
}
.dropzone:hover .dz-default span {
  color: rgba(0, 0, 0, 0.3);
}

html.dark .dropzone .dz-default span {
  color: rgba(255, 255, 255, 0.2);
}
html.dark .dropzone:hover .dz-default span {
  color: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------------------
   Dropzone error UI hardening (no hover tooltip; inline error panel instead)
   ------------------------------------------------------------------------- */

/* Make Dropzone's default hover tooltip inert */
.dropzone .dz-preview .dz-error-message { display: none !important; }

/* Ensure preview layout behaves predictably */
.dropzone .dz-preview { position: relative; }

/* Inline error box (always visible, no hover) */
.dropzone .dz-preview .dz-inline-error{
  position: static;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.35);
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;

  /* Prevent huge multi-line errors from taking over the card */
  max-height: 6.5em;
  overflow: auto;
}

/* Keep buttons grouped and clickable */
.dropzone .dz-preview .dz-actions{
  display: flex;
  flex-wrap: wrap;               /* NEW: prevents overflow on narrow previews */
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  position: relative;
  z-index: 5;
}

/* If older JS applied absolute positioning inline, kill it here */
.dropzone .dz-preview .dz-actions .dz-remove{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: auto !important;
}

/* Ensure buttons are always clickable */
.dropzone .dz-preview .dz-actions .btn{
  pointer-events: auto;
}