/* Header notifications: bounded content without redundant delay badges. */

.notification-status-badge {
 display: none !important;
}

.header-notifications .notification-menu {
 box-sizing: border-box;
 flex-direction: column;
 max-height: min(520px, calc(100vh - var(--topbar-height, 76px) - 18px - env(safe-area-inset-bottom, 0px)));
 max-height: min(520px, calc(100dvh - var(--topbar-height, 76px) - 18px - env(safe-area-inset-bottom, 0px)));
 overflow: hidden !important;
}

.header-notifications.is-open .notification-menu {
 display: flex !important;
}

.notification-menu > .notification-head {
 flex: 0 0 auto;
}

@media (max-width: 760px) {
 .header-notifications .notification-menu {
  max-height: calc(100vh - var(--topbar-height, 64px) - 18px - env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(100dvh - var(--topbar-height, 64px) - 18px - env(safe-area-inset-bottom, 0px)) !important;
 }
}

[data-header-notification-items],
.notification-item,
.notification-item > div {
 box-sizing: border-box;
 min-width: 0;
 max-width: 100%;
}

[data-header-notification-items] {
 flex: 1 1 auto;
 width: 100%;
 min-height: 0;
 overflow-x: hidden;
 overflow-y: auto;
 overscroll-behavior-y: contain;
 -webkit-overflow-scrolling: touch;
}

.notification-item {
 width: 100%;
 overflow: hidden;
}

.notification-entry {
 position: relative;
 min-width: 0;
 touch-action: pan-y pinch-zoom;
}

.notification-entry > .notification-item {
 min-height: 64px;
 padding-right: 54px;
 transition: transform 160ms ease;
}

/* Overflow-clipped children must also reserve horizontal movement for the swipe. */
.notification-entry > .notification-item,
.notification-entry > .notification-item * {
 touch-action: pan-y pinch-zoom;
}

.notification-entry.is-swiping > .notification-item {
 transition: none;
 will-change: transform;
}

.notification-entry.is-dismissing > .notification-item {
 opacity: 0.65;
}

.notification-dismiss {
 position: absolute;
 top: 7px;
 right: 3px;
 display: grid;
 width: 44px;
 height: 44px;
 min-width: 44px;
 padding: 0;
 place-items: center;
 border: 0;
 border-radius: 10px;
 background: transparent;
 color: #64748b;
 font-size: 24px;
 line-height: 1;
 cursor: pointer;
 touch-action: manipulation;
}

.notification-dismiss:hover,
.notification-dismiss:focus-visible {
 background: #eef2f7;
 color: #172033;
}

.notification-dismiss:focus-visible {
 outline: 2px solid #2563eb;
 outline-offset: -3px;
}

.notification-dismiss:disabled {
 opacity: 0.5;
 cursor: wait;
}

.notification-dismiss-status {
 padding: 3px 14px 10px;
 color: #b91c1c;
 font-size: 12px;
 line-height: 1.4;
}

.notification-dismiss-status[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
 .notification-entry > .notification-item { transition: none; }
}

.notification-item > span {
 box-sizing: border-box;
 min-width: 32px;
 max-width: 32px;
 overflow: hidden;
}

.notification-item > div,
.notification-item strong,
.notification-item small {
 overflow: hidden;
}

.notification-item small {
 width: 100%;
 max-width: 100%;
 overflow-wrap: anywhere;
 word-break: break-word;
}

.notification-item.is-persistent {
 border-left: 3px solid #f59e0b;
 background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
}

.notification-item.is-standard-onboarding {
 border-left-color: #2563eb;
 background:
  linear-gradient(90deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.header-legal-reminder-stack {
 z-index: 2700;
}

.header-legal-reminder-toast {
 grid-template-columns: 38px minmax(0, 1fr) auto;
 align-items: center;
 gap: 10px;
 border-color: rgba(245, 158, 11, 0.46) !important;
 background:
  radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.22), transparent 35%),
  rgba(255, 251, 235, 0.97) !important;
 color: #7c2d12 !important;
 text-decoration: none;
}

.header-legal-reminder-icon {
 display: grid;
 width: 38px;
 height: 38px;
 place-items: center;
 border: 1px solid rgba(245, 158, 11, 0.3);
 border-radius: 13px;
 background: rgba(255, 255, 255, 0.72);
 font-size: 19px !important;
}

.header-legal-reminder-copy {
 display: grid;
 min-width: 0;
 gap: 3px;
 color: inherit !important;
}

.header-legal-reminder-copy strong,
.header-legal-reminder-copy small {
 display: block;
 overflow: hidden;
 text-overflow: ellipsis;
}

.header-legal-reminder-copy small {
 color: #64748b;
 font-size: 12px;
 font-style: normal;
 font-weight: 750;
 white-space: nowrap;
}

.header-legal-reminder-toast > em {
 padding: 7px 9px;
 border-radius: 999px;
 background: #f59e0b;
 color: #111827;
 font-size: 11px;
 font-style: normal;
 font-weight: 950;
}

.header-legal-reminder-toast.is-standard-onboarding {
 border-color: rgba(37, 99, 235, 0.34) !important;
 background:
  radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.18), transparent 37%),
  rgba(239, 246, 255, 0.97) !important;
 color: #1e3a8a !important;
}

.header-legal-reminder-toast.is-standard-onboarding .header-legal-reminder-icon {
 border-color: rgba(37, 99, 235, 0.24);
 background: rgba(255, 255, 255, 0.82);
 box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.07);
}

.header-legal-reminder-toast.is-standard-onboarding > em {
 background: #2563eb;
 color: #fff;
}

@media (max-width: 520px) {
 .header-legal-reminder-toast {
  grid-template-columns: 34px minmax(0, 1fr);
 }

 .header-legal-reminder-icon {
  width: 34px;
  height: 34px;
 }

 .header-legal-reminder-toast > em {
  display: none;
 }
}
