/* Category tabs filter one existing Cooking inventory; they do not add cells. */
.cookingInventoryTabs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:10px 0 4px}
.cookingInventoryTabs button{min-height:36px;padding:7px 9px;font-size:12px;line-height:1.4}
.cookingInventoryTabs button[aria-selected="true"]{border-color:var(--gold);color:var(--gold);background:#302719}
.cookingInventoryTabs button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* The recipe book groups existing definitions; rows never own ingredients. */
#campfirePanel .learnedRecipeMenu{width:100%;max-width:none}
.recipeBookName{grid-column:1/-1;min-width:0;font-size:11px;font-weight:400;line-height:1.45;color:var(--text);white-space:nowrap}
.recipeStatGroup .learnedRecipeRow{grid-template-columns:minmax(0,1fr);row-gap:4px}
.recipeComplexityGroup{min-width:0;margin:6px 0 18px}
.recipeComplexityHeading,.recipeStatHeading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;overflow-wrap:anywhere}
#campfirePanel .recipeComplexityHeading{font-size:15px;line-height:1.4;color:var(--gold);padding:8px 0;border-bottom:1px solid #79603d}
.recipeComplexityHeading>span{flex-shrink:0;font-size:10px;font-weight:400;color:var(--muted)}
.recipeStatGroup{min-width:0;margin:10px 0 0}
/* Ingredient names determine each card's width. Cards may move to another row;
   a name never splits inside its own card, including prepared ingredients. */
.recipeStatGroup .recipeSlotPreview{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;width:100%;justify-self:stretch}
.recipeStatGroup .recipePreviewSlot{display:grid;grid-template-rows:32px auto;justify-items:center;align-content:center;gap:4px;flex:0 0 auto;min-width:54px;max-width:100%;height:auto;min-height:60px;padding:4px 6px}
.recipeStatGroup .recipePreviewSlot>:is(img,svg){--native-item-size:32px;width:32px;height:32px}
.recipeStatGroup .recipePreviewName{position:static;font-size:10px;line-height:1.3;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.recipeStatGroup .recipePreviewEmpty{min-height:60px}
#campfirePanel .recipeStatHeading{padding:5px 7px;font-size:12px;line-height:1.4;color:#c7d3bb;background:#171d164d;border-left:2px solid #7d9367}
.recipeStatHeading>span{font-size:10px;font-weight:400;color:var(--muted)}
.recipeBuffChips{display:flex;flex-wrap:wrap;gap:3px;min-width:0}
.recipeBuffChip{max-width:100%;padding:2px 4px;border:1px solid #63724b66;border-radius:3px;color:#b7c8a9;background:#17201466;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.recipeBuffChoice{color:#d1c49d;border-color:#8b795466;background:#2a241566}
.recipeBuffPossibilities{flex-basis:100%;font-size:9px;color:var(--muted)}
@media (max-width:600px){.recipeBuffChip{font-size:10px}}
@media (max-width:380px){#campfirePanel{padding:12px}.recipeBookName{font-size:10px}}
/* Stack desktop Crafting supplies and Equipment at their natural heights.
   Order never moves a pouch, item or drag/drop target in the DOM. */
@media (min-width:1121px){
 .grid:has(#campView:not(.hidden)):has(#craftCubePanel:not(.hidden)) #equipmentColumn{grid-column:3;grid-row:1;align-self:start}
 .grid:has(#campView:not(.hidden)):has(#craftCubePanel:not(.hidden)) #equipmentColumn>#gemPanel{order:0;margin-top:0}
 .grid:has(#campView:not(.hidden)):has(#craftCubePanel:not(.hidden)) #equipmentColumn>#runePanel{order:1;margin-top:0}
 .grid:has(#campView:not(.hidden)):has(#craftCubePanel:not(.hidden)) #equipmentColumn>#equipmentPanel{order:2;margin-top:0}
}
