.toast {
    visibility: hidden;
    min-width: 260px;
    max-width: min(90vw, 24rem);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    text-align: center;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
    border: 1px solid var(--color-border-strong);
    font-weight: 500;
}

.toast.is-visible {
    visibility: visible;
    animation: toast-in 0.4s ease, toast-out 0.4s ease 2.6s forwards;
}

@keyframes toast-in {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 2rem;
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        bottom: 2rem;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast.is-visible {
        animation: none;
        visibility: visible;
    }
}
