.fxf-nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  color: var(--primary, #2563eb);
  transition: transform 0.15s ease, background 0.2s ease;
}
.fxf-nav-bell.hidden {
  display: none !important;
}
.fxf-nav-bell__icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.fxf-nav-bell:hover {
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
}
.fxf-nav-bell--shake {
  animation: fxf-bell-shake 0.82s ease-in-out;
}
.fxf-nav-bell__dot {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  min-width: 0.5rem;
  height: 0.5rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  line-height: 0.5rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--card-bg, #fff);
}
.fxf-inbox-popover {
  position: fixed;
  z-index: 130;
  width: min(360px, calc(100vw - 16px));
  max-height: 360px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background: var(--card-bg, #fff);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.24s;
}
.fxf-inbox-popover[hidden] {
  display: none !important;
}
.fxf-inbox-popover.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fxf-inbox-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  font-size: 0.92rem;
}
.fxf-inbox-popover__head button {
  border: 0;
  background: transparent;
  color: var(--primary, #2563eb);
  font-size: 0.82rem;
  cursor: pointer;
}
.fxf-inbox-popover__search {
  padding: 0 6px 8px;
}
.fxf-inbox-popover__search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--card-bg, #fff) 92%, var(--primary, #2563eb));
  color: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fxf-inbox-popover__search input:focus {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 14%, transparent);
}
.fxf-inbox-row {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.fxf-inbox-row.fxf-inbox-row--enter {
  animation: fxf-inbox-row-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.fxf-inbox-row:hover {
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
}
.fxf-inbox-row.is-unread strong {
  color: var(--primary, #2563eb);
}
.fxf-inbox-row span {
  font-size: 0.78rem;
  opacity: 0.72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fxf-inbox-empty {
  padding: 24px 8px;
  text-align: center;
  opacity: 0.65;
  font-size: 0.88rem;
}
.fxf-inbox-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(4vh, 16px) 16px 16px;
  box-sizing: border-box;
}
.fxf-inbox-modal[hidden] {
  display: none !important;
}
.fxf-inbox-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fxf-inbox-modal.is-open .fxf-inbox-modal__mask {
  opacity: 1;
}
.fxf-inbox-modal__card {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  max-height: min(86vh, 720px);
  margin: 0;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.fxf-inbox-modal.is-open .fxf-inbox-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.fxf-inbox-modal-open {
  overflow: hidden;
}
.fxf-inbox-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.fxf-inbox-modal__head button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.fxf-inbox-modal__body {
  padding: 12px 16px 20px;
  overflow: auto;
  max-height: calc(86vh - 56px);
}

.fxf-inbox-modal__body .markdown-body aside.fxf-callout {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.55;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout.is-success {
  border-left-color: #22c55e;
  background: #f0fdf4;
  color: #14532d;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout.is-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout.is-danger {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout.is-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout p {
  margin: 0.35rem 0;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout .halo-table-wrapper {
  margin-top: 0.65rem;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  vertical-align: top;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout tr:first-child td {
  border-top: 0;
}
.fxf-inbox-modal__body .markdown-body aside.fxf-callout td:first-child {
  width: 30%;
  white-space: nowrap;
  opacity: 0.85;
}
@keyframes fxf-inbox-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fxf-inbox-popover,
  .fxf-inbox-modal__mask,
  .fxf-inbox-modal__card,
  .fxf-inbox-row {
    transition: none !important;
  }
  .fxf-inbox-row.fxf-inbox-row--enter {
    animation: none !important;
  }
}
@keyframes fxf-bell-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(-12deg);
  }
  30% {
    transform: rotate(10deg);
  }
  45% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-4deg);
  }
}
