/* 自定义菜单替代旧入口，保留管理端渠道配置和监控入口。 */
a[href="/available-channels"],a[href="/monitor"],a[href="/model-plaza"],a[href^="/model-plaza?"]{display:none!important}

/* 保留原菜单行为，仅将两个常用入口排到账户区前面。 */
.sidebar-section:has(> a[href="/custom/nexsea-model-prices"]){display:flex;flex-direction:column}
.sidebar-section:has(> a[href="/custom/nexsea-model-prices"]) > .sidebar-section-title{order:-4}
.sidebar-section:has(> a[href="/custom/nexsea-model-prices"]) > a[href="/dashboard"]{order:-3}
.sidebar-section > a[href="/custom/nexsea-model-prices"]{order:-2}
.sidebar-section > a[href="/custom/nexsea-channel-status"]{order:-1}

/* 高度由同源展示页按内容同步，主页面统一承担纵向滚动。 */
.custom-page-layout.xinghai-showcase-layout{height:auto!important;min-height:0!important}
.xinghai-showcase-layout > .card{flex:none!important;min-height:0!important;overflow:visible!important}
.xinghai-showcase-layout .custom-embed-shell{height:auto!important;overflow:visible!important;background:transparent!important}

/* 新页面完成布局前隐藏旧文档，避免菜单切换时闪回上一页。 */
.custom-embed-frame:is([src*="/showcase/index.html"],[src*="/showcase/status.html"]){visibility:hidden}
.custom-embed-frame[src*="/showcase/index.html"][data-xinghai-page="prices"],
.custom-embed-frame[src*="/showcase/status.html"][data-xinghai-page="status"]{visibility:visible}
.custom-page-layout:has(.custom-embed-frame:is([src*="/showcase/index.html"],[src*="/showcase/status.html"])){height:auto!important;min-height:320px}
.custom-page-layout:has(.custom-embed-frame:is([src*="/showcase/index.html"],[src*="/showcase/status.html"])) > .card{flex:none!important;min-height:320px}
