; and (II) permitting a qualified mental health professional, or a staff member who has received training in de-escalation techniques and trauma-informed care, to talk to the covered juvenile. (ii) Explanation If, after attempting to use less restrictive techniques as required under clause (i), a staff member of a juvenile facility decides to place a covered juvenile in room confinement, the staff member shall first— (I) explain to the covered juvenile the reasons for the room confinement; and (II) inform the covered juvenile that release from room confinement will occur— (aa) immediately when the covered juvenile regains self-control, as described in subparagraph (B)(i); or (bb) not later than after the expiration of the time period described in subclause (I) or (II) of subparagraph (B)(ii), as applicable. (B) Maximum period of confinement If a covered juvenile is placed in room confinement because the covered juvenile poses a serious and immediate risk of physical harm to himself or herself, or to others, the covered juvenile shall be released— (i) immediately when the covered juvenile has sufficiently gained control so as to no longer engage in behavior that threatens serious and immediate risk of physical harm to himself or herself, or to others; or (ii) if a covered juvenile does not sufficiently gain control as described in clause (i), not later than— (I) 3 hours after being placed in room confinement, in the case of a covered juvenile who poses a serious and immediate risk of physical harm to others