/* Shared document upload box: drop zone, URL row and staged-file list.
   Used by the review (/review/) and draft (/draft/) setup pages. */
/* ---- Upload drop zone ---- */
.drop-zone {
  border: 2px dashed #cfc4e2; border-radius: 8px;
  padding: 28px 18px; text-align: center; background: #faf8fd;
  transition: border-color .15s, background .15s; cursor: pointer;
  position: relative; overflow: hidden;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: #6a4c93; background: #f3eef9; }
.dz-icon {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
  background: #ece4f6; display: flex; align-items: center; justify-content: center;
}
.dz-icon svg { width: 22px; height: 22px; stroke: #6a4c93; }
.dz-title { margin: 0; font-size: 1rem; font-weight: 600; color: #222; }
.dz-browse { margin: 4px 0 0; font-size: .9rem; color: #666; }
.dz-browse-trigger { color: #6a4c93; font-weight: 600; text-decoration: none; }
.drop-zone:hover .dz-browse-trigger { text-decoration: underline; }
.file-input-native {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer;
}
.dz-chips { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dz-chip {
  background: #fff; border: 1px solid #DCDCDC; border-radius: 5px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  color: #666; padding: 3px 9px;
}
.dz-dot { color: #c9c6d3; font-size: .7rem; }
.dz-max { margin: 10px 0 0; font-size: .78rem; color: #999; }
.url-intake {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 10px; border: 1px solid #e1dbe9; border-radius: 7px;
  background: #fff;
}
.url-intake-label {
  flex: none; color: #777; font-size: .78rem; font-weight: 600;
}
.url-intake input {
  min-width: 0; flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .82rem; color: #333;
}
.url-intake button {
  flex: none; border: 0; border-radius: 5px; padding: 6px 10px;
  background: #ece4f6; color: #5a3e80; cursor: pointer;
  font: inherit; font-size: .76rem; font-weight: 700;
}
.url-intake button:hover:not(:disabled) { background: #ded0ee; }
.url-intake button:disabled { cursor: wait; opacity: .65; }
.url-intake-status {
  display: none; margin: 6px 2px 0; font-size: .78rem; color: #777;
}
.url-intake-status.active { display: block; }
.url-intake-status.error { color: #b04949; }
@media (max-width: 540px) {
  .url-intake { flex-wrap: wrap; }
  .url-intake-label { width: 100%; }
}

/* Staged file row */
.dz-file {
  display: none; align-items: center; gap: 12px; text-align: left;
  border: 1px solid #6a4c93; border-radius: 8px; background: #f6f1fb;
  padding: 12px 14px;
}
.dz-file.active { display: flex; }
.dz-file .dz-icon { width: 38px; height: 38px; margin: 0; flex: none; }
.dz-file-info { flex: 1 1 220px; min-width: 0; }
.dz-file-name {
  font-weight: 600; color: #333; font-size: .9rem;
  overflow-wrap: anywhere; word-break: normal;
}
.dz-file-meta { font-size: .8rem; color: #888; }
.dz-file-remove {
  margin-left: auto; flex: none; background: transparent; border: 0;
  color: #888; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 6px;
}
.dz-file-remove:hover { color: #b04949; }
.dz-error { display: none; color: #b04949; font-size: .85rem; margin-top: 8px; }
.dz-error.active { display: block; }
.dz-hint { margin: 8px auto 0; font-size: .78rem; color: #999; max-width: 420px; }
#staged-files { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#staged-files .dz-file { display: flex; }
.dz-file.support { border-color: #DCDCDC; background: #fafafa; }
.dz-file-badge {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; border-radius: 5px; padding: 3px 8px;
  background: #6a4c93; color: #fff;
}
.dz-file.support .dz-file-badge { background: #e9e6ef; color: #6a4c93; }
.dz-file-actions {
  flex: 0 0 148px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px;
}
.dz-file-make-primary {
  flex: none; background: transparent; border: 0; color: #6a4c93;
  font-size: .78rem; font-weight: 600; cursor: pointer; padding: 4px 0;
  text-decoration: underline;
}
@media (max-width: 540px) {
  #staged-files .dz-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
  }
  .dz-file-info { grid-column: 1 / -1; width: 100%; }
  .dz-file-actions {
    grid-column: 1; width: 100%; flex-basis: auto;
  }
  .dz-file-remove {
    grid-column: 2; grid-row: 1; margin-left: 0 !important;
  }
}

