body[data-ug-app] :is(button,input,select,textarea):focus-visible {
  outline:2px solid #5ad6e9;
  outline-offset:2px;
}
body[data-ug-app] :is(select,input,textarea) {max-width:100%}
body[data-ug-app] :is(main,aside,section,header,footer,fieldset) {min-width:0}
body[data-ug-app] pre {max-width:100%;overflow-x:auto}
body[data-ug-app] .ug-export-download:not([hidden]) {
  display:inline-flex;align-items:center;border:1px solid #82d9de;border-radius:7px;padding:7px 9px;
  background:#183849;color:#d2fbff;font-size:.82rem;font-weight:700;width:fit-content
}
body[data-ug-app="aethergl-studio"] .ug-gif-download {position:fixed;top:105px;right:12px;z-index:36}
body[data-ug-app="displaylab"].dl-tv main {padding:clamp(20px,4vw,64px)}
body[data-ug-app="displaylab"].dl-tv :is(button,select) {min-height:54px;font-size:1.05em}
body[data-ug-app="displaylab"] :is(button:disabled){opacity:.55;cursor:default}
body[data-ug-app="displaylab"] #fullscreen-choices{display:flex;flex-wrap:wrap;gap:8px}
body[data-ug-app="soniccanvas"] .ug-alpha-settings {
  padding:12px;display:grid;gap:8px;background:#16263a;border:1px solid #38536c;border-radius:10px;font-size:.85rem
}
body[data-ug-app="soniccanvas"] .ug-alpha-settings label {display:flex;align-items:center;gap:9px;font-weight:750;min-height:30px}
body[data-ug-app="soniccanvas"] .ug-alpha-settings [hidden] {display:none}
body[data-ug-app="soniccanvas"] .ug-alpha-settings select {margin-left:auto;min-height:36px;background:#161e29;color:#edf6ff;border:1px solid #465469;border-radius:6px;padding:4px 8px}
body[data-ug-app="soniccanvas"] .ug-alpha-settings input {width:19px;height:19px;accent-color:#5ee4ed}
body[data-ug-app="soniccanvas"] .ug-alpha-settings button {
  min-height:42px;text-align:left;padding:7px 11px;border-radius:8px;background:#254258;color:#ecfaff
}
body[data-ug-app="soniccanvas"] .ug-alpha-preview {
  background:repeating-conic-gradient(#172233 0% 25%,#28374b 0% 50%) 50% / 24px 24px!important
}
body[data-ug-app="aethergl-studio"] .ug-gif-button {
  padding:6px 10px;border-radius:8px;border:1px solid #7abebc;background:#173640;color:#c6fff2;
  font-weight:760;font-size:.78rem;white-space:nowrap;min-width:42px
}
body[data-ug-app="aethergl-studio"] .ug-gif-button:disabled {opacity:.65}
body[data-ug-app="firing-range-3d"] #gameCanvas {touch-action:none}
body[data-ug-app="firing-range-3d"] #touch-range-controls {
  position:fixed;z-index:20;left:12px;right:12px;bottom:16px;
  display:flex;justify-content:space-between;align-items:end;gap:10px;pointer-events:none
}
body[data-ug-app="firing-range-3d"] #touch-range-controls[hidden] {display:none!important}
body[data-ug-app="firing-range-3d"] :is(.touch-range-move,.touch-range-actions) {display:flex;flex-wrap:wrap;gap:5px}
body[data-ug-app="firing-range-3d"] #touch-range-controls button {
  pointer-events:auto;touch-action:none;min-height:43px;min-width:39px;
  padding:5px;border:1px solid #9ed4ed8c;border-radius:8px;background:#122131ed;color:#f2f8ff;font-weight:700
}
body[data-ug-app="firing-range-3d"] #touch-range-fire {background:#cceee5;color:#102127;padding-inline:12px}
@media(max-width:760px) {
  body[data-ug-app]:not([data-ug-app="aethergl-studio"]):not([data-ug-app="firing-range-3d"]) {
    width:100%;overflow-wrap:anywhere
  }
  body[data-ug-app]:not([data-ug-app="firing-range-3d"]) :is(input[type=text],textarea,select) {font-size:16px}
  body[data-ug-app="soniccanvas"] header > div,
  body[data-ug-app="regex-json-csv-formatter"] header > div {
    height:auto;min-height:64px;padding:9px 12px;display:flex;flex-wrap:wrap;gap:8px
  }
  body[data-ug-app="soniccanvas"] header > div > div:last-child {flex:1 1 auto;flex-wrap:wrap;gap:6px}
  body[data-ug-app="soniccanvas"] header :is(button,label) {min-height:40px;padding:7px 9px}
  body[data-ug-app="soniccanvas"] main {gap:13px;padding:12px}
  body[data-ug-app="soniccanvas"] main > :is(div,aside) {min-width:0}
  body[data-ug-app="soniccanvas"] #exportResSelect {min-width:0;width:100%;max-width:100%}
  body[data-ug-app="soniccanvas"] div:has(> #exportResSelect) {align-items:stretch;flex-direction:column}
  body[data-ug-app="soniccanvas"] #canvasContainer {min-height:182px}
  body[data-ug-app="soniccanvas"] #volumeSlider {max-width:65px}
  body[data-ug-app="regex-json-csv-formatter"] header > div > nav {
    flex:1 1 100%;order:3;justify-content:space-around;min-width:0
  }
  body[data-ug-app="regex-json-csv-formatter"] header .nav-tab {padding:8px 6px;min-height:40px}
  body[data-ug-app="regex-json-csv-formatter"] header .nav-tab svg {display:none}
  body[data-ug-app="regex-json-csv-formatter"] header > div > div:first-child {flex:1;min-width:0}
  body[data-ug-app="regex-json-csv-formatter"] header h1 {white-space:normal;line-height:1.2}
  body[data-ug-app="regex-json-csv-formatter"] :is(#regexSplitContainer,#formatterLeftPane,#formatterRightPane) {min-width:0}
  body[data-ug-app="aether-808"] header {position:relative}
  body[data-ug-app="aether-808"] header > div {gap:9px}
  body[data-ug-app="aether-808"] header button {min-height:40px}
  body[data-ug-app="aether-808"] main {padding:12px}
  body[data-ug-app="aether-808"] #sequencerGrid {min-width:0}
  body[data-ug-app="aether-808"] #sequencerGrid > * {grid-template-columns: minmax(37px,1fr) repeat(16,minmax(15px,1fr))!important;gap:2px}
  body[data-ug-app="aether-808"] #sequencerGrid button {min-width:0;min-height:33px}
  body[data-ug-app="local-image-converter"] header > div {flex-wrap:wrap;height:auto;min-height:58px;padding-block:7px;gap:8px}
  body[data-ug-app="local-image-converter"] #image-list > * {min-width:0}
  body[data-ug-app="gamepad-tester"] .min-w-\[155px\] {min-width:0}
  body[data-ug-app="gamepad-tester"] #controllerSvg {max-height:210px}
  body[data-ug-app="chronos-terminal"] .crt-monitor {min-height:min(460px,85dvh);max-height:80dvh}
  body[data-ug-app="chronos-terminal"] header button {min-height:40px}
  body[data-ug-app="chronos-terminal"] :is(nav,.quick-commands,[aria-label="Quick commands"]) {flex-wrap:wrap;max-width:100%}
  body[data-ug-app="chronos-terminal"] div:has(> button[data-cmd="help"]) {flex-wrap:wrap;overflow-x:visible}
  body[data-ug-app="chronos-terminal"] #terminal-form {flex-shrink:0}
  body[data-ug-app="aethergl-studio"] header {
    display:grid;grid-template-columns:1fr auto;padding:6px 8px;gap:5px;min-height:58px;height:auto
  }
  body[data-ug-app="aethergl-studio"] header > div:nth-child(2) {grid-column:1/-1;grid-row:2}
  body[data-ug-app="aethergl-studio"] header > div:last-child {grid-column:2;grid-row:1;gap:4px}
  body[data-ug-app="aethergl-studio"] header > div:first-child > div > div:first-child {display:none}
  body[data-ug-app="aethergl-studio"] header h1 {white-space:normal;font-size:.82rem;line-height:1.1}
  body[data-ug-app="aethergl-studio"] header button {min-height:32px;padding-inline:6px}
  body[data-ug-app="aethergl-studio"] header > div:last-child button svg {display:none}
  body[data-ug-app="aethergl-studio"] #control-sidebar {left:8px;right:8px;bottom:8px;max-height:42dvh}
  body[data-ug-app="firing-range-3d"] :is(#startModal,#settingsModal,#resultsModal) {align-items:flex-start;padding:10px;overflow-y:auto}
  body[data-ug-app="firing-range-3d"] :is(#startModal,#settingsModal,#resultsModal) > div {max-width:100%;margin-block:auto}
  body[data-ug-app="firing-range-3d"] #hudLayer {padding:7px}
}
@media(max-width:375px) {
  body[data-ug-app="aether-808"] #sequencerGrid {min-width:340px}
  body[data-ug-app="aethergl-studio"] #btn-toggle-sidebar {padding:5px}
}
@media(prefers-reduced-motion:reduce) {
  body[data-ug-app] *,body[data-ug-app] *::before {scroll-behavior:auto!important}
  body[data-ug-app="chronos-terminal"] .crt-flicker {animation:none!important}
}
