/* Prototype v3の素材の調合操作を維持します。 */
.recipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.action-button {
  height: 47px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(250, 249, 244, 0.59);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.action-button.primary {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: #f8f6f0;
}
.action-button svg {
  width: 16px;
  height: 16px;
}
.action-button.done {
  background: rgba(119, 132, 122, 0.12);
  color: var(--moss-deep);
  border-color: rgba(53, 65, 61, 0.2);
}
.section {
  margin-top: 27px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 4px 13px;
}
.section-head h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  letter-spacing: 0.08em;
  margin: 0;
}
.section-head span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ingredients {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ingredient {
  position: relative;
  min-height: 133px;
  padding: 15px 14px 13px 17px;
  border: 1px solid rgba(39, 48, 45, 0.1);
  border-radius: 24px;
  background: rgba(250, 249, 244, 0.61);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow: hidden;
  transition: 0.2s;
}
.ingredient:before {
  content: "";
  position: absolute;
  left: 0;
  top: 35px;
  bottom: 35px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent, var(--moss));
  opacity: 0.78;
}
.ingredient.muted {
  opacity: 0.56;
}
.ingredient-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.ingredient-index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  display: grid;
  place-items: center;
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.25);
}
.ingredient-meta {
  min-width: 0;
}
.ingredient-role {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ingredient-name {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.ingredient-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ingredient-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ingredient-tools {
  display: flex;
  gap: 7px;
}
.round-tool {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(39, 48, 45, 0.055);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.round-tool svg {
  width: 15px;
  height: 15px;
}
.ingredient-level {
  display: grid;
  grid-template-columns: 52px 1fr 30px;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
}
.level-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
}
.range {
  --p: 50%;
  --c: var(--moss);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  outline: none;
  background: linear-gradient(
    to right,
    var(--c) 0 var(--p),
    rgba(39, 48, 45, 0.12) var(--p) 100%
  );
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #faf9f4;
  border: 1px solid var(--c);
  box-shadow: 0 2px 7px rgba(39, 48, 45, 0.18);
}
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #faf9f4;
  border: 1px solid var(--c);
}
.level-value {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.add-ingredient {
  min-height: 81px;
  border: 1px dashed rgba(39, 48, 45, 0.19);
  border-radius: 23px;
  background: rgba(250, 249, 244, 0.38);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.add-index {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px dashed rgba(39, 48, 45, 0.25);
  display: grid;
  place-items: center;
  font:
    10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
}
.add-ingredient strong {
  font-size: 13px;
}
.add-ingredient span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.add-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.session {
  margin-top: 12px;
  border: 1px solid rgba(39, 48, 45, 0.1);
  border-radius: 22px;
  background: rgba(250, 249, 244, 0.54);
  padding: 14px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.session-title {
  font-size: 11px;
  margin-top: 3px;
}
.segments {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(39, 48, 45, 0.055);
}
.segment {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.segment[aria-pressed="true"] {
  background: #faf9f4;
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(39, 48, 45, 0.08);
}
.note {
  display: flex;
  gap: 8px;
  margin: 13px 4px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}
