/* omnifit: Angolo notifiche (js/notify.js): la campanella nella barra in alto e nel Social, la pagina «Notifiche».
   Solo i colori del tema (chiaro e scuro). Prefisso nt-. */

/* ---------- campanella nella barra in alto ---------- */
/* sul PC subito dopo i tasti (lo spazio fra i gruppi della barra è 18 px) */
.nt-bell { position: relative; width: 34px; height: 34px; color: var(--ink); }
.nt-bell svg { width: 20px; height: 20px; }
.nt-bell .bb-badge { position: absolute; top: 0; right: -3px; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.tb-row > .nt-bell { margin-left: -12px; }

/* ---------- pagina Notifiche ---------- */
#notifDlg .sh-body { padding-top: 4px; }
.nt-sec { max-width: 600px; padding-top: 12px; }
.nt-h { margin: 4px 0 4px; font: 600 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nt-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; padding: 0; list-style: none; }
.nt-row { border-radius: 12px; }
/* da leggere quando la pagina si è aperta */
.nt-row.is-new { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nt-main {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px;
  border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.nt-main:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.nt-main:active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nt-av { position: relative; flex: none; display: grid; }
.nt-avf {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  font: 700 18px/1 var(--f-display);
}
/* il tipo: pallino colorato in basso a destra dell'avatar */
.nt-kind {
  position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--k, var(--accent)); color: var(--surface); box-shadow: 0 0 0 2px var(--surface);
}
.nt-kind svg { width: 12px; height: 12px; }
.nt-t { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.nt-t b { font-weight: 700; }
.nt-ago { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
/* Accetta / Rifiuta sotto il testo della richiesta di follow */
.nt-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 10px 66px; }
.nt-btns .btn { min-width: 88px; justify-content: center; }
.nt-more { display: flex; justify-content: center; max-width: 600px; padding: 14px 0 4px; }
.nt-loading { padding: 8px 0; }
.nt-none { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); }
.nt-state { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; margin: 36px auto; text-align: center; color: var(--muted); line-height: 1.5; }
.nt-state p { margin: 0; }
/* notifiche sul telefono (in fondo alla pagina) */
.nt-push { padding-top: 24px; }
.nt-note { max-width: 560px; margin: 8px 0 0 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---------- telefono ---------- */
@media (max-width: 820px) {
  /* campanella in alto a destra (dove c'era il filtro degli sport), con l'icona vicina al bordo della pagina;
     per farle posto le frecce delle settimane un po' più strette (la barra resta su una riga) */
  .tb-row > .nt-bell { width: 38px; height: 40px; margin: 0 -6px 0 0; }
  .tb-row:has(> .nt-bell:not([hidden])) .weeknav .icon-btn { width: 32px; }
  .nt-btns .btn { min-height: 36px; }
}
/* telefoni fino a 400 px: un filo di spazio in meno fra i pezzi e nel nome dell'app */
@media (max-width: 400px) {
  .tb-row:has(> .nt-bell:not([hidden])) { gap: 2px; }
  .tb-row:has(> .nt-bell:not([hidden])) .brand-name { font-size: 25px; }
}

/* «Attiva le notifiche» all'avvio (js/notify.js, pushAskStart): una finestra al centro, solo colori del tema */
#pushAskDlg {
  width: min(calc(100vw - 32px), 380px); box-sizing: border-box; border: 0; border-radius: 22px; padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgb(0 0 0 / .35);
}
#pushAskDlg::backdrop { background: rgb(12 10 8 / .58); }
.pa { display: grid; justify-items: center; gap: 10px; padding: 24px 20px 14px; text-align: center; font-family: var(--f-body); }
.pa-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.pa-ic svg { width: 28px; height: 28px; }
.pa-h { margin: 2px 0 0; font: 700 21px/1.2 var(--f-body); }
.pa-p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.pa-steps { margin: 0; padding-left: 20px; text-align: left; font-size: 14.5px; line-height: 1.5; justify-self: stretch; }
.pa-go { width: 100%; min-height: 50px; justify-content: center; margin-top: 6px; border-radius: 25px; font-size: 16px; }
.pa-go svg { width: 18px; height: 18px; }
.pa-skip { width: 100%; min-height: 44px; border: 0; background: none; color: var(--muted); font: 600 14.5px/1 var(--f-body); cursor: pointer; }
