/* MD-TEST: optical contents only; original product slots and shelf floors remain. */
#stockList[data-view=fridge] .fridge-space{--optical-size:64px}
#stockList[data-view=fridge] .fridge-low{--optical-size:56px}
#stockList[data-view=fridge] .fridge-box{--optical-size:68px}
#stockList[data-view=fridge] .fridge-tall{--optical-size:72px}
#stockList[data-view=fridge] .fridge-browser[data-compact=true] .fridge-space{--optical-size:56px}
#stockList[data-view=fridge] .fridge-space[data-density=full]{--optical-size:56px}
#stockList[data-view=fridge] .fridge-visual{align-items:flex-end}
#stockList[data-view=fridge] .fridge-art{position:relative;display:block;overflow:hidden;z-index:1;align-self:flex-end;flex:0 1 auto;min-width:0;width:min(var(--optical-size),calc(var(--optical-size) * var(--art-ratio)));aspect-ratio:var(--art-ratio);line-height:0;pointer-events:none}
#stockList[data-view=fridge] .fridge-art[data-kind=fallback]{--optical-size:30px}
#stockList[data-view=fridge] .fridge-art .stock-thumb{position:absolute;display:block;width:var(--art-width);height:var(--art-height);max-width:none;left:var(--art-left);top:var(--art-top);margin:0;object-fit:contain;filter:none;opacity:1}
#stockList[data-view=fridge] .fridge-item[data-availability=low] .stock-thumb{opacity:.65}
#stockList[data-view=fridge] .fridge-item[data-availability=missing] .stock-thumb{opacity:.40}
#stockList[data-view=fridge] .fridge-counted .fridge-art{flex-shrink:1}
#stockList[data-view=fridge] .fridge-quantity{position:relative;z-index:2;align-self:center}
#stockList[data-view=fridge] .fridge-space h3{position:relative;z-index:5;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline:32px;opacity:.72;font-size:11px;font-weight:400;text-shadow:0 1px 2px #fff,0 -1px 2px #fff;pointer-events:none}
html[data-theme=night] #stockList[data-view=fridge] .fridge-space h3{text-shadow:0 1px 2px #203747,0 -1px 2px #203747}
/* Only the active fridge header: no NS geometry, scrolling or safe-area changes. */
.app-shell:has([data-screen=stock].active #stockList[data-view=fridge]){padding-top:0;padding-bottom:0}
#stockSurface[data-view=fridge] .stock-composer{margin:0}
#stockSurface[data-view=fridge]{margin-bottom:0}
#stockList[data-view=fridge] #fridgeMain .digital-fridge{min-height:calc(100% - 24px)}
#stockList[data-view=fridge] .fridge-frame-handle .handle-grip{background:#bdefff;box-shadow:inset 1px 0 #fff,0 0 4px #57d9ff,0 0 9px #a9efff}
/* Safe footer padding is already included in the measured footer boundary. */

.app-shell:has([data-screen=stock].active #stockList[data-view=fridge]) [data-screen=stock] .storage-tile{min-height:64px;padding-block:4px}
