/* SpectraHub V147 — modern multi-recipient PM composer, readable and theme-matched. */
body.spectrahubForum .shPmStartHead{
  padding:18px 20px!important;
  margin-bottom:16px!important;
  border-radius:8px!important;
}
body.spectrahubForum .shPmStartHead h1{font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important}
body.spectrahubForum .shPmStartHead p{font-size:13px!important;line-height:1.45!important;margin:0!important;color:var(--shc-muted,#b4bec8)!important}
body.spectrahubForum .shPmStartHead .btn{font-size:12.5px!important;min-height:38px!important;padding:8px 12px!important}

body.spectrahubForum .shPmCreate{
  display:grid!important;
  gap:16px!important;
  padding:20px!important;
  border:1px solid var(--shc-border,#555b63)!important;
  border-radius:12px!important;
  background:var(--shc-surface,#383c42)!important;
  overflow:visible!important;
  box-shadow:0 1px 2px rgba(0,0,0,.18)!important;
}
body.spectrahubForum .shPmCreate>label:not(.shPmReplyOption){
  margin:2px 0 -6px!important;
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:750!important;
  color:var(--shc-text,#f0f3f6)!important;
}

body.spectrahubForum .shPmRecipientPanel{
  display:grid!important;
  gap:12px!important;
  padding:16px!important;
  border:1px solid var(--shc-border,#555b63)!important;
  border-radius:10px!important;
  background:var(--shc-surface2,#343a40)!important;
}
body.spectrahubForum .shPmRecipientPanelHead{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
}
body.spectrahubForum .shPmRecipientPanelHead>div{min-width:0!important}
body.spectrahubForum .shPmRecipientPanelHead strong{display:block!important;font-size:14px!important;line-height:1.25!important;color:var(--shc-text,#f1f3f5)!important}
body.spectrahubForum .shPmRecipientPanelHead small{display:block!important;margin-top:4px!important;font-size:11.5px!important;line-height:1.4!important;color:var(--shc-muted,#aeb6c0)!important}
body.spectrahubForum .shPmRecipientCount{
  flex:0 0 auto!important;
  min-width:58px!important;
  padding:6px 10px!important;
  border:1px solid var(--shc-border,#59636d)!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.12)!important;
  color:var(--shc-text,#e8edf2)!important;
  font-size:11.5px!important;
  font-weight:700!important;
  text-align:center!important;
}

body.spectrahubForum .shPmRecipientChips{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  min-height:38px!important;
}
body.spectrahubForum .shPmRecipientEmpty{
  width:100%!important;
  padding:9px 11px!important;
  border:1px dashed var(--shc-border,#59636d)!important;
  border-radius:8px!important;
  color:var(--shc-muted,#aeb6c0)!important;
  font-size:12px!important;
  line-height:1.4!important;
}
body.spectrahubForum .shPmRecipientChip{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 26px!important;
  align-items:center!important;
  gap:9px!important;
  min-width:170px!important;
  max-width:270px!important;
  padding:7px 7px 7px 8px!important;
  border:1px solid color-mix(in srgb,var(--shc-accent,#2196f3) 48%,var(--shc-border,#59636d))!important;
  border-radius:9px!important;
  background:color-mix(in srgb,var(--shc-accent,#2196f3) 11%,var(--shc-surface2,#343a40))!important;
  color:var(--shc-text,#edf0f2)!important;
}
body.spectrahubForum .shPmRecipientAvatar,
body.spectrahubForum .shPmRecipientChip .shPmAvatarFallback{
  width:34px!important;height:34px!important;border-radius:50%!important;
  object-fit:cover!important;display:grid!important;place-items:center!important;
  background:#4a5865!important;color:#fff!important;font-size:12px!important;font-weight:800!important;
}
body.spectrahubForum .shPmRecipientChip>span:nth-child(2){min-width:0!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:2px 6px!important}
body.spectrahubForum .shPmRecipientChip b{width:100%!important;font-size:12.5px!important;line-height:1.2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.spectrahubForum .shPmRecipientChip small{font-size:10px!important;line-height:1.2!important;color:var(--shc-muted,#aeb6c0)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:150px!important}
body.spectrahubForum .shPmBotBadge{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:2px 5px!important;border-radius:4px!important;background:var(--shc-accent,#2196f3)!important;color:#fff!important;font-style:normal!important;font-size:8px!important;font-weight:850!important;line-height:1.1!important;letter-spacing:.35px!important}
body.spectrahubForum .shPmRecipientChip button{
  width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:0!important;
  border:1px solid transparent!important;border-radius:7px!important;background:rgba(255,255,255,.07)!important;color:#e8eef3!important;
  font-size:17px!important;line-height:22px!important;cursor:pointer!important;
}
body.spectrahubForum .shPmRecipientChip button:hover{background:rgba(255,90,105,.16)!important;border-color:rgba(255,110,120,.3)!important;color:#ffd9dd!important}

body.spectrahubForum .shPmRecipients{position:relative!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.spectrahubForum .shPmSearchRow{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  min-height:48px!important;
  border:1px solid var(--shc-border,#5b6978)!important;
  border-radius:10px!important;
  background:var(--shc-bg,#252c33)!important;
  overflow:hidden!important;
  transition:border-color .15s,box-shadow .15s,background .15s!important;
}
body.spectrahubForum .shPmSearchRow:hover{background:color-mix(in srgb,var(--shc-bg,#252c33) 88%,#fff)!important}
body.spectrahubForum .shPmSearchRow:focus-within{border-color:var(--shc-accent,#2196f3)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--shc-accent,#2196f3) 16%,transparent)!important}
body.spectrahubForum .shPmSearchIcon{display:grid!important;place-items:center!important;color:var(--shc-muted,#aeb6c0)!important}
body.spectrahubForum .shPmSearchIcon :is(img,.shFa){width:17px!important;height:17px!important}
body.spectrahubForum .shPmRecipients #shPmUserInput{
  width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 8px!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;
  color:var(--shc-text,#eef1f5)!important;font-size:13.5px!important;line-height:1.3!important;
}
body.spectrahubForum .shPmRecipients #shPmUserInput::placeholder{color:var(--shc-muted,#9faab5)!important;opacity:.9!important}
body.spectrahubForum .shPmAddSelected{
  align-self:stretch!important;min-width:112px!important;min-height:46px!important;padding:0 15px!important;
  border:0!important;border-left:1px solid var(--shc-border,#56616c)!important;border-radius:0!important;
  background:var(--shc-surface3,#42464d)!important;color:var(--shc-muted,#9da9b5)!important;
  font-size:12px!important;font-weight:800!important;cursor:pointer!important;
}
body.spectrahubForum .shPmAddSelected.has-selection{background:var(--shc-accent,#2196f3)!important;color:#fff!important}
body.spectrahubForum .shPmAddSelected:disabled{cursor:default!important;opacity:.62!important}

body.spectrahubForum .shPmSuggest{
  position:absolute!important;z-index:220!important;top:calc(100% + 7px)!important;left:0!important;right:0!important;
  display:grid!important;gap:4px!important;max-height:340px!important;overflow:auto!important;padding:7px!important;
  border:1px solid var(--shc-border,#596979)!important;border-radius:10px!important;
  background:var(--shc-surface2,#343a40)!important;box-shadow:0 18px 42px rgba(0,0,0,.42)!important;
}
body.spectrahubForum .shPmSuggest[hidden]{display:none!important}
body.spectrahubForum .shPmSuggestItem{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) 30px!important;align-items:center!important;gap:10px!important;
  width:100%!important;min-height:54px!important;padding:6px 9px!important;border:1px solid transparent!important;border-radius:8px!important;
  background:transparent!important;color:var(--shc-text,#edf2f7)!important;text-align:left!important;cursor:pointer!important;
}
body.spectrahubForum .shPmSuggestItem:hover,
body.spectrahubForum .shPmSuggestItem.is-active{background:color-mix(in srgb,var(--shc-surface3,#42464d) 78%,transparent)!important;border-color:var(--shc-border,#596979)!important}
body.spectrahubForum .shPmSuggestItem.is-selected{background:color-mix(in srgb,var(--shc-accent,#2196f3) 14%,var(--shc-surface2,#343a40))!important;border-color:color-mix(in srgb,var(--shc-accent,#2196f3) 55%,var(--shc-border,#596979))!important}
body.spectrahubForum .shPmSuggestUserAvatar,
body.spectrahubForum .shPmSuggestItem .shPmAvatarFallback{
  width:42px!important;height:42px!important;border-radius:50%!important;object-fit:cover!important;display:grid!important;place-items:center!important;
  background:#455564!important;color:#fff!important;font-size:13px!important;font-weight:800!important;
}
body.spectrahubForum .shPmSuggestItem>span:nth-child(2){min-width:0!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:3px 7px!important}
body.spectrahubForum .shPmSuggestItem strong{width:100%!important;font-size:13px!important;line-height:1.2!important;color:var(--shc-text,#f0f3f6)!important}
body.spectrahubForum .shPmSuggestItem small{font-size:10.5px!important;line-height:1.2!important;color:var(--shc-muted,#aebdca)!important}
body.spectrahubForum .shPmSelectMark{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border:1px solid var(--shc-border,#596979)!important;border-radius:8px!important;background:var(--shc-surface3,#42464d)!important;color:#c5d0da!important;font-size:15px!important;font-weight:850!important}
body.spectrahubForum .shPmSuggestItem.is-selected .shPmSelectMark{background:var(--shc-accent,#2196f3)!important;border-color:var(--shc-accent,#2196f3)!important;color:#fff!important}
body.spectrahubForum .shPmSuggestEmpty{margin:0!important;padding:13px 12px!important;font-size:12px!important;line-height:1.4!important;color:var(--shc-muted,#aebdca)!important}
body.spectrahubForum .shPmHint{font-size:11px!important;line-height:1.4!important;color:var(--shc-muted,#aeb6c0)!important}

body.spectrahubForum .shPmReplyOption{
  display:flex!important;align-items:flex-start!important;gap:11px!important;margin:0!important;padding:12px 13px!important;
  border:1px solid var(--shc-border,#555b63)!important;border-radius:9px!important;background:var(--shc-surface2,#343a40)!important;
}
body.spectrahubForum .shPmReplyOption>span{display:grid!important;gap:3px!important}
body.spectrahubForum .shPmReplyOption b{font-size:13px!important;line-height:1.3!important;color:var(--shc-text,#f0f3f6)!important}
body.spectrahubForum .shPmReplyOption small{font-size:11px!important;line-height:1.4!important;color:var(--shc-muted,#b2bcc6)!important}
body.spectrahubForum .shPmReplyOption input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;margin-top:1px!important;accent-color:var(--shc-accent,#2196f3)!important}

/* PM editor gets readable normal proportions even though the rest of the forum uses compact typography. */
body.spectrahubForum .shPmCreate .shXfEditorShell{border-radius:9px!important;overflow:visible!important}
body.spectrahubForum .shPmCreate .shXfEditorShell .fr-toolbar{min-height:48px!important}
body.spectrahubForum .shPmCreate .shXfEditorShell .fr-element,
body.spectrahubForum .shPmCreate .shXfEditorShell .shXfVisualHost[contenteditable=true],
body.spectrahubForum .shPmCreate .shXfEditorShell .shXfBbcodeArea{
  min-height:250px!important;padding:14px 16px!important;font-size:14px!important;line-height:1.55!important;
}
body.spectrahubForum .shPmCreate .shXfEditorShell .fr-command.fr-btn,
body.spectrahubForum .shPmCreate .shXfEditorShell button{min-width:36px!important;min-height:36px!important}
body.spectrahubForum .shPmCreate .shXfEditorShell .fr-command.fr-btn :is(svg,img),
body.spectrahubForum .shPmCreate .shXfEditorShell button :is(svg,img){width:16px!important;height:16px!important}
body.spectrahubForum .shPmCreateFoot{display:flex!important;justify-content:flex-end!important;padding-top:2px!important}
body.spectrahubForum .shPmCreateFoot .btn{min-height:40px!important;padding:8px 15px!important;font-size:12.5px!important}

@media(max-width:720px){
  body.spectrahubForum .shPmStartHead{padding:14px!important}
  body.spectrahubForum .shPmStartHead h1{font-size:18px!important}
  body.spectrahubForum .shPmCreate{padding:13px!important;gap:13px!important}
  body.spectrahubForum .shPmRecipientPanel{padding:12px!important}
  body.spectrahubForum .shPmRecipientPanelHead{align-items:center!important}
  body.spectrahubForum .shPmRecipientPanelHead small{font-size:10.5px!important}
  body.spectrahubForum .shPmSearchRow{grid-template-columns:38px minmax(0,1fr)!important;overflow:visible!important}
  body.spectrahubForum .shPmAddSelected{grid-column:1/-1!important;border-left:0!important;border-top:1px solid var(--shc-border,#56616c)!important;border-radius:0 0 9px 9px!important;min-height:40px!important;width:100%!important}
  body.spectrahubForum .shPmRecipientChip{min-width:min(100%,190px)!important;max-width:100%!important}
  body.spectrahubForum .shPmSuggest{top:calc(100% + 46px)!important}
  body.spectrahubForum .shPmCreate .shXfEditorShell .fr-element,
  body.spectrahubForum .shPmCreate .shXfEditorShell .shXfVisualHost[contenteditable=true],
  body.spectrahubForum .shPmCreate .shXfEditorShell .shXfBbcodeArea{min-height:210px!important;font-size:13.5px!important}
  body.spectrahubForum .shPmCreateFoot .btn{width:100%!important}
}
