.script-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.script-step-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.script-step-head h2 {
  margin: 0;
  font-size: 16px;
}

.script-step-head > span {
  color: #9c6916;
  font: 600 11px "DM Mono", monospace;
}

.edit-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 14px;
  color: #7c8797;
  font-size: 11px;
  line-height: 1.55;
}

.edit-hint svg {
  width: 14px;
  color: #c98c29;
  flex: 0 0 auto;
}

.storyboard-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f0d7a5;
  border-radius: 7px;
  background: #fffaf0;
}

.storyboard-gate b,
.storyboard-gate span {
  display: block;
}

.storyboard-gate b {
  color: #73521b;
  font-size: 12px;
}

.storyboard-gate span {
  margin-top: 4px;
  color: #997845;
  font-size: 10px;
}

.storyboard-gate .primary-button {
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.storyboard-gate .primary-button svg {
  width: 15px;
}

.storyboard-result {
  margin-top: 20px;
  padding-top: 2px;
  border-top: 1px solid #edf1f5;
}

@media (max-width: 520px) {
  .script-step-head {
    align-items: flex-start;
  }

  .script-step-head > span {
    padding-top: 2px;
    white-space: nowrap;
  }

  .edit-hint {
    align-items: flex-start;
  }

  .storyboard-gate {
    display: grid;
    gap: 12px;
    padding: 13px;
  }

  .storyboard-gate .primary-button {
    width: 100%;
    justify-content: center;
  }
}
