.production-dialog {
  width: min(680px, calc(100vw - 32px));
}

.production-panel {
  gap: 14px;
}

.production-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.production-recipe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.production-section {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.production-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.production-item-list {
  display: grid;
  gap: 8px;
}

.production-item-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8f8f9;
}

.production-item-card.is-insufficient {
  border-color: #d66b6b;
  background: #fff6f5;
}

.production-item-preview {
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.production-item-icon {
  width: 36px;
  height: 36px;
}

.production-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.production-item-copy strong,
.production-item-copy em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.production-item-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.production-item-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.production-item-quantity {
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}

.production-item-card.is-insufficient .production-item-quantity {
  color: #b73434;
}

.production-duration-section {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.production-duration-section strong {
  justify-self: end;
  color: var(--ink);
  font-size: 20px;
  font-weight: 1000;
}

.production-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.production-slots-section {
  margin-top: 0;
}

.production-slot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.production-slot-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 10px;
  background: #f8f8f9;
}

.production-slot-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.production-slot-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
}

.production-slot-card em {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.production-slot-card.is-running {
  border-color: #7b8dca;
  background: #f3f5ff;
}

.production-slot-card.is-completed {
  border-color: #61a36f;
  background: #f4fbf5;
}

.production-slot-card.is-locked {
  color: var(--muted);
  background: #eeeeef;
  opacity: 0.78;
}

.production-panel .modal-actions .primary-action {
  min-width: 132px;
}

.production-panel .modal-actions {
  justify-content: center;
}

.production-panel .modal-actions .primary-action:disabled {
  background: #c6c8ce;
  color: #ffffff;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .production-recipe-grid,
  .production-duration-section {
    grid-template-columns: 1fr;
  }

  .production-slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-duration-section strong {
    justify-self: start;
  }
}
