/* V237.2 — Board Workspace expand/collapse
   UI-only. Does not modify workflow or diagnostic state. */

#yv2372-expand-board{
  border:1px solid #4b3f72;
  background:#09131f;
  color:#eef2f8;
  border-radius:9px;
  padding:9px 12px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.04em;
  cursor:pointer;
  white-space:nowrap;
}
#yv2372-expand-board:hover{
  border-color:#8a68eb;
  color:#fff;
}
body.yv2372-board-expanded #yv2372-expand-board{
  background:#5a39b8;
  border-color:#8a68eb;
  color:#fff;
}

body.yv2372-board-expanded{
  overflow:hidden!important;
}

/* Put ONLY the centre diagnostic column above the surrounding rails. */
body.yv2372-board-expanded .v225-column.v225-center,
body.yv2372-board-expanded .v225-center{
  position:fixed!important;
  z-index:9990!important;
  top:82px!important;
  left:10px!important;
  right:10px!important;
  bottom:10px!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  background:#06101a!important;
  border:1px solid #283952!important;
  border-radius:15px!important;
  overflow:hidden!important;
  box-shadow:0 22px 70px rgba(0,0,0,.55)!important;
}

/* In expanded board mode, the Board Workspace gets the space normally occupied
   by Current Action + Chat. They are only hidden visually while expanded. */
body.yv2372-board-expanded .v225-action-card,
body.yv2372-board-expanded .v225-chat-card{
  display:none!important;
}

/* Grow the actual board port. Existing TOP / BOARD MAP / CIRCUIT / REPORT logic
   and overlays remain untouched. */
body.yv2372-board-expanded #yv225-stage{
  height:calc(100vh - 230px)!important;
  min-height:520px!important;
  max-height:none!important;
}

body.yv2372-board-expanded #yv225-board-image{
  max-width:100%!important;
  max-height:100%!important;
}

@media(max-height:760px){
  body.yv2372-board-expanded .v225-column.v225-center,
  body.yv2372-board-expanded .v225-center{
    top:72px!important;
  }
  body.yv2372-board-expanded #yv225-stage{
    height:calc(100vh - 205px)!important;
    min-height:380px!important;
  }
}
