#contractEditor {
  width: min(920px, 94vw);
  max-height: 92vh;
  padding: 0;
}
#contractEditor form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
#contractEditor header,
#contractEditor footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 24px;
}
#contractEditor header {
  justify-content: space-between;
}
#contractEditor header h2 {
  margin: 0;
}
#contractEditor footer {
  justify-content: flex-end;
}
#contractEditor .contract-editor-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 16px;
}
#contractEditor .contract-editor-body > label {
  display: block;
  margin: 16px 0 8px;
}
#contractEditor .contract-editor-body > p {
  color: #65748b;
  line-height: 1.7;
}
#contractEditor input[name='name'],
#contractEditor textarea {
  width: 100%;
  box-sizing: border-box;
}
#contractEditor textarea {
  height: 45vh;
  min-height: 220px;
  margin: 0;
  padding: 12px;
  font: inherit;
  line-height: 1.8;
  white-space: pre-wrap;
  resize: vertical;
}
#contractEditor .contract-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
}
#contractEditor .contract-enabled input {
  width: auto;
}
#contractEditor .contract-editor-error {
  color: #c63932 !important;
  min-height: 24px;
}
