/* v669: slimmer docked bar (44px plus the safe area, 11px labels, 44px
   tap targets) that tucks away while scrolling down (html.nav-tuck, set by
   wallet-nav.js). The extra bottom padding shrinks to match. Normal browsers
   still keep the floating glass pill; every rule here needs html.in-wallet.
   v667: inside a wallet or other in-app browser (html.in-wallet, set by
   wallet-nav.js), the tab bar docks flush to the bottom edge, full width,
   on solid black with a thin gold top line. Normal browsers keep the
   floating glass pill. */
html.in-wallet body .tabbar {
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 0;
  height: calc(44px + env(safe-area-inset-bottom, 0px));
  align-items: stretch;
  gap: 0;
  padding: 0 0.25rem env(safe-area-inset-bottom, 0px);
  transition: transform 220ms ease;
  will-change: transform;
  border: 0;
  border-top: 1px solid rgba(236, 184, 62, 0.55);
  border-radius: 0;
  background: #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

html.in-wallet body .tabbar a,
html.in-wallet body .tabbar button {
  min-height: 44px;
  height: 44px;
  justify-content: center;
  gap: 1px;
  padding: 0 1px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

html.in-wallet body .tabbar a span,
html.in-wallet body .tabbar button span {
  white-space: nowrap;
}

html.in-wallet body .tabbar a .tab-icon,
html.in-wallet body .tabbar button .tab-icon {
  width: 1.9rem;
  height: 1.3rem;
}

html.in-wallet body .tabbar a svg,
html.in-wallet body .tabbar button svg {
  width: 1.12rem;
  height: 1.12rem;
}

/* Tucked: slid fully below the bottom edge while scrolling down. */
html.in-wallet.nav-tuck body .tabbar {
  transform: translateY(calc(100% + 2px));
}

@media (prefers-reduced-motion: reduce) {
  html.in-wallet body .tabbar {
    transition: none;
  }
}

/* Keep the last content clear of the docked bar. */
html.in-wallet body.page-sit .app {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px + 1.75rem);
}
