.menu-controls { position:fixed; width:640px; height:480px; transform-origin:0 0; pointer-events:none; z-index:10; }
.menu-controls[hidden] { display:none !important; }
.menu-controls input,.menu-controls select { position:absolute; box-sizing:border-box; margin:0; pointer-events:auto; font:12px "Songti SC","SimSun",serif; color:#000; border-radius:0; }
.menu-controls input[type=number],.menu-controls select { background:#fff; border:2px inset #eee; padding:0 2px; }
.menu-controls input[type=number]::-webkit-inner-spin-button { opacity:1; }
.menu-controls input[type=range] { appearance:none; background:transparent; border:0; padding:0; }
.menu-controls input[type=range]::-webkit-slider-runnable-track { height:3px; background:#888; border-bottom:1px solid white; }
.menu-controls input[type=range]::-webkit-slider-thumb { appearance:none; width:11px; height:22px; margin-top:-10px; background:#e5e5e5; border:2px outset #eee; border-radius:0; }
.menu-controls input[type=range]::-moz-range-track { height:2px; background:#888; border-bottom:1px solid white; }
.menu-controls input[type=range]::-moz-range-thumb { width:8px; height:18px; background:#e5e5e5; border:2px outset #eee; border-radius:0; }
.menu-controls input.unset::-webkit-slider-thumb { opacity:.45; }
.menu-controls input.unset::-moz-range-thumb { opacity:.45; }
.menu-controls :focus-visible { outline:1px dotted #000; outline-offset:2px; }
.menu-controls input[data-money] { background:#fff; border:2px inset #eee; padding:0 2px; }
.menu-controls input[type=checkbox]{accent-color:#2e87bc;cursor:default;}
.menu-controls .menu-checkbox-label{position:absolute;pointer-events:auto;user-select:none;font-size:13px;color:#263642;cursor:default;}
.menu-controls .menu-checkbox-label.disabled{color:#929ba2;}
:root[data-ui-style=classic] .menu-controls input[type=checkbox]{accent-color:auto;}

/* The range value/keyboard behavior remains native; its skin follows the theme. */
:root:not([data-ui-style=classic]) .menu-controls input[type=range] {
  --range-track:linear-gradient(#aebdc7,#edf3f7);
  --range-track-border:#8fa3b0;
  --range-thumb:linear-gradient(90deg,#fff 0%,#edf4f9 42%,#d2e0ea 55%,#f6fbff 100%);
  --range-thumb-border:#7f9aaa;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]::-webkit-slider-runnable-track {
  box-sizing:border-box;height:5px;border:1px solid var(--range-track-border);border-radius:3px;
  background:var(--range-track);box-shadow:inset 0 1px #ffffffb3;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]::-webkit-slider-thumb {
  box-sizing:border-box;width:12px;height:20px;margin-top:-8px;border:1px solid var(--range-thumb-border);border-radius:3px;
  background:var(--range-thumb);box-shadow:inset 0 0 0 1px #ffffffb3,0 1px 1px #0002;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]::-moz-range-track {
  box-sizing:border-box;height:5px;border:1px solid var(--range-track-border);border-radius:3px;
  background:var(--range-track);box-shadow:inset 0 1px #ffffffb3;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]::-moz-range-thumb {
  box-sizing:border-box;width:12px;height:20px;border:1px solid var(--range-thumb-border);border-radius:3px;
  background:var(--range-thumb);box-shadow:inset 0 0 0 1px #ffffffb3,0 1px 1px #0002;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]:not(:disabled):hover,
:root:not([data-ui-style=classic]) .menu-controls input[type=range]:not(:disabled):focus-visible {
  --range-thumb:linear-gradient(90deg,#f8fdff,#caeaff 52%,#e5f6ff);
  --range-thumb-border:#428dbd;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]:not(:disabled):active {
  --range-thumb:linear-gradient(90deg,#cbe6f6,#9bc9e8 52%,#d2edff);
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]:disabled {
  --range-track:linear-gradient(#d9dfe3,#eef0f2);--range-track-border:#bfc8cf;
  --range-thumb:linear-gradient(90deg,#f2f4f6,#dde4e9 55%,#edf1f4);--range-thumb-border:#aebbc5;
}
:root:not([data-ui-style=classic]) .menu-controls input[type=range]:focus-visible {
  outline:1px solid #8bc2e4;outline-offset:2px;border-radius:3px;
}
