.ripple-host {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.ripple-host .ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--ripple-color, currentColor);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mm-item,
.nav-dropdown-item,
.nav-dropdown-trigger,
.dropdown-item,
.ai-quick-btn,
.comment-react-btn,
.action-btn.active {
    --ripple-color: var(--primary);
}

@media (prefers-color-scheme: dark) {
    .mm-item,
    .nav-dropdown-item,
    .nav-dropdown-trigger,
    .dropdown-item,
    .ai-quick-btn,
    .comment-react-btn,
    .action-btn.active {
        --ripple-color: #4DABF7;
    }
}

html.dark-mode .mm-item,
html.dark-mode .nav-dropdown-item,
html.dark-mode .nav-dropdown-trigger,
html.dark-mode .dropdown-item,
html.dark-mode .ai-quick-btn,
html.dark-mode .comment-react-btn,
html.dark-mode .action-btn.active {
    --ripple-color: #4DABF7;
}

.btn.anim-press,
.btn-sm.anim-press,
.action-btn.anim-press {
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s;
}

.btn.anim-press:active,
.btn-sm.anim-press,
.action-btn.anim-press:active {
    transform: scale(0.96);
}

.mat-fab {
    animation: fabIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fabIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .mat-fab { animation: none; }
}

.msg-row, .reaction-picker, .pz-wrap,
input, textarea, select, video,
.no-ripple {
    pointer-events: auto;
}