/* WerkDok K25 FIX2 - adaptive production header, no new backend permissions.
 * The feed header must never overlap when desktop browser zoom reduces CSS width.
 * Redundant Premium/App actions remain accessible through the existing overflow menu.
 */
.feed-topbar-inner{max-width:1900px;}
.feed-main-nav{min-width:0;overflow:hidden;}
.feed-main-nav .feed-nav-choice{min-width:0;max-width:100%;}
.feed-main-nav .feed-nav-choice>a{min-width:0;overflow:hidden;}
.feed-main-nav .feed-nav-choice>a span{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.feed-top-actions{min-width:0;}
.feed-overflow-panel{max-width:min(320px,calc(100vw - 16px));}
.feed-overflow-panel .feed-chip{width:100%;min-width:0;white-space:normal;}
.feed-overflow-panel .feed-chip span{white-space:normal;line-height:1.4;}
.feed-overflow-panel .feed-chip-connect,.feed-overflow-panel .feed-chip-business{display:none;}
/* Keep the main navigation and essential user controls visible; move secondary CTAs. */
@media(max-width:1899px){
 .feed-cta-group>.feed-chip-premium,.feed-cta-group>.feed-chip-app{display:none!important;}
 .feed-overflow{display:block;}
 .feed-topbar-inner{gap:clamp(7px,.8vw,14px);}
 .feed-main-nav{flex:1 1 auto;justify-content:center;}
 .feed-top-actions{flex:0 0 auto;gap:8px;}
}
@media(max-width:1449px){
 .feed-main-nav .feed-nav-choice>a span{display:none!important;}
 .feed-main-nav .feed-nav-choice>a{width:46px;min-width:46px;min-height:42px;padding:8px;justify-content:center;}
 .feed-main-nav .feed-nav-choice{flex:0 0 auto;overflow:visible;}
 .feed-main-nav{justify-content:center;gap:3px;}
 .feed-brand .brand-word{font-size:19px;}
}
@media(max-width:1149px){
 .feed-cta-group>.feed-chip-connect{display:none!important;}
 .feed-overflow-panel .feed-chip-connect{display:flex;}
 .feed-main-nav .feed-nav-choice>a{width:42px;min-width:42px;}
 .feed-top-actions{gap:6px;}
}
@media(max-width:929px){
 .feed-cta-group>.feed-chip-business{display:none!important;}
 .feed-overflow-panel .feed-chip-business{display:flex;}
 .feed-main-nav{flex:1 1 160px;}
}
@media(max-width:599px){
 .feed-topbar-inner{height:auto;min-height:58px;padding:8px 0;flex-wrap:wrap;gap:5px 9px;}
 .feed-brand{order:0;}
 .feed-top-actions{order:1;margin-left:auto;}
 .feed-main-nav{order:2;flex:0 0 100%;width:100%;justify-content:center;min-height:40px;overflow:visible;}
 .feed-main-nav .feed-nav-choice>a{min-height:36px;}
 .feed-main-nav .feed-nav-choice>a.is-active::after{bottom:-4px;}
 .feed-top-actions .feed-utility-icons{gap:4px;}
 .feed-overflow-panel{right:0;}
 body.on-community-feed{--feed-topbar-height:105px;}
}
@media(max-width:385px){
 .feed-topbar-inner{gap:3px;}
 .feed-icon-btn{width:30px;min-width:30px;}
 .feed-avatar{width:30px;height:30px;}
 .wdp-feed-language{min-height:33px;padding:0 3px;}
 .wdp-feed-language select{min-width:38px;max-width:46px;}
}
