.design-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.design-step-head h3 {
  margin-bottom: 7px;
}

.design-step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.design-step-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  background: var(--green);
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.style-picker {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.style-picker legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
}

.style-picker input {
  display: none;
}

.style-picker span {
  display: block;
  padding: 11px 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 10px;
  cursor: pointer;
  transition: .2s;
}

.style-picker input:checked + span {
  border-color: var(--green);
  background: #e8efe8;
  color: var(--green);
  font-weight: 700;
  box-shadow: inset 0 -2px var(--green);
}

.generation-notice {
  margin: 16px 0 0;
  padding: 11px 13px;
  background: var(--cream);
  color: var(--muted);
  font-size: 9px;
}

.generation-notice span {
  margin-right: 6px;
  color: var(--green);
}

.result-step {
  min-height: 440px;
}

.generation-loading {
  padding: 55px 20px 25px;
  text-align: center;
}

.render-orbit {
  width: 86px;
  height: 86px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border: 1px solid #cbd0c5;
  border-radius: 50%;
}

.render-orbit::before,
.render-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.render-orbit::before {
  inset: 7px;
  border: 1px dashed #b2b8ac;
  animation: orbit-spin 5s linear infinite;
}

.render-orbit::after {
  inset: 20px;
  background: var(--lime);
}

.render-orbit i {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 4px;
  left: 38px;
  z-index: 2;
  border-radius: 50%;
  background: var(--green);
  transform-origin: 5px 39px;
  animation: orbit-spin 2s linear infinite;
}

.render-orbit span {
  position: relative;
  z-index: 2;
  color: var(--green);
  font: 800 12px var(--serif);
}

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

.result-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
}

.generation-loading h3,
.generation-error h3 {
  margin: 8px 0;
  font-size: 24px;
}

.generation-loading > p:not(.result-kicker) {
  color: var(--muted);
  font-size: 10px;
}

.generation-loading small {
  color: #9a9e96;
  font-size: 8px;
}

.generation-progress {
  width: min(340px, 100%);
  height: 3px;
  margin: 25px auto 12px;
  background: #ddded6;
  overflow: hidden;
}

.generation-progress i {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--green);
  transition: width 1.2s ease;
}

.generation-result {
  text-align: left;
}

.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.result-header h3 {
  margin: 0;
  font-size: 24px;
}

.result-header > span {
  padding: 6px 9px;
  color: var(--green);
  background: #e8efe8;
  font-size: 9px;
  font-weight: 700;
}

.generated-render {
  margin: 0;
  background: var(--ink);
}

.generated-render img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.generated-render figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 14px;
  color: #c9cec7;
  font-size: 8px;
}

.generated-render figcaption b {
  color: var(--lime);
  font-weight: 600;
}

.result-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.result-actions .btn {
  flex: 1;
  text-decoration: none;
}

.generation-error {
  padding: 60px 25px;
  text-align: center;
}

.error-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f8ddd7;
  color: #c54835;
  font: 700 26px var(--serif);
}

.generation-error p {
  max-width: 420px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .style-picker { grid-template-columns: 1fr 1fr; }
  .result-actions { flex-direction: column; }
  .result-step { min-height: 360px; }
}
