/* NEW optional controls only; native window artwork and internal coordinates are untouched. */
body.source-ui .source-convenience-controls{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.shaiam-quick-controls{display:flex;gap:4px}
.shaiam-touch-palette{display:grid;grid-template-columns:repeat(3,minmax(44px,auto));gap:4px}
.shaiam-touch-palette[hidden]{display:none}
.source-convenience-controls[hidden]{display:none!important}
@media(max-width:700px),(max-width:1000px) and (max-height:520px){
 body.source-ui.shaiam-pad-collapsed #mobile-pad{display:none!important}
 body.source-ui .source-convenience-controls{right:max(8px,env(safe-area-inset-right,0px));bottom:calc(var(--shaiam-hud-reserved-height,44px) + 8px)}
 body.source-ui .source-convenience-controls button{min-width:52px;min-height:44px;padding:4px 8px;font-size:12px}
 .shaiam-touch-palette{max-height:144px;max-width:calc(100vw - 60px);overflow:auto;overscroll-behavior:contain}
}
