/* V104: forum row click polish, compact topic actions, numeric size menu, better quote/table/emoji UI. */
body.spectrahubForum .shV99ForumNode{cursor:pointer!important;position:relative!important}
body.spectrahubForum .shV99ForumNode:focus-visible{outline:2px solid #6fb4ff!important;outline-offset:-2px!important;border-radius:12px!important}
body.spectrahubForum .shV99ForumNode .xfNodeMain a{position:relative;z-index:2}
body.spectrahubForum .shV99ForumNode .shV99ForumLatest a{position:relative;z-index:2}

body.spectrahubForum .threadHead{align-items:flex-start!important}
body.spectrahubForum .shV104TopicActions{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;max-width:420px!important}
body.spectrahubForum .shV104TopicActions>form{margin:0!important}
body.spectrahubForum .shV104TopicActions .btn.ghost,
body.spectrahubForum .shTopicModMenu>summary{min-height:38px!important;padding:9px 12px!important;border-radius:12px!important;font-size:14px!important;font-weight:800!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;list-style:none!important}
body.spectrahubForum .shTopicModMenu>summary::-webkit-details-marker{display:none}
body.spectrahubForum .shTopicModMenu{position:relative!important}
body.spectrahubForum .shTopicModMenu[open]>summary{background:#24476f!important;border-color:#5e89b9!important;color:#fff!important}
body.spectrahubForum .shTopicModMenuPanel{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;min-width:240px!important;padding:10px!important;background:linear-gradient(180deg,#243342,#1b2631)!important;border:1px solid #41556b!important;border-radius:14px!important;box-shadow:0 22px 44px rgba(0,0,0,.35)!important;display:grid!important;gap:8px!important;z-index:120!important}
body.spectrahubForum .shTopicModMenu:not([open]) .shTopicModMenuPanel{display:none!important}
body.spectrahubForum .shTopicModItem{display:flex!important;width:100%!important;align-items:center!important;justify-content:flex-start!important;padding:10px 12px!important;border-radius:10px!important;border:1px solid #41556b!important;background:#203142!important;color:#eef5ff!important;text-decoration:none!important;font-size:14px!important;font-weight:800!important;cursor:pointer!important}
body.spectrahubForum .shTopicModItem:hover,body.spectrahubForum .shTopicModItem:focus-visible{background:#29445c!important;border-color:#70a8df!important;outline:none!important}
body.spectrahubForum .shTopicModItem.danger{background:#35222b!important;border-color:#5b3b48!important;color:#ffd7e3!important}
body.spectrahubForum .shTopicModItem.danger:hover{background:#49303a!important;border-color:#c58198!important}
body.spectrahubForum .shTopicModForm{margin:0!important}

/* Quote blocks: more aligned with the site design in both posts and editor preview. */
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost) blockquote,
body.spectrahubForum .shXfEditorShell .fr-element blockquote.shQuoteBlock,
body.spectrahubForum .shXfEditorShell>.shXfVisualHost blockquote.shQuoteBlock{
  position:relative!important;
  margin:16px 0!important;
  padding:16px 18px 16px 20px!important;
  border:1px solid rgba(110,168,255,.28)!important;
  border-left:4px solid #67a9ff!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(43,62,88,.60),rgba(22,33,47,.86))!important;
  color:#eef5ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost) blockquote::before,
body.spectrahubForum .shXfEditorShell .fr-element blockquote.shQuoteBlock::before,
body.spectrahubForum .shXfEditorShell>.shXfVisualHost blockquote.shQuoteBlock::before{
  content:'“'!important;position:absolute!important;right:14px!important;top:10px!important;font-size:34px!important;line-height:1!important;color:rgba(150,194,255,.22)!important;font-weight:900!important
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost) blockquote cite,
body.spectrahubForum .shXfEditorShell blockquote.shQuoteBlock cite{
  display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0 0 10px!important;padding:5px 10px!important;border-radius:999px!important;background:rgba(103,169,255,.14)!important;border:1px solid rgba(103,169,255,.26)!important;color:#bfdcff!important;font-size:14px!important;font-style:normal!important;font-weight:900!important;letter-spacing:.3px!important
}
body.spectrahubForum :is(.bodyText,.message-body,.shXfEditorShell .fr-view,.shXfEditorShell .shXfVisualHost) blockquote cite::before,
body.spectrahubForum .shXfEditorShell blockquote.shQuoteBlock cite::before{content:'IDÉZET';font-size:14px!important;color:#75b3ff!important}

/* Numeric size dropdown only. */
.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;padding:10px!important;min-width:220px!important}
.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric li{list-style:none!important}
.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric .shXfSizeChoiceNumeric{display:flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:0!important;border-radius:10px!important;background:#243343!important;border:1px solid #43576f!important;color:#edf5ff!important;font-weight:800!important;text-decoration:none!important}
.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric .shXfSizeChoiceNumeric:hover{background:#2d435a!important;border-color:#71abe3!important}
.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric .shXfSizeValue{display:block!important;font-size:14px!important;line-height:1!important}
body.spectrahubForum .shXfFallbackMenuItem.shXfFallbackSizeItem{justify-content:center!important}

/* More distinct font preview. */
body.spectrahubForum .shXfFontMenu .shXfFontChoice{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:8px 12px!important}
body.spectrahubForum .shXfFontMenu .shXfFontPreview{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:30px!important;border-radius:8px!important;background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.07)!important;font-size:18px!important}

/* Table editing: keep caret inside cells and make cells obvious. */
.shXfEditorShell :is(.fr-element,.shXfVisualHost) table{table-layout:auto!important;border-collapse:collapse!important;max-width:100%!important}
.shXfEditorShell :is(.fr-element,.shXfVisualHost) table :is(td,th){position:relative!important;vertical-align:top!important;min-width:84px!important;min-height:42px!important;padding:10px 12px!important;background:rgba(255,255,255,.02)!important;overflow:visible!important;caret-color:#ffffff!important;white-space:pre-wrap!important}
.shXfEditorShell :is(.fr-element,.shXfVisualHost) table :is(td,th):empty::before{content:'\00a0';display:inline-block}
.shXfEditorShell :is(.fr-element,.shXfVisualHost) table :is(td,th):focus{outline:2px solid #67a9ff!important;outline-offset:-2px!important;background:rgba(103,169,255,.09)!important}

/* Emoji picker cleanup. */
.sh94EmojiPicker{width:min(430px,92vw)!important;max-height:min(440px,72vh)!important;background:linear-gradient(180deg,#2d3743,#232c36)!important;border-radius:14px!important;overflow:hidden!important}
.sh94EmojiSearch{padding:12px!important;border-bottom:1px solid #506071!important;background:rgba(0,0,0,.10)!important;position:sticky!important;top:0!important;z-index:2!important}
.sh94EmojiSearch input{height:40px!important;border-radius:10px!important;font-size:14px!important}
.sh94EmojiScroll{max-height:min(382px,60vh)!important;padding:12px!important}
.sh94EmojiCategory header{position:sticky!important;top:0!important;background:linear-gradient(180deg,rgba(45,55,67,.96),rgba(45,55,67,.82))!important;padding:8px 0 9px!important;margin:0 0 8px!important;z-index:1!important}
.sh94EmojiGrid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important}
.shXfEditorShell .sh94EmojiChoice,.sh94EmojiChoice{height:38px!important;border-radius:10px!important;border:1px solid transparent!important;background:rgba(255,255,255,.03)!important;font-size:22px!important;transition:background .12s ease,border-color .12s ease,transform .12s ease!important}
.shXfEditorShell .sh94EmojiChoice:is(:hover,:focus-visible),.sh94EmojiChoice:is(:hover,:focus-visible){background:#40566f!important;border-color:#6ea8ff!important;transform:translateY(-1px)!important}

@media(max-width:900px){body.spectrahubForum .threadHead{display:block!important}body.spectrahubForum .shV104TopicActions{max-width:none!important;margin-top:12px!important;justify-content:flex-start!important}}
@media(max-width:560px){.shXfEditorShell .fr-dropdown-list.shXfSizeMenuNumeric{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sh94EmojiGrid{grid-template-columns:repeat(6,minmax(0,1fr))!important}body.spectrahubForum .shTopicModMenuPanel{left:0!important;right:auto!important;min-width:min(92vw,280px)!important}}
