.forge-app .inventory-grid.stash-inventory{display:flex;flex-direction:column;align-items:stretch;gap:3px;overflow:hidden;padding:0;max-height:none;height:440px;min-height:0}
.native-stash-viewport{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size;overflow:hidden}
.native-stash-board{position:relative;width:min(100cqw,calc(100cqh * var(--stash-board-aspect,1)));height:min(calc(100cqw / var(--stash-board-aspect,1)),100cqh);flex:none;background-size:100% 100%;container-type:inline-size;isolation:isolate}
.native-stash-board[hidden]{display:none}
.native-stash-board.frame-only-board{background-image:none!important;background-color:#121819;border:4px solid transparent;border-image:var(--stash-board-art) 9 / 4px}
.forge-app .native-stash-board.frame-only-board .inventory-cell{background:#080b0e;border:2px solid transparent;border-image:var(--stash-slot-art) 4 / 2px}
.forge-app .native-stash-board .inventory-cell{position:absolute;min-height:0;max-height:none;min-width:0;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none}
.native-stash-board .inventory-cell::before{content:'';position:absolute;inset:8%;background:#080b0e;z-index:0}
.forge-app .native-stash-board .inventory-cell.empty-cell{opacity:1}
.native-stash-board .inventory-cell.empty-cell::before{background:#080b0e}
.native-stash-board .inventory-cell[data-source-ghost]::before{background:transparent}
.native-stash-board .inventory-cell img{position:absolute;inset:8%;width:84%;height:84%;max-width:none;max-height:none;object-fit:contain;transform:none;z-index:1}
.forge-app .native-stash-board.published-layout-board .inventory-cell{overflow:visible}
.native-stash-board.published-layout-board .inventory-cell::before{inset:-10%;background:#080b0e;border:2px solid transparent;border-image:var(--stash-slot-art) 4 / 2px}
.native-stash-board.published-layout-board .inventory-cell img{inset:0;width:100%;height:100%}
.native-stash-board.published-layout-board .material-count{bottom:0;right:0;font-size:clamp(6px,1.9cqw,11px)}
.native-stash-board.published-layout-board .grade-mark{top:0;left:0}
.native-stash-board.published-layout-board .reference-cell img{opacity:1}
.native-stash-board .reference-cell{cursor:pointer}
.native-stash-board .reference-source-cell::before{background:transparent}
.native-stash-board.published-layout-board .reference-source-cell::before{display:none}
.native-stash-board .reference-cell:hover,.native-stash-board .reference-cell:focus-visible{outline:1px solid #d7c99c;outline-offset:-2px}
.selected-reference-sprite{display:block;flex:none;width:22px;aspect-ratio:var(--reference-aspect,1)}
.stash-reference-detail header{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.stash-reference-detail header>img{display:block;width:112px;height:112px;object-fit:contain}
.stash-reference-detail h2{margin:0;font-size:18px}
.stash-reference-source-image{width:min(200px,100%);aspect-ratio:var(--reference-aspect,1);background-color:#090c0f}
.native-stash-board .inventory-cell.selected,.native-stash-board .inventory-cell.omen-active{outline:1px solid #bed7ed;outline-offset:-1px;background:#86b8e433}
.forge-app .native-stash-board .inventory-cell[data-material]:not(.unusable):not(.depleted) img{filter:brightness(1.18) drop-shadow(0 3px 3px #0007)}
.forge-app .native-stash-board .inventory-cell.unusable img{opacity:.42;filter:grayscale(.65) drop-shadow(0 3px 3px #0007)}
.forge-app .native-stash-board .inventory-cell.depleted img{opacity:.25}
.native-stash-board .material-count{z-index:2;bottom:7%;right:8%;font-size:clamp(6px,2.45cqw,11px);line-height:1;color:#fff;text-shadow:0 1px 2px #000,1px 0 #000}
.native-stash-board[data-stash-panel="resource"] .material-count{left:8%;font-size:clamp(4px,1.9cqw,11px);white-space:nowrap;letter-spacing:0;text-align:right}
.native-stash-board .grade-mark{z-index:2;top:8%;left:8%;font-size:clamp(5px,2cqw,9px);line-height:1}
.native-stash-board[data-stash-panel="currency"] .material-count{top:7%;left:8%;bottom:auto;right:auto;white-space:nowrap;padding:0 1px}
.native-stash-board[data-stash-panel="currency"] .grade-mark{top:auto;left:auto;bottom:8%;right:8%}
.native-stash-board .active-spark{z-index:3;right:8%;top:8%;width:25%;height:25%}
.native-stash-board .active-spark svg{width:100%;height:100%}
.native-stash-target{position:absolute;background:#10151d;box-shadow:inset 0 0 0 1px #355277;overflow:hidden}
.native-stash-target img{width:100%;height:100%;object-fit:contain;padding:4px;pointer-events:none}
.native-stash-board[data-stash-panel="currency"] .native-stash-target,.native-stash-board[data-stash-panel="essence"] .native-stash-target{background:transparent;box-shadow:none}
.native-stash-target.drop-ready{outline:2px solid #a9d6ff;background:#223e58}
.native-stash-target.drop-invalid{outline:2px solid #c59183}
.native-stash-section{position:absolute;border:0;padding:0;background:transparent;border-radius:0}
.native-stash-section.active{outline:1px solid #cebf84;outline-offset:-2px}
.native-stash-region{position:absolute;z-index:2;pointer-events:none;color:#c9c5b5;font-size:clamp(5px,1.9cqw,9px);line-height:1;letter-spacing:.04em}
.native-stash-source-mask{position:absolute;z-index:1;pointer-events:none;background:#181c1b}
.native-stash-pages{flex:none;height:23px;display:flex;align-items:center;justify-content:center;gap:9px;color:#c5c8ce;font-size:10px;line-height:1}
.native-stash-pages button{width:29px;height:23px;min-height:0;display:flex;align-items:center;justify-content:center;background:#151d28;border:1px solid #354151;border-radius:3px;padding:0}
.native-stash-pages button:disabled{opacity:.3}
.native-stash-page-caption{font-size:9px;color:#b9c8da;white-space:nowrap}
.native-stash-pages button:first-child svg{transform:rotate(180deg)}
.stash-inventory .inventory-empty{margin:auto;padding:8px}
@media(max-width:760px){
  .forge-is-crafting .forge-main{padding:4px}
  .forge-is-crafting .forge-workspace{gap:4px}
  .forge-is-crafting .forge-inventory{padding:4px}
  .forge-is-crafting .inventory-heading{top:4px;right:4px}
  .forge-is-crafting .inventory-tab-strip{margin-bottom:3px}
  .forge-is-crafting .inventory-grid.stash-inventory{flex:1;height:auto;overflow:hidden;padding:0}
  .forge-is-crafting .native-stash-pages{position:absolute;right:4px;bottom:4px;z-index:2;height:24px;gap:7px}
  .forge-is-crafting #material-details{min-height:29px}
  .forge-is-crafting .forge-inventory .selected-material{grid-template-columns:minmax(0,1fr);margin-top:2px;padding-top:2px}
  .forge-is-crafting .forge-inventory:has(.native-stash-pages) .selected-material{padding-right:104px}
  .forge-is-crafting .forge-inventory:has(.native-stash-pages.has-caption) .selected-material{padding-right:136px}
  .forge-is-crafting .forge-inventory:has(.native-stash-pages.fragment-additional-pages) .selected-material{padding-right:190px}
  .forge-is-crafting .forge-inventory .selected-material-heading img{width:20px;height:20px}
  .forge-is-crafting .forge-inventory .selected-material-heading h3 button{display:block;max-width:100%;min-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
}
@media(max-width:760px){
  body.forge-is-crafting:not(.forge-short-viewport) .forge-workspace{grid-template-rows:var(--craft-min-height,256px) minmax(0,1fr)}
}
