/* NOTIFICATIONS — the bell and its list (10 Sep 2026, the social wave — FE-A).
   The bell is another .hbal.hbal--icon, so its size (48x42) and skin come
   from style.css; only the unread count is new. The popover is the header's
   own .pop (black panel, pink keyline, the notch) at 360px with a scrolling
   list, so it sits with + ADD and the account menu rather than beside them.
   The phone sheet reuses the row styles on the navy .ov__panel. */

/* the wrapper is .acct (position:relative, flex) like #addWrap; the header's
   hidden rule (rips-glue.css) hides it signed out */
.bellwrap{position:relative}
/* .hbal--icon's own three lines (style.css:168, 1788), copied so mute.js's
   querySelector('.hbal--icon') still finds the sound button first */
.hbal--bell{width:48px;padding:0;justify-content:center;position:relative;overflow:visible;cursor:pointer}
.hbal--bell:hover{border-color:rgba(255,255,255,.6);box-shadow:none}
.hbal--bell[aria-expanded="true"]{border-color:rgba(var(--acc-rgb),.75)}
.bell__n{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;box-sizing:border-box;
  background:var(--acc);color:#fff;border:2px solid var(--key);font:800 11px/15px var(--ui);font-style:normal;text-align:center;
  letter-spacing:0;pointer-events:none}
.bell__n[hidden]{display:none!important}

/* the popover: 360 wide, the list scrolls inside, the head does not */
.pop--notify{width:360px;min-width:360px;max-width:360px;padding:0;max-height:70vh;display:flex;flex-direction:column;overflow:hidden;
  right:auto;left:0}
.pop--notify::before{right:auto;left:16px}
.nf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px 10px;border-bottom:1px solid rgba(255,255,255,.13);flex:0 0 auto}
.nf-title{font-family:var(--display);font-size:19px;font-weight:900;font-style:italic;color:var(--acc);transform:var(--slant);transform-origin:left center}
.nf-mark{padding:5px 10px;border-radius:9px;background:#111;border:1.5px solid rgba(255,255,255,.2);color:#EDEDED;
  font:800 11px var(--ui);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:border-color .14s,color .14s}
