/* V97 – compact XenForo-like forum composer, prefix beside title, and unified moderator management. */
body.spectrahubForum :is(.shV97InlineTopic,.shV97FullTopic,.shV97ModManage),
body.spectrahubForum :is(.shV97InlineTopic,.shV97FullTopic,.shV97ModManage) *{box-sizing:border-box}
body.spectrahubForum .shV97InlineTopic{background:#363c44;border:1px solid #576370;border-radius:11px;padding:12px 15px;margin:0 0 20px;overflow:visible;box-shadow:0 6px 20px rgba(0,0,0,.10)}
body.spectrahubForum .shV97InlineTopic:not(.is-open){cursor:default}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicTop{align-items:start;grid-template-columns:40px minmax(0,1fr);gap:13px}
body.spectrahubForum .shV97InlineTopic .shV96TopicAvatar{margin-top:4px}
body.spectrahubForum .shV97DraftInput{min-width:0;max-width:100%;border:1px solid #657484;border-radius:8px;overflow:visible;background:#2b323a}
body.spectrahubForum .shV97TitleLine{display:flex;align-items:stretch;min-width:0;max-width:100%;min-height:45px;position:relative}
body.spectrahubForum .shV97InlineTopic .shV96TopicTitle{background:transparent!important;border:0!important;border-radius:0!important;padding:12px!important;height:45px!important;flex:1!important;min-width:0!important;color:#f2f7fd!important;font:500 14px system-ui,Arial,sans-serif!important}
body.spectrahubForum .shV97InlineTopic .shV96TopicTitle:focus{box-shadow:inset 0 0 0 1px rgba(69,153,255,.55)!important}
body.spectrahubForum .shV97InlineTopic .shV96TopicTitle::placeholder{color:#b7c7d7!important;font-weight:400}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicExpanded{max-width:100%;min-width:0}
body.spectrahubForum .shV97InlineTopic .shXfEditorShell{min-width:0!important;max-width:100%!important}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicActions{gap:9px;margin-top:12px;align-items:center}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicActions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:9px 14px;font-size:14px;border-radius:7px}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicActions .shFa img{width:14px;height:14px}
body.spectrahubForum .shV97InlineTopic .shV96TopicCancel{display:inline-grid!important;place-items:center!important;flex:0 0 39px!important;width:39px!important;height:39px!important;border:1px solid #6b7a8b!important;border-radius:8px!important;background:#414b56!important;color:#e4edf7!important;transition:background .16s ease, border-color .16s ease}
body.spectrahubForum .shV97InlineTopic .shV96TopicCancel:hover{background:#65404a!important;border-color:#bd667b!important}
body.spectrahubForum .shV97InlineTopic .shV96TopicCancel .shFa img{width:16px;height:16px}

/* Reusable prefix selector: actual prefix pill in the left side of the title input. */
body.spectrahubForum .shV97Prefix{position:relative;flex:0 0 auto;min-width:0;max-width:50%;display:flex;align-items:stretch;z-index:20}
body.spectrahubForum .shV97PrefixToggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;padding:4px 11px!important;margin:0!important;border:0!important;border-right:1px solid #647383!important;border-radius:7px 0 0 7px!important;background:#3c4855!important;color:#eef5fc!important;min-height:45px;font-size:14px;font-weight:650;cursor:pointer;white-space:nowrap}
body.spectrahubForum .shV97PrefixToggle:hover,body.spectrahubForum .shV97PrefixToggle[aria-expanded="true"]{background:#506075!important}
body.spectrahubForum .shV97PrefixToggle .shFa img{width:11px;height:11px;opacity:.8}
body.spectrahubForum .shV97PrefixTag{display:inline-block;border:1px solid color-mix(in srgb,var(--sh-prefix-color,#7a94ab) 65%,transparent);border-radius:4px;padding:4px 7px;background:color-mix(in srgb,var(--sh-prefix-color,#7196b6) 20%,#2b343c);color:#f8fbff;font-size:14px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.spectrahubForum .shV97PrefixMenu{position:absolute;top:calc(100% + 7px);left:0;width:min(280px,calc(100vw - 42px));max-height:min(310px,55dvh);overflow:auto;border:1px solid #718398;border-radius:9px;padding:6px;background:#34404d;box-shadow:0 18px 44px rgba(0,0,0,.4);z-index:990}
body.spectrahubForum .shV97PrefixMenu[hidden]{display:none!important}
body.spectrahubForum .shV97PrefixMenu button{display:flex;align-items:center;width:100%;min-height:35px;text-align:left;padding:5px 9px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#edf4fb!important;cursor:pointer;font-size:14px}
body.spectrahubForum .shV97PrefixMenu button:hover,body.spectrahubForum .shV97PrefixMenu button[aria-selected="true"]{background:#536d8a!important}
body.spectrahubForum .shV97PrefixClear{color:#c9d6e4}

body.spectrahubForum .shV97FullTopic{padding:22px;max-width:100%;border-radius:13px;min-width:0}
body.spectrahubForum .shV97FullTitle{display:grid;gap:8px;margin:8px 0 18px;min-width:0}
body.spectrahubForum .shV97FullTitle>label{font-weight:750;font-size:14px;margin:0}
body.spectrahubForum .shV97FullTitleLine{display:flex;align-items:stretch;position:relative;min-height:46px;background:#29323b;border:1px solid #677789;border-radius:8px;min-width:0}
body.spectrahubForum .shV97FullTitleLine>input{flex:1;min-width:0;width:auto;height:46px;margin:0!important;border:0!important;background:transparent!important;padding:10px 13px!important;color:#f2f7fd!important;box-shadow:none!important}
body.spectrahubForum .shV97FullTitleLine>input:focus{outline:0!important;box-shadow:inset 0 0 0 1px #448ddd!important}
body.spectrahubForum .shV97FullActions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin-top:17px}
body.spectrahubForum .shV97FullActions>a,body.spectrahubForum .shV97FullActions>button{display:inline-flex;gap:8px;align-items:center;justify-content:center}
body.spectrahubForum .shV97FullActions .shFa img{width:14px;height:14px}
body.spectrahubForum .shV97FullTopicHead{max-width:100%}
body.spectrahubForum .shV97MissingForum{padding:24px;display:grid;gap:10px}
body.spectrahubForum .shV97MissingForum>p{color:#c5d5e4}
body.spectrahubForum .shV97MissingForum>a{justify-self:start}

/* Moderators: modern, bounded, searchable selection and aligned result cards. */
body.spectrahubForum .shV97ModHead{display:flex;align-items:center;justify-content:space-between;gap:18px}
body.spectrahubForum .shV97ModHead .btn{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}
body.spectrahubForum .shV97ModHead .shFa img{width:15px;height:15px}
body.spectrahubForum .shV97ModManage{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;min-width:0;margin:14px 0 40px}
body.spectrahubForum .shV97ModPanel{background:#363d45;border:1px solid #566575;border-radius:13px;min-width:0;overflow:visible;box-shadow:0 8px 24px rgba(0,0,0,.12)}
body.spectrahubForum .shV97ModPanelHead{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px 16px;border-bottom:1px solid #515e6b;background:#3e4752;border-radius:13px 13px 0 0}
body.spectrahubForum .shV97ModPanelHead h2{color:#f2f5fa;font-size:17px;margin:4px 0 3px}
body.spectrahubForum .shV97ModPanelHead p{color:#b9cad9;font-size:14px;margin:0}
body.spectrahubForum .shV97ModEyebrow{color:#8ebdf5;font-size:14px;letter-spacing:.12em;font-weight:900}
body.spectrahubForum .shV97ModPanelHead>.shFa img{width:27px;height:27px;opacity:.8}
body.spectrahubForum .shV97ModSelectForm{padding:18px 20px 20px;margin:0;display:grid;gap:11px;min-width:0}
body.spectrahubForum .shV97ModSelectForm>label{font-size:14px;font-weight:800;color:#e5effb}
body.spectrahubForum .shV97ModSearchWrap{display:flex;align-items:center;gap:12px;background:#272e36;border:1px solid #63768b;border-radius:9px;padding:0 12px;min-width:0}
body.spectrahubForum .shV97ModSearchWrap:focus-within{border-color:#4b9fed;box-shadow:0 0 0 2px rgba(58,147,232,.16)}
body.spectrahubForum .shV97ModSearchWrap .shFa img{width:16px;height:16px}
body.spectrahubForum .shV97ModSearchWrap>input{width:100%;min-width:0;border:0!important;box-shadow:none!important;background:transparent!important;color:#f3f7fa!important;font-size:14px;padding:13px 0!important;height:42px;margin:0!important}
body.spectrahubForum .shV97ModChoices{display:grid;max-height:290px;overflow-y:auto;border:1px solid #556879;border-radius:10px;padding:6px;background:#2e3740;gap:3px}
body.spectrahubForum .shV97ModChoices[hidden]{display:none!important}
body.spectrahubForum .shV97ModChoice{display:flex;align-items:center;gap:10px;min-height:53px;text-align:left;width:100%;padding:6px 9px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#f4f8fb!important;cursor:pointer}
body.spectrahubForum .shV97ModChoice:hover,body.spectrahubForum .shV97ModChoice[aria-selected="true"]{background:#3d5268!important;border-color:#6887a8!important}
body.spectrahubForum .shV97ModChoice .shFa,body.spectrahubForum .shV97ModChoiceAdd{margin-left:auto}
body.spectrahubForum .shV97ModChoice .shFa img,body.spectrahubForum .shV97ModChoiceAdd img{width:14px;height:14px;filter:brightness(0) invert(1)}
body.spectrahubForum .shV97ModAvatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;overflow:hidden;background:#325477;border:1px solid #617c9c;border-radius:50%;color:#fff;font-size:14px;font-weight:900}
body.spectrahubForum .shV97ModAvatar img{width:100%;height:100%;object-fit:cover}
body.spectrahubForum .shV97ModChoiceText,body.spectrahubForum .shV97ModIdentity{display:grid;gap:3px;min-width:0;flex:1}
body.spectrahubForum .shV97ModChoiceText strong,body.spectrahubForum .shV97ModIdentity a{color:#f5f8fd;font-size:14px;font-weight:800;overflow-wrap:anywhere;text-decoration:none}
body.spectrahubForum .shV97ModChoiceText small,body.spectrahubForum .shV97ModIdentity small{color:#a5b8ca;font-size:14px}
body.spectrahubForum .shV97ModSelected{background:#284861;color:#dcf0ff;border:1px solid #5d93c2;border-radius:8px;padding:11px 13px;font-size:14px;font-weight:750}
body.spectrahubForum .shV97ModSelected[hidden]{display:none!important}
body.spectrahubForum .shV97ModSubmit{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:2px;width:fit-content;max-width:100%;font-size:14px;padding:10px 14px}
body.spectrahubForum .shV97ModSubmit .shFa img{width:15px;height:15px}
body.spectrahubForum .shV97ModSubmit:disabled{opacity:.55;cursor:not-allowed}
body.spectrahubForum .shV97ModNoResult{padding:12px;color:#b5c7d9;font-size:14px}
body.spectrahubForum .shV97ModList{display:grid;padding:10px 12px;max-height:460px;overflow-y:auto;gap:5px}
body.spectrahubForum .shV97ModMember{display:flex;align-items:center;gap:11px;min-width:0;margin:0;border:1px solid #566472;border-radius:9px;background:#303941;padding:10px}
body.spectrahubForum .shV97ModRemove{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 11px;background:#47474c;color:#f5d0d7;border:1px solid #8a6572;border-radius:8px;cursor:pointer;font-size:14px;font-weight:800}
body.spectrahubForum .shV97ModRemove:hover{background:#693d49;color:#fff}
body.spectrahubForum .shV97ModRemove .shFa img{width:13px;height:13px}
body.spectrahubForum .shV97ModEmpty{display:flex;align-items:center;gap:12px;padding:17px 13px;color:#aabcce;font-size:14px}
body.spectrahubForum .shV97ModEmpty .shFa img{width:18px;height:18px}
body.spectrahubForum .shV97ModError{margin-bottom:15px}
@media(max-width:950px){body.spectrahubForum .shV97ModManage{grid-template-columns:1fr}}
@media(max-width:650px){
body.spectrahubForum .shV97InlineTopic{padding:9px}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicTop{grid-template-columns:32px minmax(0,1fr);gap:8px}
body.spectrahubForum .shV97PrefixToggle{padding:4px 7px!important;gap:4px}
body.spectrahubForum .shV97PrefixTag{max-width:85px;font-size:14px}
body.spectrahubForum .shV97InlineTopic .shV96TopicTitle{font-size:14px!important;padding:10px 8px!important}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicActions{justify-content:flex-end}
body.spectrahubForum .shV97InlineTopic .shV96InlineTopicActions .btn{font-size:14px;padding:9px 10px}
body.spectrahubForum .shV97FullTopic{padding:14px}
body.spectrahubForum .shV97ModPanelHead{padding:15px}
body.spectrahubForum .shV97ModSelectForm{padding:14px}
body.spectrahubForum .shV97ModRemove span{display:none}
body.spectrahubForum .shV97ModHead{flex-wrap:wrap}
}
