/* BAAKEE Update 5 V58 — isolated Settings Finance layout regression fix.
 * The old U4 Finance editor CSS targets .modal:has(.u4-finance-customization-editor)
 * and changes the entire Settings dialog to a 680px x 850px floating sheet.
 * When the editor is embedded inside the redesigned Settings pane, keep the
 * existing Settings shell geometry; this does NOT change standalone Finance dialogs.
 */
#modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.u4-finance-customization-editor),
#modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.preview-choice-list){
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:1200px!important;
  min-height:0!important;
  height:calc(100dvh - 56px)!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
@media(min-width:701px){
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.u4-finance-customization-editor),
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.preview-choice-list){
    height:min(91dvh,1000px)!important;
    max-height:calc(100dvh - 72px)!important;
    border:1px solid var(--baakee-glass-border)!important;
    border-radius:27px!important;
    box-shadow:0 25px 70px #0000001d!important;
  }
}
@media(max-width:700px){
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.u4-finance-customization-editor),
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail:has(.preview-choice-list){
    width:100vw!important;
    max-width:none!important;
    height:calc(100dvh - 56px)!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}
/* The iPhone's dedicated full-screen Settings detail keeps its native size. */
@media(max-width:700px){
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail.baakee-v54-iphone-detail:has(.u4-finance-customization-editor),
  #modal-root .modal-wrap.baakee-u5-detail-wrap > .modal.baakee-u5-settings-detail.baakee-v54-iphone-detail:has(.preview-choice-list){
    height:calc(100dvh - max(0px,env(safe-area-inset-top)))!important;
  }
}
