/* Shared form footers. Count visible siblings so progressive steps keep their layout. */
[data-ui-form-actions]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
[data-ui-form-actions][hidden],[data-ui-form-actions]>[hidden]{display:none!important}
[data-ui-form-actions]:has(>.button:nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden]))){justify-content:center}
[data-ui-form-actions]:has(>.button:nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])))>.button:not([hidden]),
form.stack-form>.button[type=submit]:last-child:not([hidden],.secondary,.danger){display:flex;justify-content:center;align-items:center;inline-size:min(100%,24rem);max-inline-size:100%;min-block-size:48px;margin-inline:auto;justify-self:center}
[data-ui-form-actions]:has(>.button:nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])))>.button:not([hidden]){flex:0 1 24rem}
