.message-notifications{position:fixed;top:calc(18px + env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));z-index:140;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}
.message-notification{position:relative;display:flex;align-items:flex-start;background:var(--bg-color);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #0002;pointer-events:auto;min-width:0}
.message-notification-link{display:flex;gap:12px;align-items:flex-start;min-width:0;flex:1;padding:18px 48px 18px 18px;text-decoration:none;border-radius:14px}
.notification-avatar{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--text);font-size:14px;font-weight:600}
.notification-copy{min-width:0;display:grid;gap:4px;font-size:14px}.notification-copy strong{overflow-wrap:anywhere;line-height:1.45}.notification-label{font-size:12px;color:var(--muted)}
.notification-preview{line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notification-close{position:absolute;top:8px;right:5px}.notification-close svg{width:17px;height:17px}
.notification-option{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:4px}.notification-option label{display:flex;gap:12px;align-items:flex-start;cursor:pointer;min-height:44px}.notification-option input{width:20px;height:20px;margin:3px 0 0;flex:none;accent-color:var(--accent)}
.notification-option span{display:grid;gap:5px;min-width:0}.notification-option strong{font-size:14px;font-weight:600}.notification-option small{font-size:13px;color:var(--muted);line-height:1.6}.notification-option input:disabled+span{opacity:.7}.notification-settings>#notificationTest{margin-top:14px}.notification-system-actions{margin-top:18px;flex-wrap:wrap}.notification-settings>#notificationStatus{min-height:22px;margin-top:16px}
@media(max-width:700px){.message-notifications{top:calc(80px + env(safe-area-inset-top));left:12px;right:12px;width:auto}.message-notification-link{padding:16px 46px 16px 14px;gap:10px}.notification-copy{font-size:14px}.notification-option strong{font-size:15px}.notification-option input{min-width:20px;min-height:20px}.notification-settings .actions .button{width:100%}body[data-social-view="messages"]:has(.dm-thread-open) .message-notifications{top:calc(10px + env(safe-area-inset-top))}}
@media(prefers-reduced-motion:no-preference){.message-notification{animation:notification-enter .2s ease-out}@keyframes notification-enter{from{transform:translateY(-6px);opacity:.5}to{transform:none;opacity:1}}}

/* Bell: community events in the site header. */
.site-header{position:relative}
.bell-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);cursor:pointer}
.bell-button svg{width:22px;height:22px}
.bell-button:hover{background:var(--accent-soft);color:var(--accent)}
.bell-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:9px;background:var(--danger,#c0392b);color:#fff;font-size:11px;font-weight:600;line-height:1}
.bell-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:60;width:min(360px,calc(100vw - 24px));max-height:min(72vh,560px);display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(var(--surface),var(--surface)),var(--bg-color,#fffdf9);box-shadow:0 16px 50px #00000033;box-sizing:border-box}
.bell-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bell-head strong{font-size:15px}
.bell-close{width:34px;min-width:34px;height:34px;min-height:34px}
.bell-close svg{width:18px;height:18px}
.bell-list{display:grid;gap:6px;overflow-y:auto}
.bell-item{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--text)}
.bell-item:hover{background:var(--accent-soft)}
.bell-item-label{grid-column:1;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.bell-item strong{grid-column:1;font-size:13px}
.bell-item-text{grid-column:1;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.bell-item time{grid-column:2;grid-row:1;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.bell-more{align-self:center;font-size:12px}
.bell-empty{margin:8px 0 0}
@media (max-width:640px){.bell-panel{position:fixed;top:calc(env(safe-area-inset-top,0px) + 8px);left:10px;right:10px;width:auto;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 90px)}}

.bell-panel[hidden],.bell-count[hidden],.bell-more[hidden],.bell-empty[hidden]{display:none!important}
