/* SpectraHub V127 — restrained rounding + single-border editor polish. */
:root{--sh-v127-radius:4px}

/* Keep the established SpectraHub geometry: panels and controls only slightly rounded. */
body.spectrahubForum :is(.forumSectionClean,.formCard,.xfBlock,.composer,.pageHead,.threadHead,.sideCard,.reactionBox,.shDocumentArticle,.shDocumentAsideCard,.shRelatedPages),
body.spectrahubAdmin :is(.formCard,.shAdminV64Card,.shAdminUserCard,.shAdminUsersEmpty,.shAdminUserSearch){border-radius:var(--sh-v127-radius)!important}
body.spectrahubForum :is(.btn,.shUIButton,input:not([type=checkbox]):not([type=radio]),select,textarea),
body.spectrahubAdmin :is(.btn,input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:var(--sh-v127-radius)!important}

/* Editor: exactly one outer frame in forum and ACP. Inner Froala/fallback surfaces don't draw a second frame. */
body.spectrahubForum .shXfEditorShell,
body.spectrahubAdmin .shXfEditorShell{
  border:1px solid #626a72!important;
  border-radius:var(--sh-v127-radius)!important;
  box-shadow:none!important;
  overflow:visible!important;
  background:#383c42!important;
}
body.spectrahubForum .shXfEditorShell>.fr-box,
body.spectrahubAdmin .shXfEditorShell>.fr-box,
body.spectrahubForum .shXfEditorShell .fr-box.fr-basic,
body.spectrahubAdmin .shXfEditorShell .fr-box.fr-basic,
body.spectrahubForum .shXfEditorShell .fr-wrapper,
body.spectrahubAdmin .shXfEditorShell .fr-wrapper,
body.spectrahubForum .shXfEditorShell>.shXfVisualHost,
body.spectrahubAdmin .shXfEditorShell>.shXfVisualHost,
body.spectrahubForum .shXfEditorShell>.shXfBbcodeArea,
body.spectrahubAdmin .shXfEditorShell>.shXfBbcodeArea{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.spectrahubForum .shXfEditorShell .fr-toolbar,
body.spectrahubAdmin .shXfEditorShell .fr-toolbar,
body.spectrahubForum .shXfEditorShell>.shXfFallbackTools,
body.spectrahubAdmin .shXfEditorShell>.shXfFallbackTools{
  border-left:0!important;
  border-right:0!important;
  border-top:0!important;
  border-bottom:1px solid #56616d!important;
  border-radius:3px 3px 0 0!important;
  box-shadow:none!important;
}
body.spectrahubForum .shXfEditorShell .shXfAttachmentArea,
body.spectrahubAdmin .shXfEditorShell .shXfAttachmentArea{border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:0 0 3px 3px!important}

/* ACP visual editor uses the same surfaces as the public forum editor. */
body.spectrahubAdmin .shXfEditorShell .fr-toolbar,
body.spectrahubAdmin .shXfEditorShell>.shXfFallbackTools{background:#343a42!important;color:#edf4fa!important}
body.spectrahubAdmin .shXfEditorShell .fr-wrapper,
body.spectrahubAdmin .shXfEditorShell .fr-element,
body.spectrahubAdmin .shXfEditorShell>.shXfVisualHost[contenteditable="true"]{background:#2b323a!important;color:#edf4fa!important}
body.spectrahubAdmin .shXfEditorShell>.shXfBbcodeArea{background:#252b32!important;color:#e6eef6!important}
body.spectrahubAdmin .shXfEditorShell .shXfAttachmentArea{background:#323942!important}
