/* Reply notifications: header bell, red count and the list panel. */
.ssn-bell {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px;
  margin-right: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text, #f4f7f8);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ssn-bell:hover { background: rgba(127, 127, 127, .14); }
.ssn-bell:focus-visible { outline: 2px solid #43b9a8; outline-offset: 2px; }
.ssn-bell svg { width: 21px; height: 21px; }
.ssn-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; background: #e5383b; color: #fff; font: 600 11px/18px var(--font, system-ui, sans-serif);
  text-align: center; box-shadow: 0 0 0 2px var(--badge-ring, #05070b); pointer-events: none;
}
.ssn-count[hidden] { display: none; }
html[data-theme="light"] .ssn-count { --badge-ring: #f6f3ee; }

.ssn-panel {
  position: fixed; z-index: 1200; max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: #0f171c; color: #f4f7f8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45); font-family: var(--font, system-ui, sans-serif);
}
html[data-theme="light"] .ssn-panel { background: #fbfaf7; color: #14110e; border-color: rgba(20, 17, 14, .14); box-shadow: 0 18px 48px rgba(20, 17, 14, .18); }
.ssn-head { padding: 14px 16px 10px; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(127, 127, 127, .2); }
.ssn-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; overscroll-behavior: contain; }
.ssn-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 11px 16px; color: inherit; text-decoration: none;
  position: relative;
}
.ssn-item:hover, .ssn-item:focus-visible { background: rgba(127, 127, 127, .12); outline: none; }
.ssn-item.unread::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #43b9a8; }
.ssn-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: hsl(var(--ssn-hue, 205) 42% 38%); color: #fff; font-weight: 600; font-size: 15px; line-height: 1;
}
.ssn-avatar.photo { background: rgba(127, 127, 127, .2); }
.ssn-avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssn-body { min-width: 0; display: grid; gap: 3px; }
.ssn-line { font-size: 13px; line-height: 1.4; opacity: .9; }
.ssn-line b { font-weight: 600; opacity: 1; }
.ssn-film { opacity: .75; }
.ssn-excerpt { font-size: 13px; line-height: 1.45; opacity: .72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ssn-empty { padding: 22px 18px; margin: 0; font-size: 13px; line-height: 1.5; opacity: .75; }
.ssn-mail { display: flex; align-items: center; gap: 9px; padding: 11px 16px 13px; border-top: 1px solid rgba(127, 127, 127, .2); font-size: 12px; opacity: .85; cursor: pointer; }
.ssn-mail input { width: 16px; height: 16px; margin: 0; accent-color: #43b9a8; }
@media (max-width: 719px) {
  .ssn-bell { width: 36px; height: 36px; min-height: 36px; margin-right: 2px; }
  .ssn-panel { max-height: 72vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .ssn-panel { animation: ssn-in .14s ease-out; }
  @keyframes ssn-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
/* The headers style every direct child of .nav-links; keep the bell round and centred. */
[data-nav] .nav-links > .ssn-bell.ssn-bell { display: inline-grid; justify-content: center; align-items: center; min-height: 40px; height: 40px; width: 40px; padding: 0; font-size: 0; }
@media (max-width: 719px) { [data-nav] .nav-links > .ssn-bell.ssn-bell { min-height: 36px; height: 36px; width: 36px; } }
