/* One floating notice, centered within the visible viewport (including the keyboard). */
#fluxo-toast-region {
    position: fixed; top: var(--fluxo-toast-center, 50%); left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%); width: min(360px, calc(100% - 40px));
    z-index: 120000; display: block; pointer-events: none;
}
#fluxo-toast-region .fluxo-toast {
    --notice-ink: #a91b3e; --notice-tint: #fff0f4; --notice-line: #f5ced9;
    display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%;
    padding: 16px 10px 16px 18px; border: 1px solid var(--notice-line); border-radius: 24px;
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); color: #402b34; pointer-events: auto;
    box-shadow: 0 18px 54px #48203224, 0 4px 12px #4820320f;
    animation: fluxo-toast-enter .32s cubic-bezier(.22,1,.36,1) both, fluxo-toast-float 2.8s .32s ease-in-out infinite;
}
#fluxo-toast-region .fluxo-toast-success { --notice-ink: #176747; --notice-tint: #eaf8ef; --notice-line: #ccebd8; }
#fluxo-toast-region .fluxo-toast-warning { --notice-ink: #8a5606; --notice-tint: #fff6df; --notice-line: #f0ddb1; }
#fluxo-toast-region .fluxo-toast-info { --notice-ink: #285caf; --notice-tint: #edf4ff; --notice-line: #d6e4fa; }
#fluxo-toast-region .fluxo-toast-icon {
    display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%;
    background: var(--notice-tint); color: var(--notice-ink); font: 750 20px/1 system-ui;
}
#fluxo-toast-region .fluxo-toast-message { margin: 0; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; }
#fluxo-toast-region .fluxo-toast-close {
    display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; border: 0;
    background: transparent; border-radius: 50%; color: #8a737d; font: 400 24px/1 system-ui; cursor: pointer;
}
#fluxo-toast-region .fluxo-toast-close:hover { background: var(--notice-tint); color: var(--notice-ink); }
#fluxo-toast-region .fluxo-toast-close:focus-visible { outline: 2px solid var(--notice-ink); outline-offset: 1px; }
#fluxo-toast-region .fluxo-toast.fluxo-toast-leaving { animation: fluxo-toast-leave .24s ease forwards; pointer-events: none; }
@keyframes fluxo-toast-enter { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fluxo-toast-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fluxo-toast-leave { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
    #fluxo-toast-region .fluxo-toast { animation: none; }
    #fluxo-toast-region .fluxo-toast.fluxo-toast-leaving { animation: none; opacity: 0; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #fluxo-toast-region .fluxo-toast { background: rgba(255,255,255,.97); } }
@media (prefers-reduced-transparency: reduce) { #fluxo-toast-region .fluxo-toast { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
