/* Shared startup contract: one square logo and one neutral surface for all apps. */
html body :is(#estudio-loader-lottie.fx-app-logo,.fx-app-logo,[data-fx-logo-active="true"]) {
 position:relative!important;inset:auto!important;display:block!important;
 width:min(180px,54vw)!important;height:min(180px,54vw)!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:0!important;
 aspect-ratio:1!important;flex:0 0 auto!important;isolation:isolate;contain:layout paint;
 margin:0 auto!important;background:transparent!important;filter:none!important;overflow:hidden!important;
 animation:none!important;transform:none!important;transition:none!important;box-shadow:none!important;
}
html body .fx-app-logo::before,html body .fx-app-logo::after {content:none!important;}
html body .fx-app-logo :is(.fx-logo-player,[data-fx-logo-fallback]) {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;transform:none!important;animation:none!important;}
html body .fx-app-logo :is(svg,video) {display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;}
.fx-app-logo .fx-logo-player {opacity:0;}
.fx-app-logo .fx-logo-player.is-ready {opacity:1;}
.fx-app-logo > [data-fx-logo-fallback][hidden] {display:none!important;}
.fx-app-logo[data-fallback="true"] > [data-fx-logo-fallback] {display:block;}
html body :is(#barber-flat-sync,#barber-flat-sync-early,#clinicas-flat-sync,#clinicas-flat-sync-early,#garage-flat-sync,#garage-flat-sync-early,#escola-flat-sync,#escola-flat-sync-early,#eventos-flat-sync,#eventos-flat-sync-early,#food-flat-sync,#food-flat-sync-early,#estudio-flat-sync,#publy-global-loading,#app-loader,#food-startup,.fx-loading-surface) {
 background:#ffffff!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 align-items:center!important;justify-content:center!important;gap:0!important;
}
html body :is(.barber-flat-sync__card,.clinicas-flat-sync__card,.garage-flat-sync__card,.estudio-flat-sync__card,.publy-global-loading__card) {background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;transform:none!important;animation:none!important;}
html body :is(.barber-flat-sync__bars,.clinicas-flat-sync__bars,.estudio-flat-sync__bars,.food-startup-dots) {display:none!important;}
html body #app-loader.is-leaving .estudio-loader-lottie {transform:none!important;filter:none!important;}

html.clinic-boot-heart body #app-loader {background:#ffffff!important;}

html body #publy-global-loading .publy-global-loading__label {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;margin:0!important;}

/* White startup surface for Clinics, including the embedded Studio handoff. */
html body :is(#clinicas-flat-sync,#clinicas-flat-sync-early),
html body #studio-clinic-shell .fx-loading-surface,
html body .fx-loading-surface:has([data-clinic-loader]),
html:is(.clinic-boot-heart,.clinic-app-layout,.fluxo-clinicas-app,.art-clinic-entry,.art-clinic-mobile,.segment-clinica-estetica) body :is(#app-loader,#publy-global-loading,.fx-loading-surface) {
 background:#ffffff!important;background-image:none!important;color-scheme:light;
}

/* Studio startup and in-app loading use a white surface. */
html body :is(#app-loader,#estudio-flat-sync) {
 background:#ffffff!important;background-image:none!important;color-scheme:light;
}

/* Opening only: keep the surface blank until its player is ready. */
html body :is(#barber-flat-sync,#barber-flat-sync-early,#clinicas-flat-sync,#clinicas-flat-sync-early,#garage-flat-sync,#garage-flat-sync-early,#escola-flat-sync,#escola-flat-sync-early,#eventos-flat-sync,#eventos-flat-sync-early,#food-flat-sync,#food-flat-sync-early,#estudio-flat-sync,#publy-global-loading,#app-loader) :is(.publy-spinner,.publy-loading-dots,.bars,.dots,[class$="__bars"]){display:none!important}

html body #app-loader #estudio-ambient-loader{display:none!important}
