.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(15 23 42 / .55); }
.modal[hidden] { display: none; }.modal-content { width: min(520px, 100%); padding: 24px; background: var(--color-surface); border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .2); }
