/* OFC-UI-062 · Navegação mobile, ordem de edição e conversão legível.
 * Corrige a sobreposição de regras antigas sem mudar nenhum outro módulo.
 */
#workbench .library-expandable-062[hidden]{display:none!important}
#workbench .library-expandable-062{min-width:0}
#workbench .library-expandable-062 .library-search-label,
#workbench .library-expandable-062 .library-order-label-060{
 display:grid;gap:5px;margin:10px 0;font-size:.77rem;
}
#workbench .library-expandable-062 .library-favorites-only-060{
 margin:10px 0 13px;
}
#workbench .library-page:not(.is-open)>.other-recipes-toggle{margin:0}
#workbench .top-recipe-menu-060>summary{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;
 border:1px solid #75876c;border-radius:10px;background:#243226;color:#ddf5d4;
 min-height:44px;padding:8px 13px;line-height:1.1;
}
#workbench .top-recipe-menu-060[open]>summary{
 color:#122114;background:#beff57;border-color:#beff57;
}
#workbench .menu-bars-062{display:flex;flex-direction:column;gap:4px;width:20px;justify-content:center;align-items:center;flex:none}
#workbench .menu-bars-062 i{display:block;width:19px;height:2px;border-radius:3px;background:currentColor}
#workbench .menu-label-062{display:inline;font-size:.80rem;font-weight:850}
#workbench .top-recipe-menu-060>summary .menu-label-062{display:inline}
#workbench .top-menu-content-060{
 z-index:40;min-width:195px;right:0;top:calc(100% + 8px);
 padding:6px;box-shadow:0 15px 36px #000b;
}
#workbench .top-menu-content-060 button{
 display:block;width:100%;font-size:.83rem;text-align:left;
}
#workbench .top-menu-content-060 .danger{
 margin-top:4px;border-top:1px solid #86545a;color:#ffceca;
}
#workbench #editor-screen .editor>.service-recommendations{
 margin:13px 0 10px;
}
#workbench #editor-screen .editor>#inventory-ingredient-details{
 margin:8px 0 18px;
}
#workbench #editor-screen .editor>#inventory-ingredient-details>summary{
 font-weight:850;
}
#workbench #editor-screen .editor>.profile-editor-057,
#workbench #editor-screen .editor>.recipe-utensils-060{
 margin:10px 0;
}
#workbench #editor-screen .editor>.section-head.section-space{
 margin-top:16px;padding-top:15px;
}
#workbench .mini-portion-converter{min-width:0}
#workbench .sequence-preview-056 li{overflow-wrap:anywhere}
body[data-theme="light"] #workbench .top-recipe-menu-060>summary{
 background:#eef4e8;color:#2f4c27;border-color:#9db890;
}
body[data-theme="light"] #workbench .top-recipe-menu-060[open]>summary{
 background:#d4fa86;color:#1d3417;
}
@media(max-width:730px){
 #workbench .workbench-top{
  position:relative;z-index:30;display:flex;flex-direction:row;
  align-items:center!important;justify-content:space-between;
  gap:9px;margin:0 0 8px;
 }
 #workbench .workbench-top>div:first-child{min-width:0;flex:1}
 #workbench .workbench-top h2{font-size:clamp(.87rem,3.7vw,1.07rem);line-height:1.2;overflow-wrap:anywhere}
 #workbench .workbench-top .toolbar,
 #workbench[data-view="editor"] .workbench-top .toolbar,
 #workbench[data-view="library"] .workbench-top .toolbar{
  display:flex!important;align-items:center;justify-content:flex-end;
  flex:0 0 auto;width:auto!important;max-width:45vw;
  gap:0;margin:0;padding:0;
 }
 #workbench .workbench-top .toolbar>button{display:none!important}
 #workbench .top-recipe-menu-060{display:block;z-index:45}
 #workbench .top-recipe-menu-060>summary{
  display:flex;justify-content:center;width:44px;height:44px;
  min-width:44px;min-height:44px;padding:8px;
 }
 #workbench .top-recipe-menu-060>summary .menu-label-062{display:none}
 #workbench .top-menu-content-060{right:0;max-width:min(84vw,240px)}
 #workbench .library-layout>.library-page:not(.is-open){
  padding:5px 7px!important;max-height:62px;overflow:visible;
 }
 #workbench .library-layout>.library-page.is-open{
  max-height:min(72dvh,650px);overflow-y:auto;
 }
 #workbench .library-layout>.library-page.is-open .library-expandable-062{
  padding:4px 3px 9px;
 }
 #workbench .library-page:not(.is-open)>.library-expandable-062{display:none!important}
 #workbench #editor-screen .editor>.service-recommendations{
  margin-top:10px;
 }
 #workbench #editor-screen .editor>#inventory-ingredient-details{
  margin-top:8px;
 }
 #workbench #editor-screen .editor>.profile-editor-057,
 #workbench #editor-screen .editor>.recipe-utensils-060{
  margin-top:11px;
 }
}
