/* DHWLABS R138: existing Ribbon UI only; do not create new controls. */
@media (min-width:741px) and (pointer:coarse) {
  .ml-cad-header .ml-ribbon__tabs-after:has(img) {
    display:inline-flex !important; align-items:center !important;
    min-width:108px !important; max-width:138px !important;
    width:auto !important; flex:0 0 auto !important;
    overflow:visible !important; gap:5px !important;
    padding-inline:4px !important;
  }
  .ml-cad-header .ml-ribbon__tabs-after:has(img) img {
    width:34px !important; height:34px !important;
    min-width:34px !important; object-fit:contain !important;
    opacity:1 !important; visibility:visible !important;
  }
  .ml-cad-header .ml-ribbon__tabs-after:has(img)::after {
    content:'DHWLABS';display:inline-block;pointer-events:none;
    color:#d6f7ff;font-weight:700;font-size:12px;letter-spacing:.35px;
    white-space:nowrap;
  }
  .ml-cad-header .ml-ribbon__head-left {min-width:0 !important;}
  .ml-cad-header .ml-ribbon-contextual-tabs {min-width:0 !important;overflow-x:auto !important;}
}
@media (min-width:741px) and (max-width:930px) and (pointer:coarse) {
  .ml-cad-header .ml-ribbon__tabs-after:has(img) {min-width:36px !important;max-width:40px !important;}
  .ml-cad-header .ml-ribbon__tabs-after:has(img)::after {display:none !important;}
}
