/* Bell and DM notices beside the floating friend list (notify-ui.js). Same surfaces as chat.css. */
.fd-bar { display:flex; align-items:center; gap:10px; }
.nt-fab { position:relative; display:grid; place-items:center; width:52px; height:52px; padding:0; border:0; border-radius:50%; background:var(--surface-2,#241e28); color:var(--muted,#b7abb4); box-shadow:0 0 0 1px var(--hairline,#fff2e812), 0 12px 32px -8px #000000b3; transition:transform .15s var(--ease,ease), background .15s, color .15s; }
.nt-fab:hover, .nt-fab.is-active { background:var(--surface-hover,#2b2430); color:var(--ink,#f7f1ec); }
.nt-fab:active { transform:scale(.95); }
.nt-fab:focus-visible { outline:2px solid var(--accent,#ff9e57); outline-offset:3px; }
.nt-fab.has-new { color:var(--ink,#f7f1ec); }
.nt-fab.has-new svg { transform-origin:50% 12%; animation:nt-ring 1.1s var(--ease,ease) 1; }
.nt-badge { position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 6px; display:inline-grid; place-items:center; border-radius:99px; background:var(--accent,#ff9e57); color:var(--on-accent,#1d0e05); font:800 11px/1 var(--font,inherit); font-style:normal; font-variant-numeric:tabular-nums; box-shadow:0 0 0 3px var(--bg,#120e14); }
@keyframes nt-ring { 0%,100% { transform:rotate(0); } 15% { transform:rotate(14deg); } 30% { transform:rotate(-12deg); } 45% { transform:rotate(8deg); } 60% { transform:rotate(-5deg); } 75% { transform:rotate(2deg); } }

#notify-root .nt-backdrop { position:fixed; inset:0; z-index:46; background:transparent; }
.nt-panel { position:fixed; right:24px; bottom:88px; z-index:47; width:380px; max-height:min(600px, calc(100dvh - 120px)); display:flex; flex-direction:column; background:var(--surface,#1b161e); color:var(--ink,#f7f1ec); border-radius:20px; box-shadow:0 0 0 1px var(--hairline,#fff2e812), 0 24px 60px -12px #000000cc; overflow:hidden; transform-origin:bottom right; animation:fd-pop .18s var(--ease,ease) both; }
body.poll-side-open .nt-panel { right:424px; }
.nt-head { display:flex; align-items:center; gap:8px; padding:14px 10px 8px 18px; }
.nt-head h2 { flex:1; margin:0; font-size:18px; font-weight:750; letter-spacing:-.01em; }
.nt-head > .nt-icon:first-child { margin-left:-10px; }
.nt-head-actions { display:flex; gap:2px; }
.nt-icon { display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:12px; background:none; color:var(--muted,#b7abb4); }
.nt-icon:hover:not(:disabled) { background:var(--surface-2,#241e28); color:var(--ink,#f7f1ec); }
.nt-icon:disabled { opacity:.35; }
.nt-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 8px 10px; scrollbar-width:thin; }
.nt-list ul { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.nt-sec { margin:12px 10px 6px; font-size:13px; font-weight:600; color:var(--muted,#b7abb4); }
.nt-lead { margin:0 10px 10px; font-size:13px; line-height:1.45; color:var(--subtle,#998c97); }

.nt-item { position:relative; display:flex; align-items:flex-start; gap:12px; width:100%; padding:10px 28px 10px 10px; border:0; border-radius:14px; background:none; color:var(--ink,#f7f1ec); text-align:left; }
.nt-item:hover, .nt-item:focus-visible { background:var(--surface-2,#241e28); }
.nt-item.is-unread { background:color-mix(in srgb, var(--accent,#ff9e57) 7%, transparent); }
.nt-item.is-unread:hover { background:color-mix(in srgb, var(--accent,#ff9e57) 12%, var(--surface-2,#241e28)); }
.nt-face { position:relative; flex:none; display:inline-grid; }
.nt-face .avatar { width:40px !important; height:40px !important; }
.nt-face.is-icon { place-items:center; width:40px; height:40px; border-radius:50%; background:color-mix(in srgb, var(--kind) 18%, var(--surface-2,#241e28)); color:var(--kind); }
.nt-kind { position:absolute; right:-2px; bottom:-2px; width:13px; height:13px; border-radius:50%; background:var(--kind); box-shadow:0 0 0 2.5px var(--surface,#1b161e); }
.nt-copy { display:grid; gap:3px; min-width:0; }
.nt-text { font-size:14px; line-height:1.38; color:var(--ink,#f7f1ec); overflow-wrap:anywhere; }
.nt-item:not(.is-unread) .nt-text { color:var(--muted,#b7abb4); }
.nt-text b { font-weight:700; }
.nt-body { font-size:13px; color:var(--subtle,#998c97); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nt-copy time { font-size:12px; color:var(--subtle,#998c97); }
.nt-item.is-unread time { color:var(--accent,#ff9e57); font-weight:600; }
.nt-dot { position:absolute; right:12px; top:50%; width:9px; height:9px; margin-top:-4.5px; border-radius:50%; background:var(--accent,#ff9e57); }
.nt-count { font-style:normal; display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:4px; border-radius:99px; background:var(--accent,#ff9e57); color:var(--on-accent,#1d0e05); font-size:10px; font-weight:800; vertical-align:1px; }
.nt-more { display:block; width:calc(100% - 16px); margin:8px; padding:10px; border:0; border-radius:12px; background:var(--surface-2,#241e28); color:var(--muted,#b7abb4); font-weight:600; }
.nt-more:hover { color:var(--ink,#f7f1ec); }

.nt-empty { text-align:center; padding:18px 26px 28px; color:var(--muted,#b7abb4); font-size:14px; line-height:1.45; }
.nt-empty-icon { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:50%; background:var(--surface-2,#241e28); color:var(--accent,#ff9e57); margin-bottom:10px; }
.nt-empty strong { display:block; color:var(--ink,#f7f1ec); font-size:16px; margin-bottom:4px; }
.nt-empty p { margin:0; }
.nt-loading { display:grid; gap:10px; padding:10px; }
.nt-loading span { height:54px; border-radius:14px; background:linear-gradient(90deg, var(--surface-2,#241e28) 30%, var(--surface-hover,#2b2430) 50%, var(--surface-2,#241e28) 70%); background-size:300% 100%; animation:nt-shimmer 1.2s linear infinite; }
@keyframes nt-shimmer { to { background-position:-150% 0; } }

.nt-push { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 14px 8px; padding:14px 16px; border-radius:16px; background:color-mix(in srgb, var(--accent,#ff9e57) 10%, var(--surface-2,#241e28)); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent,#ff9e57) 22%, transparent); }
.nt-push > div:first-child { flex:1 1 200px; min-width:0; padding-right:22px; }
.nt-push strong { display:block; font-size:14px; }
.nt-push p { margin:3px 0 0; font-size:13px; line-height:1.4; color:var(--muted,#b7abb4); }
.nt-push.is-on { background:var(--surface-2,#241e28); box-shadow:inset 0 0 0 1px var(--hairline,#fff2e812); }
.nt-push.is-on strong::before { content:""; display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:var(--live,#5fd99a); vertical-align:1px; }
.nt-push-actions { display:flex; gap:6px; flex-wrap:wrap; }
.nt-push .btn { min-height:36px; }
.nt-push-x { position:absolute; top:8px; right:8px; display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:8px; background:none; color:var(--subtle,#998c97); }
.nt-push-x:hover { color:var(--ink,#f7f1ec); background:#ffffff10; }
.nt-foot { padding:10px 14px 14px; border-top:1px solid var(--hairline,#fff2e812); }
.nt-foot .btn { width:100%; }

.nt-cats { list-style:none; margin:0 6px 6px; padding:0; display:grid; gap:2px; }
.nt-cat { display:grid; grid-template-columns:1fr 56px 56px; align-items:center; min-height:46px; padding:0 4px 0 6px; border-radius:12px; font-size:14px; }
.nt-cat:not(.is-head):hover { background:var(--surface-2,#241e28); }
.nt-cat.is-head { min-height:24px; font-size:12px; color:var(--subtle,#998c97); }
.nt-cat.is-head span { text-align:center; }
.nt-cat.is-group { grid-template-columns:1fr 56px; }
.nt-cat > span:first-child { display:flex; align-items:center; gap:10px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nt-cat > span:first-child i { flex:none; width:9px; height:9px; border-radius:50%; background:var(--kind); }
.nt-cat-fixed { text-align:center; color:var(--subtle,#998c97); }
.nt-switch { position:relative; justify-self:center; display:inline-block; width:40px; height:24px; cursor:pointer; }
.nt-switch input { position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.nt-switch span[aria-hidden] { position:absolute; inset:0; border-radius:99px; background:#ffffff1f; transition:background .15s; pointer-events:none; }
.nt-switch span[aria-hidden]::after { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .15s var(--ease,ease); }
.nt-switch input:checked + span { background:var(--accent,#ff9e57); }
.nt-switch input:checked + span::after { transform:translateX(16px); }
.nt-switch input:disabled + span { opacity:.35; }
.nt-switch input:focus-visible + span { outline:2px solid var(--accent,#ff9e57); outline-offset:2px; }

.pin-card.is-spotlit { box-shadow:0 0 0 2px var(--accent,#ff9e57), 0 0 40px -8px color-mix(in srgb, var(--accent,#ff9e57) 60%, transparent); transition:box-shadow .4s; }

@media (max-width:730px) {
  .fd-bar { gap:8px; }
  .fd.is-open .nt-fab { display:none; }
  .nt-fab { width:48px; height:48px; }
  .nt-fab svg { width:21px; height:21px; }
  #notify-root .nt-backdrop { z-index:48; background:#09060bb3; animation:fd-fade .18s ease-out both; }
  .nt-panel { left:0; right:0; bottom:0; z-index:49; width:auto; max-height:min(82dvh, 680px); border-radius:22px 22px 0 0; padding-bottom:env(safe-area-inset-bottom); transform-origin:bottom center; animation:fd-up .22s var(--ease,ease) both; }
  body.poll-side-open .nt-panel { right:0; }
  .nt-panel::before { content:""; display:block; width:38px; height:4px; border-radius:99px; background:#ffffff26; margin:8px auto 0; flex:none; }
  .nt-head { padding-top:6px; }
  .nt-icon { width:44px; height:44px; }
  .nt-item { min-height:60px; }
  body.nt-open { overflow:hidden; }
}
@media (prefers-reduced-motion:reduce) {
  .nt-panel, #notify-root .nt-backdrop, .nt-fab.has-new svg, .nt-loading span { animation:none !important; }
  .nt-fab, .nt-switch span { transition:none; }
}
@media (prefers-contrast:more) {
  .nt-body, .nt-copy time, .nt-lead { color:var(--muted,#b7abb4); }
}
/* Messages from the team: full text instead of one cut-off line. */
.nt-item.is-admin .nt-body { white-space:pre-line; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
