/* Pass 12: texture controls use their existing rendering and event bindings inline. */
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow.inuro-texture-inline,
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow.inuro-texture-inline.open {position:static!important;display:block!important;inset:auto!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;height:auto!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;overflow:visible!important;z-index:auto!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow.inuro-texture-inline:not(.open){display:none!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-window-head{cursor:default;user-select:auto}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-window-close{display:none}

/* Pass 12 texture refinement: one scroll surface, three-column cards and fixed footer. */
body:not(.studio-home) #inuroTreatmentSidebar [data-treatment-panel="textures"] .inuro-treatment-panel-body{display:flex;flex-direction:column;overflow:hidden!important;padding:0!important}
body:not(.studio-home) #inuroTreatmentSidebar [data-treatment-panel="textures"]:not(.is-expanded) .inuro-treatment-panel-body{display:none!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow.inuro-texture-inline.open{display:flex!important;flex-direction:column;height:100%!important;min-height:0!important;overflow:hidden!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-window-head{display:none!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-window-library{display:flex;flex-direction:column;min-height:0;flex:1;margin:0!important;padding:10px!important;overflow:hidden!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-window-library>.treatment-controls-title{display:none!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;max-height:none!important;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;align-content:start;flex:1;margin-top:0!important;padding-right:3px}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-library-card{min-width:0;padding:3px!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-library-thumb{aspect-ratio:1.35/1!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-import-row{flex:0 0 auto;margin-top:5px}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-inline-footer{display:flex;flex:0 0 auto;align-items:end;gap:10px;padding:10px;border-top:1px solid #254357;background:#0c1c29}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-inline-footer .texture-window-scale-control{flex:1;min-width:0;margin:0!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-inline-footer .adjustment-actions{flex:1;min-width:0;margin:0!important;padding:0!important}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-inline-footer .texture-remove-btn{width:100%;min-height:34px}
body:not(.studio-home) #inuroTreatmentSidebar #textureWindow .texture-library-card .texture-card-glow-color{position:absolute;right:5px;bottom:29px;width:23px;height:23px;border-radius:50%;border:2px solid #d5f5ff;box-shadow:0 1px 5px #0008;z-index:2;cursor:pointer;padding:0}
