.mobile-bottom-bar { display: none; }
@media (max-width: 900px) {
  :root { --bottom-bar-space: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: var(--bottom-bar-space); }
  body { padding-bottom: var(--bottom-bar-space); }
  .mobile-bottom-bar {
    --bar-shrink: 0;
    --bar-edge: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    position: fixed; z-index: 45; left: 50%; right: auto; transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: max(228px, calc(100% - var(--bar-edge) - var(--bar-edge) - 68px * var(--bar-shrink)));
    max-width: calc(520px - 68px * var(--bar-shrink)); margin: 0;
    padding: calc(6px - 6px * var(--bar-shrink)) calc(10px - 10px * var(--bar-shrink));
    gap: 2px; border: 0; border-radius: 999px; background: #fff; color: #646464; box-shadow: none;
    transition: width .18s ease-out, max-width .18s ease-out, padding .18s ease-out;
  }
  .bottom-bar-item {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 999px;
    background: transparent; color: inherit; font: inherit; cursor: pointer; line-height: 1.25;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .bottom-bar-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
  .bottom-bar-icon svg { width: calc(20px - 2px * var(--bar-shrink)); height: calc(20px - 2px * var(--bar-shrink)); transition: width .18s ease-out, height .18s ease-out; }
  .bottom-bar-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .bottom-bar-item[aria-current] .bottom-bar-icon, .bottom-bar-item[aria-expanded="true"] .bottom-bar-icon { color: #000; }
  .bottom-bar-item:focus-visible { outline: 2px solid #222; outline-offset: -2px; }
  .header-inner #navigation.is-open { bottom: var(--bottom-bar-space); height: calc(100vh - 72px - var(--bottom-bar-space)); height: calc(100dvh - 72px - var(--bottom-bar-space)); }
  .toast { bottom: var(--bottom-bar-space); }
  body:has(dialog[open]) .mobile-bottom-bar, body.mobile-keyboard-open .mobile-bottom-bar { visibility: hidden; pointer-events: none; }
  body.mobile-menu-open::after { content: ''; position: fixed; inset: 72px 0 0; z-index: 29; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-bar, .bottom-bar-icon svg { transition: none; }
}
