/* SpectraHub V109: thread action buttons and quote styling aligned to the dark topic design. */

/* Top-right topic action toolbar */
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar{
  gap:8px!important;
  margin:12px 0 16px!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ReaderControls{
  gap:6px!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106Action,
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ModMenu>summary{
  height:34px!important;min-height:34px!important;
  padding:0 12px!important;
  border-radius:6px!important;
  border:1px solid #5c6976!important;
  background:linear-gradient(180deg,#4a5561,#414b56)!important;
  color:#eef4fb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 1px 0 rgba(0,0,0,.10)!important;
  font:700 14px/1.2 system-ui,Arial,sans-serif!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106Action:hover,
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ModMenu>summary:hover,
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ModMenu[open]>summary{
  background:linear-gradient(180deg,#556270,#495560)!important;
  border-color:#8091a2!important;
  color:#fff!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106Action.is-active{
  background:linear-gradient(180deg,#4f677e,#455a70)!important;
  border-color:#83a7cc!important;
  color:#fff!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shFa,
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shFa img{opacity:.92!important}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ModMenu{margin-left:0!important}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106ModDropdown{
  top:calc(100% + 6px)!important;
  border-radius:8px!important;
  border:1px solid #596877!important;
  background:#3b4652!important;
  box-shadow:0 18px 42px rgba(0,0,0,.28)!important;
  padding:6px!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106ModDropdown :is(a,button){
  min-height:34px!important;
  border-radius:5px!important;
  background:#434e5a!important;
  border:1px solid transparent!important;
  color:#edf4fc!important;
  font-size:14px!important;
  font-weight:700!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106ModDropdown :is(a,button):hover{
  background:#4e5d6c!important;
  border-color:#7d8fa1!important;
}
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106ModDropdown .shV106Danger,
body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106ModDropdown .danger{
  color:#ffd7de!important;
}

/* Post top actions inside topics */
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .postActions,
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .firstPostActions{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .shPostQuote{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  padding:0 11px!important;
  border-radius:5px!important;
  border:1px solid #556271!important;
  background:#444f5a!important;
  color:#edf4fb!important;
  font-size:14px!important;
  font-weight:700!important;
  text-decoration:none!important;
  transition:background .14s ease,border-color .14s ease!important;
}
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .shPostQuote:hover,
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .shPostQuote:focus-visible{
  background:#506071!important;
  border-color:#8fa6bd!important;
  color:#fff!important;
  outline:none!important;
}
body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .postActions form{display:inline-flex!important;margin:0!important}

/* Quote blocks in posts and editor: simpler, darker, cleaner like the reference. */
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost,.shXfEditorShell .fr-element) blockquote,
body.spectrahubForum .shXfEditorShell .fr-element blockquote.shQuoteBlock,
body.spectrahubForum .shXfEditorShell>.shXfVisualHost blockquote.shQuoteBlock{
  position:relative!important;
  margin:14px 0!important;
  padding:12px 14px!important;
  border:1px solid #55616d!important;
  border-left:3px solid #56c4b0!important;
  border-radius:4px!important;
  background:#3a444f!important;
  color:#eef4fa!important;
  box-shadow:none!important;
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost,.shXfEditorShell .fr-element) blockquote::before,
body.spectrahubForum .shXfEditorShell .fr-element blockquote.shQuoteBlock::before,
body.spectrahubForum .shXfEditorShell>.shXfVisualHost blockquote.shQuoteBlock::before{
  content:none!important;
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost,.shXfEditorShell .fr-element) blockquote cite,
body.spectrahubForum .shXfEditorShell blockquote.shQuoteBlock cite{
  display:block!important;
  margin:0 0 10px!important;
  padding:0 0 8px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#9fd9cf!important;
  font-size:14px!important;
  font-style:normal!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
  text-transform:none!important;
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost,.shXfEditorShell .fr-element) blockquote cite::before,
body.spectrahubForum .shXfEditorShell blockquote.shQuoteBlock cite::before{
  content:'Idézet';
  display:inline-block!important;
  margin-right:6px!important;
  color:#c8f1ea!important;
  text-transform:uppercase!important;
  font-size:14px!important;
  letter-spacing:.45px!important;
}

/* Composer and post areas should not show overdecorated quote/table blocks from older layers. */
body.spectrahubForum .post .bodyText blockquote p:last-child,
body.spectrahubForum .shXfEditorShell blockquote p:last-child{margin-bottom:0!important}

@media(max-width:690px){
  body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV106Action,
  body.spectrahubForum.shThreadPageV106 .shV107TopicToolbar .shV107ModMenu>summary{
    height:32px!important;min-height:32px!important;padding:0 10px!important;font-size:14px!important;
  }
  body.spectrahubForum.shThreadPageV106 .post:not(.pmPost) .postTop .shPostQuote{
    min-height:28px!important;padding:0 9px!important;font-size:14px!important;
  }
}
