.hg-b64-prep {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d7d2c6;
  border-radius: 0.35rem;
  background: #fbfaf7;
}

.hg-b64-prep [hidden] {
  display: none !important;
}

.hg-b64-prep__form {
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
}

.hg-b64-prep__form label {
  margin-top: 0.4rem;
  font-weight: 700;
}

.hg-b64-prep__form input,
.hg-b64-prep__form select,
.hg-b64-prep button {
  min-height: 2.7rem;
  padding: 0.45rem 0.65rem;
  font: inherit;
}

.hg-b64-prep button {
  width: fit-content;
  cursor: pointer;
}

.hg-b64-prep button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hg-b64-prep :focus-visible {
  outline: 3px solid #1a5f9e;
  outline-offset: 2px;
}

.hg-b64-prep [data-prep-dish-count].is-over-limit {
  color: #a40000;
  font-weight: 700;
}

.hg-b64-prep [data-prep-status] {
  min-height: 1.5em;
}

.hg-b64-prep [data-prep-list] {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding-left: 1.4rem;
}

.hg-b64-prep__task {
  padding: 0.75rem;
  border: 1px solid #d7d2c6;
  border-radius: 0.25rem;
  background: #fff;
}

.hg-b64-prep__task.is-done > .hg-b64-prep__task-check span {
  text-decoration: line-through;
  color: #555;
}

.hg-b64-prep__task-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 700;
}

.hg-b64-prep__task-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
}

.hg-b64-prep__dish-label {
  display: block;
  margin: 0.25rem 0;
  color: #4d473c;
  font-size: 0.92em;
}

.hg-b64-prep__task > a {
  display: inline-block;
  margin: 0.2rem 0;
}

.hg-b64-prep__task-actions,
.hg-b64-prep__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

@media (max-width: 36rem) {
  .hg-b64-prep {
    padding: 0.75rem;
  }
}

.hg-b64-prep-photo {
  margin: 1.25rem auto;
}

.hg-b64-prep-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 18rem;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.hg-b64-prep-photo figcaption {
  font-size: 0.875em;
}

