/* Notification bell in the top bar. Tokens only (brand/tokens.css). */
.bell { position: relative; display: flex; align-items: center; }
.bell-button { position: relative; }
.bell-count {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--ox-r-full);
  background: var(--ox-danger); color: var(--ox-surface); font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.bell-count[hidden], .bell-panel[hidden] { display: none; }
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-height: 420px; overflow: auto; z-index: 60;
  background: var(--ox-surface); border: 1px solid var(--ox-line); border-radius: var(--ox-r-lg); box-shadow: var(--ox-shadow-2);
}
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--ox-line); font-size: var(--ox-t-sm); }
.bell-all { border: 0; background: transparent; color: var(--ox-accent); font: inherit; font-size: var(--ox-t-xs); cursor: pointer; }
.bell-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-decoration: none; color: var(--ox-ink-2); border-bottom: 1px solid var(--ox-line); }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: var(--ox-surface-2); }
.bell-item.is-unread { color: var(--ox-ink); background: var(--ox-accent-soft); }
.bell-text { font-size: var(--ox-t-sm); line-height: 1.4; overflow-wrap: anywhere; }
.bell-time { font-size: var(--ox-t-xs); color: var(--ox-ink-3); }
.bell-empty { margin: 0; padding: 18px 14px; font-size: var(--ox-t-sm); color: var(--ox-ink-3); }

.topbar .bell-button { color: inherit; }

@media (max-width: 640px) {   /* the panel spans the screen instead of running off its left edge */
  .bell { position: static; }
  .bell-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100dvh - 140px); }
}
