/* Storehouse cabinet drawers and red-ruled paper sheets. */
#p-store .stock-toolbar, #p-store .stock-tabs { right: 10%; }
#p-store .cabinet { width: 78%; bottom: 28px; grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: 88px; gap: 6px; }
#p-store .drawer .face { height: 88px; padding: 15px 4px 4px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#p-store .drawer .face img { width: 42px; height: 42px; }
#p-store .drawer .slip b { font-size: 14px; }
#p-store .drawer .qty { font-size: 13px; right: 4px; top: 2px; }
#p-store .drawer .pull { top: 3px; width: 10px; height: 10px; }
#p-store .drawer .kept { width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; background: #C9A25A; left: 5px; top: 6px; }
#p-store .drawer .kept[hidden] { display: none; }
#p-store .drawer .face:focus-visible { outline: 3px solid var(--glow); outline-offset: -4px; }
#p-store .drawer .check { bottom: 29px; }
#p-store .burner { right: 30px; width: 7%; height: 23%; bottom: 0; opacity: .9; pointer-events: none; }
#p-store .burner-body { bottom: 48px; height: calc(100% - 48px); }
#p-store .burner::before, #p-store .burner::after { bottom: 38px; height: 22px; }
#p-store .burner-label { font-size: 16px; line-height: 18px; }
#p-store.render-mode .cabinet { bottom: 184px; }
#p-store .render-slip { width: 78%; bottom: 16px; max-height: 166px; overflow: auto; }
#renderNotice { color: var(--verm-deep); }
#renderNotice[hidden] { display: none; }
#renderCancel[hidden], #renderConfirm[hidden] { display: none; }
#itemSheet { position: fixed; inset: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); margin: 0; width: min(1180px,96vw); height: min(660px,92vh); min-width: 0; max-width: none; max-height: none; padding: 20px 28px; overflow: auto; border: 0; border-top: var(--rule); border-bottom: var(--rule); font: var(--body)/1.5 'SerifSC',serif; box-shadow: 14px 16px 0 rgba(30,26,26,.4),0 30px 80px rgba(0,0,0,.6); }
#itemSheet:not([open]) { display: none; }
#itemSheet::backdrop { background: radial-gradient(ellipse at 50% 120%,rgba(42,33,27,.85),rgba(11,10,9,.9) 70%); }
#itemSheet .sheet-head { position: sticky; top: -20px; z-index: 2; padding: 10px 44px 14px 4px; background: var(--paper) var(--grain); border-bottom: 2px solid var(--verm-deep); }
#itemSheet h2 { margin: 0; font: normal 26px/1.3 'Kai',serif; }
#itemSheet .sheet-head img { flex-shrink: 0; }
#itemSheet .sheet-close { top: 6px; right: 0; }
.sheet-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px,1.25fr); gap: 28px; padding-top: 12px; }
.sheet-reference { border-left: var(--rule); padding-left: 24px; min-width: 0; }
#itemSheet button:not(.sheet-close) { min-height: 44px; font: 16px/1.4 'Kai',serif; padding: 5px 10px; color: var(--ink); cursor: pointer; background: var(--paper-dark); border: 1px solid var(--ink-soft); box-shadow: var(--print); }
#itemSheet button:disabled { opacity: .45; cursor: default; }
#itemSheet .sheet-keep { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 8px 12px; font-size: 16px; }
#sheetReserve { width: 110px; min-height: 44px; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); }
#itemSheet .sheet-review { border-top: var(--rule); padding: 8px 0; }
#itemSheet .sheet-review[hidden] { display: none; }
#itemSheet .sheet-confirm { background: var(--verm-deep) !important; color: #F3EBD8 !important; min-height: 48px !important; }
#itemSheet .sheet-link { display: flex; align-items: flex-start; flex-direction: column; text-align: left; width: 100%; gap: 3px; border: 0 !important; border-bottom: 1px dotted rgba(30,26,26,.3) !important; background: transparent !important; box-shadow: none !important; padding: 10px 0 !important; }
#itemSheet .sheet-link b { font-weight: normal; font-size: 18px; }
#itemSheet .sheet-link span { font: 14px/1.5 'SerifSC',serif; color: var(--ink-soft); }
#itemSheet .sheet-nums { font-size: 16px; }
#sheetNotice { color: var(--verm-deep); }
@media (max-width: 1100px) { #p-store .cabinet { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 800px) { .sheet-layout { grid-template-columns: 1fr; } .sheet-reference { border-left: 0; border-top: var(--rule); padding-left: 0; } }
