/* Toasts et boîte de confirmation (cf. js/ui-feedback.js) — autonomes, admin et front. */
.cml-toasts { position: fixed; top: 16px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.cml-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 8px 11px 14px; background: #fff; color: #23232b; border: 1px solid #e4e4ea; border-left-width: 4px; border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 20, 40, .16); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s; }
.cml-toast.in { opacity: 1; transform: none; }
.cml-toast-icon { flex: none; margin-top: 1px; line-height: 0; }
.cml-toast-body { flex: 1; min-width: 0; word-break: break-word; text-align: left; }
.cml-toast-body ul { margin: 0; padding-left: 18px; }
.cml-toast-close { flex: none; border: 0; background: none; color: #8a8a96; font-size: 20px; line-height: 1; padding: 0 6px; cursor: pointer; }
.cml-toast-close:hover { color: #23232b; }
.cml-toast-success { border-left-color: #1b7a3d; } .cml-toast-success .cml-toast-icon { color: #1b7a3d; }
.cml-toast-info    { border-left-color: #2563eb; } .cml-toast-info .cml-toast-icon    { color: #2563eb; }
.cml-toast-warning { border-left-color: #d97706; } .cml-toast-warning .cml-toast-icon { color: #d97706; }
.cml-toast-error   { border-left-color: #c0392b; } .cml-toast-error .cml-toast-icon   { color: #c0392b; }

.cml-dialog-overlay { position: fixed; inset: 0; z-index: 3100; background: rgba(20, 20, 30, .45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .15s; }
.cml-dialog-overlay.in { opacity: 1; }
.cml-dialog { background: #fff; color: #23232b; width: 420px; max-width: 100%; border-radius: 14px; padding: 20px 22px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: left; transform: scale(.97); transition: transform .15s; }
.cml-dialog-overlay.in .cml-dialog { transform: none; }
.cml-dialog-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cml-dialog-message { white-space: pre-line; color: #4a4a55; }
.cml-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.cml-btn { border: 1px solid #d5d5dd; background: #fff; color: #23232b; padding: 7px 16px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; }
.cml-btn:hover { background: #f4f4f7; }
.cml-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.cml-btn-ok { background: #c44a39; border-color: #c44a39; color: #fff; }
.cml-btn-ok:hover { background: #ad3f30; }
.cml-dialog-danger .cml-btn-ok { background: #c0392b; border-color: #c0392b; }
.cml-dialog-danger .cml-btn-ok:hover { background: #a5311f; }
