/* One fixed action area and one independently scrolling inventory at all sizes. */
#releasePanel .release-content.chest-inventory044{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;grid-auto-flow:row!important;align-content:stretch!important;overflow:hidden!important;scroll-snap-type:none!important;touch-action:auto!important;gap:8px!important}
#releasePanel .chest-tools578{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#releasePanel .chest-tools578>p{min-width:0;flex:1;margin:0!important;font-size:11px;line-height:1.4}
#releasePanel .chest-tools578>button{flex:0 0 auto!important;box-sizing:border-box!important;width:auto!important;max-width:180px!important;min-height:38px!important;height:38px!important;padding:6px 12px!important;font-size:13px!important;line-height:1.25!important;margin:0!important}
#releasePanel .chest-grid578{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;scroll-snap-type:none;overflow-anchor:none;padding:2px;scrollbar-gutter:stable}
#releasePanel .chest-grid578>.product044{min-height:210px!important;height:auto!important;justify-content:flex-start!important;gap:6px!important;padding:8px!important;overflow:hidden;scroll-snap-align:none!important}
#releasePanel .chest-grid578>.product044>.pixel-chest{width:80px!important;height:80px!important;min-height:80px!important;flex:0 0 80px!important}
#releasePanel .chest-grid578>.product044>button{min-height:34px!important;flex-shrink:0!important}
#releasePanel .chest-grid578>.empty045{grid-column:1/-1}
/* Empty inventory is a compact message, not a full-width product card. */
#releasePanel .chest-grid578:has(>.empty045){grid-template-columns:minmax(0,1fr);align-content:center;scrollbar-gutter:auto}
#releasePanel .chest-grid578>.empty045{box-sizing:border-box;min-width:0;min-height:0;width:100%;padding:16px 8px;gap:12px}
#releasePanel .chest-grid578>.empty045>h3{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0;line-height:1.5}
#releasePanel .chest-grid578>.empty045>p{max-width:100%;margin:0;line-height:1.5}
#releasePanel .chest-inventory044 .chest-grid578>.empty045>button.primary{flex:0 0 auto!important;width:min(220px,100%)!important;min-width:0!important;max-width:220px!important;min-height:40px!important;margin:0!important;padding:8px 16px!important;white-space:normal;text-align:center}
@media(max-height:400px){#releasePanel .chest-grid578>.empty045{padding:8px;gap:8px}}
@media(max-height:500px){#releasePanel .chest-tools578>p{font-size:10px;line-height:1.3}}

/* No reserved toolbar space when there is no bulk action. */
#releasePanel .chest-tools578{justify-content:flex-end}
#releasePanel .chest-tools578:empty{display:none}
#releasePanel .chest-inventory044:has(>.chest-tools578:empty){grid-template-rows:minmax(0,1fr)!important}
