Work with the accessible behavior supplied by Radix UI and Base UI, including focus management, keyboard interaction, portals, and state attributes. Choose a primitive backend deliberately and account for differences when adapting component code.