/* ForumX: navigation, title and administration cleanup. */
body.fx-r98 .thread-title-card h1,body.fx-r98 .thread-title-card h1 *,body.fx-r98 .fx135-brand{ text-shadow:none!important;filter:none!important }
body.fx-r98 .thread-title-card h1{line-height:1.3!important;overflow-wrap:anywhere}
body.fx-r98 .thread-title-meta{display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important}
body.fx-r98 .thread-title-meta .forumx-icon{width:15px!important;height:15px!important;flex:none}
html[data-layout=v2] body.fx-r98 #fx98-menu.fx135-menu{position:fixed!important;inset:auto 12px auto auto!important;top:var(--fx-clean-menu-top,100px)!important;width:min(330px,calc(100vw - 24px))!important;min-width:0!important;max-height:var(--fx-clean-menu-height,65dvh)!important;padding:8px!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;border-radius:10px!important;z-index:1500!important;box-sizing:border-box;box-shadow:0 8px 24px #0003!important}
html[data-layout=v2] body.fx-r98 #fx98-menu.fx135-menu:not(.open){display:none!important}
html[data-layout=v2] body.fx-r98 #fx98-menu.fx135-menu.open{display:flex!important;flex-direction:column!important;gap:2px!important}
html[data-layout=v2] body.fx-r98 #fx98-menu.fx135-menu>a{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 12px!important;min-height:42px!important;font-size:14px!important;line-height:1.35!important;border:0!important;border-radius:6px!important;flex:none!important;margin:0!important;background:transparent!important}
html[data-layout=v2] body.fx-r98 #fx98-menu.fx135-menu>a:hover{background:var(--fx98-tint)!important}
html[data-layout=v2] body.fx-r98 #fx98-menu .forumx-icon{width:19px!important;height:19px!important;flex:0 0 19px!important;filter:none!important}
html[data-layout=v2] body.fx-r98 #fx98-menu>form{padding:8px 4px 4px!important;border-top:1px solid var(--fx98-line);margin:4px 0 0!important}
html[data-layout=v2] body.fx-r98 #fx98-menu>form>.button{width:100%;padding:9px!important;min-height:40px!important;font-size:14px!important;box-shadow:none!important}
@media(max-width:850px){
 html[data-layout=v2] body.fx-r98 .fx135-masthead{height:142px!important}
 html[data-layout=v2] body.fx-r98 .fx135-nav{min-height:64px!important;gap:10px!important}
 html[data-layout=v2] body.fx-r98 .fx135-nav-tools{gap:2px!important}
 html[data-layout=v2] body.fx-r98 .fx135-icon{width:40px!important;height:40px!important;padding:9px!important}
 html[data-layout=v2] body.fx-r98 .fx135-subnav{display:flex!important;gap:8px!important;justify-content:space-between!important;padding-top:4px!important}
 html[data-layout=v2] body.fx-r98 .fx135-subnav a{font-size:10px!important;white-space:nowrap!important;gap:5px!important;line-height:1.4!important;min-width:0!important}
 html[data-layout=v2] body.fx-r98 .fx135-subnav a .forumx-icon{width:16px!important;height:16px!important;flex:0 0 16px!important}
 html[data-layout=v2] body.fx-r98 .fx135-wave{height:40px!important}
}
/* A single surface per section, without nested dashboard cards. */
html[data-theme] body.admin-console-body #content .admin-hero,
html[data-theme] body.admin-console-body #content .admin-quick-grid,
html[data-theme] body.admin-console-body #content .admin-stat-grid,
html[data-theme] body.admin-console-body #content .admin-insight-grid{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html[data-theme] body.admin-console-body #content .admin-hero{padding:0 0 20px!important;border-bottom:1px solid var(--fx101-line)!important}
html[data-theme] body.admin-console-body #content .admin-hero h1{font-size:clamp(24px,3vw,34px)!important;margin:8px 0!important}
html[data-theme] body.admin-console-body #content .admin-hero p{max-width:68ch;line-height:1.6;font-size:14px!important}
html[data-theme] body.admin-console-body #content .admin-hero-orb{display:none!important}
html[data-theme] body.admin-console-body #content .admin-hero-actions{display:flex;flex-wrap:wrap;gap:8px!important}
html[data-theme] body.admin-console-body #content .admin-hero-actions .button{padding:9px 12px!important;min-height:38px!important;font-size:13px!important;box-shadow:none!important}
html[data-theme] body.admin-console-body #content .admin-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:0!important;padding:0!important;border-bottom:1px solid var(--fx101-line)!important}
html[data-theme] body.admin-console-body #content .admin-stat-card{display:flex!important;gap:12px!important;align-items:center!important;padding:16px 12px!important;margin:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;min-height:86px!important}
html[data-theme] body.admin-console-body #content .admin-stat-icon{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;width:28px!important;height:28px!important;flex:0 0 28px!important;color:var(--accent)!important}
html[data-theme] body.admin-console-body #content .admin-stat-icon svg{width:24px!important;height:24px!important}
html[data-theme] body.admin-console-body #content .admin-stat-card strong{font-size:24px!important;line-height:1.15!important}
html[data-theme] body.admin-console-body #content .admin-stat-card div>span{font-size:12px!important}
html[data-theme] body.admin-console-body #content :is(.admin-chart-card,.admin-kpi-card){background:transparent!important;border:0!important;border-bottom:1px solid var(--fx101-line)!important;border-radius:0!important;box-shadow:none!important;padding:16px 0!important}
html[data-theme] body.admin-console-body #content .admin-kpi-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 24px!important}
html[data-theme] body.admin-console-body #content .admin-kpi-list>div{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;display:flex!important;gap:10px!important;align-items:baseline!important}
html[data-theme] body.admin-console-body #content .admin-quick-grid{padding:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 24px!important}
html[data-theme] body.admin-console-body #content .admin-quick-grid>a{display:flex!important;align-items:center!important;gap:12px!important;min-height:76px!important;padding:12px 0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--fx101-line)!important;border-radius:0!important;box-shadow:none!important}
html[data-theme] body.admin-console-body #content .admin-quick-grid>a>svg{background:none!important;border-radius:0!important;padding:0!important;width:23px!important;height:23px!important;flex:0 0 23px!important;color:var(--accent)!important}
html[data-theme] body.admin-console-body #content .admin-quick-grid strong{font-size:14px!important}
html[data-theme] body.admin-console-body #content .admin-quick-grid small{font-size:12px!important;line-height:1.45!important}
html[data-theme] body.admin-console-body #content .card .card,
html[data-theme] body.admin-console-body #content .premium-panel .premium-panel{box-shadow:none!important;border-radius:0!important;border-left:0!important;border-right:0!important;background:transparent!important}
html[data-theme] body.admin-console-body #content .admin-nav-icon svg{width:18px!important;height:18px!important;display:block!important;opacity:1!important;visibility:visible!important;flex:none!important}
html[data-theme] body.admin-console-body .admin-console-footer{padding:16px!important;font-size:12px!important;line-height:1.5!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
@media(max-width:650px){
 html[data-theme] body.admin-console-body #content{padding:16px 14px!important}
 html[data-theme] body.admin-console-body #content .admin-stat-grid{grid-template-columns:1fr 1fr!important}
 html[data-theme] body.admin-console-body #content .admin-quick-grid{grid-template-columns:1fr!important}
 html[data-theme] body.admin-console-body #content .admin-insight-grid{grid-template-columns:1fr!important;gap:0!important}
 html[data-theme] body.admin-console-body #content .admin-stat-card{padding:14px 6px!important}
 html[data-theme] body.admin-console-body .admin-console-topbar button{width:38px!important;height:38px!important;min-height:38px!important;border:0!important;background:transparent!important;box-shadow:none!important}
}
html[data-theme] body.admin-console-body #content :is(.admin-stat-icon,.admin-quick-grid>a)>svg{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;filter:none!important;color:var(--fx101-text)!important}
html[data-theme] body.admin-console-body #content .admin-bar-track{background:transparent!important;border:0!important;border-radius:3px!important;box-shadow:none!important}

/* Popular topics: compact, consistently aligned rows on both themes. */
html[data-theme] body #content .forumx-hot-list{padding:0!important;overflow:hidden}
html[data-theme] body #content .forumx-hot-card{display:grid!important;grid-template-columns:28px 44px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:18px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body #content .forumx-hot-card+.forumx-hot-card{border-top:1px solid var(--border-color,#61758b40)!important}
html[data-theme] body #content .forumx-hot-rank{font-size:13px!important;opacity:.65;align-self:start;padding-top:12px}
html[data-theme] body #content .forumx-hot-card>.avatar{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;object-fit:cover;border-radius:12px!important;margin:0!important;align-self:start}
html[data-theme] body #content .forumx-hot-main{min-width:0!important;display:grid!important;gap:8px!important}
html[data-theme] body #content .forumx-hot-title{font-size:16px!important;font-weight:650!important;line-height:1.4!important;overflow-wrap:anywhere}
html[data-theme] body #content .forumx-hot-main>small{display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;font-size:12px!important;line-height:1.5!important;opacity:.8}
html[data-theme] body #content .forumx-hot-main>small>span,html[data-theme] body #content .forumx-hot-stats>span{display:inline-flex!important;align-items:center!important;gap:6px!important;min-width:0}
html[data-theme] body #content .forumx-hot-card svg{width:15px!important;height:15px!important;flex:none!important;vertical-align:middle}
html[data-theme] body #content .forumx-hot-stats{display:flex!important;align-items:center!important;gap:18px!important;margin:0!important;font-size:13px!important}
html[data-theme] body #content .forumx-hot-stats b{font-size:14px!important;line-height:1.4!important}
html[data-theme] body #content .forumx-hot-stats small{font-size:12px!important;opacity:.7}
html[data-theme] body #content .forumx-hot-period{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
html[data-theme] body #content .forumx-hot-period>a{display:flex!important;align-items:center;justify-content:center;padding:10px 4px!important;margin:0!important;min-width:0;font-size:13px!important;white-space:nowrap;border-radius:10px!important}
@media(max-width:650px){
 html[data-theme] body #content .forumx-hot-card{grid-template-columns:20px 40px minmax(0,1fr)!important;gap:10px!important;padding:15px 12px!important}
 html[data-theme] body #content .forumx-hot-card>.avatar{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;border-radius:10px!important}
 html[data-theme] body #content .forumx-hot-rank{padding-top:10px;font-size:12px!important}
 html[data-theme] body #content .forumx-hot-stats{grid-column:3!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px 16px!important}
 html[data-theme] body #content .forumx-hot-title{font-size:15px!important}
 html[data-theme] body #content .forumx-hot-main>small{gap:5px 10px!important}
}

/* Reply editor: one editor frame, no surrounding duplicate card. */
html[data-theme] body #content #reply.forumx-premium-reply,
html[data-theme] body #content #reply .fxr-body,
html[data-theme] body #content #reply .fxr-editor{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
html[data-theme] body #content #reply .fxr-body::before,
html[data-theme] body #content #reply .fxr-editor::before,
html[data-theme] body #content #reply .fxr-editor::after{content:none!important;display:none!important}
html[data-theme] body #content #reply .forumx-quill-frame{border-radius:10px!important;overflow:visible!important}
html[data-theme] body #content #reply .forumx-quill-toolbar.ql-toolbar.ql-snow{margin:0!important;border-radius:10px 10px 0 0!important;box-shadow:none!important;background:transparent!important;border-top:0!important;border-left:0!important;border-right:0!important}
html[data-theme] body #content #reply .fxr-form{gap:14px!important}

/* Wrap mobile editor controls instead of clipping a horizontal strip. */
@media(max-width:700px){
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar.ql-toolbar.ql-snow{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;height:auto!important;max-height:none!important;min-height:0!important;padding:6px!important;overflow:visible!important;box-sizing:border-box!important}
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar-scroll{display:flex!important;flex:1 1 100%!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;min-height:0!important;height:auto!important;max-height:none!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:visible!important;white-space:normal!important;touch-action:auto!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important}
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar .ql-formats{display:contents!important;position:static!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;float:none!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:6px!important;margin:0!important;overflow:visible!important;box-sizing:border-box!important}
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar button>svg{display:block!important;flex:0 0 22px!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;margin:0!important;overflow:visible!important}
 html[data-theme] body #content .forumx-quill-shell .forumx-quill-toolbar button.fxs-language-insert{flex:0 1 auto!important;width:auto!important;min-width:100px!important;max-width:100%!important;padding:6px 10px!important;font-size:12px!important;white-space:nowrap!important}
}

/* Device badges: accessible symbols, without the long metadata sentence. */
html[data-theme] body #content .fxs-client-icons{display:flex!important;align-items:center!important;gap:12px!important;padding:5px 0!important;line-height:1!important}
html[data-theme] body #content .fxs-client-icons>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;flex:0 0 24px!important}
html[data-theme] body #content .fxs-client-icons svg{display:block!important;width:21px!important;height:21px!important;overflow:visible!important;flex:none!important}
/* Composer controls share one deliberate layout. */
html[data-theme] body #content #reply .fxr-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
html[data-theme] body #content #reply .fxr-footer-start{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;margin:0!important}
html[data-theme] body #content #reply .fxr-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;margin:0!important;width:auto!important}
html[data-theme] body #content #reply .fxr-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:0!important;min-height:42px!important;box-sizing:border-box!important;position:static!important;transform:none!important}
html[data-theme] body #content .forumx-quill-toolbar{position:static!important;top:auto!important}
@media(max-width:700px){
 html[data-theme] body #content #reply .fxr-footer{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html[data-theme] body #content #reply .fxr-attachment-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;min-width:0!important}
 html[data-theme] body #content #reply .fxr-file-button{margin:0!important;width:auto!important;min-height:40px!important;padding:7px 12px!important;box-sizing:border-box!important}
 html[data-theme] body #content #reply .fxr-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:10px!important}
 html[data-theme] body #content #reply .fxr-action{width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 8px!important;font-size:14px!important}
}

/* One shared panel for dictation, attachments and reply actions. */
html[data-theme] body #content #reply .fxr-footer{padding:12px!important;border:1px solid var(--fxs-line)!important;border-radius:12px!important;background:var(--fxs-panel)!important;gap:12px!important;box-shadow:none!important}
html[data-theme] body #content #reply [data-reply-tools]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:8px!important;width:100%!important}
html[data-theme] body #content #reply [data-reply-tools] .fx144-dictation{display:contents!important}
html[data-theme] body #content #reply [data-reply-tools] .fx144-mic{order:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:42px!important;padding:8px 10px!important;margin:0!important;font-size:13px!important;line-height:1.3!important;border-radius:8px!important;box-sizing:border-box!important}
html[data-theme] body #content #reply [data-reply-tools] .fxr-attachment-row{order:1!important;display:flex!important;width:100%!important;min-width:0!important;gap:6px!important;justify-content:stretch!important}
html[data-theme] body #content #reply [data-reply-tools] .fxr-file-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:42px!important;padding:8px 10px!important;margin:0!important;border-radius:8px!important;box-sizing:border-box!important;font-size:13px!important;line-height:1.3!important}
html[data-theme] body #content #reply [data-reply-tools] .fxr-file-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:18px!important;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border:0!important}
html[data-theme] body #content #reply [data-reply-tools] :is(.fx144-mic,.fxr-file-icon) svg{width:18px!important;height:18px!important;flex:none!important}
html[data-theme] body #content #reply [data-reply-tools] .fx144-status{order:2!important;grid-column:1/-1!important;min-width:0!important;font-size:12px!important}
html[data-theme] body #content #reply [data-reply-tools] .fx144-status:empty{display:none!important}
html[data-theme] body #content #reply [data-reply-tools] .fx144-notice{order:3!important;grid-column:1/-1!important;font-size:11px!important;line-height:1.5!important;margin:0!important;color:var(--fxs-muted)!important}
html[data-theme] body #content #reply .fxr-actions{align-self:stretch!important;align-items:center!important}
@media(max-width:700px){
 html[data-theme] body #content #reply .fxr-footer{gap:12px!important}
 html[data-theme] body #content #reply .fxr-actions{padding-top:10px!important;border-top:1px solid var(--fxs-line)!important}
}

/* Shared post rank dimensions, including manually assigned extra ranks. */
html[data-theme] body #content .fx137-author :is(.fx137-group,.fx137-rank){width:170px!important;max-width:100%!important;margin:6px 0!important;box-sizing:border-box!important}
html[data-theme] body #content .fx137-author .fx137-group,
html[data-theme] body #content .fx137-author .fx137-rank>.fx-rank,
html[data-theme] body #content .fxp-author-ranks>.fx-rank{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:170px!important;max-width:100%!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:4px 8px!important;margin:0!important;box-sizing:border-box!important;border-radius:8px!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important}
html[data-theme] body #content .fx137-author .fx137-rank{display:grid!important;gap:6px!important}
html[data-theme] body #content .fx137-author .fx137-group>svg,
html[data-theme] body #content .fx137-author .fx-rank__icon{width:18px!important;height:18px!important;flex:0 0 18px!important;padding:0!important;border:0!important;margin:0!important}
html[data-theme] body #content .fx137-author .fx137-group>span{border:0!important;padding:0!important}
html[data-theme] body #content .fx137-author .fx-rank__copy{display:block!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-theme] body #content .fx137-author .fx-rank__copy strong{font:inherit!important}
.fx-extra-rank-designs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:20px 0}.fx-extra-rank-designs article{padding:18px;border:1px solid var(--fxs-line);border-radius:10px}.fx-extra-rank-preview{display:flex;align-items:center;justify-content:center;gap:8px;width:170px;max-width:100%;height:32px;box-sizing:border-box;border:1px solid;border-radius:8px;font-size:12px}.fx-extra-rank-preview svg{width:18px;height:18px}.fx-extra-rank-designs p{font-size:12px;color:var(--fxs-muted);margin:12px 0 0}
@media(min-width:600px){html[data-theme] body #content .fx137-author :is(.fx137-group,.fx137-rank){margin-inline:auto!important}}

/* Compact topic menu replaces the standalone pinning card. */
html[data-theme] body #content .thread-title-card{overflow:visible!important}
.fx-topic-menu{position:relative;display:inline-block;z-index:85}.fx-topic-menu>summary{display:flex;align-items:center;justify-content:center;position:relative;list-style:none;width:40px;height:40px;border:1px solid var(--fxs-line);border-radius:8px;cursor:pointer;font-size:19px;letter-spacing:2px;background:var(--fxs-panel);color:var(--fxs-text)}.fx-topic-menu>summary::-webkit-details-marker{display:none}.fx-topic-menu>summary:focus-visible{outline:2px solid #2995ff;outline-offset:3px}.fx-topic-menu-active{position:absolute;right:3px;top:3px;width:7px;height:7px;border-radius:50%;background:#25ce7b}.fx-topic-menu-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:320px;max-width:calc(100vw - 36px);padding:12px;background:var(--fxs-panel);color:var(--fxs-text);border:1px solid var(--fxs-line);border-radius:10px;box-shadow:0 10px 28px #0003;box-sizing:border-box}.fx-topic-menu-panel>strong{display:block;font-size:12px;color:var(--fxs-muted);padding:4px 6px 10px}
html[data-theme] body #content .fx-topic-menu-panel form{margin:0!important;width:100%!important}
html[data-theme] body #content .fx-topic-menu-panel button{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:44px!important;padding:8px 6px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;text-align:start!important;font-size:13px!important;white-space:normal!important}
html[data-theme] body #content .fx-topic-menu-panel button:hover{background:rgba(41,149,255,.08)!important}.fx-topic-menu-panel button>svg{width:17px!important;height:17px!important;flex:none}.fx-topic-menu-panel button>span{flex:1}.fx-topic-menu-panel button>small{font-size:11px;color:var(--fxs-muted)}.fx-topic-state{width:8px;height:8px;border-radius:50%;background:#7b8793;flex:none}.fx-topic-state.is-active{background:#25ce7b}
/* Keep the presence marker clear of badges, with generous badge spacing. */
html[data-theme] body #content .fx137-author .fx137-online{left:auto!important;right:0!important;bottom:2px!important;transform:none!important;width:12px!important;height:12px!important;animation:none!important;box-shadow:0 0 0 2px var(--fxs-panel)!important;border:2px solid var(--fxs-panel)!important}
html[data-theme] body #content .fx137-author .fx137-group{margin-top:16px!important;margin-bottom:12px!important}
html[data-theme] body #content .fx137-author .fx137-rank{margin-top:0!important;margin-bottom:16px!important;gap:10px!important}
html[data-theme] body[data-postbit-shape=square] #content :is(.fx137-avatar-wrap,.fx137-avatar){border-radius:2px!important}
html[data-theme] body[data-postbit-shape=circle] #content :is(.fx137-avatar-wrap,.fx137-avatar){border-radius:50%!important;aspect-ratio:1!important}
html[data-theme] body[data-postbit-shape=rounded] #content :is(.fx137-avatar-wrap,.fx137-avatar){border-radius:18px!important}
html[data-theme] body[data-postbit-shape=oval] #content .fx137-avatar-wrap{height:calc(var(--fx137-avatar,104px) * .78)!important;border-radius:50%!important}
html[data-theme] body[data-postbit-shape=oval] #content .fx137-avatar{border-radius:50%!important}
@media(max-width:599px){
 html[data-theme] body[data-postbit-shape=oval] #content .fx137-avatar-wrap{width:64px!important;height:50px!important}
 html[data-theme] body #content .thread-title-actions{position:relative!important}
 html[data-theme] body #content .fx-topic-menu{margin-inline-start:auto}
}

/* Desktop tools stay compact; mobile keeps its two equal columns. */
@media(min-width:701px){
 html[data-theme] body #content #reply [data-reply-tools]{grid-template-columns:max-content max-content!important;justify-content:start!important;width:auto!important}
 html[data-theme] body #content #reply [data-reply-tools] :is(.fx144-mic,.fxr-file-button){width:132px!important;min-width:132px!important;max-width:132px!important;padding-inline:12px!important}
 html[data-theme] body #content #reply [data-reply-tools] .fxr-attachment-row{width:auto!important}
 html[data-theme] body #content #reply [data-reply-tools] .fx144-notice{max-width:640px!important}
}
html[data-theme] body #content .fxp-post-meta{overflow:visible!important}
html[data-theme] body #content .fxp-post-tools .fx-topic-menu>summary{width:30px!important;height:30px!important;font-size:16px!important;letter-spacing:1px!important}
html[data-theme] body #content .fxp-post-tools .fx-topic-menu{order:20!important}
html[data-theme] body #content .fxs-best-detailed{padding:18px!important;border:1px solid var(--fxs-line)!important;border-inline-start:3px solid #e5b253!important;border-radius:12px!important;background:var(--fxs-panel)!important}
.fxs-best-detailed>header{display:flex;align-items:center;gap:10px}.fxs-best-detailed .fxs-best-medal{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#e9b75a;background:rgba(229,178,83,.12);flex:none}.fxs-best-medal svg{width:20px;height:20px}.fxs-best-detailed>header>div{flex:1;min-width:0}.fxs-best-detailed h2{font-size:16px!important;margin:0!important;line-height:1.4}.fxs-best-detailed>header small{display:block;font-size:11px;color:var(--fxs-muted);margin-top:3px}.fxs-best-score{white-space:nowrap;font-size:12px;color:var(--fxs-muted)}.fxs-best-author{display:flex;gap:9px;align-items:center;margin-top:16px}.fxs-best-author img{width:34px!important;height:34px!important;object-fit:cover;border-radius:50%!important;display:block}.fxs-best-author>div{display:grid;gap:3px;font-size:13px}.fxs-best-author time{font-size:11px;color:var(--fxs-muted)}.fxs-best-detailed .fxs-best-preview{font-size:13px;line-height:1.75;margin:12px 0 16px!important;color:var(--fxs-text)}.fxs-best-detailed>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--fxs-line)}.fxs-best-reactions{display:flex;flex-wrap:wrap;gap:6px}.fxs-best-reactions>span{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid var(--fxs-line);border-radius:20px;font-size:12px}.fxs-best-reactions b{font-size:17px;font-weight:400}.fxs-best-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650}.fxs-best-link svg{width:14px;height:14px}
@media(max-width:599px){.fxs-best-detailed h2{font-size:14px!important}.fxs-best-detailed>header small{font-size:10px}.fxs-best-score{font-size:11px}}

/* Theme-aware header account popover. */
html[data-layout=v2] body.fx-r98 .fx-account-popover{position:relative;z-index:1200}
html[data-layout=v2] body.fx-r98 .fx-account-popover>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;min-height:36px;color:#e2edf4;border-radius:6px}
.fx-account-popover>summary::-webkit-details-marker{display:none}
.fx-account-popover>summary:focus-visible{outline:2px solid #94cce5;outline-offset:3px}
html[data-layout=v2] body.fx-r98 .fx-account-panel{position:fixed;top:44px;right:12px;box-sizing:border-box;width:min(380px,calc(100vw - 20px));max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain;background:var(--fx98-panel);color:var(--fx98-text);border:1px solid var(--fx98-line);border-radius:12px;box-shadow:0 14px 42px #0005;white-space:normal;text-align:left;font-size:14px}
html[data-layout=v2] body.fx-r98 .fx-account-panel span{display:inline!important}
html[data-layout=v2] body.fx-r98 .fx-account-panel a{color:var(--fx98-text);white-space:normal;line-height:1.35}
html[data-layout=v2] body.fx-r98 .fx-account-person{display:flex;align-items:center;justify-content:space-between;padding:16px;background:var(--fx98-soft);border-bottom:1px solid var(--fx98-line)}
html[data-layout=v2] body.fx-r98 .fx-account-person>a{display:flex;gap:12px;font-size:18px;min-width:0;overflow-wrap:anywhere}
html[data-layout=v2] body.fx-r98 .fx-account-person img{width:48px;height:48px;object-fit:cover;border-radius:10px}
html[data-layout=v2] body.fx-r98 .fx-account-person button{background:none;border:0;color:var(--fx98-muted);font-size:26px;cursor:pointer;min-width:36px;min-height:36px}
html[data-layout=v2] body.fx-r98 .fx-account-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:2px}
html[data-layout=v2] body.fx-r98 .fx-account-links>a{display:flex;gap:9px;align-items:center;padding:10px 8px;min-height:44px;box-sizing:border-box;border-radius:6px}
html[data-layout=v2] body.fx-r98 .fx-account-panel a:hover{background:var(--fx98-tint)}
html[data-layout=v2] body.fx-r98 .fx-account-panel .forumx-icon{width:18px;height:18px;flex:none;color:var(--fx98-link)}
html[data-layout=v2] body.fx-r98 .fx-account-bottom{padding:8px 16px;border-top:1px solid var(--fx98-line);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
html[data-layout=v2] body.fx-r98 .fx-account-bottom a,html[data-layout=v2] body.fx-r98 .fx-account-bottom button{display:inline-flex;gap:7px;align-items:center;min-height:40px;font-size:13px}
html[data-layout=v2] body.fx-r98 .fx-account-bottom form{margin-left:auto}
html[data-layout=v2] body.fx-r98 .fx-account-bottom button{border:0;background:none;color:var(--fx98-text);cursor:pointer;padding:0}
@media(max-width:480px){html[data-layout=v2] body.fx-r98 .fx-account-trigger-name{display:none}html[data-layout=v2] body.fx-r98 .fx-account-links>a{font-size:13px}}

@media(max-width:600px){html[data-layout=v2] body.fx-r98 .fx-account-panel{left:10px;right:10px!important;width:auto;max-width:none}html[data-layout=v2] body.fx-r98 .fx-account-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}html[data-layout=v2] body.fx-r98 .fx-account-bottom form{margin:0;grid-column:1/-1;border-top:1px solid var(--fx98-line);padding-top:4px}}

/* R184: compact category directory, custom icons share the same frame. */
.fx184-category-total{display:none}
.fx184-custom-icon{width:100%;height:100%;object-fit:contain;display:block}
.fx184-admin{margin-top:16px;border-top:1px solid var(--line,#314b61);padding-top:12px}
.fx184-admin>summary{cursor:pointer;font-weight:600;margin-bottom:10px}
.fx184-admin form{padding:8px 0}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx98-category{border-radius:12px!important;overflow:hidden;border:1px solid var(--fx98-line)!important;background:var(--fx98-panel)!important}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx105-category-heading{background:var(--fx98-soft)!important;color:var(--fx98-text)!important;padding:13px 16px!important;min-height:64px!important;border-bottom:1px solid var(--fx98-line)!important;display:flex;align-items:center}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx105-category-heading strong{color:var(--fx98-text)!important;font-size:16px!important;line-height:1.3}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx105-category-heading::after{content:'⌃';font-size:22px;color:var(--fx98-link)}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx98-category:not([open])>.fx105-category-heading::after{content:'⌄'}
html[data-layout=v2] body.fx-r98 #content .fx184-category-label{display:flex;align-items:center;gap:12px;min-width:0}
html[data-layout=v2] body.fx-r98 #content .fx184-category-label>svg,html[data-layout=v2] body.fx-r98 #content .fx184-category-label>img{width:30px;height:30px;flex:none;color:var(--fx98-link);object-fit:contain}
html[data-layout=v2] body.fx-r98 #content .fx184-category-label>span{display:block;min-width:0}
html[data-layout=v2] body.fx-r98 #content .fx184-category-total{display:block;margin-top:3px;color:var(--fx98-muted);font-size:11px;font-weight:400}
html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx98-column-labels{display:none!important}
html[data-layout=v2] body.fx-r98 #content .fx184-row{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:18px;padding:16px;border-bottom:1px solid var(--fx98-line);min-width:0;box-sizing:border-box}
html[data-layout=v2] body.fx-r98 #content .fx184-row:last-child{border-bottom:0}
html[data-layout=v2] body.fx-r98 #content .fx184-main{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;color:var(--fx98-text)}
html[data-layout=v2] body.fx-r98 #content .fx184-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--fx98-line);border-radius:10px;background:var(--fx98-tint);color:var(--fx98-link);overflow:hidden}
html[data-layout=v2] body.fx-r98 #content .fx184-icon svg{width:25px;height:25px}
html[data-layout=v2] body.fx-r98 #content .fx184-icon img{width:34px;height:34px;object-fit:contain}
html[data-layout=v2] body.fx-r98 #content .fx184-copy{min-width:0;flex:1}
html[data-layout=v2] body.fx-r98 #content .fx184-copy strong{display:block;font-size:15px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-layout=v2] body.fx-r98 #content .fx184-copy>small{display:block;font-size:12px;color:var(--fx98-muted);line-height:1.45;margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-layout=v2] body.fx-r98 #content .fx184-unread{display:inline-block;width:7px;height:7px;border-radius:50%;background:#38a9f4;margin-left:7px;vertical-align:middle}
html[data-layout=v2] body.fx-r98 #content .fx184-counts{display:flex;align-items:center;gap:5px;color:var(--fx98-muted);font-size:11px;margin-top:6px}
html[data-layout=v2] body.fx-r98 #content .fx184-counts svg{width:12px;height:12px}
html[data-layout=v2] body.fx-r98 #content .fx184-counts>span{margin:0 3px}
html[data-layout=v2] body.fx-r98 #content .fx184-arrow svg{width:14px;height:14px;color:var(--fx98-muted)}
html[data-layout=v2] body.fx-r98 #content .fx184-last{display:flex;align-items:center;gap:10px;min-width:0;border-left:1px solid var(--fx98-line);padding-left:16px}
html[data-layout=v2] body.fx-r98 #content .fx184-last>img{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}
html[data-layout=v2] body.fx-r98 #content .fx184-last>div{min-width:0}
html[data-layout=v2] body.fx-r98 #content .fx184-last small{display:block;color:var(--fx98-muted);font-size:9px;letter-spacing:.04em;line-height:1.3}
html[data-layout=v2] body.fx-r98 #content .fx184-last a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fx98-text);font-size:12px;font-weight:600;text-decoration:none;line-height:1.5}
html[data-layout=v2] body.fx-r98 #content .fx184-last span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fx98-muted);font-size:10px;line-height:1.5}
@media(max-width:760px){html[data-layout=v2] body.fx-r98 #content .fx184-row{display:block;padding:13px 12px}html[data-layout=v2] body.fx-r98 #content .fx184-last{border-left:0;border-top:1px solid var(--fx98-line);padding:10px 0 0 54px;margin-top:11px}html[data-layout=v2] body.fx-r98 #content .fx184-copy strong{font-size:14px}html[data-layout=v2] body.fx-r98 #content .fx98-directory .fx105-category-heading{padding:12px!important;min-height:60px!important}html[data-layout=v2] body.fx-r98 #content .fx184-copy>small{font-size:11px}}
html[data-layout=v2] body.fx-r98 #content .fx184-child{padding-left:calc(16px + min(var(--fx184-depth),3)*14px);background:var(--fx98-soft)}
html[data-layout=v2] body.fx-r98 #content .fx184-child-label{font-size:9px;font-weight:400;color:var(--fx98-muted);border:1px solid var(--fx98-line);border-radius:4px;padding:1px 4px;margin-right:6px;vertical-align:middle}
html[data-layout=v2] body.fx-r98 #content .fx184-subforums{border:1px solid var(--fx98-line);border-radius:12px;overflow:hidden;background:var(--fx98-panel);margin:16px 0}
html[data-layout=v2] body.fx-r98 #content .fx184-subforums>h2{font-size:15px;margin:0;padding:12px 16px;background:var(--fx98-soft);border-bottom:1px solid var(--fx98-line)}
@media(max-width:760px){html[data-layout=v2] body.fx-r98 #content .fx184-child{padding-left:calc(12px + min(var(--fx184-depth),3)*8px)}}
html[data-theme] body #content .fx-topic-menu-panel .fx-topic-cover-link{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 6px;border-bottom:1px solid var(--fxs-line);margin-bottom:5px;color:var(--fxs-muted);font-size:12px;text-decoration:none;white-space:normal}
html[data-theme] body #content .fx-topic-menu-panel .fx-topic-cover-link svg{width:17px;height:17px;flex:none}
/* Member directory: keep identity, ranks and totals in independent rows. */
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;width:100%!important;box-sizing:border-box!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar>label{display:flex!important;min-width:0!important;width:100%!important;margin:0!important;box-sizing:border-box!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar input:not([type=hidden]){width:100%!important;min-width:0!important;flex:1 1 auto!important;box-sizing:border-box!important;font-size:14px!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar>.button{width:auto!important;margin:0!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-card{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:16px!important;overflow:visible!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-avatar{grid-column:1!important;grid-row:1!important;width:52px!important;height:52px!important;box-sizing:border-box!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-copy>strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:16px!important;line-height:1.4!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-badges{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;min-width:0!important;overflow:visible!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-badges .fx-rank{display:flex!important;flex:0 1 150px!important;width:150px!important;max-width:100%!important;min-width:0!important;height:30px!important;min-height:30px!important;box-sizing:border-box!important;padding:4px 8px!important;font-size:12px!important;gap:6px!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-badges .fx-rank__icon{flex:0 0 18px!important;width:18px!important;height:18px!important;padding:0!important;margin:0!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-stats{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:16px!important;padding-top:12px!important;border-top:1px solid var(--border,rgba(150,170,190,.2))!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-stats>span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
html[data-theme] body.forumx-v25-members-page #content .forumx-v25-card-arrow{display:none!important}
@media(max-width:600px){html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar{grid-template-columns:minmax(0,1fr)!important}html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar>label{flex:none!important}html[data-theme] body.forumx-v25-members-page #content .forumx-v25-searchbar>.button{width:100%!important}html[data-theme] body.forumx-v25-members-page #content .forumx-v25-member-grid{grid-template-columns:minmax(0,1fr)!important}}

html[data-theme] body #content .fx136-featured>header.fx189-feature-tools{justify-content:flex-end!important;min-height:28px!important;padding:0 36px 0 0!important;margin:0 0 8px!important;border:0!important;background:none!important}
