/* BuddySocial v9.76 - Per-block reset + clearer Pimp overview */

body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin:9px 0 12px !important;
  padding:10px 12px !important;
  border:1px solid #abc7da !important;
  background:linear-gradient(180deg,#f7fbfe,#e9f4fa) !important;
  box-shadow:0 2px 6px rgba(31,67,94,.07) !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools b,
body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools small{
  display:block !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools b{
  color:#285f86 !important;
  font-size:12px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools small{
  margin-top:2px !important;
  color:#708494 !important;
  font-size:9px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-overview-actions{
  display:flex !important;
  gap:6px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-overview-actions button{
  min-height:31px !important;
  padding:5px 8px !important;
  border:1px solid #b5cad8 !important;
  background:#fff !important;
  color:#346582 !important;
  font-size:10px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

/* block card */
body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio{
  position:relative !important;
  margin-bottom:12px !important;
  padding-top:8px !important;
  border:1px solid #b7cddd !important;
  background:linear-gradient(180deg,#f6fbfe,#edf5fa) !important;
  box-shadow:0 2px 8px rgba(31,63,88,.07) !important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease !important;
}

body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio>legend{
  display:none !important;
}

/* per-block toolbar */
body[data-page="pimp_profile"] #blocks .pimp-block-toolbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin:-2px -2px 9px !important;
  padding:8px 9px !important;
  background:linear-gradient(180deg,#e7f4fc,#d3e9f6) !important;
  border-bottom:1px solid #b4cede !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-number{
  width:25px !important;
  height:25px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 25px !important;
  border-radius:50% !important;
  background:#2f6fa8 !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:900 !important;
  box-shadow:0 1px 3px rgba(35,82,119,.18) !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-title b,
body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-title small{
  display:block !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-title b{
  color:#275e85 !important;
  font-size:11px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-title small{
  margin-top:1px !important;
  color:#718797 !important;
  font-size:8px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions{
  display:flex !important;
  gap:5px !important;
  flex:0 0 auto !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions button{
  min-height:29px !important;
  padding:4px 7px !important;
  border:1px solid #aec5d5 !important;
  background:#fff !important;
  color:#356483 !important;
  font-size:9px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  border-radius:4px !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions .pimp-reset-block{
  border-color:#dfbd76 !important;
  background:#fff8e8 !important;
  color:#8c5d08 !important;
}

body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions button:hover{
  filter:brightness(.98) !important;
  box-shadow:0 2px 6px rgba(31,63,88,.10) !important;
}

/* collapsed: keep only toolbar, switch and preview summary */
body[data-page="pimp_profile"] #blocks fieldset.pimp-block-collapsed > *:not(.pimp-block-toolbar):not(.block-style-preview){
  display:none !important;
}

body[data-page="pimp_profile"] #blocks fieldset.pimp-block-collapsed{
  padding-bottom:7px !important;
}

body[data-page="pimp_profile"] #blocks fieldset.pimp-block-collapsed .block-style-preview{
  min-height:55px !important;
  margin-bottom:0 !important;
}

body[data-page="pimp_profile"] #blocks .pimp-preview-label{
  position:absolute !important;
  right:7px !important;
  bottom:5px !important;
  padding:2px 5px !important;
  border-radius:999px !important;
  background:rgba(47,111,168,.10) !important;
  color:#4f7895 !important;
  font-size:7px !important;
  font-weight:900 !important;
  letter-spacing:.05em !important;
}

/* reset visual feedback */
@keyframes pimpResetFlash{
  0%{box-shadow:0 0 0 0 rgba(242,158,20,.55)}
  100%{box-shadow:0 0 0 10px rgba(242,158,20,0)}
}
body[data-page="pimp_profile"] #blocks fieldset.pimp-reset-flash{
  border-color:#e0a541 !important;
  animation:pimpResetFlash .65s ease-out !important;
}

/* clearer control grouping */
body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio .theme-color-row,
body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio .theme-setting-grid{
  background:rgba(255,255,255,.48) !important;
  border:1px solid #d5e3ec !important;
  padding:7px !important;
  margin-bottom:7px !important;
}

body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio label{
  color:#315d7a !important;
}

/* sliders cleaner */
body[data-page="pimp_profile"] #blocks fieldset.theme-field.block-text-studio input[type="range"]{
  accent-color:#f39a13 !important;
}

/* mobile */
@media(max-width:760px){
  body[data-page="pimp_profile"] #blocks .pimp-block-overview-tools,
  body[data-page="pimp_profile"] #blocks .pimp-block-toolbar{
    align-items:stretch !important;
    flex-direction:column !important;
  }

  body[data-page="pimp_profile"] #blocks .pimp-block-overview-actions,
  body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
  }

  body[data-page="pimp_profile"] #blocks .pimp-block-overview-actions button,
  body[data-page="pimp_profile"] #blocks .pimp-block-toolbar-actions button{
    width:100% !important;
  }
}
