/* Account inbox: uses the published WB Code design tokens, not demo styling. */
.notifications-bell[hidden], .notifications-popover[hidden], .notification-count[hidden], .notification-load-more[hidden] { display: none !important; }
.notifications-bell { color: var(--text-2); }
.is-signed-in .topbar-buttons { gap: 12px; }
.notifications-bell[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent); }
.notifications-bell > svg { width: 19px; height: 19px; }
.notification-count { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.notifications-bell .notification-count { position: absolute; top: -5px; right: -6px; border: 2px solid var(--surface); min-width: 20px; height: 20px; padding-inline: 4px; pointer-events: none; }
.notifications-popover { position: fixed; z-index: 35; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px); right: max(16px, env(safe-area-inset-right, 0px)); width: min(408px, calc(100% - 24px)); max-height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px) - 26px); display: flex; flex-direction: column; min-height: 0; border: .5px solid var(--hairline); border-radius: 24px; background: var(--surface); box-shadow: var(--sh-float); overflow: hidden; transform-origin: top right; }
.notifications-popover[inert] { pointer-events: none; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.notification-heading h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; font-weight: 700; }
.notifications-popover > .notification-heading { padding: 17px 19px 12px; flex: none; }
.notifications-popover .notification-heading h2 { font-size: 19px; }
.notification-heading .icon-button { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
.notification-list { min-width: 0; }
.notification-quick-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.notification-row { min-width: 0; border-top: .5px solid var(--line); background: var(--surface); }
.notification-row:first-child { border-top: 0; }
.notification-open { display: grid; grid-template-columns: 30px minmax(0, 1fr) 12px; align-items: start; gap: 12px; width: 100%; min-height: 76px; padding: 16px 18px; border: 0; background: transparent; text-align: left; color: var(--text); }
.notification-event-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--fill); color: var(--text-2); }
.notification-event-icon svg { width: 16px; height: 16px; }
.notification-row[data-unread="true"] .notification-event-icon { background: var(--accent-tint); color: var(--accent); }
.notification-copy { min-width: 0; }
.notification-title { display: block; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.notification-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 3em; margin-top: 3px; opacity: 1; color: var(--text-2); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; transition: max-height .24s var(--ease), opacity .18s var(--ease), margin-top .24s var(--ease); }
.notification-open[aria-expanded="true"] .notification-preview { max-height: 0; margin-top: 0; opacity: 0; }
.notification-time { display: block; margin-top: 7px; color: var(--text-3); font-size: 11px; line-height: 1.4; }
.notification-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.notification-row[data-unread="false"] .notification-indicator { background: transparent; }
.notification-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .24s var(--ease), opacity .2s var(--ease); }
.notification-detail-inner { min-height: 0; overflow: hidden; }
.notification-detail-content { padding: 0 18px 16px 60px; }
.notification-row[data-expanded="true"] .notification-detail { grid-template-rows: 1fr; opacity: 1; }
.notification-detail p { margin: 0; white-space: pre-wrap; color: var(--text-2); font-size: 12.5px; line-height: 1.65; overflow-wrap: anywhere; }
.notification-detail .text-button { margin-top: 6px; min-height: 36px; font-size: 12px; }
.notification-show-all { display: flex; justify-content: center; align-items: center; gap: 7px; flex: none; width: 100%; padding: 14px 18px; min-height: 48px; border-top: .5px solid var(--line); color: var(--accent); font-size: 12.5px; font-weight: 600; background: var(--surface); }
.notification-status { padding: 0 18px; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.notification-status:empty { display: none; }
.notification-status:not(:empty) { padding-block: 10px; }
.notification-status .text-button { margin-left: 6px; min-height: 36px; font-size: inherit; }
.notification-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; color: var(--text-2); font-size: 13px; }
.notification-empty .notification-event-icon { width: 38px; height: 38px; border-radius: 12px; }
.notification-empty .notification-event-icon svg { width: 20px; height: 20px; }
.notification-loading { display: grid; gap: 9px; padding: 18px; }
.notification-loading .skeleton { height: 12px; border-radius: 5px; }
.notification-loading .skeleton:nth-child(2n) { width: 72%; }
#account-notifications > .notification-heading { margin-bottom: 15px; }
#account-notifications .notification-list { border: .5px solid var(--hairline); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
#account-notifications .notification-title { font-size: 14px; }
#account-notifications .notification-preview { font-size: 12.5px; }
#notifications-read-all { font-size: 12px; min-height: 36px; flex: none; }
.notification-load-more { display: block; margin: 10px auto 0; min-height: 44px; font-size: 12.5px; }
.account-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.account-tabs .acc-thumb { width: calc((100% - 6px) / 5); }
.account-tabs:has(.account-tab:nth-child(5).active) .acc-thumb { transform: translateX(400%); }
.account-tab { padding-inline: 8px; gap: 5px; }
.account-tab .notification-count { position: absolute; right: 2px; top: -6px; }
@media (hover: hover) {
  .notification-open:hover, .notification-show-all:hover { background: var(--fill); }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .account-tab { font-size: 11.5px; padding-inline: 5px; gap: 4px; }
  .account-tab > svg { width: 14px; height: 14px; }
}
@media (max-width: 768px) {
  .notifications-popover { width: min(408px, calc(100% - 24px)); border-radius: 22px; }
  .account-card.in-view:has(#account-notifications:not(.hidden)) .account-footer { display: none; }
  .notification-heading h2 { font-size: 20px; }
  #account-notifications > .notification-heading { gap: 6px; flex-wrap: wrap; }
  .notification-open { padding: 15px 13px; gap: 10px; }
  .notification-detail-content { padding-left: 53px; padding-right: 13px; }
  .notification-detail .text-button, #notifications-read-all { min-height: 44px; }
}
@media (max-width: 359px) {
  .topbar { column-gap: 8px; padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
  .topbar-buttons { gap: 9px; }
  .topbar-auth { padding-inline: 13px; }
  .topbar .brand-logo { width: 108px; min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) { .notification-detail, .notification-preview { transition: none; } }
@media print { .notifications-popover, .notifications-bell { display: none !important; } }
