* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: Arial, "Noto Sans JP", sans-serif;
  background: #f5f6f8;
}

h1 {
  margin: 0;
  font-size: 24px;
}

h2 {
  margin: 8px 0 18px;
  font-size: 18px;
  font-weight: normal;
}

#machine-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.machine-card {
  min-height: 120px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.machine-name {
  font-size: 22px;
  font-weight: bold;
}

.machine-mold {
  margin-top: 10px;
  font-size: 17px;
}

.machine-product {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}
.machine-status {
  margin-top: 8px;
  font-size: 15px;
  font-weight: bold;
}

.issue-count {
  position: absolute;

  top: 10px;
  right: 10px;

  min-width: 26px;
  height: 26px;

  padding: 0 7px;

  border-radius: 13px;

  background: #ff4d4f;
  color: white;

  font-size: 14px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-card.status-normal {
  background: #52c41a;
  color: white;
}

.machine-card.status-warning {
  background: #faad14;
  color: #222;
}

.machine-card.status-error {
  background: #ff4d4f;
  color: white;
}
