/* Scalewards version badge (25 Nov 2026 PKT). Small, slightly grey, fixed bottom-left on every page and route.
   Never takes clicks (pointer-events:none), sits clear of the TEST tag (bottom-right) and the voice button (right),
   respects safe-area insets, hidden when printing. On phones it sits inside the sticky header (see below). */
.sw-ver{position:fixed;left:max(8px,env(safe-area-inset-left));bottom:max(6px,env(safe-area-inset-bottom));z-index:99998;pointer-events:none;
 font:500 11px/1.4 'Source Sans 3',system-ui,sans-serif;letter-spacing:.01em;color:var(--sw-muted,#5E6D74);
 background:color-mix(in srgb,var(--sw-paper,#fff) 88%,transparent);border:1px solid var(--sw-line,#D9DEDE);border-radius:999px;padding:1px 8px;
 white-space:nowrap;max-width:calc(100vw - 210px);overflow:hidden;text-overflow:ellipsis}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sw-ver{color:#A3B0B6;background:color-mix(in srgb,#1A1A1A 88%,transparent);border-color:#3A4449}}
:root[data-theme="dark"] .sw-ver{color:#A3B0B6;background:color-mix(in srgb,#1A1A1A 88%,transparent);border-color:#3A4449}
/* Phones: a fixed bottom corner can always come to rest over a field while scrolling, and the header row is too narrow
   for logo + badge + the red button. So on phones the sticky dark header gets a thin band at its bottom and the badge
   sits there, full width: always on screen, never over content, the logo or the red button. */
@media (max-width:480px){
 .lcx-header,header.top{padding-bottom:16px;box-sizing:border-box}
 .sw-ver{top:calc(61px + env(safe-area-inset-top));bottom:auto;left:max(16px,env(safe-area-inset-left));z-index:61;font-size:10px;line-height:14px;padding:0;border:0;
  background:transparent;color:#A3B0B6;max-width:calc(100vw - 32px)}
}
/* desktop: the page footers end above the badge, so at the very bottom it never sits on footer text */
@media (min-width:481px){footer.lcx-lean,footer.foot{padding-bottom:calc(30px + env(safe-area-inset-bottom))!important}}
@media print{.sw-ver{display:none!important}}
