[data-notifications] {
  position: relative;
  z-index: 15;
  display: inline-flex;
  flex: none;
}
[data-notifications="header"] { margin-inline-start: auto; }
[data-notifications] [hidden] { display: none !important; }

[data-notifications] .notifications-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #536b978c;
  border-radius: 50%;
  background: #091327ec;
  color: #b6d5ff;
  cursor: pointer;
}
[data-notifications] .notifications-toggle:is(:hover, [aria-expanded="true"]) {
  border-color: #9dc6ff;
  color: #effaff;
}
.notifications-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notifications-badge {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -5px;
  display: grid;
  min-inline-size: 19px;
  height: 19px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 20px;
  background: #a9d6ff;
  color: #0a1831;
  font-size: .69rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.notifications-panel {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + 9px);
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 38px));
  max-height: min(31rem, calc(100dvh - 100px));
  border: 1px solid #56719b;
  border-radius: 12px;
  overflow: hidden;
  background: #0c192e;
  color: #e5f0ff;
  box-shadow: 0 12px 40px #030712bc;
  text-align: start;
}
[data-notifications="above"] .notifications-panel {
  inset-block-start: auto;
  inset-block-end: calc(100% + 9px);
}
.notifications-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #3b5377;
}
.notifications-panel .notifications-header h2 {
  margin: 0;
  color: #f1f6ff;
  font-size: 1.05rem;
  line-height: 1.35;
}
[data-notifications] .notifications-panel .notifications-action {
  min-width: 0;
  min-height: 32px;
  height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #add5ff;
  box-shadow: none;
  font: inherit;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}
[data-notifications] .notifications-panel .notifications-action:hover { color: #fff; }
.notifications-panel .notifications-list {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.notifications-panel .notification { margin: 0; padding: 0; }
.notification + .notification { border-top: 1px solid #3b53776b; }
.notifications-panel .notification-link {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 16px 11px 14px;
  color: #d8eaff;
  text-decoration: none;
}
.notification[data-unread] { background: #152846; }
.notifications-panel .notification-link:is(:hover, :focus-visible) { background: #1c3455; }
.notification-link:focus-visible { outline-offset: -3px; }
.notification-meta {
  padding-inline-end: 13px;
  color: #b6c9e4;
  font-size: .79rem;
}
.notification-title { color: #f0f6ff; font-size: .96rem; line-height: 1.35; }
.notification-description {
  display: -webkit-box;
  overflow: hidden;
  color: #c0d1e9;
  font-size: .84rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.notification[data-unread] .notification-link::after {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9d6ff;
  content: "";
}
.notification:not([data-unread]) .notification-unread { display: none; }
.notification-unread {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.notifications-panel .notifications-status {
  margin: 0;
  padding: 10px 14px;
  color: #c4d8f3;
  font-size: .85rem;
}
.notifications-status:empty { display: none; }
[data-notifications] .notifications-panel .notifications-retry {
  align-self: start;
  margin-inline: 14px;
}
@media (max-width: 390px) {
  .experience-controls:has([data-notifications]) .experience-back { width: 43px; padding: 0; }
  .experience-controls:has([data-notifications]) .experience-back > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
