(1) Subject to subsection (2), after commencement, a designated person must be kept in immigration detention.
(2) A designated person is to be released from immigration detention if, and only if, he or she is:
(a) removed from Australia under section 181; or
(b) granted a visa under section 65 or 351.
(3) This section is subject to section 182.
(4) To avoid doubt and despite section 182, if subsection 181(3) applies to a designated person, the person must be kept in immigration detention until the person is removed from Australia under that subsection.