; and (ii) 30 days after the conclusion of any hearing referred to in paragraph (5). (7) Temporary relief (A) In general Pending completion of any review under this subsection, the person that submitted an application for review under paragraph (1) may file with the Secretary concerned a written request that the Secretary concerned grant temporary relief from any order issued under section 507 including a detailed statement of the basis for such relief. (B) Decision The Secretary concerned shall expeditiously issue an order or decision granting or denying an application for temporary relief submitted under subparagraph (A). (C) Limitation The Secretary concerned may grant temporary relief under subparagraph (B) under such conditions as they may prescribe only if the Secretary concerned determines that such relief will not adversely affect the health or safety of the public or cause imminent environmental harm to land, air, or water resources. (8) Savings clause The availability of review under this subsection shall not be construed to limit the operation of rights under section 504. (b) Judicial review (1) Court of Appeals for the District of Columbia Any final action by the Secretary or the Secretary of Agriculture in issuing regulations to implement this Act, or any other final actions constituting rulemaking to implement this Act, shall be subject to judicial review only in a United States Court of Appeals for a circuit in which an affected State is located or within the District of Columbia. (2) Petition for review A petition for review of any action subject to judicial review under this subsection shall be filed not later than 60 days after the date of such action, or after such date if the petition is based solely on grounds arising after the 60th day. Any such petition may be made by any person that commented or otherwise participated in the rulemaking or any person that may be adversely affected by the action of the Secretary or the Secretary of Agriculture. (3) Standard of review Final agency action