/* Remove only the empty inset panels; keep the outer cards and centered actions. */
html #root#root#root#root#root :is([data-profile-surface="services"],[data-profile-surface="portfolio"])>[data-empty-surface]{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
/* The profile portrait grows from 54 to 90px. Reserve its extra height in the existing grid. */
html #root#root#root [data-profile-layout="compact"]:has(>[data-profile-surface="identity"]){grid-template-rows:minmax(198px,.95fr) minmax(176px,1.35fr)!important;}
html #root#root#root#root [data-profile-surface="identity"]>div:has(>.ft-profile-rating){width:90px!important;height:90px!important;min-width:90px!important;min-height:90px!important;flex-shrink:0!important;}
html #root#root#root#root [data-profile-surface="identity"]>div:has(>.ft-profile-rating)>:is([title="Нажмите, чтобы сменить аватар"],[title="Посмотреть фото"]){width:90px!important;height:90px!important;min-width:90px!important;max-width:90px!important;min-height:90px!important;max-height:90px!important;}
html #root#root#root#root#root [data-profile-surface="identity"] .ft-profile-rating{right:-24px!important;bottom:-7px!important;}
html #root#root#root#root [data-profile-surface="identity"]>div:has(>.ft-profile-rating)>.ft-presence-marker{top:8px!important;right:8px!important;}

/* Keep the portfolio heading divider clear of the centered action after the portrait grows. */
html #root#root#root#root [data-profile-surface="portfolio"]:has(>[data-empty-surface])>div:first-child{min-height:17px!important;}
