/*LHSHEETALL lh-35.0: every menu (not Settings) opens as the Hero Profile / Quests slide-up sheet. Kill switch localStorage lh-sheet-all=0 = old panels (code kept)*/
@keyframes lhSaUp{from{translate:0 100%}to{translate:0 0}}@keyframes lhSaFade{from{opacity:0}to{opacity:1}}
html.lhSheetAll .lhSA{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;margin:0 auto!important;transform:none!important;inset:auto 0 0 0!important;box-sizing:border-box!important;width:100%!important;max-width:560px!important;height:auto!important;max-height:88dvh!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:0!important;border-top:2px solid #8d7bff!important;border-radius:24px 24px 0 0!important;background:linear-gradient(180deg,#30205e 0,#1d1436 150px)!important;box-shadow:0 -14px 44px rgba(0,0,0,.6)!important;padding-bottom:env(safe-area-inset-bottom)!important;animation:lhSaUp .28s cubic-bezier(.22,.8,.3,1);will-change:translate;z-index:2}
html.lhSheetAll .lhSA>.lhSAg{display:block;position:sticky;top:0;z-index:9;height:21px;margin:0 0 -6px;touch-action:none;cursor:grab;background:transparent}
html.lhSheetAll .lhSA>.lhSAg:before{content:"";display:block;width:44px;height:5px;border-radius:3px;background:#8d7bff;opacity:.85;margin:10px auto 0}
html.lhSheetAll .lhSAh{touch-action:none;cursor:grab}
html.lhSheetAll .lhSAb{background:rgba(8,4,20,.62)!important;animation:lhSaFade .28s ease-out}
html.lhSheetAll .lhSAr{align-items:flex-end!important;padding:0!important}
html.lhSheetAll #storeOv.lhSAr .stbg{background:rgba(8,4,20,.62)!important;animation:lhSaFade .28s ease-out}html.lhSheetAll #storeOv.lhSAr .stbg:after{display:none}
html.lhSheetAll #lhAdvOv .lhSA{padding-top:56px!important}html.lhSheetAll #lhAdvOv .lhSA>.lhSAg{position:absolute;left:0;right:0;top:0;margin:0}
html.lhSheetAll .lscr .lhSA .lsh{padding-top:4px!important;background:linear-gradient(#30205e 80%,#30205e00)!important}
html.lhSheetAll #hEdit .lhSA{padding:0 18px calc(18px + env(safe-area-inset-bottom))!important}
/*LHSHEETFULL lh-35.1: scrolling sheets open to the top safe area (short sheets stay content-height). Kill: lh-sheet-full=0*/
/*LHSHEETSWIPE lh-35.1: generous handle (44px, full width), ONLY the 44px handle starts a close drag (r3: header + body never do). Kill: lh-sheet-swipe=0*/
html.lhSheetAll.lhSheetSwipe .lhSA>.lhSAg{height:44px!important;min-height:44px!important;flex:none!important;margin:0 0 -30px!important;left:0;right:0;width:100%}html.lhSheetAll.lhSheetSwipe .lhSA>.lhSAg:before{margin-top:8px}
html.lhSheetAll.lhSheetSwipe .lhSAh{touch-action:auto!important;cursor:auto!important}html.lhSheetAll.lhSheetSwipe .lhSA>.lhSAg,html.lhSheetAll.lhSheetSwipe #lhAdvOv .lhSA>.lhSAg{position:relative!important;margin:0!important;z-index:30;cursor:grab}html.lhSheetAll.lhSheetSwipe .lhSA>.lhSAg{touch-action:none;-webkit-user-select:none;user-select:none}
html.lhSheetAll.lhSheetSwipe .lhSA{overscroll-behavior:contain}
html.lhSheetAll.lhSheetFull .lhSA{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 6px)!important}
html.lhSheetAll.lhSheetFull .lhSA.lhSAfull{height:calc(100dvh - env(safe-area-inset-top,0px) - 6px)!important}
/*LHBAGFIT lh-35.1: Bag sheet was viewport+3px wide (the green 'ok' badge on the last tile column sat at right:-6px past the edge); badge pulled in 3px, panel clamped to the viewport, chip row scrolls inside it. Kill: lh-bag-fit=0*/
html.lhBagFit #bagOv,html.lhBagFit #bagOv .gsop{max-width:100vw!important;box-sizing:border-box!important;overflow-x:hidden!important}
html.lhBagFit #bagOv .dt .ok{right:-3px!important}html.lhBagFit #bagOv .dcats{max-width:100%;min-width:0}html.lhBagFit #bagOv .gsoh{min-width:0;max-width:100%;box-sizing:border-box}html.lhBagFit #bagOv .gsoh>*{min-width:0}html.lhBagFit #bagOv .gsoh>:not(.gsox){flex-shrink:1;overflow:hidden;text-overflow:ellipsis}html.lhBagFit #bagOv .gsox{flex:none}
@media (prefers-reduced-motion:reduce){html.lhSheetAll .lhSA,html.lhSheetAll .lhSAb,html.lhSheetAll #storeOv.lhSAr .stbg{animation:none!important}}
