.toast-area {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-toast {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--rl);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 280px;
    max-width: 360px;
    pointer-events: all;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.3s ease;
    opacity: 1;
    transition:
        opacity 0.3s,
        transform 0.3s;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-toast.hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.app-toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    flex-shrink: 0;
}

.app-toast-body {
    flex: 1;
    min-width: 0;
}
.app-toast-title {
    font-size: 11.7px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 2px;
}
.app-toast-msg {
    font-size: 11px;
    color: var(--c-muted);
    line-height: 1.4;
}

.app-toast-close {
    color: var(--c-muted);
    font-size: 12.6px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px;
    background: none;
    border: none;
}

.app-toast-close:hover {
    color: var(--c-text);
}

.app-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--c-accent);
    border-radius: 0 0 0 var(--rl);
    animation: shrink 4s linear forwards;
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}
