/* Adaptive language picker: the chevron tracks the selected label while the full header area remains clickable. */
body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language{
  --hdl-language-chevron-left:160px;
  position:relative!important;
  order:1!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:visible!important;
  box-shadow:none!important;
}

body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language::before{
  content:"</>"!important;
  position:absolute!important;
  z-index:3!important;
  left:18px!important;
  top:50%!important;
  margin:0!important;
  transform:translateY(-50%)!important;
  color:#8ab4f8!important;
  font:700 17px/1 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:-.08em!important;
  pointer-events:none!important;
}

body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language::after{
  content:""!important;
  position:absolute!important;
  z-index:3!important;
  left:var(--hdl-language-chevron-left)!important;
  right:auto!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  margin:0!important;
  border:0!important;
  border-right:1.5px solid #999!important;
  border-bottom:1.5px solid #999!important;
  transform:translateY(-62%) rotate(45deg)!important;
  pointer-events:none!important;
}

body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language select,
body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language select:focus,
body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language select:focus-visible,
body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language select:active{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  margin:0!important;
  padding:0 12px 0 51px!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f5f5f5!important;
  font-size:14px!important;
  font-weight:600!important;
  cursor:pointer!important;
}

body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language) .editor-language select option{
  background:#262626!important;
  color:#f5f5f5!important;
}

/* The reset control stays pinned to the far-right edge of the language bar. */
body.hdlforge-ide-active .ide-page .file-tabs:has(.editor-language)>.icon-btn{
  position:static!important;
  order:2!important;
  flex:0 0 32px!important;
  margin:auto 10px auto 8px!important;
  inset:auto!important;
}
