/* P18 regeneration panel. Self-contained: it reads the app's colour tokens when
 * they exist and falls back to the same dark palette when they do not, so the
 * panel can never render unstyled. */
.regen-card {
  margin: 16px 0 96px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  background-color: var(--card, #0f1a24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.regen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.regen-head h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.regen-head p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.66);
}

.regen-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary, #2dd4bf);
  font-weight: 700;
}

.regen-icon {
  font-size: 1.1rem;
  color: var(--primary, #2dd4bf);
  opacity: 0.85;
}

.regen-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.82);
}

.regen-status small.regen-kept {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.55);
}

.regen-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--primary, #2dd4bf);
  animation: regen-spin 0.8s linear infinite;
}

@keyframes regen-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .regen-spinner { animation-duration: 2.4s; }
}

.regen-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.regen-modes button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.regen-modes button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.regen-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.regen-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 0;
}

.regen-field span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  font-weight: 700;
}

.regen-field select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.85rem;
}

.regen-field select:focus-visible,
.regen-chip:focus-visible,
.regen-modes button:focus-visible {
  outline: 2px solid var(--primary, #2dd4bf);
  outline-offset: 2px;
}

.regen-locks {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.regen-locks-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  font-weight: 700;
}

.regen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.regen-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.regen-chip.is-locked {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(45, 212, 191, 0.14);
  color: #ffffff;
}

.regen-empty {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.5);
}

.regen-hint {
  margin: 14px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.5);
}
