Power analysis for a single AUC against 0.5 uses the Hanley-McNeil standard error.
AUC SE depends on AUC value and the ratio κ = n_neg / n_pos. Hanley-McNeil gave the closed form; we solve for the missing piece given the others. Common cut-off: AUC = 0.7 with κ = 1 (balanced) needs about 80 positives and 80 negatives for 80% power.
AUC + κ = n_neg / n_pos + α + n_pos or power.
n_pos / n_neg + achieved power + detectable AUC.
Imbalanced designs (κ ≫ 1, lots of negatives) buy you precision relatively cheaply on the FPR side but don't help the TPR side — for cohort studies of rare outcomes plan accordingly.