.forge-tabs { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.forge-tabs button { flex: 1; min-height: 38px; }
.forge-tabs button[aria-pressed="true"] { border-color: #d6a346; background: #332819; color: #ffe1a0; }
.core-recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.core-recipe-card { display: flex; flex-direction: column; gap: 9px; padding: 14px; background: var(--row); min-width: 0; }
.core-recipe-heading, .core-recipe-cost { display: flex; align-items: center; gap: 8px; }
.core-recipe-heading img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.core-recipe-heading strong { color: #f6dfb7; line-height: 1.5; }
.core-recipe-effect { color: #bdd2c7; font-size: 11px; line-height: 1.6; margin: 0; }
.core-recipe-cost { color: #e2c89b; font-size: 11px; line-height: 1.6; }
.core-recipe-cost img, .temper-core-rows img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.core-recipe-card small { color: #b8af9e; font-size: 10px; line-height: 1.5; }
.core-recipe-card .core-recipe-status { color: #d6b86a; margin-top: auto; }
.core-recipe-card button { min-height: 38px; }
.temper-core-picker { min-width: 0; border: 0; border-top: 1px solid var(--rule); padding: 8px 0 0; margin: 0; }
.temper-core-picker legend { color: #efcf94; font-size: 10px; padding: 0 4px; }
.temper-core-rows { display: grid; gap: 6px; }
.temper-core-rows label { display: grid; grid-template-columns: 26px 1fr 52px; align-items: center; gap: 6px; color: #ded0ba; font-size: 10px; }
.temper-core-rows input { width: 52px; min-height: 34px; padding: 4px; background: #0c0f10; border: 1px solid #897046; color: #ffe3ac; }
.temper-core-picker small { display: block; margin-top: 8px; color: #b8af9e; font-size: 10px; line-height: 1.5; }
@media (max-width: 480px) {
  .core-recipe-grid { grid-template-columns: 1fr; }
  /* Four tabs do not fit one row on a phone: two by two. */
  .forge-tabs button { flex: 1 1 calc(50% - 3px); }
}
/* Blueprints: the forge's recipe book. Cards reuse .core-recipe-card. */
.blueprint-heading { margin: 14px 0 8px; color: #cdb07a; font-size: 13px; }
.blueprint-book-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.blueprint-filter { display: flex; align-items: center; gap: 6px; color: #ded0ba; font-size: 11px; min-height: 38px; }
.blueprint-card .blueprint-off-calling { color: #e59a6a; }
.blueprint-empty { grid-column: 1 / -1; margin: 0; }
/* The bench: orders under way at the forge and the alchemy bench, drawn
   above the recipes. Hidden until there is an order on it. */
.workshop-bench { margin: 0 0 14px; }
.workshop-bench .blueprint-heading { margin-top: 0; }
.bench-list { display: grid; gap: 8px; }
.bench-order { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #75644444; border-radius: 3px; background: linear-gradient(135deg, #8c71321b, #18231c55); }
.bench-order img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.bench-body { display: grid; gap: 6px; min-width: 0; }
.bench-body strong { color: #f6dfb7; font: 600 15px/1.3 "Segoe UI", system-ui; }
.bench-bar { height: 8px; background: #090b0d; border: 1px solid #3d392f; border-radius: 2px; overflow: hidden; }
.bench-fill { height: 100%; background: linear-gradient(90deg, #d49520, #f1c66f); transition: width 0.9s linear; }
.bench-order.is-ready .bench-fill { background: linear-gradient(90deg, #4d8236, #7ab55c); }
.bench-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.bench-status { flex: 0 0 auto; min-width: 72px; color: #d6b86a; font-size: 12px; line-height: 1.4; }
.bench-order.is-ready .bench-status { color: #9fd3a0; }
.bench-order.is-waiting { border-style: dashed; background: none; }
.bench-order.is-waiting img { opacity: 0.6; }
.bench-order.is-waiting .bench-status { color: #b8af9e; }
.bench-next { color: #9fd3a0; font-size: 12px; line-height: 1.4; }
.bench-helper { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; color: #b8af9e; font-size: 12px; min-width: 0; }
.bench-helper select { flex: 1; min-width: 0; min-height: 36px; padding: 4px 8px; background: #0c0f10; border: 1px solid #897046; border-radius: 2px; color: #ffe3ac; font: inherit; font-size: 13px; }
.bench-helper select:focus-visible { outline: 3px solid #f1c66f; outline-offset: 2px; }
.bench-order button { min-height: 44px; }
.bench-order button.is-confirming { outline-color: #8d3337; background-color: var(--crimson-dark); color: #ffd9c9; }
@media (max-width: 480px) {
  .bench-order { grid-template-columns: 36px minmax(0, 1fr); }
  .bench-order img { width: 36px; height: 36px; }
  .bench-order button { grid-column: 1 / -1; }
}
