.download_toast_region {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 9000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.download_toast {
  pointer-events: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  color: #1f2937;
}

.download_toast_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download_toast_title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.download_toast_file {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  overflow-wrap: anywhere;
}

.download_toast_msg {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.download_toast_close,
.download_toast_action {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
}

.download_toast_close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
}

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

.download_toast_action {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.download_toast_action.is-primary {
  border-color: rgba(37, 99, 235, 0.45);
  background: #2563eb;
  color: #fff;
}

.download_toast[data-status="failed"],
.download_toast[data-status="missing"] {
  border-color: rgba(239, 68, 68, 0.42);
}

.download_toast[data-status="completed"] {
  border-color: rgba(34, 197, 94, 0.36);
}
