/* Covar Reference Uploads */
.upload-box.is-active {
  position: relative;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.upload-box.is-active:hover,
.upload-box.is-active:focus-visible,
.upload-box.is-drag {
  border-color: var(--gold, #b8960c);
  background-color: rgba(184, 150, 12, .05);
  outline: none;
}
.upload-box.is-drag { border-style: solid; }
.upload-box.has-files { margin-bottom: 16px; }
.upload-box .covar-refup-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden;
}

.covar-refup-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.covar-refup-list:empty { display: none; }
.covar-refup-item {
  position: relative;
  width: 104px;
  margin: 0;
  padding: 0;
}
.covar-refup-thumb {
  display: block;
  width: 104px;
  height: 104px;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
  border-radius: var(--radius, 2px);
  background: var(--bg-card, #15171c);
  transition: opacity .2s ease;
}
.covar-refup-item.is-uploading .covar-refup-thumb { opacity: .45; }
.covar-refup-item.is-done .covar-refup-thumb { border-color: rgba(184, 150, 12, .45); }
.covar-refup-bar {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 99px;
  height: 4px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.covar-refup-bar i {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--gold, #b8960c);
  transition: width .2s ease;
}
.covar-refup-item.is-done .covar-refup-bar { display: none; }
.covar-refup-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px !important;
  height: 24px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(10, 11, 13, .82) !important;
  color: #f5f3ee !important;
  font: 400 17px/24px var(--ff-body, 'Inter', sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center;
  box-shadow: none !important;
  cursor: pointer;
}
.covar-refup-remove:hover,
.covar-refup-remove:focus-visible { background: #c8102e !important; outline: none; }
.covar-refup-name {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted, #9a9a9d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.covar-refup-msg {
  margin: 0 0 28px;
  font-family: var(--ff-body, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #9a9a9d);
}
.covar-refup-msg:empty { display: none; }
.covar-refup-msg.is-warn { color: #e4a0a2; }
.covar-refup-field[hidden] { display: none !important; }
