.download-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 18%);
}

.download-dialog::backdrop {
  background: rgb(15 23 42 / 14%);
  backdrop-filter: blur(1px);
}

.download-dialog-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
}

.download-dialog-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
}

.download-dialog h2,
.download-dialog p {
  margin: 0;
}

.download-dialog h2 {
  font-size: 22px;
}

.download-dialog p {
  color: #64748b;
  line-height: 1.55;
}

.download-dialog label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.download-dialog input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}

.download-dialog input:focus {
  border-color: #2563eb;
  outline: 2px solid rgb(37 99 235 / 16%);
}

.download-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.download-dialog-close:hover {
  color: #111827;
  background: #f1f5f9;
}

.download-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.download-dialog-actions button,
.download-dialog-actions a {
  display: grid;
  min-height: 42px;
  padding: 0 14px;
  place-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.download-dialog-actions [hidden] {
  display: none;
}

.download-dialog-cancel {
  color: #475569;
  background: #fff;
}

.download-dialog-submit,
.download-dialog-download {
  color: #fff;
  border-color: #2563eb !important;
  background: #2563eb;
}

.download-dialog-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.download-dialog .download-dialog-error {
  color: #dc2626;
  font-size: 14px;
}

.download-dialog .download-dialog-status {
  color: #166534;
  font-size: 14px;
}

@media (max-width: 480px) {
  .download-dialog-form {
    padding: 22px;
  }
}
