/* 🔔 Notifications (notify.js): the bell's count, its list under it, and the popups (bottom right, over the page). */
.nt-bell { position: relative; }
.nt-bell .nt-count { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; border-radius: 999px; background: var(--bad); color: var(--bad-contrast); font: 700 .68rem/1.1rem var(--font, system-ui); text-align: center; }
.nt-panel { position: fixed; z-index: 320; width: min(360px, calc(100vw - 1rem)); max-height: min(70vh, 520px); overflow: auto; padding: .75rem; box-shadow: 0 12px 32px rgba(16, 24, 40, .22); }
.nt-h { margin: 0 0 .5rem; font-size: 1rem; }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nt-main { display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; width: 100%; padding: .55rem .5rem; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nt-main:hover { background: var(--surface-2, #f2f4f7); }
.nt-item.unread .nt-main { background: var(--accent-soft, #ecfdf3); }
.nt-ico { grid-row: span 2; font-size: 1.2rem; line-height: 1.3; }
.nt-when { grid-column: 2; font-size: .78rem; color: var(--text-3, #667085); }
.nt-none { margin: .25rem 0; }
.nt-pops { position: fixed; z-index: 330; right: calc(1rem + env(safe-area-inset-right)); bottom: max(5rem, calc(4.4rem + env(safe-area-inset-bottom))); display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
/* A popup: ChoreBoy's popup cards' feel (spawned.css). At ✨ Full it springs up from below and a light sweeps across it
   once it lands; leaving (by itself or ✕) it slides out to the right. Subtle: a short fade in and out. Off, and reduced
   motion: it just shows and goes. The countdown bar along its bottom is fx.css's .fx-count-bar (stands still at Off). */
.nt-pop { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: .25rem; padding: .35rem .35rem .45rem; border-radius: 12px; background: var(--surface, #fff); color: var(--text, #101828); border: 1px solid var(--border, #e4e7ec); box-shadow: 0 10px 28px rgba(16, 24, 40, .22); pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.nt-pop-main { display: flex; gap: .5rem; align-items: flex-start; flex: 1; padding: .4rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nt-pop-x { flex: 0 0 auto; border: 0; background: none; color: var(--text-3, #667085); font-size: .95rem; padding: .35rem .5rem; cursor: pointer; border-radius: 8px; }
.nt-pop-x:hover { background: var(--surface-2, #f2f4f7); }
/* 📱 ✕ is a finger-sized target on a phone. */
@media (max-width: 600px), (pointer: coarse) { .nt-pop-x { min-width: 44px; min-height: 44px; } }
.nt-pop.nt-pop-out { pointer-events: none; }
html[data-fx="full"] .nt-pop { animation: nt-spring .46s cubic-bezier(.2, 1.35, .4, 1) both; }
html[data-fx="full"] .nt-pop::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent, #2e90fa) 16%, transparent) 50%, transparent 65%); transform: translateX(-100%); animation: nt-sweep .9s ease-out .32s both; }
html[data-fx="full"] .nt-pop.nt-pop-out { animation: nt-out .2s ease-in both; }
html[data-fx="subtle"] .nt-pop { animation: nt-fade .18s ease-out both; }
html[data-fx="subtle"] .nt-pop.nt-pop-out { animation: nt-fade-out .16s ease-in both; } /* (its own name: the same one reversed wouldn't restart) */
@keyframes nt-spring { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes nt-sweep { to { transform: translateX(100%); } }
@keyframes nt-out { to { opacity: 0; transform: translateX(28px) scale(.97); } }
@keyframes nt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nt-pop, .nt-pop::after { animation: none !important; transition: none !important; }
  .nt-pop::after { display: none; }
}
