/* "New version available" (Terry msg 1915), with shared/newver.js: a card that slides down from the top middle. The shared tokens (Light, Dark,
   Navy, the creator shell), with plain fallbacks. A short slide, never a fade; none at all for reduced motion. */
.tw-newver { position: fixed; top: 12px; left: 50%; z-index: 2147482990; transform: translateX(-50%); box-sizing: border-box;
  display: flex; align-items: center; gap: 16px; width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 12px 12px 12px 16px;
  background: rgb(var(--v3-surface, 255 255 255)); color: rgb(var(--v3-fg, 12 12 15)); border: 1px solid rgb(var(--v3-line, 234 234 239));
  border-radius: 12px; box-shadow: var(--v3-shadow-pop, 0 8px 28px rgba(0, 0, 0, .18)); font-size: 13px; line-height: 1.35; text-align: left;
  animation: tw-nv-down .22s cubic-bezier(.2, .8, .2, 1); }
.tw-newver[hidden] { display: none !important; }
@keyframes tw-nv-down { from { transform: translate(-50%, calc(-100% - 16px)); } to { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .tw-newver { animation: none; } }
.tw-nv-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tw-nv-t { font-weight: 600; font-size: 14px; }
.tw-nv-s { color: rgb(var(--v3-fg-2, 70 70 80)); }
.tw-nv-go { flex: none; height: 32px; padding: 0 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  background: rgb(var(--v3-surface-2, 246 246 248)); color: rgb(var(--v3-fg, 12 12 15)); border: 1px solid rgb(var(--v3-line-2, 222 222 230)); }
.tw-nv-go:hover { background: rgb(var(--v3-hover, 240 240 244)); }
.tw-nv-go:focus-visible, .tw-nv-x:focus-visible { outline: 2px solid rgb(var(--v3-accent, 232 52 78)); outline-offset: 2px; }
.tw-nv-x { flex: none; width: 24px; height: 24px; margin-left: -8px; border: 0; background: none; color: rgb(var(--v3-fg-3, 108 108 120));
  font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.tw-nv-x:hover { color: rgb(var(--v3-fg, 12 12 15)); }
/* a phone: full width inside 16px gutters, below the phone's status bar and the page's own top bar (so its menu, shop and search stay tappable),
   the button still on the right */
@media (max-width: 480px) {
  .tw-newver { top: calc(env(safe-area-inset-top, 0px) + var(--tw-topbar-h, 64px)); width: calc(100vw - 32px); max-width: none; gap: 10px; padding: 10px 10px 10px 14px; }
}
/* shared/resilient.js: the small "Reconnecting…" while TikWhizz restarts for an update (Terry msgs 3143–3150), bottom middle, above the
   bulk-action bar's spot; it only shows after 3 seconds of trying, and goes the moment TikWhizz answers again */
.tw-reconnect { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 2147482991; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3;
  background: rgb(var(--v3-surface, 255 255 255)); color: rgb(var(--v3-fg-2, 70 70 80)); border: 1px solid rgb(var(--v3-line, 234 234 239));
  box-shadow: var(--v3-shadow-pop, 0 8px 28px rgba(0, 0, 0, .18)); pointer-events: none; }
.tw-reconnect[hidden] { display: none !important; }
