.in-app-notif-host {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1300;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.in-app-notif-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    animation: in-app-notif-in 0.22s ease-out;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.in-app-notif-toast:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--acc) 45%, var(--brd));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}

.in-app-notif-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--acc), #6b47ff);
    font-size: 16px;
}

.in-app-notif-content {
    flex: 1;
    min-width: 0;
}

.in-app-notif-title {
    font-family: var(--fd), sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--t1);
    margin-bottom: 2px;
}

.in-app-notif-text {
    font-size: 13px;
    line-height: 1.35;
    color: var(--t2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.in-app-notif-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--t3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.in-app-notif-close:hover {
    background: var(--bg3);
    color: var(--t1);
}

@keyframes in-app-notif-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
