/* v116 Notifications page + bell badge */
#view-notifications{padding-bottom:88px}
.nf-wrap{max-width:640px;margin:0 auto;padding:12px 16px 24px}
.nf-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 14px}
.nf-head :is(h1,h2:where(.vh1)){font-size:1.35rem;margin:0;flex:1 1 auto}
.nf-count{font-size:.75rem;font-weight:700;background:rgba(var(--accent-rgb),.18);color:var(--accent-text,var(--accent));padding:3px 8px;border-radius:999px}
.nf-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nf-item{display:grid;grid-template-columns:36px 1fr;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.nf-item.nf-unread{border-color:rgba(var(--accent-rgb),.45);box-shadow:inset 3px 0 0 var(--accent)}
.nf-ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(var(--accent-rgb),.12);color:var(--accent-text,var(--accent))}
.nf-ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nf-top{display:flex;gap:10px;align-items:flex-start}
.nf-av{width:44px;height:44px;border-radius:999px;object-fit:cover;flex:none;background:var(--bg)}
.nf-av-ph{display:inline-grid;place-items:center;font-weight:700;color:var(--muted);border:1px solid var(--line)}
.nf-txt{min-width:0;flex:1}
.nf-title{margin:0;font-weight:650;line-height:1.3;font-size:.95rem}
.nf-body{margin:4px 0 0;font-size:.85rem;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.nf-when{margin:4px 0 0;font-size:.75rem}
.nf-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.nf-empty{text-align:center;padding:36px 16px;border:1px dashed var(--line);border-radius:16px;background:var(--surface)}
.nf-empty h2{margin:12px 0 6px;font-size:1.1rem}
.nf-empty p{margin:0 auto 16px;max-width:36ch}
.nf-empty-acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.nf-big-ic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:rgba(var(--accent-rgb),.12);color:var(--accent-text,var(--accent))}
.nf-big-ic svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nf-load{padding:24px 8px}
.nf-soft{margin:0 0 10px}
.btn.sm{padding:6px 12px;font-size:.85rem}

/* Header / tab bar bell badge */
.hs-bell,.hs-tb[data-hs-nav="notif"]{position:relative}
.nf-badge{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#e11;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;pointer-events:none}
.hs-tb[data-hs-nav="notif"] .nf-badge{top:0;right:calc(50% - 22px)}

/* v167 Delete control — tidy, doesn't crowd the row */
.nf-top{position:relative}
.nf-del{
  flex:none;align-self:flex-start;margin-left:auto;
  width:28px;height:28px;padding:0;border:0;border-radius:8px;
  background:transparent;color:var(--muted);font-size:14px;line-height:1;
  cursor:pointer;display:inline-grid;place-items:center;
}
.nf-del:hover,.nf-del:focus-visible{
  background:rgba(220,40,40,.12);color:#c22;outline:none;
}
.nf-del:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.nf-head .btn.sm[data-nf-clear-all]{margin-left:auto}

/* v237 — straighten notifications chrome (no skew / left lean) */
#view-notifications,
#view-notifications .nf-wrap,
#view-notifications .nf-head,
#view-notifications .nf-list,
#view-notifications .nf-item,
#view-notifications .nf-empty{
  transform:none!important;
  font-style:normal;
}
#view-notifications .nf-head{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
}
#view-notifications .nf-head :is(h1,h2:where(.vh1)){
  font-style:normal!important;transform:none!important;letter-spacing:normal;
}
#view-notifications .nf-ic,
#view-notifications .nf-big-ic{
  display:grid!important;place-items:center!important;
  align-content:center!important;justify-items:center!important;
  transform:none!important;line-height:0;
}
#view-notifications .nf-ic svg,
#view-notifications .nf-big-ic svg{
  display:block;margin:0;transform:none!important;
}
/* Social head bell used to open this page — keep badge centered too */
.hs-bell .nf-badge,
.hs-bell-inline .nf-badge{
  top:2px;right:2px;transform:none!important;
}

/* v279: soft "Turn on notifications" card (notifications.js npShow). Follows Appearance: theme vars + accent. */
.np-card{position:fixed;z-index:60;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));display:grid;grid-template-columns:40px 1fr;gap:12px;
  padding:14px 40px 14px 14px;border-radius:18px;border:1px solid rgba(var(--accent-rgb),.38);
  background:radial-gradient(120% 140% at 0 0,rgba(var(--accent-rgb),.16),transparent 62%),var(--card,#15181d);color:var(--text);
  box-shadow:0 18px 48px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.03) inset;opacity:0;transform:translateY(14px);transition:opacity .22s ease,transform .22s ease;max-width:560px;margin:0 auto}
.np-card.np-in{opacity:1;transform:none}
.np-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(var(--accent-rgb),.18);color:var(--accent-text,var(--accent))}
.np-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#npCard#npCard .np-h{margin:1px 0 4px;font-size:16px;line-height:1.25;font-weight:800;color:var(--text)!important}
#npCard#npCard .np-p{margin:0 0 6px;font-size:13px;line-height:1.45;color:var(--text)!important;opacity:.92}
#npCard#npCard .np-note{margin:0 0 10px;font-size:12px;line-height:1.4;color:var(--muted,#9aa3ad)!important}
.np-acts{display:flex;gap:8px;flex-wrap:nowrap}
.np-acts .btn{width:auto;white-space:nowrap;min-height:40px;padding:8px 12px;font-size:14px;border-radius:12px;margin:0}
.np-acts .np-on{flex:1 1 auto}
html.np-open .sh-fab{visibility:hidden!important}
.np-x{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:10px;background:transparent;color:var(--muted,#9aa3ad);font-size:15px;cursor:pointer}
.np-x:hover,.np-x:focus-visible{background:rgba(var(--accent-rgb),.14);color:var(--text)}
html[data-theme=light] .np-card{background:radial-gradient(120% 140% at 0 0,rgba(var(--accent-rgb),.12),transparent 62%),#fff;box-shadow:0 18px 44px rgba(15,23,42,.18);border-color:rgba(var(--accent-rgb),.42)}
html[data-theme=light] #npCard#npCard .np-note{color:#5b6472!important}
@media(min-width:900px){.np-card{left:auto;right:24px;width:400px;margin:0}}
@media(prefers-reduced-motion:reduce){.np-card{transition:none}}
