.activity-log-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #8a4fff 0%, #6200ea 100%));
    color: #fff;
    box-shadow: 0 10px 30px rgba(98, 0, 234, 0.35);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-log-fab:hover,
.activity-log-fab:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(98, 0, 234, 0.4);
}

.activity-log-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3d71;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.activity-log-fab.has-unread .activity-log-fab-badge {
    display: flex;
}

.activity-log-fab.has-unread {
    animation: activityLogFabPulse 2s ease-in-out infinite;
}

@keyframes activityLogFabPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(98, 0, 234, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(98, 0, 234, 0.18), 0 10px 30px rgba(98, 0, 234, 0.35);
    }
}

.activity-log-toast {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 10050;
    width: min(320px, calc(100vw - 32px));
    padding: 12px 36px 12px 14px;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.18);
    border: 2px solid #6200ea;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.activity-log-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.activity-log-toast-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.activity-log-toast-title {
    font-size: 0.9rem;
    line-height: 1.3;
}

.activity-log-toast-body {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #5c5c75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-log-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #8a8aa3;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.activity-log-toast-close:hover {
    color: #1a1a2e;
}

@media (max-width: 576px) {
    .activity-log-fab {
        right: 16px;
        bottom: 20px;
    }

    .activity-log-toast {
        right: 16px;
        bottom: 84px;
    }
}
