/* Terminal bell (s8-notify.js): top-bar button with an unread badge and a dropdown inbox.
   It sits inside .s8-user (right of the divider, before "Welcome back") so it reads as part of the account group. */
.s8-bell{position:relative;flex:none;margin:0 2px 0 -8px}
.s8-bell[hidden]{display:none}
.s8-bell__btn{position:relative;width:38px;height:38px}
.s8-bell__btn svg{width:22px;height:22px}
.s8-bell__btn[aria-expanded="true"]{background:var(--s8-hover);color:var(--s8-fg)}
.s8-bell__btn.bump svg{animation:s8-bell-ring .8s ease-in-out}
@keyframes s8-bell-ring{0%,100%{transform:rotate(0)}15%{transform:rotate(14deg)}30%{transform:rotate(-12deg)}45%{transform:rotate(9deg)}60%{transform:rotate(-6deg)}75%{transform:rotate(3deg)}}
.s8-bell__n{position:absolute;top:3px;right:2px;min-width:17px;height:17px;padding:0 4px;box-sizing:border-box;border:2px solid var(--s8-panel-2);border-radius:999px;background:var(--s8-down);color:#fff;font:700 10px/13px var(--s8-sans);font-variant-numeric:tabular-nums;text-align:center;pointer-events:none}
.s8-bell__n[hidden]{display:none}

.s8-bell__menu{position:absolute;z-index:120;top:calc(100% + 12px);right:-8px;width:360px;max-width:calc(100vw - 24px);border:1px solid var(--s8-line-2);border-radius:var(--s8-r-lg);background:var(--s8-panel);box-shadow:var(--s8-pop-lg);overflow:hidden}
.s8-bell__menu[hidden]{display:none}
.s8-bell__h{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 10px;border-bottom:1px solid var(--s8-line);color:var(--s8-fg-3);font-size:var(--s8-fs-micro);font-weight:600;letter-spacing:var(--s8-ls-caps);text-transform:uppercase}
.s8-bell__list{max-height:min(420px,calc(100dvh - 140px));overflow-y:auto}

.s8-bell__r{display:flex;align-items:flex-start;gap:10px;padding:10px 12px 10px 14px;border-bottom:1px solid var(--s8-line);color:var(--s8-fg-2);font-size:var(--s8-fs-sm);line-height:1.4;text-decoration:none}
.s8-bell__r:last-child{border-bottom:0}
a.s8-bell__r,a.s8-bell__r:hover,a.s8-bell__r:focus,a.s8-bell__r:visited{color:var(--s8-fg-2);text-decoration:none}
a.s8-bell__r:hover,a.s8-bell__r:focus-visible{background:var(--s8-hover);outline:0}
.s8-bell__r.is-unread{background:var(--s8-accent-tint)}
a.s8-bell__r.is-unread:hover{background:rgba(62,162,242,.26)}
.s8-bell__r b{color:var(--s8-fg);font-weight:600}
.s8-bell__r .u{color:var(--s8-up);font-weight:600;white-space:nowrap}
.s8-bell__r .d{color:var(--s8-down);font-weight:600;white-space:nowrap}
.s8-bell__r .g{color:var(--s8-gold-hi,#FFD27A);font-weight:600}
.s8-bell__t{flex:1;min-width:0}
.s8-bell__t time{display:block;margin-top:2px;color:var(--s8-fg-4);font-size:var(--s8-fs-micro);font-variant-numeric:tabular-nums}
.s8-bell__dot{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:transparent}
.s8-bell__r.is-unread .s8-bell__dot{background:var(--s8-accent-hi)}

.s8-bell__av{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--s8-active);color:var(--s8-fg);font-size:12px;font-weight:700;text-transform:uppercase}
.s8-bell__av img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}
.s8-bell__av i{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--s8-panel);font-style:normal;font-size:11px;line-height:1}
/* sign-in card (anonymous visitors): the email digest needs an account */
.s8-bell__cta{display:flex;align-items:flex-start;gap:12px;margin:10px;padding:12px;border:1px solid var(--s8-accent-line);border-radius:var(--s8-r);background:var(--s8-accent-tint)}
.s8-bell__cta-t{flex:1;min-width:0;display:grid;gap:3px;font-size:var(--s8-fs-sm);line-height:1.4}
.s8-bell__cta-t b{color:var(--s8-fg);font-weight:600}
.s8-bell__cta-t span{color:var(--s8-fg-2)}
.s8-bell__cta-a{display:flex;align-items:center;gap:4px;flex:none}
.s8-bell__x{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:var(--s8-r-sm);background:transparent;color:var(--s8-fg-3);cursor:pointer}
.s8-bell__x:hover{background:var(--s8-hover);color:var(--s8-fg)}
.s8-bell__x svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.s8-bell__e{padding:22px 16px;color:var(--s8-fg-4);font-size:var(--s8-fs-sm);text-align:center;line-height:1.45}

@media (max-width:640px){
  .s8-bell{margin:0}
  .s8-bell__menu{position:fixed;top:70px;right:12px;left:12px;width:auto;max-width:none}
}
@media (prefers-reduced-motion:reduce){.s8-bell__btn.bump svg{animation:none}}
