; or (II) 30 minutes after the detained alien is placed in solitary confinement, if the alien poses a substantial and immediate threat only to his self or her self; and (iv) if, after the applicable maximum period of confinement under subclause (I) or (II) of clause (iii) has expired, the detained alien continues to pose a substantial and immediate threat described in that subclause— (I) the detained alien shall be transferred to another facility or internal location where services can be provided to the alien without relying on solitary confinement; or (II) if a qualified mental health professional believes the level of crisis service needed is not currently available, a staff member of the facility shall initiate a referral to a location that can meet the needs of the detained alien; (B) the detained alien has a serious mental illness, has an intellectual disability, has a physical disability that a licensed medical professional determines is likely to be exacerbated by placement in solitary confinement or that solitary confinement is clinically contraindicated, is pregnant, or is in the first 8 weeks of the post-partum recovery period after giving birth, or has been determined by a licensed mental health professional to likely be significantly adversely affected by placement in solitary confinement, unless— (i) the detained alien poses a substantial and immediate threat; (ii) all other options to de-escalate the situation have been exhausted, including less restrictive techniques such as— (I) penalizing the detained alien through loss of privileges; (II) speaking with the detained alien in an attempt to de-escalate the situation; and (III) providing an appropriate level of care through a licensed mental health professional; (iii) such confinement is limited to the briefest term and the least restrictive conditions practicable, including access to medical and mental health treatment; (iv) such confinement is reviewed by a multidisciplinary staff committee for appropriateness every 24 hours