.home-page .home-entry-help {
  max-width: 45ch;
  margin: 16px 0 0;
  font-size: 1rem;
  color: var(--mute);
}

.home-page .home-hero-preview img {
  border-radius: 16px;
}

.home-page .home-gallery .gallery-controls .btn {
  min-height: 44px;
}

.planner-page {
  background: var(--tw-subtle);
  font-family: var(--font);
  font-size: 1rem;
}

.planner-page .workflow h1 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.planner-page .workflow .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px !important;
  padding-bottom: 0;
  border-bottom: 0;
}

.planner-page .workflow .steps button {
  min-height: 48px;
  padding: 8px !important;
  border: 1px solid var(--line) !important;
  background: var(--tw-surface) !important;
  border-radius: 10px;
  font-size: .875rem !important;
  line-height: 1.25;
}

.planner-page .workflow .steps button:disabled {
  opacity: 1;
  background: transparent !important;
}

.planner-page .workflow .steps button.on {
  border-color: var(--accent) !important;
  background: var(--tw-green-soft) !important;
}

.planner-page .workflow .steps button:not(:disabled):hover {
  border-color: var(--accent) !important;
}

.planner-page .step > .lead {
  font-size: 1rem;
  margin-bottom: 22px !important;
}

.planner-page .step .card {
  min-width: 0;
  border-radius: 14px;
}

.planner-page .step .card label,
.planner-page .step .optional summary {
  font-size: .875rem;
}

.planner-page .step input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.planner-page .step select {
  font-size: 1rem;
}

.planner-page .presets button {
  min-height: 40px;
  font-size: .875rem !important;
}

.planner-page #sketchbox {
  justify-content: flex-start;
  background: var(--tw-surface);
}

.planner-page .room-preview-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.planner-page #area:not(:empty) {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tw-green-soft);
  color: var(--ink);
}

#editor .workflow .steps {
  flex-wrap: wrap;
  overflow: visible;
}

#editor .workflow .steps button {
  min-height: 44px;
  border: 1px solid transparent;
}

#editor .workflow .steps button span {
  display: inline;
}

#editor .workflow .steps button.on {
  border-color: var(--accent);
  background: var(--tw-green-soft);
  box-shadow: none;
}

#editor .workflow .steps button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  #editor .workflow {
    position: static;
  }
}

@media (max-width: 560px) {
  .planner-page .workflow .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planner-page .workflow .steps button {
    flex-direction: row;
    justify-content: center;
    font-size: .8125rem !important;
  }

  .planner-page .workflow .steps button b {
    flex: 0 0 22px;
  }

  .planner-page #sketchbox {
    min-height: 0;
  }

  #editor .workflow .steps button {
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .planner-page .workflow .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
