/* Desktop layout corrections. Mobile rules remain in the original stylesheets. */
@media (min-width:1024px){
 .shell,main,#app,#buildBody,.class-build-profile,.class-build-profile>div,.catalog-results{min-width:0}
 .build-navigation:not(:has(#routeSelect)){grid-template-columns:minmax(0,1fr)}
 .navigation-stage-selector{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,180px) auto;gap:18px;align-items:end;min-width:0}
 .navigation-stage-selector>label{min-width:0}
 .navigation-stage-selector select{width:100%;min-width:0;max-width:100%}
 .stage-state{min-width:0;max-width:210px;overflow-wrap:anywhere}
 .stage-state .badge{white-space:normal}
 .class-build-title{flex-wrap:wrap;align-items:flex-start}
 .class-build-profile{flex:1 1 500px}
 .class-build-profile h1{font-size:clamp(30px,2.7vw,46px);overflow-wrap:anywhere}
 .class-build-title .actions{flex:0 1 280px}
 .forge-tabs{flex-wrap:wrap;overflow:visible;gap:6px 12px;height:auto}
 .forge-tabs button{white-space:normal;padding:12px 10px}
 .gear-piece-picker,.gear-attribute-detail,.board-workspace>*{min-width:0}
 .gear-piece strong,.gear-inspector-heading h2{overflow-wrap:anywhere}
 .tablewrap{width:100%;max-width:100%;overflow-x:auto}
}
@media (min-width:1024px) and (max-width:1279px){
 .build-navigation{grid-template-columns:minmax(0,1fr)}
 .navigation-stage-selector{grid-template-columns:minmax(0,1fr) 150px}
 .navigation-stage-selector .stage-state{grid-column:1/-1;display:flex;gap:12px;align-items:center;max-width:none}
}
