.recipe-lookup-wrap {
  max-width: 1100px;
}

.recipe-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}

.search-item:hover,
.search-item.is-active {
  background: #f1f7ff;
  border-color: #cfe2ff;
}

.search-item-name {
  font-weight: 600;
}

.search-item-id {
  font-size: 0.8rem;
  color: #666;
}

.recipe-output {
  display: grid;
  gap: 16px;
}

.recipe-output .empty-state {
  padding: 18px;
  border: 1px dashed #d0d0d0;
  border-radius: 12px;
  background: #fafafa;
  color: #555;
}

.recipe-section {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.recipe-section h3 {
  margin-bottom: 8px;
}

.recipe-section .recipe-line h3 {
  margin: 0;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #555;
  font-size: 0.9rem;
}

.recipe-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipe-header h3 {
  margin: 0;
}

.recipe-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f6ff;
  border: 1px solid #d8e2ff;
  color: #1a3d8f;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.recipe-share:hover {
  background: #e7efff;
}

.share-icon {
  width: 20px;
  height: 20px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 6px;
  padding: 6px;
  background: #f3f3f3;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.recipe-cell {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 10px;
  text-align: center;
  color: #444;
  padding: 4px;
}

.recipe-cell .cell-note {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 9px;
  background: #eef2ff;
  color: #445;
  padding: 1px 4px;
  border-radius: 6px;
}

.recipe-cell .item-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recipe-cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.recipe-cell[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.recipe-cell[data-tooltip]:hover::after,
.recipe-cell[data-tooltip]:hover::before,
.recipe-cell.is-tooltip::after,
.recipe-cell.is-tooltip::before {
  opacity: 1;
}

.recipe-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recipe-arrow {
  font-size: 1.4rem;
  color: #777;
}

.recipe-output-slot {
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-station {
  width: 36px;
  height: 36px;
}

.badge-soft {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f0f0;
}

.item-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.item-name {
  text-transform: capitalize;
}

@media (max-width: 576px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 46px);
  }

  .recipe-cell {
    width: 46px;
    height: 46px;
  }

  .recipe-section .recipe-line:not(.recipe-header) {
    flex-direction: column;
    align-items: center;
  }
}
