/* Toasts: server flash messages (base.html, render-blocking when present) and JS toasts (non-blocking). Split from app.css. */
/* Flash messages as toasts (owner: green full-width band appeared in unrelated places, 2026-11-10) */
.toasts{position:fixed;z-index:60;right:20px;bottom:20px;display:grid;gap:10px;max-width:min(420px,calc(100vw - 32px))}
@media (max-width:600px){.toasts{left:16px;right:16px;bottom:16px;max-width:none}}
.toast{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 14px 16px;border-radius:12px;background:var(--surf);color:var(--ink);
  border:1px solid var(--line);border-left:4px solid #173F84;box-shadow:0 12px 32px rgba(11,21,48,.18),0 2px 6px rgba(11,21,48,.08);
  font-size:15px;line-height:1.45;animation:toast-in .22s ease-out}
.toast-err{border-left-color:var(--err)}
.toast-ico{flex:0 0 22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff;background:#173F84;margin-top:1px}
.toast-err .toast-ico{background:var(--err)}
.toast-txt{flex:1}
.toast-x{flex:0 0 auto;border:0;background:transparent;color:var(--muted,#5b6578);font-size:20px;line-height:1;cursor:pointer;padding:0 4px;min-width:32px;min-height:32px}
.toast.is-hiding{opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.toast{animation:none}.toast.is-hiding{transition:none}}
:root[data-theme="dark"] .toast-ico:not(.toast-err .toast-ico){background:#4C7FD0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .toast-ok .toast-ico{background:#4C7FD0}}
