.toast-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 3000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 18px 42px rgba(16, 43, 90, 0.18);
    font-weight: 700;
    line-height: 1.5;
    pointer-events: auto;
    animation: toastIn 0.22s ease-out both;
}

.app-toast.is-hiding {
    animation: toastOut 0.2s ease-in both;
}

.toast-success {
    background: #0f8a5f;
}

.toast-error,
.toast-danger {
    background: #c92a32;
}

.toast-warning {
    background: #c47a12;
}

.toast-info {
    background: #2563b8;
}

.toast-close {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (max-width: 575.98px) {
    .toast-stack {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}
