﻿/* ── TOAST ── */
#_toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    width: calc(100vw - 32px);
    pointer-events: none;
}

._toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border-left: 3.5px solid transparent;
    box-shadow: 0 4px 18px rgba(0,0,0,.13);
    animation: _tIn .28s cubic-bezier(.22,1,.36,1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    background: var(--surface, #fff);
}

    ._toast.removing {
        animation: _tOut .22s ease forwards;
    }

@keyframes _tIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(.95)
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1)
    }
}

@keyframes _tOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 120px
    }

    to {
        opacity: 0;
        transform: translateX(50px);
        max-height: 0;
        padding: 0;
        margin: 0
    }
}

._ti {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

._tb {
    flex: 1;
    min-width: 0;
}

._tt {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

._tm {
    font-size: 12px;
    color: var(--text-2,#6b7280);
    line-height: 1.45;
}

._tx {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-3,#9ca3af);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s;
}

    ._tx:hover {
        color: var(--text,#111827);
    }

._tp {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 2px 2px 0;
    animation: _shrink linear forwards;
}

@keyframes _shrink {
    from {
        width: 100%
    }

    to {
        width: 0%
    }
}

._toast.t-success {
    border-color: #2e7d32;
}

    ._toast.t-success ._ti {
        background: #e8f5e9;
        color: #2e7d32;
    }

    ._toast.t-success ._tt {
        color: #1b5e20;
    }

    ._toast.t-success ._tp {
        background: #2e7d32;
    }

._toast.t-danger {
    border-color: #c62828;
}

    ._toast.t-danger ._ti {
        background: #ffebee;
        color: #c62828;
    }

    ._toast.t-danger ._tt {
        color: #b71c1c;
    }

    ._toast.t-danger ._tp {
        background: #c62828;
    }

._toast.t-warning {
    border-color: #e65100;
}

    ._toast.t-warning ._ti {
        background: #fff3e0;
        color: #e65100;
    }

    ._toast.t-warning ._tt {
        color: #bf360c;
    }

    ._toast.t-warning ._tp {
        background: #e65100;
    }

._toast.t-info {
    border-color: #0277bd;
}

    ._toast.t-info ._ti {
        background: #e3f2fd;
        color: #0277bd;
    }

    ._toast.t-info ._tt {
        color: #01579b;
    }

    ._toast.t-info ._tp {
        background: #0277bd;
    }

._toast.t-dark {
    border-color: #4b5563;
    background: #1e2535;
}

    ._toast.t-dark ._ti {
        background: #2d3148;
        color: #9ca3af;
    }

    ._toast.t-dark ._tt {
        color: #f3f4f6;
    }

    ._toast.t-dark ._tm {
        color: #9ca3af;
    }

    ._toast.t-dark ._tp {
        background: #4b5563;
    }

    ._toast.t-dark ._tx {
        color: #6b7280;
    }

        ._toast.t-dark ._tx:hover {
            color: #f3f4f6;
        }

/* Responsive */
@media(max-width:900px) {
    div[style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
