/* CHW Topic Icons 1.0.2 — small pastel icons, no flashing or animated GIFs. */
html body .chw-ti {
    --ti-read:#667788; --ti-new:#27668b; --ti-flame:#91602d; --ti-inner:#b17e41;
    display:inline-flex !important; position:relative; align-items:center; justify-content:center;
    width:22px !important; height:24px !important; vertical-align:middle;
    background:none !important; border:0 !important; line-height:1;
}
html body .chw-ti[data-dark="true"] {
    --ti-read:#a9b8c6; --ti-new:#a9d8ff; --ti-flame:#ebc39d; --ti-inner:#f2dfc8;
}
html body .chw-ti > svg {
    display:block; width:21px; height:23px; overflow:visible;
    color:var(--ti-read) !important; fill:none; stroke:currentColor; stroke-width:1.65;
    stroke-linecap:round; stroke-linejoin:round;
}
html body .chw-ti.chw-ti-unread > svg { color:var(--ti-new) !important; }
html body .chw-ti-chat.chw-ti-unread .chw-ti-bubble { fill:currentColor; stroke:none; }
html body .chw-ti .chw-ti-fire { fill:var(--ti-flame); stroke:none; transform-box:fill-box; transform-origin:center bottom; }
html body .chw-ti .chw-ti-ember { fill:var(--ti-inner); stroke:none; }
html body .chw-ti-flame.chw-ti-unread::after {
    content:""; position:absolute; top:0; right:-2px; width:5px; height:5px;
    border-radius:50%; background:var(--ti-new);
}
/* Three coordinated effects, all gated by the same ten-second JS window. */
html body .chw-ti .chw-ti-sparks { display:none; }
html body .chw-ti .chw-ti-spark { fill:var(--ti-flame); stroke:none; opacity:0; }
html body .chw-ti-active .chw-ti-sparks { display:block; }
html body .chw-ti-active .chw-ti-fire {
    animation:chw-ti-dance 1.65s ease-in-out infinite !important;
    animation-play-state:paused !important;
    filter:drop-shadow(0 0 2px rgba(198,139,72,.32));
}
html body .chw-ti-active[data-dark="true"] .chw-ti-fire {
    filter:drop-shadow(0 0 3px rgba(235,195,157,.42));
}
html body .chw-ti-active .chw-ti-ember {
    transform-box:fill-box; transform-origin:center bottom;
    animation:chw-ti-core 1.2s ease-in-out infinite !important;
    animation-play-state:paused !important;
}
html body .chw-ti-active .chw-ti-spark {
    animation:chw-ti-rise 1.8s ease-out infinite !important;
    animation-play-state:paused !important;
}
html body .chw-ti-active .chw-ti-spark-b { animation-delay:-.9s !important; }
html:not(.chw-ti-hidden) body .chw-ti-active.chw-ti-visible :is(.chw-ti-fire,.chw-ti-ember,.chw-ti-spark) {
    animation-play-state:running !important;
}
@keyframes chw-ti-dance {
    0%,100% { transform:rotate(-5deg) scale(1.04,.94); }
    30% { transform:translateY(-1px) rotate(4deg) scale(.92,1.17); }
    65% { transform:rotate(-2deg) scale(1.06,1.02); }
}
@keyframes chw-ti-core {
    0%,100% { transform:scale(.9,.94); }
    50% { transform:scale(1.08,1.16); }
}
@keyframes chw-ti-rise {
    0% { transform:translate(0,0) scale(.65); opacity:0; }
    20% { opacity:.7; }
    100% { transform:translate(-1px,-12px) scale(.3); opacity:0; }
}
@media (prefers-reduced-motion:reduce) {
    html body .chw-ti-active :is(.chw-ti-fire,.chw-ti-ember,.chw-ti-spark) {
        animation:none !important; transform:none !important; filter:none !important;
    }
    html body .chw-ti-active .chw-ti-sparks { display:none !important; }
}
