/* RFAlert: confirm and alert dialogs. Used with ui/js/alert.js */
.rf-alert-overlay { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; background: rgba(15, 18, 50, .45); opacity: 0; transition: opacity .15s ease; }
.rf-alert-overlay.show { opacity: 1; }
.rf-alert-box { --tone: var(--primary); width: min(420px, 100%); padding: 22px 22px 18px; border-radius: calc(16px * var(--radius-k, 1)); background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(15, 18, 50, .28); text-align: center; transform: translateY(8px) scale(.98); transition: transform .15s ease; }
.rf-alert-overlay.show .rf-alert-box { transform: none; }
.rf-alert-box.danger, .rf-alert-box.error { --tone: #d33a35; } .rf-alert-box.warning { --tone: #e0a21a; } .rf-alert-box.success { --tone: #15a06a; }
.rf-alert-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 50%; font-size: 22px; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.rf-alert-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--n-900); }
.rf-alert-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--n-700); overflow-wrap: anywhere; }
.rf-alert-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.rf-alert-btn { min-width: 96px; height: 36px; padding: 0 16px; border-radius: calc(10px * var(--radius-k, 1)); border: 1px solid transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rf-alert-btn.primary { background: var(--primary); color: var(--on-primary, #fff); } .rf-alert-btn.danger { background: #d33a35; color: #fff; }
.rf-alert-btn.ghost { background: #fff; border-color: var(--border); color: var(--n-900); }
.rf-alert-btn:focus-visible { outline: 2px solid var(--primary-bright, var(--primary)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rf-alert-overlay, .rf-alert-box { transition: none; } }

/* an inline alert whose bold first words are a title on their own line (use <b class="al-t"> inside the alert's <span>) */
.rf-alert > span > b.al-t { display: block; margin-bottom: 2px; }