.nf-mark:hover{border-color:var(--acc);color:var(--acc)}
.nf-mark:disabled{opacity:.4;cursor:default}
.nf-mark:disabled:hover{border-color:rgba(255,255,255,.2);color:#EDEDED}
.nf-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(var(--acc-rgb),.45) transparent}
.nf-empty{padding:26px 18px;text-align:center;font:600 14px/1.45 var(--ui);color:#A7B0BE}
.nf-group{padding:9px 15px 4px;font:800 11px var(--ui);letter-spacing:.12em;text-transform:uppercase;color:#8A94A4}
.nf-group + .nf-row{border-top:1px solid rgba(255,255,255,.08)}

/* a row: the face, the line, the time, the two pills */
.nf-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:start;padding:11px 15px;border-bottom:1px solid rgba(255,255,255,.08)}
.nf-row:last-child{border-bottom:0}
.nf-row.is-unread{background:rgba(var(--acc-rgb),.11)}
.nf-who{display:block;padding:0;margin:0;background:none;border:0;cursor:pointer;line-height:0}
.nf-who .soc-av{border-color:rgba(255,255,255,.35)}
.nf-who--sys{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#1a1a1a;border:2px solid rgba(255,255,255,.2);color:#A7B0BE;cursor:default}
.nf-who--sys svg{width:19px;height:19px}
.nf-body{min-width:0}
.nf-line{margin:0;font:600 14px/1.35 var(--ui);color:#EDEDED;overflow-wrap:anywhere}
.nf-name{padding:0;margin:0;background:none;border:0;font:800 14px/1.35 var(--ui);color:#fff;cursor:pointer}
.nf-name:hover{color:var(--acc-hi)}
.nf-line .soc-clan{font-size:11px;padding:1px 7px 1px 2px;vertical-align:2px}
.nf-line .soc-clan img{width:16px;height:16px}
.nf-foot{display:flex;align-items:center;gap:10px;margin-top:6px;min-height:20px}
.nf-time{font:700 12px var(--ui);color:#8A94A4;letter-spacing:.02em;white-space:nowrap}
.nf-acts{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
/* VIEW TRADE (Luke, 10 Sep) is the quiet one of the three: it is the same
   ghost as Decline but with no border weight competing with the pink Accept,
   because it opens a sheet rather than answering anything. Three pills fit
   beside the timestamp at 390 (measured), and .nf-acts wraps rather than
   clipping if a longer word ever lands in one of them. */
.nf-pill--view{background:transparent;color:#C9D1DC}
.nf-pill--view:hover{background:rgba(255,255,255,.08);color:#fff}
.nf-pill{height:28px;padding:0 12px;border-radius:9px;border:2px solid var(--key);background:#1a1a1a;color:#EDEDED;
  font:900 13px var(--display);font-style:italic;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;line-height:1;
  box-shadow:0 2px 0 var(--key);transition:background .14s,color .14s}
.nf-pill:hover{background:#262626}
.nf-pill:active{transform:translateY(1px);box-shadow:0 1px 0 var(--key)}
.nf-pill--yes{background:linear-gradient(180deg,var(--acc-hi),var(--acc) 48%,var(--acc-lo));color:#fff}
.nf-pill--yes:hover{background:linear-gradient(180deg,var(--acc-hi),var(--acc-hi) 40%,var(--acc))}
.nf-done{margin-left:auto;font:800 12px var(--ui);letter-spacing:.06em;text-transform:uppercase;color:#8A94A4}
.nf-done--err{color:#F0A8C4;text-transform:none;letter-spacing:0}

/* ---- the phone: the bell in .mhead, the list as a sheet ---------------- */
.mhead__bell{display:none}
@media (max-width:1023px){
  /* between the logo and the balance, pushed against the balance (the head
     is space-between; the auto margin takes the slack) */
  .mhead__bell{position:relative;display:grid;place-items:center;margin-left:auto;width:40px;height:34px;border-radius:10px;
    background:#080808;border:1.5px solid rgba(255,255,255,.28);cursor:pointer;padding:0}
  .mhead__bell:active{border-color:var(--acc)}
  .mhead__bell .bell__n{top:-6px;right:-6px}
  .mhead__bell[hidden]{display:none}
  /* THE SHEET WEARS THE STAGE SKIN (stage.css: the sky panel, white tiles
     with the key outline), not the popover's black — the first cut kept the
     popover's white ink and it vanished on the sky. Rows are white tiles like
     the profile's (.pf-row); an unread one is tinted pink. */
  .ov--notify .ov__h--plain{font-size:28px}
  .nf-sheethead{display:flex;justify-content:flex-end;padding:0 16px 8px;flex:0 0 auto;position:relative;z-index:1}
  .ov--notify .nf-mark{background:#fff;border:2px solid var(--key);color:var(--key);box-shadow:0 3px 0 var(--key);font:900 13px var(--display);font-style:italic;letter-spacing:.04em;padding:7px 12px;border-radius:10px}
  .ov--notify .nf-mark:disabled{opacity:.45}
  .ov--notify .nf-list{padding:4px 12px calc(20px + var(--mh-bot,0px))}
  .ov--notify .nf-group{color:#3A4354;font-size:12px;padding:12px 4px 6px}
  .ov--notify .nf-group + .nf-row{border-top:2px solid var(--key)}
  .ov--notify .nf-row{padding:12px 12px;border:2px solid var(--key);border-radius:12px;background:rgba(255,255,255,.9);margin-bottom:8px;grid-template-columns:44px minmax(0,1fr);gap:12px}
  .ov--notify .nf-row.is-unread{background:#FBE1EC}
  .ov--notify .nf-who .soc-av{width:44px!important;height:44px!important;border-color:var(--key)}
  .ov--notify .nf-who--sys{width:44px;height:44px;background:#fff;border-color:var(--key);color:#3A4354}
  .ov--notify .nf-line{font-size:16px;color:var(--key)}
  .ov--notify .nf-name{font-size:16px;color:var(--key)}
  .ov--notify .nf-name:hover{color:var(--acc-lo)}
  .ov--notify .nf-time{font-size:13px;color:#3A4354}
  .ov--notify .nf-pill{height:34px;padding:0 15px;font-size:15px;background:#fff;color:var(--key)}
  .ov--notify .nf-pill--yes{background:linear-gradient(180deg,var(--acc-hi),var(--acc) 48%,var(--acc-lo));color:#fff}
  /* on the phone sheet the ghost is a white plate like Decline, so VIEW TRADE
     reads as a button and not as a gap between two */
  .ov--notify .nf-pill--view{background:#fff;color:#3A4354}
  .ov--notify .nf-pill--view:hover{background:#F1F4F8;color:var(--key)}
  .ov--notify .nf-done{color:#3A4354}
  .ov--notify .nf-empty{font-size:16px;padding:40px 18px;color:var(--key)}
  /* the PROFILE sheet rows mobile.js paints (Notifications, Friends) share .mrow */
}

/* ---- THE TOAST'S INSIDES (round 2, §3.7): NOTIFY.toast paints a row into
   wallet.js's #walletToast — the icon, the line, one sticker button. The box
   itself is stage.css:2926's (white, the key line, the hard drop, 17px ink);
   the button is the VIEW ALL sticker (profile.css .pf-all). ---------------- */
/* CODEX B2: the box never catches clicks, only its button does. notify.js paints into
   wallet.js's shared #walletToast and used to leave `pointer-events:auto` inline on it;
   wallet.js's own hide (wallet.js:1408-1431) sets opacity only, so a wallet toast landing
   after a NOTIFY one left an invisible box up to 560px wide (stage.css:2926) swallowing
   taps over the pack's feet. Belt (this rule) and braces (notify.js sets the inline value
   to 'none' when there is no button).
   `!important` because this element is styled INLINE by wallet.js and by notify.js, and an inline
   value beats a plain rule - without it a toast that carried a button leaves `pointer-events:auto`
   inline and the hole stays open. The button is a DESCENDANT, so it is unaffected: a
   pointer-events:none box still lets a pointer-events:auto child take the click.
   The same file already uses !important on this element (stage.css:2926-2930). */
#walletToast{pointer-events:none!important}
#walletToast .nt-act,
#walletToast .nt-x{pointer-events:auto}
#walletToast .nt-row{display:inline-flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:8px 10px;width:100%;max-width:100%;min-width:0}
#walletToast .nt-ic{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 auto}
#walletToast img.nt-ic{object-fit:contain}
#walletToast .nt-ic svg{width:24px;height:24px}
#walletToast .nt-text{display:block;flex:1 1 auto;min-width:0;max-width:min(460px,calc(100vw - 104px));overflow-wrap:break-word;text-align:left}
#walletToast .nt-act{flex:0 0 auto;padding:7px 13px;background:#fff;border:2px solid var(--key);border-radius:10px;box-shadow:0 3px 0 var(--key);
  font:900 14px/1 var(--display);font-style:italic;text-transform:uppercase;letter-spacing:.04em;color:var(--key);cursor:pointer;white-space:nowrap}
#walletToast .nt-act:hover{background:var(--yellow,#FFFE9A)}
#walletToast .nt-act:active{transform:translateY(2px);box-shadow:0 1px 0 var(--key)}
#walletToast .nt-x{display:inline-grid;place-items:center;flex:0 0 auto;width:28px;height:28px;margin-left:-6px;border-radius:50%;
  color:currentColor;font:900 20px/1 var(--ui);opacity:.66;cursor:pointer}
#walletToast .nt-x:hover{opacity:1;background:rgba(255,255,255,.14)}
#walletToast .nt-x:active{transform:translateY(1px)}
html[data-layout="stage"] #walletToast .nt-x:hover{background:rgba(11,15,24,.08)}
@media (max-width:1023px){
  #walletToast .nt-act{min-height:40px;padding:9px 14px;font-size:15px}
  #walletToast .nt-x{width:34px;height:34px;font-size:22px}
}

/* an achievement row: the badge is the face, the whole row is the door (achievements.js) */
.nf-who--ach{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;border:2px solid var(--key);overflow:hidden;padding:0}
.nf-who--ach img{display:block;width:30px;height:30px;object-fit:contain}
.nf-who--ach svg{width:19px;height:19px}
.nf-row--ach{cursor:pointer}
.nf-row--ach:hover .nf-line{color:#fff}
@media (max-width:1023px){
  .ov--notify .nf-who--ach{width:44px;height:44px;border-color:var(--key)}
  .ov--notify .nf-who--ach img{width:34px;height:34px}
}

/* THE FOLLOW-BACK SHORTCUT (PLAN-FOLLOWERS §3.2). It says what the tap does:
   one tap makes the pair friends, and friends see your friends-only clips. The
   hint wraps above the button on a narrow row rather than truncating. */
.nf-acts--follow{align-items:center}
.nf-hint{flex:1 1 140px;min-width:0;font:600 12px/1.3 var(--ui);color:#8A94A4;text-align:right}
@media (max-width:1023px){
  .ov--notify .nf-hint{color:#3A4354;font-size:13px;text-align:left}
  .nf-acts--follow{width:100%;justify-content:space-between}
}
