/* БЛОК: Upload overlay, модалки, прогресс */
.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(252, 63, 29, 0.1);
  border: 3px dashed var(--yd-red);
  border-radius: 12px;
  margin: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: auto;
}
.upload-overlay.show { display: flex; }
.upload-overlay span {
  font-size: 18px;
  font-weight: 500;
  color: var(--yd-red);
  background: #fff;
  padding: 16px 24px;
  border-radius: var(--yd-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.drop-overlay.dragging { pointer-events: auto; }
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
}
.modal-bg.show {
  display: flex;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  max-width: min(400px, 100%);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.modal h3 { margin-bottom: 16px; font-size: 18px; }
.modal input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--yd-border);
  border-radius: var(--yd-radius);
  font: inherit;
  margin-bottom: 16px;
}
.modal input:focus {
  outline: none;
  border-color: var(--yd-red);
}
.modal .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.modal p { margin: 0; }
.modal .btn-danger {
  background: #f44336;
  color: #fff;
}
.modal .btn-danger:hover {
  background: #d32f2f;
}
.message {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--yd-radius);
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1002;
  display: none;
}
.message.show { display: block; }
.message.success { background: #4caf50; color: #fff; }
.message.error { background: #f44336; color: #fff; }
input[type="file"] { display: none; }
.progress-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  min-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.progress-modal h3 { margin-bottom: 16px; font-size: 18px; }
.progress-stats { font-size: 14px; color: var(--yd-text-muted); margin-bottom: 12px; }
.progress-bar-wrap {
  height: 8px;
  background: var(--yd-hover);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--yd-red);
  border-radius: 4px;
}
.progress-percent { font-size: 13px; color: var(--yd-text-muted); }

/* Подтверждение перемещения */
.modal-move {
  position: relative;
  padding: 20px 24px 18px;
  max-width: min(420px, 100%);
}
.modal-move .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--yd-text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-move .modal-close:hover {
  background: var(--yd-hover);
  color: var(--yd-text);
}
.modal-move h3 {
  margin: 0 36px 12px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.modal-move-message {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--yd-text);
}
.modal-move-skip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--yd-text);
  cursor: pointer;
  user-select: none;
}
.modal-move-skip input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--yd-text);
}
.modal-move .btns {
  margin-top: 0;
}
.btn-move-primary {
  background: #ffdb4d;
  color: #1a1a1a;
  border: none;
  font-weight: 500;
}
.btn-move-primary:hover {
  background: #ffd21a;
}
.btn-move-primary:active {
  background: #f5c800;
}

