This paper proposes a time-varying inertia estimation and economic dispatch method incorporating an inertia safety domain. First, the inertia safety domain is established based on frequency-security constraints and post-contingency inertia availability to determine the admissible inertia range in each period. Second, a fixed-delay online residual physics-informed neural network (Res-PINN) is developed to estimate time-varying inertia and quantify test-set estimation errors. Finally, the estimation error and contingency risk are combined to construct an adaptive inertia margin, which is embedded in a model predictive control dispatch model to dynamically adjust the inertia setting with operating conditions. A 24-h microgrid case study shows that the proposed method achieves zero inertia violations and reduces the average VSG inertia on the system base from 9.8817 s under the fixed-safe strategy to 6.2334 s, demonstrating its effectiveness in maintaining frequency security while reducing inertia redundancy.