.folder-entry[data-drop-label], .document-list[data-drop-label] {
  position: relative;
  outline: 2px solid #315bce;
  outline-offset: -2px;
  background: #eef3ff;
}
[data-drop-label]::after {
  content: attr(data-drop-label);
  position: absolute;
  z-index: 1;
  inset: auto 8px 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #244ab3;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.upload-picker {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  border: 1px solid #abc1e8;
  border-radius: 7px;
  background: #fff;
  color: #23458c;
  padding: 8px 14px;
  font-weight: 650;
}
.upload-picker:focus-visible {
  outline: 2px solid #315bce;
  outline-offset: 2px;
}
.upload-destination {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.upload-destination > label {
  flex: 1 1 100px;
}
.upload-queue {
  list-style: none;
  padding: 0;
  max-height: 260px;
  overflow: auto;
}
.upload-queue li {
  border-top: 1px solid #e3eaf2;
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.upload-success {
  color: #146143;
}
.upload-error {
  color: #a11e2c;
}
.local-image-preview {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  margin: 12px auto;
  object-fit: contain;
}

dialog:has(.local-pdf-preview) {
  width: min(1000px, 94vw);
}
.local-pdf-preview {
  display: block;
  width: 100%;
  height: 65vh;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
