dialog.modal {
    width: min(92vw, 520px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    color: var(--color-text);
}
dialog.modal::backdrop { background: rgba(15, 23, 42, .55); }
.modal__box { padding: 1.25rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal__title { margin: 0; font-size: 1.2rem; }
.modal__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.modal__actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
