.bn-notifications {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.bn-notifications .bn-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #8b7547;
  border-radius: 12px;
  background: #072536;
  color: #ffda83;
  cursor: pointer;
}
.bn-bell svg { width: 21px; height: 21px; }
.bn-bell-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 16px;
  background: #ffda83;
  color: #071d2c;
  font: 700 11px/16px system-ui;
}
.bn-notifications [hidden] { display: none !important; }
.bn-notification-popover {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(350px, calc(100vw - 26px));
  max-height: min(440px, 65vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid #6e8992;
  border-radius: 12px;
  background: #061e2d;
  color: #e5f2f6;
  text-align: left;
  font: 14px/1.45 system-ui;
  box-shadow: 0 10px 25px #0009;
  z-index: 1200;
}
.bn-notification-popover a,.bn-notification-row a { color: #96eeef; }
.bn-notification-popover p { margin: 8px 0; }
.bn-notification-row {
  border-bottom: 1px solid #315365;
  padding: 10px 8px;
  overflow-wrap: anywhere;
}
.bn-notification-row[data-unread="true"] { background: #103547; border-left: 3px solid #ffda83; }
.bn-notification-row a { display: block; text-decoration: none; }
.bn-notification-row a:hover { text-decoration: underline; }
.bn-notification-row time { display: block; color: #a9c4d0; font-size: 12px; }
.bn-notification-popover > a { display: inline-block; margin-top: 8px; }
.site-nav:has(> .bn-notifications) { overflow: visible; }
@media (max-width: 700px) {
  .site-nav:has(> .bn-notifications) { grid-template-columns: 40px minmax(0,1fr) 42px 44px !important; }
  .site-nav > .bn-notifications { grid-column: 3; grid-row: 1; }
  .site-nav:has(> .bn-notifications) > .home-auth { grid-column: 4 !important; }
  .bn-notification-popover { position: fixed; inset: max(64px,env(safe-area-inset-top)) 12px auto auto; }
}
.bn-trade-tools { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin: 0 0 12px; }
.bn-trade-tools details,.bn-linked-offer {
  border: 1px solid #547585;
  border-radius: 10px;
  background: #082432f5;
  padding: 8px 12px;
}
.bn-trade-tools details[open],.bn-linked-offer { flex: 1 0 100%; }
.bn-trade-tools summary { cursor: pointer; color: #ffda83; font-weight: 700; }
.bn-trade-tools form,.bn-trade-actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.bn-trade-tools form { margin: 12px 0; }
.bn-trade-tools form label { display: grid; gap: 4px; }
.bn-trade-tools [role="status"] { margin: 0; align-self: center; }
.bn-trade-tools :is([role="status"]:empty,[hidden]) { display: none !important; }
.bn-trade-notification-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 4px;
  border-top: 1px solid #315365;
}
.bn-trade-highlighted { background: #103547; }
