/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(31, 41, 55, 0.85);
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: slideInRight 200ms ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 22.5rem;
}

.toast--undo {
    cursor: pointer;
    background: rgba(79, 70, 229, 0.85);
}

.toast--undo:hover {
    background: rgba(67, 56, 202, 0.9);
}

/* ===== H5: full-width toasts at bottom ===== */
@media (max-width: 640px) {
    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        align-items: stretch;
    }

    .toast {
        max-width: none;
        width: 100%;
        justify-content: center;
        text-align: center;
        animation: slideUp 200ms ease;
    }
}
