/* R91: layout constraints and navigation corrections. No blanket overflow masking. */
body.fx-forumx :is(.page-shell,.header-inner,.header-actions,.main-nav,.fxp-post-list,.fxp-post-content,.fxp-post-body,.fx72-thread-row,.fx72-forum-row,.forumx-v25-member-copy){min-width:0}
body.fx-forumx .header-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
body.fx-forumx .header-actions .header-login-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:max-content!important;padding:0 10px!important;white-space:nowrap!important;flex:none!important}
body.fx-forumx .header-actions :is(.header-register,.action-icon){flex-shrink:0!important}
body.fx-forumx .header-inner{gap:14px!important}
body.fx-forumx :is(.post-body,.fxp-post-body,.profile-about,.thread-title){overflow-wrap:anywhere;word-break:normal}
body.fx-forumx .post-body :is(img,video){max-width:100%!important;height:auto!important}
body.fx-forumx .post-body iframe{max-width:100%!important;aspect-ratio:16/9}
body.fx-forumx :is(pre,.code-block){max-width:100%;min-width:0;overflow-x:auto;white-space:pre}
body.fx-forumx .post-body table{display:block;max-width:100%;overflow-x:auto}
body.fx-forumx :is(.fxp-post-tools,.fxp-primary-actions,.fxp-secondary-actions,.breadcrumbs){flex-wrap:wrap;max-width:100%}
body.fx-forumx :is(input,textarea,select){max-width:100%;min-width:0}
body.fx-forumx .fxp-post-list>[data-fx91-ad]{width:100%;grid-column:1/-1}
.fx91-banner{position:relative;width:100%;max-width:100%;min-width:0;margin:18px 0;overflow:hidden;color:var(--text);border:0;box-shadow:none}
.fx91-banner[hidden]{display:none!important}.fx91-ad-label{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.fx91-banner-link{display:flex;align-items:center;gap:22px;min-width:0;color:inherit;text-decoration:none!important;overflow:hidden}
.fx91-banner-image .fx91-banner-link{justify-content:center}
.fx91-banner picture{display:block;max-width:100%;min-width:0}.fx91-banner-image picture{width:100%}
.fx91-banner img{display:block;width:100%;height:auto;max-height:var(--ad-height,140px);object-fit:contain;max-width:100%}
.fx91-banner-text .fx91-banner-link{padding:22px;border-left:4px solid var(--ad-color);background:var(--surface-2,var(--card-2))}
.fx91-banner-text picture{flex:0 1 30%;max-width:260px}.fx91-banner-copy{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.fx91-banner-copy strong{font-size:1.2rem}.fx91-banner-copy>span{color:var(--muted)}.fx91-banner-copy b{color:var(--ad-color);font-size:.9rem;margin-top:5px}
.fx91-banner-code{padding:18px;border:1px solid var(--line);cursor:pointer;overflow-wrap:anywhere}.fx91-banner-code :is(h2,h3,p){margin:0 0 8px}.fx91-banner-code img{max-width:100%}
@media(max-width:1024px){
 body.fx-forumx .header-actions{gap:6px!important}
 body.fx-forumx .page-shell{padding-inline:16px!important}
 body.fx-forumx .brand{min-width:0!important;flex:1 1 auto!important}
 body.fx-forumx .brand :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .fx91-banner:not([data-ad-devices*="tablet"]){display:none!important}
}
@media(min-width:1025px){.fx91-banner:not([data-ad-devices*="desktop"]){display:none!important}}
@media(max-width:640px){
 body.fx-forumx .header-inner{padding-inline:12px!important;gap:8px!important}
 body.fx-forumx .header-actions{gap:4px!important}
 body.fx-forumx .header-actions .header-login-button{min-width:0!important;padding:0 8px!important;font-size:.8rem!important}
 body.fx-forumx .header-register{min-width:0!important;width:auto!important;padding:0 9px!important;font-size:.8rem!important}
 body.fx-forumx .brand img{width:34px!important;height:34px!important}
 body.fx-forumx .brand small{display:none!important}
 body.fx-forumx .page-shell{padding-inline:12px!important}
 body.fx-forumx .fxp-post-tools{gap:6px!important}
 body.fx-forumx .fxp-secondary-actions{gap:6px!important}
 body.fx-forumx .fx-footer-r66-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}
 body.fx-forumx .fx-footer-r66-brand{grid-column:1/-1}
 body.fx-forumx .fx-footer-r66-main h2{font-size:1rem!important}
 body.fx-forumx .fx-footer-r66-main a{overflow-wrap:anywhere}
 .fx91-banner-text .fx91-banner-link{padding:14px;gap:12px}.fx91-banner-copy strong{font-size:1rem}
 .fx91-banner:not([data-ad-devices*="tablet"]){display:block!important}
 .fx91-banner:not([data-ad-devices*="mobile"]){display:none!important}
 .fx91-banner[hidden]{display:none!important}
}
@media(max-width:380px){
 body.fx-forumx .brand strong{font-size:1rem!important}
 body.fx-forumx .header-actions .header-search-toggle{display:none!important}
 body.fx-forumx .header-register{padding-inline:7px!important}
 body.fx-forumx .brand{max-width:110px!important}
}
@media(prefers-reduced-motion:reduce){body.fx-forumx *,body.fx-forumx *::before,body.fx-forumx *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
