/* Approved FR v3, scoped strictly to the fridge and its own storage editor. */
#stockList .fridge-approved .digital-fridge{min-height:100%;padding:4px;gap:4px;justify-content:flex-start}
#stockList .fridge-approved .fridge-space{flex:0 0 auto;width:100%;min-height:24px;--visual-height:56px;--optical-size:56px;--space-floor:0;background-size:100% 100%;background-repeat:no-repeat;box-shadow:none}
#stockList .fridge-approved .fridge-pair{flex:0 0 auto;width:100%;align-items:stretch}
#stockList .fridge-approved .fridge-pair .fridge-space{height:100%}
#stockList .fridge-approved .fridge-space h3{position:static;min-height:24px;height:24px;opacity:1;text-align:left;padding:2px 4px;font:500 12px/20px system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--heading-day);filter:none;text-shadow:0 1px 1px #fff}
html[data-theme=night] #stockList .fridge-approved .fridge-space h3{color:rgb(var(--zone-rgb));filter:none;text-shadow:0 1px 1px #000}
#stockList .fridge-approved .fridge-tier{display:grid;grid-template-columns:repeat(var(--space-columns,4),minmax(0,1fr));flex:none;min-height:0;gap:2px 4px;padding-inline:0;background:transparent}
#stockList .fridge-approved .fridge-tier .fridge-item{flex:initial;max-width:none;width:100%}
#stockList .fridge-approved .fridge-item{position:relative;align-self:start}
#stockList .fridge-approved .fridge-item .stock-edit{grid-template-rows:56px auto;min-height:0;gap:0}
#stockList .fridge-approved .fridge-visual{height:56px;align-items:center;overflow:hidden}
#stockList .fridge-approved .fridge-art{align-self:center;width:min(56px,calc(56px * var(--art-ratio)));max-height:56px}
#stockList .fridge-approved .fridge-art .stock-thumb{filter:none}
#stockList .fridge-approved .fridge-caption{padding:0;gap:0}
#stockList .fridge-approved .fridge-name{font:650 12px/14px system-ui;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:28px;overflow:hidden;text-shadow:0 1px 1px #fff}
html[data-theme=night] #stockList .fridge-approved .fridge-name{text-shadow:0 1px 1px #000}
#stockList .fridge-approved .fridge-request{position:absolute;z-index:3;left:calc(50% + var(--badge-x,0px));top:calc(28px + var(--badge-y,0px));transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;display:grid;place-items:center;touch-action:manipulation}
.request-face{width:24px;height:24px;display:grid;place-items:center;background:#fff;border-radius:50%;color:#a9446b;box-shadow:0 1px 3px #0003;font:700 20px/1 Arial}
.request-face svg{width:16px;height:16px}.request-face.added{color:#2e7d32}
.fridge-eq{display:flex;align-items:center;justify-content:center;height:32px;--eq:#91a6b5}
html[data-theme=night] .fridge-eq{--eq:#7f9cad}
#stockList .fridge-approved .fridge-eq input{appearance:none;-webkit-appearance:none;width:48px;min-width:48px;max-width:48px;height:32px;min-height:32px;padding:0;margin:0;border:0;background:transparent;touch-action:pan-y;cursor:pointer}
.fridge-eq input::-webkit-slider-runnable-track{height:1px;background:var(--eq)}
.fridge-eq input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:6px;height:6px;border-radius:50%;border:0;background:var(--eq);margin-top:-2.5px;box-shadow:none}
.fridge-eq input::-moz-range-track,.fridge-eq input::-moz-range-progress{height:1px;background:var(--eq)}
.fridge-eq input::-moz-range-thumb{width:6px;height:6px;border-radius:50%;border:0;background:var(--eq)}
@media(pointer:coarse){.fridge-eq{height:44px}#stockList .fridge-approved .fridge-eq input{height:44px;min-height:44px}}
#stockList .fridge-approved .fridge-mini-freezer{border:1px solid #a8bdca;border-radius:5px;background:linear-gradient(180deg,#f9fcff,#e2eef5);background-repeat:no-repeat;background-size:100% 100%;padding:2px 3px}
html[data-theme=night] #stockList .fridge-approved .fridge-mini-freezer{background:linear-gradient(180deg,#30495c,#203747)}
#stockList .fridge-approved{padding-right:28px}
#stockList .fridge-approved .fridge-integrated-handle{position:absolute;right:0;top:max(0px,calc(50% - 100px));width:28px;height:200px;padding:6px 0;display:flex;flex-direction:column;gap:4px;z-index:5;border:1px solid #91a8b8;border-radius:6px;background:linear-gradient(90deg,#edf5fa,#b9cedb 45%,#f4f9fc 80%);box-sizing:border-box}
.fridge-integrated-handle button{flex:none;width:26px;height:44px;min-height:44px;display:grid;place-items:center;border:0;background:transparent;padding:0;color:#28485f;touch-action:manipulation}
.fridge-integrated-handle svg{width:22px;height:22px}.fridge-integrated-handle button:first-child{color:#a9446b}.fridge-integrated-handle button:nth-child(2){color:#8b663d}
#stockList .fridge-approved .fridge-frame-handle{position:static;min-height:44px;width:26px;height:44px;box-shadow:inset 0 1px #91a8b8;border:0;border-radius:0;top:auto;right:auto;background:transparent;padding:0}
html[data-theme=night] #stockList .fridge-approved .fridge-integrated-handle{background:linear-gradient(90deg,#223a4c,#49667b,#263f52)}
html[data-theme=night] .fridge-integrated-handle button{color:#eef5fa}
html[data-theme=night] .fridge-integrated-handle button:first-child{color:#e4a5bd}
.fridge-page{scrollbar-color:#91a6b540 transparent}
body:has(.fridge-approved) .stock-action-drawer:not([data-open=true]){visibility:hidden}
body:has(.fridge-approved) .stock-action-drawer[data-open=true]{right:30px;left:auto}
.stock-dialog.stock-space-editor[open]{display:flex;flex-direction:column;max-height:calc(var(--editor-height,100dvh) - 24px);overflow:hidden}
.stock-space-editor form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.stock-space-editor .stock-dialog-fields{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.stock-space-editor .core-confirm-actions{flex:none;background:var(--stock-dialog-tint)}
.stock-space-editor .space-name-row{display:grid;grid-template-columns:54px minmax(0,1fr) 36px;align-items:center;gap:4px;min-height:44px}
.stock-space-editor .space-name-row input{font-size:14px;min-height:40px;margin:0;padding:4px}
.stock-space-editor .space-name-row input[readonly]{background:transparent;border-color:transparent}
.stock-space-editor .space-name-row button{min-height:44px;border:0;background:transparent;color:var(--stock-dialog-active)}
.stock-space-editor .stock-icon-picker>label:not(.stock-icon-auto){min-height:44px;padding:3px 6px}
.stock-space-editor .stock-dialog-heading{flex:none}.stock-space-editor small{font-size:11px}
