/* FLIP LEDGER — notify.css: header bell + anchored notification dropdown */

/* ---- app-bar right cluster + bell ---- */
.appbar .ab-right { display: flex; align-items: center; gap: 8px; flex: none; }
.appbar .ab-bell { position: relative; }
.appbar .ab-bell.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.appbar .ab-bell .nbadge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 99px; background: var(--bad); color: #fff; font: 700 10px/1 var(--f-mono);
  display: inline-flex; align-items: center; justify-content: center; pointer-events: none;
  border: 2px solid var(--paper);
}

/* ---- dropdown panel ---- */
.npanel {
  position: fixed; z-index: 200; width: 380px; background: var(--card); border: 1px solid var(--hair2);
  border-radius: 20px; box-shadow: var(--lift-lg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.97) translateY(-4px); transform-origin: top right;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.npanel.up { opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease); }
.nf-ar { position: absolute; top: -7px; width: 13px; height: 13px; background: var(--card); transform: rotate(45deg);
  border-left: 1px solid var(--hair2); border-top: 1px solid var(--hair2); border-radius: 3px 0 0 0; }

.nf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 15px 11px; }
.nf-h .ttl { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; min-width: 0; }
.nf-h .ttl .cnt { font: 700 11px/1 var(--f-mono); color: #fff; background: var(--brand); border-radius: 99px; padding: 4px 7px; flex: none; }
.nf-h .ttl .bk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--mut); margin: -4px 2px -4px -4px; }
.nf-h .ttl .bk:active { background: var(--paper); color: var(--ink); }
.nf-h .ttl .bk .i { width: 18px; height: 18px; }
.nf-h-acts { display: flex; align-items: center; gap: 3px; flex: none; }
.nf-h-acts button { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; color: var(--mut); }
.nf-h-acts button:active { background: var(--paper); color: var(--ink); }
.nf-h-acts button .i { width: 18px; height: 18px; }

.nf-tabs { display: flex; gap: 5px; padding: 0 15px 8px; border-bottom: 1px solid var(--hair2); }
.nf-tabs button { font-size: 13px; font-weight: 650; color: var(--mut); padding: 7px 12px; border-radius: 9px; }
.nf-tabs button.on { color: var(--brand-ink); background: var(--brand-soft); }

.nf-list { overflow-y: auto; flex: 1; padding: 3px 6px 6px; -webkit-overflow-scrolling: touch; }
.nf-list::-webkit-scrollbar, .nf-set::-webkit-scrollbar { display: none; }
.nf-cap { font: 600 9.5px/1.3 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--mut2); padding: 11px 10px 4px; }

.nf { display: flex; gap: 10px; padding: 9px; border-radius: 12px; cursor: pointer; position: relative; align-items: flex-start; transition: background .12s var(--ease); }
.nf:active { background: var(--paper); }
.nf.unread { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.nf-lead { flex: none; }
.nf-lead .ava { width: 30px; height: 30px; font-size: 11px; }
.nf-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); color: var(--ink2); }
.nf-ic .i { width: 16px; height: 16px; }
.nf-ic.bad { background: var(--bad-soft); color: var(--bad); }
.nf-ic.warn { background: var(--warn-soft); color: var(--warn); }
.nf-ic.ok { background: var(--ok-soft); color: var(--ok); }
.nf-ic.info { background: var(--info-soft); color: var(--info); }
.nf-ic.brand { background: var(--brand-soft); color: var(--brand-ink); }
.nf-c { flex: 1; min-width: 0; }
.nf-t { font-size: 13px; line-height: 1.35; color: var(--ink); }
.nf-t b { font-weight: 700; }
.nf-s { font-size: 11.5px; color: var(--mut); margin-top: 2px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.nf-b { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 650; color: var(--ink2); background: var(--paper); border: 1px solid var(--hair); }
.nf-b:active { transform: scale(.96); }
.nf-b.pri { background: var(--brand); border-color: transparent; color: #fff; }
.nf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; padding-top: 2px; }
.nf-time { font-size: 10.7px; color: var(--mut2); white-space: nowrap; }
.nf-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--brand); flex: none; }

.nf-empty { text-align: center; padding: 46px 20px; }
.nf-empty .ei { width: 52px; height: 52px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.nf-empty .ei .i { width: 26px; height: 26px; }
.nf-empty h4 { font-size: 15.5px; font-weight: 700; }
.nf-empty p { font-size: 13px; color: var(--mut); margin-top: 5px; }

.nf-foot { flex: none; padding: 10px 13px; border-top: 1px solid var(--hair2); }
.nf-foot button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); padding: 6px 8px; border-radius: 8px; }
.nf-foot button .i { width: 16px; height: 16px; }

/* ---- settings view ---- */
.nf-set { overflow-y: auto; flex: 1; padding: 8px 6px 12px; }
.nf-sec { font: 600 9.5px/1.3 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--mut2); padding: 12px 12px 8px; }
.nf-chans { display: flex; gap: 8px; padding: 0 11px 8px; flex-wrap: wrap; }
.nf-chan { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ink2); white-space: nowrap;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 10px; padding: 9px 13px; }
.nf-chan.on { color: var(--brand-ink); background: var(--brand-soft); border-color: transparent; }
.nf-chan .i { width: 16px; height: 16px; }
.nf-prow { display: flex; align-items: center; gap: 13px; padding: 11px; border-radius: 12px; }
.nf-pic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--paper); color: var(--ink2); }
.nf-pic .i { width: 18px; height: 18px; }
.nf-pt { flex: 1; min-width: 0; }
.nf-pt b { font-size: 13.7px; font-weight: 650; display: block; }
.nf-pt span { font-size: 12px; color: var(--mut); display: block; margin-top: 2px; line-height: 1.4; }
.nf-tgl { width: 44px; height: 26px; border-radius: 99px; background: var(--hair); position: relative; flex: none; transition: background .16s var(--ease); }
.nf-tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .16s var(--ease); }
.nf-tgl.on { background: var(--brand); }
.nf-tgl.on::after { transform: translateX(18px); }
