/* Header bell: new private messages (2026-11-21) */
.bw-bell { position: relative; display: inline-flex; align-items: center; margin-right: 10px; }
.bw-bell-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: #90b6d3; background: linear-gradient(180deg, rgba(25, 40, 58, .9), rgba(8, 14, 22, .95)); border: 1px solid rgba(96, 157, 203, .45); border-radius: 50%; cursor: pointer; transition: color .15s, border-color .15s; }
.bw-bell-btn:hover, .bw-bell-btn[aria-expanded="true"] { color: #83bdea; border-color: rgba(131, 189, 234, .85); }
.bw-bell-btn i { font-size: 16px; }
.bw-bell-count { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; color: #fff; font: 800 10.5px/18px Arial, sans-serif; text-align: center; background: #e53935; border: 2px solid #0b1118; border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.bw-bell-count[hidden] { display: none; }
.bw-bell.has-new .bw-bell-btn i { animation: bw-bell-ring 1s ease 2; transform-origin: 50% 10%; }
@keyframes bw-bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
.bw-bell-menu { position: absolute; top: calc(100% + 10px); right: -6px; z-index: 1200; width: 320px; max-width: calc(100vw - 20px); background: linear-gradient(180deg, #13202e, #0a1119); border: 1px solid rgba(96, 157, 203, .35); border-radius: 10px; box-shadow: 0 16px 36px rgba(0, 0, 0, .6); overflow: hidden; }
.bw-bell-menu[hidden] { display: none; }
.bw-bell-menu::before { content: ''; position: absolute; top: -6px; right: 18px; width: 10px; height: 10px; background: #13202e; border-left: 1px solid rgba(96, 157, 203, .35); border-top: 1px solid rgba(96, 157, 203, .35); transform: rotate(45deg); }
.bw-bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bw-bell-head span { color: #78b2de; font: 700 12px/1.3 Georgia, serif; letter-spacing: 1px; text-transform: uppercase; }
.bw-bell-head a { color: #9fb6c9; font: 12px/1.3 Arial, sans-serif; text-decoration: none; }
.bw-bell-head a:hover { color: #fff; }
.bw-bell-list {  overflow-y: auto; }
.bw-bell-item { display: flex; gap: 10px;  color: #d9e2ea; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.bw-bell-item:hover { background: rgba(110, 170, 220, .08); }
.bw-bell-item > i { margin-top: 2px; color: #78b2de; }
.bw-bell-item span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bw-bell-item b { color: #cde1f0; font: 700 13px/1.3 Arial, sans-serif; }
.bw-bell-item small { overflow: hidden; color: #b9c6d2; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.bw-bell-item em { color: #7d8fa0; font-size: 11px; font-style: normal; }
.bw-bell-empty { padding: 18px 14px; color: #8fa3b4; font-size: 12.5px; text-align: center; }

/* inside the navbar the theme styles every link/span/button: keep the bell's own look */
.navbar-inner .bw-bell, .navbar-inner .bw-bell * { text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; }
.navbar-inner .bw-bell .bw-bell-btn { width: 38px !important; height: 38px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; background: linear-gradient(180deg, rgba(25, 40, 58, .9), rgba(8, 14, 22, .95)) !important; box-shadow: none !important; }
.navbar-inner .bw-bell .bw-bell-menu, .navbar-inner .bw-bell .bw-bell-menu * { font-family: 'Segoe UI', Arial, sans-serif !important; }
.navbar-inner .bw-bell .bw-bell-head span { font: 700 12px/1.3 Georgia, serif !important; letter-spacing: 1px !important; text-transform: uppercase !important; color: #78b2de !important; }
.navbar-inner .bw-bell .bw-bell-head a { font-size: 12px !important; color: #9fb6c9 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.navbar-inner .bw-bell .bw-bell-head a:hover { color: #fff !important; }
.navbar-inner .bw-bell .bw-bell-item { padding: 10px 14px !important; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .04) !important; }
.navbar-inner .bw-bell .bw-bell-item:hover { background: rgba(110, 170, 220, .08) !important; }
.navbar-inner .bw-bell .bw-bell-item b { font-size: 13px !important; color: #cde1f0 !important; font-weight: 700 !important; }
.navbar-inner .bw-bell .bw-bell-item small { font-size: 12px !important; color: #b9c6d2 !important; }
.navbar-inner .bw-bell .bw-bell-item em { font-size: 11px !important; color: #7d8fa0 !important; }
.navbar-inner .bw-bell .bw-bell-count { font: 800 10.5px/18px Arial, sans-serif !important; }

/* no clipping of the red count, no sideways scrolling in the list */
.navbar-inner .navbar-panel-actions, .navbar-inner .bw-bell, .navbar-inner .bw-bell .bw-bell-btn { overflow: visible !important; }
.navbar-inner .bw-bell .bw-bell-count {   z-index: 2; }
.navbar-inner .bw-bell .bw-bell-list { overflow-x: hidden !important; overflow-y: auto !important; }
.navbar-inner .bw-bell .bw-bell-item { width: 100%; box-sizing: border-box; }
.navbar-inner .bw-bell .bw-bell-item span { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.navbar-inner .bw-bell .bw-bell-item small {  max-width: 100%; }
/* keep the count fully inside the bar (something above the navbar clipped its top edge) */
.navbar-inner .bw-bell { z-index: 5; margin-top: 4px; }
.navbar-inner .bw-bell .bw-bell-count {       border-width: 2px !important; }
/* count: a small badge sitting on the bell's ring (top-right), not hanging off to the side */
.navbar-inner .bw-bell .bw-bell-count { top: -1px !important; right: -1px !important; transform: translate(35%, -20%); min-width: 16px !important; height: 16px !important; padding: 0 4px !important; line-height: 16px !important; font-size: 9.5px !important; border: 1.5px solid #0a0f16 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .6) !important; }
/* the navbar's hover underline (a::before / a::after) must not run across the bell's list */
#navbar .bw-bell a::before, #navbar .bw-bell a::after,
.navbar-inner .bw-bell a::before, .navbar-inner .bw-bell a::after { content: none !important; display: none !important; }
#navbar .bw-bell a { height: auto !important; }
/* notifications (2026-11-21): "Mark all read" in the head, notes marked with a gold edge */
.bw-bell-head { gap: 10px; }
.bw-bell-head span { flex: 1; }
.bw-bell-readall { margin: 0; }
.navbar-inner .bw-bell .bw-bell-readall button { height: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; color: #9fb6c9 !important; font: 12px/1.3 Arial, sans-serif !important; background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer; }
.navbar-inner .bw-bell .bw-bell-readall button:hover { color: #fff !important; }
.navbar-inner .bw-bell .bw-bell-item.is-note { box-shadow: inset 3px 0 0 #78b2de; background: rgba(120, 178, 222, .05); }
.navbar-inner .bw-bell .bw-bell-item.is-note:hover { background: rgba(120, 178, 222, .1) !important; }
.navbar-inner .bw-bell .bw-bell-item small { white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* List: taller, a thin rounded scrollbar inside the menu (no grey default bar), only bright on hover */
.bw-bell-list { max-height: min(430px, calc(100vh - 160px)); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(110, 190, 245, .22) transparent; }
.bw-bell-list:hover { scrollbar-color: rgba(110, 190, 245, .5) transparent; }
.bw-bell-list::-webkit-scrollbar { width: 6px; }
.bw-bell-list::-webkit-scrollbar-track { background: transparent; margin: 6px 0; }
.bw-bell-list::-webkit-scrollbar-thumb { background: rgba(110, 190, 245, .22); border-radius: 6px; }
.bw-bell-list:hover::-webkit-scrollbar-thumb { background: rgba(110, 190, 245, .5); }
.bw-bell-list::-webkit-scrollbar-button { display: none; height: 0; }
/* a little more compact so more fit without scrolling */
.bw-bell-item { padding: 9px 12px; }
