.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
}

.tool_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

.tool_group h4 {
  margin: 0 0 4px;
  text-align: center;
}

.tool_group button {
  width: 100%;
  min-height: 44px;
}

.tool_panel {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

.tool_panel h3 {
  margin-top: 0;
  text-align: center;
}

.tool_panel select {
  width: 100%;
  padding: 8px;
  margin-bottom: 14px;
}

.contract_form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 16px;
}

.form_field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.form_field input {
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: normal;
}

.form_field input:disabled {
  background: #eee;
  color: #777;
}

.form_field input.changed {
  border-color: #1e88e5;
  background: #e3f2fd;
}

.tool_buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
