.notification-menu { position: relative; flex: 0 0 auto; }
.notification-bell { position: relative; width: 36px; height: 36px; }
.notification-bell svg { width: 20px; height: 20px; }
.notification-count { position: absolute; top: -3px; right: -4px; min-width: 18px; padding: 1px 4px; border-radius: 8px; background: var(--danger, #d74c4c); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.notification-inbox { position: absolute; right: 0; top: 44px; width: 380px; max-width: calc(100vw - 24px); max-height: min(620px, calc(100dvh - 90px)); overflow-y: auto; background: var(--surface, #202020); color: var(--text); border: 1px solid var(--border, #444); border-radius: 8px; box-shadow: 0 12px 32px #0005; z-index: 70; }
.notification-inbox header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; background: var(--surface, #202020); border-bottom: 1px solid var(--border, #444); }
.notification-inbox h2 { margin: 0; font-size: 15px; }
.notification-inbox [role="status"] { padding: 12px; margin: 0; font-size: 13px; }
.notification-item { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border, #444); }
.notification-item.is-unread { border-left: 3px solid var(--accent, #d74c4c); padding-left: 9px; }
.notification-item a { color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.notification-item strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 18px; }
.notification-item time { font-size: 11px; color: var(--text-muted, #999); }
.notification-item .icon-button { width: 28px; height: 28px; }
.notification-item svg { width: 16px; height: 16px; }
.notification-more { width: 100%; }
.notification-detail { width: 560px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 48px); box-sizing: border-box; padding: 20px; overflow-y: auto; background: var(--surface, #202020); color: var(--text); border: 1px solid var(--border, #444); border-radius: 8px; }
.notification-detail::backdrop { background: #0008; }
.notification-detail header { display: flex; align-items: flex-start; gap: 12px; }
.notification-detail h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.notification-detail .icon-button { flex: 0 0 28px; width: 28px; height: 28px; font-size: 24px; }
.notification-detail time { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted, #999); }
.notification-detail-body { margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.notification-detail footer { border-top: 1px solid var(--border, #444); padding-top: 12px; }
.notification-inbox [hidden], .notification-menu [hidden] { display: none; }
@media (max-width: 600px) { .notification-inbox { position: fixed; top: 60px; right: 12px; } }
