/* Pass 07d: Studio standard button states, sourced from the left tool rail. */
body:not(.studio-home){
 --studio-button-hover:rgba(18,194,201,.09);
 --studio-button-active:linear-gradient(90deg,#123149,#0c1d2c);
 --studio-button-active-hover:linear-gradient(90deg,#173b54,#10273a);
 --studio-button-accent:#43e4fb;
}
/* Functional buttons only. Asset cards, swatches, form inputs and danger actions are not generic buttons. */
body:not(.studio-home) #studioIsland :is(
 #versionHistoryBtn,#undoBtn,#redoBtn,#brandManageBtn,#brandSaveBtn,#assetManageBtn,
 #canvasMenuBtn,#fitZoom,#zoomMenuBtn,#gridDensityMenuBtn,.toolbar-check,
 #inuroTreatmentSidebar .inuro-native-adjustments-footer .adjustment-reset,
 #inuroTreatmentSidebar .inuro-native-texture-footer .inuro-native-texture-remove
){
 border:0!important;outline:0!important;box-shadow:none!important;
 border-radius:7px!important;background:transparent!important;
 transition:background .15s ease,color .15s ease!important;
}
body:not(.studio-home) #studioIsland :is(
 #versionHistoryBtn,#undoBtn,#redoBtn,#brandManageBtn,#brandSaveBtn,#assetManageBtn,
 #canvasMenuBtn,#fitZoom,#zoomMenuBtn,#gridDensityMenuBtn,.toolbar-check,
 #inuroTreatmentSidebar .inuro-native-adjustments-footer .adjustment-reset,
 #inuroTreatmentSidebar .inuro-native-texture-footer .inuro-native-texture-remove
):not(:disabled):not(:has(input:disabled)):hover{
 background:var(--studio-button-hover)!important;color:var(--inuro-cyan-bright,#46E7E0)!important;
 border:0!important;outline:0!important;box-shadow:none!important;
}
body:not(.studio-home) #studioIsland :is(
 #canvasMenuBtn,#zoomMenuBtn,#gridDensityMenuBtn
):is(.active,[aria-expanded="true"]),
body:not(.studio-home) #studioIsland .toolbar-check:has(input:checked:not(:disabled)){
 background:var(--studio-button-active)!important;color:#fff!important;
 box-shadow:inset 2px 0 #2adfff!important;border:0!important;outline:0!important;
}
body:not(.studio-home) #studioIsland :is(#canvasMenuBtn,#zoomMenuBtn,#gridDensityMenuBtn):is(.active,[aria-expanded="true"]):hover,
body:not(.studio-home) #studioIsland .toolbar-check:has(input:checked:not(:disabled)):hover{
 background:var(--studio-button-active-hover)!important;
}
body:not(.studio-home) #studioIsland :is(#versionHistoryBtn,#undoBtn,#redoBtn,#brandManageBtn,#brandSaveBtn,#assetManageBtn,#canvasMenuBtn,#fitZoom,#zoomMenuBtn,#gridDensityMenuBtn):disabled,
body:not(.studio-home) #studioIsland .toolbar-check:has(input:disabled),
body:not(.studio-home) #inuroTreatmentSidebar :is(.adjustment-reset,.inuro-native-texture-remove):disabled{
 opacity:.42!important;cursor:not-allowed!important;filter:none!important;
 background:transparent!important;color:#93a3ad!important;border:0!important;box-shadow:none!important;
}
body:not(.studio-home) #studioIsland .toolbar-check:has(input:disabled):hover{background:transparent!important;color:#93a3ad!important}
/* Preserve small Reset buttons and fixed footer alignment. */
body:not(.studio-home) #inuroTreatmentSidebar :is(.adjustment-reset,.inuro-native-texture-remove){width:auto!important;min-width:0!important;max-width:max-content!important}

/* Pass 07e: checked toolbar toggles use the exact Pointer active visual.
   Match the older .canvas-toolbar selector specificity and override it. */
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check:has(> input:checked:not(:disabled)),
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check:has(> input:checked:not(:disabled)):hover,
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check:has(> input:checked:not(:disabled)):focus-within{
  background:linear-gradient(90deg,#123149,#0c1d2c)!important;
  color:#fff!important;
  border:0!important;outline:0!important;
  box-shadow:inset 2px 0 #2adfff!important;
  border-radius:7px!important;
}
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check:has(> input:checked:not(:disabled)):hover{
  background:linear-gradient(90deg,#173b54,#10273a)!important;
}
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check:has(> input:disabled),
body:not(.studio-home) #studioIsland .canvas-toolbar label.toolbar-check.control-disabled{
  background:transparent!important;color:#93a3ad!important;
  box-shadow:none!important;border:0!important;opacity:.42!important;cursor:not-allowed!important;
}
