/* ==========================================================================
   Offline: riga nella barra laterale, avviso in alto, finestra dei dettagli
   ========================================================================== */
.off-row {
  position: relative; width: 100%; border: 0; background: none; font: inherit; color: var(--ink-2);
  text-align: left; cursor: pointer; border-radius: 10px; overflow: hidden;
}
.off-row:hover { background: var(--fill); color: var(--ink); }
.off-row.ready .nav-ic { color: var(--ok); }
.off-row.warn .nav-ic { color: var(--hint); }
.off-row.busy .nav-ic { color: var(--ink); animation: offBob 1.2s ease-in-out infinite; }
.off-bar { width: 56px; height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; flex: none; margin-left: auto; }
.off-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink-2); border-radius: 2px; transition: width 0.3s; }
@keyframes offBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }

.off-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; margin-left: auto; margin-right: 6px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--hint) 45%, transparent);
  background: color-mix(in srgb, var(--hint) 14%, transparent); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.off-pill svg { width: 16px; height: 16px; color: var(--hint); }
.off-pill + .top-search { margin-left: 0; }

.nb-modal.off-modal { width: min(560px, 100%); }
.off-hero { display: flex; gap: 14px; align-items: flex-start; }
.off-hero > svg { width: 34px; height: 34px; flex: none; color: var(--ink-3); }
.off-hero.ok > svg { color: var(--ok); }
.off-hero h3 { margin: 0 0 2px; font-size: 18px; }
.off-hero p { margin: 0; color: var(--ink-3); font-size: 14px; }
.off-prog { height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; margin: 14px 0 0; }
.off-prog i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 0.3s; }
.off-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 6px; }
.off-cols h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.off-cols ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.off-cols li { margin: 3px 0; }
.off-note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 520px) { .off-cols { grid-template-columns: 1fr; } }

/* nuova versione pronta (pwa.js): resta finché non si ricarica o si chiude */
.update-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 101;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.update-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.update-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-toast .update-x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.7; }
.update-toast .btn { background: var(--on-solid); color: var(--solid); border-color: transparent; }
