/* Rezeptnest v0.9.58 – Portionsstatus und konsistente Kochschritt-Aktionen */
.rn-portion-state-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 12px;
}
.rn-portion-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}
.rn-portion-state-pill.is-original {
  background: var(--surface-soft);
  color: var(--text-2);
}
.rn-portion-state-pill.is-adjusted {
  background: var(--primary-soft);
  color: var(--primary-2);
}
.rn-portion-state-toggle {
  min-height: 25px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--primary-2);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.v91-ingredient-sheet .rn-portion-state-row {
  margin: 0 2px 8px;
}
.v80-portion-current small {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}

/* RNV92 erzeugt den Reset-Button bei der ersten abgehakten Kochstufe dynamisch.
   Die Darstellung muss unabhängig von einer historisch fehlenden CSS-Klasse
   exakt wie die Zutaten-Aktion im Rezeptnest-CI bleiben. */
.v90-step-head [data-action="v90-reset-steps"],
.v90-step-head .v90-reset-steps,
.v90-step-head .rn-inline-reset-action {
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--primary-2) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  cursor: pointer;
}
.v90-step-head [data-action="v90-reset-steps"] svg,
.v90-step-head .v90-reset-steps svg,
.v90-step-head .rn-inline-reset-action svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto;
}

@media (max-width: 390px) {
  .rn-portion-state-row { gap: 5px; }
  .rn-portion-state-pill,
  .rn-portion-state-toggle { font-size: 9.5px; }
  .v90-step-head [data-action="v90-reset-steps"] { font-size: 10px !important; }
}
