#toast {
    position: fixed;
    top: calc(70px + 1rem);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    pointer-events: none;
    z-index: 2000;
    padding: 0 1rem;
    box-sizing: border-box;
}

.toast-ok,
.toast-error {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--text-white);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-20px);
    max-width: 640px;
    width: 100%;
    text-align: center;
    animation: toast-slide-in 0.3s ease-out forwards, toast-fade-out 0.45s ease-in forwards;
    animation-delay: 0s, 4.75s;

    width: auto;
    /* Toast grows only as wide as the text */
    max-width: 90vw;
    /* Prevents it from going outside the screen */

}

.toast-ok {
    background-color: #0f9d58;
}

.toast-error {
    background-color: #d93025;
}

#mix-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 0.3rem;
    background-color: rgb(6, 182, 212);
    z-index: 20;
}

.mix-hidden {
    display: none !important;
}

.mix-in {
    display: none;
    opacity: 0;
}

.mix-error {
    background-color: rgba(230, 130, 130, 0.5);
}

@keyframes toast-slide-in {
    from {
        transform: translateY(-35px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-fade-out {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 480px) {
    #toast {
        top: calc(60px + 0.75rem);
    }

    .toast-ok,
    .toast-error {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        max-width: 640px;

        width: auto;          /* Keep auto width on mobile */
        max-width: 90vw;      /* Keep safe screen limit */
    }

}