.threshold-dropzone {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border: 2px dashed color-mix(in oklab, var(--color-base-content) 38%, transparent);
  border-radius: var(--radius-box, 0.75rem);
  background: color-mix(in oklab, var(--color-base-content) 5%, transparent);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease-out,
    background-color 160ms ease-out,
    border-style 160ms ease-out;
}

.threshold-dropzone:hover,
.threshold-dropzone:focus-within {
  border-color: color-mix(in oklab, var(--color-primary) 55%, transparent);
  background: color-mix(in oklab, var(--color-primary) 8%, transparent);
}

.threshold-dropzone.is-dragging {
  border-style: solid;
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
}

.threshold-dropzone.is-ready {
  border-style: solid;
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
}

.threshold-dropzone.is-invalid {
  border-color: var(--color-error);
  background: color-mix(in oklab, var(--color-error) 8%, transparent);
}

.threshold-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.threshold-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
}

.threshold-dropzone__icon[hidden] {
  display: none !important;
}

.threshold-dropzone.is-invalid .threshold-dropzone__icon {
  color: var(--color-error);
  background: color-mix(in oklab, var(--color-error) 12%, transparent);
}

.threshold-dropzone__prompt {
  max-width: 100%;
  padding: 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.threshold-dropzone__detail {
  font-size: 0.75rem;
  line-height: 1.3;
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .threshold-dropzone {
    transition: none;
  }
}
