/* LINE E.N.G V5.55.26 - Fix selectors: navigation JS sets v538-embed on BODY, not HTML. */
/* Ordinary staff desktop main uses a sidebar: preserve its 100%-sidebar rule.
   Embedded and detached views have NO sidebar. Never subtract its width twice. */
@media screen and (min-width:901px) {
  body.v538-embed .main,
  body.v538-detached .main {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.v538-embed .main > #app.content,
  body.v538-detached .main > #app.content {
    box-sizing:border-box!important;
    flex:1 1 auto!important;
    align-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.v538-embed #app.content > .uy55.uy561-exact,
  body.v538-detached #app.content > .uy55.uy561-exact {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  /* Keep the existing 50:50 upper construction grid without resizing inner fields. */
  body.v538-embed #app.content > .uy561-exact .uy592-stagegrid,
  body.v538-detached #app.content > .uy561-exact .uy592-stagegrid {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;
  }
}
/* No print, overlays, modal, or visibility rules here. */
