/* Reusable advanced uploader — drop-in widget styling. Monochrome. */
.au-wrap { display: block; }
.au-dz {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 18px;
  border: 1.5px dashed #000; border-radius: 12px;
  background: #fff; color: #000;
  text-align: center; cursor: pointer; outline: none;
  transition: background .15s ease, transform .05s ease;
}
.au-dz:hover, .au-dz:focus-visible { background: #fafafa; }
.au-dz.is-dragover { background: #f0f0f0; }
.au-dz:active { transform: scale(.998); }
.au-dz-title { font-weight: 700; font-size: 14px; }
.au-dz-hint  { font-size: 12px; color: #666; max-width: 540px; line-height: 1.45; }

.au-errors:empty { display: none; }
.au-errors { margin-top: 10px; }
.au-error  {
  border: 1px solid #000; border-radius: 10px; padding: 10px 12px;
  background: #fff; font-size: 12.5px; color: #111; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word;
}

.au-grid { display: grid; gap: 10px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.au-card {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  align-items: center;
  padding: 10px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff;
}
.au-thumb {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  background: #f3f3f3; display: flex; align-items: center; justify-content: center;
  color: #111;
}
.au-thumb img, .au-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-thumb .au-icon { font-size: 22px; }
.au-meta { min-width: 0; }
.au-name { font-size: 12.5px; font-weight: 600; color: #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-sub  { font-size: 11.5px; color: #666; margin-top: 2px; }
.au-bar  { height: 4px; margin-top: 6px; background: rgba(0,0,0,.12); border-radius: 999px; overflow: hidden; }
.au-fill { height: 100%; width: 0%; background: #000; transition: width .2s ease; }
.au-pill {
  position: absolute; top: 6px; right: 32px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 7px;
  border-radius: 999px; letter-spacing: .04em;
}
.au-pill[data-state="done"]   { background: #000; }
.au-pill[data-state="failed"] { background: #fff; color: #000; border: 1px solid #000; }
.au-x {
  position: absolute; top: 6px; right: 6px;
  appearance: none; border: 1px solid #000; background: #fff; color: #000;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.au-x:hover { background: #000; color: #fff; }
.au-retry {
  position: absolute; bottom: 8px; right: 8px;
  appearance: none; border: 1px solid #000; background: #000; color: #fff;
  font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  cursor: pointer;
}
.au-retry:hover { background: #fff; color: #000; }
