/* In-app notifications bell. Ink on white, one neutral button; accent only for the small unread count. Light theme only. */
.nbell { position: relative; display: inline-block; font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif); color: var(--color-text, #16202E); }
.nbell *, .nbell *::before, .nbell *::after { box-sizing: border-box; }
.nbell__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-border, #667085); border-radius: var(--radius-sm); background: var(--color-surface-raised, #FFFFFF); color: var(--color-text, #16202E); cursor: pointer; }
.nbell__btn:hover { background: color-mix(in srgb, var(--color-border, #667085) 12%, var(--color-surface-raised, #FFFFFF)); }
.nbell__btn[aria-expanded="true"] { border-color: var(--color-text, #16202E); }
.nbell__btn:focus-visible, .nbell__mark:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 2px; }
/* The unread state: a small accent count on the bell. The words are in the button's label and in the panel, so it is never colour alone. */
.nbell__badge { position: absolute; top: -8px; right: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid var(--color-surface, #F5F7FA); border-radius: var(--radius-pill); background: var(--color-text, #16202E); color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1; }
.nbell__badge[hidden] { display: none; }
.nbell__panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 16px; background: var(--color-surface-raised, #FFFFFF); border: 1px solid var(--color-card-border, #DFE4EB); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.nbell__panel[hidden] { display: none; }
.nbell__title { margin: 0 0 4px; font-family: var(--font-display, "Cabinet Grotesk", "Cabinet Grotesk Fallback", system-ui, sans-serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.nbell__summary { margin: 0 0 12px; font-size: 16px; color: var(--color-text-muted, #4A5565); }
.nbell__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-card-border, #DFE4EB); }
.nbell__item { padding: 12px 0; border-bottom: 1px solid var(--color-card-border, #DFE4EB); }
.nbell__item--new { padding-left: 12px; box-shadow: inset 3px 0 0 var(--color-text, #16202E); }
.nbell__item-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 4px; font-weight: 600; }
.nbell__item-name { overflow-wrap: anywhere; }
.nbell__new { padding: 1px 8px; border: 1px solid var(--color-text, #16202E); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; }
.nbell__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nbell__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 16px; }
.nbell__stat-label { color: var(--color-text-muted, #4A5565); }
.nbell__stat-value { font-weight: 700; }
.nbell__stat-new { font-size: 14px; font-weight: 600; }
.nbell__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.nbell__mark { min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-border, #667085); border-radius: var(--radius-sm); background: transparent; color: var(--color-text, #16202E); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.nbell__mark:hover { background: color-mix(in srgb, var(--color-border, #667085) 12%, var(--color-surface-raised, #FFFFFF)); }
.nbell__primary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-accent, #0B6B5D); border-radius: var(--radius-sm); background: var(--color-accent, #0B6B5D); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; }
.nbell__primary:hover { background: #08574B; border-color: #08574B; }
.nbell__primary:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 2px; }
.nbell__primary[hidden] { display: none; }
.nbell__mark[hidden] { display: none; }
.nbell__mark[aria-disabled="true"] { cursor: default; opacity: 0.7; }
.nbell__msg { margin: 0; font-size: 14px; color: var(--color-text-muted, #4A5565); }
@media (max-width: 480px) { .nbell__panel { width: calc(100vw - 32px); } }
