/* Alerts and notifications in the planner (public/notify.js): the bell, the panel, settings switches, the toast and the install prompt.
   Also the store apps' differences (public/native.js adds body.native, body.native-ios or body.native-android). Uses the tokens in style.css. */
.nbell{position:relative;flex:none;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;border-color:var(--line);color:var(--ink)}
.nbell svg{width:21px;height:21px}
.nbell[aria-expanded=true]{background:var(--soft)}
.nbadge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--accent-ink);color:var(--on-accent,#fff);font:600 .68rem/19px var(--sans);text-align:center;box-shadow:0 0 0 2px var(--surface);pointer-events:none}

.npanel{position:fixed;z-index:60;top:72px;right:max(16px,calc((100vw - 1440px) / 2 + 16px));width:min(420px,calc(100vw - 32px));max-height:min(660px,calc(100vh - 96px));display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-l);overflow:hidden}
.nhead{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.7rem .8rem .7rem 1.1rem;border-bottom:1px solid var(--line)}
.nhead b{font:400 1.25rem/1.2 var(--serif);color:var(--ink);letter-spacing:-.01em}
.nhead .row{gap:.4rem}
.npanel .nhead button{min-height:36px;padding:.3rem .85rem;font-size:.84rem}
.npanel .nhead .sq{flex:none;width:36px;height:36px;min-height:36px!important;padding:0;border:0;border-radius:50%;background:var(--soft);box-shadow:none;display:grid;place-items:center;font-size:1.2rem;line-height:1}  /* the close: a round button like the console sheets' ×, never a stretched pill */
@media(pointer:coarse){.npanel .nhead .sq{width:44px;height:44px;min-height:44px!important}}
.nbody{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;min-height:0}
.nitem{display:flex;align-items:flex-start;justify-content:flex-start;gap:.6rem;width:100%;text-align:left;border:0;border-radius:0;background:none;padding:.55rem 1rem .6rem;min-height:0;font-weight:400;color:var(--body);line-height:1.35}
.ngrp>.nitem+.nitem{border-top:1px solid var(--line)}
.nitem:hover{background:var(--soft)}
.nitem:focus-visible{outline-offset:-2px}
.ndot{width:8px;height:8px;border-radius:50%;margin-top:.42rem;flex:none;background:transparent}
.nnew .ndot{background:var(--accent)}
.ntext{display:grid;gap:.1rem;min-width:0}
.nitem .ntext{flex:1}
.ntext b{color:var(--ink);font-weight:500;font-size:.92rem;overflow-wrap:anywhere}
.nnew .ntext b{font-weight:600}
.ntext span{font-size:.86rem;overflow-wrap:anywhere}
.ntext .nrow{display:flex;align-items:baseline;gap:.6rem;min-width:0}
.nrow b{flex:1;min-width:0}
.nrow time{flex:none;color:var(--mute);font-size:.76rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.ntext .ndet{color:var(--mute);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nitem .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nempty{padding:1.4rem 1.1rem;margin:0}

/* Notification Settings (all three apps): "This device" with one switch, then "What to hear about" as iOS-style grouped lists (48px rows, thin
   lines), the problem line only when something blocks it, Send a Test as a quiet text button, and a small "Saved" pill that fades. */
.nset{position:relative;padding:.25rem 1rem 1.25rem}
.nset h3{margin:1rem .25rem .5rem;font:600 1rem/1.3 var(--sans);color:var(--ink)}
.nset h4{margin:.9rem .25rem .35rem;font:600 .75rem/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.nset h3+h4{margin-top:.25rem}
.nsg{background:var(--soft);border-radius:12px;overflow:hidden}
.nsw,.nset .nsw{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;padding:.35rem .9rem;box-sizing:border-box;cursor:pointer;font-size:.95rem;line-height:1.3;color:var(--ink)}
.nsg>.nsw+.nsw{border-top:1px solid var(--line)}
.nsw span{min-width:0}
.nst{margin:.5rem .25rem 0;font-size:.875rem;line-height:1.4;color:var(--body)}.nst[hidden]{display:none}
.nset .warn{margin:.4rem .25rem 0}.nset .warn:empty{display:none}
/* Send a Test Notification: a row in the This device group, under its switch (as in iOS Settings), not a loose link */
.npanel .nset .ntest{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:48px;margin:0;padding:.35rem .9rem;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;text-align:left;font-size:.95rem;font-weight:500;color:var(--accent-ink);cursor:pointer}
.npanel .nset .ntest:hover,.npanel .nset .ntest:active{background:color-mix(in srgb,var(--ink) 5%,transparent);text-decoration:none}.npanel .nset .ntest[hidden]{display:none}
.nsaved{position:sticky;bottom:.5rem;width:max-content;margin:1rem auto 0;padding:.35rem .9rem;border-radius:999px;background:var(--ink);color:var(--surface);font-size:.8125rem;font-weight:600;opacity:0;transition:opacity .2s;pointer-events:none}
.nsaved.on{opacity:1}
/* the switches: the shared iOS switch in style.css (input[role=switch]) */

.ntoast,.ninst{position:fixed;z-index:70;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom));width:min(460px,calc(100vw - 24px));display:flex;align-items:center;gap:.5rem;border-radius:var(--r);box-shadow:var(--shadow-l)}
.ntoast{background:var(--ink);color:#fff;padding:.3rem .4rem .3rem .2rem}
.ntoast .ntt{flex:1;min-width:0;display:grid;gap:.1rem;justify-items:start;text-align:left;background:none;border:0;color:#fff;padding:.55rem .8rem;min-height:0;font-weight:400;line-height:1.35}
.ntt b{font-weight:600;overflow-wrap:anywhere}.ntt span{opacity:.8;font-size:.86rem;overflow-wrap:anywhere}
.ntoast .nnote{margin:0}
.ntoast .sq{width:38px;min-height:38px;background:transparent;border-color:rgba(255,255,255,.28);color:#fff}
.ninst{background:var(--surface);border:1px solid var(--line);padding:.75rem .8rem .75rem 1.1rem;flex-wrap:wrap;justify-content:space-between}
.ninst .ntext{flex:1;min-width:12rem}.ninst .ntext b{font-weight:600}
.nupd{top:calc(12px + env(safe-area-inset-top));bottom:auto}
.ninst .row{gap:.4rem}.ninst button{min-height:38px;padding:.35rem .95rem;font-size:.86rem}
body.ninst-on .ntoast{bottom:calc(112px + env(safe-area-inset-bottom))}
@media(max-width:859px){
  .npanel{top:66px;left:12px;right:12px;width:auto;max-height:calc(100vh - 66px - 88px - env(safe-area-inset-bottom))}
  .ntoast,.ninst{bottom:calc(84px + env(safe-area-inset-bottom))}
  body.ninst-on .ntoast{bottom:calc(184px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.nsw input,.nsw input::after,.nsaved{transition:none}}
@media print{.nbell,.npanel,.ntoast,.ninst{display:none!important}}

/* The store apps sell nothing and point to no other way to buy (App Store 3.1.1 and 3.1.3, Google Play payments): the planner, domains, texts,
   Photo Groups' upgrade and printed cards are bought on the website. The scripts leave these out in the apps (couple.js, pgtool.js, tools.js,
   partner.js, helpcenter.js); this hides whatever is left, the same list as a planner's branded app (pbrand.js). .nat-only: neutral words shown instead. */
body.native .buy-only,body.native a[href^="/start"],body.native a[href^="/compare"],body.native [data-pga^="buy-"],body.native [data-pga="upgrade"],body.native [data-xa="dom-tab"][data-id="buy"],body.native form[data-xform="dom-search"],body.native form[data-xform="dom-buy"],body.native [data-xa="dom-renew"],body.native form[data-xform="print-order"]{display:none!important}
.nat-only{display:none}body.native .nat-only{display:block}
/* The page can run under the status bar (iOS with viewport-fit=cover, Android 15+ edge to edge), so the sticky header, the planning bar and the panel
   move below it. Where there is no inset these add nothing. */
body.native .hdr{padding-top:env(safe-area-inset-top)}
body.native #login{padding-top:env(safe-area-inset-top)}
body.native .tool{top:calc(64px + env(safe-area-inset-top))}
body.native .npanel{top:calc(72px + env(safe-area-inset-top))}
@media(max-width:859px){body.native .tool{top:calc(58px + env(safe-area-inset-top))}body.native .npanel{top:calc(66px + env(safe-area-inset-top))}}
/* dark mode: --ink is light there, so the toast keeps a dark card with light text (never ivory on ivory) */
html[data-theme=dark] .ntoast{background:#2E2533;color:#F8F3EC;box-shadow:0 12px 32px rgba(0,0,0,.45),inset 0 0 0 .5px rgba(255,255,255,.12)}
html[data-theme=dark] .ntoast .ntt{color:#F8F3EC}
html[data-theme=dark] .ntoast .sq{color:#F8F3EC;border-color:rgba(255,255,255,.28)}
/* The planner's bell in the header beside Search: the console's look (owner.css .tnbell), the unread count on it */
.hbell{display:grid;place-items:center;border:0;background:none;border-radius:50%;color:var(--ink)}.hbell[hidden]{display:none}.hbell .nbadge{top:3px;right:3px} /* its size and states beside Search: planner.css */
/* The console's and the portal's bells match the planner's: a circle with no border or fill, a soft tint only while pressed, or on hover with a mouse
   (a tap never leaves a stuck hover; the open panel shows itself) */
:root :is(.owho,.obar,.pp-row) button.nbell{border:0;border-radius:50%;background:transparent;box-shadow:none}
:root :is(.owho,.obar,.pp-row) button.nbell:is(:active,[data-press]){background:color-mix(in srgb,var(--ink) 9%,transparent)}
@media(hover:hover) and (pointer:fine){:root :is(.owho,.obar,.pp-row) button.nbell:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}}
/* The console's offer to turn on notifications (owner-notify.js), on the Install card's look: the words, then Turn On and Not Now */
.tnask{z-index:71;align-items:flex-start}.tnask .ntext{display:grid;gap:.2rem}.tnask .ntext span{color:var(--mute);font-size:.9rem}.tnask .warn:empty{display:none}
.tnask-acts{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}.tnask-acts button{min-height:40px;padding:.35rem 1rem;font-size:.88rem}
@media(max-width:520px){.tnask-acts{width:100%}.tnask-acts button{flex:1}}

/* The list's sections (Today, This Week, Earlier), a bundle of one kind (opens to show each), and swipe to mark read (public/nlist.js) */
.nsec{margin:0;padding:.75rem 1rem .3rem;font:600 .72rem/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.nsec:first-child{padding-top:.55rem}
.ngrp>.nbun+.nitem,.ngrp>.nitem+.nbun,.ngrp>.nbun+.nbun,.nbun-b>.nitem+.nitem,.nbun-b{border-top:1px solid var(--line)}
.nbun-b{background:var(--soft)}
.nbun-b>.nitem{padding-left:1.6rem}
.nbun-h .ncount{flex:none;color:var(--accent-ink);font-size:.76rem;font-weight:600}
.nchev{flex:none;align-self:center;color:var(--mute);font-style:normal;font-size:1.1rem;transition:transform .2s}
.nbun-h[aria-expanded=true] .nchev{transform:rotate(90deg)}
.npanel .nitem{touch-action:pan-y;position:relative;transition:transform .2s}
.npanel .nitem.nswipe{transition:none;background:var(--soft)}
.npanel .nitem.nswipe-go{box-shadow:inset -4px 0 0 var(--accent)}
@media (prefers-reduced-motion:reduce){.npanel .nitem,.nchev{transition:none}}
/* the close: the same small circle outline as Help & Support's (planner.css #t-help .kb-x): a true circle at every size, a thin outline, no fill */
.npanel .nhead .sq{--nqx:36px;box-sizing:border-box;width:var(--nqx)!important;height:var(--nqx)!important;min-width:var(--nqx)!important;min-height:var(--nqx)!important;max-height:var(--nqx);aspect-ratio:1;padding:0!important;border:1.5px solid var(--line-strong)!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:var(--ink);font-size:1.15rem;line-height:1;font-weight:400}
@media(pointer:coarse){.npanel .nhead .sq{--nqx:44px}}
.npanel .nhead .sq:is(:hover,:active){background:var(--soft)!important}
