.drag-help {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
}

.fight-tab[draggable="true"] {
  cursor: grab;
}

.fight-tab.dragging {
  opacity: .45;
  cursor: grabbing;
}

.folder.drop-target {
  background: #356b91;
  border-color: #b7d7f2;
  color: white;
  box-shadow: inset 0 0 0 2px #b7d7f2;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-actions .quiet {
  padding: 7px 9px;
}

#transfer-dialog {
  width: min(570px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #343a40;
  border-radius: 10px;
  color: var(--encre);
  background: var(--surface);
}

#transfer-form {
  padding: 28px;
}

.transfer-heading {
  align-items: flex-start;
}

.transfer-heading h2 {
  margin: 4px 0 18px;
  font: 700 30px/1.1 var(--display);
}

.transfer-kicker {
  color: var(--blue);
  font: 750 10px/1 var(--body);
  letter-spacing: 1.7px;
}

.transfer-fight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -28px 24px;
  padding: 14px 28px;
  color: #eaf4fc;
  background: #0b0d10;
}

.transfer-fight p {
  margin: 0;
  color: inherit;
  font-weight: 650;
}

.transfer-mark {
  width: 5px;
  height: 30px;
  flex: 0 0 auto;
  border-top: 14px solid #77b4e2;
  border-bottom: 14px solid #d8ebf8;
  transform: skew(-10deg);
}

.transfer-destinations {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.transfer-destinations legend {
  margin-bottom: 10px;
  color: var(--encre-douce);
  font-size: 12px;
  font-weight: 650;
}

.transfer-folders {
  display: grid;
  gap: 8px;
  max-height: 285px;
  overflow-y: auto;
  padding: 2px;
}

.transfer-folder-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 13px;
  border: 1px solid #343a40;
  border-radius: 7px;
  background: #111418;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.transfer-folder-option:hover {
  border-color: #527da4;
  background: #191f25;
}

.transfer-folder-option:has(input:checked) {
  border-color: var(--blue);
  background: #172a3d;
  box-shadow: inset 4px 0 var(--blue), 0 4px 16px #0003;
}

.transfer-folder-option:has(input:focus-visible) {
  outline: 3px solid #eba93e;
  outline-offset: 2px;
}

.transfer-folder-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.transfer-folder-icon {
  position: relative;
  width: 31px;
  height: 23px;
  border: 2px solid #71808d;
  border-radius: 3px;
  background: #20262c;
}

.transfer-folder-icon::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -2px;
  width: 15px;
  height: 7px;
  border: 2px solid #71808d;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #20262c;
}

.transfer-folder-option:has(input:checked) .transfer-folder-icon,
.transfer-folder-option:has(input:checked) .transfer-folder-icon::before {
  border-color: var(--blue);
  background: #1d4d78;
}

.transfer-folder-text {
  display: grid;
  min-width: 0;
}

.transfer-folder-text strong {
  overflow: hidden;
  color: var(--encre);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-folder-text small {
  margin-top: 2px;
  color: var(--encre-douce);
  font-size: 11px;
}

.transfer-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #4b535b;
  border-radius: 50%;
  color: transparent;
  background: #111418;
  font-size: 13px;
}

.transfer-folder-option:has(input:checked) .transfer-check {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.transfer-explanation {
  min-height: 36px;
  margin: 15px 2px 0;
  color: var(--encre-douce);
  line-height: 1.5;
}

.transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.transfer-cancel {
  margin-right: auto;
  background: transparent;
}

#transfer-dialog .close,
#transfer-dialog .transfer-cancel {
  color: var(--encre-douce);
}

@media (max-width: 520px) {
  #transfer-form { padding: 22px 18px; }
  .transfer-fight { margin-inline: -18px; padding-inline: 18px; }
  .transfer-actions { align-items: stretch; flex-direction: column-reverse; }
  .transfer-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-folder-option { transition: none; }
}
