.header nav a:has(>.chat-nav-dot),.limi-mobile-menu{position:relative}
.chat-nav-dot,.has-chat-unread .limi-mobile-menu::after{
 position:absolute;inset-block-start:0;inset-inline-end:-8px;display:block;width:8px;height:8px;
 border-radius:50%;background:var(--blue-strong);box-shadow:0 0 0 2px var(--bg);pointer-events:none
}
.chat-nav-dot[hidden]{display:none}
.limi-mobile-links .chat-nav-dot{inset-block-start:50%;inset-inline-end:14px;transform:translateY(-50%)}
.has-chat-unread .limi-mobile-menu::after{content:"";inset-block-start:5px;inset-inline-end:5px}
.has-new-chat-message .chat-nav-dot,.has-new-chat-message .limi-mobile-menu::after{animation:chat-dot-pulse .85s ease-out 3}
@keyframes chat-dot-pulse{0%,100%{box-shadow:0 0 0 2px var(--bg)}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--blue-strong) 35%,transparent)}}
.chat-notifications{
 position:fixed;z-index:30;inset-inline-end:clamp(12px,2.2vw,38px);top:12px;
 width:min(332px,calc(100% - 24px));display:grid;gap:8px;pointer-events:none
}
.chat-notification{
 display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:start;gap:4px;
 padding:4px 5px 4px 7px;background:var(--surface2);color:var(--text);border:1px solid var(--line);
 border-inline-start:3px solid var(--blue-strong);border-radius:12px;box-shadow:0 9px 28px var(--shadow);
 pointer-events:auto;animation:chat-notification-in .19s ease-out
}
.chat-notification a{display:grid;gap:4px;min-width:0;padding:8px 7px;border-radius:7px}
.chat-notification strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.chat-notification a span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;color:var(--muted);font-size:.875rem;line-height:1.3}
.chat-notification button{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;color:var(--muted);font-size:1.25rem;line-height:1}
.chat-notification :is(a,button):hover{background:var(--surface)}
.chat-notification :is(a,button):focus-visible{outline:2px solid var(--blue-strong);outline-offset:-2px}
@keyframes chat-notification-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
 .has-new-chat-message .chat-nav-dot,.has-new-chat-message .limi-mobile-menu::after,.chat-notification{animation:none}
}
