/* SpectraHub V64 – visible card corners + final public panel containment. */
body.spectrahubForum{
  --sh-v64-radius:16px;
}

/* Profile content cards: the previous overflow exception left square-looking tops.
   Keep editor popups usable, but round the painted child surfaces explicitly. */
body.spectrahubForum .xfMemberColumns > .xfMemberContent > .xfBlock,
body.spectrahubForum .xfMemberColumns > .xfMemberSidebar > .xfBlock,
body.spectrahubForum .xfProfilePostsBlock{
  border-radius:var(--sh-v64-radius)!important;
  border:1px solid #555f68!important;
  background:#383d43!important;
  background-clip:padding-box!important;
  box-shadow:none!important;
}
body.spectrahubForum .xfProfilePostsBlock{
  overflow:visible!important; /* editor menus must not be clipped */
}
body.spectrahubForum .xfMemberSidebar > .xfBlock{
  overflow:hidden!important;
}
body.spectrahubForum .xfMemberColumns > .xfMemberContent > .xfBlock > .xfBlockHeader,
body.spectrahubForum .xfMemberColumns > .xfMemberSidebar > .xfBlock > .xfBlockHeader,
body.spectrahubForum .xfProfilePostsBlock > .xfBlockHeader{
  border-radius:15px 15px 0 0!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
}
body.spectrahubForum .xfProfilePostsBlock > .xfProfilePostForm{
  position:relative!important;
  margin:0!important;
}
body.spectrahubForum .xfProfilePostsBlock > :last-child,
body.spectrahubForum .xfMemberSidebar > .xfBlock > :last-child,
body.spectrahubForum .xfMemberColumns > .xfMemberContent > .xfBlock > :last-child{
  border-bottom-left-radius:15px!important;
  border-bottom-right-radius:15px!important;
  background-clip:padding-box!important;
}
body.spectrahubForum .xfMemberColumns{
  gap:18px!important;
}

/* The editor itself must look like one rounded component, not a square stack. */
body.spectrahubForum .shXfEditorShell{
  border-radius:16px!important;
  overflow:visible!important;
  isolation:isolate!important;
}
body.spectrahubForum .shXfEditorShell > .fr-box,
body.spectrahubForum .shXfEditorShell .fr-box.fr-basic{
  border-radius:15px!important;
  overflow:hidden!important;
}
body.spectrahubForum .shXfEditorShell .fr-toolbar,
body.spectrahubForum .shXfEditorShell > .shXfFallbackTools{
  border-radius:15px 15px 0 0!important;
}
body.spectrahubForum .shXfEditorShell .shXfAttachmentArea,
body.spectrahubForum .shXfEditorShell .shXfAttachmentArea > :last-child{
  border-radius:0 0 15px 15px!important;
}
body.spectrahubForum .shXfEditorShell:before{
  border-radius:16px!important;
}

@media(max-width:960px){
  body.spectrahubForum .xfMemberColumns{gap:14px!important}
}
