/* DoReach toasts + confirm dialog (static/js/alerts.js). One look for every action message. */
.nm-toasts{position:fixed;top:16px;right:16px;z-index:10050;display:flex;flex-direction:column;gap:10px;width:380px;max-width:calc(100vw - 24px);pointer-events:none;font-family:inherit}
.nm-toast{pointer-events:auto;position:relative;overflow:hidden;box-sizing:border-box;display:flex;gap:12px;align-items:flex-start;padding:14px 12px 16px 14px;background:#fff;color:#1C1917;border:1px solid #E7E2DB;border-radius:12px;box-shadow:0 10px 28px rgba(28,25,23,.14),0 2px 6px rgba(28,25,23,.06);font-size:14px;line-height:1.4;animation:nm-toast-in .18s ease-out}
.nm-toast.is-leaving{opacity:0;transform:translateY(-6px);transition:opacity .18s,transform .18s}
.nm-toast-icon{width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nm-toast-success .nm-toast-icon{background:#DCFCE7;color:#15803D}
.nm-toast-danger .nm-toast-icon{background:#FEE2E2;color:#B91C1C}
.nm-toast-warning .nm-toast-icon{background:#FEF3C7;color:#B45309}
.nm-toast-info .nm-toast-icon{background:#DBEAFE;color:#1D4ED8}
.nm-toast-loading .nm-toast-icon{background:transparent}
.nm-toast-spin{width:18px;height:18px;border-radius:999px;border:2.5px solid #FED7AA;border-top-color:#C2410C;animation:nm-toast-spin .8s linear infinite}
.nm-toast-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:4px}
.nm-toast-title{font-size:14px;font-weight:600;color:#1C1917;word-break:break-word}
.nm-toast-text{font-size:13px;color:#57534E;line-height:1.45;word-break:break-word}
.nm-toast-actions{margin-top:6px}
.nm-toast-action{border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:600;color:#C2410C;cursor:pointer;text-decoration:none}
.nm-toast-action:hover{color:#9A3412}
.nm-toast-close{width:32px;height:32px;margin:-2px -2px 0 0;border:0;border-radius:8px;background:transparent;color:#78716C;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;padding:0}
.nm-toast-close:hover{background:#F5F5F4;color:#1C1917}
.nm-toast-close:focus-visible,.nm-toast-action:focus-visible{outline:2px solid #C2410C;outline-offset:2px}
.nm-toast-track{position:absolute;left:0;right:0;bottom:0;height:3px;background:#F1EFEC}
.nm-toast-bar{display:block;height:100%;transform-origin:left}
.nm-toast-success .nm-toast-bar{background:#16A34A}
.nm-toast-warning .nm-toast-bar{background:#D97706}
.nm-toast-info .nm-toast-bar{background:#2563EB}
.nm-toast-danger .nm-toast-track,.nm-toast-loading .nm-toast-track{display:none}
.nm-toast.is-paused .nm-toast-bar{animation-play-state:paused !important}
@keyframes nm-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes nm-toast-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes nm-toast-spin{to{transform:rotate(360deg)}}
@media (max-width:600px){.nm-toasts{top:12px;left:12px;right:12px;width:auto;max-width:none}}
@media (prefers-reduced-motion:reduce){.nm-toast{animation:none}.nm-toast-spin{animation-duration:2s}}

.nm-confirm{width:min(440px,calc(100vw - 32px));box-sizing:border-box;border:0;border-radius:16px;padding:24px;background:#fff;color:#1C1917;box-shadow:0 24px 60px rgba(28,25,23,.28);font-family:inherit}
.nm-confirm::backdrop{background:rgba(28,25,23,.42)}
.nm-confirm-head{display:flex;gap:14px;align-items:flex-start}
.nm-confirm-icon{width:40px;height:40px;border-radius:999px;background:#DBEAFE;color:#1D4ED8;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nm-confirm.is-danger .nm-confirm-icon{background:#FEE2E2;color:#B91C1C}
.nm-confirm h2{margin:2px 0 6px;font-size:18px;font-weight:600;line-height:1.3}
.nm-confirm p{margin:0;font-size:14px;color:#57534E;line-height:1.5}
.nm-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;flex-wrap:wrap}
.nm-confirm-actions button{height:44px;padding:0 18px;border-radius:10px;font:inherit;font-size:14px;cursor:pointer}
.nm-confirm-cancel{border:1px solid #D6D0C8;background:#fff;color:#1C1917;font-weight:500}
.nm-confirm-cancel:hover{background:#F7F5F2}
.nm-confirm-ok{border:0;background:#C2410C;color:#fff;font-weight:600}
.nm-confirm-ok:hover{background:#9A3412}
.nm-confirm.is-danger .nm-confirm-ok{background:#B91C1C}
.nm-confirm.is-danger .nm-confirm-ok:hover{background:#991B1B}
.nm-confirm-actions button:focus-visible{outline:2px solid #C2410C;outline-offset:2px}

/* App-wide layout fix, kept here because every base layout loads this file.
   The layouts scroll .container, not the window. Screen-reader-only text is
   position:absolute, and with no positioned ancestor it was placed against
   the whole document and stretched it: the window got a second scrollbar
   that slid the page up and left a blank band. Fixed elements never add
   scroll height, and stay invisible and readable by screen readers. */
.sr-only, .visually-hidden, .ae-sr { position: fixed !important; top: 0 !important; left: 0 !important; }
.visually-hidden-focusable:not(:focus):not(:focus-within), .sr-only-focusable:not(:focus):not(:focus-within) { position: fixed !important; top: 0 !important; left: 0 !important; }
/* Deleted: red accents and a bin, unlike a save's green tick; it fades like one. */
.nm-toast-deleted .nm-toast-icon{background:#FFE4E6;color:#BE123C}
.nm-toast-deleted .nm-toast-bar{background:#E11D48}
