/* SpectraHub V63 – editor containment + real rounded corners everywhere. */
body.spectrahubForum .shXfEditorShell{
  width:auto!important;
  max-width:calc(100% - 20px)!important;
  min-width:0!important;
  margin:10px 10px 16px!important;
  box-sizing:border-box!important;
  border:1px solid #646d76!important;
  border-radius:18px!important;
  background:#34393f!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.02)!important;
}
/* Nothing belonging to the editor itself may grow outside the shell. */
body.spectrahubForum .shXfEditorShell > .fr-box,
body.spectrahubForum .shXfEditorShell .fr-box.fr-basic,
body.spectrahubForum .shXfEditorShell .fr-wrapper,
body.spectrahubForum .shXfEditorShell .fr-toolbar,
body.spectrahubForum .shXfEditorShell > .shXfFallbackTools,
body.spectrahubForum .shXfEditorShell > .shXfVisualHost,
body.spectrahubForum .shXfEditorShell > .shXfBbcodeArea,
body.spectrahubForum .shXfEditorShell .shXfAttachmentArea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
/* Clip only the visual editor frame, not the outer shell where menus may open. */
body.spectrahubForum .shXfEditorShell > .fr-box,
body.spectrahubForum .shXfEditorShell .fr-box.fr-basic{
  border-radius:17px!important;
  overflow:clip!important;
}
body.spectrahubForum .shXfEditorShell .fr-toolbar,
body.spectrahubForum .shXfEditorShell > .shXfFallbackTools{
  border-radius:17px 17px 0 0!important;
  background-clip:padding-box!important;
}
body.spectrahubForum .shXfEditorShell .shXfAttachmentArea{
  border-radius:0 0 17px 17px!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
}
body.spectrahubForum .shXfEditorShell .shXfAttachmentHead:last-child{
  border-radius:0 0 17px 17px!important;
}
body.spectrahubForum .shXfEditorShell:not(:has(.shXfAttachmentArea)) .fr-wrapper,
body.spectrahubForum .shXfEditorShell:not(:has(.shXfAttachmentArea)) > .shXfVisualHost,
body.spectrahubForum .shXfEditorShell:not(:has(.shXfAttachmentArea)) > .shXfBbcodeArea{
  border-radius:0 0 17px 17px!important;
  overflow:hidden!important;
}
/* The surrounding card must not crop the rounded editor or make it flush with the edge. */
body.spectrahubForum :is(.xfProfilePostForm,.xfAccountContent,.composer,.formCard,.xfBlock):has(.shXfEditorShell){
  border-radius:16px!important;
  overflow:visible!important;
}
@media(max-width:700px){
  body.spectrahubForum .shXfEditorShell{
    max-width:calc(100% - 12px)!important;
    margin-left:6px!important;
    margin-right:6px!important;
    border-radius:15px!important;
  }
  body.spectrahubForum .shXfEditorShell > .fr-box,
  body.spectrahubForum .shXfEditorShell .fr-box.fr-basic{border-radius:14px!important}
  body.spectrahubForum .shXfEditorShell .fr-toolbar,
  body.spectrahubForum .shXfEditorShell > .shXfFallbackTools{border-radius:14px 14px 0 0!important}
  body.spectrahubForum .shXfEditorShell .shXfAttachmentArea{border-radius:0 0 14px 14px!important}
}
