#hud-layout-editor[hidden],#hud-layout-reopen[hidden]{display:none!important}
#hud-layout-editor{position:fixed;inset:0;z-index:11000;touch-action:none;background:repeating-linear-gradient(0deg,transparent 0 31px,#d9b5750b 31px 32px),repeating-linear-gradient(90deg,transparent 0 31px,#d9b5750b 31px 32px);font:14px/1.4 Txt,Arial,sans-serif;color:#f0dfc3}
.hle-toolbar{position:absolute;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);width:min(780px,calc(100% - 16px));padding:10px 14px;background:#140e1bf5;border:1px solid #d0a45f;box-shadow:0 6px 30px #0009;z-index:2;touch-action:manipulation}
.hle-dock-bottom .hle-toolbar{top:auto;bottom:max(8px,env(safe-area-inset-bottom))}.hle-toolbar header,.hle-toolbar footer,.hle-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hle-toolbar header{border-bottom:1px solid #51394d;padding-bottom:7px;margin-bottom:8px}.hle-toolbar header strong{font:24px/1 Pix,monospace;color:#f7d77a}.hle-orientation{font-size:11px;color:#a996ba}.hle-toolbar header button{margin-left:auto}.hle-toolbar button,.hle-toolbar select{border:1px solid #70523f;background:#2b1c2e;color:#f0dfc3;padding:6px 10px;font:12px Txt,Arial,sans-serif;cursor:pointer;min-height:32px}.hle-toolbar button:focus-visible,.hle-target:focus-visible{outline:2px solid #fff0b0;outline-offset:3px}.hle-toolbar label{font-size:12px;display:flex;align-items:center;gap:8px}.hle-toolbar select{max-width:190px}.hle-toolbar input[type=range]{width:120px;accent-color:#e4ba69}.hle-toolbar input[type=checkbox]{width:18px;height:18px;accent-color:#e4ba69}.hle-toolbar output{color:#f7d77a;min-width:32px}.hle-toolbar footer{margin-top:9px}.hle-toolbar [data-hle=status]{font-size:11px;color:#b5a1bd;flex:1;min-width:150px}.hle-toolbar [data-hle=save]{border-color:#d1aa69;background:#733445}.hle-targets{position:absolute;inset:0;pointer-events:none}.hle-target{position:absolute;pointer-events:auto;border:2px dashed #b4a7cb;background:#49385422;touch-action:none;padding:0;cursor:move;min-width:20px;min-height:20px;border-radius:4px}.hle-target span{position:absolute;left:0;top:0;max-width:100%;background:#170e23ed;color:#f4e4c9;font:11px/1.2 Txt,Arial,sans-serif;padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.hle-target.selected{border:2px solid #f7d77a;background:#e2b65925;z-index:1}.hle-target.is-hidden{border-color:#e16d8d;background:#a51f4922}.hle-target.is-hidden span{color:#ff9bb7}
html #hud [data-hud-hidden=true]{display:none!important}html.hud-editing #hud [data-hud-preview=true]{display:flex!important;visibility:visible!important;opacity:.75}html.hud-editing #hud [data-hud-hidden=true]{display:flex!important;opacity:.3}
html.hud-editing.touch-device #mobile-controls,html.hud-editing.touch-device #hotbar,html.hud-editing.touch-device #m-notices{display:flex!important}html.hud-editing #mobile-controls{pointer-events:none!important}html.hud-editing #rotate-hint{display:none!important}
html.hud-editing #mobile-stick-zone{width:168px!important;height:176px!important}html #mobile-stick-zone[data-hud-custom] .mobile-stick,html.hud-editing #mobile-stick-zone .mobile-stick{left:50%!important;top:50%!important}
#hud-layout-reopen{position:fixed;left:50%;bottom:8px;transform:translateX(-50%);z-index:100;font:12px Txt,Arial,sans-serif;color:#f7d77a;border:1px solid #c59d60;background:#1b1225ed;padding:8px 13px;touch-action:manipulation}
#sndpanel [data-customize-hud]{display:block;width:100%;padding:10px;margin-top:12px;border:1px solid #b38e52;background:#362238;color:#f7d77a;font:16px Txt,Arial,sans-serif;cursor:pointer}
@media(max-width:700px){.hle-toolbar{padding:8px}.hle-toolbar header strong{font-size:21px}.hle-toolbar header{gap:5px}.hle-controls{gap:7px}.hle-toolbar select{max-width:145px}.hle-toolbar input[type=range]{width:90px}.hle-toolbar footer{gap:6px}.hle-toolbar [data-hle=status]{font-size:10px}.hle-toolbar button{padding:6px}.hle-toolbar [data-hle=reset-one]{font-size:10px}.hle-toolbar [data-hle=status]{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.hle-target{transition:none}}
