/* SpectraHub V62 - force visibly rounded BBCode editors everywhere. */

/* Do not depend on a page-specific container: every mounted editor gets it. */
.shXfEditorShell{
  position:relative!important;
  border:1px solid #66717b!important;
  border-radius:18px!important;
  background:#34393f!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.025)!important;
  background-clip:padding-box!important;
  isolation:isolate!important;
}
.shXfEditorShell>.fr-box,
.shXfEditorShell .fr-box.fr-basic{
  border:0!important;
  border-radius:17px!important;
  background:transparent!important;
  box-shadow:none!important;
}
.shXfEditorShell .fr-toolbar,
.shXfEditorShell>.shXfFallbackTools,
.shXfEditorShell.shXfFallbackMode>.shXfFallbackTools{
  border-top-left-radius:17px!important;
  border-top-right-radius:17px!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
  overflow:visible!important;
  background-clip:padding-box!important;
}
.shXfEditorShell .fr-wrapper,
.shXfEditorShell>.shXfVisualHost,
.shXfEditorShell>.shXfBbcodeArea{
  border-radius:0!important;
  background-clip:padding-box!important;
}
.shXfEditorShell .shXfAttachmentArea{
  border-bottom-left-radius:17px!important;
  border-bottom-right-radius:17px!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
}
.shXfEditorShell .shXfAttachmentArea .shXfAttachmentHead:last-child{
  border-bottom-left-radius:17px!important;
  border-bottom-right-radius:17px!important;
}
.shXfEditorShell:not(:has(.shXfAttachmentArea)) .fr-wrapper,
.shXfEditorShell:not(:has(.shXfAttachmentArea))>.shXfVisualHost,
.shXfEditorShell:not(:has(.shXfAttachmentArea))>.shXfBbcodeArea{
  border-bottom-left-radius:17px!important;
  border-bottom-right-radius:17px!important;
  overflow:hidden!important;
}
/* Draw a visible rounded outline above legacy square borders. */
.shXfEditorShell::after{
  content:""!important;
  position:absolute!important;
  inset:-1px!important;
  border:1px solid #707b85!important;
  border-radius:18px!important;
  pointer-events:none!important;
  z-index:50!important;
}
/* Older profile/topic wrappers must not visually square off the editor. */
:is(.xfProfilePostForm,.xfAccountContent,.composer,.formCard,.xfBlock) .shXfEditorShell{
  border-radius:18px!important;
}
/* Keep editor popups over the outline. */
.shXfEditorShell :is(.fr-popup,.fr-dropdown-menu,.shXfFallbackMenu){z-index:12050!important}

/* Common public cards should visibly follow the same rounded language. */
body.spectrahubForum :is(.xfBlock,.formCard,.xfProfilePostForm,.xfAccountContent,.xfProfilePost,.threadPost,.messageCard){
  border-radius:14px!important;
}
body.spectrahubForum :is(.xfBlock,.formCard,.xfProfilePostForm,.xfAccountContent){
  overflow:visible!important;
}
