
/* Mobile header: values must be fully readable, not squeezed/truncated. */
@media(max-width:599px){
  .app > header .v358-global-header{
    grid-template-columns:50px minmax(105px,1fr) !important;
    grid-template-areas:
      "menu logo"
      "gold harz"
      "dampf dampf" !important;
    gap:6px!important;
    padding:7px 8px!important;
    min-height:0!important;
  }

  .app > header .v358-global-header > #v032MenuBtn{
    grid-area:menu!important;
    width:48px!important;
    height:48px!important;
    align-self:start!important;
  }

  .app > header .v358-logo{
    grid-area:logo!important;
    align-self:center!important;
    padding-left:2px!important;
  }
  .app > header .v358-logo strong{
    font-size:21px!important;
    line-height:.85!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
  .app > header .v358-logo span{
    font-size:10px!important;
    margin-left:12px!important;
  }

  .app > header .v358-res{
    min-width:0!important;
    min-height:43px!important;
    width:100%!important;
    padding:5px 8px!important;
    box-sizing:border-box!important;
  }
  .app > header .v358-res.gold{grid-area:gold!important}
  .app > header .v358-res.harz{grid-area:harz!important}
  .app > header .v358-res.dampf{grid-area:dampf!important}

  .app > header .v358-res small{
    font-size:6px!important;
    letter-spacing:.08em!important;
  }
  .app > header .v358-res b{
    font-size:11px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.15!important;
  }

  /* Secondary row aligned cleanly under resources. */
  .app > header .v358-subbar{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:7px!important;
    padding:5px 8px!important;
  }
  .app > header .v358-version{
    justify-self:start!important;
  }
  .app > header .v358-power{
    justify-self:center!important;
    white-space:nowrap!important;
  }
  .app > header .v358-settings{
    justify-self:end!important;
    white-space:nowrap!important;
  }
}

/* Very narrow devices: all three resources in one readable vertical stack. */
@media(max-width:390px){
  .app > header .v358-global-header{
    grid-template-columns:48px 1fr!important;
    grid-template-areas:
      "menu logo"
      "gold gold"
      "harz harz"
      "dampf dampf"!important;
  }
  .app > header .v358-res{
    min-height:39px!important;
  }
  .app > header .v358-res b{
    font-size:10.5px!important;
  }
}
