.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 21, 0.62);
  padding: 20px;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.modal h2 {
  margin: 0 0 12px;
}

.modal__body {
  color: var(--muted);
}

.modal__error {
  color: var(--danger);
  font-weight: 800;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-muted);
  color: var(--ink);
  font-size: 1.2rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
