.mobile-functions{display:none}
@media(max-width:800px){
  .bottom-nav.mobile-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:4px max(6px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));z-index:30}
  .mobile-navigation>a,.mobile-navigation>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:#4f5b70;font-size:12px;line-height:1.3;white-space:nowrap;cursor:pointer}
  .mobile-navigation svg,.mobile-function-grid svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-navigation [aria-current=page],.mobile-navigation .is-active,.mobile-navigation button[aria-expanded=true]{background:#eaf2ff;color:#24549e;font-weight:700}
  body:has(.mobile-navigation) .page{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .mobile-functions[open]{display:flex;flex-direction:column;position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;max-height:85vh;max-height:85dvh;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:0;border-radius:20px 20px 0 0;background:#fff;color:var(--text);overflow:hidden;box-shadow:0 -12px 40px #18203326}
  .mobile-functions::backdrop{background:#18203366}
  .mobile-functions header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin-bottom:12px}
  .mobile-functions h2{font-size:18px;margin:0}
  .mobile-functions header button{width:44px;height:44px;border:0;border-radius:50%;background:#f0f3f8;color:#445066;font-size:28px;cursor:pointer}
  .mobile-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:2px}
  .mobile-function-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:10px 4px;border-radius:12px;background:#f5f7fb;font-size:13px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
  .mobile-function-grid [aria-current=page]{color:#24549e;background:#eaf2ff;font-weight:700;box-shadow:inset 0 0 0 1px #bdd0ef}
  .mobile-function-grid .abbreviation-nav-icon{display:grid;place-items:center;width:22px;height:22px;font-size:18px;font-weight:700}
  .mobile-navigation a:focus-visible,.mobile-navigation button:focus-visible,.mobile-functions a:focus-visible,.mobile-functions button:focus-visible{outline:2px solid #315da8;outline-offset:-2px}
}
