.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;

    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(380px, calc(100vw - 32px));

    pointer-events: none;
}


.app-toast {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: start;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18);

    opacity: 0;
    transform: translateY(-10px) scale(0.98);

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;

    pointer-events: auto;
}


.app-toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.app-toast-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}


.app-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    font-weight: 800;
}


.app-toast-success .app-toast-icon {
    background: rgba(34, 197, 94, 0.14);
    color: var(--success);
}


.app-toast-info .app-toast-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #3b82f6;
}


.app-toast-warning .app-toast-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}


.app-toast-error .app-toast-icon {
    background: rgba(239, 68, 68, 0.14);
    color: var(--danger);
}


.app-toast-body {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}


.app-toast-title {
    font-size: 14px;
}


.app-toast-message {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}


.app-toast-close {
    padding: 0;

    border: none;
    background: transparent;

    color: var(--text-muted);

    font-size: 20px;

    cursor: pointer;
}


@media (max-width: 640px) {
    .toast-container {
        top: 14px;
        right: 16px;
        left: 16px;

        width: auto;
    }
}