fn build_summary(config: &Config, state: &AppState) -> String
Format system environment and configuration state as plain text.