.notification-slot { flex: 0 0 auto; align-self: center; }
.portal-header-inner > .notification-slot { margin-inline-start: auto; }
.portal-header-inner > .notification-slot:not([hidden]) + .language-slot { margin-inline-start: 0; }
.notification-picker { position: relative; z-index: 4; }
.notification-bell {
  position: relative;
  width: 1.8rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
}
.notification-bell::-webkit-details-marker { display: none; }
.notification-bell:is(:hover, :focus-visible)::before,
.notification-picker[open] .notification-bell::before { background: var(--text); }
.notification-bell:focus-visible { border-radius: .3rem; background: var(--focus-fill); }
.notification-badge {
  position: absolute;
  inset: .13rem -.28rem auto auto;
  min-width: 1.05rem;
  padding: .1rem .22rem;
  border-radius: 1rem;
  background: var(--accent);
  color: #0a1620;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.notification-panel {
  position: absolute;
  z-index: 1;
  inset: calc(100% + .35rem) 0 auto auto;
  width: min(23rem, var(--notification-width-limit, calc(100vw - 1.5rem)));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--header-bg);
  color: var(--text);
  box-shadow: 0 .45rem 1.2rem #0005;
  transform: translateX(var(--notification-shift, 0));
}
.notification-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem .7rem;
  padding: .75rem .85rem;
}
.notification-heading h2 { font: 700 1rem/1.3 var(--body); text-transform: none; }
.notification-mark-all {
  min-height: 2rem;
  padding: .2rem .5rem;
  border: 0;
  border-radius: .3rem;
  background: var(--surface-strong);
  color: var(--accent-soft);
  font-size: .8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.notification-mark-all:not([aria-disabled="true"], :focus-visible):hover { background: var(--header-cell); }
.notification-mark-all[aria-disabled="true"] { opacity: .6; cursor: default; }
.notification-mark-all:focus-visible {
  background: var(--focus-fill);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.notification-message { padding: .25rem .85rem .8rem; color: var(--muted); font-size: .9rem; }
.notification-list {
  display: grid;
  gap: .25rem;
  max-height: min(23rem, 55dvh);
  margin: 0;
  padding: 0 .5rem .5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.notification-list:empty { display: none; }
.notification-item {
  position: relative;
  display: grid;
  gap: .11rem;
  padding: .5rem .85rem;
  border-radius: .35rem;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.notification-item-unread { background: var(--surface-strong); }
.notification-item-unread::after {
  position: absolute;
  inset: .8rem auto auto .32rem;
  width: .32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  content: '';
}
.notification-item:hover { background: var(--header-cell); }
.notification-item:focus-visible { background: var(--focus-fill); text-decoration: none; }
.notification-item:focus-visible .notification-title { text-decoration: underline; text-underline-offset: .2em; }
.notification-kind { color: var(--accent-soft); font-size: .83rem; font-weight: 600; }
.notification-title { font-size: .94rem; }
.notification-time { color: var(--muted); font-size: .78rem; }

@media (forced-colors: active) {
  .notification-bell:focus-visible { forced-color-adjust: none; background: Highlight; }
  .notification-bell:focus-visible::before { background: HighlightText; }
}

@media (max-width: 31rem) {
  .header-account-actions .notification-bell { width: 1.15rem; }
  .header-account-actions .notification-badge { inset-inline-end: -.45rem; }
}
