/* Notification center; engine IDs and notification actions remain intact. */
.n-notifications {
  position: relative; display: inline-flex; flex: 0 0 auto; align-items: center;
}
.n-notifications > .n-notification-toggle {
  position: relative; display: inline-flex; flex: 0 0 44px;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; padding: 0;
  color: var(--n-text, #ebede7); background: transparent;
  border: 1px solid var(--n-line, #353a36); border-radius: 50%;
  line-height: 1; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.n-notifications > .n-notification-toggle:hover,
.n-notifications > .n-notification-toggle[aria-expanded="true"] {
  color: var(--n-text, #ebede7); background: var(--n-surface-2, #242924);
  border-color: var(--n-accent, #d1ff55);
}
.n-notification-toggle svg, #n-notification-panel .n-notification-close svg, #n-notification-panel .n-notification-all svg {
  display: block; flex-shrink: 0;
}
.n-notification-count {
  position: absolute; top: -5px; right: -5px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  color: var(--n-accent-ink, #161b0a); background: var(--n-accent, #d1ff55);
  border: 2px solid var(--n-surface, #191d19); border-radius: 20px;
  font-size: 10px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
#n-notification-panel {
  position: fixed; z-index: 1040;
  top: var(--n-notification-top, 80px); left: var(--n-notification-left, auto);
  display: flex; flex-direction: column; width: 400px;
  max-width: calc(100vw - 24px);
  max-height: var(--n-notification-max-height, calc(100vh - 100px));
  margin: 0; padding: 0; overflow: hidden;
  color: var(--n-text, #ebede7); background: var(--n-surface, #191d19);
  border: 1px solid var(--n-line, #353a36); border-radius: 22px;
  box-shadow: var(--n-shadow, 0 22px 70px rgba(0, 0, 0, .24));
  text-align: left; font-family: inherit; line-height: 1.5; isolation: isolate;
}
#n-notification-panel[hidden], .n-notification-count[hidden],
#n-notification-panel .n-notification-hide-all[hidden], #n-notification-panel .n-notification-empty[hidden] {
  display: none !important;
}
#n-notification-panel *, #n-notification-panel *::before,
#n-notification-panel *::after { box-sizing: border-box; }
#n-notification-panel .n-notification-heading {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 18px 14px 22px;
}
#n-notification-panel .n-notification-eyebrow {
  display: block; margin-bottom: 4px; color: var(--n-muted, #a0a99e);
  font-size: 9px; font-weight: 700; letter-spacing: .16em; line-height: 1.4;
}
#n-notification-panel .n-notification-heading h2 {
  margin: 0; padding: 0; color: var(--n-text, #ebede7); border: 0;
  font-size: 22px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2;
}
#n-notification-panel .n-notification-close {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--n-muted, #a0a99e); background: transparent;
  border: 1px solid transparent; border-radius: 50%; cursor: pointer;
}
#n-notification-panel .n-notification-close:hover {
  color: var(--n-text, #ebede7); background: var(--n-surface-2, #242924);
}
#n-notification-panel .n-notification-tools {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; padding: 0 22px 8px;
  color: var(--n-muted, #a0a99e); border-bottom: 1px solid var(--n-line, #353a36);
  font-size: 12px;
}
#n-notification-panel .n-notification-hide-all {
  flex: 0 0 auto; min-height: 36px; margin: 0 -8px 0 0; padding: 6px 8px;
  color: var(--n-text, #ebede7); background: transparent;
  border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 600; line-height: 1.5; cursor: pointer;
}
#n-notification-panel .n-notification-hide-all:hover { background: var(--n-surface-2, #242924); }
#n-notification-panel .n-notification-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: var(--n-line, #353a36) transparent;
  -webkit-overflow-scrolling: touch;
}
#n-notification-panel .n-notification-stream {
  margin: 0; padding: 0 14px; background: transparent; border: 0; box-shadow: none;
}
#n-notification-panel .noty-block {
  position: relative; width: 100%; margin: 0; padding: 18px 40px 17px 8px;
  overflow-wrap: anywhere; color: var(--n-text, #ebede7) !important;
  background: transparent !important; border: 0;
  border-bottom: 1px solid var(--n-line, #353a36); border-radius: 0;
  box-shadow: none; font-size: 13px; line-height: 1.6;
}
#n-notification-panel .noty-block:last-child { border-bottom: 0; }
#n-notification-panel .noty-block * { color: inherit; }
#n-notification-panel .noty-block a {
  color: var(--n-text, #ebede7); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--n-line, #353a36);
  text-underline-offset: 3px;
}
#n-notification-panel .noty-block a:hover { text-decoration-color: currentColor; }
#n-notification-panel .noty-block > span:last-child {
  display: block; position: static; float: none; margin: 7px 0 0;
  color: var(--n-muted, #a0a99e); font-size: 11px; line-height: 1.5;
}
#n-notification-panel .noty-block > .n-notification-dismiss {
  position: absolute; top: 7px; right: -6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  color: var(--n-muted, #a0a99e); background: transparent;
  border: 0; border-radius: 50%; font-size: 13px; line-height: 1; cursor: pointer;
}
#n-notification-panel .noty-block > .n-notification-dismiss:hover {
  color: var(--n-text, #ebede7); background: var(--n-surface-2, #242924);
}
#n-notification-panel .n-notification-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; min-height: 205px; padding: 24px; text-align: center;
}
#n-notification-panel .n-notification-empty > svg { margin-bottom: 4px; color: var(--n-muted, #a0a99e); }
#n-notification-panel .n-notification-empty strong {
  color: var(--n-text, #ebede7); font-size: 15px; font-weight: 600;
}
#n-notification-panel .n-notification-empty p {
  max-width: 240px; margin: 0; color: var(--n-muted, #a0a99e);
  font-size: 13px; line-height: 1.6;
}
#n-notification-panel .n-notification-all {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 57px; padding: 14px 22px;
  color: var(--n-text, #ebede7); background: var(--n-surface-2, #242924);
  border-top: 1px solid var(--n-line, #353a36);
  font-size: 13px; font-weight: 600; text-decoration: none;
}
#n-notification-panel .n-notification-all:hover {
  color: var(--n-text, #ebede7); text-decoration: underline; text-underline-offset: 4px;
}
.n-notification-toggle:focus-visible, #n-notification-panel a:focus-visible,
#n-notification-panel button:focus-visible, .n-notification-dismiss:focus-visible {
  outline: 2px solid var(--n-accent, #d1ff55); outline-offset: 3px;
}
#n-notification-panel:focus { outline: none; }
@media (max-width: 575.98px) {
  #n-notification-panel { width: calc(100vw - 24px); border-radius: 20px; }
  #n-notification-panel .n-notification-heading { padding-top: 16px; }
  #n-notification-panel .n-notification-hide-all { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .n-notifications > .n-notification-toggle { transition: none; }
}

/* Keep Standard's native <i> callback while drawing its close icon locally. */
.n-notification-dismiss::before { content: none !important; }
.n-notification-dismiss > svg { display: block; pointer-events: none; }
[data-n-friend-requests-count][hidden], [data-n-unread-dialogs-count][hidden] { display: none !important; }
