.castle-panel[data-facility=stash] .forge-recipe-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto 44px;gap:6px;min-height:52px;padding:3px 6px;flex:none}
.forge-recipe-row>.icon{width:26px;height:26px}.forge-recipe-row .item-name{min-width:0}.forge-recipe-row .item-name>b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-recipe-row .item-name>small{font-size:10px;white-space:nowrap}
.castle-panel[data-facility=stash] .recipe-row-price{grid-column:3;gap:6px;font-size:12px}.recipe-row-price .icon{width:22px;height:22px}
.castle-panel[data-facility=stash] .forge-recipe-row>button{grid-column:4;width:44px;height:44px;min-width:44px;padding:4px;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important}
.castle-panel[data-facility=stash] .forge-recipe-row>button:focus-visible{outline:2px solid #815c25;outline-offset:-2px}.forge-recipe-row>button>.icon{width:26px;height:26px}
#forge-recipe-detail{width:min(760px,calc(100vw - 18px));max-width:none;max-height:calc(100dvh - 12px);height:min(510px,calc(100dvh - 12px));box-sizing:border-box;margin:auto;padding:8px;overflow:hidden;background:var(--ui-surface);color:var(--paper);border:2px ridge var(--gold)}
#forge-recipe-detail[open]{display:flex;flex-direction:column;gap:5px}#forge-recipe-detail header{display:flex;align-items:center;min-height:44px;flex:none;gap:6px}#forge-recipe-detail h2{display:flex;align-items:center;gap:7px;flex:1;min-width:0;margin:0;font:21px/24px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#forge-recipe-detail header .icon{width:26px;height:26px;flex:none}#forge-recipe-detail header>button{width:44px;height:44px;min-width:44px;padding:8px}
.recipe-materials{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;min-height:24px;flex:none}.recipe-materials>b{display:flex;gap:10px;align-items:center}.recipe-materials .icon{width:22px;height:22px}.recipe-materials .forge-cost-resource{display:inline-flex;align-items:center;gap:3px}
.recipe-columns,.recipe-comparison{display:grid;grid-template-columns:minmax(130px,1.3fr) repeat(3,minmax(75px,1fr));gap:5px;align-items:center;text-align:center}.recipe-columns{font-size:10px;color:var(--gold);flex:none;padding:0 5px}.recipe-columns>span:first-child{text-align:left}
.recipe-comparisons{flex:1;min-height:52px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;gap:3px}.recipe-comparison{flex:none;width:100%;min-height:50px;padding:3px 5px;background:var(--ui-inset);color:var(--paper);font-size:11px}.recipe-comparison.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.recipe-soldier{display:flex;align-items:center;gap:5px;min-width:0;text-align:left}.recipe-soldier>img{width:30px;height:36px;object-fit:contain;flex:none}.recipe-soldier>span{min-width:0}.recipe-soldier b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-soldier small{font-size:10px;display:block}.recipe-stat small{display:block;font-size:10px;margin-top:2px}.recipe-stat .better{color:#b6e8a5}.recipe-stat .worse{color:#ffb69d}
#forge-recipe-detail .recipe-replacement{flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:11px;line-height:16px}#forge-recipe-detail .recipe-status{flex:none;margin:0;font-size:11px;line-height:15px;color:var(--gold)}#forge-recipe-detail .recipe-status:empty{display:none}#forge-recipe-detail footer{display:flex;justify-content:flex-end;gap:8px;min-height:44px;flex:none}#forge-recipe-detail footer button{min-height:44px;padding:5px 10px;gap:5px;font-size:12px}#forge-recipe-detail footer .icon{width:24px;height:24px}
@media(max-height:300px){#forge-recipe-detail{padding:5px;gap:3px}#forge-recipe-detail h2{font-size:19px}.recipe-comparison{min-height:44px}.recipe-soldier>img{height:30px;width:26px}}
