/* SpectraHub V65 – account/settings cards: one real rounded panel on every section. */
body.spectrahubForum{
  --sh-account-radius:18px;
}

/* account.php used to have TWO painted layers: .xfAccountContent + .xfBlock.
   V63 had to make .xfAccountContent overflow:visible for editor popups, which exposed
   the square inner header at the two top corners. Keep the layout wrapper invisible
   and let the inner .xfBlock be the single visible card. */
body.spectrahubForum .xfAccountContent{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
  padding:0!important;
  min-width:0!important;
}

body.spectrahubForum .xfAccountContent > .xfBlock{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 18px!important;
  border:1px solid #555f68!important;
  border-radius:var(--sh-account-radius)!important;
  background:#383d43!important;
  background-clip:padding-box!important;
  box-shadow:none!important;
}

/* Pages without an editor may safely clip their contents to the rounded card. */
body.spectrahubForum .xfAccountContent > .xfBlock:not(:has(.shXfEditorShell)){
  overflow:hidden!important;
}
/* Editor pages must allow font/colour/size popups to escape the card. */
body.spectrahubForum .xfAccountContent > .xfBlock:has(.shXfEditorShell){
  overflow:visible!important;
}

/* This is the actual fix for the two circled square corners. */
body.spectrahubForum .xfAccountContent > .xfBlock > .xfBlockHeader{
  position:relative!important;
  z-index:1!important;
  margin:0!important;
  border-radius:17px 17px 0 0!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
}

body.spectrahubForum .xfAccountContent > .xfBlock > .xfForm{
  margin:0!important;
  border-radius:0 0 17px 17px!important;
  background-clip:padding-box!important;
}
body.spectrahubForum .xfAccountContent > .xfBlock > .xfForm > :last-child{
  margin-bottom:0!important;
}

/* Keep the editor visibly inset from the card while preserving its own rounding. */
body.spectrahubForum .xfAccountContent .shXfEditorShell{
  max-width:calc(100% - 20px)!important;
  margin-left:10px!important;
  margin-right:10px!important;
}

/* Notices on account pages should match the same visual language. */
body.spectrahubForum .xfAccountContent > .xfNotice{
  border-radius:14px!important;
  overflow:hidden!important;
  margin-bottom:14px!important;
}

@media(max-width:700px){
  body.spectrahubForum .xfAccountContent > .xfBlock{
    border-radius:15px!important;
  }
  body.spectrahubForum .xfAccountContent > .xfBlock > .xfBlockHeader{
    border-radius:14px 14px 0 0!important;
  }
  body.spectrahubForum .xfAccountContent > .xfBlock > .xfForm{
    border-radius:0 0 14px 14px!important;
  }
  body.spectrahubForum .xfAccountContent .shXfEditorShell{
    max-width:calc(100% - 12px)!important;
    margin-left:6px!important;
    margin-right:6px!important;
  }
}
