DOM content replacement helpers.
Build and submit the exposure-time calculator form.
Fetch JSON data and HTML interface fragments.
Periodically reflect API health in the web interface.
Load instruments and persist instrument/filter selections.
Plot instrument and atmospheric transmission curves.
Populate theme and instrument setting controls.
Persist and apply light, dark, and automatic themes.
Derive API and UI URLs from the page's configured root path.