/* 育苗圃 UI —— 结构类似蜂箱（beehive），布局不同：诱导在上，输入 → 产物在下 */

#nursery-panel.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
#nursery-panel.hidden { display: none; }

.nursery-panel {
  width: min(560px, 92vw);
  max-height: 88vh;
  background: #2a2030;
  border: 2px solid #6b4a3a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f0e6d8;
}

.nursery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #3a2a38;
  border-bottom: 1px solid #6b4a3a;
}
.nursery-head h2 { margin: 0; font-size: 16px; }
.nursery-head button {
  background: transparent;
  border: 0;
  color: #f0e6d8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}
.nursery-head button:hover { color: #ffd97a; }

.nursery-body {
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nursery-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #231a29;
  border-radius: 6px;
}

.nursery-inducer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nursery-main-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nursery-slot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nursery-slot-label {
  font-size: 11px;
  color: #b0a0a8;
}

.nursery-op {
  font-size: 24px;
  color: #ffd97a;
}

.nursery-slot {
  width: 50px;
  height: 50px;
  background: #1a141f;
  border: 2px solid #5a4050;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nursery-slot.empty { border-style: dashed; }
.nursery-slot.output { cursor: default; }
.nursery-slot .count {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 3px #000;
}
.nursery-slot .num {
  position: absolute;
  left: 2px;
  top: 0;
  font-size: 10px;
  color: #a09098;
}

.nursery-status {
  padding: 6px 10px;
  background: #231a29;
  border-radius: 6px;
  font-size: 12px;
  color: #b0a0a8;
  text-align: center;
}
.nursery-status.warn { color: #ff9060; }
.nursery-status.ok   { color: #80e080; }

.nursery-btn {
  padding: 8px 16px;
  background: #6b4a3a;
  color: #f0e6d8;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.nursery-btn:disabled {
  background: #3a2a38;
  color: #6a5a68;
  cursor: not-allowed;
}
.nursery-btn:not(:disabled):hover {
  background: #8b5a4a;
}

.nursery-label {
  font-size: 12px;
  color: #b0a0a8;
  margin-top: 4px;
}

.nursery-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.nursery-grid .nursery-slot {
  width: 100%;
  aspect-ratio: 1;
}

.nursery-foot {
  padding: 8px 14px;
  background: #231a29;
  border-top: 1px solid #6b4a3a;
  font-size: 11px;
  color: #b0a0a8;
  text-align: center;
}
.nursery-foot b { color: #ffd97a; }